%===============================================================================
% source: pst-flags.sty
% Remark: LaTeX package for drawing flags of countries using PSTricks
% Manual: \input{pst-flags-doc.tex}
% Author: Amit Manohar Manthanwar
% Mailer: manthanwar@hotmail.com
% WebURL: https://manthanwar.github.io
% GitHub: https://github.com/manthanwar/PST-Flags
% Rights: Copyright ©2022-2023 Amit Manohar Manthanwar
%-------------------------------------------------------------------------------
%% This program can be redistributed and/or modified under the terms
%% of the LaTeX Project Public License Distributed from CTAN archives
%% in directory macros/latex/base/lppl.txt.
%%===============================================================================
%---------------+---------+----------------------------------------------------
% Revision Log  | Author  | Description
%---------------+---------+----------------------------------------------------
% 27-Nov-2022   | AMM     | Initial Version
%---------------+---------+----------------------------------------------------
% 25-Dec-2022   | AMM     | CTAN Review Updates
%---------------+---------+----------------------------------------------------
% 09-Jan-2023   | AMM     | Removed xcolor
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%---------------+---------+----------------------------------------------------
%===============================================================================
\NeedsTeXFormat{LaTeX2e}[2022/01/09]
\ProvidesPackage{pst-flags}[2022/01/09 LaTeX package for country flags]
\RequirePackage{fp}
\RequirePackage{xfp}
\RequirePackage{expl3}
\RequirePackage{pstricks}
\RequirePackage{pst-all}
%===============================================================================
% FONT Helvetica
\newcommand{\textphv}[1]{\fontfamily{phv}{\selectfont{#1}}}
%===============================================================================
\ExplSyntaxOn
\cs_set:Npn \amm_charspacing_str:n #1#2 {
  % store argument as string
  \str_set:Nn \l_tmpa_str {#1}
  % traverse the string
  \str_map_inline:Nn \l_tmpa_str {
      % center each character at their own line
      %##1\hspace{0.64mm}
      ##1\hspace{#2}
  }
}
% declare latex interface
\newcommand{\ammCharSpacing}[2]{
  \amm_charspacing_str:n {#1}{#2}
}
\ExplSyntaxOff
%===============================================================================

%===============================================================================
% Icon Star = one color solid filled
% #1 = width = 4
% #2 = pointy = 1
%-------------------------------------------------------------------------------
\newcommand{\iconStar}[2][4]{%
\FPeval{\ans}{round(#1/4:3)}\psscalebox{\ans}{%
%\psset{dimen=middle,fillstyle=solid,fillcolor=#2}%
%
\FPdiv{\piByOneEighty}{\FPpi}{180}
% 1
\FPeval{\xIa}{round(#2 * cos ((54 + 72 * 0) * \piByOneEighty):4)}
\FPeval{\yIa}{round(#2 * sin ((54 + 72 * 0) * \piByOneEighty):4)}
\FPeval{\xOa}{round(2  * cos ((90 + 72 * 0) * \piByOneEighty):4)}
\FPeval{\yOa}{round(2  * sin ((90 + 72 * 0) * \piByOneEighty):4)}
% 2
\FPeval{\xIb}{round(#2 * cos ((54 + 72 * 1) * \piByOneEighty):4)}
\FPeval{\yIb}{round(#2 * sin ((54 + 72 * 1) * \piByOneEighty):4)}
\FPeval{\xOb}{round(2  * cos ((90 + 72 * 1) * \piByOneEighty):4)}
\FPeval{\yOb}{round(2  * sin ((90 + 72 * 1) * \piByOneEighty):4)}
% 3
\FPeval{\xIc}{round(#2 * cos ((54 + 72 * 2) * \piByOneEighty):4)}
\FPeval{\yIc}{round(#2 * sin ((54 + 72 * 2) * \piByOneEighty):4)}
\FPeval{\xOc}{round(2  * cos ((90 + 72 * 2) * \piByOneEighty):4)}
\FPeval{\yOc}{round(2  * sin ((90 + 72 * 2) * \piByOneEighty):4)}
% 4
\FPeval{\xId}{round(#2 * cos ((54 + 72 * 3) * \piByOneEighty):4)}
\FPeval{\yId}{round(#2 * sin ((54 + 72 * 3) * \piByOneEighty):4)}
\FPeval{\xOd}{round(2  * cos ((90 + 72 * 3) * \piByOneEighty):4)}
\FPeval{\yOd}{round(2  * sin ((90 + 72 * 3) * \piByOneEighty):4)}
% 5
\FPeval{\xIe}{round(#2 * cos ((54 + 72 * 4) * \piByOneEighty):4)}
\FPeval{\yIe}{round(#2 * sin ((54 + 72 * 4) * \piByOneEighty):4)}
\FPeval{\xOe}{round(2  * cos ((90 + 72 * 4) * \piByOneEighty):4)}
\FPeval{\yOe}{round(2  * sin ((90 + 72 * 4) * \piByOneEighty):4)}
%
\pspolygon
(\xIa,\yIa)(\xOa,\yOa)(\xIb,\yIb)
(\xIb,\yIb)(\xOb,\yOb)(\xIc,\yIc)
(\xIc,\yIc)(\xOc,\yOc)(\xId,\yId)
(\xId,\yId)(\xOd,\yOd)(\xIe,\yIe)
(\xIe,\yIe)(\xOe,\yOe)(\xIa,\yIa)%
%
}} % end \iconStar
%-------------------------------------------------------------------------------
% Icon Star = one color solid filled
%\rput(2,2){\iconStarV{black!10}{gray!10}{1}}
%\psset{fillstyle=solid, fillcolor=pink}
%\rput(2,2){\rput(0,0){\iconStar{1}}}
%-------------------------------------------------------------------------------
%===============================================================================

%===============================================================================
% Icon Star XS = Generic Star Solid Filled with any number of spokes
% #1 = rInner    = 2         % outer diameter
% #2 = rOuter    = 1         % inner diameter
% #3 = points    = 3         % number of points
%-------------------------------------------------------------------------------
\newcommand{\iconStarXS}[3][0.8]{%
%\psset{fillstyle=solid,fillcolor=red,linestyle=solid,linewidth=0.01}%
\FPset{\rI}{#1}
\FPset{\rO}{#2}
\FPset{\pt}{#3}
\FPeval{\aO}{\fpeval{round(360/\pt, 4)}}
\FPeval{\aS}{\fpeval{round( 90*2/\pt, 4)}}

%\pscircle(0,0){#1}
%\pscircle[fillcolor=green](0,0){#2}
%\multido{\nAO=0+\aO, \nAI=\aS+\aO, \nx=0+1}{\pt}{%
%\FPeval{\xOL}{\fpeval{round(\rO * cosd(\nAO), 4)}}
%\FPeval{\yOL}{\fpeval{round(\rO * sind(\nAO), 4)}}
%\FPeval{\xIL}{\fpeval{round(\rI * cosd(\nAI), 4)}}
%\FPeval{\yIL}{\fpeval{round(\rI * sind(\nAI), 4)}}
%\pscircle[fillcolor=yellow](\xOL,\yOL){0.1}
%\pscircle[fillcolor=white](\xIL,\yIL){0.1}
%}

\pscustom{%
\multido{\nAO=90+\aO, \nAI=\fpeval{90+\aS}+\aO}{\pt}{%
\FPeval{\xOL}{\fpeval{round(\rO * cosd(\nAO), 4)}}%
\FPeval{\yOL}{\fpeval{round(\rO * sind(\nAO), 4)}}%
\FPeval{\xIL}{\fpeval{round(\rI * cosd(\nAI), 4)}}%
\FPeval{\yIL}{\fpeval{round(\rI * sind(\nAI), 4)}}%
\psline(\xOL,\yOL)(\xIL,\yIL)%
}%
\closepath%
}%
}
%-------------------------------------------------------------------------------
%\rput(1,15){\psset{fillcolor=pink}\iconStarXS[1]{1}{2}}%
%\rput(3,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{3}}%
%\rput(5,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{4}}%
%\rput(7,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{5}}%
%\rput(9,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{6}}%
%\rput(11,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{7}}%
%\rput(13,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{8}}%
%\rput(15,15){\psset{fillcolor=pink}\iconStarXS[0.4]{1}{24}}%
%\rput(1,13.5){\scriptsize{StarXS @ \number\inputlineno}}
%-------------------------------------------------------------------------------
%===============================================================================

%===============================================================================
% Icon Star XN = Generic Star Node with any number of vertices
% #1 = radius    = 1
% #2 = points    = 3         % number of points
%-------------------------------------------------------------------------------
\newcommand{\iconStarXN}[2][1]{%
%\psset{fillstyle=none,linestyle=solid,linecolor=#2,linewidth=#31}%
\FPset{\rO}{#1}%
\FPset{\pt}{#2}%
\FPeval{\aO}{\fpeval{round(360/\pt, 5)}}%

\multido{\ni=1+1}{\pt}{%
\FPeval{\x}{\fpeval{round(\rO * cosd(90 + \aO * (\ni-1)), 5)}}%
\FPeval{\y}{\fpeval{round(\rO * sind(90 + \aO * (\ni-1)), 5)}}%
\pnode(\x,\y){p\ni}%
}
%\pscircle(0,0){\rO}%
%\psset{fillstyle=solid,fillcolor=yellow}
%\multido{\ni=1+1}{\pt}{%
%\pscircle(! \psGetNodeCenter{p\ni} p\ni.x p\ni.y){0.1}%
%\pscircle(p\ni){0.1}%
%}%
%
\pscustom{%
\multido{\ns=1+2,\np=1+1}{\pt}{%
\FPeval{\ne}{\fpeval{\ns+2}}%
\ifnum\ns>\pt\FPset{\ns}{2}\fi%
\ifnum\ne>\pt\FPset{\ne}{2}\fi%
\ifnum\np=\pt\FPset{\ne}{1}\fi%
\ncline{p\ns}{p\ne}}%
\closepath}%
}
%-------------------------------------------------------------------------------
%{\psset{fillstyle=solid,fillcolor=Khaki,linestyle=solid,showpoints}
%\rput(1,9){\iconStarXN[1]{2}}%
%\rput(3,9){\iconStarXN[1]{3}}%
%\rput(5,9){\iconStarXN[1]{4}}%
%\rput(7,9){\iconStarXN[1]{5}}%
%\rput(9,9){\iconStarXN[1]{6}}%
%\rput(11,9){\iconStarXN[1]{7}}%
%\rput(13,9){\iconStarXN[1]{8}}%
%\rput(15,9){\iconStarXN[1]{9}}%
%}
%\rput(1,7.5){\scriptsize{StarXN using pst node @ \number\inputlineno}}
%-------------------------------------------------------------------------------
%===============================================================================

%===============================================================================
% Node points of generic pointed star
%-------------------------------------------------------------------------------
% #1 = inner radius       = 0.8
% #2 = outer radius       = 2
% #3 = number of points   = 5
% #4 = x offset           = 0
% #5 = y offset           = 0
%-------------------------------------------------------------------------------
% Usage: \ncline{pO1}{pI2} ==> %\psline(\xO1,\yO1)(\xI2,\yI2)%
% \iconStarXNPoints{0.8}{2}{5}{2}{2}%
% \ncline[linecolor=green]{pO1}{pI1}%
% \ncline[linecolor=blue]{pO2}{pI1}%
%-------------------------------------------------------------------------------
\newcommand{\iconStarXNPoints}[5][0.8]{%
\FPset{\rI}{#1}%    % inner radius
\FPset{\rO}{#2}%    % outer radius
\FPset{\pt}{#3}%    % number of points
\FPset{\xof}{#4}%   % x offset
\FPset{\yof}{#5}%   % y offset
\FPeval{\aO}{\fpeval{round(360/\pt, 4)}}%
\FPeval{\aS}{\fpeval{round( 90*2/\pt, 4)}}%
\multido{\nAO=90+\aO, \nAI=\fpeval{90+\aS}+\aO, \ni=1+1}{\pt}{%
\FPeval{\xO}{\fpeval{round(\rO * cosd(\nAO) + \xof, 5)}}%
\FPeval{\yO}{\fpeval{round(\rO * sind(\nAO) + \yof, 5)}}%
\FPeval{\xI}{\fpeval{round(\rI * cosd(\nAI) + \xof, 5)}}%
\FPeval{\yI}{\fpeval{round(\rI * sind(\nAI) + \yof, 5)}}%
\pnode(\xO,\yO){pO\ni}%
\pnode(\xI,\yI){pI\ni}%
}%
}
%-------------------------------------------------------------------------------
%\iconStarXPoints{0.8}{2}{5}{2}{2}%
%\ncline[linecolor=green]{pO1}{pI1}%
%\ncline[linecolor=blue]{pO2}{pI1}%
%
%\ncline[linecolor=green]{pO2}{pI2}%
%\ncline[linecolor=blue]{pO3}{pI2}%
%
%\ncline[linecolor=green]{pO3}{pI3}%
%\ncline[linecolor=blue]{pO4}{pI3}%
%
%\ncline[linecolor=green]{pO4}{pI4}%
%\ncline[linecolor=blue]{pO5}{pI4}%
%
%\ncline[linecolor=green]{pO5}{pI5}%
%\ncline[linecolor=blue]{pO1}{pI5}%

%\multido{\nI=1+1}{5}{\pscircle[fillcolor=yellow](pO\nI){0.1}}
%\multido{\nI=1+1}{5}{\pscircle[fillstyle=solid,fillcolor=yellow](pI\nI){0.1}}
%===============================================================================

%===============================================================================
% icon Flag IN = India
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{inRed}{HTML}{FF9933} % RGB=255, 153, 51; CYMK = 0-40-80-0
\definecolor{inSaffron}{HTML}{FF9933} % RGB=255, 153, 51; CYMK = 0-40-80-0
\definecolor{inGreen}{HTML}{138808}  % RGB =19,136,8 ; CYMK = 86-0-94-47
\definecolor{inBlue}{HTML}{000080} % RGB=0,0,128 ;  CYMK = 100-100-0-50
%-------------------------------------------------------------------------------
\newcommand{\flagIN}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

% tricolor
%\psset{fillcolor=inSaffron}
\psframe[fillcolor=inSaffron](0,4)(9,6)
\psframe[fillcolor=white](0,2)(9,4)%
\psframe[fillcolor=inGreen](0,0)(9,2)%

% Ashok Chakra
\psset{fillstyle=none, linestyle=solid,linecolor=inBlue}%
\pscircle[linewidth=0.1125](4.5,3){0.9}%

% spokes
\psset{fillstyle=solid, fillcolor=inBlue, linestyle=none}%
\multido{\nA=0+15}{24}{%
\rput{\nA}(4.5,3){\pspolygon(0,0)(-0.027,0.315)(0,0.8438)(0.027,0.315)}}%

% dots
\multido{\nAc=7.5+15.0}{24}{\rput{\nAc}(4.5,3){\pscircle(0,0.8438){0.0450}}}%

% center
\pscircle(4.5,3){0.1575}%
}} % end \flagIN
%-------------------------------------------------------------------------------
%\rput(6,21){\flagIN[2]}
%\rput(6,20.5){\scriptsize{IN @ \number\inputlineno}}
%\rput(0,0){\flagIN[6]}
%===============================================================================

%===============================================================================
% icon Flag RU = Russian Federation 2:3
%-------------------------------------------------------------------------------
\definecolor{ruRed}{HTML}{DA291C}
\definecolor{ruBlue}{HTML}{0032A0}
%-------------------------------------------------------------------------------
\newcommand{\flagRU}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,4)(9,6)
\psframe[fillcolor=ruBlue](0,2)(9,4)
\psframe[fillcolor=ruRed](0,0)(9,2)
}}
%-------------------------------------------------------------------------------
%\rput(3,21){\flagRU[2]}
%\rput(4,19.5){\scriptsize{RU @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag MK = Republic of Macedonia
%-------------------------------------------------------------------------------
% #1  = width               = 4         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{mkRed}{HTML}{CE2028}    % RGB = 206-32-40, CYMK = 0-68-65-19
\definecolor{mkYellow}{HTML}{F9D616} % RGB = 249-214-22, CYMK = 0-14-89-2
%-------------------------------------------------------------------------------
\newcommand{\flagMK}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

% base
\psframe[fillcolor=mkRed](0,0)(4,2)

% rays
\psset{fillcolor=mkYellow}
\pspolygon(1.8,0)(2,1)(2.2,0)
\rput(0,2){\psscalebox{1 -1}{\pspolygon(1.8,0)(2,1)(2.2,0)}}

% left corner
\pspolygon(0,0)(2,1)(0.6,0)
\rput(0,2){\psscalebox{1 -1}{\pspolygon(0,0)(2,1)(0.6,0)}}

% left middle
\pspolygon(0,0.8)(2,1)(0,1.2)

% right
\rput(4,0){\psscalebox{-1 1}{\pspolygon(0,0)(2,1)(0.6,0)
\rput(0,2){\psscalebox{1 -1}{\pspolygon(0,0)(2,1)(0.6,0)}}
\pspolygon(0,0.8)(2,1)(0,1.2)
}}

% Disks
\pscircle[fillcolor=mkRed](2,1){0.375}
\pscircle[fillcolor=mkYellow](2,1){0.3}
}} % end \flagMK
%-------------------------------------------------------------------------------
%\rput(0,21){\flagMK[2]}
%\rput(1,20.5){\scriptsize{MK @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag UK
%-------------------------------------------------------------------------------
% #1  = width               = 6         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{ukRed}{HTML}{C8102E}  % RGB = 200, 16, 46, CYMK = 2.100.85.6
\definecolor{ukBlue}{HTML}{012169} % RGB = 1, 33, 105 , CYMK = 100.85.5.22
%-------------------------------------------------------------------------------
\newcommand{\flagUK}[1][6]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

% base
\psframe[fillcolor=gray!10](0,0)(6,3)

% cross
\psframe[fillcolor=ukRed](2.7,0)(3.3,3)
\psframe[fillcolor=ukRed](0,1.2)(6,1.8)

% triangle small
\psset{fillcolor=ukBlue}
\pspolygon(0,0.33)(0,1)(1.33,1)

\rput(6,0){\psscalebox{-1 1}{\pspolygon(0,0.33)(0,1)(1.33,1)}}

\rput(0,3){\psscalebox{1 -1}{\pspolygon(0,0.33)(0,1)(1.33,1)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0,0.33)(0,1)(1.33,1)}}}}

% triangle big
\pspolygon(0.67,0)(2.5,0)(2.5,0.92)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)}}

\rput(0,3){\psscalebox{1 -1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)}}}}

% band bottom left
\psset{fillcolor=ukRed}
\pspolygon(0,0)(2,1)(2.45,1)(0.45,0)
\rput(6,3){\psscalebox{-1 -1}{\pspolygon(0,0)(2,1)(2.45,1)(0.45,0)}}

% band top left
\pspolygon(0,3)(0,2.77)(1.55,2)(2,2)
\rput(6,3){\psscalebox{-1 -1}{\pspolygon(0,3)(0,2.77)(1.55,2)(2,2)}}%
}} % end \flagUK
%-------------------------------------------------------------------------------
%\rput(0,21){\flagUK[2]}
%\rput(1,20.5){\scriptsize{UK @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag UK
%-------------------------------------------------------------------------------
% #1  = width               = 6         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{gbRed}{HTML}{C8102E}  % RGB = 200, 16, 46, CYMK = 2.100.85.6
\definecolor{gbBlue}{HTML}{012169} % RGB = 1, 33, 105 , CYMK = 100.85.5.22
%-------------------------------------------------------------------------------
\newcommand{\flagGB}[1][6]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

% base
\psframe[fillcolor=gray!10](0,0)(6,3)

% cross
\psframe[fillcolor=ukRed](2.7,0)(3.3,3)
\psframe[fillcolor=ukRed](0,1.2)(6,1.8)

% triangle small
\psset{fillcolor=ukBlue}
\pspolygon(0,0.33)(0,1)(1.33,1)

\rput(6,0){\psscalebox{-1 1}{\pspolygon(0,0.33)(0,1)(1.33,1)}}

\rput(0,3){\psscalebox{1 -1}{\pspolygon(0,0.33)(0,1)(1.33,1)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0,0.33)(0,1)(1.33,1)}}}}

% triangle big
\pspolygon(0.67,0)(2.5,0)(2.5,0.92)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)}}

\rput(0,3){\psscalebox{1 -1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)
\rput(6,0){\psscalebox{-1 1}{\pspolygon(0.67,0)(2.5,0)(2.5,0.92)}}}}

% band bottom left
\psset{fillcolor=ukRed}
\pspolygon(0,0)(2,1)(2.45,1)(0.45,0)
\rput(6,3){\psscalebox{-1 -1}{\pspolygon(0,0)(2,1)(2.45,1)(0.45,0)}}

% band top left
\pspolygon(0,3)(0,2.77)(1.55,2)(2,2)
\rput(6,3){\psscalebox{-1 -1}{\pspolygon(0,3)(0,2.77)(1.55,2)(2,2)}}%
}} % end \flagUK
%-------------------------------------------------------------------------------
%\rput(0,21){\flagUK[2]}
%\rput(1,20.5){\scriptsize{UK @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag NZ = New Zealand 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagNZ}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukBlue](0,0)(24,12)
\rput(0,6){\flagUK[12]}
% Star
\psset{fillcolor=white}
\rput(18,2.4){\iconStar[1.8]{0.8}}
\rput(18,9.6){\iconStar[1.6]{0.8}}
% center 18, 7.2
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\uput{2.4}[8]{0}(18,7.2){\iconStar[1.4]{0.8}}
\uput{2.8}[172]{0}(18,7.2){\iconStar[1.6]{0.8}}
%
\psset{fillcolor=ukRed}
\rput(18,2.4){\iconStar[1.4]{0.8}}
\rput(18,9.6){\iconStar[1.2]{0.8}}
\uput{2.4}[8]{0}(18,7.2){\iconStar[1]{0.8}}
\uput{2.8}[172]{0}(18,7.2){\iconStar[1.2]{0.8}}
%
}}
%-------------------------------------------------------------------------------
%\rput(3,21){\flagNZ[2]}
%\rput(4,20.5){\scriptsize{NZ @ \number\inputlineno}}
%\rput(0,0){\flagNZ[4]}
%===============================================================================

%===============================================================================
% icon Flag AI = Anguilla 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagAI}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
\rput(18,6){\psscalebox{1.5}{\input{Flags/pst-Anguilla-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagAI[2]}
%\rput(1,16.5){\scriptsize{AI @ \number\inputlineno}}
%\rput(0,0){\flagAI[4]}
%===============================================================================

%===============================================================================
% icon Flag BM = Bermuda 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagBM}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukRed](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
\rput(18,6){\includegraphics[width=54.75mm]{Flags/pst-Bermuda-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagBM[2]}
%\rput(10,16.5){\scriptsize{BM @ \number\inputlineno}}
%\rput(0,0){\flagBM[4]}
%===============================================================================

%===============================================================================
% icon Flag FJ = Fiji 1:2
%-------------------------------------------------------------------------------
\definecolor{fjCyan}{HTML}{62b5e5}%
%-------------------------------------------------------------------------------
\newcommand{\flagFJ}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=fjCyan](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
\rput(18,6){\includegraphics[width=49.320mm]{Flags/pst-Fiji-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagFJ[2]}
%\rput(10,16.5){\scriptsize{FJ @ \number\inputlineno}}
%\rput(0,0){\flagFJ[4]}
%===============================================================================

%===============================================================================
% icon Flag IO = British Indian Ocean Territory 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagIOWave}[2][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{fillstyle=solid,fillcolor=#2,linestyle=solid,linecolor=#2,linewidth=0.001}%
%
% wave part 1
\def\wavea{\pscustom{%
\psbezier(0,0)
(0.42856,0)
(0.64284,0.567239)
(1.3571601,0.567239)%
\psline
(1.3571601,0.567239)
(1.3571601,1.5921201)%
\psbezier%(1.3571601,1.5921201)
(0.64284,1.5921201)
(0.42856,1.02484)
(0,1.02484)%
\closepath}}%
%
% Wave part 2a
\def\waveb{\pscustom{%
\psbezier(1.3571601,0.567239)
(2.4285602,0.567239)
(2.7857201,-0.228801)
(4.2142804,-0.228801)
(4.9285602,-0.228801)
(5.2856802,0.567239)
(6.0000002,0.567239)%
\psline
(6.0000002,0.567239)
(6.0000002,1.5921201)%
\psbezier%(6.0000002,1.5921201)
(5.2856802,1.5921201)
(4.9285602,0.7960399)
(4.2142804,0.7960399)
(2.7857201,0.7960399)
(2.4285602,1.5921201)
(1.3571601,1.5921201)%
\closepath}}%
%
\def\waveB{\multirput(0,0)(4.6428399,0){4}{\rput(0,0){\waveb}}}%
%
\def\wavec{\pscustom{%
\psbezier
(19.92852,0.567239)
(20.999959,0.567239)
(21.35716,-0.228801)
(22.785599,-0.228801)
(23.50004,-0.228801)
(23.73108,-0.003201)
(23.999999,0.158559)%
\psline
(23.999999,0.158559)
(23.999999,1.33596)%
\psbezier%(23.999999,1.33596)
(23.73108,1.1741601)
(23.50004,0.7960399)
(22.785599,0.7960399)
(21.35716,0.7960399)
(20.999959,1.5921201)
(19.92852,1.5921201)%
\closepath}}%
%
\put(0,0.228801){\multido{\nY=0+2}{6}{\rput(0,\nY){\wavea\waveB\wavec}}}%
%
}}
%-------------------------------------------------------------------------------
\newcommand{\crownLily}[1][2.8]{% 2.8 wide, 3.2 tall
\FPeval{\wide}{round(#1/2.8:3)}\psscalebox{\wide}{%
\pscustom{% left side
\psbezier(-0.3,0.2)(-0.3,0.5)(-0.5,0.5)(-0.6,0.4)%
(-0.8,0.2)(-0.5,-0.4)(-1.4,-0.6)%
(-0.6,0)(-1.5,0.7)(-1.2,1.2)%
(-0.9,1.5)(-0.6,1.2)(-0.6,1.2)%
(-0.6,2.2)(0,2.6)(0,2.6)%
% Right side
(0,2.6)(0.6,2.2)(0.6,1.2)%
(0.6,1.2)(0.9,1.5)(1.2,1.2)%
(1.5,0.7)(0.6,0)(1.4,-0.6)%
(0.5,-0.4)(0.8,0.2)(0.6,0.4)%
(0.5,0.5)(0.3,0.5)(0.3,0.2)%
\psline(0.3,0.2)(0.3,0)(-0.3,0)(-0.3,0.2)%
}%
}}%
%-------------------------------------------------------------------------------
\newcommand{\crownLilyDouble}[1][2.8]{% 2.8 wide, 3.2 tall
\FPeval{\wide}{round(#1/2.8:3)}\psscalebox{\wide}{%
\pscustom{%
% left side
\psbezier(-0.2,0.2)(-0.2,0.6)(-0.4,0.6)(-0.4,0.6)%
(-0.9,0.6)(-0.7,-0.4)(-1.1,-0.4)%
(-0.6,0.2)(-1.7,1.5)(-0.55,1.1)%
(-0.5,2)(0,2.4)(0,2.4)%
% Right side
(0,2.4)(0.5,2)(0.55,1.1)%
(1.7,1.5)(0.6,0.2)(1.1,-0.4)%
(0.7,-0.4)(0.9,0.6)(0.4,0.6)%
(0.4,0.6)(0.2,0.6)(0.2,0.2)%
\psline(0.2,0.2)(0.2,0)(-0.2,0)(-0.2,0.2)%
}%
\pspolygon(-0.6,0)(-0.4,0.2)(0.4,0.2)(0.6,0)(0.4,-0.2)(-0.4,-0.2)%
}}%
%-------------------------------------------------------------------------------
\definecolor{flagIOCrownRed}{HTML}{c8102e}
\definecolor{flagIOCrownYellow}{HTML}{fed100}
\definecolor{flagIOCrownBlue}{HTML}{012169}
\definecolor{flagIOCrownGreen}{HTML}{306947}
%-------------------------------------------------------------------------------
% crown default height = 18, width = 15.2
\newcommand{\flagIOCrown}[1][4]{%
\FPeval{\wide}{round(#1/15.2:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid,fillcolor=flagIOCrownRed,
linestyle=solid,linecolor=black, linewidth=0.04}%
\pscustom{%
\psbezier(-6.4,6)(-6.4,6)(-7.1,8.8)(-4.6,8.8)%
(-4.6,8.8)(-3.6,10.3)(-2,9.8)%
\psline(-2,9.8)(0,9)%
\psline(0,9)(2,9.8)%
\psbezier(3.6,10.3)(4.6,8.8)(4.6,8.8)%
(7.1,8.8)(6.4,6)(6.4,6)%
\psline(6.4,6)(5.8,4.1)%
\psbezier(5.8,4.1)(4,4.4)(0,4.4)%
(-4,4.4)(-5.8,4.1)(-5.8,4.1)%
\psline(-5.8,4.1)(-6.4,6)%
}
%
% Pearl arm
\def\pearlBar{%
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,
linestyle=solid,linecolor=black,linewidth=0.04}%
\pscustom{%
\psbezier(-6.1,7.7)(-6.1,7.7)(-7.6,11.6)(-4.4,11.8)
(-3,11.8)(-2,10.6)(0,11.2)
\psline(0,11.2)(0,11.8)
\psbezier(-2,11.4)(-3,12.6)(-4.4,12.6)
\psbezier(-8.6,12.6)(-6.7,7.6)(-6.7,7.6)
\closepath}
\psset{fillstyle=none,,fillcolor=white,linestyle=none}%
\psset{ArrowInside=-o,arrowscale=10.8,arrowLW=0.004,ArrowInsideOffset=-0.02}
\multido{\nP=0.10+0.14}{7}{%
\psbezier[ArrowInsidePos=\nP,ArrowInsideOffset=-0.02]{-}(-6.7,7.6)(-6.7,7.6)(-8.6,12.6)(-4.4,12.6)}
\multido{\nP=0.12+0.20}{4}{%
\psbezier[ArrowInsidePos=\nP](-4.4,12.6)(-3,12.6)(-2,11.4)(0,11.8)}
}%
\rput(0,0){\pearlBar}%
\rput(0,0){\psscalebox{-1 1}{\pearlBar}}%
%
% base 2 - arrow band
\psset{fillstyle=solid,fillcolor=white,linestyle=solid}%
\pscustom{%
\psbezier(-5.8,1.8)(-5.8,1.8)(-5.4,2.2)(0,2.2)
(5.4,2.2)(5.8,1.8)(5.8,1.8)
(6,1.6)(6,1.4)(6,1.4)
(6,1.4)(6.4,0)(0,0)
(-6.4,0)(-6,1.4)(-6,1.4)
(-6,1.4)(-6,1.6)(-5.8,1.8)
}%
%
% Base - 1 - wear
\psscalebox{0.99}{%
\pscustom[fillstyle=solid,fillcolor=gray!10,linestyle=solid]{%
\psbezier(-5.6,0.8)(-5.6,0.8)(-4.8,0)(0,0)
(4.8,0)(5.6,0.8)(5.6,0.8)
(5.6,0.8)(4,1.2)(0,1.2)
(-4,1.2)(-5.6,0.8)(-5.6,0.8)
\closepath%
}}%
%
% base - arrow
\def\baseArrow{\pscustom[fillstyle=solid,fillcolor=black,linestyle=none]{%
\psbezier(0,0)(-0.2,0)(-1.1,-0.3)(-1.1,-0.3)%
(-1.1,-0.3)(-1,-0.1)(-0.8,-0.1)%
(-1,-0.1)(-1.2,0)(-1.2,0)%
(-1.2,0)(-1,0.1)(-0.8,0.1)%
(-1,0.1)(-1.1,0.3)(-1.1,0.3)%
(-1.1,0.3)(-0.2,0)(0,0)%
}}%
%
\rput{5}(-4,1.55){\baseArrow}%
\rput{2}(-1.7,1.65){\baseArrow}%
\rput(0.6,1.7){\baseArrow}%
\rput{-2}(2.9,1.65){\baseArrow}%
\rput{-5}(5.2,1.5){\baseArrow}%
%
% base band 4 - gemstone band
\pscustom[fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,
linecolor=black,linewidth=0.04]{%
\psbezier(-5.4,2.2)(-5.4,2.2)(-4,2.5)(0,2.5)
(4,2.5)(5.4,2.2)(5.4,2.2)
\psline(5.4,2.2)(5.8,3.8)
\psbezier(5.8,3.8)(4,4.1)(0,4.1)
(-4,4.1)(-5.8,3.8)(-5.8,3.8)
\psline(-5.8,3.8)(-5.4,2.2)
}%
%
% base band 3 - above arrow
\pscustom[fillstyle=solid,fillcolor=flagIOCrownYellow]{%
\psbezier(5.6,1.9)(5.6,1.9)(4,2.2)(0,2.2)
(-4,2.2)(-5.6,1.9)(-5.6,1.9)
(-5.7,2.1)(-5.6,2.2)(-5.6,2.2)
(-5.6,2.2)(-4,2.5)(0,2.5)
(4,2.5)(5.6,2.2)(5.6,2.2)
(5.6,2.2)(5.7,2.1)(5.6,1.9)
}%
%
% base band 5 - above gemstones
\pscustom[fillstyle=solid,fillcolor=flagIOCrownYellow]{%
\psbezier(5.9,3.8)(5.9,3.8)(4,4.1)(0,4.1)
(-4,4.1)(-5.9,3.8)(-5.9,3.8)
(-6,4.0)(-5.9,4.1)(-5.9,4.1)
(-5.9,4.1)(-4,4.4)(0,4.4)
(4,4.4)(5.9,4.1)(5.9,4.1)
(5.9,4.1)(6,4.0)(5.9,3.8)
}
%
% crown base 2
\pscustom[fillstyle=solid,fillcolor=flagIOCrownYellow]{%
\psline(-6.4,6)(-6,6)
\psbezier(-6,6)(-5.4,4.9)(-4.7,4.9)
(-4.3,4.9)(-4,5)(-3.7,5.5)
\psline(-3.7,5.5)(-3.1,5.5)
\psbezier(-2.6,5)(-2.3,4.9)(-1.9,4.9)
(-0.6,4.9)(-0.4,6)(-0.5,6.2)
\psline(-0.5,6.2)(0.5,6.2)
\psbezier(0.5,6.2)(0.6,4.9)(1.9,4.9)
(2.3,4.9)(2.6,5)(3.1,5.5)
\psline(3.1,5.5)(3.7,5.5)
\psbezier(4,5)(4.3,4.9)(4.7,4.9)
(5.4,4.9)(6,6)(6,6)
\psline(6,6)(6.4,6)
\psline(6.4,6)(5.8,4.1)
\psbezier(5.8,4.1)(4,4.4)(0,4.4)
(-4,4.4)(-5.8,4.1)(-5.8,4.1)
\psline(-5.8,4.1)(-6.4,6)
}%
%
% crown base 1
\pscustom[fillstyle=solid,fillcolor=flagIOCrownYellow]{%
\psline(-5.8,4.1)(-6.4,6)
\psbezier(-6.4,6)(-5.8,4.6)(-4.8,4.6)
(-3.8,4.6)(-3.4,5.2)(-3.4,5.2)
(-3.4,5.2)(-3,4.6)(-2,4.6)
(-0.6,4.6)(0,5.6)(0,5.6)
\psbezier(0,5.6)(0.6,4.6)(2,4.6)
(3,4.6)(3.4,5.2)(3.4,5.2)
(3.4,5.2)(3.8,4.6)(4.8,4.6)
(5.8,4.6)(6.4,6)(6.4,6)
\psline(6.4,6)(5.8,4.1)
\psbezier(5.8,4.1)(4,4.4)(0,4.4)
(-4,4.4)(-5.8,4.1)(-5.8,4.1)
}%
%
% Cross side
\def\crossSide{%
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,linewidth=0.04}%
\psscalebox{0.9 0.8}{%
\pscustom{%
\psbezier(0.2,0.2)(1,0.2)(1.5,1)(1.6,1.2)
\psbezier(1.6,1.2)(1.8,0)(1.6,-1.2)
\psbezier(1.5,-1)(1,-0.2)(0.2,-0.2)
}%
\psset{linestyle=solid,linewidth=0.05,fillstyle=none}
\psbezier(0.2,0.1)(1,0.1)(1.4,0.6)(1.5,0.8)
\psbezier(1.5,0.8)(1.5,0.8)(1.6,0)(1.5,-0.8)
\psbezier(1.5,-0.8)(1.4,-0.6)(1,-0.1)(0.2,-0.1)
}%
\pscustom{%
\psbezier(0.2,0.2)(0.2,1)(1,1.5)(1.2,1.6)
\psbezier(1.2,1.6)(0.5,1.8)(0,1.7)
\psline(0,1.7)(0,0.2)%(0.2,0.2)
}
\psset{linestyle=solid,linewidth=0.05,fillstyle=none}
\psbezier(0.1,0.2)(0.1,1)(0.6,1.4)(0.8,1.5)
\psbezier(0.8,1.5)(0.8,1.5)(0.4,1.65)(0,1.55)
%
\pscircle[fillstyle=solid,fillcolor=white,linewidth=0.04](0,0){0.4}%
}%
\rput{18}(-6.3,5.9){\crossSide}
\rput{-18}(6.2,5.9){\psscalebox{-1 1}{\crossSide}}
%
% Orb
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,linecolor=black}%
\pscircle(0,12.6){1}%
\psframe(-1.1,12.4)(1.1,12.8)%
\psframe(-0.2,12.8)(0.2,13.8)%
%
% Top bar
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,linewidth=0.04}
\rput(0,8){\pscustom{%
\psline(0.7,3.6)(0.7,0)(-0.7,0)(-0.7,3.6)
\psellipticarcn(0,3.6)(0.7,0.4){180}{0}}}%
%
\rput(-0.9,8){\pscustom{%
\psline(0,3.6)(0,0)(0.4,0)(0.4,3.6)
\psarc(0.2,3.6){0.2}{0}{180}}}%
%
\rput(0.5,8){\pscustom{%
\psline(0,3.6)(0,0)(0.4,0)(0.4,3.6)
\psarc(0.2,3.6){0.2}{0}{180}}}%
%
% Pears verticle main
\psset{fillstyle=solid,fillcolor=white,linestyle=solid,linewidth=0.04}
\multirput(0,0)(0,0.8){5}{\pscircle(0,8.2){0.4}}%
%
% cross top
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,linewidth=0.04}%
\def\crossTop{%
\pscustom{%
\psbezier(0,0.3)(0.7,0.3)(1.2,0.9)(1.2,0.9)%
\psline(1.2,0.9)(1.2,-0.9)
\psbezier(1.2,-0.9)(0.7,-0.3)(0,-0.3)%
}}%
\multido{\nA=0+90}{4}{\rput{\nA}(0,14.8){\crossTop}}
\psset{fillstyle=solid,fillcolor=white,linestyle=solid,linewidth=0.04}
\pscircle(0,14.8){0.5}%
%
% Cross main
\def\crossMain{%
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linewidth=0.04}%
\pscustom{%
\psbezier(0.2,0.2)(1,0.2)(1.5,1)(1.6,1.2)
\psbezier(1.6,1.2)(1.8,0)(1.6,-1.2)
\psbezier(1.5,-1)(1,-0.2)(0.2,-0.2)
\psline(0.2,-0.2)(0.2,0.2)}%
%
\psset{fillstyle=none,linestyle=solid,linewidth=0.05}%
\pscustom{%
\psbezier(0.2,0.1)(1,0.1)(1.4,0.6)(1.5,0.8)
\psbezier(1.5,0.8)(1.6,0)(1.5,-0.8)
\psbezier(1.4,-0.6)(1,-0.1)(0.2,-0.1)
}%
}%
\rput(0,6.4){\crossMain}%
\rput{90}(0,6.4){\crossMain}%
\rput{180}(0,6.4){\crossMain}%
\psset{fillstyle=solid,fillcolor=white,linestyle=solid,linewidth=0.04}
\pscircle(0,6.4){0.4}%
%
% Lily
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,
linestyle=solid,linecolor=black,linewidth=0.04}%
\rput{2}(-3.4,5.6){\crownLily[2.6]}
\rput{-2}(3.4,5.6){\crownLily[2.6]}
\psset{linewidth=0.05}%
\rput{2}(-3.4,5.6){\crownLilyDouble[2.6]}
\rput{-2}(3.4,5.6){\crownLilyDouble[2.6]}
%
% Supphire
\psset{fillstyle=none,fillcolor=flagIOCrownBlue,
linestyle=solid,linecolor=black,linewidth=0.04}%
\rput(0,2.7){\psframe[framearc=0.1](-1.2,0)(1.2,1.2)}%
\psset{fillstyle=solid}%
\rput(0,2.9){\psframe[framearc=0.2](-1,0)(1,0.8)}%
\psline(-0.98,2.95)(0.98,3.65)%
\psline(-0.98,3.65)(0.98,2.95)%
%\psset{fillstyle=solid,fillcolor=cyan!20,linestyle=solid,linecolor=black}%
\rput(0,3.1){\psframe(-0.6,0)(0.6,0.4)}%
%
% Emerald
\psset{fillstyle=none,fillcolor=flagIOCrownGreen,linestyle=solid,linecolor=black}%
\rput{5}(-3,2.7){\psframe[framearc=1](-0.8,0)(0.8,1)}%
\rput{-5}(3,2.7){\psframe[framearc=1](-0.8,0)(0.8,1)}%
\psset{fillstyle=solid,fillcolor=flagIOCrownGreen,linestyle=solid,linecolor=black}%
\rput{5}(-3,2.9){\psframe[framearc=1](-0.6,0)(0.6,0.6)}%
\rput{-5}(3,2.9){\psframe[framearc=1](-0.6,0)(0.6,0.6)}%
%
% Ruby Holder
\psset{fillstyle=solid,fillcolor=flagIOCrownYellow,linestyle=solid,linecolor=black}%
\rput{9}(-4.7,3.1){\pspolygon(0,0)(-1,0.6)(-1.1,0)(-1,-0.6)}%
\rput{-9}(4.7,3.1){\psscalebox{-1 1}{\pspolygon(0,0)(-1,0.6)(-1.1,0)(-1,-0.6)}}%
%
% Ruby
\psset{fillstyle=solid,fillcolor=flagIOCrownRed,linestyle=solid,linecolor=black}%
\rput{9}(-4.7,3.1){\pspolygon(-0.3,0)(-1,0.4)(-1.2,0)(-1,-0.4)}%
\rput{-9}(4.7,3.1){\psscalebox{-1 1}{\pspolygon(-0.3,0)(-1,0.4)(-1.2,0)(-1,-0.4)}}%
% Ruby line
\rput{9}(-4.7,3.1){\psline(-0.3,0)(-1.2,0)}%
\rput{-9}(4.7,3.1){\psscalebox{-1 1}{\psline(-0.3,0)(-1.2,0)}}%
%
% Main pearls
\psset{fillstyle=solid,fillcolor=white,linestyle=solid,linecolor=black}%
\rput(-1.7,2.95){\pscircle(0,0){0.2}}%
\rput(-1.7,3.65){\pscircle(0,0){0.2}}%
\rput(1.7,2.95){\pscircle(0,0){0.2}}%
\rput(1.7,3.65){\pscircle(0,0){0.2}}%
\rput(-4.3,2.8){\pscircle(0,0){0.2}}%
\rput(-4.3,3.5){\pscircle(0,0){0.2}}%
\rput(4.3,2.8){\pscircle(0,0){0.2}}%
\rput(4.3,3.5){\pscircle(0,0){0.2}}%
%
}}
%-------------------------------------------------------------------------------
\newcommand{\flagIOTree}{%
\psset{xunit=.5pt,yunit=.5pt,runit=.5pt}
\begin{pspicture}(217.79797171,400.6768943)
{
\newrgbcolor{curcolor}{0.63529414 0.26274511 0}
\pscustom[linestyle=solid,linecolor=black,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(110.00686488,0.91796517)
\curveto(109.22441575,1.34301084)(108.01705323,2.8425384)(107.3238463,4.25026123)
\lineto(106.06346457,6.80975729)
\lineto(106.2065537,38.46938942)
\curveto(106.36318488,73.12388895)(107.16308409,159.82866627)(107.77091528,208.03616611)
\curveto(108.03172535,228.72095729)(108.3035263,260.93329997)(108.61050331,258.58795572)
\lineto(116.13880441,247.43354942)
\curveto(116.67893291,248.95839603)(117.07217386,204.7890984)(117.59145449,147.39993934)
\curveto(118.9711748,-5.08116554)(118.93804346,9.22419509)(117.91856504,6.15484076)
\curveto(116.94707528,3.22997777)(114.04252346,0.08420139)(112.34989606,0.12369745)
\curveto(111.8436737,0.13552737)(110.78931402,0.49295729)(110.00686488,0.91796517)
\closepath
}
}
{
\newrgbcolor{curcolor}{0 0.42745098 0}
\pscustom[linestyle=solid,linecolor=black,fillstyle=solid,fillcolor=curcolor]
{
\newpath
\moveto(141.90392693,315.3556395)
\lineto(165.2001789,332.58884895)
\lineto(151.76215559,328.18305367)
\lineto(175.05840378,345.41630091)
\lineto(161.62038047,341.01050564)
\lineto(184.89773858,354.45987887)
\lineto(169.01412283,350.63117965)
\lineto(194.10032504,363.65347761)
\lineto(178.8533178,359.67456863)
\lineto(197.23973291,374.27817556)
\lineto(181.33707591,366.66537934)
\lineto(191.19506268,379.4929258)
\lineto(174.45848315,368.28859572)
\lineto(171.71275465,380.30200548)
\lineto(161.83549606,363.69040359)
\lineto(160.0646778,371.68525336)
\lineto(151.9963011,354.64704107)
\lineto(150.8620989,362.49156391)
\lineto(144.60256252,345.02636706)
\lineto(141.02276409,353.44798595)
\lineto(134.74433386,332.19891509)
\lineto(131.16453543,340.62057178)
\lineto(126.3254211,324.2427828)
\lineto(128.71986898,325.05205525)
\lineto(120.552,319.47237651)
\lineto(128.09914961,340.41454973)
\lineto(119.93128063,334.83487099)
\lineto(127.47843024,355.77700643)
\lineto(119.31056126,350.19732769)
\lineto(124.57611213,367.90304611)
\lineto(118.84502173,361.71925525)
\lineto(122.30811213,379.87159666)
\lineto(115.94269984,373.84513619)
\lineto(117.60357165,392.44430469)
\lineto(107.96621102,383.42661651)
\lineto(100.49194205,400.48791414)
\lineto(101.11241953,385.12550658)
\lineto(92.16865134,398.74901399)
\lineto(98.98625008,378.0482354)
\lineto(88.39518236,388.27780643)
\lineto(101.88856063,365.92239981)
\lineto(90.66318992,376.30927477)
\lineto(102.35410016,354.4004269)
\lineto(93.56552315,364.18322753)
\lineto(102.97481953,339.03797021)
\lineto(94.18624252,348.82074816)
\lineto(103.59554268,323.67547572)
\lineto(94.80696189,333.45829147)
\lineto(103.20325039,311.75514816)
\lineto(96.26554205,319.86178123)
\lineto(97.6386822,309.57761115)
\lineto(82.40614299,329.05113556)
\lineto(83.77928315,318.76696548)
\lineto(68.54678173,338.24048989)
\lineto(69.91993323,327.95628202)
\lineto(58.15212472,345.13253399)
\lineto(59.52526488,334.84836391)
\lineto(47.75769449,352.02446469)
\lineto(49.13083465,341.74029462)
\lineto(34.58485795,356.07188517)
\lineto(39.42295559,343.49029147)
\lineto(22.78523717,349.8347954)
\lineto(33.86625638,337.80062847)
\lineto(17.9150778,339.00316076)
\lineto(38.01772724,330.36127099)
\lineto(25.53151748,329.26641745)
\lineto(48.41215748,323.46934028)
\lineto(35.92594772,322.37448674)
\lineto(58.80681449,316.5772584)
\lineto(46.32056693,315.48244265)
\lineto(72.66621354,307.38794186)
\lineto(60.17996598,306.29308832)
\lineto(81.15073512,300.04069147)
\lineto(85.48823433,294.32105682)
\lineto(63.59435339,305.6076332)
\lineto(70.1697978,296.93698123)
\lineto(47.73395906,304.54214658)
\lineto(54.30940346,295.87153241)
\lineto(35.70288,302.82272611)
\lineto(42.27855118,294.15226312)
\lineto(23.67229228,301.10345682)
\lineto(30.2476989,292.43280485)
\lineto(11.09975811,295.70273871)
\lineto(22.04660409,290.05956391)
\lineto(0.18893102,274.9227828)
\lineto(20.96278677,282.69670406)
\lineto(11.13596598,269.27934343)
\lineto(28.62199937,281.38872296)
\lineto(19.33708724,271.65281115)
\lineto(40.65286299,283.10818123)
\lineto(31.36772409,273.37208044)
\lineto(52.14180661,281.14619068)
\lineto(43.39880315,275.09150091)
\lineto(68.00218961,282.21167729)
\lineto(59.25914835,276.15698753)
\lineto(83.32063748,279.59575288)
\lineto(81.54350362,276.1252395)
\lineto(74.38461354,273.12595761)
\lineto(84.8132863,272.65703162)
\lineto(63.28749354,263.6324269)
\lineto(73.7161663,263.16350091)
\lineto(52.19033575,254.13889619)
\lineto(62.6190463,253.66993241)
\lineto(43.86742677,247.01864422)
\lineto(54.29609953,246.54971824)
\lineto(35.54466898,239.89858123)
\lineto(45.97334173,239.42961745)
\lineto(29.66172094,230.17056863)
\lineto(42.8647937,232.07507257)
\lineto(34.20781228,219.97363005)
\lineto(47.74507087,226.85921115)
\lineto(44.30226142,214.52328674)
\lineto(55.73360504,228.99819698)
\lineto(55.0651578,219.03574028)
\lineto(64.05640063,236.11829777)
\lineto(63.38795339,226.15584107)
\lineto(72.37930961,243.23851194)
\lineto(71.71086236,233.27605525)
\lineto(83.47642961,252.73208044)
\lineto(82.80798236,242.76958595)
\lineto(94.57356094,262.22561115)
\lineto(93.9051326,252.26311666)
\lineto(97.70208,258.53675446)
\lineto(98.15232,254.62611509)
\lineto(98.15232,254.62622847)
\lineto(102.29232,262.86378438)
\lineto(104.65020094,242.38411194)
\lineto(108.79020094,250.62166784)
\lineto(111.14808189,230.14195761)
\lineto(115.28808189,238.37951351)
\lineto(116.02154079,220.96027572)
\lineto(120.16152945,229.19783162)
\lineto(120.89490142,211.7787828)
\lineto(125.03490142,220.01633871)
\lineto(129.46272378,203.65529304)
\lineto(131.97820346,214.95347257)
\lineto(142.17065575,203.76962375)
\lineto(139.36734992,217.0700458)
\lineto(151.62973984,210.00482375)
\lineto(139.81277102,224.24929619)
\lineto(150.45064819,220.24473556)
\lineto(134.93940661,233.4308269)
\lineto(145.57728378,229.42622847)
\lineto(130.0659515,242.61250879)
\lineto(140.70382866,238.60791036)
\lineto(123.56807055,254.85462532)
\lineto(134.20594772,250.85006469)
\lineto(118.75422236,266.4628017)
\lineto(122.38913008,265.09446154)
\lineto(137.53801701,249.98330564)
\lineto(135.06698835,260.1148584)
\lineto(152.32458331,241.93121115)
\lineto(149.85355465,252.06276391)
\lineto(167.11114961,233.87915446)
\lineto(164.64012094,244.01070721)
\lineto(178.20117543,227.84007414)
\lineto(175.73014677,237.9716269)
\lineto(189.29099717,221.80106942)
\lineto(186.8199685,231.93262217)
\lineto(202.8420926,218.81463792)
\lineto(196.67431181,230.95924265)
\lineto(213.92208,225.96002375)
\lineto(201.59671181,237.06495603)
\lineto(217.60899024,237.13136233)
\lineto(196.66448126,244.14367099)
\lineto(208.98002268,246.22316706)
\lineto(185.57465575,250.18263792)
\lineto(197.89019717,252.26213399)
\lineto(174.48462614,256.22175603)
\lineto(186.80016378,258.3012521)
\lineto(159.69805984,264.27381273)
\lineto(172.01359748,266.35330879)
\lineto(144.91149732,272.32586942)
\lineto(157.22703118,274.40536548)
\lineto(125.88696189,281.05495288)
\lineto(152.91221291,284.41956391)
\lineto(141.5287748,287.80945997)
\lineto(168.55402961,291.17407099)
\lineto(157.1705915,294.56400485)
\lineto(184.1958463,297.92861588)
\lineto(172.81240819,301.31851194)
\lineto(195.92732598,302.99454343)
\lineto(184.54388031,306.3844395)
\lineto(207.65858268,308.0603954)
\lineto(196.27513701,311.45029147)
\lineto(217.60883906,316.50979383)
\lineto(202.31483717,318.21103477)
\lineto(216.17533984,328.3492395)
\lineto(198.75220535,324.97839225)
\lineto(206.9211515,336.81152611)
\lineto(189.1500737,324.98466627)
\lineto(193.40845606,335.12906942)
\lineto(177.41882079,319.9188143)
\lineto(181.67719937,330.06325525)
\lineto(165.68734866,314.85284895)
\lineto(169.94572724,324.99728989)
\lineto(150.04553197,308.09834186)
\lineto(154.30391055,318.2427828)
\lineto(134.40371528,301.34383477)
\lineto(136.2360378,305.62808044)
}}
\psset{fillstyle=none,linestyle=solid}
\newrgbcolor{curcolor}{0 0 0}
\psset{linewidth=0.37795276,linecolor=curcolor}
{\pscustom{\newpath\moveto(136.2360378,305.62808044)\lineto(155.34195024,319.76154816)}}
{\pscustom{\newpath\moveto(105.67071496,271.71925525)\lineto(142.17067843,203.76962375)}}
{\pscustom{\newpath\moveto(111.55379528,281.44738123)\lineto(213.92207849,225.96002375)}}
{\pscustom{\newpath\moveto(115.58411339,285.40768359)\lineto(216.17533871,328.3492395)}}
{\pscustom{\newpath\moveto(113.78668346,290.36453399)\lineto(110.36681575,363.82093714)\lineto(100.49194583,400.48791792)}}
{\pscustom{\newpath\moveto(118.48243276,293.28338753)\lineto(160.50523465,352.63920485)\lineto(166.11778394,357.46989462)\lineto(191.19508498,379.49293714)}}
{\pscustom{\newpath\moveto(113.78668346,290.36453399)\lineto(22.78526362,349.83490879)}}
{\pscustom{\newpath\moveto(115.58411339,285.40768359)\lineto(53.53830425,290.63450564)\lineto(41.73669543,290.47096548)\lineto(29.70586583,288.75169619)\lineto(0.18897638,274.92289619)}}
{\pscustom{\newpath\moveto(106.68153449,281.06712296)\lineto(34.20783496,219.97374343)}}
{\pscustom{\newpath\moveto(129.46274646,203.65529304)\lineto(130.78527496,224.96510091)\lineto(151.62973984,210.00482375)}}
{\pscustom{\newpath\moveto(120.8949052,211.7787828)\lineto(127.48227402,231.11408989)\lineto(150.45064819,220.24473556)}}
{\pscustom{\newpath\moveto(111.14810457,230.14195761)\lineto(116.08758425,252.3268395)\lineto(140.70382866,238.60791036)}}
{\pscustom{\newpath\moveto(104.65020472,242.38411194)\lineto(109.56680315,264.46615288)\lineto(134.20594772,250.85006469)}}
{\pscustom{\newpath\moveto(108.39238299,274.2211891)\lineto(120.57167244,265.77863162)}}
{\pscustom{\newpath\moveto(137.53803969,249.98330564)\lineto(125.20270488,274.2724395)\lineto(157.22703118,274.40536548)}}
{\pscustom{\newpath\moveto(152.32458331,241.93121115)\lineto(139.9892674,266.2203828)\lineto(172.01359748,266.35330879)}}
{\pscustom{\newpath\moveto(167.11114961,233.87915446)\lineto(154.77582992,258.16832611)\lineto(186.80016378,258.3012521)}}
{\pscustom{\newpath\moveto(178.20117543,227.84007414)\lineto(169.56239622,250.11623162)\lineto(195.49495899,252.66737493)}}
{\pscustom{\newpath\moveto(189.29099717,221.80106942)\lineto(180.65242583,244.07711351)\lineto(208.98002079,246.22316706)}}
{\pscustom{\newpath\moveto(202.84209071,218.81463792)\lineto(188.04570709,240.05108517)\lineto(217.60898872,237.13136233)}}
{\pscustom{\newpath\moveto(152.91221291,284.41956391)\lineto(122.3244548,287.82212139)\lineto(132.04572472,302.52830091)}}
{\pscustom{\newpath\moveto(168.55402961,291.17407099)\lineto(137.96626772,294.57666627)\lineto(154.30391055,318.2427828)}}
{\pscustom{\newpath\moveto(184.1958463,297.92861588)\lineto(153.60808441,301.33117336)\lineto(169.94572724,324.99728989)}}
{\pscustom{\newpath\moveto(195.92732674,302.99454343)\lineto(169.2499011,308.08568044)\lineto(181.67719937,330.06325525)}}
{\pscustom{\newpath\moveto(207.65858079,308.0603954)\lineto(180.98137323,313.1516458)\lineto(193.40845682,335.12906942)}}
{\pscustom{\newpath\moveto(217.60883754,316.50979383)\lineto(188.80228157,316.52888044)\lineto(206.92114885,336.81152611)}}
{\pscustom{\newpath\moveto(154.30391055,318.2427828)\lineto(127.91882835,306.61200485)\lineto(122.91044409,309.95836076)}}
{\pscustom{\newpath\moveto(165.2001789,332.58884895)\lineto(133.39503874,317.36366469)\lineto(131.16455811,340.62068517)}}
{\pscustom{\newpath\moveto(175.05840378,345.41630091)\lineto(145.28656252,331.14333084)\lineto(141.02276409,353.44798595)}}
{\pscustom{\newpath\moveto(184.89773858,354.45987887)\lineto(153.90009071,343.30966784)\lineto(150.8620989,362.49156391)}}
{\pscustom{\newpath\moveto(194.10032693,363.65348517)\lineto(160.50523465,352.63920485)\lineto(160.0646778,371.68525714)}}
{\pscustom{\newpath\moveto(197.2397348,374.27817556)\lineto(166.11777638,357.46989462)\lineto(171.71275465,380.30200548)}}
{\pscustom{\newpath\moveto(117.60357543,392.44430469)\lineto(108.49241575,370.40989714)\lineto(92.16867402,398.74902532)}}
{\pscustom{\newpath\moveto(122.30811213,379.87159666)\lineto(110.36682331,363.82071792)\lineto(88.39522394,388.27781777)}}
{\pscustom{\newpath\moveto(124.57611213,367.90304611)\lineto(110.83235528,352.29897178)\lineto(90.6631937,376.30927855)}}
{\pscustom{\newpath\moveto(127.47843402,355.77700643)\lineto(111.45307465,336.93651509)\lineto(93.56552315,364.18323509)}}
{\pscustom{\newpath\moveto(128.09914961,340.41454973)\lineto(112.07379402,321.5740584)\lineto(94.18624252,348.82074816)}}
{\pscustom{\newpath\moveto(94.80696567,333.45829147)\lineto(112.69451339,306.2116017)\lineto(128.71986898,325.05205525)\lineto(118.48243654,293.28338753)\lineto(113.78668346,290.36453399)}}
{\pscustom{\newpath\moveto(96.26554583,319.86178123)\lineto(105.94152567,294.69889619)\lineto(101.34837543,295.38646784)}}
{\pscustom{\newpath\moveto(82.40618457,329.05124895)\lineto(92.08215307,303.88821273)\lineto(60.17996598,306.29308832)}}
{\pscustom{\newpath\moveto(68.54680441,338.24060328)\lineto(78.22277291,313.07752926)\lineto(46.32058583,315.48244265)}}
{\pscustom{\newpath\moveto(58.15217386,345.13264737)\lineto(64.36339276,322.26688359)\lineto(35.92596661,322.37448674)}}
{\pscustom{\newpath\moveto(47.75771339,352.02446469)\lineto(53.96876598,329.15896548)\lineto(25.53154394,329.26653084)}}
{\pscustom{\newpath\moveto(34.58491465,356.07199855)\lineto(47.03907402,333.75362375)\lineto(17.91510425,339.00327414)}}
{\pscustom{\newpath\moveto(11.09978457,295.7028521)\lineto(29.70586583,288.75169619)\lineto(11.13600378,269.27945682)}}
{\pscustom{\newpath\moveto(23.67231496,301.10357021)\lineto(41.73669543,290.47096548)\lineto(19.33714394,271.65292454)}}
{\pscustom{\newpath\moveto(35.70292535,302.8228395)\lineto(53.53829291,290.63450564)\lineto(31.36776567,273.37219383)}}
{\pscustom{\newpath\moveto(47.73397417,304.54214658)\lineto(69.08601449,289.57446154)\lineto(43.39883339,275.0916143)}}
{\pscustom{\newpath\moveto(63.59434583,305.6076332)\lineto(84.68935559,288.89388202)\lineto(59.25920504,276.15710091)}}
{\pscustom{\newpath\moveto(78.91282394,302.99178438)\lineto(100.04454425,286.52748202)\lineto(82.77876283,275.91441745)}}
{\pscustom{\newpath\moveto(78.91282394,302.99178438)\lineto(113.78668346,290.36453399)\lineto(115.58411339,285.40768359)\lineto(111.5537915,281.44738123)\lineto(101.20466268,280.95037336)\lineto(79.76634709,272.65487729)}}
{\pscustom{\newpath\moveto(74.38463622,273.12607099)\lineto(100.7905852,276.93496548)\lineto(93.90515528,252.26323005)}}
{\pscustom{\newpath\moveto(63.28751622,263.63254028)\lineto(89.69345386,267.44143477)\lineto(82.80802394,242.76969934)}}
{\pscustom{\newpath\moveto(52.19038488,254.13900958)\lineto(78.59633386,257.94790406)\lineto(71.71090394,233.27616863)}}
{\pscustom{\newpath\moveto(43.86746457,247.01875761)\lineto(67.4992063,248.45433556)\lineto(63.38798362,226.15595446)}}
{\pscustom{\newpath\moveto(35.54469543,239.89869462)\lineto(59.17628598,241.33412139)\lineto(55.06521449,219.03585367)}}
{\pscustom{\newpath\moveto(29.66177386,230.17068202)\lineto(53.62772409,236.58737493)\lineto(44.30230299,214.52340013)}}
\end{pspicture}
}%
%-------------------------------------------------------------------------------
\newcommand{\flagIO}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=ukRed](0,0)(24,12)%
%\rput(0,6){\flagUK[12]}%
%\rput(12,6){\includegraphics[width=24cm]{Flags/British-Indian-Ocean-Territory-flag.eps}}%
%
\psframe[fillcolor=white](0,0)(24,12)%
\rput(0,0){\flagIOWave[24]{ukBlue}}
\rput(0,6){\flagUK[12]}%
\rput(17.84,5.6){\psscalebox{1.5}{\flagIOTree}}%
\rput(17.84,2.72){\flagIOCrown[2.8]}%
}}
%-------------------------------------------------------------------------------
%\rput(3,15){\flagIO[2]}
%\rput(4,14.5){\scriptsize{IO @ \number\inputlineno}}
%\rput(0,0){\flagIO[4]}
%===============================================================================

%===============================================================================
% icon Flag CK = Cook Islands 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagCK}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\psset{fillcolor=white}%
\multido{\nA=90+24,\nB=0+24}{15}{%
\uput{4.4}[\nA]{\nB}(18,5.9){\iconStar[1.6]{0.8}}%
}%
}}
%-------------------------------------------------------------------------------
%\rput(3,15){\flagCK[2]}
%\rput(4,14.5){\scriptsize{CK @ \number\inputlineno}}
%\rput(0,0){\flagCK[4]}
%===============================================================================

%===============================================================================
% icon Flag KY = Cayman Islands 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagKY}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
\rput(18,6){\includegraphics[width=6.4381cm]{Flags/pst-Cayman-Islands-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,15){\flagKY[2]}
%\rput(16,14.5){\scriptsize{KY @ \number\inputlineno}}
%\rput(0,0){\flagKY[4]}
%===============================================================================

%===============================================================================
% icon Flag VG = British Virgin Islands 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagVG}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukRed](0,0)(24,12)%
\rput(0,6){\flagUK[12]}%
\rput(18,6){\includegraphics[width=65.296mm]{Flags/pst-British-Virgin-Islands-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagVG[2]}
%\rput(10,16.5){\scriptsize{VG @ \number\inputlineno}}
%\rput(0,0){\flagVG[4]}
%===============================================================================

%===============================================================================
% icon Flag AU = Australia 1:2
%-------------------------------------------------------------------------------
\definecolor{auRed}{HTML}{FF0000}  % RGB = 179,25,66; CYMK = 0,100,66,13
\definecolor{auBlue}{HTML}{00008B} % RGB = 10,49,97;  CYMK = 100,68,0,54
%-------------------------------------------------------------------------------
\newcommand{\flagAU}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ukBlue](0,0)(24,12)
\rput(0,6){\flagUK[12]}
% STAR AUSTRALIA
\psset{fillcolor=white}
\rput(6,3){\iconStarXS[0.8]{1.8}{7}}%
\rput(15,6.744){\iconStarXS[0.38]{0.858}{7}}%
\rput(18,10){\iconStarXS[0.38]{0.858}{7}}%
\rput(20.664,7.55){\iconStarXS[0.38]{0.858}{7}}%
\rput(18,2){\iconStarXS[0.38]{0.858}{7}}%
\rput(19.2,5.496){\iconStarXS[0.222]{0.5}{5}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,21){\flagAU[2]}
%\rput(4,20.5){\scriptsize{AU @ \number\inputlineno}}
%\rput(0,0){\flagAU[4]}
%===============================================================================

%===============================================================================
% icon Flag CX = Christmas Island 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagCX}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(12,6){\includegraphics[width=24cm]{Flags/pst-Christmas-Island-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,13){\flagCX[2]}
%\rput(1,12.5){\scriptsize{KY @ \number\inputlineno}}
%\rput(0,0){\flagCX[4]}
%===============================================================================

%===============================================================================
% icon Flag CC = Cocos (Keeling) Islands 1:2
%-------------------------------------------------------------------------------
\newcommand{\flagCC}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(12,6){\includegraphics[width=24cm]{Flags/pst-Cocos-Keeling-Islands-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,13){\flagCC[2]}
%\rput(4,12.5){\scriptsize{KY @ \number\inputlineno}}
%\rput(0,0){\flagCC[4]}
%===============================================================================

%===============================================================================
% icon Flag BN = Brunei 1:2
%-------------------------------------------------------------------------------
\definecolor{bnRed}{HTML}{EF3340}
\definecolor{bnYellow}{HTML}{FCE300}
%-------------------------------------------------------------------------------
\newcommand{\flagBN}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=ukRed](0,0)(24,12)%
\rput(2,1){\includegraphics[width=4cm]{Flags/pst-Brunei-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagBN[2]}
%\rput(10,16.5){\scriptsize{BN @ \number\inputlineno}}
%\rput(0,0){\flagBN[4]}
%===============================================================================

%===============================================================================
% icon Flag US = United States
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{usRed}{HTML}{B31942}  % RGB = 179,25,66; CYMK = 0,100,66,13
\definecolor{usBlue}{HTML}{0A3161} % RGB = 10,49,97;  CYMK = 100,68,0,54
%-------------------------------------------------------------------------------
\newcommand{\flagUS}[1][4]{%
\FPeval{\wide}{round(#1/8:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

% stripe
\psset{fillcolor=usRed}

% stripe height and y position
\FPeval{\sH}{\fpeval{round(4/13,4)}}
\FPeval{\sHy}{\fpeval{round(4*2/13,4)}}

% star E and F; G and H
\FPeval{\ef}{\fpeval{round(4*7/13,4)}}
\FPset{\gh}{0.26}
\FPeval{\efT}{\fpeval{round(4*7*2/130,4)}}
%\FPeval{\ghT}{\fpeval{round(0.26 * 3,4)}}
% x = 4*6/13 + 4*7/130 = 4/13 * (6 + 0.7)
% xb = 4*6/13 + 4*7/130 = 4/13 * (6 + 1.4)
\FPeval{\efx}{\fpeval{round(4 * 6.7/13,4)}}
\FPeval{\efxb}{\fpeval{round(4 * 7.4/13,4)}}

% stripes
\multido{\nS=0+\sHy}{7}{\rput(0,\nS){\psframe(0,0)(8,\sH)}}
\multido{\nS=\sH+\sHy}{6}{\rput(0,\nS){\psframe[fillcolor=white](0,0)(8,\sH)}}

% star base
% 0.26 * 12 = 3.12
\psframe[fillcolor=usBlue](0,\fpeval{round(\sH * 6,4)})(3.12,4)

% stars

%\psset{fillcolor=white}
%% 6 x 5
%\multido{\neY=\efx+\efT}{5}{%
%\multido{\neX=0.26+0.52}{6}{\rput(\neX,\neY){\pscircle(0,0){0.125}}}}
%% 5 x 4
%\psset{fillcolor=green}
%\multido{\neY=\efxb+\efT}{4}{%
%\multido{\neXb=0.52+0.52}{5}{\rput(\neXb,\neY){\pscircle(0,0){0.125}}}}

\psset{fillcolor=white}
% 6 x 5
\multido{\neY=\efx+\efT}{5}{%
\multido{\neX=0.26+0.52}{6}{\rput(\neX,\neY){\iconStar[0.25]{0.8}}}}
% 5 x 4
\multido{\neY=\efxb+\efT}{4}{%
\multido{\neXb=0.52+0.52}{5}{\rput(\neXb,\neY){\iconStar[0.25]{0.8}}}}

%%%
}} % end \flagUS
%-------------------------------------------------------------------------------
%\rput(6,21){\flagUS[2]}
%\rput(6,20.5){\scriptsize{US @ \number\inputlineno}}
%\rput(0,0){\flagUS[6]}
%===============================================================================

%===============================================================================
% icon Flag AS = American Samoa 10:19
%-------------------------------------------------------------------------------
\definecolor{asBlue}{HTML}{000066}%
\definecolor{asRed}{HTML}{BD1021}%
%-------------------------------------------------------------------------------
\newcommand{\flagAS}[1][4]{%
\FPeval{\wide}{round(#1/20:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=asBlue](0,0)(20,10)%
\pspolygon[fillcolor=asRed](0,5)(20,10)(20,0)%
\pspolygon[fillcolor=white](2,5)(20,9.4642)(20,0.5358)%
\rput(16.5,5){\includegraphics[width=63.581mm]{Flags/pst-American-Samoa-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagAS[2]}
%\rput(1,16.5){\scriptsize{AS @ \number\inputlineno}}
%\rput(0,0){\flagAS[4]}
%===============================================================================

%===============================================================================
% icon Flag AM = Armenia
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{amRed}{HTML}{D90012}
\definecolor{amBlue}{HTML}{0033A0}
\definecolor{amOrange}{HTML}{F2A800}
%-------------------------------------------------------------------------------
\newcommand{\flagAM}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=amRed](0,0)(6,1)
\psframe[fillcolor=amBlue](0,1)(6,2)
\psframe[fillcolor=amOrange](0,2)(6,3)

%%%
}} % end \flagAM
%-------------------------------------------------------------------------------
%\rput(12,21){\flagAM[2]}
%\rput(12,20.5){\scriptsize{AM @ \number\inputlineno}}
%\rput(0,0){\flagAM[6]}
%===============================================================================

%===============================================================================
% icon Flag AT = Austria
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{atRed}{HTML}{C8102E}
%-------------------------------------------------------------------------------
\newcommand{\flagAT}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=atRed](0,0)(9,2)
\psframe[fillcolor=white](0,2)(9,4)
\psframe[fillcolor=atRed](0,4)(9,6)

%%%
}} % end \flagAT
%-------------------------------------------------------------------------------
%\rput(15,21){\flagAT[2]}
%\rput(15,20.5){\scriptsize{AT @ \number\inputlineno}}
%\rput(0,0){\flagAT[6]}
%===============================================================================

%===============================================================================
% icon Flag BG = Bulgaria
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{bgRed}{HTML}{D01C1F}
\definecolor{bgGreen}{HTML}{009B74}
%-------------------------------------------------------------------------------
\newcommand{\flagBG}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=bgRed](0,0)(5,1)
\psframe[fillcolor=bgGreen](0,1)(5,2)
\psframe[fillcolor=white](0,2)(5,3)

%%%
}} % end \flagBG
%-------------------------------------------------------------------------------
%\rput(0,18){\flagBG[2]}
%\rput(1,17.5){\scriptsize{BG @ \number\inputlineno}}
%\rput(0,0){\flagBG[6]}
%===============================================================================

%===============================================================================
% icon Flag FR = France
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{frRed}{HTML}{EF4135}
\definecolor{frBlue}{HTML}{0055A4}
%-------------------------------------------------------------------------------
\newcommand{\flagFR}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=frBlue](0,0)(3,6)
\psframe[fillcolor=white](3,0)(6,6)
\psframe[fillcolor=frRed](6,0)(9,6)

