(function (m, g, n){ 'use strict'; function h(a){ var d = { } ; a = a.split(","); var c; for (c = 0; c < _AN_Read_length("length", a); c++ )d[a[c]] = true ; return d; } function D(a, d){ function c(a, b, c, f){ b = g.lowercase(b); if (r[b]) for (; e.last() && s[e.last()]; )k("", e.last()); t[b] && e.last() == b && k("", b); (f = u[b] || !!f) || e.push(b); var l = { } ; _AN_Call_replace("replace", c, E, function (a, b, d, c, e){ l[b] = p(d || c || e || ""); } ); d.start && d.start(b, l, f); } function k(a, b){ var c = 0, k; if (b = g.lowercase(b)) for (c = _AN_Read_length("length", e) - 1; 0 <= c && e[c] != b; c-- ); if (0 <= c) { for (k = _AN_Read_length("length", e) - 1; k >= c; k-- )d.end && d.end(e[k]); e.length = c; } } var b, f, e = [] , l = a; for (e.last = function (){ return e[_AN_Read_length("length", e) - 1]; } ; a; ){ f = true ; if (e.last() && v[e.last()]) a = _AN_Call_replace("replace", a, RegExp("(.*)<\\s*\\/\\s*" + e.last() + "[^>]*>", "i"), function (a, b){ b = _AN_Call_replace("replace", _AN_Call_replace("replace", b, F, "$1"), G, "$1"); d.chars && d.chars(p(b)); return ""; } ), k("", e.last()); else { if (0 === a.indexOf("\x3c!--")) b = a.indexOf("--", 4), 0 <= b && a.lastIndexOf("--\x3e", b) === b && (d.comment && d.comment(a.substring(4, b)), a = a.substring(b + 3), f = false ); else if (w.test(a)) { if (b = a.match(w)) a = _AN_Call_replace("replace", a, b[0], ""), f = false ; } else if (H.test(a)) { if (b = a.match(x)) a = a.substring(_AN_Read_length("length", b[0])), _AN_Call_replace("replace", b[0], x, k), f = false ; } else I.test(a) && (b = a.match(y)) && (a = a.substring(_AN_Read_length("length", b[0])), _AN_Call_replace("replace", b[0], y, c), f = false ); f && (b = a.indexOf("<"), f = 0 > b? a: a.substring(0, b), a = 0 > b? "": a.substring(b), d.chars && d.chars(p(f))); } if (a == l) throw J("badparse", a) l = a; } k(); } function p(a){ _AN_Write_innerhtml("innerHTML", q, false , _AN_Call_replace("replace", a, //g, ">"); } function A(a){ var d = false , c = g.bind(a, a.push); return { start: function (a, b, f){ a = g.lowercase(a); !d && v[a] && (d = a); d || true !== B[a] || (c("<"), c(a), g.forEach(b, function (a, b){ var d = g.lowercase(b); true !== L[d] || true === C[d] && !a.match(M) || (c(" "), c(b), c('="'), c(z(a)), c('"')); } ), c(f? "/>": ">")); } , end: function (a){ a = g.lowercase(a); d || true !== B[a] || (c("")); a == d && (d = false ); } , chars: function (a){ d || c(z(a)); } } ; } var J = g.$$minErr("$sanitize"), y = /^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/, x = /^<\s*\/\s*([\w:-]+)[^>]*>/, E = /([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g, I = /^]*?)>/i, G = /]/, d = /^mailto:/; return function (c, k){ if (!c) return c; var b, f = c, e = [] , l = A(e), h, m, n = { } ; g.isDefined(k) && (_AN_Write_target("target", n, false , k)); for (; b = f.match(a); )h = b[0], b[2] == b[3] && (h = "mailto:" + h), m = b.index, l.chars(f.substr(0, m)), _AN_Write_href("href", n, false , h), l.start("a", n), l.chars(_AN_Call_replace("replace", b[0], d, "")), l.end("a"), f = f.substring(m + _AN_Read_length("length", b[0])); l.chars(f); return e.join(""); } ; } ); } )(window, window.angular);