MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / P

Function P

map-chat/javascript/html-sanitizer-minified.js:23–23  ·  view source on GitHub ↗
(a,d,b)

Source from the content-addressed store, hash-verified

21newValue:c})}}function L(a,d,b){d=d+"::"+b;if(a.hasOwnProperty(d))return a[d];d="*::"+b;if(a.hasOwnProperty(d))return a[d]}function M(a,d,b,e,c){for(var i=0;i<d.length;i+=2){var f=d[i],g=d[i+1],l=g,j=o,m;if((m=a+"::"+f,h.k.hasOwnProperty(m))||(m="*::"+f,h.k.hasOwnProperty(m)))j=h.k[m];if(j!==o)switch(j){case h.e.NONE:break;case h.e.SCRIPT:g=o;c&&p(c,a,f,l,g);break;case h.e.STYLE:if("undefined"===typeof v){g=o;c&&p(c,a,f,l,g);break}var n=[];v(g,{H:function(a,c){var d=a.toLowerCase(),e=N[d];if(e){O(d,
22e,c,b?function(a){return K(a,h.A.D,h.z.F,{TYPE:"CSS",CSS_PROP:d},b)}:o);n.push(a+": "+c.join(" "))}}});g=0<n.length?n.join(" ; "):o;c&&p(c,a,f,l,g);break;case h.e.ID:case h.e.IDREF:case h.e.IDREFS:case h.e.GLOBAL_NAME:case h.e.LOCAL_NAME:case h.e.CLASSES:g=e?e(g):g;c&&p(c,a,f,l,g);break;case h.e.URI:g=K(g,L(h.w,a,f),L(h.v,a,f),{TYPE:"MARKUP",XML_ATTR:f,XML_TAG:a},b);c&&p(c,a,f,l,g);break;case h.e.URI_FRAGMENT:g&&"#"===g.charAt(0)?(g=g.substring(1),g=e?e(g):g,g!==o&&void 0!==g&&(g="#"+g)):g=o;c&&p(c,
23a,f,l,g);break;default:g=o,c&&p(c,a,f,l,g)}else g=o,c&&p(c,a,f,l,g);d[i+1]=g}return d}function P(a,d,b){return function(e,c){if(h.f[e]&h.d.UNSAFE)b&&p(b,e,void 0,void 0,void 0);else return M(e,c,a,d,b)}}function Q(a,d){var b=[];J(d)(a,b);return b.join("")}var v,O,N;"undefined"!==typeof window&&(v=window.parseCssDeclarations,O=window.sanitizeCssProperty,N=window.cssSchema);var w={lt:"<",gt:">",amp:"&",nbsp:"\u00a0",quot:'"',apos:"'"},T=/^#(\d+)$/,U=/^#x([0-9A-Fa-f]+)$/,ba=/\0/g,V=/&(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/g,
24$=/^(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/,W=/&/g,Y=/&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi,B=/[<]/g,C=/>/g,X=/\"/g,aa=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,Z=3==="a,b".split(/(,)/).length,H=h.d.CDATA|h.d.RCDATA,n={},z={},ca=/^(?:([^:/?# ]+):)?/,da=/^(?:https?|mailto)$/i,i={};i.I=i.escapeAttrib=y;i.J=i.makeHtmlSanitizer=J;i.K=i.makeSaxParser=E;i.L=i.makeTagPolicy=P;i.M=i.normalizeRCData=D;i.N=i.sanitize=function(a,d,b,e){return Q(a,P(d,b,e))};
25i.O=i.sanitizeAttribs=M;i.P=i.sanitizeWithPolicy=Q;i.Q=i.unescapeEntities=x;return i}(q),ea=R.sanitize;"undefined"!==typeof window&&(window.html=R,window.html_sanitize=ea);})();

Callers 1

Calls 2

MFunction · 0.85
pFunction · 0.70

Tested by

no test coverage detected