%%%
}} % end \flagFR
%-------------------------------------------------------------------------------
%\rput(3,19){\flagFR[2]}
%\rput(4,18.5){\scriptsize{FR @ \number\inputlineno}}
%\rput(0,0){\flagFR[6]}
%===============================================================================

%===============================================================================
% icon Flag DE = Germany
%-------------------------------------------------------------------------------
% #1  = width               = 2         = icon width
% origin at bottom left
%-------------------------------------------------------------------------------
\definecolor{deRed}{HTML}{FF0000}
\definecolor{deGold}{HTML}{FFCC00}
%-------------------------------------------------------------------------------
\newcommand{\flagDE}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=black](0,2)(5,3)
\psframe[fillcolor=deRed](0,1)(5,2)
\psframe[fillcolor=deGold](0,0)(5,1)

%%%
}} % end \flagDE
%-------------------------------------------------------------------------------
%\rput(6,19){\flagDE[2]}
%\rput(7,18.5){\scriptsize{DE @ \number\inputlineno}}
%\rput(0,0){\flagDE[6]}
%===============================================================================

%===============================================================================
% icon Flag ID = Indonesia
%-------------------------------------------------------------------------------
\definecolor{idRed}{HTML}{FF0000}
%-------------------------------------------------------------------------------
\newcommand{\flagID}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=idRed](0,3)(9,6)
\psframe[fillcolor=white](0,0)(9,3)
}}
%-------------------------------------------------------------------------------
%\rput(9,19){\flagID[2]}
%\rput(10,18.5){\scriptsize{ID @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag IE = Ireland 1:2
%-------------------------------------------------------------------------------
\definecolor{ieOrange}{HTML}{FF883E}
\definecolor{ieGreen}{HTML}{169B62}
%-------------------------------------------------------------------------------
\newcommand{\flagIE}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ieGreen](0,0)(2,3)
\psframe[fillcolor=white](2,0)(4,3)
\psframe[fillcolor=ieOrange](4,0)(6,3)
}}
%-------------------------------------------------------------------------------
%\rput(12,19){\flagIE[2]}
%\rput(13,18.5){\scriptsize{IE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag IT = Italy 2:3
%-------------------------------------------------------------------------------
\definecolor{itRed}{HTML}{CD212A}
\definecolor{itWhite}{HTML}{F4F5F0}
\definecolor{itGreen}{HTML}{008C45}
%-------------------------------------------------------------------------------
\newcommand{\flagIT}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=itGreen](0,0)(3,6)
\psframe[fillcolor=itWhite](3,0)(6,6)
\psframe[fillcolor=itRed](6,0)(9,6)
}}
%-------------------------------------------------------------------------------
%\rput(15,19){\flagIT[2]}
%\rput(16,18.5){\scriptsize{IT @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag NL = Netherlands 2:3
%-------------------------------------------------------------------------------
\definecolor{nlRed}{HTML}{A91F32}
\definecolor{nlBlue}{HTML}{1E4785}
%-------------------------------------------------------------------------------
\newcommand{\flagNL}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=nlRed](0,4)(9,6)
\psframe[fillcolor=white](0,2)(9,4)
\psframe[fillcolor=nlBlue](0,0)(9,2)
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagNL[2]}
%\rput(1,16.5){\scriptsize{NL @ \number\inputlineno}}
%===============================================================================


