{"version":3,"sources":["webpack://jrs-ui-pro/../ce/jrs-ui/src/i18n/bundleStore.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/enum/loggingLevels.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/Level.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/LogItem.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/Log.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/appender/ConsoleAppender.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/LoggerManager.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/logger.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/logging/loggerConfig.js","webpack://jrs-ui-pro/../ce/js-sdk/src/common/util/xssUtil.js"],"names":["MERGED_BUNDLES_NAME","store","DEBUG","INFO","WARN","ERROR","Level","level","name","this","toUpperCase","i","prototype","isGreaterOrEqual","globalLevel","levelNumber","getLevel","toString","levels","LogItem","options","hasOwnProperty","k","l","length","Error","message","toArray","date","h","m","s","ms","logParams","push","time","getHours","getMinutes","getSeconds","getMilliseconds","id","file","line","concat","args","createLogMethod","type","_prepareLogItem","arguments","Log","settings","callback","_id","_callback","logItem","Array","slice","call","Date","stack","res","split","match","debug","info","warn","error","ConsoleAppender","console","f","assert","clear","count","dir","dirxml","group","groupCollapsed","groupEnd","log","markTimeline","profile","profileEnd","table","timeEnd","timeStamp","trace","write","apply","e","Function","ex","appenderConstructors","LoggerManager","initialize","_","defaults","enabled","appenders","appenderInstances","loggers","attributes","appender","set","get","attr","value","register","_processLogItem","disable","enable","setLevel","_appendLogItem","process","htmlTagWhiteList","escapeMap","regexKeys","map","str","arr","Object","replace","unescapeMap","hardEscapeRegex","RegExp","join","_stringCanonicObfuscator","obfChar","obfuscatedStr","charAt","canonicExclusionMap","key","obfuscStr","addCanonicObfuscArr","c","addObfuscStr","reverseCanonicExclusionMap","canonicExclusionRegex","reverseCanonicExclusionRegex","_getXssNonce","jrsConfigs","_getNoncePrefix","undefined","noncePrefix","xssNonce","_getHtmlTagWhitelist","configHtmlTagWhitelist","_getConfigHtmlTagWhitelist","whitelistInitialized","startsWith","substr","_getWhitelistLeftRegex","leftTagRegexp","whitelistRegexInsert","_getWhitelistRightRegex","rightTagRegexp","_defaultAttribSoftEscapeMap","_getAttribSoftHtmlEscapeMap","attribSoftEscapeArr","configAttribSoftHtmlEscapeMap","configRegexArr","configReplArr","err","softHtmlEscape","string","String","indexOf","noncePref","substring","test","canonicElem","document","createElement","innerHTML","_canonicalize","whiteList","whitelistRegexStr","rtLeftTagRegexp","rtRightTagRegexp","tmpLeftTagRegexp","tmpRightTagRegexp","lastIndex","escapeTags","tmpTagWhiteList","attribSoftHtmlEscapeMap","regexArr","replArr","regex","replacement","hardEscape","unescape","unescapeRegexp"],"mappings":"uIAuBO,IAAMA,EAAsB,MACtBC,EAAQ,I,sECGrB,SACIC,MAAO,IACPC,KAAO,IACPC,KAAO,IACPC,MAAO,KCFX,SAASC,EAAMC,EAAOC,GAClBC,KAAKF,MAAQA,EACbE,KAAKD,KAAOA,EAAKE,cAcrB,IAAK,IAAIC,KAXTL,EAAMM,UAAUC,iBAAmB,SAASC,GACxC,IAAIC,GAAeD,aAAuBR,EAAQQ,EAAcR,EAAMU,SAASF,IAAeP,MAC9F,OAAOE,KAAKF,OAASQ,GAEzBT,EAAMM,UAAUK,SAAW,WACvB,OAAOR,KAAKD,MAEhBF,EAAMU,SAAW,SAAST,GACtB,OAAOD,EAAMC,EAAMG,gBAGTQ,EACNA,iBAAsBP,KACtBL,EAAMK,GAAK,IAAIL,EAAMY,EAAOP,GAAIA,IAIxC,UCFA,SAASQ,EAAQC,GACb,IAAK,IAAIT,KAAKS,EACV,GAAIA,EAAQC,eAAeV,GAAI,CAC3B,GAAU,SAANA,EACA,IAAK,IAAIW,EAAI,EAAGC,EAAIH,EAAQT,GAAGa,OAAQF,EAAIC,EAAGD,IACtCF,EAAQT,GAAGW,aAAcG,QACzBL,EAAQT,G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uB,MAClCE,EAAUF,EAAuB,YAE5BjK,EAAE,EAAGA,EAAEkK,EAAShK,SAAUF,EAAG,CAClC,IAAIoK,EAAQF,EAASlK,GACrBoK,EAAMN,UAAY,EAElB,IAAIO,EAAcF,EAAQnK,GAC1B6I,EAASuB,EAAMlB,KAAKL,GAAUA,EAAO3C,QAAQkE,EAAOC,GAAexB,EAGvE,OAAOA,GAiDPyB,WA1CiB,SAASzB,GAG1B,KAAyB,iBAFzBA,EAAmB,MAAVA,EAAiB,GAAKA,IAEMA,aAAkBC,QACnD,OAAOD,EAIX,IAAIG,EAAY1B,IAMhB,OALI0B,GAA2C,IAA9BH,EAAOE,QAAQC,KAC5BH,EAASA,EAAOI,UAAUD,EAAU9I,SAExCkG,EAAgB0D,UAAY,EAC5BjB,EAASzC,EAAgB8C,KAAKL,GAAUA,EAAO3C,QAAQE,GAAiB,SAAS5D,GAAS,OAAOoD,EAAUpD,MAAaqG,GA8BxH0B,SAzBe,SAAS1B,GAGxB,KAAyB,iBAFzBA,EAAmB,MAAVA,EAAiB,GAAKA,IAEMA,aAAkBC,QACnD,OAAOD,EAKX,IAAIG,EAAY1B,IACZ0B,GAA2C,IAA9BH,EAAOE,QAAQC,KAC5BH,EAASA,EAAOI,UAAUD,EAAU9I,SAGxC,IAAIuH,EAAWL,IACf,GAAIK,GAAYoB,EAAOE,QAAQtB,IAAa,EACxC,OAAOoB,EAEX,IAAI2B,EAAiBnE,OAAO,MAAQR,EAAUM,GAAaG,KAAK,KAAO,IAAK,MAC5E,OAAOkE,EAAetB,KAAKL,GAAUA,EAAO3C,QAAQsE,GAAgB,SAAShI,GAAS,OAAO2D,EAAY3D,MAAaqG","file":"_chunks/chunk.8551.js","sourcesContent":["/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n// This bundle store will be filled with the actual bundles loaded from the server\n\nexport const MERGED_BUNDLES_NAME = \"all\";\nexport const store = {};","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\nexport default {\n DEBUG: 100,\n INFO: 200,\n WARN: 300,\n ERROR: 400\n};","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\nimport levels from \"../enum/loggingLevels\";\n\nfunction Level(level, name) {\n this.level = level;\n this.name = name.toUpperCase();\n}\n\nLevel.prototype.isGreaterOrEqual = function(globalLevel) {\n var levelNumber = (globalLevel instanceof Level ? globalLevel : Level.getLevel(globalLevel) ).level;\n return this.level >= levelNumber;\n};\nLevel.prototype.toString = function() {\n return this.name;\n};\nLevel.getLevel = function(level) {\n return Level[level.toUpperCase()];\n};\n\nfor (var i in levels) {\n if (levels.hasOwnProperty(i)) {\n Level[i] = new Level(levels[i], i);\n }\n}\n\nexport default Level;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\nfunction formatTime(date) {\n var timeString,\n h = date.getHours().toString(),\n m = date.getMinutes().toString(),\n s = date.getSeconds().toString(),\n ms = date.getMilliseconds();\n\n if (h.length === 1) {\n h = \"0\" + h;\n }\n if (m.length === 1) {\n m = \"0\" + m;\n }\n if (s.length === 1) {\n s = \"0\" + s;\n }\n\n timeString = h + \":\" + m + \":\" + s + \".\" + ms;\n\n return timeString;\n}\n\nfunction LogItem(options) {\n for (var i in options) {\n if (options.hasOwnProperty(i)) {\n if (i === \"args\") {\n for (var k = 0, l = options[i].length; k < l; k++) {\n if (options[i][k] instanceof Error) {\n options[i][k] = options[i][k].message;\n }\n }\n }\n this[i] = options[i];\n }\n }\n}\n\nLogItem.prototype.toArray = function() {\n var logParams = [];\n logParams.push(formatTime(this.time));\n logParams.push(\"[\" + this.id + \"]\");\n if (this.file !== \"unknown\"){\n logParams.push(\"[\" + this.file + \":\" + this.line + \"]\");\n }\n logParams.push(\"[\" + this.level.toString() + \"] -\");\n logParams = logParams.concat(this.args);\n\n return logParams;\n};\n\nexport default LogItem;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\nimport Level from \"./Level\";\nimport LogItem from \"./LogItem\";\n\nfunction createLogMethod(type) {\n return function() {\n return this._prepareLogItem({\n level: Level.getLevel(type),\n args: arguments\n });\n }\n}\n\nfunction Log(settings, callback) {\n this._id = settings.id;\n this._callback = callback;\n}\n\nLog.prototype._prepareLogItem = function(logItem) {\n logItem.id = this._id;\n logItem.args = Array.prototype.slice.call(logItem.args, 0);\n logItem.time = new Date();\n\n // TODO cross browser support\n var stack = new Error().stack;\n if (stack) {\n var lineAccessingLogger = stack.split(\"\\n\")[2];\n var res = lineAccessingLogger.match(/\\/(\\w+\\.\\w+):(\\d+)/i);\n if (res) {\n logItem.file = res[1];\n logItem.line = res[2];\n }\n }\n if (!logItem.file) {\n logItem.file = \"unknown\";\n logItem.line = \"0\";\n }\n\n logItem = new LogItem(logItem);\n\n this._callback(logItem);\n return logItem;\n};\n\nLog.prototype.debug = createLogMethod(\"debug\");\nLog.prototype.info = createLogMethod(\"info\");\nLog.prototype.warn = createLogMethod(\"warn\");\nLog.prototype.error = createLogMethod(\"error\");\n\nexport default Log;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\n/*global console */\nfunction ConsoleAppender() {}\n\nConsoleAppender.prototype.console = (function() {\n if (typeof console === \"undefined\") {\n var f = function() {};\n\n return {\n assert: f,\n clear: f,\n count: f,\n debug: f,\n dir: f,\n dirxml: f,\n error: f,\n group: f,\n groupCollapsed: f,\n groupEnd: f,\n info: f,\n log: f,\n markTimeline: f,\n profile: f,\n profileEnd: f,\n table: f,\n time: f,\n timeEnd: f,\n timeStamp: f,\n trace: f,\n warn: f\n }\n } else {\n return console;\n }\n})();\n\nConsoleAppender.prototype.write = function(logItem) {\n\n var f = this.console.log;\n\n switch (logItem.level.toString()) {\n case \"DEBUG\":\n f = this.console.debug || this.console.log;\n break;\n case \"INFO\":\n f = this.console.info || this.console.log;\n break;\n case \"WARN\":\n f = this.console.warn;\n break;\n case \"ERROR\":\n f = this.console.error;\n break;\n }\n\n try\n {\n f.apply(this.console, logItem.toArray());\n }\n catch (e)\n {\n try {\n Function.prototype.apply.call(f, this.console, logItem.toArray());\n } catch(ex) {}\n }\n};\n\nexport default ConsoleAppender;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n\n/**\n * @author: Pavel Savushchyk\n * @version: $Id$\n */\n\n\nimport _ from \"underscore\";\nimport Log from \"./Log\";\nimport Level from \"./Level\";\nimport ConsoleAppender from \"./appender/ConsoleAppender\";\n\nvar appenderConstructors = {\n console: ConsoleAppender\n};\n\nvar LoggerManager = function(options) {\n this.initialize(options || {});\n};\n\n_.extend(LoggerManager.prototype, {\n\n defaults : function() {\n return {\n enabled: false,\n level: \"error\",\n appenders: {},\n appenderInstances: {},\n loggers: {}\n }\n },\n\n initialize: function(options) {\n this.attributes = _.defaults(options, this.defaults());\n\n // initialize appenders\n var appenders = {};\n _.each(appenderConstructors, function(appender, name){\n appenders[name] = new appender();\n });\n this.set(\"appenderInstances\", appenders);\n\n },\n\n get: function(attr) {\n return this.attributes[attr];\n },\n\n set: function(attr, value) {\n this.attributes[attr] = value;\n },\n\n register: function(options) {\n var settings = {\n id: \"root\"\n };\n\n if (typeof options === \"string\" && options !== \"\") {\n settings.id = options;\n } else if (options && options.hasOwnProperty(\"id\")) {\n settings.id = options.id;\n }\n\n if (!this.get(\"loggers\").hasOwnProperty(settings.id)) {\n var loggers = this.get(\"loggers\");\n loggers[settings.id] = new Log(settings, _.bind(this._processLogItem, this));\n this.set(\"loggers\", loggers);\n }\n\n return this.get(\"loggers\")[settings.id];\n },\n disable: function() {\n this.set(\"enabled\", false);\n },\n enable: function(level) {\n if (level) {\n this.set(\"level\", Level.getLevel(level));\n }\n this.set(\"enabled\", true);\n },\n setLevel: function(level) {\n this.set(\"level\", level);\n },\n\n _processLogItem: function(logItem) {\n if (this.get(\"enabled\") && logItem.level.isGreaterOrEqual(this.get(\"level\"))) {\n this._appendLogItem(logItem);\n }\n },\n _appendLogItem: function(logItem) {\n var appenders = this.get(\"appenders\"),\n appenderInstances = this.get(\"appenderInstances\");\n for (var i in appenders) {\n if (appenderInstances.hasOwnProperty(appenders[i])) {\n appenderInstances[appenders[i]].write(logItem);\n }\n }\n }\n});\n\nexport default LoggerManager;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\nimport LoggerManager from './LoggerManager';\nimport config from \"./loggerConfig\";\n\nlet logger = new LoggerManager(config);\nexport default logger;","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n/* global process */\n\nexport default {\n enabled : process.env.LOGGER_ENABLED !== 'false',\n level : process.env.LOGGER_LEVEL || 'error',\n appenders: (process.env.LOGGER_APPENDERS || \"console\").split(',')\n};","/*\n * Copyright (C) 2005 - 2020 TIBCO Software Inc. All rights reserved.\n * http://www.jaspersoft.com.\n *\n * Unless you have purchased a commercial license agreement from Jaspersoft,\n * the following license terms apply:\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n */\n\n/**\n * This is a standalone module. jQuery,prototype, etc. - depend on this\n * @author: Borys Kolesnykov\n *\n */\n\nimport jrsConfigs from '../../jrs.configs';\n\nvar htmlTagWhiteList = 'a,abbr,acronym,address,animate,animateMotion,animateTransform,area,article,aside,b,bdi,bdo,big,blockquote,body,br,button,' +\n 'canvas,caption,center,circle,cite,clipPath,code,col,colgroup,color-profile,dd,defs,desc,details,dfn,discard,div,dl,dt,ellipse,em,' +\n 'feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,' +\n 'fieldset,filter,font,footer,form,h1,h2,h3,h4,h5,h6,head,' +\n 'header,hr,html,i,g,iframe,image,img,input,js-templateNonce,label,legend,li,line,linearGradient,main,map,mark,marker,mask,menu,menuitem,meta,metadata,mpath,nav,ol,option,p,path,pattern,polygon,polyline,' +\n 'pre,radialGradient,rect,section,select,set,small,span,stop,strike,strong,style,sub,summary,sup,svg,switch,symbol,table,tbody,td,text,textPath,textarea,tfoot,th,thead,title,tr,tspan,u,ul,use,view';\n\n// None of the chars in the values of the map should appear as the map key to\n// avoid multiple escaping in a case like xssUtil.hardEscape(xssUtil.hardEscape(str))\n// Also, the escapeMap keys should NOT contain any initial values of unescapeMap.map.\n// The canonicalization would be broken. Eg. if escapeMap has a key 'c',\n// 'javascript' won't be canonicalized to 'javascript', because canonicExclusionMap\n// would have {'c': '*&*#*9*9*;*'}. 'c' would be excluded from canonic.\nvar escapeMap = {\n '(': '(',\n ')': ')',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n};\n\n// here, we are escaping all the characters in str that are special in regex's.\n// The str returned here is used to further construct a regex as follows: (?: str ).\n// Eg. str = \"a{}\" results in \"a\\{\\}\" after replace().\nvar makeStringRegex = function(str){\n return str == null ? '' : str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&')\n};\n\n// Need to escape chars like ) and ( in order to construct correct regex later /(?: \\)|\\( )/g\nvar regexKeys = function(map) {\n var arr = [];\n for (var k in map) {\n if (Object.prototype.hasOwnProperty.call(map, k))\n arr.push(makeStringRegex(k));\n }\n return arr;\n};\n\n// unescapeMap is made from reverse of escapeMap + extra chars.\nvar unescapeMap = (function() {\n var map = {\n 'o': 'o',\n 'n': 'n',\n 's': 's',\n 'r': 'r',\n 'c': 'c',\n 'd': 'd',\n '&': '&'\n }, k;\n for (k in escapeMap) {\n if (Object.prototype.hasOwnProperty.call(escapeMap, k))\n map[escapeMap[k]] = k;\n }\n\n return map;\n})();\n\n//'hard' escape regex\nvar hardEscapeRegex = RegExp('(?:' + regexKeys(escapeMap).join('|') + ')', 'g');\n\n/*\n 'str' func argument should not be escaped (func returns false) if:\n - str is not a String\n - str is not an HTML; does not contain < and >\n */\nvar _isHTMLString = function (str) {\n if (!(typeof(str) === 'string' || str instanceof String))\n return false;\n\n // not an HTML string\n if (str.indexOf('<') < 0 && str.indexOf('>') < 0)\n return false;\n\n return true;\n};\n\n// This func. takes a string on input and retuns the string obfuscated it with an input char (obfChar).\n// It intersperses the obfuscation char around all the input string chars.\n// E.g. ( is converted to *&*#*4*0*;* value\nvar _stringCanonicObfuscator = function (str, obfChar) {\n var obfuscatedStr = obfChar;\n for (var i = 0; i < str.length; ++i) {\n obfuscatedStr += str.charAt(i);\n obfuscatedStr += obfChar;\n }\n\n return obfuscatedStr;\n};\n\n// The keys of canonicExclusionMap are the html encoded characters that are not canonicalized during soft\n// escape (They are the values from escapeMap used in hardEscape func). The values of the canonicExclusionMap\n// are its modified keys such that canonicalization does not decode the map keys found in the string.\n// It should be unlikely that these mutant values would be found in the application data stream.\n// If the values are found in the string by accident, they would be replaced by the map keys (danger)\nvar canonicExclusionMap = (function() {\n var map = {}, key;\n\n for (key in escapeMap) {\n if (Object.prototype.hasOwnProperty.call(escapeMap, key)) {\n var obfuscStr = escapeMap[key];\n map[obfuscStr] = _stringCanonicObfuscator(obfuscStr, '*');\n }\n }\n\n //textarea needs to be obfuscated because we are inserting into