%===============================================================================
% icon Flag NG = Nigeria 1:2
%-------------------------------------------------------------------------------
\definecolor{ngGreen}{HTML}{008753}
%-------------------------------------------------------------------------------
\newcommand{\flagNG}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ngGreen](0,0)(2,3)
\psframe[fillcolor=white](2,0)(4,3)
\psframe[fillcolor=ngGreen](4,0)(6,3)
}}
%-------------------------------------------------------------------------------
%\rput(3,17){\flagNG[2]}
%\rput(4,16.5){\scriptsize{NG @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag PE = Peru 2:3
%-------------------------------------------------------------------------------
\definecolor{peRed}{HTML}{D91023}
%-------------------------------------------------------------------------------
\newcommand{\flagPE}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=peRed](0,0)(3,6)
\psframe[fillcolor=white](3,0)(6,6)
\psframe[fillcolor=peRed](6,0)(9,6)
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagPE[2]}
%\rput(10,16.5){\scriptsize{PE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag PL = Poland 5:8
%-------------------------------------------------------------------------------
\definecolor{plRed}{HTML}{DC143C}
%-------------------------------------------------------------------------------
\newcommand{\flagPL}[1][4]{%
\FPeval{\wide}{round(#1/8:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,2.5)(8,5)
\psframe[fillcolor=plRed](0,0)(8,2.5)
}}
%-------------------------------------------------------------------------------
%\rput(12,17){\flagPL[2]}
%\rput(13,16.5){\scriptsize{PL @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag CH = Switzerland 1:1
%-------------------------------------------------------------------------------
\definecolor{chRed}{HTML}{FF0000}
%-------------------------------------------------------------------------------
\newcommand{\flagCH}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=chRed](0,0)(5,5)
\psframe[fillcolor=white](2,1)(3,4)
\psframe[fillcolor=white](1,2)(4,3)
}}
%-------------------------------------------------------------------------------
%\rput(15,17){\flagCH[1.2]}
%\rput(16,16.5){\scriptsize{CH @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SY = Syrian Arab Republic (Syria) 2:3
%-------------------------------------------------------------------------------
\definecolor{syRed}{HTML}{ce1126}
\definecolor{syGreen}{HTML}{007a3d}
%-------------------------------------------------------------------------------
\newcommand{\flagSY}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=syRed](0,4)(9,6)
\psframe[fillcolor=white](0,2)(9,4)
\psframe[fillcolor=black](0,0)(9,2)
\psset{fillcolor=syGreen}
\rput(3,2.92){\iconStar[1.7]{0.8}}
\rput(6,2.92){\iconStar[1.7]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(0,14){\flagSY[2]}
%\rput(1,13.5){\scriptsize{SY @ \number\inputlineno}}
%\rput(0,01){\flagSY[9]}
%===============================================================================

%===============================================================================
% icon Flag VN = Vietnam 2:3
%-------------------------------------------------------------------------------
\definecolor{vnRed}{HTML}{da251d}
\definecolor{vnYellow}{HTML}{ffff00}
%-------------------------------------------------------------------------------
\newcommand{\flagVN}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=vnRed](0,0)(3,2)
\psset{fillcolor=vnYellow}
\rput(1.5,1){\iconStar[1.2]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(3,15){\flagVN[2]}
%\rput(4,14.5){\scriptsize{VN @ \number\inputlineno}}
%\rput(0,0){\flagVN[3]}
%===============================================================================

%===============================================================================
% icon Flag YE = Yemen 2:3
%-------------------------------------------------------------------------------
\definecolor{yeRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagYE}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=yeRed](0,4)(9,6)
\psframe[fillcolor=white](0,2)(9,4)
\psframe[fillcolor=black](0,0)(9,2)
}}
%-------------------------------------------------------------------------------
%\rput(6,15){\flagYE[2]}
%\rput(7,14.5){\scriptsize{YE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag UA = Ukraine 2:3
%-------------------------------------------------------------------------------
\definecolor{uaBlue}{HTML}{0057b7}
\definecolor{uaYellow}{HTML}{ffd700}
%-------------------------------------------------------------------------------
\newcommand{\flagUA}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=uaBlue](0,3)(9,6)
\psframe[fillcolor=uaYellow](0,0)(9,3)
}}
%-------------------------------------------------------------------------------
%\rput(9,15){\flagUA[2]}
%\rput(10,14.5){\scriptsize{UA @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag AE = United Arab Emirates 1:2
%-------------------------------------------------------------------------------
\definecolor{aeRed}{HTML}{FF0000}
\definecolor{aeGreen}{HTML}{00843D}
%-------------------------------------------------------------------------------
\newcommand{\flagAE}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=aeGreen](3,4)(12,6)
\psframe[fillcolor=white](3,2)(12,4)
\psframe[fillcolor=black](3,0)(12,2)
\psframe[fillcolor=aeRed](0,0)(3,6)
}}
%-------------------------------------------------------------------------------
%\rput(12,15){\flagAE[2]}
%\rput(13,14.5){\scriptsize{AE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag TH = Thiland 2:3
%-------------------------------------------------------------------------------
\definecolor{thRed}{HTML}{EF3340}
\definecolor{thBlue}{HTML}{00247D}
%-------------------------------------------------------------------------------
\newcommand{\flagTH}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=thRed](0,5)(9,6)
\psframe[fillcolor=white](0,4)(9,5)
\psframe[fillcolor=thBlue](0,2)(9,4)
\psframe[fillcolor=white](0,1)(9,2)
\psframe[fillcolor=thRed](0,0)(9,1)
}}
%-------------------------------------------------------------------------------
%\rput(15,15){\flagTH[2]}
%\rput(16,14.5){\scriptsize{TH @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SE = Sweden 5:8
%-------------------------------------------------------------------------------
\definecolor{seBlue}{HTML}{006AA7}
\definecolor{seYellow}{HTML}{FECC02}
%-------------------------------------------------------------------------------
\newcommand{\flagSE}[1][4]{%
\FPeval{\wide}{round(#1/8:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=seBlue](0,0)(8,5)
\psframe[fillcolor=seYellow](2.5,0)(3.5,5)
\psframe[fillcolor=seYellow](0,2)(8,3)
}}
%-------------------------------------------------------------------------------
%\rput(0,13){\flagSE[2]}
%\rput(1,12.5){\scriptsize{SE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag NO = Norway 8:11
%-------------------------------------------------------------------------------
\definecolor{noBlue}{HTML}{00205B}
\definecolor{noRed}{HTML}{BA0C2F}
%-------------------------------------------------------------------------------
\newcommand{\flagNO}[1][4]{%
\FPeval{\wide}{round(#1/11:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=noRed](0,0)(11,8)
\psframe[fillcolor=white](3,0)(5,8)
\psframe[fillcolor=white](0,3)(11,5)
\psframe[fillcolor=noBlue](3.5,0)(4.5,8)
\psframe[fillcolor=noBlue](0,3.5)(11,4.5)
}}
%-------------------------------------------------------------------------------
%\rput(3,13){\flagNO[2]}
%\rput(4,12.5){\scriptsize{NO @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag IS = Iceland 18:25
%-------------------------------------------------------------------------------
\definecolor{isBlue}{HTML}{02529C}
\definecolor{isRed}{HTML}{DC1E35}
%-------------------------------------------------------------------------------
\newcommand{\flagIS}[1][4]{%
\FPeval{\wide}{round(#1/25:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=isBlue](0,0)(25,18)
\psframe[fillcolor=white](7,0)(11,18)
\psframe[fillcolor=white](0,7)(25,11)
\psframe[fillcolor=isRed](8,0)(10,18)
\psframe[fillcolor=isRed](0,8)(25,10)
}}
%-------------------------------------------------------------------------------
%\rput(6,13){\flagIS[2]}
%\rput(7,12.5){\scriptsize{IS @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag FI = Finland 11:18
%-------------------------------------------------------------------------------
\definecolor{fiBlue}{HTML}{002F6C}
%-------------------------------------------------------------------------------
\newcommand{\flagFI}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(18,11)
\psframe[fillcolor=fiBlue](0,4)(18,7)
\psframe[fillcolor=fiBlue](5,0)(8,11)
}}
%-------------------------------------------------------------------------------
%\rput(9,13){\flagFI[2]}
%\rput(10,12.5){\scriptsize{FI @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag DK = Denmark 28:37
%-------------------------------------------------------------------------------
\definecolor{dkRed}{HTML}{C8102E}
%-------------------------------------------------------------------------------
\newcommand{\flagDK}[1][4]{%
\FPeval{\wide}{round(#1/37:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=dkRed](0,0)(37,28)
\psframe[fillcolor=white](0,12)(37,16)
\psframe[fillcolor=white](12,0)(16,28)
}}
%-------------------------------------------------------------------------------
%\rput(12,13){\flagDK[2]}
%\rput(13,12.5){\scriptsize{DK @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag BD = Bangladesh 3:5
%-------------------------------------------------------------------------------
\definecolor{bdGreen}{HTML}{006A4E}
\definecolor{bdRed}{HTML}{F42A41}
%-------------------------------------------------------------------------------
\newcommand{\flagBD}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bdGreen](0,0)(10,6)
\pscircle[fillcolor=bdRed](4.5,3){2}
}}
%-------------------------------------------------------------------------------
%\rput(15,13){\flagBD[2]}
%\rput(16,12.5){\scriptsize{BD @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag BH = Bahrain 3:5
%-------------------------------------------------------------------------------
\definecolor{bhRed}{HTML}{F21731}
%-------------------------------------------------------------------------------
\newcommand{\flagBH}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(10,6)
\pspolygon[fillcolor=bhRed](2.5,0)(4,0.6)(2.5,1.2)(4,1.8)(2.5,2.4)(4,3)(2.5,3.6) (4,4.2)(2.5,4.8)(4,5.4)(2.5,6)(10,6)(10,0)
}}
%-------------------------------------------------------------------------------
%\rput(0,11){\flagBH[2]}
%\rput(1,10.5){\scriptsize{BH @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag BEO = Belgium Original 13:15
%-------------------------------------------------------------------------------
\definecolor{beRed}{HTML}{EF3340}
\definecolor{beYellow}{HTML}{FDDA24}
%-------------------------------------------------------------------------------
\newcommand{\flagBEO}[1][4]{%
\FPeval{\wide}{round(#1/15:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,0)(5,13)
\psframe[fillcolor=beYellow](5,0)(10,13)
\psframe[fillcolor=beRed](10,0)(15,13)
}}
%-------------------------------------------------------------------------------
%\rput(3,11){\flagBEO[2]}
%\rput(4,10.5){\scriptsize{BE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag BE = Belgium 2:3
%-------------------------------------------------------------------------------
\definecolor{beRed}{HTML}{EF3340}
\definecolor{beYellow}{HTML}{FDDA24}
%-------------------------------------------------------------------------------
\newcommand{\flagBE}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,0)(3,6)
\psframe[fillcolor=beYellow](3,0)(6,6)
\psframe[fillcolor=beRed](6,0)(9,6)
}}
%-------------------------------------------------------------------------------
%\rput(3,11){\flagBE[2]}
%\rput(4,10.5){\scriptsize{BE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag CA = Canada 1:2
%-------------------------------------------------------------------------------
\definecolor{caRed}{HTML}{D80621}
%-------------------------------------------------------------------------------
\newcommand{\flagCA}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=caRed](0,0)(1,2)
\psframe[fillcolor=white](1,0)(3,2)
\psframe[fillcolor=caRed](3,0)(4,2)
%
\rput(1.2293,0.16255){\psscalebox{1.5}{%
\pscustom[unit=0.5pt,linestyle=none,fillstyle=solid,fillcolor=caRed]{%
\newpath
\moveto(27.85008938,0.56158376)
\curveto(27.84824935,0.87045432)(27.99544132,4.03878696)(28.17720334,7.60232099)
\lineto(28.50767805,14.08147483)
\lineto(28.20453537,14.49110872)
\curveto(27.53050643,15.40191705)(27.75595703,15.41331497)(20.25893468,14.08941184)
\curveto(16.49950622,13.42553177)(13.40025617,12.9057099)(13.37171506,12.93425176)
\curveto(13.34317963,12.96278719)(13.7341642,14.13715974)(14.24058122,15.5439517)
\curveto(14.8388759,17.20596797)(15.13061424,18.22419198)(15.07360195,18.45134802)
\curveto(15.01532164,18.68353196)(12.46946812,20.83672695)(7.49293011,24.86280107)
\lineto(0,30.92466317)
\lineto(1.79635089,31.77570095)
\curveto(3.19881717,32.44013348)(3.62529302,32.71246224)(3.74133888,33.01768789)
\curveto(3.86450613,33.34164216)(3.68599904,34.04269309)(2.69969389,37.1086062)
\curveto(2.04503814,39.14359004)(1.37151725,41.20712632)(1.20298017,41.6942462)
\curveto(1.03444348,42.18136381)(0.91357041,42.59519903)(0.9343767,42.61387972)
\curveto(0.95516411,42.63255059)(2.82543764,42.2513172)(5.09050098,41.76667102)
\curveto(7.35556393,41.28202559)(9.38237379,40.885038)(9.59452283,40.88447523)
\curveto(10.15852284,40.88297513)(10.4931229,41.35491189)(11.29264077,43.27955393)
\curveto(11.68612096,44.22676176)(12.05411694,45.05091081)(12.11040771,45.11099585)
\curveto(12.16669621,45.17108655)(13.71511274,43.60430795)(15.55132782,41.62927725)
\curveto(17.6111817,39.41370381)(19.03334764,38.00230952)(19.2644238,37.94431494)
\curveto(19.76741127,37.81807116)(20.33959131,38.09983494)(20.51450936,38.55990172)
\curveto(20.62422526,38.84848377)(20.2826429,40.86374565)(19.04195287,47.24760475)
\curveto(18.15347664,51.81918377)(17.43937987,55.55956605)(17.45507171,55.55956605)
\curveto(17.47075675,55.55956605)(18.65243891,54.88566305)(20.08101606,54.06200383)
\curveto(21.50959472,53.23834385)(22.81696091,52.56444085)(22.98627506,52.56444085)
\curveto(23.15559034,52.56444085)(23.42755909,52.65790101)(23.590651,52.77214101)
\curveto(23.75374518,52.88637723)(25.06553152,55.30279893)(26.5057342,58.14197213)
\lineto(29.12428662,63.30410385)
\lineto(31.71484511,58.19634593)
\curveto(33.13965169,55.38708013)(34.44485221,52.97065616)(34.61529001,52.82651594)
\curveto(34.7857278,52.6823761)(35.0701656,52.5644435)(35.24737669,52.5644435)
\curveto(35.4245874,52.5644435)(36.7312317,53.23108262)(38.15103317,54.0458626)
\curveto(39.84955476,55.02059257)(40.73248794,55.45201468)(40.73248794,55.3072206)
\curveto(40.73248794,55.18618879)(40.0264238,51.45364336)(39.16345598,47.01267839)
\curveto(37.95607606,40.79932322)(37.62746163,38.85129687)(37.7377645,38.56118033)
\curveto(37.91281332,38.10076659)(38.48462901,37.81789503)(38.98594404,37.94371739)
\curveto(39.21351696,38.00083362)(40.6568989,39.43129259)(42.70160595,41.62611114)
\curveto(44.54054985,43.60006052)(46.09004089,45.16710369)(46.14491887,45.10843068)
\curveto(46.19979761,45.04976107)(46.56663667,44.2267644)(46.96011687,43.27955658)
\curveto(47.75963587,41.35491454)(48.0942348,40.88298458)(48.65823481,40.88447787)
\curveto(48.87038347,40.88507655)(50.8971937,41.28202824)(53.16225666,41.76667366)
\curveto(55.42732,42.25131946)(57.29354377,42.63659544)(57.30942081,42.62284363)
\curveto(57.32529482,42.60908615)(56.666694,40.53580171)(55.8458577,38.01553447)
\curveto(54.57844679,34.12411372)(54.3765448,33.37243322)(54.50674273,33.02998704)
\curveto(54.62864005,32.70937538)(55.0285307,32.45234577)(56.45818199,31.7757036)
\lineto(58.25630964,30.92466582)
\lineto(50.76125392,24.85953745)
\curveto(45.83712586,20.87484839)(43.23622088,18.67561536)(43.1788057,18.44808666)
\curveto(43.12240759,18.22456918)(43.41791374,17.19477339)(44.01217567,15.54395434)
\curveto(44.51859381,14.13716239)(44.90958368,12.96279664)(44.88104182,12.93425441)
\curveto(44.85250638,12.90571897)(41.75325066,13.42553441)(37.9938222,14.08941448)
\curveto(30.4938644,15.41383541)(30.72260062,15.40236152)(30.0459914,14.48812365)
\lineto(29.74061578,14.07550053)
\lineto(30.07364507,7.59933667)
\curveto(30.25681194,4.0374456)(30.40501667,0.87045848)(30.40299046,0.56158641)
\lineto(30.39931045,0.00000039)
\lineto(29.12638237,0.00000039)
\lineto(27.85345426,0.00000039)
\lineto(27.85010427,0.56158641)
\closepath}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,11){\flagCA[2]}
%\rput(7,10.5){\scriptsize{CA @ \number\inputlineno}}
%\rput(0,0){\flagCA[4]}
%===============================================================================

%===============================================================================
% icon Flag CN = China 2:3
%-------------------------------------------------------------------------------
\definecolor{cnRed}{HTML}{ee1c25}
\definecolor{cnYellow}{HTML}{ffff00}
%-------------------------------------------------------------------------------
\newcommand{\flagCN}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=cnRed](0,0)(3,2)
\psset{fillcolor=cnYellow}
\rput(0.5,1.5){\iconStar[0.6]{0.8}}
\rput{-18}(1,1.8){\iconStar[0.2]{0.8}}
\rput{-18}(1,1.1){\iconStar[0.2]{0.8}}
\rput{-36}(1.2,1.6){\iconStar[0.2]{0.8}}
\rput(1.2,1.3){\iconStar[0.2]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(9,11){\flagCN[2]}
%\rput(10,10.5){\scriptsize{CN @ \number\inputlineno}}
%\rput(0,0){\flagCN[6]}
%===============================================================================

%===============================================================================
% icon Flag CO = Colombia 2:3
%-------------------------------------------------------------------------------
\definecolor{coRed}{HTML}{CE1126}
\definecolor{coBlue}{HTML}{003893}
\definecolor{coYellow}{HTML}{FCD116}
%-------------------------------------------------------------------------------
\newcommand{\flagCO}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=coYellow](0,1)(3,2)
\psframe[fillcolor=coBlue](0,0.5)(3,1)
\psframe[fillcolor=coRed](0,0)(3,0.5)
}}
%-------------------------------------------------------------------------------
%\rput(12,11){\flagCO[2]}
%\rput(13,10.5){\scriptsize{CO @ \number\inputlineno}}
%\rput(0,0){\flagCN[6]}
%===============================================================================

%===============================================================================
% icon Flag CU = Cuba 1:2
%-------------------------------------------------------------------------------
\definecolor{cuRed}{HTML}{CC0D0D}
\definecolor{cuBlue}{HTML}{002590}
%-------------------------------------------------------------------------------
\newcommand{\flagCU}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%

\psframe[fillcolor=cuBlue](0,1.2)(3,1.5)
\psframe[fillcolor=white](0,0.9)(3,1.2)
\psframe[fillcolor=cuBlue](0,0.6)(3,0.9)
\psframe[fillcolor=white](0,0.3)(3,0.6)
\psframe[fillcolor=cuBlue](0,0)(3,0.3)
\pspolygon[fillcolor=cuRed](0,0)(0,1.5)(1.299038,0.75)
\psset{fillcolor=white}
\rput(0.4330127,0.75){\iconStar[0.5]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(15,11){\flagCU[2]}
%\rput(16,10.5){\scriptsize{CU @ \number\inputlineno}}
%\rput(0,0){\flagCN[6]}
%===============================================================================

%===============================================================================
% icon Flag CZ = Czech Republic 2:3
%-------------------------------------------------------------------------------
\definecolor{czRed}{HTML}{D7141A}
\definecolor{czBlue}{HTML}{11457E}
%-------------------------------------------------------------------------------
\newcommand{\flagCZ}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0.75)(3,1.5)
\psframe[fillcolor=czRed](0,0)(3,0.75)
\pspolygon[fillcolor=czBlue](0,0)(0,1.5)(1.299038,0.75)
}}
%-------------------------------------------------------------------------------
%\rput(0,9){\flagCZ[2]}
%\rput(1,8.5){\scriptsize{CZ @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag DJ = Djibouti 2:3
%-------------------------------------------------------------------------------
\definecolor{djRed}{HTML}{D7141A}
\definecolor{djBlue}{HTML}{6AB2E7}
\definecolor{djGreen}{HTML}{12AD2B}
%-------------------------------------------------------------------------------
\newcommand{\flagDJ}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=djBlue](0,0.75)(3,1.5)
\psframe[fillcolor=djGreen](0,0)(3,0.75)
\pspolygon[fillcolor=white](0,0)(0,1.5)(1.299038,0.75)
\psset{fillcolor=djRed}
\rput(0.4330127,0.75){\iconStar[0.5]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(3,9){\flagDJ[2]}
%\rput(4,8.5){\scriptsize{DJ @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag GY = Guyana 3:5
%-------------------------------------------------------------------------------
\definecolor{gyRed}{HTML}{EF3340}
\definecolor{gyYellow}{HTML}{FFD100}
\definecolor{gyGreen}{HTML}{009739}
%-------------------------------------------------------------------------------
\newcommand{\flagGY}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=gyGreen](0,0)(5,3)
\pspolygon[fillcolor=white](0,0)(0,3)(5,1.5)
\pspolygon[fillcolor=gyYellow](0,0.1)(0,2.9)(4.8,1.5)
% h = a * sqrt(3) /2
\pspolygon[fillcolor=black](0,0)(0,3)(2.598076,1.5)
\pspolygon[fillcolor=gyRed](0,0.1)(0,2.9)(2.398076,1.5)
}}
%-------------------------------------------------------------------------------
%\rput(3,9){\flagGY[2]}
%\rput(4,8.5){\scriptsize{GY @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag HU = Hungarya 1:2
%-------------------------------------------------------------------------------
\definecolor{huRed}{HTML}{CE2939}
\definecolor{huGreen}{HTML}{477050}
%-------------------------------------------------------------------------------
\newcommand{\flagHU}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=huRed](0,2)(6,3)
\psframe[fillcolor=white](0,1)(6,2)
\psframe[fillcolor=huGreen](0,0)(6,1)
}}
%-------------------------------------------------------------------------------
%\rput(6,9){\flagHU[2]}
%\rput(7,8.5){\scriptsize{HU @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag LV = Latvia 1:2
%-------------------------------------------------------------------------------
\definecolor{lvRed}{HTML}{9D2235}
%-------------------------------------------------------------------------------
\newcommand{\flagLV}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=lvRed](0,3)(10,5)
\psframe[fillcolor=white](0,2)(10,3)
\psframe[fillcolor=lvRed](0,0)(10,2)
}}
%-------------------------------------------------------------------------------
%\rput(9,9){\flagLV[2]}
%\rput(10,8.5){\scriptsize{LV @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag LT = Lithuania 3:5
%-------------------------------------------------------------------------------
\definecolor{ltYellow}{HTML}{FDB913}
\definecolor{ltGreen}{HTML}{006A44}
\definecolor{ltRed}{HTML}{C1272D}
%-------------------------------------------------------------------------------
\newcommand{\flagLT}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ltYellow](0,2)(5,3)
\psframe[fillcolor=ltGreen](0,1)(5,2)
\psframe[fillcolor=ltRed](0,0)(5,1)
}}
%-------------------------------------------------------------------------------
%\rput(12,9){\flagLT[2]}
%\rput(13,8.5){\scriptsize{LT @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag LU = Luxembourg 3:5
%-------------------------------------------------------------------------------
\definecolor{luRed}{HTML}{EF3340}
\definecolor{luBlue}{HTML}{00A3E0}
%-------------------------------------------------------------------------------
\newcommand{\flagLU}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=luRed](0,2)(5,3)
\psframe[fillcolor=white](0,1)(5,2)
\psframe[fillcolor=luBlue](0,0)(5,1)
}}
%-------------------------------------------------------------------------------
%\rput(15,9){\flagLU[2]}
%\rput(16,8.5){\scriptsize{LU @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag ML = Mali 2:3
%-------------------------------------------------------------------------------
\definecolor{mlGreen}{HTML}{14B53A}
\definecolor{mlYellow}{HTML}{FCD116}
\definecolor{mlRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagML}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mlGreen](2,0)(3,2)
\psframe[fillcolor=mlYellow](1,0)(2,2)
\psframe[fillcolor=mlRed](0,0)(1,2)
}}
%-------------------------------------------------------------------------------
%\rput(0,7){\flagML[2]}
%\rput(1,6.5){\scriptsize{ML @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag MU = Mauritius 2:3
%-------------------------------------------------------------------------------
\definecolor{muRed}{HTML}{EB2436}
\definecolor{muBlue}{HTML}{131A6D}
\definecolor{muYellow}{HTML}{FFD600}
\definecolor{muGreen}{HTML}{00A650}
%-------------------------------------------------------------------------------
\newcommand{\flagMU}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=muRed](0,3)(6,4)
\psframe[fillcolor=muBlue](0,2)(6,3)
\psframe[fillcolor=muYellow](0,1)(6,2)
\psframe[fillcolor=muGreen](0,0)(6,1)
}}
%-------------------------------------------------------------------------------
%\rput(3,7){\flagMU[2]}
%\rput(4,6.5){\scriptsize{MU @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag MC = Monaco 4:5
%-------------------------------------------------------------------------------
\definecolor{mcRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagMC}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mcRed](0,2)(5,4)
\psframe[fillcolor=white](0,0)(5,2)
}}
%-------------------------------------------------------------------------------
%\rput(6,7){\flagMC[2]}
%\rput(7,6.5){\scriptsize{MC @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag NE = Niger 6:7
%-------------------------------------------------------------------------------
\definecolor{neRed}{HTML}{E05206}
\definecolor{neGreen}{HTML}{0DB02B}
%-------------------------------------------------------------------------------
\newcommand{\flagNE}[1][4]{%
\FPeval{\wide}{round(#1/7:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=neRed](0,4)(7,6)
\psframe[fillcolor=white](0,2)(7,4)
\psframe[fillcolor=neGreen](0,0)(7,2)
\pscircle[fillcolor=neRed](3.5,3){0.9}
}}
%-------------------------------------------------------------------------------
%\rput(9,7){\flagNE[1.6]}
%\rput(10,6.5){\scriptsize{NE @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag RO = Romania 2:3
%-------------------------------------------------------------------------------
\definecolor{roBlue}{HTML}{002B7F}
\definecolor{roYellow}{HTML}{FCD116}
\definecolor{roRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagRO}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=roRed](2,0)(3,2)
\psframe[fillcolor=roYellow](1,0)(2,2)
\psframe[fillcolor=roBlue](0,0)(1,2)
}}
%-------------------------------------------------------------------------------
%\rput(12,7){\flagRO[2]}
%\rput(13,6.5){\scriptsize{RO @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SL = Sierra Leone 2:3
%-------------------------------------------------------------------------------
\definecolor{slBlue}{HTML}{0072C6}
\definecolor{slGreen}{HTML}{1EB53A}
%-------------------------------------------------------------------------------
\newcommand{\flagSL}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=slGreen](0,4)(9,6)
\psframe[fillcolor=white](0,2)(9,4)
\psframe[fillcolor=slBlue](0,0)(9,2)
}}
%-------------------------------------------------------------------------------
%\rput(15,7){\flagSL[2]}
%\rput(14,6.5){\scriptsize{SL @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag JM = Jamaica 1:2
%-------------------------------------------------------------------------------
\definecolor{jmYellow}{HTML}{FED100}
\definecolor{jmGreen}{HTML}{009B3A}
%-------------------------------------------------------------------------------
\newcommand{\flagJM}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=jmYellow](0,0)(12,6)
\pspolygon[fillcolor=black](0,1.1)(0,4.9)(3.75,3)
\pspolygon[fillcolor=black](12,1.1)(12,4.9)(8.25,3)
\pspolygon[fillcolor=jmGreen](2.25,0)(9.75,0)(6,1.88)
\pspolygon[fillcolor=jmGreen](2.25,6)(9.75,6)(6,4.12)
}}
%-------------------------------------------------------------------------------
%\rput(3,5){\flagJM[2]}
%\rput(4,4.5){\scriptsize{JM @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag PR = Puerto Rico 2:3
%-------------------------------------------------------------------------------
\definecolor{prRed}{HTML}{E92228}
\definecolor{prBlue}{HTML}{3A5EAB}
%-------------------------------------------------------------------------------
\newcommand{\flagPR}[1][4]{%
\FPeval{\wide}{round(#1/15:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=prRed](0,8)(15,10)
\psframe[fillcolor=white](0,6)(15,8)
\psframe[fillcolor=prRed](0,4)(15,6)
\psframe[fillcolor=white](0,2)(15,4)
\psframe[fillcolor=prRed](0,0)(15,2)
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3
\pspolygon[fillcolor=prBlue](0,0)(0,10)(8.660254,5)
\psset{fillcolor=white}
\rput(2.88675134,5){\iconStar[3.4]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(6,5){\flagPR[2]}
%\rput(7,4.5){\scriptsize{PR @ \number\inputlineno}}
%\rput(0,0){\flagPR[6]}
%===============================================================================

%===============================================================================
% icon Flag JO = Jordan 1:2
%-------------------------------------------------------------------------------
\definecolor{joRed}{HTML}{ce1126}
\definecolor{joGreen}{HTML}{007a3d}
%-------------------------------------------------------------------------------
\newcommand{\flagJO}[1][4]{%
\FPeval{\wide}{round(#1/84:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,28)(84,42)
\psframe[fillcolor=white](0,14)(84,28)
\psframe[fillcolor=joGreen](0,0)(84,14)
\pspolygon[fillcolor=joRed](0,0)(0,42)(42,21)
\psset{fillcolor=white}
%\rput(12.97871376,21){\iconStar[6]{0.8}}
\rput(12.97871376,21){\iconStarXS[1.5]{3}{7}}
}}
%-------------------------------------------------------------------------------
%\rput(9,5){\flagJO[2]}
%\rput(10,4.5){\scriptsize{JO @ \number\inputlineno}}
%\rput(0,0){\flagJO[4]}
%===============================================================================

%===============================================================================
% icon Flag PS = Palestine 1:2
%-------------------------------------------------------------------------------
\definecolor{psRed}{HTML}{EE2A35}
\definecolor{psGreen}{HTML}{009736}
%-------------------------------------------------------------------------------
\newcommand{\flagPS}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,2)(6,3)
\psframe[fillcolor=white](0,1)(6,2)
\psframe[fillcolor=psGreen](0,0)(6,1)
\pspolygon[fillcolor=psRed](0,0)(0,3)(2,1.5)
}}
%-------------------------------------------------------------------------------
%\rput(12,5){\flagPS[2]}
%\rput(13,4.5){\scriptsize{PS @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SD = Sudan 1:2
%-------------------------------------------------------------------------------
\definecolor{sdRed}{HTML}{D21034}
\definecolor{sdGreen}{HTML}{007229}
%-------------------------------------------------------------------------------
\newcommand{\flagSD}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=sdRed](0,2)(6,3)
\psframe[fillcolor=white](0,1)(6,2)
\psframe[fillcolor=black](0,0)(6,1)
\pspolygon[fillcolor=sdGreen](0,0)(0,3)(2,1.5)
}}
%-------------------------------------------------------------------------------
%\rput(9,3){\flagSD[2]}
%\rput(10,2.5){\scriptsize{SD @ \number\inputlineno}}

%===============================================================================

%===============================================================================
% icon Flag SS = South Sudan 1:2
%-------------------------------------------------------------------------------
\definecolor{ssRed}{HTML}{DB0A13}
\definecolor{ssGreen}{HTML}{018A2C}
\definecolor{ssBlue}{HTML}{0645B1}
\definecolor{ssYellow}{HTML}{FCDE02}
%-------------------------------------------------------------------------------
\newcommand{\flagSS}[1][4]{%
\FPeval{\wide}{round(#1/114:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,40)(114,57)
\psframe[fillcolor=white](0,37)(114,40)
\psframe[fillcolor=ssRed](0,20)(114,37)
\psframe[fillcolor=white](0,17)(114,20)
\psframe[fillcolor=ssGreen](0,0)(114,17)
\pspolygon[fillcolor=ssBlue](0,0)(0,57)(49.363448,28.5)
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3 = tan(30) * base / 2
\psset{fillcolor=ssYellow}
\rput{90}(16.45448,28.5){\iconStarXS[3.8]{9.5}{5}}
}}
%-------------------------------------------------------------------------------
%\rput(15,5){\flagSS[2]}
%\rput(16,4.5){\scriptsize{SS @ \number\inputlineno}}
%\rput(0,0){\flagSS[4]}
%===============================================================================

%===============================================================================
% icon Flag MZ = Mozambique 2:3
%-------------------------------------------------------------------------------
\definecolor{mzRed}{HTML}{E4002B}
\definecolor{mzGreen}{HTML}{009739}
\definecolor{mzYellow}{HTML}{FFD100}
%-------------------------------------------------------------------------------
\newcommand{\flagMZ}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mzGreen](0,4.2)(9,6)
\psframe[fillcolor=white](0,3.9)(9,4.2)
\psframe[fillcolor=black](0,2.1)(9,3.9)
\psframe[fillcolor=white](0,1.8)(9,2.1)
\psframe[fillcolor=mzYellow](0,0)(9,1.8)
\pspolygon[fillcolor=mzRed](0,0)(0,6)(5.19615,3)
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3 = tan(30) * base / 2
\psset{fillcolor=ssYellow}
\rput(1.73205,2.9){\iconStarXS[0.52]{1.3}{5}}
%
% Book
\rput(1.12055,2.3){\psscalebox{1.5}{%
\pscustom[unit=0.5pt,linestyle=solid,linewidth=0.4pt,fillstyle=solid,fillcolor=white]
{
\newpath
\moveto(29.36693,25.70116)
\curveto(31.26425,23.35786)(33.37323,21.24132)(35.26677,18.89802)
\curveto(36.42709,17.61298)(37.50803,16.40353)(38.64189,15.19408)
\curveto(39.73417,14.02242)(40.73953,12.624)(41.82803,11.56573)
\curveto(42.48189,9.94053)(42.41386,12.73739)(41.82803,13.34211)
\curveto(41.60126,14.70274)(41.35559,16.02557)(41.04567,17.3862)
\curveto(40.85669,18.70904)(40.4863,19.99408)(40.36157,21.31691)
\curveto(39.98362,22.52636)(39.96094,24.37833)(38.78929,24.94526)
\lineto(36.66898,24.94526)
\curveto(36.06047,25.54998)(35.00976,25.77676)(34.05732,25.70116)
\lineto(29.34425,25.70116)
\closepath
\moveto(11.94709,25.70116)
\curveto(10.65827,25.32321)(9.4526,24.90746)(8.16378,24.83187)
\curveto(7.25291,24.83187)(6.47055,24.83187)(6.60283,23.62242)
\curveto(6.41386,22.29959)(6.15685,21.09014)(5.75244,19.8051)
\curveto(5.17039,17.34841)(7.46079,20.18305)(8.31874,20.67439)
\curveto(9.55843,21.80825)(10.76409,22.79093)(12.0189,23.66022)
\curveto(12.46488,24.26494)(15.05008,25.51219)(13.42866,25.70116)
\lineto(11.94709,25.70116)
\closepath
\moveto(24.2948,24.49172)
\curveto(23.49354,22.9799)(23.99244,20.93896)(23.74299,19.23817)
\curveto(23.59181,18.33109)(23.36126,16.97046)(23.62961,16.21455)
\lineto(28.58457,16.21455)
\curveto(28.54677,14.28699)(28.69795,12.32164)(28.47118,10.39408)
\curveto(28.09323,9.86494)(27.16346,9.52479)(26.33953,9.63817)
\lineto(23.48598,9.63817)
\lineto(23.48598,7.33266)
\curveto(23.78835,9.52479)(23.05512,4.87597)(24.10205,6.27439)
\lineto(26.58142,6.27439)
\curveto(26.95937,6.87912)(27.84378,6.27439)(28.47118,6.65235)
\lineto(32.31118,6.65235)
\curveto(34.79433,6.65235)(37.34551,7.0303)(39.79087,6.65235)
\curveto(40.22929,7.0303)(38.0863,8.80668)(37.48535,9.60038)
\curveto(36.7748,10.84762)(35.38016,11.30116)(34.75276,12.69959)
\curveto(33.67937,14.02242)(32.41701,15.53424)(31.15087,16.81928)
\curveto(30.03591,18.29329)(28.76598,19.61613)(27.49984,20.93896)
\curveto(26.39622,22.11061)(25.60252,23.66022)(24.28724,24.49172)
\closepath
\moveto(5.43496,23.58463)
\curveto(3.99496,22.90431)(4.28976,21.20353)(3.88535,19.91849)
\curveto(3.69638,18.97361)(3.08409,17.57518)(3.12567,16.97046)
\curveto(4.13858,17.65077)(4.34646,18.82242)(4.44472,19.91849)
\curveto(4.78488,21.09014)(5.03433,22.45077)(5.41606,23.50904)
\curveto(5.45386,23.50904)(5.68063,23.50904)(5.41606,23.50904)
\closepath
\moveto(41.15906,22.90431)
\curveto(41.49921,21.61928)(41.69197,20.33424)(41.8885,19.0492)
\curveto(42.39118,17.87754)(42.42898,16.66809)(42.79181,15.49644)
\curveto(42.9052,14.06022)(43.45323,12.92636)(43.47969,11.56573)
\curveto(43.93323,10.39408)(43.78205,8.92006)(45.03685,8.08857)
\curveto(45.59244,7.71061)(46.38992,5.4051)(46.2274,6.9925)
\curveto(45.72472,7.89959)(45.6189,8.99565)(45.25606,9.86494)
\curveto(45.06709,10.77203)(44.81764,11.52794)(44.64,12.39723)
\curveto(44.23559,13.26652)(44.1978,14.40038)(43.68756,15.23187)
\curveto(43.49858,16.29014)(43.22646,17.23502)(42.91276,18.2177)
\curveto(42.72378,19.20038)(42.33827,20.18305)(42.21732,21.27912)
\curveto(41.71843,21.65707)(41.91496,22.67754)(41.15906,22.90431)
\closepath
\moveto(22.09134,22.224)
\curveto(21.44504,21.24132)(19.55528,20.14526)(19.06016,20.44762)
\curveto(18.6822,19.69172)(16.85291,20.44762)(16.67528,19.0492)
\curveto(16.19528,18.1799)(17.48409,17.23502)(18.28913,17.31061)
\curveto(19.06394,17.31061)(19.42677,16.70589)(20.29606,16.93266)
\lineto(22.17449,16.93266)
\curveto(22.25008,14.74053)(22.76787,17.61298)(22.58268,18.48227)
\curveto(22.31811,19.50274)(23.14583,21.92164)(22.09134,22.224)
\closepath
\moveto(11.96976,13.30431)
\curveto(12.04535,12.51061)(13.67811,11.49014)(12.41953,10.54526)
\curveto(11.65228,9.18463)(9.18803,8.20195)(10.08756,6.34998)
\curveto(10.08756,5.63187)(10.82457,5.70746)(10.73764,4.68699)
\curveto(10.96441,3.70431)(10.73764,2.64605)(12.19276,3.024)
\lineto(18.34205,3.024)
\curveto(19.02992,3.70431)(19.79339,4.42242)(20.59087,4.80038)
\curveto(21.07087,5.4429)(22.14425,5.29172)(21.97417,6.50116)
\curveto(23.11181,6.91691)(22.63937,8.84447)(22.71496,10.12951)
\curveto(23.12693,11.49014)(22.02709,11.45235)(21.11244,11.37676)
\lineto(18.79181,11.37676)
\curveto(18.3685,11.7925)(17.72598,12.13266)(17.02299,12.13266)
\curveto(16.07433,12.13266)(15.20126,12.13266)(14.46047,12.92636)
\curveto(13.79906,12.92636)(13.59118,13.53109)(12.75969,13.30431)
\lineto(11.96976,13.30431)
\closepath
\moveto(10.92661,3.024)
\curveto(10.34835,3.024)(9.29008,3.40195)(9.62268,2.38148)
\curveto(9.54709,1.32321)(10.85102,2.75943)(10.92661,3.024)
\closepath
\moveto(5.10614,5.85865)
\curveto(4.36157,5.4051)(2.91402,6.2366)(2.39622,5.21613)
\curveto(1.9011,4.00668)(0.78236,3.13739)(0.04535,2.11691)
\curveto(-0.14362,1.36101)(1.11496,1.73896)(1.5874,1.73896)
\lineto(7.3474,1.73896)
\curveto(7.3852,2.79723)(6.48945,3.7799)(6.36472,4.80038)
\curveto(6.25134,5.59408)(6.02457,5.93424)(5.10614,5.85865)
\closepath
\moveto(17.93386,5.85865)
\curveto(19.3663,5.85865)(18.5348,5.17833)(17.93386,5.85865)
\closepath
\moveto(28.05543,4.83817)
\curveto(27.42047,4.34683)(26.63433,4.46022)(25.86709,4.46022)
\curveto(24.30614,4.83817)(25.28126,3.8177)(26.09386,3.21298)
\curveto(27.54142,3.21298)(26.20724,0.83187)(27.86646,1.20983)
\curveto(28.20661,1.81455)(29.09858,1.20983)(29.71087,1.58778)
\curveto(31.05638,1.58778)(32.31118,1.96573)(33.66047,1.96573)
\curveto(35.47843,1.96573)(37.34929,1.96573)(39.11433,1.58778)
\lineto(43.68,1.58778)
\curveto(44.94236,0.41613)(43.24535,2.53266)(42.72,2.94841)
\curveto(42.04724,3.55313)(41.52189,4.72479)(40.62614,4.91376)
\lineto(28.04787,4.91376)
\closepath
\moveto(23.04378,3.66652)
\curveto(22.62803,3.024)(21.59622,2.75943)(21.00661,2.11691)
\curveto(20.29606,1.24762)(18.82205,0.75628)(20.34898,0.34053)
\curveto(21.42236,-0.03742)(22.61669,0.34053)(23.74677,0.34053)
\curveto(24.42709,0.34053)(25.17543,0.34053)(25.49669,0.71849)
\curveto(27.07654,0.71849)(25.49669,2.26809)(24.83906,2.41928)
\curveto(24.20031,2.87282)(23.69008,3.51534)(23.04378,3.7799)
\closepath
}
}}
%
\rput(0.73205,2.1){\psscalebox{1.5}{%
\pscustom[unit=0.5pt,linestyle=none,fillstyle=solid,fillcolor=black]{
\newpath
\moveto(75.16346,61.73858)
\curveto(69.91748,57.92882)(64.67906,54.11149)(59.40283,50.39244)
\curveto(58.72252,51.40913)(58.58646,53.03055)(56.85543,51.55275)
\curveto(55.30583,51.43937)(53.83559,54.26267)(54.10394,51.43937)
\curveto(52.73953,48.31748)(49.51181,46.33322)(46.45417,46.51842)
\curveto(43.91433,43.86897)(41.12504,41.57102)(38.02205,39.85889)
\curveto(35.52378,42.75401)(32.73827,45.39212)(30.45543,48.46488)
\curveto(31.07906,51.28819)(27.17102,53.53322)(25.32283,55.27559)
\curveto(21.1578,56.81385)(21.46394,49.41354)(17.30268,51.7833)
\curveto(12.89197,51.51874)(11.80724,45.80787)(8.94992,43.10551)
\curveto(7.93323,40.17259)(1.85197,37.14897)(5.07591,34.25763)
\curveto(7.13575,32.98015)(9.41102,26.16945)(11.56535,30.32315)
\curveto(15.30709,34.84724)(19.04126,39.39401)(22.57134,44.07307)
\curveto(23.45197,45.50173)(22.68472,50.05606)(25.00157,46.93795)
\curveto(26.88756,45.2863)(29.90362,46.12535)(31.08283,43.26425)
\curveto(32.30362,40.79622)(36.99024,39.12567)(35.15717,36.24945)
\curveto(35.54268,34.91149)(38.78551,36.51401)(36.32126,34.65448)
\curveto(34.31433,34.5411)(34.19339,38.78929)(32.3452,35.78834)
\curveto(30.01701,34.47307)(28.84913,32.01637)(26.63433,30.57637)
\curveto(24.2948,28.79622)(22.25008,26.62677)(19.79339,25.07716)
\curveto(18.3685,23.11559)(14.01827,22.46929)(15.60189,18.90141)
\curveto(18.04724,20.60598)(20.20535,22.76787)(22.63937,24.54047)
\curveto(24.91843,26.21102)(27.53386,27.87023)(29.76378,29.95653)
\curveto(32.31118,30.80315)(27.30709,27.12189)(26.36976,26.19212)
\curveto(24.10961,23.72409)(20.92346,22.36724)(18.56882,19.75937)
\curveto(17.62016,19.0148)(15.84756,16.44472)(15.41669,18.31937)
\curveto(13.16031,15.71905)(10.78299,13.31905)(7.39276,12.41952)
\curveto(5.47276,9.89102)(0.71811,7.96346)(0.37795,5.22708)
\curveto(1.64409,3.94204)(4.6526,0.25322)(4.81512,0.42708)
\curveto(6.79937,1.99559)(8.80252,4.70173)(10.70362,6.8863)
\curveto(12.88441,9.29008)(14.98583,11.67496)(16.67528,14.47181)
\curveto(18.31937,17.11748)(21.53575,18.60283)(23.3915,20.91968)
\curveto(26.01827,22.75653)(24.57449,17.75244)(22.17071,18.72756)
\curveto(20.64378,17.35937)(17.97543,16.05543)(20.59843,14.36976)
\curveto(21.12,11.90551)(23.09291,7.72157)(24.80504,11.90929)
\curveto(23.61449,14.88756)(22.96819,18.00567)(26.32441,19.82362)
\curveto(26.97449,20.87055)(24.51024,24.43842)(27.68126,22.73763)
\curveto(31.72913,20.37921)(36.02646,18.08126)(40.69039,17.42362)
\curveto(44.14488,17.42362)(43.92189,24.9222)(39.9874,23.29322)
\curveto(36.74457,22.76787)(33.22961,23.21763)(30.5348,25.19055)
\curveto(28.95496,28.04787)(34.48819,27.76441)(31.74803,30.3685)
\curveto(33.04063,30.67086)(34.03843,26.85354)(35.49732,29.76378)
\curveto(37.39087,31.89165)(39.59433,34.8737)(41.52189,30.90897)
\curveto(44.89323,27.25039)(48.17764,23.58425)(51.49984,19.87653)
\curveto(53.6315,17.43118)(55.89165,15.05008)(57.99685,12.61606)
\curveto(60.74457,9.80409)(63.05386,6.67842)(65.77512,3.83622)
\curveto(66.53858,1.07716)(70.9115,0.82393)(69.77386,4.21417)
\curveto(65.82425,8.59464)(62.10898,13.11118)(58.05354,17.40472)
\curveto(52.8189,23.43307)(47.34236,29.26866)(42.13039,35.34236)
\curveto(43.67244,37.52315)(45.29764,40.04031)(47.67118,41.7033)
\curveto(49.44378,40.64504)(50.75528,40.02897)(52.3389,42.13417)
\curveto(54.54236,43.81984)(56.6022,46.08)(58.87748,47.4822)
\curveto(62.14299,47.63338)(63.58299,51.28819)(66.08126,53.01165)
\curveto(69.12378,55.92945)(72.32126,58.70362)(75.28063,61.697)
\lineto(75.16724,61.77259)
\closepath}
}}
}}
%-------------------------------------------------------------------------------
%\rput(0,3){\flagMZ[2]}
%\rput(1,2.5){\scriptsize{MZ @ \number\inputlineno}}
%\rput(0,0){\flagMZ[4]}
%===============================================================================

%===============================================================================
% icon Flag MM = Myanmar 2:3
%-------------------------------------------------------------------------------
\definecolor{mmYellow}{HTML}{FECB00}
\definecolor{mmGreen}{HTML}{34B233}
\definecolor{mmRed}{HTML}{EA2839}
%-------------------------------------------------------------------------------
\newcommand{\flagMM}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mmYellow](0,4)(9,6)
\psframe[fillcolor=mmGreen](0,2)(9,4)
\psframe[fillcolor=mmRed](0,0)(9,2)
\psset{fillcolor=white}
\rput(4.5,3){\iconStarXS[0.82]{2.5}{5}}
}}
%-------------------------------------------------------------------------------
%\rput(3,3){\flagMM[2]}
%\rput(4,2.5){\scriptsize{MM @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag KW = Kuwait 1:2
%-------------------------------------------------------------------------------
\definecolor{kwGreen}{HTML}{007A3D}
\definecolor{kwRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagKW}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=kwGreen](0,4)(12,6)
\psframe[fillcolor=white](0,2)(12,4)
\psframe[fillcolor=kwRed](0,0)(12,2)
\pspolygon[fillcolor=black](0,0)(0,6)(3,4)(3,2)
}}
%-------------------------------------------------------------------------------
%\rput(6,3){\flagKW[2]}
%\rput(7,2.5){\scriptsize{KW @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SN = Senegal 2:3
%-------------------------------------------------------------------------------
\definecolor{snGreen}{HTML}{00853F}
\definecolor{snYellow}{HTML}{FDEF42}
\definecolor{snRed}{HTML}{E31B23}
%-------------------------------------------------------------------------------
\newcommand{\flagSN}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=snGreen](0,0)(3,6)
\psframe[fillcolor=snYellow](3,0)(6,6)
\psframe[fillcolor=snRed](6,0)(9,6)
\psset{fillcolor=snGreen}
\rput(4.5,3){\iconStar[2]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(12,3){\flagSN[2]}
%\rput(13,2.5){\scriptsize{SN @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag TL = East Timor also known as Timor-Leste 1:2
%-------------------------------------------------------------------------------
\definecolor{tlYellow}{HTML}{FFC72C}
\definecolor{tlRed}{HTML}{DA291C}
%-------------------------------------------------------------------------------
\newcommand{\flagTL}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=tlRed](0,0)(4,2)
\pspolygon[fillcolor=tlYellow](0,0)(0,2)(2,1)
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3
\pspolygon[fillcolor=black](0,0)(0,2)(1.3,1)
\psset{fillcolor=white}
\rput{90}(0.45,1){\iconStar[0.7]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(15,3){\flagTL[2]}
%\rput(16,2.5){\scriptsize{TL @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SO = Somalia 2:3
%-------------------------------------------------------------------------------
\definecolor{soBlue}{HTML}{4189DD}
%-------------------------------------------------------------------------------
\newcommand{\flagSO}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=soBlue](0,0)(3,2)
% star diameter = height * 13/27
\psset{fillcolor=white}
\rput(1.5,1){\iconStar[1]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(0,1){\flagSO[2]}
%\rput(1,0.5){\scriptsize{SO @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag KP = North Korea, Democratic People's Republic of Korea 1:2
%-------------------------------------------------------------------------------
\definecolor{kpBlue}{HTML}{024fa2}
\definecolor{kpRed}{HTML}{ed1c27}
%-------------------------------------------------------------------------------
\newcommand{\flagKP}[1][4]{%
\FPeval{\wide}{round(#1/72:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=kpBlue](0,30)(72,36)
\psframe[fillcolor=white](0,29)(72,30)
\psframe[fillcolor=kpRed](0,7)(72,29)
\psframe[fillcolor=white](0,6)(72,7)
\psframe[fillcolor=kpBlue](0,0)(72,6)
\pscircle[fillcolor=white](24,18){8}
\psset{fillcolor=kpRed}
\rput(24,18){\iconStar[15.5]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(3,1){\flagKP[2]}
%\rput(4,0.5){\scriptsize{KP @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag MA = Morocco 2:3
%-------------------------------------------------------------------------------
\definecolor{maRed}{HTML}{c1272d}
\definecolor{maGreen}{HTML}{006233}
%-------------------------------------------------------------------------------
\newcommand{\flagMA}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=maRed](0,0)(6,4)
\psset{fillstyle=none,linestyle=solid,linewidth=0.0951,linecolor=maGreen}
%\rput(3,2){\iconStar[2]{0.8}}
\rput(3,2){\iconStarXN[1]{5}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,1){\flagMA[2]}
%\rput(7,0.5){\scriptsize{MA @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag ET = Ethiopia 1:2
%-------------------------------------------------------------------------------
\definecolor{etGreen}{HTML}{009A44}
\definecolor{etYellow}{HTML}{FEDD00}
\definecolor{etRed}{HTML}{EF3340}
\definecolor{etBlue}{HTML}{0645B1}
%-------------------------------------------------------------------------------
\newcommand{\flagET}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=etGreen](0,4)(12,6)
\psframe[fillcolor=etYellow](0,2)(12,4)
\psframe[fillcolor=etRed](0,0)(12,2)
\pscircle[fillcolor=etBlue](6,3){2}

% Star
\psset{fillstyle=none,linestyle=solid,linewidth=0.14,linecolor=etYellow}
\rput(6,3){\iconStarXN[1.6]{5}}%

% Rays
\psset{linewidth=0.06}
\rput{180}(6,3){\multido{\nA=0+72}{5}{%
\rput{\nA}(0,0){\psline(0,0.8)(0,1.6)}}}

% merge
\psset{linewidth=0.06,linecolor=etBlue}
\rput(6,3){\multido{\nA=0+72}{5}{%
\rput{\nA}(0,0){\psline(-1.1,0.394)(-1.7,0.394)}}}
}}
%-------------------------------------------------------------------------------
%\rput(9,1){\flagET[2]}
%\rput(10,0.5){\scriptsize{ET @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag PA = Panama 2:3
%-------------------------------------------------------------------------------
\definecolor{paRed}{HTML}{DA121A}
\definecolor{paBlue}{HTML}{072357}
%-------------------------------------------------------------------------------
\newcommand{\flagPA}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=paRed](0,4)(12,8)
\psframe[fillcolor=white](0,4)(6,8)
\psframe[fillcolor=white](6,0)(12,4)
\psframe[fillcolor=paBlue](0,0)(6,4)
% Star
\psset{fillcolor=paRed}
\rput(9,1.9){\iconStar[2.2211456]{0.8}}
\psset{fillcolor=paBlue}
\rput(3,5.9){\iconStar[2.2211456]{0.8}}
}}
%-------------------------------------------------------------------------------
%\rput(12,1){\flagPA[2]}
%\rput(13,0.5){\scriptsize{PA @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SB = Solomon Islands 1:2
%-------------------------------------------------------------------------------
\definecolor{sbBlue}{HTML}{0051BA}
\definecolor{sbYellow}{HTML}{FCD116}
\definecolor{sbGreen}{HTML}{215B33}
%-------------------------------------------------------------------------------
\newcommand{\flagSB}[1][4]{%
\FPeval{\wide}{round(#1/20:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=sbYellow](0,0)(20,10)
% x = 0.5/sin(atan(0.5)) =  18.881966, y = 0.5/cos(atan(0.5)) = 9.44098
\pspolygon[fillcolor=sbGreen](1.118034,0)(20,0)(20,9.440983)
\pspolygon[fillcolor=sbBlue](0, 0.55901699)(0,10)(18.881966,10)

% Star
\psset{fillcolor=white}
\rput(3.5,6.8){\iconStar[1.8]{0.8}}
\multido{\nA=45+90}{4}{%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\uput{2.6}[\nA]{0}(3.5,6.8){\iconStar[1.8]{0.8}}
}%
}}
%-------------------------------------------------------------------------------
%\rput(15,1){\flagSB[2]}
%\rput(16,0.5){\scriptsize{SB @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SR = Suriname 2:3
%-------------------------------------------------------------------------------
\definecolor{srRed}{HTML}{b40a2d}
\definecolor{srYellow}{HTML}{ecc81d}
\definecolor{srGreen}{HTML}{377e3f}
%-------------------------------------------------------------------------------
\newcommand{\flagSR}[1][4]{%
\FPeval{\wide}{round(#1/30:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=srGreen](0,16)(30,20)
\psframe[fillcolor=white](0,14)(30,16)
\psframe[fillcolor=srRed](0,6)(30,14)
\psframe[fillcolor=white](0,4)(30,6)
\psframe[fillcolor=srGreen](0,0)(30,4)
% Star
\psset{fillcolor=srYellow}
\rput(15,9.618){\iconStar[8]{0.8}}
%
}}
%-------------------------------------------------------------------------------
%\rput(0,21){\flagSR[2]}
%\rput(1,20.5){\scriptsize{SR @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag TG = Togo 1:phi golden ratio 1.618033988749
%-------------------------------------------------------------------------------
\definecolor{tgRed}{HTML}{D21034}
\definecolor{tgYellow}{HTML}{FFCE00}
\definecolor{tgGreen}{HTML}{006A4A}
%-------------------------------------------------------------------------------
\newcommand{\flagTG}[1][4]{%
\FPeval{\wide}{round(#1/7.854101966247 :3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
% b = 3; a = b * 1.618033988749 = 4.854101966247
\psframe[fillcolor=tgGreen](0,4)(7.854101966247 ,5)
\psframe[fillcolor=tgYellow](0,3)(7.854101966247 ,4)
\psframe[fillcolor=tgGreen](0,2)(7.854101966247 ,3)
\psframe[fillcolor=tgYellow](0,1)(7.854101966247 ,2)
\psframe[fillcolor=tgGreen](0,0)(7.854101966247 ,1)
\psframe[fillcolor=tgRed](0,2)(3,5)
% Star
\psset{fillcolor=white}
\rput(1.5,3.4){\iconStar[1.4]{0.8}}
%
}}
%-------------------------------------------------------------------------------
%\rput(3,21){\flagTG[2]}
%\rput(4,20.5){\scriptsize{TG @ \number\inputlineno}}
%===============================================================================

%===============================================================================
% icon Flag SG = Singapore 2:3
%-------------------------------------------------------------------------------
\definecolor{sgRed}{HTML}{EE2536}
%-------------------------------------------------------------------------------
\newcommand{\flagSG}[1][4]{%
\FPeval{\wide}{round(#1/54:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=sgRed](0,18)(54,36)%
\psframe[fillcolor=white](0,0)(54,18)%
% Moon Arc
\psset{fillcolor=white}%
\pscustom{\psarc(11.405,27){6.625}{80}{280}%
\psarcn[linecolor=yellow](14.405,27){6.625}{254}{106}}%
%\pscircle[fillstyle=none,linestyle=solid](11.405,27){6.625}
% Star
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\multido{\nA=18+72}{5}{%
\uput{3.9}[\nA]{0}(15.03,27){\iconStar[3.45]{0.8}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,21){\flagSG[2]}
%\rput(7,20.5){\scriptsize{SG @ \number\inputlineno}}
%\rput(0,0){\flagSG[4]}
%===============================================================================

%===============================================================================
% icon Flag PH = Philippines 1:2
%-------------------------------------------------------------------------------
\definecolor{phBlue}{HTML}{0038A8}
\definecolor{phRed}{HTML}{CE1126}
\definecolor{phYellow}{HTML}{FCD116}
%-------------------------------------------------------------------------------
\newcommand{\flagPH}[1][4]{%
\FPeval{\wide}{round(#1/180:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=phBlue](0,45)(180,90)%
\psframe[fillcolor=phRed](0,0)(180,45)%
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3
\pspolygon[fillcolor=white](0,0)(0,90)(77.942286,45)
%
% Star
\psset{fillcolor=phYellow}%
\rput{-90}(63.94228634059948,45){\iconStar[10]{0.8}}%
\rput{150}(8.082903768654759,14){\iconStar[10]{0.8}}%
\rput{30}(8.082903768654759,76){\iconStar[10]{0.8}}%
%
% Sun disk
\rput(28,45){\multido{\nA=0+45}{8}{%
\rput{\nA}(0,0){%
\pspolygon(0,0)(17.961461,1.17726)(19,0)(17.961461,-1.17726)%
\pspolygon(0,0)(15.78,3.2)(16.85456,2.21895)%
\psscalebox{1 -1}{\pspolygon(0,0)(15.78,3.2)(16.85456,2.21895)}%
}%
}}%
\pscircle(28,45){9}%
}}
%-------------------------------------------------------------------------------
%\rput(9,21){\flagPH[2]}
%\rput(10,20.5){\scriptsize{PH @ \number\inputlineno}}
%\rput(0,0){\flagPH[4]}
%===============================================================================

%===============================================================================
% icon Flag ZA = South Africa 2:3
%-------------------------------------------------------------------------------
\definecolor{zaBlue}{HTML}{002395}
\definecolor{zaRed}{HTML}{DE3831}
\definecolor{zaYellow}{HTML}{FFB612}
\definecolor{zaGreen}{HTML}{007A4D}
%-------------------------------------------------------------------------------
\newcommand{\flagZA}[1][4]{%
\FPeval{\wide}{round(#1/450:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(450,300)%
\pspolygon[fillcolor=zaBlue](90,0)(240,100)(450,100)(450,0)%
\pspolygon[fillcolor=zaGreen](54,0)(234,120)(450,120)(450,180)(234,180) (54,300)(0,300)(0,264)(171,150)(0,36)(0,0)
\psset{fillcolor=zaRed}%
\rput(0,300){\psscalebox{1 -1}{%
\pspolygon(90,0)(240,100)(450,100)(450,0)}}%
\pspolygon[fillcolor=zaYellow](0,36)(0,264)(171,150)%
\pspolygon[fillcolor=black](0,60)(0,240)(135,150)%
}}
%-------------------------------------------------------------------------------
%\rput(12,21){\flagZA[2]}
%\rput(13,20.5){\scriptsize{ZA @ \number\inputlineno}}
%\rput(0,0){\flagZA[4]}
%===============================================================================

%===============================================================================
% icon Flag JP = Japan 2:3
%-------------------------------------------------------------------------------
\definecolor{jpRed}{HTML}{BC002D}
%-------------------------------------------------------------------------------
\newcommand{\flagJP}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(3,2)
\pscircle[fillcolor=jpRed](1.5,1){0.6}
}}
%-------------------------------------------------------------------------------
%\rput(0,19){\flagJP[1.6]}
%\rput(10,18.5){\scriptsize{JP @ \number\inputlineno}}
%\rput(0,0){\flagJP[2]}
%===============================================================================

%===============================================================================
% icon Flag LY = Libya 1:2
%-------------------------------------------------------------------------------
\definecolor{lyRed}{HTML}{e70013}
\definecolor{lyGreen}{HTML}{239e46}
%-------------------------------------------------------------------------------
\newcommand{\flagLY}[1][4]{%
\FPeval{\wide}{round(#1/48:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=lyRed](0,18)(48,24)%
\psframe[fillcolor=black](0,6)(48,18)%
\psframe[fillcolor=lyGreen](0,0)(48,6)%
% Moon Arc
\psset{fillcolor=white,linestyle=none}%
\pscustom{%
\psarc(24,12){3}{45}{315}%
\psarcn(24.6066,12){2.6}{310}{50}%
}%
%\pscircle[fillstyle=none,linestyle=solid](11.405,27){6.625}
% Star
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\rput{90}(27,12){\iconStar[3.8]{0.8}} %4.46097
}}
%-------------------------------------------------------------------------------
%\rput(3,19){\flagLY[2]}
%\rput(4,18.5){\scriptsize{LY @ \number\inputlineno}}
%\rput(0,0){\flagLY[4]}
%===============================================================================

%===============================================================================
% icon Flag MV = Maldives 2:3
%-------------------------------------------------------------------------------
\definecolor{mvRed}{HTML}{D21034}
\definecolor{mvGreen}{HTML}{00803A}
%-------------------------------------------------------------------------------
\newcommand{\flagMV}[1][4]{%
\FPeval{\wide}{round(#1/72:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mvRed](0,0)(72,48)%
\psframe[fillcolor=mvGreen](12,12)(60,36)%
% Moon Arc
\psset{fillcolor=white,linestyle=none}%
\pscustom{%
\psarc(39,24){8}{80}{280}%
\psarcn(42,24){8}{259}{101}%
}%
}}
%-------------------------------------------------------------------------------
%\rput(6,19){\flagMV[2]}
%\rput(7,18.5){\scriptsize{MV @ \number\inputlineno}}
%\rput(0,0){\flagMV[4]}
%===============================================================================

%===============================================================================
% icon Flag MY = Malaysia 1:2
%-------------------------------------------------------------------------------
\definecolor{myRed}{HTML}{CC0000}
\definecolor{myBlue}{HTML}{0032A0}
\definecolor{myYellow}{HTML}{FFD100}
%-------------------------------------------------------------------------------
\newcommand{\flagMY}[1][4]{%
\FPeval{\wide}{round(#1/28:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\multirput(0,0)(0,2){7}{%
\psframe[fillcolor=myRed](0,1)(28,2)%
\psframe[fillcolor=white](0,0)(28,1)%
}%
\psframe[fillcolor=myBlue](0,6)(14,14)%
%
% Moon Arc
\psset{fillcolor=myYellow,linestyle=none}%
\pscustom{%
\psarc(5.75,10){3}{55}{305}%
\psarcn(6.425,10){2.66667}{292}{68}%
}%
% Star
\rput(8.75,10){\iconStarXS[1]{2.5}{14}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,19){\flagMY[2]}
%\rput(10,18.5){\scriptsize{MY @ \number\inputlineno}}
%\rput(0,0){\flagMY[4]}
%===============================================================================

%===============================================================================
% icon Flag MR = Mauritania 2:3
%-------------------------------------------------------------------------------
\definecolor{mrRed}{HTML}{D01C1F}
\definecolor{mrGreen}{HTML}{00A95C}
\definecolor{mrYellow}{HTML}{FFD700}
%-------------------------------------------------------------------------------
\newcommand{\flagMR}[1][4]{%
\FPeval{\wide}{round(#1/15:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mrRed](0,8)(15,10)%
\psframe[fillcolor=mrGreen](0,2)(15,8)%
\psframe[fillcolor=mrRed](0,0)(15,2)%
%
% Moon Arc
\psset{fillcolor=mrYellow,linestyle=none}%
\pscustom{%
\psarc(7.5,7){3.75}{180}{0}%
\psellipticarcn(7.5,7)(3.75, 2.73){0}{180}%
}%
% Star
\rput(7.5,5.95){\iconStar[2]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,19){\flagMR[2]}
%\rput(13,18.5){\scriptsize{MR @ \number\inputlineno}}
%\rput(0,0){\flagMR[4]}
%===============================================================================

%===============================================================================
% icon Flag TN = Tunisia 2:3
%-------------------------------------------------------------------------------
\definecolor{tnRed}{HTML}{e70013}
%-------------------------------------------------------------------------------
\newcommand{\flagTN}[1][4]{%
\FPeval{\wide}{round(#1/60:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=tnRed](0,0)(60,40)%
%
% Moon Arc
\pscircle[fillcolor=white](30,20){10}
\pscircle[fillcolor=tnRed](30,20){7.5}
\pscircle[fillcolor=white](32,20){6}

% Star
\psset{fillcolor=tnRed}
\rput{90}(32,20){\iconStar[9]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,19){\flagTN[2]}
%\rput(14,18.5){\scriptsize{TN @ \number\inputlineno}}
%\rput(0,0){\flagTN[4]}
%===============================================================================

%===============================================================================
% icon Flag TR = Turkey 2:3
%-------------------------------------------------------------------------------
\definecolor{trRed}{HTML}{E30A17}
%-------------------------------------------------------------------------------
\newcommand{\flagTR}[1][4]{%
\FPeval{\wide}{round(#1/60:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=trRed](0,0)(60,40)%
% Moon Arc
\pscircle[fillcolor=white](20,20){10}
\pscircle[fillcolor=trRed](22.5,20){8}
% Star
\rput{90}(32.66667,20){\iconStar[10]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagTR[2]}
%\rput(1,16.5){\scriptsize{TR @ \number\inputlineno}}
%\rput(0,0){\flagTR[4]}
%===============================================================================

%===============================================================================
% icon Flag UZ = Uzbekistan 1:2
%-------------------------------------------------------------------------------
\definecolor{uzBlue}{HTML}{0099B5}
\definecolor{uzGreen}{HTML}{1EB53A}
\definecolor{uzRed}{HTML}{CE1126}
%-------------------------------------------------------------------------------
\newcommand{\flagUZ}[1][4]{%
\FPeval{\wide}{round(#1/250:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=uzBlue](0,85)(250,125)%
\psframe[fillcolor=uzRed](0,82.5)(250,85)%
\psframe[fillcolor=white](0,42.5)(250,82.5)%
\psframe[fillcolor=uzRed](0,40)(250,42.5)%
\psframe[fillcolor=uzGreen](0,0)(250,40)%
% Moon Arc
\psset{fillcolor=white}%
\pscircle(35,105){15}%
\pscircle[fillcolor=uzBlue](40,105){15}%
% Star
\psset{fillcolor=white}
\multirput(44,93)(12,0){5}{\iconStar[6]{0.8}}%
\multirput(56,105)(12,0){4}{\iconStar[6]{0.8}}%
\multirput(68,117)(12,0){3}{\iconStar[6]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagUZ[2]}
%\rput(1,16.5){\scriptsize{UZ @ \number\inputlineno}}
%\rput(0,0){\flagUZ[4]}
%===============================================================================

%===============================================================================
% icon Flag VE = Venezuela 2:3
%-------------------------------------------------------------------------------
\definecolor{veBlue}{HTML}{003DA5}
\definecolor{veYellow}{HTML}{FCE300}
\definecolor{veRed}{HTML}{EF3340}
%-------------------------------------------------------------------------------
\newcommand{\flagVE}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=veYellow](0,8)(18,12)%
\psframe[fillcolor=veBlue](0,4)(18,8)%
\psframe[fillcolor=veRed](0,0)(18,4)%
% Star
\psset{fillcolor=white}%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\multido{\nA=20+20}{8}{%
\uput{3.6}[\nA]{0}(9,3.6){\iconStar[1]{0.8}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,17){\flagVE[2]}
%\rput(7,16.5){\scriptsize{VE @ \number\inputlineno}}
%\rput(0,0){\flagVE[4]}
%===============================================================================

%===============================================================================
% icon Flag TT Trinidad and Tobago 3:5
%-------------------------------------------------------------------------------
\definecolor{ttRed}{HTML}{C8102E}
%-------------------------------------------------------------------------------
\newcommand{\flagTT}[1][4]{%
\FPeval{\wide}{round(#1/30:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, fillcolor=ttRed, linestyle=none}%
\psframe[fillcolor=white](0,0)(30,18)%
\pspolygon(0,0)(0,18)(20.82473,0)%
\rput(30,18){\psscalebox{-1 -1}{\pspolygon(0,0)(0,18)(20.82473,0)}}%
\pspolygon[fillcolor=black](22.353945,0)(1.529211,18)(7.64605,18)(28.470789,0)%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagTT[2]}
%\rput(10,16.5){\scriptsize{TT @ \number\inputlineno}}
%\rput(0,0){\flagTT[4]}
%===============================================================================

%===============================================================================
% icon Flag TO = Tonga 1:2
%-------------------------------------------------------------------------------
\definecolor{toRed}{HTML}{C10000}
%-------------------------------------------------------------------------------
\newcommand{\flagTO}[1][4]{%
\FPeval{\wide}{round(#1/168:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=toRed](0,0)(168,84)%
\psframe[fillcolor=white](0,42)(70,84)
\psset{fillcolor=toRed}
\rput(29,46){\psframe(0,0)(12,34)}
\rput(18,57){\psframe(0,0)(34,12)}
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagTO[2]}
%\rput(10,16.5){\scriptsize{TO @ \number\inputlineno}}
%\rput(0,0){\flagTO[4]}
%===============================================================================

%===============================================================================
% icon Flag PK = Pakistan 2:3
%-------------------------------------------------------------------------------
\definecolor{pkGreen}{HTML}{00401A}
%-------------------------------------------------------------------------------
\newcommand{\flagPK}[1][4]{%
\FPeval{\wide}{round(#1/30:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(7.5,20)%
\psframe[fillcolor=pkGreen](7.5,0)(30,20)%
\psset{fillcolor=white}%
\pscircle(18.75,10){6}%
\pscircle[fillcolor=pkGreen](20.20097832,11.45097832){5.5}%
\rput{-45}(21.578427,12.8284271){\iconStar[4]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,17){\flagPK[2]}
%\rput(10,16.5){\scriptsize{PK @ \number\inputlineno}}
%\rput(0,0){\flagPK[4]}
%===============================================================================

%===============================================================================
% icon Flag PW = Palau 5:8
%-------------------------------------------------------------------------------
\definecolor{pwBlue}{HTML}{0085CA}
\definecolor{pwYellow}{HTML}{FFD100}
%-------------------------------------------------------------------------------
\newcommand{\flagPW}[1][4]{%
\FPeval{\wide}{round(#1/16:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=pwBlue](0,0)(16,10)%
\psset{fillcolor=pwYellow}%
\pscircle(7,5){3}%
}}
%-------------------------------------------------------------------------------
%\rput(0,14){\flagPW[2]}
%\rput(1,13.5){\scriptsize{PW @ \number\inputlineno}}
%\rput(0,0){\flagPW[4]}
%===============================================================================

%===============================================================================
% icon Flag PY = Paraguay 11:20
%-------------------------------------------------------------------------------
\definecolor{pyBlue}{HTML}{0038A8}
\definecolor{pyYellow}{HTML}{FEDF00}
\definecolor{pyGreen}{HTML}{009B3A}
\definecolor{pyRed}{HTML}{D52B1E}
%-------------------------------------------------------------------------------
\newcommand{\flagPYseal}[1]{%
\FPeval{\wide}{round(#1/2:3)}\psscalebox{\wide}{%
\psset{fillstyle=solid,fillcolor=pyGreen,linestyle=solid,linecolor=black}%
\rput(0.2,0){\input{Flags/pst-Paraguay-seal-wreath.tex}}%
\psset{fillstyle=none,linestyle=solid,linecolor=black}%
\pscircle[dimen=outer,linewidth=0.8mm](0,0){2}%
\pscircle[dimen=inner,linewidth=0.4mm](0,0){1.6}%
\pscircle[dimen=middle,linewidth=0.4mm](0,0){1.2}%
\pstextpath[l](0,0){\psarcn[linestyle=none](0,0){1.28}{220}{310}}%
{\small{\textphv{\textbf{\ammCharSpacing{REPUBLICA  DEL  PARAGUAY}{0.64mm}}}}}%
\psset{fillstyle=solid,fillcolor=pyYellow,linewidth=0.12mm}%
\iconStarXS[0.16]{0.4}{5}%
}}
%-------------------------------------------------------------------------------
\newcommand{\flagPY}[1][4]{%
\FPeval{\wide}{round(#1/30:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=pyRed](0,12)(30,18)%
\psframe[fillcolor=white](0,6)(30,12)%
\psframe[fillcolor=pyBlue](0,0)(30,6)%
\rput(15,9){\flagPYseal{2.4}}
}}
%-------------------------------------------------------------------------------
%\rput(3,14){\flagPY[2]}
%\rput(4,13.5){\scriptsize{PW @ \number\inputlineno}}
%\rput(0,0){\flagPY[4]}
%===============================================================================

%===============================================================================
% icon Flag OM = Oman 1:2
%-------------------------------------------------------------------------------
\definecolor{omGreen}{HTML}{009A44}
\definecolor{omRed}{HTML}{C8102E}
%-------------------------------------------------------------------------------
\newcommand{\flagOM}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=omRed](0,0)(3,6)%
%\psframe[fillcolor=omRed](3,2)(12,4)%
\psframe[fillcolor=white](3,4)(12,6)%
\psframe[fillcolor=omGreen](3,0)(12,2)%
\pspolygon[fillcolor=omRed](0,0)(0,6)(3,6)(3,4)(12,4)(12,2)(3,2)(3,0)%
\psset{fillcolor=white,linestyle=solid,linecolor=omRed}%
\rput(1.5,4.87){\input{Flags/pst-Oman-seal.tex}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,14){\flagOM[2]}
%\rput(4,13.5){\scriptsize{OM @ \number\inputlineno}}
%\rput(0,0){\flagOM[4]}
%===============================================================================

%===============================================================================
% icon Flag NI = Nicaragua 3:5
%-------------------------------------------------------------------------------
\definecolor{niGreen}{HTML}{97C924}
\definecolor{niBlue}{HTML}{0067c6}
\definecolor{niGold}{HTML}{C8A400}
\definecolor{niYellow}{HTML}{EDE71F}
\definecolor{niLightBlue}{HTML}{6FD8F3}
%-------------------------------------------------------------------------------
\newcommand{\flagNI}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=niBlue](0,2)(5,3)%
\psframe[fillcolor=white](0,1)(5,2)%
\psframe[fillcolor=niBlue](0,0)(5,1)%
\psset{fillstyle=none,linestyle=none}%
\rput(2.5,1.5){\psscalebox{0.1}{\input{Flags/pst-Nicaragua-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,14){\flagNI[2]}
%\rput(10,13.5){\scriptsize{NI @ \number\inputlineno}}
%\rput(0,0){\flagNI[4]}
%===============================================================================

%===============================================================================
% icon Flag IR = Iran, Islamic Republic of 4:7  used 223:126
%-------------------------------------------------------------------------------
\definecolor{irGreen}{HTML}{239f40}
\definecolor{irRed}{HTML}{da0000}
%-------------------------------------------------------------------------------
\newcommand{\flagIranEmblem}[2]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{fillstyle=solid,fillcolor=#2,linestyle=none}%
%\pscircle[fillcolor=gray!10](0,0){1.5}
% right crescent small
%\pscircle(0.3542,0){1.146}
%\pscircle(-0.2807,-0.0997){1.5}
\pscustom{
\psarc(0.3542,0){1.146}{-60}{78}
\psarcn(-0.2807,-0.0997){1.5}{54.5}{-36.5}
}
%
% left crescent small
\pscustom{
\psarc(-0.3542,0){1.146}{102}{240}
\psarcn(0.2807,-0.0997){1.5}{216.5}{125.5}
}
%
% right crescent big
% \pscircle(-0.4044,0.0455){1.380369349123632} %Sqrt(4.565^2 + 13.027^2)
% \pscircle(-0.7534,0.2532){1.5002}%
\pscustom{
\psarc(-0.4044,0.0455){1.380369349123632}{248.5}{50}
\psarcn(-0.7534,0.2532){1.5002}{34.5}{264}%
}%
%
% left crescent big
\pscustom{
\psarc(0.4044,0.0455){1.380369349123632}{130}{291.5}
\psarcn(0.7534,0.2532){1.5002}{276}{145.5}%
}%
%
% Sword
%\psline[linecolor=red](0,-1.5)(-0.1253,-1.3499)(-0.1813,0.1355)(-0.1816,1.0268)
%\psbezier(-0.1816,1.0268)(-0.02,1.0861)(-0.02,1.1561)(0,1.1561)
%\psbezier(0,1.1561)(0.02,1.1561)(0.02,1.0861)(0.1816,1.0268)
%\psline(0.1816,1.0268)(0.1813,0.1355)(0.1253,-1.3499)(0,-1.5)
\pscustom{
\psline(0,-1.5)(-0.1253,-1.3499)(-0.1813,0.1355)(-0.1816,1.0268)
\psbezier(-0.02,1.0861)(-0.02,1.1561)(0,1.1561)
(0.02,1.1561)(0.02,1.0861)(0.1816,1.0268)
\psline(0.1816,1.0268)(0.1813,0.1355)(0.1253,-1.3499)(0,-1.5)
}
% Top crescent
%\pscircle(-0.18,1.46){0.2}
%\pscircle(0.18,1.46){0.2}
%\pscircle(0.18,1.36){0.22}
%\pscircle(-0.18,1.36){0.22}
\pscustom{
\psarc(-0.18,1.46){0.2}{182}{-26}
\psarc(0.18,1.46){0.2}{206}{-2}
\psarcn(0.18,1.36){0.22}{25}{215}
\psarcn(-0.18,1.36){0.22}{325}{155}
}%
}}
%\rput(1,1){\flagIranEmblem{3}{black}}
%-------------------------------------------------------------------------------
% Takbir = Allahu Akbar God is the greatest in a stylised kufic script
\newcommand{\flagIranSlogan}[2]{%
\FPeval{\wide}{round(#1/19:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, fillcolor=#2,linestyle=none}%
\pspolygon(0,0)(1,0)(1,2)(4,2)(4,0)(9,0)(9,3) (6,3)(6,2)(8,2)(8,1) (5,1)(5,3)(0,3)%
\psframe(2,0)(3,1)
%
\pspolygon(10,0)(13,0)(13,1)(11,1)(11,2)(14,2) (14,0)(19,0)(19,5) (18,5)(18,1)(17,1)(17,5)(16,5)(16,1)(15,1)(15,5)(14,5)(14,3)(10,3)
%
\psframe(0,4)(13,5)%
\psframe(0,6)(19,7)%
\psframe(0,6)(19,7)%
}}
%\rput(0,0){\flagIranSlogan{1.9}{irGreen}}
%\multirput(0,0)(1.1,0){3}{\flagIranSlogan{1}{irGreen}}%
%-------------------------------------------------------------------------------
\newcommand{\flagIR}[1][4]{%
\FPeval{\wide}{round(#1/223:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=irGreen](0,84)(223,126)%
\psframe[fillcolor=white](0,42)(223,84)%
\psframe[fillcolor=irRed](0,0)(223,42)%
\multirput(2,35)(20,0){11}{\flagIranSlogan{19}{white}}%
\multirput(2,84)(20,0){11}{\flagIranSlogan{19}{white}}%
\rput(111.5,63){\flagIranEmblem{30}{irRed}}
}}
%-------------------------------------------------------------------------------
%\rput(12,14){\flagIR[2]}
%\rput(13,13.5){\scriptsize{IR @ \number\inputlineno}}
%\rput(0,0){\flagIR[4]}
%===============================================================================

%===============================================================================
% icon Flag IQ = Iraq 1:2
%-------------------------------------------------------------------------------
\definecolor{iqGreen}{HTML}{017b3d}
\definecolor{iqRed}{HTML}{cd1125}
%-------------------------------------------------------------------------------
\newcommand{\flagIQ}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=iqRed](0,4)(9,6)%
\psframe[fillcolor=white](0,2)(9,4)%
\psframe[fillcolor=black](0,0)(9,2)%
%\psset{fillcolor=white,linestyle=solid,linecolor=omRed}%
\rput(4.5,3){\psscalebox{1.5}{\input{Flags/pst-Iraq-flag-slogan.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,14){\flagIQ[2]}
%\rput(16,13.5){\scriptsize{IQ @ \number\inputlineno}}
%\rput(0,0){\flagIQ[4]}
%===============================================================================

%===============================================================================
% icon Flag IL = Israel 8:11
%-------------------------------------------------------------------------------
\definecolor{ilBlue}{HTML}{0038b8}
%-------------------------------------------------------------------------------
\newcommand{\flagIL}[1][4]{%
\FPeval{\wide}{round(#1/220:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,145)(220,160)%
\psframe[fillcolor=ilBlue](0,120)(220,145)%
\psframe[fillcolor=white](0,40)(220,120)%
\psframe[fillcolor=ilBlue](0,15)(220,40)%
\psframe[fillcolor=white](0,0)(220,15)%
% Star
\rput(110,80){%
\psset{fillstyle=none,linestyle=solid,linewidth=5.5,linecolor=ilBlue}
\FPset{\rO}{29.5}%
\FPset{\pt}{6}%
\FPeval{\aO}{\fpeval{round(360/\pt, 5)}}%
\multido{\ni=1+1}{\pt}{%
\FPeval{\x}{\fpeval{round(\rO * cosd(90 + \aO * (\ni-1)), 5)}}%
\FPeval{\y}{\fpeval{round(\rO * sind(90 + \aO * (\ni-1)), 5)}}%
\pnode(\x,\y){p\ni}%
}%
\pscustom{%
\ncline{p1}{p3}%
\ncline{p3}{p5}%
\ncline{p5}{p1}%
\closepath%
}%
\pscustom{%
\ncline{p2}{p4}%
\ncline{p4}{p6}%
\ncline{p6}{p2}%
\closepath}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,12){\flagIL[2]}
%\rput(1,11.5){\scriptsize{IL @ \number\inputlineno}}
%\rput(0,0){\flagIL[4]}
%===============================================================================

%===============================================================================
% icon Flag BR = Brazil 7:10
%-------------------------------------------------------------------------------
\definecolor{brGreen}{HTML}{009c3b}
\definecolor{brYellow}{HTML}{ffdf00}
\definecolor{brBlue}{HTML}{002776}
%-------------------------------------------------------------------------------
\newcommand{\flagBR}[1][4]{%
\FPeval{\wide}{round(#1/20:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=brGreen](0,0)(20,14)%
\pspolygon[fillcolor=brYellow](10,1.7)(1.7,7)(10,12.3)(18.3,7)
\pscircle[fillcolor=brBlue](10,7){3.5}
%
%\pscircle[fillcolor=cyan](13.341,5.9562181792777876893){0.1}
%\pscircle[fillcolor=cyan](6.612,7.8786874810995708013){0.1}
%\pscircle[fillcolor=black](13.466,6.5098543800661160358){0.15}
%\pscircle[fillcolor=red](6.799,8.4146739218206764171){0.15}
%\psset{fillstyle=none,linestyle=solid,linecolor=red}
%\psarcn[linecolor=blue](10,7){3.5}{-8.049}{-17.35}
%\psarc[linecolor=red,fillstyle=none,linewidth=0.2](8,0){8}{48.117}{99.991}
%\psarcn[linecolor=white](10,7){3.5}{165.461}{156.157}
%\psarcn[linecolor=yellow](8,0){8.5}{98.123}{49.981}
%
\pscustom[fillcolor=white]{%
\psarcn[linecolor=blue](10,7){3.5}{-8.049}{-17.35}%
\psarc(8,0){8}{48.117}{99.991}%
\psarcn[linecolor=white](10,7){3.5}{165.461}{156.157}%
\psarcn[linecolor=yellow](8,0){8.5}{98.123}{49.981}%
}
%
\pstextpath[c](-0.,0.06){%
\psarcn[linestyle=none,fillstyle=none](8,0){8}{99.991}{48.117}%
}{\textcolor{brGreen}{\uppercase{\textphv{\Large{\textbf{\ammCharSpacing{Ordem e Progresso}{0.5mm}}}}}}}
%
\psset{fillcolor=white,linestyle=none}%
\def\stara{\iconStar[0.3]{0.8}}%
\def\starb{\iconStar[0.25]{0.8}}%
\def\starc{\iconStar[0.2]{0.8}}%
\def\stard{\iconStar[0.14]{0.8}}%
\def\stare{\iconStar[0.1]{0.8}}%
\rput(7.12,7.60){\stara}%01c1s01 Amazonas=Alpha Canis Minoris (Procyon) 1
\rput(7.45,6.15){\stara}%02c2s02 Mato=Grosso Alpha Canis Majoris(Sirius) 1
\rput(7.05,5.85){\starb}%03c2s03 Amapá = Beta Canis Majoris (Mirzam) 2
\rput(7.82,6.35){\stard}%04c2s04 Rondônia=Gamma Canis Majoris (Muliphen) 4
\rput(8.10,5.45){\starb}%05c2s05 Roraima = Delta Canis Majoris (Wezen) 2
\rput(8.20,5.75){\starc}%06c2s06 Tocantins=Epsilon Canis Majoris(Adhara) 3
\rput(8.62,5.12){\stara}%07c3s26 Goiás = Alpha Carinae (Canopus) 1
\rput(11.1,8.05){\stara}%08c4s07 Pará = Alpha Virginis (Spica) 1
\rput(8.68,6.85){\starb}%09c5s16 Mato Grosso doSul=Alpha Hydrae(Alphard) 2
\rput(10.95,7.15){\starc}%10c5s17 Acre = Gamma Hydrae 3
\rput(10.0,5.400){\stara}%11c6s18 São Paulo=Alpha Crucis(Crux=Acrux) 1
\rput(10.45,6.10){\starb}%12c6s19 Rio deJaneiro=Beta Crucis(Crux=Mimosa) 2
\rput(10.03,6.4){\starb}%13c6s20 Bahia = Gamma Crucis (Crux=Gacrux) 2
\rput(9.65,6.1){\starc}%14c6s21 Minas Gerais = Delta Crucis (Crux=Imai) 3
\rput(9.85,5.85){\stard}%15c6s22 EspíritoSanto=EpsilonCrucis(Crux=Ginan) 4
\rput(10.02,4.22){\stare}%16c7s27 DistritoFederal=SigmaOctantis(Polaris) 5
\rput(10.78,5.01){\starb}%17c8s23 RioGrandedoSul=AlphaTrianguliAustralis 2
\rput(11.37,4.93){\starb}%18c8s24 SantaCatarina=BetaTrianguli Australis 3
\rput(11.08,4.62){\starc}%19c8s25 Paraná = Gamma Trianguli Australis 3
\rput(12.48,5.75){\stara}%20c9s08 Piauí = Alpha Scorpii (Antares) 1
\rput(12.98,5.7){\starc}%21c9s09 Maranhão = Beta Scorpii (Graffias) 3
\rput(12.62,5.45){\starb}%22c9s10 Ceará = Epsilon Scorpii (Larawag) 2
\rput(11.78,4.7){\starb}%23c9s11 Alagoas = Theta Scorpii (Sargas) 2
\rput(11.78,4.35){\starc}%24c9s12 Sergipe = Iota Scorpii  3
\rput(12.12,4.98){\starc}%25c9s13 Paraíba = Kappa Scorpii 3
\rput(12.4,5.26){\starb}%26c9s14 RioGrande doNorte=LambdaScorpii(Shaula) 2
\rput(11.76,5.04){\starc}%27c9s15 Pernambuco=Mu Scorpii(Xamidimura&Pip) 3
}}
%-------------------------------------------------------------------------------
%\rput(3,12){\flagBR[2]}
%\rput(4,11.5){\scriptsize{BR @ \number\inputlineno}}
%\rput(0,0){\flagBR[4]}
%===============================================================================

%===============================================================================
% icon Flag MT = Malta 2:3
%-------------------------------------------------------------------------------
\definecolor{mtRed}{HTML}{C01B22}
\definecolor{mtGrayDark}{HTML}{333F48}
\definecolor{mtGrayLight}{HTML}{7C878E}
%-------------------------------------------------------------------------------
\newcommand{\flagMT}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mtRed](4.5,0)(9,6)%
\psframe[fillcolor=white](0,0)(4.5,6)%

\def\cross{%
\psset{fillcolor=mtRed}%
\psframe(0.6,0)(1.1,1.7)%
\psframe(0,0.6)(1.7,1.1)%
%
\pscircle(0.6,0.6){0.14}
\pscircle(1.1,0.6){0.14}
\pscircle(0.6,1.1){0.14}
\pscircle(1.1,1.1){0.14}
%
\psset{fillcolor=white}%
\psframe(0.6276,0.0276)(1.0724,1.6724)%
\psframe(0.0276,0.6276)(1.6724,1.0724)%
\psset{fillcolor=white}%
\pscircle(0.6,0.6){0.1124}
\pscircle(1.1,0.6){0.1124}
\pscircle(0.6,1.1){0.1124}
\pscircle(1.1,1.1){0.1124}
\psset{fillcolor=black}%
\psframe(0.6314,0.0314)(1.0686,1.6686)%
\psframe(0.0314,0.6314)(1.6686,1.0686)%
\psset{fillcolor=white}%
\psframe(0.6353,0.0353)(1.0647,1.6647)%
\psframe(0.0353,0.6353)(1.6647,1.0647)%
\psset{fillcolor=black}%
\psframe(0.659,0.0590)(1.041,1.641)%
\psframe(0.0590,0.659)(1.641,1.041)%
\psset{fillcolor=white}%
\psframe(0.6629,0.0629)(1.0371,1.6371)%
\psframe(0.0629,0.6629)(1.6371,1.0371)%
%
% seal circle outer
\psset{fillstyle=solid,fillcolor=white,linestyle=solid,linewidth=0.0040}
\pscircle(0.85,0.85){0.35}
% seal circle inner
%\psset{fillstyle=none,linestyle=solid,linewidth=0.099}
\pscircle(0.85,0.85){0.2646}
%\psset{fillstyle=none,linestyle=none}%
%\rput(0,0){\input{Flags/Malta-flag-seal.tex}}
%
\psset{fillcolor=black,linestyle=none}%
\pscircle(0.692,0.59){0.012}%
\pscircle(1.004,0.59){0.012}%
%
\psset{fillcolor=white,linestyle=solid,linewidth=0.002}%
%\rput(0,0){\input{Flags/Malta-flag-cross.tex}}%
\rput(0.66,1.14){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-corner.tex}}}%
\rput{-90}(1.14,1.04){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-corner.tex}}}%
\rput{-180}(1.04,0.56){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-corner.tex}}}%
\rput{90}(0.56,0.66){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-corner.tex}}}%
\psset{fillcolor=black,linestyle=none}%
\rput(0.934,0.85){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-text.tex}}}%
\psset{fillstyle=none,linestyle=solid}%
\rput(0.934,0.85){\psscalebox{1.5}{\input{Flags/pst-Malta-flag-seal-horse.tex}}}%
}%
\rput(0.2,4.1){\cross}%
%
}}
%-------------------------------------------------------------------------------
%\rput(6,12){\flagMT[2]}
%\rput(7,11.5){\scriptsize{MT @ \number\inputlineno}}
%\rput(0,0){\flagMT[4]}
%===============================================================================

%===============================================================================
% icon Flag MX = Mexico 4:7
%-------------------------------------------------------------------------------
\definecolor{mxRed}{HTML}{CE1125}
\definecolor{mxGreen}{HTML}{006847}
\definecolor{mxBlue}{HTML}{7C878E}
%-------------------------------------------------------------------------------
\newcommand{\flagMX}[1][4]{%
\FPeval{\wide}{round(#1/21:3)}\psscalebox{\wide}{%
{\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mxRed](14,0)(21,12)%
\psframe[fillcolor=white](7,0)(14,12)%
\psframe[fillcolor=mxGreen](0,0)(7,12)%
}
% seal circle outer
%\psset{fillcolor=white,linestyle=solid,linewidth=0.002}%
%\psset{fillstyle=none,linestyle=none}%
%\rput(105,60){\psscalebox{1.5}{\input{Flags/Mexico-flag-seal.tex}}}%
%
%\graphicspath{{./Flags/}}
\rput(10.5,6){\includegraphics[width=5.25cm]{Flags/pst-Mexico-flag-seal.eps}}
%\epsfig{file=./Flags/Mexico-flag-seal.eps}
%
}}
%-------------------------------------------------------------------------------
%\rput(9,12){\flagMX[2]}
%\rput(10,11.5){\scriptsize{MX @ \number\inputlineno}}
%\rput(0,0){\flagMX[4]}
%===============================================================================

%===============================================================================
% icon Flag MD = Moldova 1:2
%-------------------------------------------------------------------------------
\definecolor{mdRed}{HTML}{CC092F}
\definecolor{mdYellow}{HTML}{FFD200}
\definecolor{mdBlue}{HTML}{0046AE}
\definecolor{mdGreen}{HTML}{007A50}
\definecolor{mdBrown}{HTML}{B07E5B}
%-------------------------------------------------------------------------------
\newcommand{\flagMD}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
{\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mdRed](4,0)(6,3)%
\psframe[fillcolor=mdYellow](2,0)(4,3)%
\psframe[fillcolor=mdBlue](0,0)(2,3)%
}
% seal
\rput(3,1.5){\includegraphics[width=1.2cm]{Flags/pst-Moldova-flag-seal}}
%
}}
%-------------------------------------------------------------------------------
%\rput(12,12){\flagMD[2]}
%\rput(13,11.5){\scriptsize{MD @ \number\inputlineno}}
%\rput(0,0){\flagMD[4]}
%===============================================================================

%===============================================================================
% icon Flag MN = Mongolia 1:2
%-------------------------------------------------------------------------------
\definecolor{mnRed}{HTML}{DA2032}
\definecolor{mnYellow}{HTML}{FFD400}
\definecolor{mnBlue}{HTML}{0066B3}
%-------------------------------------------------------------------------------
\newcommand{\flagMN}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=mnRed](4,0)(6,3)%
\psframe[fillcolor=mnBlue](2,0)(4,3)%
\psframe[fillcolor=mnRed](0,0)(2,3)%
% seal
\psset{fillcolor=mnYellow}%
\rput(1,1.5){\input{Flags/pst-Mongolia-flag-seal.tex}}
%
}}
%-------------------------------------------------------------------------------
%\rput(15,12){\flagMN[2]}
%\rput(16,11.5){\scriptsize{MN @ \number\inputlineno}}
%\rput(0,0){\flagMN[4]}
%===============================================================================

%===============================================================================
% icon Flag PT = Portugal 2:3
%-------------------------------------------------------------------------------
\definecolor{ptRed}{HTML}{FF0000}
\definecolor{ptYellow}{HTML}{FFFF00}
\definecolor{ptGreen}{HTML}{006600}
\definecolor{ptBlue}{HTML}{003399}
%-------------------------------------------------------------------------------
\newcommand{\flagPT}[1][4]{%
\FPeval{\wide}{round(#1/30:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ptGreen](0,0)(30,20)%
\psframe[fillcolor=ptRed](12,0)(30,20)%
% seal
\rput(12,10){\includegraphics[width=10cm]{Flags/pst-Portugal-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(0,10){\flagPT[2]}
%\rput(1,9.5){\scriptsize{PT @ \number\inputlineno}}
%\rput(0,0){\flagPT[4]}
%===============================================================================

%===============================================================================
% icon Flag QA = Qatar 11:28
%-------------------------------------------------------------------------------
\definecolor{qaMaroon}{HTML}{8A1538}
%-------------------------------------------------------------------------------
\newcommand{\flagQA}[1][4]{%
\FPeval{\wide}{round(#1/126:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(126,49.5)%
\psset{fillcolor=qaMaroon}%
\pscustom{%
%\multirput(0,0)(0,5.5){9}{\psline(36.96,0)(42,2.75)(36.96,5.5)}%
\FPset{\aa}{2.75}%
\FPset{\bb}{5.5}%
\multido{\nN=0+1}{9}{%
\psline(36.96,\fpeval{5.5*\nN})(42,\fpeval{\aa+5.5*\nN})(36.96,\fpeval{\bb+5.5*\nN})%
}%
\psline(36.96,49.5)(126,49.5)(126,0)(36.96,0)
}%
}}
%-------------------------------------------------------------------------------
%\rput(3,10){\flagQA[2]}
%\rput(4,9.5){\scriptsize{QA @ \number\inputlineno}}
%\rput(0,0){\flagQA[4]}
%===============================================================================

%===============================================================================
% icon Flag RW = Rwanda 2:3
%-------------------------------------------------------------------------------
\definecolor{rwBlue}{HTML}{00A1DE}
\definecolor{rwYellow}{HTML}{FAD201}
\definecolor{rwGold}{HTML}{E5BE01}
\definecolor{rwGreen}{HTML}{20603D}
%-------------------------------------------------------------------------------
\newcommand{\flagRW}[1][4]{%
\FPeval{\wide}{round(#1/390:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=rwBlue](0,130)(390,260)%
\psframe[fillcolor=rwYellow](0,65)(390,130)%
\psframe[fillcolor=rwGreen](0,0)(390,65)%
\psset{fillcolor=rwGold}%
\rput(320,194){\iconStarXS[12]{42}{24}}%
\pscircle[fillcolor=rwBlue](320,194){12}%
\pscircle[fillcolor=rwGold](320,194){11}%
}}
%-------------------------------------------------------------------------------
%\rput(3,10){\flagRW[2]}
%\rput(4,9.5){\scriptsize{RW @ \number\inputlineno}}
%\rput(0,0){\flagRW[4]}
%===============================================================================

%===============================================================================
% icon Flag SA = Saudi Arabia 2:3
%-------------------------------------------------------------------------------
\definecolor{saGreen}{HTML}{165d31}
%-------------------------------------------------------------------------------
\newcommand{\flagSA}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ptGreen](0,0)(9,6)%
% seal
%\rput(4.5,3){\includegraphics[width=10cm]{Flags/Portugal-flag-seal.eps}}
\psset{fillcolor=white}%
\rput(4.5,3){\input{Flags/pst-Saudi-flag-seal.tex}}
%
}}
%-------------------------------------------------------------------------------
%\rput(0,10){\flagSA[2]}
%\rput(1,9.5){\scriptsize{SA @ \number\inputlineno}}
%\rput(0,0){\flagSA[4]}
%===============================================================================

%===============================================================================
% icon Flag RS = Serbia 2:3
%-------------------------------------------------------------------------------
\definecolor{rsRed}{HTML}{C7363D}
\definecolor{rsBlue}{HTML}{0C4077}
\definecolor{rsYellow}{HTML}{EDB92E}
\definecolor{rsPurple}{HTML}{A12D2E}
%-------------------------------------------------------------------------------
\newcommand{\flagRS}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=rsRed](0,4)(9,6)%
\psframe[fillcolor=rsBlue](0,2)(9,4)%
\psframe[fillcolor=white](0,0)(9,2)%
% seal
\rput(3.2143,3.25){\includegraphics[width=2.25cm]{Flags/pst-Serbia-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(0,10){\flagRS[2]}
%\rput(1,9.5){\scriptsize{RS @ \number\inputlineno}}
%\rput(0,0){\flagRS[4]}
%===============================================================================

%===============================================================================
% icon Flag SC = Seychelles 1:2
%-------------------------------------------------------------------------------
\definecolor{scBlue}{HTML}{003D88}
\definecolor{scYellow}{HTML}{FCD955}
\definecolor{scRed}{HTML}{D92323}
\definecolor{scGreen}{HTML}{007A3A}
%-------------------------------------------------------------------------------
\newcommand{\flagSC}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\pspolygon[fillcolor=scBlue](0,0)(0,3)(2,3)%
\pspolygon[fillcolor=scYellow](0,0)(2,3)(4,3)%
\pspolygon[fillcolor=scRed](0,0)(4,3)(6,3)(6,2)%
\pspolygon[fillcolor=white](0,0)(6,2)(6,1)%
\pspolygon[fillcolor=scGreen](0,0)(6,1)(6,0)%
}}
%-------------------------------------------------------------------------------
%\rput(15,10){\flagSC[2]}
%\rput(16,9.5){\scriptsize{SC @ \number\inputlineno}}
%\rput(0,0){\flagSC[4]}
%===============================================================================

%===============================================================================
% icon Flag TZ = Tanzania 2:3
%-------------------------------------------------------------------------------
\definecolor{tzBlue}{HTML}{00A3DD}
\definecolor{tzYellow}{HTML}{FCD116}
\definecolor{tzGreen}{HTML}{1EB53A}
%-------------------------------------------------------------------------------
\newcommand{\flagTZ}[1][4]{%
\FPeval{\wide}{round(#1/72:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,0)(72,48)%
\pspolygon[fillcolor=tzYellow](6.5,0)(9.5,0)(72,38.5)(72,41.5)%
\pspolygon[fillcolor=tzYellow](0,6.5)(0,9.5)(62.5,48)(65.5,48)%
\pspolygon[fillcolor=tzBlue](9.5,0)(72,0)(72,38.5)%
\pspolygon[fillcolor=tzGreen](0,9.5)(0,48)(62.5,48)%
}}
%-------------------------------------------------------------------------------
%\rput(0,8){\flagTZ[2]}
%\rput(1,7.5){\scriptsize{TZ @ \number\inputlineno}}
%\rput(0,0){\flagTZ[4]}
%===============================================================================

%===============================================================================
% icon Flag UY = Uruguay 2:3
%-------------------------------------------------------------------------------
\definecolor{uyBlue}{HTML}{001489}
\definecolor{uyYellow}{HTML}{FFCD00}
\definecolor{uyBrown}{HTML}{7B3F00}
%-------------------------------------------------------------------------------
\newcommand{\flagUY}[1][4]{%
\FPeval{\wide}{round(#1/243:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\multirput(0,0)(0,36){5}{\psframe[fillcolor=white](0,0)(243,18)}%
\multirput(0,0)(0,36){4}{\psframe[fillcolor=uyBlue](0,18)(243,36)}%
\psframe[fillcolor=white](0,72)(90,162)%
%
\rput(45,117){\includegraphics[width=66cm]{Flags/pst-Uruguay-flag-seal.eps}}%
%\rput(45,117){\input{Flags/Uruguay-flag-seal.tex}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,8){\flagUY[2]}
%\rput(4,7.5){\scriptsize{UY @ \number\inputlineno}}
%\rput(0,0){\flagUY[4]}
%===============================================================================

%===============================================================================
% icon Flag TJ = Tajikistan 1:2
%-------------------------------------------------------------------------------
\definecolor{tjRed}{HTML}{CD0000}
\definecolor{tjYellow}{HTML}{F8C400}
\definecolor{tjGreen}{HTML}{006600}
%-------------------------------------------------------------------------------
\newcommand{\flagTJ}[1][4]{%
\FPeval{\wide}{round(#1/14:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=tjRed](0,5)(14,7)%
\psframe[fillcolor=white](0,2)(14,5)%
\psframe[fillcolor=tjGreen](0,0)(14,2)%
%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\psset{fillcolor=tjYellow}%
\multido{\nA=0+30}{7}{%
\uput{1.4}[\nA]{0}(7,3.2){\iconStar[0.45]{0.8}}%
}%
\rput(7,3.2){\psscalebox{1.5}{\input{Flags/pst-Tajikistan-flag-seal-crown.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,8){\flagTJ[2]}
%\rput(4,7.5){\scriptsize{TJ @ \number\inputlineno}}
%\rput(0,0){\flagTJ[4]}
%===============================================================================

%===============================================================================
% icon Flag TW = Taiwan  Republic of China 2:3
%-------------------------------------------------------------------------------
\definecolor{twRed}{HTML}{F20000}
\definecolor{twBlue}{HTML}{0029CC}
%-------------------------------------------------------------------------------
\newcommand{\flagTW}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=twRed](0,0)(12,8)%
\psframe[fillcolor=twBlue](0,4)(6,8)%
\psset{fillcolor=white}%
\rput(3,6){\iconStarXS[0.75]{1.5}{12}}%
\pscircle[fillcolor=twBlue](3,6){0.85}%
\pscircle(3,6){0.75}
}}
%-------------------------------------------------------------------------------
%\rput(3,8){\flagTW[2]}
%\rput(4,7.5){\scriptsize{TW @ \number\inputlineno}}
%\rput(0,0){\flagTW[4]}
%===============================================================================

%===============================================================================
% icon Flag LK = Sri Lanka 1:2
%-------------------------------------------------------------------------------
\definecolor{lkYellow}{HTML}{F7B718}
\definecolor{lkMaroon}{HTML}{941E32}
\definecolor{lkOrange}{HTML}{DF7500}
\definecolor{lkTeal}{HTML}{005F56}
%-------------------------------------------------------------------------------
\newcommand{\flagLK}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=lkYellow](0,0)(24,12)%
\psframe[fillcolor=lkTeal](1,1)(4.3,11)%
\psframe[fillcolor=lkOrange](4.3,1)(7.6,11)%
\psframe[fillcolor=lkMaroon](8.6,1)(23,11)%
\psset{fillcolor=lkYellow,linestyle=solid,linewidth=0.02,linecolor=black}%
\rput(15.8,6){\psscalebox{1.5}{\input{Flags/pst-SriLanka-seal.tex}}}
}}
%-------------------------------------------------------------------------------
%\rput(3,8){\flagLK[2]}
%\rput(4,7.5){\scriptsize{LK @ \number\inputlineno}}
%\rput(0,0){\flagLK[4]}
%===============================================================================

%===============================================================================
% icon Flag ES = Spain 2:3
%-------------------------------------------------------------------------------
\definecolor{esYellow}{HTML}{FABD00}
\definecolor{esRed}{HTML}{AD1519}
%-------------------------------------------------------------------------------
\newcommand{\flagES}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=esRed](0,4.5)(9,6)%
\psframe[fillcolor=esYellow](0,1.5)(9,4.5)%
\psframe[fillcolor=esRed](0,0)(9,1.5)%
\rput(3,3){\includegraphics[height=2.4cm]{Flags/pst-Spain-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(15,8){\flagES[2]}
%\rput(16,7.5){\scriptsize{ES @ \number\inputlineno}}
%\rput(0,0){\flagES[4]}
%===============================================================================

%===============================================================================
% icon Flag SI = Slovenia 1:2
%-------------------------------------------------------------------------------
\definecolor{siBlue}{HTML}{003DA5}
\definecolor{siYellow}{HTML}{FFCD00}
\definecolor{siRed}{HTML}{FF0000}
%-------------------------------------------------------------------------------
\newcommand{\flagSI}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,4)(12,6)%
\psframe[fillcolor=siBlue](0,2)(12,4)%
\psframe[fillcolor=siRed](0,0)(12,2)%
\rput(3,4){\includegraphics[height=2cm]{Flags/pst-Slovenia-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(0,6){\flagSI[2]}
%\rput(1,6.5){\scriptsize{SI @ \number\inputlineno}}
%\rput(0,0){\flagSI[4]}
%===============================================================================

%===============================================================================
% icon Flag SK = Slovakia 2:3
%-------------------------------------------------------------------------------
\definecolor{skBlue}{HTML}{034DA3}
\definecolor{skRed}{HTML}{EE1620}
%-------------------------------------------------------------------------------
\newcommand{\flagSK}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,8)(18,12)%
\psframe[fillcolor=skBlue](0,4)(18,8)%
\psframe[fillcolor=skRed](0,0)(18,4)%
\rput(3.6,8){\includegraphics[height=5.14cm]{Flags/pst-Slovakia-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(3,6){\flagSK[2]}
%\rput(4,6.5){\scriptsize{SK @ \number\inputlineno}}
%\rput(0,0){\flagSK[4]}
%===============================================================================

%===============================================================================
% icon Flag NP = Nepal 4:3
%-------------------------------------------------------------------------------
\definecolor{npBlue}{HTML}{003594}
\definecolor{npRed}{HTML}{DD0C39}
%-------------------------------------------------------------------------------
\newcommand{\flagNP}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\pspolygon[fillcolor=npRed,linestyle=solid,linewidth=0.2,linecolor=npBlue](0,0)(12,0) (3.514718625761429,8.485281374238571)(12,8.485281374238571)(0,16)%
%
%\psset{fillstyle=none,linestyle=solid}
%\pscircle(3,11.30330085889911){2.4}%
%\pscircle(3,12.24264068711929){2.4}%
%\psset{fillstyle=solid,fillcolor=yellow,linestyle=none}
%\pscircle(.64640484114624745383,11.772970773009200000){0.1}
%\pscircle[fillcolor=pink](5.3535951588537525462,11.772970773009200000){0.1}
%\pscircle[fillcolor=white](3,11.30330085889911){0.1}
%\pscircle[fillcolor=blue](3,12.24264068711929){0.1}
%\psset{fillstyle=none,linestyle=solid}
%\psarc[linecolor=yellow](3,11.30330085889911){2.4}{168.715}{11.285}
%\psarcn[linecolor=green](3,12.24264068711929){2.4}{-11.285}{191.285}
%
\pscustom[fillcolor=white]{%
\psarc[linecolor=yellow](3,11.30330085889911){2.4}{168.715}{11.285}%
\psarcn[linecolor=green](3,12.24264068711929){2.4}{-11.285}{191.285}%
}%
%
\rput{11.25}(3,10.6){\iconStarXS[1.2]{1.6}{16}}%
\rput(3,4.242){\iconStarXS[1.2]{2.4}{12}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,6){\flagNP[2]}
%\rput(7,6.5){\scriptsize{NP @ \number\inputlineno}}
%\rput(0,0){\flagNP[3]}
%===============================================================================

%===============================================================================
% icon Flag AL = Albania 5:7
%-------------------------------------------------------------------------------
\definecolor{alRed}{HTML}{DA291C}
%-------------------------------------------------------------------------------
\newcommand{\flagAL}[1][4]{%
\FPeval{\wide}{round(#1/7:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=alRed](0,0)(7,5)%
\rput(3.5,2.5){\psscalebox{1.5}{\input{Flags/pst-Albania-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,6){\flagAL[2]}
%\rput(7,6.5){\scriptsize{AL @ \number\inputlineno}}
%\rput(0,0){\flagAL[3]}
%===============================================================================

%===============================================================================
% icon Flag DZ = Algeria 2:3
%-------------------------------------------------------------------------------
\definecolor{dzRed}{HTML}{D21034}
\definecolor{dzGreen}{HTML}{006633}
%-------------------------------------------------------------------------------
\newcommand{\flagDZ}[1][4]{%
\FPeval{\wide}{round(#1/3:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](1.5,0)(3,2)%
\psframe[fillcolor=dzGreen](0,0)(1.5,2)%
\psset{fillcolor=dzRed}
\pscustom{%
\psarc[linestyle=solid,linecolor=yellow](1.5,1){0.5}{30}{-30}%
\psarcn[linestyle=solid,linecolor=blue](1.6207628020,1){0.4}{-40}{40}%
}%
\rput{-90}(1.7022542486,1){\iconStar[0.5]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,6){\flagDZ[2]}
%\rput(13,6.5){\scriptsize{DZ @ \number\inputlineno}}
%\rput(0,0){\flagDZ[4]}
%===============================================================================

%===============================================================================
% icon Flag AZ = Azerbaijan 1:2
%-------------------------------------------------------------------------------
\definecolor{azBlue}{HTML}{00B5E2}
\definecolor{azRed}{HTML}{EF3340}
\definecolor{azGreen}{HTML}{509E2F}
%-------------------------------------------------------------------------------
\newcommand{\flagAZ}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=azBlue](0,2)(6,3)%
\psframe[fillcolor=azRed](0,1)(6,2)%
\psframe[fillcolor=azGreen](0,0)(6,1)%
\psset{fillcolor=white}
\pscustom{%
\psarc[linestyle=solid,linecolor=yellow](3,1.5){0.45}{37.002}{-37.002}%
\psarcn[linestyle=solid,linecolor=blue](3.1,1.5){0.375}{-46.2380}{46.2380}%
}%
\rput{-90}(3.5,1.5){\iconStarXS[0.125]{0.25}{8}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,6){\flagAZ[2]}
%\rput(13,6.5){\scriptsize{AZ @ \number\inputlineno}}
%\rput(0,0){\flagAZ[4]}
%===============================================================================

%===============================================================================
% icon Flag AR = Argentina 5:8
%-------------------------------------------------------------------------------
\definecolor{arBlue}{HTML}{75AADB}
\definecolor{arRed}{HTML}{843511}
\definecolor{arYellow}{HTML}{FCBF49}
%-------------------------------------------------------------------------------
\newcommand{\flagAR}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle,fillstyle=solid, linestyle=none}%
\psframe[fillcolor=arBlue](0,10)(24,15)%
\psframe[fillcolor=white](0,5)(24,10)%
\psframe[fillcolor=arBlue](0,0)(24,5)%
\rput(12,7.5){\includegraphics[width=4.2cm]{Flags/pst-Argentina-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,6){\flagAR[2]}
%\rput(13,6.5){\scriptsize{AR @ \number\inputlineno}}
%\rput(0,0){\flagAR[4]}
%===============================================================================

%===============================================================================
% icon Flag PS = Bahamas 1:2
%-------------------------------------------------------------------------------
\definecolor{bsYellow}{HTML}{FFC72C}
\definecolor{bsBlue}{HTML}{00778B}
%-------------------------------------------------------------------------------
\newcommand{\flagBS}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bsBlue](0,2)(6,3)
\psframe[fillcolor=bsYellow](0,1)(6,2)
\psframe[fillcolor=bsBlue](0,0)(6,1)
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3
\pspolygon[fillcolor=black](0,0)(0,3)(2.598076211353316 ,1.5)
}}
%-------------------------------------------------------------------------------
%\rput(6,5){\flagBS[2]}
%\rput(7,4.5){\scriptsize{BS @ \number\inputlineno}}
%\rput(0,0){\flagBS[6]}
%===============================================================================

%===============================================================================
% icon Flag BY = Belarus 1:2
%-------------------------------------------------------------------------------
\definecolor{byRed}{HTML}{CF101A}
\definecolor{byGreen}{HTML}{007D2C}
%-------------------------------------------------------------------------------
% number of pattern pixels  1 unit x 1 unit
% #1 = how wide = overall height = default 23 unit
% #2 = how tall = overall width = default 61 unit
%% #3 = background color
% #4 = foreground color
\newcommand{\flagBYPattern}[3]{%
\psscalebox{\fpeval{round(#1/61,5)} \fpeval{round(#2/23,5)}}{%
\psset{dimen=middle,fillstyle=solid, fillcolor=#3, linestyle=solid,linewidth=0.0001,linecolor=#3}%
\def\pd(##1,##2){\psframe(\fpeval{##1-1},\fpeval{##2-1})(##1,##2)}%
\def\p(##1,##2,##3){\psframe(\fpeval{##1-1},\fpeval{##2-1})(##1,\fpeval{##3+##2-1})}%
\def\pw(##1,##2,##3){\psframe(\fpeval{##1-1},\fpeval{##2-1})(\fpeval{##3+##1-1},##2)}%
\def\pb(##1,##2,##3,##4){\psframe(\fpeval{##1-1},\fpeval{##2-1}) (\fpeval{##3+##1-1},\fpeval{##4+##2-1})}%
%
\def\pattern{%
\p(1,5,3)%
\p(2,1,1)%
\p(2,4,5)%
\p(3,3,3)%
\p(3,7,3)%
\p(4,2,3)%
\p(4,8,3)%
\p(5,1,3)%
\p(5,6,1)%
\p(5,9,3)%
\p(6,2,3)%
\p(6,8,3)%
\p(7,3,3)%
\p(7,7,3)%
\p(8,1,1)%
\p(8,4,5)%
\p(9,5,3)%
\p(10,3,1)%
\p(10,6,1)%
\p(10,9,1)%
\p(10,9,1)%
\p(11,2,3)%
\p(11,8,3)%
\p(12,1,2)%
\p(12,4,2)%
\p(12,7,2)%
\p(12,10,2)%
\p(13,2,3)%
\p(13,8,3)%
\p(14,3,1)%
\p(14,6,1)%
\p(14,9,1)%
\p(15,5,3)%
\p(16,1,1)%
\p(16,4,5)%
\p(17,3,7)%
\p(18,2,9)%
\p(19,1,11)%
\p(20,1,4)%
\p(20,8,4)%
\p(21,2,5)%
\p(21,9,3)%
\p(22,3,3)%
\p(22,10,2)%
\p(23,1,1)%
\p(23,4,1)%
\p(23,9,3)%
\p(24,8,4)%
\p(25,1,1)%
\p(25,7,4)%
\p(26,1,2)%
\p(26,6,4)%
\p(27,1,3)%
\p(27,5,4)%
\p(28,2,6)%
\p(28,10,1)%
\p(29,3,4)%
\p(29,10,2)%
\p(30,4,3)%
\p(30,11,1)%
}%
\rput(0,0){\pattern}%
\rput(61,0){\psscalebox{-1 1}{\pattern}}%
\rput(0,23){\psscalebox{1 -1}{\pattern}}%
\rput(61,23){\psscalebox{-1 -1}{\pattern}}%
%
\p(31,5,2)%
\p(31,8,1)%
\p(31,16,1)%
\p(31,18,2)%
%
\pw(1,12,2)%
\pw(8,12,2)%
\pw(15,12,2)%
\pw(20,12,4)%
\pw(26,12,1)%
\pw(30,12,3)%
\pw(36,12,1)%
\pw(39,12,4)%
\pw(46,12,2)%
\pw(53,12,2)%
\pw(60,12,2)%
%
}}%
%
%\rput{90}(0,0){\flagBYPattern{4.5}{0.9}{red}}
%-------------------------------------------------------------------------------
\newcommand{\flagBY}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(9,4.53)%
\psframe[fillcolor=byRed](1,1.5,0)(9,4.5)%
\psframe[fillcolor=byGreen](1,0)(9,1.5)%
\psframe[fillcolor=byRed](0,0)(0.1,4.5)%
\rput{90}(1,0){\flagBYPattern{4.5}{0.9}{byRed}}
}}
%-------------------------------------------------------------------------------
%\rput(6,5){\flagBY[2]}
%\rput(7,4.5){\scriptsize{BY @ \number\inputlineno}}
%\rput(0,0){\flagBY[6]}
%===============================================================================

%===============================================================================
% icon Flag BJ = Benin 2:3
%-------------------------------------------------------------------------------
\definecolor{bjRed}{HTML}{E90929}
\definecolor{bjGreen}{HTML}{008850}
\definecolor{bjYellow}{HTML}{FCD20F}
%-------------------------------------------------------------------------------
\newcommand{\flagBJ}[1][4]{%
\FPeval{\wide}{round(#1/15:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bjGreen](0,0)(6,10)%
\psframe[fillcolor=bjYellow](6,5)(15,10)%
\psframe[fillcolor=bjRed](6,0)(15,5)%
}}
%-------------------------------------------------------------------------------
%\rput(12,4){\flagBJ[2]}
%\rput(13,3.5){\scriptsize{BJ @ \number\inputlineno}}
%\rput(0,0){\flagBJ[4]}
%===============================================================================

%===============================================================================
% icon Flag BA = Bosnia and Herzegovina 1:2
%-------------------------------------------------------------------------------
\definecolor{baBlue}{HTML}{001489}
\definecolor{baYellow}{HTML}{FFCD00}
%-------------------------------------------------------------------------------
\newcommand{\flagBA}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=baBlue](0,0)(4,2)%
\pspolygon[fillcolor=baYellow](1.06,2)(3.06,2)(3.06,0)%
\psset{fillcolor=white}%
\multirput(2.43,0.25)(-0.25,0.25){7}{\iconStar[0.38]{0.8}}%
%
%\psset{fillcolor=red}%
%\multirput(2.68,0)(-0.25,0.25){9}{\iconStar[0.38]{0.8}}%
%
% Bottom Star
\iconStarXNPoints[0.076]{0.19}{5}{2.68}{0}%
\pscustom{%
\ncline[linestyle=solid,linecolor=green]{pO1}{pI1}%
\ncline[linestyle=solid,linecolor=blue]{pI1}{pO2}%
\psline[linestyle=solid,linecolor=yellow](2.6,0)(2.76,0)%
\ncline[linestyle=solid,linecolor=green]{pO5}{pI5}%
\ncline[linestyle=solid,linecolor=blue]{pI5}{pO1}%
}%
% Top Star
\iconStarXNPoints[0.076]{0.19}{5}{0.68}{2}%
\pscustom{%
\psline[linestyle=solid,linecolor=yellow](0.78,2)(0.58,2)%
\ncline[linestyle=solid,linecolor=green]{pI2}{pO3}%
\ncline[linestyle=solid,linecolor=blue]{pO3}{pI3}%
\ncline[linestyle=solid,linecolor=green]{pI3}{pO4}%
\ncline[linestyle=solid,linecolor=blue]{pO4}{pI4}%
}%
%
%
%\psline(linestyle=solid,linecolor=green](
}}
%-------------------------------------------------------------------------------
%\rput(15,4){\flagBA[2]}
%\rput(16,3.5){\scriptsize{BA @ \number\inputlineno}}
%\rput(0,0){\flagBA[4]}
%===============================================================================

%===============================================================================
% icon Flag BW = Botswana 2:3
%-------------------------------------------------------------------------------
\definecolor{bwBlue}{HTML}{ABCAE9}
%-------------------------------------------------------------------------------
\newcommand{\flagBW}[1][4]{%
\FPeval{\wide}{round(#1/36:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(36,24)%
\psframe[fillcolor=bwBlue](0,15)(36,24)%
\psframe[fillcolor=black](0,10)(36,14)%
\psframe[fillcolor=bwBlue](0,0)(36,9)%
}}
%-------------------------------------------------------------------------------
%\rput(15,4){\flagBW[2]}
%\rput(16,3.5){\scriptsize{BW @ \number\inputlineno}}
%\rput(0,0){\flagBW[4]}
%===============================================================================

%===============================================================================
% icon Flag BF = Burkina Faso 2:3
%-------------------------------------------------------------------------------
\definecolor{bfRed}{HTML}{EF2B2D}
\definecolor{bfYellow}{HTML}{FCD116}
\definecolor{bfGreen}{HTML}{009E49}
%-------------------------------------------------------------------------------
\newcommand{\flagBF}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bfRed](0,6)(18,12)%
\psframe[fillcolor=bfGreen](0,0)(18,6)%
\psset{fillcolor=bfYellow}%
%\rput(9,6){\iconStarXS[0.8]{2}{5}}%
\rput(9,6){\iconStar[4]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,2){\flagBF[2]}
%\rput(4,1.5){\scriptsize{BF @ \number\inputlineno}}
%\rput(0,0){\flagBF[4]}
%===============================================================================

%===============================================================================
% icon Flag CM = Cameroon 2:3
%-------------------------------------------------------------------------------
\definecolor{cmRed}{HTML}{EF2B2D}
\definecolor{cmYellow}{HTML}{FCD116}
\definecolor{cmGreen}{HTML}{009E49}
%-------------------------------------------------------------------------------
\newcommand{\flagCM}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=cmGreen](0,0)(6,12)%
\psframe[fillcolor=cmRed](6,0)(12,12)%
\psframe[fillcolor=cmYellow](12,0)(18,12)%
\psset{fillcolor=cmYellow}%
%\rput(9,6){\iconStarXS[0.8]{2}{5}}%
\rput(9,6){\iconStar[4]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,2){\flagCM[2]}
%\rput(7,1.5){\scriptsize{CM @ \number\inputlineno}}
%\rput(0,0){\flagCM[4]}
%===============================================================================

%===============================================================================
% icon Flag GH = Ghana 2:3
%-------------------------------------------------------------------------------
\definecolor{ghRed}{HTML}{CF0921}
\definecolor{ghYellow}{HTML}{FCD20F}
\definecolor{ghGreen}{HTML}{006B3D}
%-------------------------------------------------------------------------------
\newcommand{\flagGH}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ghRed](0,8)(18,12)%
\psframe[fillcolor=ghYellow](0,4)(18,8)%
\psframe[fillcolor=ghGreen](0,0)(18,4)%
\psset{fillcolor=black}%
%\rput(9,6){\iconStarXS[0.8]{2}{5}}%
\rput(9,5.788854382){\iconStar[4.422291236]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,21){\flagGH[2]}
%\rput(4,20.5){\scriptsize{GH @ \number\inputlineno}}
%\rput(0,0){\flagGH[4]}
%===============================================================================

%===============================================================================
% icon Flag CF = Central African Republic 2:3
%-------------------------------------------------------------------------------
\definecolor{cfRed}{HTML}{d21034}
\definecolor{cfYellow}{HTML}{ffce00}
\definecolor{cfGreen}{HTML}{289728}
\definecolor{cfBlue}{HTML}{003082}
%-------------------------------------------------------------------------------
\newcommand{\flagCF}[1][4]{%
\FPeval{\wide}{round(#1/60:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=cfBlue](0,30)(60,40)%
\psframe[fillcolor=white](0,20)(60,30)%
\psframe[fillcolor=cfGreen](0,10)(60,20)%
\psframe[fillcolor=cfYellow](0,0)(60,10)%
\psframe[fillcolor=cfRed](25,0)(35,40)%
\psset{fillcolor=cmYellow}%
%\rput(9,6){\iconStarXS[0.8]{2}{5}}%
\rput(10,34.6){\iconStar[9]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,2){\flagCF[2]}
%\rput(10,1.5){\scriptsize{CF @ \number\inputlineno}}
%\rput(0,0){\flagCF[4]}
%===============================================================================

%===============================================================================
% icon Flag TD = Chad 2:3
%-------------------------------------------------------------------------------
\definecolor{tdRed}{HTML}{C60C30}
\definecolor{tdYellow}{HTML}{FECB00}
\definecolor{tdBlue}{HTML}{002664}
%-------------------------------------------------------------------------------
\newcommand{\flagTD}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=tdBlue](0,0)(3,6)%
\psframe[fillcolor=tdYellow](3,0)(6,6)%
\psframe[fillcolor=tdRed](6,0)(9,6)%
}}
%-------------------------------------------------------------------------------
%\rput(12,2){\flagTD[2]}
%\rput(13,1.5){\scriptsize{TD @ \number\inputlineno}}
%\rput(0,0){\flagTD[4]}
%===============================================================================

%===============================================================================
% icon Flag CL = Chile 2:3
%-------------------------------------------------------------------------------
\definecolor{clRed}{HTML}{d52b1e}
\definecolor{clBlue}{HTML}{0039a6}
%-------------------------------------------------------------------------------
\newcommand{\flagCL}[1][4]{%
\FPeval{\wide}{round(#1/6:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,2)(6,4)%
\psframe[fillcolor=clRed](0,0)(6,2)%
\psframe[fillcolor=clBlue](0,2)(2,4)%
\psset{fillcolor=white}%
\rput(1,3){\iconStar[1]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,2){\flagCL[2]}
%\rput(16,1.5){\scriptsize{CL @ \number\inputlineno}}
%\rput(0,0){\flagCL[4]}
%===============================================================================

%===============================================================================
% icon Flag CG = Congo (Brazzaville) Republic of the Congo  2:3
%-------------------------------------------------------------------------------
\definecolor{cgRed}{HTML}{DC241F}
\definecolor{cgYellow}{HTML}{FBDE4A}
\definecolor{cgGreen}{HTML}{009543}
%-------------------------------------------------------------------------------
\newcommand{\flagCG}[1][4]{%
\FPeval{\wide}{round(#1/e:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=cgYellow](0,0)(3,2)%
\pspolygon[fillcolor=cgGreen](0,0)(0,2)(2,2)%
\pspolygon[fillcolor=cgRed](1,0)(3,0)(3,2)%
}}
%-------------------------------------------------------------------------------
%\rput(0,0){\flagCG[2]}
%\rput(1,-0.5){\scriptsize{CG @ \number\inputlineno}}
%\rput(0,0){\flagCG[4]}
%===============================================================================

%===============================================================================
% icon Flag CD = Congo, (Kinshasa) Democratic Republic of the Congo 3:4
%-------------------------------------------------------------------------------
\definecolor{cdRed}{HTML}{ce1021}
\definecolor{cdYellow}{HTML}{f7d618}
\definecolor{cdBlue}{HTML}{007fff}
%-------------------------------------------------------------------------------
\newcommand{\flagCD}[1][4]{%
\FPeval{\wide}{round(#1/8:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=cdYellow](0,0)(8,6)%
\pspolygon[fillcolor=cdBlue](0.5,0)(8,0)(8,4.5)%
\pspolygon[fillcolor=cdBlue](0,1.5)(0,6)(7.5,6)%
\pspolygon[fillcolor=cdRed](0,0)(0,1.2)(8,6)(8,4.8)%
\psset{fillcolor=cdYellow}%
\rput(1.5,4.4){\iconStar[2.4]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,0){\flagCD[2]}
%\rput(4,-0.5){\scriptsize{CD @ \number\inputlineno}}
%\rput(0,0){\flagCD[4]}
%===============================================================================

%===============================================================================
% icon Flag EG = Egypt 2:3
%-------------------------------------------------------------------------------
\definecolor{egRed}{HTML}{ce1126}
\definecolor{egGold}{HTML}{c09300}
%-------------------------------------------------------------------------------
\newcommand{\flagEG}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=egRed](0,4)(9,6)%
\psframe[fillcolor=white](0,2)(9,4)%
\psframe[fillcolor=black](0,0)(9,2)%
\psset{fillcolor=egGold}%
\rput(4.5,3){\psscalebox{1.5}{\input{Flags/pst-Egypt-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,0){\flagEG[2]}
%\rput(7,-0.5){\scriptsize{EG @ \number\inputlineno}}
%\rput(0,0){\flagEG[4]}
%===============================================================================

%===============================================================================
% icon Flag EE = Estonia = 7:11
%-------------------------------------------------------------------------------
\definecolor{eeBlue}{HTML}{0072CE}
%-------------------------------------------------------------------------------
\newcommand{\flagEE}[1][4]{%
\FPeval{\wide}{round(#1/33:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=eeBlue](0,14)(33,21)%
\psframe[fillcolor=black](0,7)(33,14)%
\psframe[fillcolor=white](0,0)(33,7)%
}}
%-------------------------------------------------------------------------------
%\rput(9,0){\flagEE[2]}
%\rput(10,-0.5){\scriptsize{EE @ \number\inputlineno}}
%\rput(0,0){\flagEE[4]}
%===============================================================================

%===============================================================================
% icon Flag GA = Gabon 3:4
%-------------------------------------------------------------------------------
\definecolor{gaBlue}{HTML}{4664B2}
\definecolor{gaYellow}{HTML}{FCD116}
\definecolor{gaGreen}{HTML}{009E60}
%-------------------------------------------------------------------------------
\newcommand{\flagGA}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=gaGreen](0,2)(4,3)%
\psframe[fillcolor=gaYellow](0,1)(4,2)%
\psframe[fillcolor=gaBlue](0,0)(4,1)%
}}
%-------------------------------------------------------------------------------
%\rput(12,0){\flagGA[2]}
%\rput(13,-0.5){\scriptsize{GA @ \number\inputlineno}}
%\rput(0,0){\flagGA[4]}
%===============================================================================

%===============================================================================
% icon Flag GM = Gambia 2:3
%-------------------------------------------------------------------------------
\definecolor{gmBlue}{HTML}{0C1C8C}
\definecolor{gmRed}{HTML}{CE1126}
\definecolor{gmGreen}{HTML}{3A7728}
%-------------------------------------------------------------------------------
\newcommand{\flagGM}[1][4]{%
\FPeval{\wide}{round(#1/27:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(27,18)%
\psframe[fillcolor=gmRed](0,12)(27,18)%
\psframe[fillcolor=gmBlue](0,7)(27,11)%
\psframe[fillcolor=gmGreen](0,0)(27,6)%
}}
%-------------------------------------------------------------------------------
%\rput(15,0){\flagGM[2]}
%\rput(16,-0.5){\scriptsize{GM @ \number\inputlineno}}
%\rput(0,0){\flagGM[4]}
%===============================================================================

%===============================================================================
% icon Flag GE = Georgia (country) 2:3
%-------------------------------------------------------------------------------
\definecolor{geRed}{HTML}{FF0000}
%-------------------------------------------------------------------------------
\newcommand{\flagGECross}[1][4]{%
\FPeval{\wide}{round(#1/40.91974026:3)}\psscalebox{\wide}{%
%% Construction
%\psset{linestyle=solid,fillstyle=none,linewidth=1mm}%
%\psarc[linecolor=red](74,0){54}{90}{270}
%\psarc[linecolor=red](-74,0){54}{270}{900}
%\psarc[linecolor=red](0,74){54}{180}{0}
%\psarc[linecolor=red](0,-74){54}{0}{180}
%
%\psarc[linecolor=cyan](109,0){104}{90}{270}
%\psarc[linecolor=cyan](-109,0){104}{270}{900}
%\psarc[linecolor=cyan](0,109){104}{180}{0}
%\psarc[linecolor=cyan](0,-109){104}{0}{180}
%
%%\FPset{\ip}{27.566}
%%\pscircle[fillstyle=solid,fillcolor=yellow,opacity=0.4](\ip,\ip){2}
%%\pscircle[fillstyle=solid,fillcolor=blue,opacity=0.4](-\ip,\ip){2}
%%\pscircle[fillstyle=solid,fillcolor=red,opacity=0.4](-\ip,-\ip){2}
%%\pscircle[fillstyle=solid,fillcolor=green,opacity=0.4](\ip,-\ip){2}
%
%\FPset{\ip}{5.125}
%\pscircle[fillstyle=solid,fillcolor=black,opacity=0.4](\ip,\ip){2}
%\pscircle[fillstyle=solid,fillcolor=blue,opacity=0.4](-\ip,\ip){2}
%\pscircle[fillstyle=solid,fillcolor=red,opacity=0.4](-\ip,-\ip){2}
%\pscircle[fillstyle=solid,fillcolor=green,opacity=0.4](\ip,-\ip){2}
%
%\FPset{\px}{7.03240}
%\FPset{\py}{20.46}
%\pscircle[fillstyle=solid,fillcolor=magenta,opacity=0.4](\px,\py){2}
%\pscircle[fillstyle=solid,fillcolor=magenta,opacity=0.4](-\px,\py){2}
%\pscircle[fillstyle=solid,fillcolor=green,opacity=0.4](\px,-\py){2}
%\pscircle[fillstyle=solid,fillcolor=green,opacity=0.4](-\px,-\py){2}
%\pscircle[fillstyle=solid,fillcolor=yellow,opacity=0.4](\py,\px){2}
%\pscircle[fillstyle=solid,fillcolor=blue,opacity=0.4](-\py,\px){2}
%\pscircle[fillstyle=solid,fillcolor=cyan,opacity=0.4](\py,-\px){2}
%\pscircle[fillstyle=solid,fillcolor=cyan,opacity=0.4](-\py,-\px){2}
%
%
%% angle = 2.825, 11.346 @104
%\psarc[linecolor=pink,linewidth=10mm](-109,0){104}{2.825}{11.346}
%\psarc[linecolor=orange,linewidth=10mm](-109,0){104}{-11.346}{-2.825}
%\psarc[linecolor=lime,linewidth=10mm](0,-109){104}{92.825}{101.346}
%\psarc[linecolor=gray,linewidth=10mm](0,-109){104}{78.654}{87.175}
%\psarc[linecolor=magenta,linewidth=10mm](109,0){104}{168.654}{177.175}
%\psarc[linecolor=yellow,linewidth=10mm](109,0){104}{182.825}{191.346}
%\psarc[linecolor=green,linewidth=10mm](0,109){104}{272.825}{281.346}
%\psarc[linecolor=Green,linewidth=10mm](0,109){104}{258.654}{267.175}
%
%% aange = 7.483 @54
%\psarc[linecolor=red,linewidth=10mm](74,0){54}{172.517}{187.483}
%\psarc[linecolor=cyan,linewidth=10mm](-74,0){54}{-7.4837}{7.483}
%\psarc[linecolor=blue,linewidth=10mm](0,74){54}{262.517}{277.483}
%\psarc[linecolor=black,linewidth=10mm](0,-74){54}{82.517}{97.483}
%
%\pscustom[fillstyle=solid,fillcolor=yellow,linestyle=none]{%
%\psarc[linecolor=magenta,linewidth=10mm]{->}(109,0){104}{168.654}{177.175}
%\psarc[linecolor=green,linewidth=10mm](0,109){104}{272.825}{281.346}
%\psarc[linecolor=red,linewidth=10mm](74,0){54}{172.517}{187.483}
%\psarc[linecolor=gray,linewidth=10mm](0,-109){104}{78.654}{87.175}
%\psarc[linecolor=yellow,linewidth=10mm](109,0){104}{182.825}{191.346}
%\psarc[linecolor=black,linewidth=10mm](0,-74){54}{82.517}{97.483}
%\psarc[linecolor=orange,linewidth=10mm](-109,0){104}{-11.346}{-2.825}
%\psarc[linecolor=lime,linewidth=10mm](0,-109){104}{92.825}{101.346}
%\psarc[linecolor=cyan,linewidth=10mm](-74,0){54}{-7.4837}{7.483}
%\psarc[linecolor=Green,linewidth=10mm](0,109){104}{258.654}{267.175}
%\psarc[linecolor=pink,linewidth=10mm](-109,0){104}{2.825}{11.346}
%\psarc[linecolor=blue,linewidth=10mm](0,74){54}{262.517}{277.483}
%}%
%
\pscustom{%
\psarc(109,0){104}{168.654}{177.175}
\psarc(0,109){104}{272.825}{281.346}
\psarc(74,0){54}{172.517}{187.483}
\psarc(0,-109){104}{78.654}{87.175}
\psarc(109,0){104}{182.825}{191.346}
\psarc(0,-74){54}{82.517}{97.483}
\psarc(-109,0){104}{-11.346}{-2.825}
\psarc(0,-109){104}{92.825}{101.346}
\psarc(-74,0){54}{-7.4837}{7.483}
\psarc(0,109){104}{258.654}{267.175}
\psarc(-109,0){104}{2.825}{11.346}
\psarc(0,74){54}{262.517}{277.483}
}%
}}
%-------------------------------------------------------------------------------
%\rput(5,5){\flagGECross[4]}%
%-------------------------------------------------------------------------------
\newcommand{\flagGE}[1][4]{%
\FPeval{\wide}{round(#1/300:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(300,200)%
\psframe[fillcolor=gmRed](130,0)(170,200)%
\psframe[fillcolor=gmRed](0,80)(300,120)%
\psset{fillcolor=gmRed}%
\rput(65,40){\rput(5,5){\flagGECross[40.91974026]}}%
\rput(65,160){\rput(5,5){\flagGECross[40.91974026]}}%
\rput(235,40){\rput(5,5){\flagGECross[40.91974026]}}%
\rput(235,160){\rput(5,5){\flagGECross[40.91974026]}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,0){\flagGE[2]}
%\rput(16,-0.5){\scriptsize{GE @ \number\inputlineno}}
%\rput(0,0){\flagGE[4]}
%===============================================================================

%===============================================================================
% icon Flag CR = Costa Rica 3:5
%-------------------------------------------------------------------------------
\definecolor{crRed}{HTML}{DA291C}
\definecolor{crBlue}{HTML}{001489}
%-------------------------------------------------------------------------------
\newcommand{\flagCR}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=crBlue](0,5)(10,6)%
\psframe[fillcolor=white](0,4)(10,5)%
\psframe[fillcolor=crRed](0,2)(10,4)%
\psframe[fillcolor=white](0,1)(10,2)%
\psframe[fillcolor=crBlue](0,0)(10,1)%
}}
%-------------------------------------------------------------------------------
%\rput(6,21){\flagCR[2]}
%\rput(7,20.5){\scriptsize{CR @ \number\inputlineno}}
%\rput(0,0){\flagCR[4]}
%===============================================================================

%===============================================================================
% icon Flag HR = Croatia 1:2
%-------------------------------------------------------------------------------
\definecolor{hrRed}{HTML}{DA291C}
\definecolor{hrBlue}{HTML}{001489}
%-------------------------------------------------------------------------------
\newcommand{\flagHR}[1][4]{%
\FPeval{\wide}{round(#1/12:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=hrRed](0,4)(12,6)%
\psframe[fillcolor=white](0,2)(12,4)%
\psframe[fillcolor=hrBlue](0,0)(12,2)%
\rput(6,3){\includegraphics[width=28mm]{Flags/pst-Croatia-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,21){\flagHR[2]}
%\rput(7,20.5){\scriptsize{HR @ \number\inputlineno}}
%\rput(0,0){\flagHR[4]}
%===============================================================================

%===============================================================================
% icon Flag GR = Greece 2:3
%-------------------------------------------------------------------------------
\definecolor{grBlue}{HTML}{004C98}
%-------------------------------------------------------------------------------
\newcommand{\flagGR}[1][4]{%
\FPeval{\wide}{round(#1/27:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\multirput(0,0)(0,4){5}{\psframe[fillcolor=grBlue](0,0)(27,2)}%
\multirput(0,0)(0,4){4}{\psframe[fillcolor=white](0,2)(27,4)}%
\psframe[fillcolor=grBlue](0,8)(10,18)%
\psframe[fillcolor=white](4,8)(6,18)%
\psframe[fillcolor=white](0,12)(10,14)%
}}
%-------------------------------------------------------------------------------
%\rput(12,21){\flagGR[2]}
%\rput(13,20.5){\scriptsize{GR @ \number\inputlineno}}
%\rput(0,0){\flagGR[4]}
%===============================================================================

%===============================================================================
% icon Flag GN = Guinea 2:3
%-------------------------------------------------------------------------------
\definecolor{gnRed}{HTML}{CE1126}
\definecolor{gnYellow}{HTML}{FCD116}
\definecolor{gnGreen}{HTML}{009460}
%-------------------------------------------------------------------------------
\newcommand{\flagGN}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=gnGreen](6,0)(9,6)%
\psframe[fillcolor=gnYellow](3,0)(6,6)%
\psframe[fillcolor=gnRed](0,0)(3,6)%
}}
%-------------------------------------------------------------------------------
%\rput(15,21){\flagGN[2]}
%\rput(16,20.5){\scriptsize{GN @ \number\inputlineno}}
%\rput(0,0){\flagGN[4]}
%===============================================================================

%===============================================================================
% icon Flag HK = Hong Kong SAR China 2:3
% The special administrative regions of the People's Republic of China
%-------------------------------------------------------------------------------
\definecolor{hkRed}{HTML}{DE2910}
%-------------------------------------------------------------------------------
% #1 = width
% #2 = petal color
% #3 = star color
%-------------------------------------------------------------------------------
\newcommand{\flagHKSeal}[3][4]{%
\FPeval{\wide}{round(#1/1.93:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=Red](0,0)(3,2)%
\psset{fillstyle=none,linestyle=solid,linewidth=0.01}%
%
%C1 = 0,0
%R1 = 1
%C2 = -0.5,0
%R2 = 0.5
%C3 = -0.138196601125011, 0.723606797749978
%R3 = 0.309016994374948
%C4 = 0.244494873516567, -0.553702124229559
%R4 = 0.427824691991313
%C5 = 0.224513988289793, -0.22166872341222197549
%R5 = 0.757665851260822 , linewidth=0.0167
%CS = -0.5,0
%RS = 0.175080303767094 * 2 = 0.350160607534188
%
%C1-C3-intersection = -0.369, 0.93
%C1-C4-intersection = 0.202, -0.979
%C2--C3-intersection = -0.276, 0.447
%C2-C4-intersection = -0.099, -.29838725408417087523
%
%C1-arcA,B = 111.6539579109196, 281.6539380099779
%C2-arcA,B = 323.3215149531216, 63.38456174453218
%C3-arcA,B = 138.3221663736795, 243.5164299521013
%C4-arcA,B = 143.4078311563268, 264.2988480980263
%C5-arcA,B = 162.988243543985, 268.2972092301489
%
% construction circles
%\pscircle(0,0){1}%
%\pscircle[linecolor=red](-0.5,0){0.5}%
%\pscircle[linecolor=green](-0.138196601125011, 0.723606797749978){0.309016994374948}%
%\pscircle[linecolor=cyan](0.244494873516567,  -0.553702124229559){0.427824691991313}%
%\pscircle[linecolor=pink](0.224513988289793, -0.22166872341222197549){0.757665851260822}%
%%
%% Circle Centers
%\pscircle[fillstyle=solid,fillcolor=black,linestyle=none](0,0){0.02}
%\pscircle[fillstyle=solid,fillcolor=red,linestyle=none](-0.5,0){0.02}
%\pscircle[fillstyle=solid,fillcolor=green,linestyle=none](-0.138196601125011, 0.723606797749978){0.02}
%\pscircle[fillstyle=solid,fillcolor=cyan,linestyle=none](0.244494873516567, -0.553702124229559){0.02}
%\pscircle[fillstyle=solid,fillcolor=pink,linestyle=none](0.224513988289793, -0.22166872341222197549){0.02}
%%
%% intersection points
%\pscircle[fillstyle=solid,fillcolor=yellow](-0.369, 0.93){0.02}
%\pscircle[fillstyle=solid,fillcolor=green](0.202, -0.979){0.02}
%\pscircle[fillstyle=solid,fillcolor=cyan](-0.276, 0.447, 0.93){0.02}
%\pscircle[fillstyle=solid,fillcolor=red](-0.099, -.29838725408417087523){0.02}
%
% Arcs
%\psset{linestyle=solid,linecolor=yellow,linewidth=0.5mm}%
%\psarc(0,0){1}{111.65}{281.65}
%\psarc[linecolor=orange](-0.5,0){0.5}{323.32151}{63.3846}
%\psarc[linecolor=violet](-0.1382, 0.7236){0.3090}{138.3222}{243.5164}
%\psarc[linecolor=blue](0.2445,-0.5537){0.4278}{143.4078}{264.2988}
%\psarc[linecolor=teal](0.2245,-0.2217){0.757665851260822}{162.9882}{268.2972}
%
\rput(-0.202,0.979){%
\pscustom[fillstyle=solid,fillcolor=#2,linestyle=none]{%
\psarc(0,0){1}{111.65}{281.65}%
\psarcn[linecolor=blue](0.2445,-0.5537){0.4278}{264.2988}{143.4078}%
\psarc[linecolor=orange](-0.5,0){0.5}{323.32151}{63.3846}%
\psarcn[linecolor=violet](-0.1382, 0.7236){0.3090}{243.5164}{138.3222}
}%
\psset{linestyle=solid,linecolor=yellow,linewidth=0.0167,linecolor=#3}%
\psarc(0.2245,-0.2217){0.757665851260822}{162.9882}{268.2972}
%
\psset{fillstyle=solid,fillcolor=#2,linestyle=none}%
\pscircle(-0.5,0){0.175080303767094}
\psset{fillstyle=solid,fillcolor=#3,linestyle=none}%
\rput(-0.5,0){\iconStar[0.350160607534188]{0.8}}%
}%
}}
%-------------------------------------------------------------------------------
%\multido{\nA=-103.48+72}{5}{\rput{\nA}(2,2){\flagHKSeal[1]}}
%-------------------------------------------------------------------------------
\newcommand{\flagHK}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=hkRed](0,0)(9,6)%
%\psset{fillstyle=none,linestyle=solid,linewidth=0.02}%
%\pscircle(4.5,3){1.8}%
\rput(4.5,3){\multido{\nA=-103.48+72}{5}{%
\rput{\nA}(0,0){\flagHKSeal[1.8]{white}{hkRed}}}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,19){\flagHK[2]}
%\rput(1,18.5){\scriptsize{HK @ \number\inputlineno}}
%\rput(0,0){\flagHK[4]}
%===============================================================================

%===============================================================================
% icon Flag AD = Andorra 7:10
%-------------------------------------------------------------------------------
\definecolor{adRed}{HTML}{D50032}
\definecolor{adYellow}{HTML}{FEDD00}
\definecolor{adBlue}{HTML}{10069F}
\definecolor{adBeige}{HTML}{C6AA76}
%-------------------------------------------------------------------------------
\newcommand{\flagAD}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=adRed](6.8,0)(10,7)%
\psframe[fillcolor=adYellow](3.2,0)(6.8,7)%
\psframe[fillcolor=adBlue](0,0)(3.2,7)%
\rput(5,3.5){\includegraphics[width=30.140mm]{Flags/pst-Andora-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(3,19){\flagAD[2]}
%\rput(4,18.5){\scriptsize{AD @ \number\inputlineno}}
%\rput(0,0){\flagAD[4]}
%===============================================================================

%===============================================================================
% icon Flag BB = Barbados 2:3
%-------------------------------------------------------------------------------
\definecolor{bbYellow}{HTML}{FFC726}
\definecolor{bbBlue}{HTML}{00267F}
%-------------------------------------------------------------------------------
\newcommand{\flagBB}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bbBlue](6,0)(9,6)%
\psframe[fillcolor=bbYellow](3,0)(6,6)%
\psframe[fillcolor=bbBlue](0,0)(3,6)%
\rput(4.6,3){\psscalebox{1.5}{\input{Flags/pst-Barbados-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,19){\flagBB[2]}
%\rput(7,18.5){\scriptsize{BB @ \number\inputlineno}}
%\rput(0,0){\flagBB[4]}
%===============================================================================

%===============================================================================
% icon Flag AO = Angola 2:3
%-------------------------------------------------------------------------------
\definecolor{aoRed}{HTML}{C8102E}
\definecolor{aoYellow}{HTML}{FFCD00}
%-------------------------------------------------------------------------------
\newcommand{\flagAO}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=aoRed](0,3)(9,6)%
\psframe[fillcolor=black](0,0)(9,3)%
\rput(4.6,3){\psscalebox{1.5}{\input{Flags/pst-Angola-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,19){\flagAO[2]}
%\rput(10,18.5){\scriptsize{AO @ \number\inputlineno}}
%\rput(0,0){\flagAO[4]}
%===============================================================================

%===============================================================================
% icon Flag AG = Antigua and Barbuda 2:3
%-------------------------------------------------------------------------------
\definecolor{agRed}{HTML}{EF3340}
\definecolor{agYellow}{HTML}{FFD100}
\definecolor{agBlue}{HTML}{005EB8}
%-------------------------------------------------------------------------------
\newcommand{\flagAG}[1][4]{%
\FPeval{\wide}{round(#1/69:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,0)(69,46)%
\psset{fillcolor=agYellow}%
\rput(34.5,28){\iconStarXS[7.5]{15}{16}}
\psframe[fillcolor=agBlue](0,0)(69,28)%
\psframe[fillcolor=white](0,0)(69,18)%
\pspolygon[fillcolor=agRed](0,0)(0,46)(34.5,0)%
\pspolygon[fillcolor=agRed](69,0)(69,46)(34.5,0)%
}}
%-------------------------------------------------------------------------------
%\rput(12,19){\flagAG[2]}
%\rput(13,18.5){\scriptsize{AG @ \number\inputlineno}}
%\rput(0,0){\flagAG[4]}
%===============================================================================

%===============================================================================
% icon Flag AW = Aruba 2:3
%-------------------------------------------------------------------------------
\definecolor{awRed}{HTML}{C8102E}
\definecolor{awYellow}{HTML}{FBE122}
\definecolor{awBlue}{HTML}{418FDE}
%-------------------------------------------------------------------------------
\newcommand{\flagAW}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=awBlue](0,0)(9,6)%
\psframe[fillcolor=awYellow](0,1.6667)(9,2)%
\psframe[fillcolor=awYellow](0,1)(9,1.3333)%
\psset{fillcolor=white}%
\rput(1.3333, 4.666667){\iconStarXS[0.375]{1}{4}}
\psset{fillcolor=awRed}%
\rput(1.3333, 4.666667){\iconStarXS[0.3]{0.775}{4}}
}}
%-------------------------------------------------------------------------------
%\rput(15,19){\flagAW[2]}
%\rput(14,18.5){\scriptsize{AW @ \number\inputlineno}}
%\rput(0,0){\flagAW[4]}
%===============================================================================

%===============================================================================
% icon Flag BZ = Belize 3:5
%-------------------------------------------------------------------------------
\definecolor{bzBlue}{HTML}{171696}%
\definecolor{bzRed}{HTML}{D90F19}%
%-------------------------------------------------------------------------------
\newcommand{\flagBZ}[1][4]{%
\FPeval{\wide}{round(#1/5:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=bzRed](0,0)(5,3)%
\psframe[fillcolor=asBlue](0,0.3)(5,2.7)%
\rput(2.5,1.5){\includegraphics[width=17.500mm]{Flags/pst-Belize-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,17){\flagBZ[2]}
%\rput(1,16.5){\scriptsize{BZ @ \number\inputlineno}}
%\rput(0,0){\flagBZ[4]}
%===============================================================================

%===============================================================================
% icon Flag BT = Bhutan 2:3
%-------------------------------------------------------------------------------
\definecolor{btRed}{HTML}{FF4E12}%
\definecolor{btYellow}{HTML}{FFCC33}%
%-------------------------------------------------------------------------------
\newcommand{\flagBT}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\pspolygon[fillcolor=btRed](0,0)(9,0)(9,6)%
\pspolygon[fillcolor=btYellow](0,0)(0,6)(9,6)%
\rput(4.5,3){\includegraphics[width=64.103mm]{Flags/pst-Bhutan-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,17){\flagBT[2]}
%\rput(13,16.5){\scriptsize{BT @ \number\inputlineno}}
%\rput(0,0){\flagBT[4]}
%===============================================================================

%===============================================================================
% icon Flag BO = Bolivia 15:22
%-------------------------------------------------------------------------------
\definecolor{boRed}{HTML}{DA291C}%
\definecolor{boYellow}{HTML}{F4E400}%
\definecolor{boGreen}{HTML}{007A33}%
%-------------------------------------------------------------------------------
\newcommand{\flagBO}[1][4]{%
\FPeval{\wide}{round(#1/22:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=boRed](0,10)(22,15)%
\psframe[fillcolor=boYellow](0,5)(22,10)%
\psframe[fillcolor=boGreen](0,0)(22,5)%
\rput(11,7.5){\includegraphics[width=22cm]{Flags/pst-Bolivia-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,17){\flagBO[2]}
%\rput(16,16.5){\scriptsize{BO @ \number\inputlineno}}
%\rput(0,0){\flagBO[4]}
%===============================================================================

%===============================================================================
% icon Flag BI = Burundi 3:5
%-------------------------------------------------------------------------------
\definecolor{biRed}{HTML}{C8102E}%
\definecolor{biGreen}{HTML}{43B02A}%
%-------------------------------------------------------------------------------
\newcommand{\flagBI}[1][4]{%
\FPeval{\wide}{round(#1/25:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(25,15)%
% equilateral triangle height = 0.5 * base * sqrt(3)
% equilateral triangle center = height / 3
\pspolygon[fillcolor=biGreen](0,1.16619037896906)(0,13.83380962103094)(10.97048006909416,7.5)%
\rput(25,0){\psscalebox{-1 1}{%
\pspolygon[fillcolor=biGreen](0,1.16619)(0,13.8338)(10.97048006909416,7.5)%
}}%
\pspolygon[fillcolor=biRed](1.943650,0)(23.05634939,0)(12.5,6.3338096210309)%
\rput(0,15){\psscalebox{1 -1}{%
\pspolygon[fillcolor=biRed](1.943650,0)(23.05634939,0)(12.5,6.3338096210309)%
}}%
%
\pscircle[fillcolor=white](12.5,7.5){4.25}%
\psset{fillcolor=biRed,linestyle=solid,linecolor=biGreen,linewidth=0.09}%
\multido{\nA=90+120}{3}{\uput{2.2}[\nA]{0}(12.5,7.5){\iconStarXS[0.5]{0.91}{6}}}%
%
}}
%-------------------------------------------------------------------------------
%\rput(9,15){\flagBI[2]}
%\rput(10,14.5){\scriptsize{BI @ \number\inputlineno}}
%\rput(0,0){\flagBI[4]}
%===============================================================================

%===============================================================================
% icon Flag KH = Cambodia 2:3
%-------------------------------------------------------------------------------
\definecolor{khBlue}{HTML}{032ea1}%
\definecolor{khRed}{HTML}{e00025}%
%-------------------------------------------------------------------------------
\newcommand{\flagKH}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=khBlue](0,0)(9,6)%
\psframe[fillcolor=khRed](0,1.5)(9,4.5)%
\rput(4.5,3){\includegraphics[width=38.665mm]{Flags/pst-Cambodia-flag-seal.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(12,15){\flagKH[2]}
%\rput(13,14.5){\scriptsize{KH @ \number\inputlineno}}
%\rput(0,0){\flagKH[4]}
%===============================================================================

%===============================================================================
% icon Flag KM = Comoros 3:5
%-------------------------------------------------------------------------------
\definecolor{kmBlue}{HTML}{003da5}%
\definecolor{kmRed}{HTML}{ef3340}%
\definecolor{kmYellow}{HTML}{ffd100}%
\definecolor{kmGreen}{HTML}{009639}%
%-------------------------------------------------------------------------------
\newcommand{\flagKM}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=kmYellow](0,10.8)(24,14.4)%
\psframe[fillcolor=white](0,7.2)(24,10.8)%
\psframe[fillcolor=kmRed](0,3.6)(24,7.2)%
\psframe[fillcolor=kmBlue](0,0)(24,3.6)%
\pspolygon[fillcolor=kmGreen](0,0)(0,14.4)(12,7.2)%
%\pscircle[fillcolor=white](4.1,7.2){3.4}%
%\pscircle[fillcolor=pink](5.4,7.2){3.3}%
\pscustom[fillcolor=white]{%
\psarc(4.1,7.2){3.4}{74.516}{-74.516}%
\psarcn(5.4,7.2){3.3}{-96.828}{96.828}%
}%
\psset{fillcolor=white}%
\multirput(5.0076923077,4.9)(0,1.5){4}{\iconStar[1.4]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,13){\flagKM[2]}
%\rput(7,12.5){\scriptsize{KM @ \number\inputlineno}}
%\rput(0,0){\flagKM[4]}
%===============================================================================

%===============================================================================
% icon Flag CY = Cyprus 2:3
%-------------------------------------------------------------------------------
\newcommand{\flagCY}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=ukBlue](0,0)(24,12)%
\rput(4.5,3){\includegraphics[width=9cm]{Flags/pst-Cyprus-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,13){\flagCY[2]}
%\rput(13,12.5){\scriptsize{CY @ \number\inputlineno}}
%\rput(0,0){\flagCY[4]}
%===============================================================================

%===============================================================================
% icon Flag DM = Dominica = 1:2
%-------------------------------------------------------------------------------
\definecolor{dmGreen}{HTML}{009A44}%
\definecolor{dmYellow}{HTML}{FFCD00}%
\definecolor{dmRed}{HTML}{E4002B}%
\definecolor{dmPurple}{HTML}{981E97}%
%-------------------------------------------------------------------------------
\newcommand{\flagDM}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=dmGreen](0,0)(24,12)%
\psframe[fillcolor=white](0,4.5)(24,5.5)%
\psframe[fillcolor=black](0,5.5)(24,6.5)%
\psframe[fillcolor=dmYellow](0,6.5)(24,7.5)%
\psframe[fillcolor=dmYellow](10.5,0)(11.5,12)%
\psframe[fillcolor=black](11.5,0)(12.5,12)%
\psframe[fillcolor=white](12.5,0)(13.5,12)%
\pscircle[fillcolor=dmRed](12,6){3}%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\psset{fillcolor=dmGreen}%
\multido{\nA=90+36,\nB=0+36}{10}{%
\uput{2.25}[\nA]{\nB}(12,6){\iconStar[0.9]{0.8}}%
}%
\rput(12,6){\psscalebox{1.5}{\input{Flags/pst-Dominica-flag.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,13){\flagDM[2]}
%\rput(16,12.5){\scriptsize{DM @ \number\inputlineno}}
%\rput(0,0){\flagDM[4]}
%===============================================================================

%===============================================================================
% icon Flag DO = Dominican Republic 2L3
%-------------------------------------------------------------------------------
\definecolor{doRed}{HTML}{CE1126}%
\definecolor{doBlue}{HTML}{002D62}%
%-------------------------------------------------------------------------------
\newcommand{\flagDO}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(9,6)%
\psframe[fillcolor=doRed](0,0)(3.9,2.4)%
\psframe[fillcolor=doRed](5.1,3.6)(9,6)%
\psframe[fillcolor=doBlue](5.1,0)(9,2.4)%
\psframe[fillcolor=doBlue](0,3.6)(3.9,6)%
\rput(4.5,3){\includegraphics[width=12mm]{Flags/pst-Dominican-Republic-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,11){\flagDO[2]}
%\rput(1,10.5){\scriptsize{DO @ \number\inputlineno}}
%\rput(0,0){\flagDO[4]}
%===============================================================================

%===============================================================================
% icon Flag EC = Ecuador 2L3
%-------------------------------------------------------------------------------
\definecolor{ecRed}{HTML}{ed1c24}%
\definecolor{ecBlue}{HTML}{034ea2}%
\definecolor{ecYellow}{HTML}{ffdd00}%
%-------------------------------------------------------------------------------
\newcommand{\flagEC}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=ecYellow](0,3)(9,6)%
\psframe[fillcolor=ecBlue](0,1.5)(9,3)%
\psframe[fillcolor=ecRed](0,0)(9,1.5)%
%\rput(4.5,3){\includegraphics[width=3cm]{Flags/Ecuador-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,11){\flagEC[2]}
%\rput(4,10.5){\scriptsize{EC @ \number\inputlineno}}
%\rput(0,0){\flagEC[4]}
%===============================================================================

%===============================================================================
% icon Flag SV = El Salvador 189:335 approximately 9:16
%-------------------------------------------------------------------------------
\definecolor{svRed}{HTML}{E60000}%
\definecolor{svBlue}{HTML}{0047AB}%
\definecolor{svYellow}{HTML}{FCE300}%
\definecolor{svGreen}{HTML}{009900}%
%-------------------------------------------------------------------------------
\newcommand{\flagSV}[1][4]{%
\FPeval{\wide}{round(#1/16:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=svBlue](0,6)(16,9)%
\psframe[fillcolor=white](0,3)(16,6)%
\psframe[fillcolor=svBlue](0,0)(16,3)%
\rput(8,4.5){\includegraphics[width=28.179mm]{Flags/pst-El-Salvador-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,11){\flagSV[2]}
%\rput(7,10.5){\scriptsize{SV @ \number\inputlineno}}
%\rput(0,0){\flagSV[4]}
%===============================================================================

%===============================================================================
% icon Flag GQ = Equatorial-Guinea-flag 2:3
%-------------------------------------------------------------------------------
\definecolor{gqRed}{HTML}{E32118}%
\definecolor{gqBlue}{HTML}{0073CE}%
\definecolor{gqGreen}{HTML}{3E9A00}%
\definecolor{gqYellow}{HTML}{FFFF00}%
%-------------------------------------------------------------------------------
\newcommand{\flagGQ}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=gqGreen](0,4)(9,6)%
\psframe[fillcolor=white](0,4)(9,4)%
\psframe[fillcolor=gqRed](0,0)(9,2)%
\pspolygon[fillcolor=gqBlue](0,0)(0,6)(2.25,3)%
\rput(4.5,3){\includegraphics[width=14.919mm]{Flags/pst-Equatorial-Guinea-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,11){\flagGQ[2]}
%\rput(10,10.5){\scriptsize{GQ @ \number\inputlineno}}
%\rput(0,0){\flagGQ[4]}
%===============================================================================

%===============================================================================
% icon Flag ER = Eritrea 1:2
%-------------------------------------------------------------------------------
\definecolor{erRed}{HTML}{E32118}%
\definecolor{erBlue}{HTML}{0073CE}%
\definecolor{erGreen}{HTML}{3E9A00}%
\definecolor{erYellow}{HTML}{FFFF00}%
%-------------------------------------------------------------------------------
\newcommand{\flagER}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=erRed](0,0)(4,2)%
\pspolygon[fillcolor=erGreen](0,2)(4,2)(4,1)%
\pspolygon[fillcolor=erBlue](0,0)(4,0)(4,1)%
\rput(1,1){\psscalebox{1.5}{\input{Flags/pst-Eritrea-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,11){\flagER[2]}
%\rput(13,10.5){\scriptsize{ER @ \number\inputlineno}}
%\rput(0,0){\flagER[4]}
%===============================================================================

%===============================================================================
% icon Flag KZ = Kazakhstan 1:2
%-------------------------------------------------------------------------------
\definecolor{kzBlue}{HTML}{00ABC2}%
\definecolor{kzYellow}{HTML}{FFEC2D}%
%-------------------------------------------------------------------------------
\newcommand{\flagKZ}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=fjCyan](0,0)(24,12)%
\rput(12,6){\includegraphics[width=24cm]{Flags/pst-Kazakhstan-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,9){\flagKZ[2]}
%\rput(1,8.5){\scriptsize{KZ @ \number\inputlineno}}
%\rput(0,0){\flagKZ[4]}
%===============================================================================

%===============================================================================
% icon Flag KE = Kenya 2:3
%-------------------------------------------------------------------------------
\definecolor{keRed}{HTML}{99292D}%
\definecolor{keGreen}{HTML}{31905F}%
%-------------------------------------------------------------------------------
\newcommand{\flagKE}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(9,6)%
\psframe[fillcolor=black](0,4.2)(9,6)%
\psframe[fillcolor=keRed](0,2.1)(9,3.9)%
\psframe[fillcolor=keGreen](0,0)(9,1.8)%
\rput(4.5,3){\includegraphics[width=24.256mm]{Flags/pst-Kenya-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,9){\flagKE[2]}
%\rput(4,8.5){\scriptsize{KE @ \number\inputlineno}}
%\rput(0,0){\flagKE[4]}
%===============================================================================

%===============================================================================
% icon Flag KR = South Korea 2:3
%-------------------------------------------------------------------------------
\definecolor{krRed}{HTML}{CD2E3A}%
\definecolor{krBlue}{HTML}{0047A0}%
%-------------------------------------------------------------------------------
\newcommand{\flagKR}[1][4]{%
\FPeval{\wide}{round(#1/72:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(72,48)%
%
%\psset{fillstyle=none,linestyle=solid,linewidth=10mm}%
%\psarc[linecolor=red](0,0){12}{-45}{135}%
%\psarc[linecolor=green](-4.242640687119285,4.242640687119285){6}{135}{-45}%
%\psarcn[linecolor=green](4.242640687119285,-4.242640687119285){6}{135}{-45}%
%
\def\yin{\pscustom{%
\psarc(0,0){12}{-45}{135}%
\psarc(-4.242640687119285,4.242640687119285){6}{135}{-45}%
\psarcn(4.242640687119285,-4.242640687119285){6}{135}{-45}%
}}%
\psset{fillcolor=krRed}%
\rput(36,24){\yin}%
\psset{fillcolor=krBlue}%
\rput{180}(36,24){\yin}%
%
\psset{fillcolor=black}%
\def\iii{%
\rput(0,18){%
\psframe(-6,6)(6,8)%
\psframe(-6,3)(6,5)%
\psframe(-6,0)(6,2)%
}}%
\rput{45}(36,24){\iii}%
%
\def\iv{%
\rput(0,18){%
\psframe(-6,6)(6,8)%
\psframe(-6,3)(-0.5,5)%
\psframe(0.5,3)(6,5)%
\psframe(-6,0)(6,2)%
}}%
\rput{135}(36,24){\iv}%
%
\def\v{%
\rput(0,18){%
\psframe(-6,6)(-0.5,8)%
\psframe(0.5,6)(6,8)%
\psframe(-6,3)(6,5)%
\psframe(-6,0)(-0.5,2)%
\psframe(0.5,0)(6,2)%
}}%
\rput{-45}(36,24){\v}%
%
\def\vi{%
\rput(0,18){%
\psframe(-6,6)(-0.5,8)%
\psframe(0.5,6)(6,8)%
\psframe(-6,3)(-0.5,5)%
\psframe(0.5,3)(6,5)%
\psframe(-6,0)(-0.5,2)%
\psframe(0.5,0)(6,2)%
}}%
\rput{-135}(36,24){\vi}%
%
}}
%-------------------------------------------------------------------------------
%\rput(6,9){\flagKR[2]}
%\rput(7,8.5){\scriptsize{KR @ \number\inputlineno}}
%\rput(0,0){\flagKR[4]}
%===============================================================================

%===============================================================================
% icon Flag KG = Kyrgyzstan 3:5
%-------------------------------------------------------------------------------
\definecolor{kgRed}{HTML}{CD2E3A}%
\definecolor{kgYellow}{HTML}{0047A0}%
%-------------------------------------------------------------------------------
\newcommand{\flagKG}[1][4]{%
\FPeval{\wide}{round(#1/10:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=white](0,0)(72,48)%
\rput(5,3){\includegraphics[width=10cm]{Flags/pst-Kyrgyzstan-flag.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(9,9){\flagKG[2]}
%\rput(1,8.5){\scriptsize{KG @ \number\inputlineno}}
%\rput(0,0){\flagKG[4]}
%===============================================================================

%===============================================================================
% icon Flag LB = Lebanon 2:3
%-------------------------------------------------------------------------------
\definecolor{lbRed}{HTML}{CD2E3A}%
\definecolor{lbGreen}{HTML}{0047A0}%
%-------------------------------------------------------------------------------
\newcommand{\flagLB}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=white](0,0)(9,6)%
%\psframe[fillcolor=lbRed](0,4.5)(9,6)%
%\psframe[fillcolor=lbRed](0,0)(9,1.5)%
\rput(4.5,3){\includegraphics[width=9cm]{Flags/pst-Lebanon-flag.eps}}
}}
%-------------------------------------------------------------------------------
%\rput(12,9){\flagLB[2]}
%\rput(13,8.5){\scriptsize{LB @ \number\inputlineno}}
%\rput(0,0){\flagLB[4]}
%===============================================================================

%===============================================================================
% icon Flag LS = Lesotho 2:3
%-------------------------------------------------------------------------------
\definecolor{lsBlue}{HTML}{00209F}%
\definecolor{lsGreen}{HTML}{009543}%
%-------------------------------------------------------------------------------
\newcommand{\flagLS}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(9,6)%
\psframe[fillcolor=lsBlue](0,4.2)(9,6)%
\psframe[fillcolor=lsGreen](0,0)(9,1.8)%
\rput(4.5,3){\psscalebox{1.5}{\input{Flags/pst-Lesotho-flag-seal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,9){\flagLS[2]}
%\rput(16,8.5){\scriptsize{LS @ \number\inputlineno}}
%\rput(0,0){\flagLS[4]}
%===============================================================================

%===============================================================================
% icon Flag LR = Liberia 10:19
%-------------------------------------------------------------------------------
\definecolor{lrBlue}{HTML}{00205B}%
\definecolor{lrRed}{HTML}{EF3340}%
%-------------------------------------------------------------------------------
\newcommand{\flagLR}[1][4]{%
\FPeval{\wide}{round(#1/20.9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(20.9,11)%
\multirput(0,0)(0,2){6}{\psframe[fillcolor=lrRed](0,0)(20.9,1)}%
\psframe[fillcolor=lrBlue](0,6)(5,11)%
\psset{fillcolor=white}%
\rput(2.5,8.5){\iconStar[3]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(0,7){\flagLR[2]}
%\rput(1,6.5){\scriptsize{LR @ \number\inputlineno}}
%\rput(0,0){\flagLR[4]}
%===============================================================================

%===============================================================================
% icon Flag LI = Liechtenstein 3:5
%-------------------------------------------------------------------------------
\definecolor{liBlue}{HTML}{00205B}%
\definecolor{liRed}{HTML}{EF3340}%
\definecolor{liYellow}{HTML}{EF3340}%
%-------------------------------------------------------------------------------
\newcommand{\flagLI}[1][4]{%
\FPeval{\wide}{round(#1/20:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=white](0,0)(20.9,11)%
\rput(10,6){\includegraphics[width=20cm]{Flags/pst-Liechtenstein-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,7){\flagLI[2]}
%\rput(4,6.5){\scriptsize{LI @ \number\inputlineno}}
%\rput(0,0){\flagLI[4]}
%===============================================================================

%===============================================================================
% icon Flag MG = Madagascar 2:3
%-------------------------------------------------------------------------------
\definecolor{mgGreen}{HTML}{00843D}%
\definecolor{mgRed}{HTML}{F9423A}%
%-------------------------------------------------------------------------------
\newcommand{\flagMG}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(9,6)%
\psframe[fillcolor=mgRed](3,3)(9,6)%
\psframe[fillcolor=mgGreen](3,0)(9,3)%
}}
%-------------------------------------------------------------------------------
%\rput(6,7){\flagMG[2]}
%\rput(7,6.5){\scriptsize{MG @ \number\inputlineno}}
%\rput(0,0){\flagMG[4]}
%===============================================================================

%===============================================================================
% icon Flag MW = Malawi 2:3
%-------------------------------------------------------------------------------
\definecolor{mwGreen}{HTML}{007A33}%
\definecolor{mwRed}{HTML}{C8102E}%
%-------------------------------------------------------------------------------
\newcommand{\flagMW}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,0)(9,6)%
%
\pscircle[fillcolor=mwRed](4.5,3.7){1.29}%
\def\petal{\psbezier(0,0.6)
(-0.0433332,0.6)
(-0.06,0.535)
(-0.06,0.47)
(-0.06,0.31333336)
(-0.0408074,0.23142984)
(0,0)
(0.0408072,0.23142984)
(0.06,0.31333336)
(0.06,0.47)
(0.06,0.535)
(0.0433334,0.6)
(0,0.6)}%
%
%\rput(4.5,5.15){\petal}%
% \uput*{labelsep}[refangle]{rotation}(x,y){stuff }
\psset{fillcolor=mwRed}%
\multido{\nA=90+5.625,\nB=0+5.625}{64}{\uput{1.45}[\nA]{\nB}(4.5,3.7){\petal}}%
%
\psframe[fillcolor=black](0,2)(9,4.15)%
\psframe[fillcolor=mwRed](0,2)(9,4)%
\psframe[fillcolor=mwGreen](0,0)(9,2)%
}}
%-------------------------------------------------------------------------------
%\rput(9,7){\flagMW[2]}
%\rput(10,6.5){\scriptsize{MW @ \number\inputlineno}}
%\rput(0,0){\flagMW[4]}
%===============================================================================

%===============================================================================
% icon Flag ME = Montenegro 1:2
%-------------------------------------------------------------------------------
\definecolor{meYellow}{HTML}{D4AF3A}%
\definecolor{meRed}{HTML}{C40308}%
\definecolor{meBlue}{HTML}{1D5E91}%
\definecolor{meBrown}{HTML}{B96B29}%
\definecolor{meGreen}{HTML}{6D8C3E}%
%-------------------------------------------------------------------------------
\newcommand{\flagME}[1][4]{%
\FPeval{\wide}{round(#1/24:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\psframe[fillcolor=meYellow](0,0)(9,6)%
\rput(12,6){\includegraphics[width=24cm]{Flags/pst-Montenegro-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,7){\flagME[2]}
%\rput(13,6.5){\scriptsize{ME @ \number\inputlineno}}
%\rput(0,0){\flagME[4]}
%===============================================================================

%===============================================================================
% icon Flag NA = Namibia 2:3
%-------------------------------------------------------------------------------
\definecolor{naYellow}{HTML}{FFCD00}%
\definecolor{naRed}{HTML}{C8102E}%
\definecolor{naBlue}{HTML}{002F6C}%
\definecolor{naGreen}{HTML}{009A44}%
%-------------------------------------------------------------------------------
\newcommand{\flagNA}[1][4]{%
\FPeval{\wide}{round(#1/18:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=white](0,0)(18,12)%
\pspolygon[fillcolor=naRed](0,0)(0,1.8027756)(15.2958,12)(18,12)(18,10.1972)(2.7041,0)%
\pspolygon[fillcolor=naGreen](3.60555,0)(18,0)(18,9.56299)%
\rput(18,12){\psscalebox{-1 -1}{%
\pspolygon[fillcolor=naBlue](3.60555,0)(18,0)(18,9.56299)%
}}%
\psset{fillcolor=naYellow}%
\rput(3.6,8.731703903){\iconStarXS[1.2]{2}{12}}%
\pscircle[fillcolor=naBlue](3.6,8.731703903){1.2}%
\pscircle[fillcolor=naYellow](3.6,8.731703903){1}%
}}
%-------------------------------------------------------------------------------
%\rput(15,7){\flagNA[2]}
%\rput(16,6.5){\scriptsize{NA @ \number\inputlineno}}
%\rput(0,0){\flagNA[4]}
%===============================================================================

%===============================================================================
% icon Flag NR = Nauru 1:2
%-------------------------------------------------------------------------------
\definecolor{nrYellow}{HTML}{FFC72C}%
\definecolor{nrBlue}{HTML}{012169}%
%-------------------------------------------------------------------------------
\newcommand{\flagNR}[1][4]{%
\FPeval{\wide}{round(#1/48:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=nrBlue](0,0)(48,24)%
\psframe[fillcolor=nrYellow](0,11)(48,13)%
\psset{fillcolor=white}%
\rput(12,7){\iconStarXS[2]{4}{12}}%
\pscircle(12,7){2}%
}}
%-------------------------------------------------------------------------------
%\rput(0,5){\flagNR[2]}
%\rput(1,4.5){\scriptsize{NR @ \number\inputlineno}}
%\rput(0,0){\flagNR[4]}
%===============================================================================

%===============================================================================
% icon Flag PG = Papua New Guinea 3:4
%-------------------------------------------------------------------------------
\definecolor{pgYellow}{HTML}{FFC72C}%
\definecolor{pgRed}{HTML}{012169}%
%-------------------------------------------------------------------------------
\newcommand{\flagPG}[1][4]{%
\FPeval{\wide}{round(#1/4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
%\pspolygon[fillcolor=black](0,0)(0,3)(4,0)%
%\pspolygon[fillcolor=pgRed](0,3)(4,3)(4,0)%
\rput(2,1.5){\includegraphics[width=40mm]{Flags/pst-Papua-New-Guinea-flag.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(3,5){\flagPG[2]}
%\rput(4,4.5){\scriptsize{PG @ \number\inputlineno}}
%\rput(0,0){\flagPG[4]}
%===============================================================================

%===============================================================================
% icon Flag KN = Saint Kitts and Nevis 2:3
%-------------------------------------------------------------------------------
\definecolor{knYellow}{HTML}{FFD100}%
\definecolor{knRed}{HTML}{EF3340}%
\definecolor{knGreen}{HTML}{009739}%
%-------------------------------------------------------------------------------
\newcommand{\flagKN}[1][4]{%
\FPeval{\wide}{round(#1/75:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=knYellow](0,0)(75,50)%
\pspolygon[fillcolor=black](0,0)(0,9.0139)(61.4792,50)(75,50)(75,40.9861)(12.5208,0)
\pspolygon[fillcolor=knRed](18.9291,0)(75,0)(75,37.3806)%
\rput(75,50){\psscalebox{-1 -1}{%
\pspolygon[fillcolor=knGreen](18.9291,0)(75,0)(75,37.3806)
}}%
\psset{fillcolor=white}%
\rput{180}(23.4477,14.8284){\iconStar[14]{0.8}}%
\rput{180}(52.29386101,34.05920848){\iconStar[14]{0.8}}%
}}
%-------------------------------------------------------------------------------
%\rput(6,5){\flagKN[2]}
%\rput(7,4.5){\scriptsize{KN @ \number\inputlineno}}
%\rput(0,0){\flagKN[4]}
%===============================================================================

%===============================================================================
% icon Flag ZM = Zambia 2:3
%-------------------------------------------------------------------------------
\definecolor{zmYellow}{HTML}{FCAD56}% ef7d00ff
\definecolor{zmRed}{HTML}{EF3340}% de2010ff
\definecolor{zmGreen}{HTML}{009E49}% 198a00ff
%-------------------------------------------------------------------------------
\newcommand{\flagZM}[1][4]{%
\FPeval{\wide}{round(#1/336:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=zmGreen](0,0)(336,224)%
\psframe[fillcolor=zmRed](216,0)(256,144)%
\psframe[fillcolor=black](256,0)(296,144)%
\psframe[fillcolor=zmYellow](296,0)(336,144)%
\rput(276,184){\includegraphics[width=106cm]{Flags/pst-Zambia-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(9,5){\flagZM[2]}
%\rput(10,4.5){\scriptsize{ZM @ \number\inputlineno}}
%\rput(0,0){\flagZM[4]}
%===============================================================================

%===============================================================================
% icon Flag ZW = Zimbabwe 1:2
%-------------------------------------------------------------------------------
\definecolor{zwYellow}{HTML}{FCE300}% ef7d00ff
\definecolor{zwRed}{HTML}{EF3340}% de2010ff
\definecolor{zwGreen}{HTML}{009739}% 198a00ff
%-------------------------------------------------------------------------------
\newcommand{\flagZW}[1][4]{%
\FPeval{\wide}{round(#1/50.4:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=zwGreen](0,0)(50.4,25.2)%
\psframe[fillcolor=zwYellow](0,3.6)(50.4,21.6)%
\psframe[fillcolor=zwRed](0,7.2)(50.4,18)%
\psframe[fillcolor=black](0,10.8)(50.4,14.4)%
\pspolygon[fillcolor=black](0,0)(0.6,0)(17.4,12.6)(0.6,25.2)(0,25.2)%
\pspolygon[fillcolor=white](0,0)(16.8,12.6)(0,25.2)%
\psset{fillcolor=zwRed}%
\rput(6.8,13){\iconStar[10]{0.8}}%
%\rput(6.8,13){\psscalebox{15}{\input{Flags/Zimbabwe-flag-seal.tex}}}%
\rput(7.4,13){\includegraphics[width=4.942cm]{Flags/pst-Zimbabwe-flag-seal.eps}}%
}}
%-------------------------------------------------------------------------------
%\rput(12,5){\flagZW[2]}
%\rput(13,4.5){\scriptsize{ZW @ \number\inputlineno}}
%\rput(0,0){\flagZW[4]}
%===============================================================================

%===============================================================================
% icon Flag UG = Uganda 2:3
%-------------------------------------------------------------------------------
\definecolor{ugYellow}{HTML}{FCDC04}%
\definecolor{ugRed}{HTML}{D90000}%
%-------------------------------------------------------------------------------
\newcommand{\flagUG}[1][4]{%
\FPeval{\wide}{round(#1/9:3)}\psscalebox{\wide}{%
\psset{dimen=middle, fillstyle=solid, linestyle=none}%
\psframe[fillcolor=black](0,5)(9,6)%
\psframe[fillcolor=ugYellow](0,4)(9,5)%
\psframe[fillcolor=ugRed](0,3)(9,4)%
\psframe[fillcolor=black](0,2)(9,3)%
\psframe[fillcolor=ugYellow](0,1)(9,2)%
\psframe[fillcolor=ugRed](0,0)(9,1)%
\pscircle[fillcolor=white](4.5,3){0.9350}%
\rput(4.7,3){\psscalebox{1.5}{\input{Flags/pst-Uganda-flagseal.tex}}}%
}}
%-------------------------------------------------------------------------------
%\rput(15,5){\flagUG[2]}
%\rput(16,4.5){\scriptsize{UG @ \number\inputlineno}}
%\rput(0,0){\flagUG[4]}
%===============================================================================

%===============================================================================
%===============================================================================
%-------------------------------------------------------------------------------
%===============================================================================
%-------------------------------------------------------------------------------
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%===============================================================================
%-------------------------------------------------------------------------------
\endinput
%%
%% End of file <pst-flags.sty>
%-------------------------------------------------------------------------------
%===============================================================================
%-------------------------------------------------------------------------------
%-------------------------------------------------------------------------------
%===============================================================================
%-------------------------------------------------------------------------------
%===============================================================================
