tablefilter
Version:
A Javascript library making HTML tables filterable and a bit more
6 lines • 35.8 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{454:function(e,t,n){var r,o,a,i;function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray2(e)}(e)||function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||_unsupportedIterableToArray2(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(e,t):void 0}}function _arrayLikeToArray2(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _construct(e,t,n){return(_construct=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function _construct(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(o,n.prototype),o}).apply(null,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(e,t){return e.__proto__=t,e})(e,t)}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
i=function(){"use strict";function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}"function"==typeof Symbol&&Symbol.asyncIterator;var at=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,it=Object.getPrototypeOf,lt=Object.getOwnPropertyDescriptor,ut=Object.freeze,ct=Object.seal,ft=Object.create,e="undefined"!=typeof Reflect&&Reflect,a=e.apply,o=e.construct;ut=ut||function freeze(e){return e},ct=ct||function seal(e){return e},a=a||function apply(e,t){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)},o=o||function construct(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _construct(e,n)};var st=unapply(Array.prototype.forEach);Array.prototype.indexOf;var pt=unapply(Array.prototype.lastIndexOf),dt=unapply(Array.prototype.pop),mt=unapply(Array.prototype.push),yt=unapply(Array.prototype.slice),ht=unapply(Array.prototype.splice),gt=Array.isArray,bt=unconstruct(Set),vt=unapply(Set.prototype.add),Tt=unapply(Set.prototype.has),St=unapply(String.prototype.toLowerCase),_t=unapply(String.prototype.toString),At=unapply(String.prototype.match),wt=unapply(String.prototype.replace),Et=unapply(String.prototype.indexOf),kt=unapply(String.prototype.trim),xt=unapply(Number.prototype.toString),Ot=unapply(Boolean.prototype.toString),Nt="undefined"==typeof BigInt?null:unapply(BigInt.prototype.toString),It="undefined"==typeof Symbol?null:unapply(Symbol.prototype.toString),Ct=unapply(Object.prototype.hasOwnProperty),Dt=unapply(Object.prototype.toString),Rt=unapply(RegExp.prototype.test),Lt=unconstruct(TypeError);function unapply(o){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return a(o,e,n)}}function unconstruct(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o(r,t)}}function addToSet(e,t,n){var r=2<arguments.length&&void 0!==n?n:St;if(l&&l(e,null),!gt(t))return e;for(var o=t.length;o--;){var a=t[o];if("string"==typeof a){var i=r(a);i!==a&&(u(t)||(t[o]=i),a=i)}e[a]=!0}return e}function cleanArray(e){for(var t=0;t<e.length;t++)Ct(e,t)||(e[t]=null);return e}function clone(e){var t,n=ft(null),r=function _createForOfIteratorHelper(t,r){var o;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(o=_unsupportedIterableToArray2(t))||r&&t&&"number"==typeof t.length){o&&(t=o);function q(){}var a=0;return{s:q,n:function n(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function e(t){throw t},f:q}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,u=!1;return{s:function s(){o=t[Symbol.iterator]()},n:function n(){var e=o.next();return l=e.done,e},e:function e(t){u=!0,i=t},f:function f(){try{l||null==o.return||o.return()}finally{if(u)throw i}}}}(at(e));try{for(r.s();!(t=r.n()).done;){var o=_slicedToArray(t.value,2),a=o[0],i=o[1];Ct(e,a)&&(gt(i)?n[a]=cleanArray(i):i&&"object"===_typeof(i)&&i.constructor===Object?n[a]=clone(i):n[a]=i)}}catch(e){r.e(e)}finally{r.f()}return n}function lookupGetter(e,t){for(;null!==e;){var n=lt(e,t);if(n){if(n.get)return unapply(n.get);if("function"==typeof n.value)return unapply(n.value)}e=it(e)}return function fallbackValue(){return null}}var zt=ut(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Pt=ut(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mt=ut(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ut=ut(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ht=ut(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ft=ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jt=ut(["#text"]),Gt=ut(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Bt=ut(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wt=ut(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yt=ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qt=ct(/{{[\w\W]*|^[\w\W]*}}/g),Kt=ct(/<%[\w\W]*|^[\w\W]*%>/g),$t=ct(/\${[\w\W]*/g),Jt=ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vt=ct(/^aria-[\-\w]+$/),Xt=ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zt=ct(/^(?:\w+script|data):/i),Qt=ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),en=ct(/^html$/i),tn=ct(/^[a-z][.\w]*(-[.\w]+)+$/i),nn=ct(/<[/\w!]/g),rn=ct(/<[/\w]/g),on=ct(/<\/no(script|embed|frames)/i),an=ct(/\/>/i),ln={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},un=ut(addToSet({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),cn=function getGlobal(){return"undefined"==typeof window?null:window},fn=function _createTrustedTypesPolicy(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function createHTML(e){return e},createScriptURL:function createScriptURL(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},sn=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},pn=function _resolveSetOption(e,t,n,r){return Ct(e,t)&>(e[t])?addToSet(r.base?clone(r.base):{},e[t],r.transform):n},dn=function _resolveObjectOption(e,t,n){var r=Ct(e,t)?e[t]:void 0;return r&&"object"===_typeof(r)?clone(r):n()};return function createDOMPurify(e){var t=0<arguments.length&&void 0!==e?e:cn(),m=function DOMPurify(e){return createDOMPurify(e)};if(m.version="3.4.17",m.removed=[],!t||!t.document||t.document.nodeType!==ln.document||!t.Element)return m.isSupported=!1,m;var i=t.document,y=i,o=y.currentScript;t.DocumentFragment;var n=t.HTMLTemplateElement,r=t.Node,a=t.Element,l=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;function Id(e){return _?_(e):e.nodeType}function Jd(e){return A?A(e):e.nodeName}function Ld(e){return E?E(e):e.namespaceURI}var h,u=t.DOMParser,c=t.trustedTypes,f=a.prototype,s=lookupGetter(f,"cloneNode"),g=lookupGetter(f,"remove"),p=lookupGetter(f,"removeAttributeNode"),d=lookupGetter(f,"nextSibling"),b=lookupGetter(f,"childNodes"),v=lookupGetter(f,"parentNode"),T=lookupGetter(f,"shadowRoot"),S=lookupGetter(f,"attributes"),_=r&&r.prototype?lookupGetter(r.prototype,"nodeType"):null,A=r&&r.prototype?lookupGetter(r.prototype,"nodeName"):null,w=r&&r.prototype?lookupGetter(r.prototype,"ownerDocument"):null,E=function lookupAccessor(e,t){for(;null!==e;){var n=lt(e,t);if(n)return n.get?unapply(n.get):null;e=it(e)}return null}(f,"namespaceURI");if("function"==typeof n){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}function Sd(){if(0<I)throw Lt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')}function Td(e){Sd(),I++;try{return h.createHTML(e)}finally{I--}}var x,O="",N=!1,I=0,C=i,D=C.implementation,R=C.createNodeIterator,L=C.createDocumentFragment,z=C.getElementsByTagName,P=y.importNode,M=sn();m.isSupported="function"==typeof at&&"function"==typeof v&&D&&void 0!==D.createHTMLDocument;function kf(e){return e instanceof RegExp||e instanceof Function}function lf(e){var t=0<arguments.length&&void 0!==e?e:{};if(!Be||Be!==t){t&&"object"===_typeof(t)||(t={}),t=clone(t),Fe=-1===je.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,K=pn(t,"ALLOWED_TAGS",$,{transform:Ge="application/xhtml+xml"===Fe?_t:St}),J=pn(t,"ALLOWED_ATTR",V,{transform:Ge}),Re=pn(t,"ALLOWED_NAMESPACES",Le,{transform:_t}),ke=pn(t,"ADD_URI_SAFE_ATTR",xe,{transform:Ge,base:xe}),we=pn(t,"ADD_DATA_URI_TAGS",Ee,{transform:Ge,base:Ee}),_e=pn(t,"FORBID_CONTENTS",Ae,{transform:Ge}),Z=pn(t,"FORBID_TAGS",clone({}),{transform:Ge}),Q=pn(t,"FORBID_ATTR",clone({}),{transform:Ge}),Se=!!Ct(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"===_typeof(t.USE_PROFILES)?clone(t.USE_PROFILES):t.USE_PROFILES),te=!1!==t.ALLOW_ARIA_ATTR,ne=!1!==t.ALLOW_DATA_ATTR,re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ae=t.SAFE_FOR_TEMPLATES||!1,ie=!1!==t.SAFE_FOR_XML,le=t.WHOLE_DOCUMENT||!1,pe=t.RETURN_DOM||!1,de=t.RETURN_DOM_FRAGMENT||!1,me=t.RETURN_TRUSTED_TYPE||!1,se=t.FORCE_BODY||!1,ye=!1!==t.SANITIZE_DOM,he=t.SANITIZE_NAMED_PROPS||!1,be=!1!==t.KEEP_CONTENT,ve=t.IN_PLACE||!1,q=function isRegex(e){try{return Rt(e,""),!0}catch(e){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:Xt,Ce="string"==typeof t.NAMESPACE?t.NAMESPACE:Ie,Pe=dn(t,"MATHML_TEXT_INTEGRATION_POINTS",function(){return addToSet({},ze)}),Ue=dn(t,"HTML_INTEGRATION_POINTS",function(){return addToSet({},Me)});var n=dn(t,"CUSTOM_ELEMENT_HANDLING",function(){return ft(null)});if(X=ft(null),Ct(n,"tagNameCheck")&&kf(n.tagNameCheck)&&(X.tagNameCheck=n.tagNameCheck),Ct(n,"attributeNameCheck")&&kf(n.attributeNameCheck)&&(X.attributeNameCheck=n.attributeNameCheck),Ct(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(X.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),ct(X),ae&&(ne=!1),de&&(pe=!0),Se&&(K=addToSet({},jt),J=ft(null),!0===Se.html&&(addToSet(K,zt),addToSet(J,Gt)),!0===Se.svg&&(addToSet(K,Pt),addToSet(J,Bt),addToSet(J,Yt)),!0===Se.svgFilters&&(addToSet(K,Mt),addToSet(J,Bt),addToSet(J,Yt)),!0===Se.mathMl&&(addToSet(K,Ht),addToSet(J,Wt),addToSet(J,Yt))),ee.tagCheck=null,ee.attributeCheck=null,Ct(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ee.tagCheck=t.ADD_TAGS:gt(t.ADD_TAGS)&&(K===$&&(K=clone(K)),addToSet(K,t.ADD_TAGS,Ge))),Ct(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ee.attributeCheck=t.ADD_ATTR:gt(t.ADD_ATTR)&&(J===V&&(J=clone(J)),addToSet(J,t.ADD_ATTR,Ge))),Ct(t,"ADD_FORBID_CONTENTS")&>(t.ADD_FORBID_CONTENTS)&&(_e===Ae&&(_e=clone(_e)),addToSet(_e,t.ADD_FORBID_CONTENTS,Ge)),be&&(K["#text"]=!0),le&&addToSet(K,["html","head","body"]),K.table&&(addToSet(K,["tbody"]),delete Z.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Lt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var r=h;h=t.TRUSTED_TYPES_POLICY;try{O=Td("")}catch(e){throw h=r,e}}else null===t.TRUSTED_TYPES_POLICY?(h=void 0,O=""):(void 0===h&&(h=function _getDefaultTrustedTypesPolicy(){return N||(x=fn(c,o),N=!0),x}()),h&&"string"==typeof O&&(O=Td("")));ut&&ut(t),Be=t}}function rf(e){var t,n,r=Ld(e),o=St(Jd(e)),a=v(e);return n=a&&Id(a)===ln.element?(t={namespaceURI:Ld(a)},St(Jd(a))):(t={namespaceURI:Ce},"template"),!!Re[r]&&(r===Ne?function _checkSvgNamespace(e,t,n){return t.namespaceURI===Ie?"svg"===e:t.namespaceURI===Oe?"svg"===e&&("annotation-xml"===n||Pe[n]):Boolean(Ye[e])}(o,t,n):r===Oe?function _checkMathMlNamespace(e,t,n){return t.namespaceURI===Ie?"math"===e:t.namespaceURI===Ne?"math"===e&&Ue[n]:Boolean(qe[e])}(o,t,n):r===Ie?function _checkHtmlNamespace(e,t,n){return!(t.namespaceURI===Ne&&!Ue[n])&&!(t.namespaceURI===Oe&&!Pe[n])&&!qe[e]&&(He[e]||!Ye[e])}(o,t,n):!("application/xhtml+xml"!==Fe||!Re[r]))}function sf(t){mt(m.removed,{element:t});try{v(t).removeChild(t)}catch(e){if(g(t),!v(t))throw Lt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}}function tf(t,e,n){try{p(t,e)}catch(e){try{t.removeAttribute(n)}catch(e){}}}function uf(e){Ke(e);var t=b(e);t&&st(yt(t),function(e){try{g(e)}catch(e){}});var n=Id(e)===ln.element?S(e):null;if(n)for(var r=n.length-1;0<=r;--r){var o=n[r],a=o&&o.name;"string"==typeof a&&tf(e,o,a)}}function vf(t,n,r){if(!r)try{r=n.getAttributeNode(t)}catch(e){r=null}mt(m.removed,{attribute:r||null,from:n});try{r?p(n,r):n.removeAttribute(t)}catch(e){try{n.removeAttribute(t)}catch(e){}}if("is"===t)if(pe||de)try{sf(n)}catch(e){}else try{n.setAttribute(t,"")}catch(e){}}function wf(e){var t=S(e);if(t)for(var n=t.length-1;0<=n;--n){var r=t[n],o=r&&r.name;"string"!=typeof o||J[Ge(o)]||tf(e,r,o)}}function xf(e,t,n){for(var r=2<arguments.length&&void 0!==n&&n,o=[e];0<o.length;){var a=o.pop();if(!1!==t(a)){if(r&&Id(a)===ln.element){var i=T(a);Ze(i)&&o.push(i)}var l=b(a);if(l)for(var u=l.length-1;0<=u;--u)o.push(l[u])}}}function zf(e){var t=[];return xf(e,function(e){t.push(e)},!0),t}function Bf(t,e){var n=!1;return st(m.removed,function(e){e.element&&(n=n||e.element===t,Ke(e.element))}),function _neutralizeEscapedElements(e,t){var n=bt();st(zf(e),function(e){Id(e)===ln.element&&vt(n,e)}),st(t,function(e){Id(e)!==ln.element||Tt(n,e)||wf(e)})}(t,e),n}function Gf(e,t){return!!ie&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)}function If(e){var t=null,n=null;if(se)e="<remove></remove>"+e;else{var r=At(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===Fe&&Ce===Ie&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=h?Td(e):e;if(Ce===Ie)try{t=(new u).parseFromString(o,Fe)}catch(e){}if(!t||!t.documentElement){t=D.createDocument(Ce,"template",null);try{t.documentElement.innerHTML=De?O:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),Ce===Ie?z.call(t,le?"html":"body")[0]:le?t.documentElement:a}function Kf(e){return e=wt(e,U," "),e=wt(e,H," "),e=wt(e,F," ")}function Nf(e){var t=A?A(e):null;return"string"==typeof t&&"form"===Ge(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==S(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==b(e))}function Pf(e){if(!_||"object"!==_typeof(e)||null===e)return!1;try{return"number"==typeof _(e)}catch(e){return!1}}var U=qt,H=Kt,F=$t,j=Jt,G=Vt,B=Zt,W=Qt,Y=tn,q=Xt,K=null,$=addToSet({},[].concat(_toConsumableArray(zt),_toConsumableArray(Pt),_toConsumableArray(Mt),_toConsumableArray(Ht),_toConsumableArray(jt))),J=null,V=addToSet({},[].concat(_toConsumableArray(Gt),_toConsumableArray(Bt),_toConsumableArray(Wt),_toConsumableArray(Yt))),X=Object.seal(ft(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Q=null,ee=Object.seal(ft(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),te=!0,ne=!0,re=!1,oe=!0,ae=!1,ie=!0,le=!1,ue=!1,ce=null,fe=null,se=!1,pe=!1,de=!1,me=!1,ye=!0,he=!1,ge="user-content-",be=!0,ve=!1,Te=null,Se={},_e=null,Ae=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),we=null,Ee=addToSet({},["audio","video","img","source","image","track"]),ke=null,xe=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Ne="http://www.w3.org/2000/svg",Ie="http://www.w3.org/1999/xhtml",Ce=Ie,De=!1,Re=null,Le=addToSet({},[Oe,Ne,Ie],_t),ze=ut(["mi","mo","mn","ms","mtext"]),Pe=addToSet({},ze),Me=ut(["annotation-xml"]),Ue=addToSet({},Me),He=addToSet({},["title","style","font","a","script"]),Fe=null,je=["application/xhtml+xml","text/html"],Ge=null,Be=null,We=i.createElement("form"),Ye=addToSet({},[].concat(_toConsumableArray(Pt),_toConsumableArray(Mt),_toConsumableArray(Ut))),qe=addToSet({},[].concat(_toConsumableArray(Ht),_toConsumableArray(Ft))),Ke=function _neutralizeSubtree(e){xf(e,function(e){Id(e)===ln.element&&wf(e)})},$e=function _sanitizeUnvisitedIn(e,t,n,r){for(var o,a=Je(e);o=a.nextNode();)Tt(r,o)&&!Tt(Te,o)&&(t&&_executeHooks(M.uponSanitizeShadowNode,o,null),Qe(o,n),nt(o,n),Ze(o.content)&&rt(o.content))},Je=function _createNodeIterator(e){var t=w?w(e):e.ownerDocument;return R.call(t||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ve=function _scrubTemplateExpressions(e){var t;Xe(e);var n=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");n&&st(n,function(e){Ze(e.content)&&Ve(e.content)})},Xe=function _scrubOwnCharacterData(e){e.normalize();for(var t=w?w(e):e.ownerDocument,n=R.call(t||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();r;)r.data=Kf(r.data),r=n.nextNode()},Ze=function _isDocumentFragment(e){if(!_||"object"!==_typeof(e)||null===e)return!1;try{return _(e)===ln.documentFragment}catch(e){return!1}};function _executeHooks(e,t,n){0!==e.length&&st(e,function(e){e.call(m,t,n,Be)})}function Rf(e,t){if(e instanceof RegExp)return Rt(e,t);if(e instanceof Function){for(var n=arguments.length,r=new Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(e.apply(void 0,[t].concat(r)))}return!1}function Tf(e,t,n,r){return 0===e.length?t:t===n||t===r?clone(t):t}function Uf(e,t){return e!==t&&null===v(e)&&(ve&&Ke(e),!0)}function Wf(e,t,n){if(Q[t])return!1;if(Gf(t,e))return!1;if(ye&&("id"===t||"name"===t)&&(n in i||n in We))return!1;var r=J[t]||ee.attributeCheck instanceof Function&&ee.attributeCheck(t,e);return!(!ne||!Rt(j,t))||!(!te||!Rt(G,t))||(r?!(!ke[t]&&!Rt(q,wt(n,W,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Et(n,"data:")||!we[e])&&(!re||Rt(B,wt(n,W,"")))&&n):tt(e)&&Rf(X.tagNameCheck,e)&&Rf(X.attributeNameCheck,t,e)||"is"===t&&X.allowCustomizedBuiltInElements&&Rf(X.tagNameCheck,n))}function Zf(e,t,n,r){if(h&&"object"===_typeof(c)&&"function"==typeof c.getAttributeType&&!n)switch(c.getAttributeType(e,t)){case"TrustedHTML":return Td(r);case"TrustedScriptURL":return function _createTrustedScriptURL(e){Sd(),I++;try{return h.createScriptURL(e)}finally{I--}}(r)}return r}function $f(t,n,e,r){try{return e?t.setAttributeNS(e,n,r):t.setAttribute(n,r),!Nf(t)||(sf(t),!1)}catch(e){return vf(n,t),!1}}function _f(e,t){return!(!ie||!Rt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===St(e)&&null!==At(t,"href")}var Qe=function _sanitizeElements(e,t){if(function _markVisited(e){Te&&vt(Te,e)}(e),_executeHooks(M.beforeSanitizeElements,e,null),Uf(e,t))return!0;if(Nf(e))return sf(e),!0;var n=Ge(Jd(e));if(K=Tf(M.uponSanitizeElement,K,$,ce),_executeHooks(M.uponSanitizeElement,e,{tagName:n,allowedTags:K}),Uf(e,t))return!0;if(function _isUnsafeNode(e,t){return!!(ie&&e.hasChildNodes()&&!Pf(e.firstElementChild)&&Rt(nn,e.textContent)&&Rt(nn,e.innerHTML))||!!(ie&&un[t]&&Id(e)===ln.element&&Ld(e)===Ie&&(Pf(e.firstElementChild)||"string"==typeof e.textContent&&Rt(nn,e.textContent)))||e.nodeType===ln.processingInstruction||!(!ie||e.nodeType!==ln.comment||!Rt(rn,e.data))}(e,n))return sf(e),!0;if(Z[n]||!(ee.tagCheck instanceof Function&&ee.tagCheck(n))&&!K[n]){var r=function _sanitizeDisallowedNode(e,t,n){if(!Z[t]&&tt(t)&&Rf(X.tagNameCheck,t))return!1;if(be&&!_e[t]&&!_e[St(t)]){var r=v(e),o=b(e);if(o&&r)for(var a=o.length-1;0<=a;--a){var i=e===n?s(o[a],!0):o[a];r.insertBefore(i,d(e))}}return sf(e),!0}(e,n,t);return!(!1!==r||(_executeHooks(M.afterSanitizeElements,e,null),!Uf(e,t)))||r}if(Id(e)===ln.element&&!rf(e))return sf(e),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Rt(on,e.innerHTML))return sf(e),!0;if(ae&&e.nodeType===ln.text){var o=Kf(e.textContent);e.textContent!==o&&(mt(m.removed,{element:e.cloneNode()}),e.textContent=o)}return _executeHooks(M.afterSanitizeElements,e,null),Uf(e,t)},et=addToSet({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),tt=function _isBasicCustomElement(e){return!et[St(e)]&&Rt(Y,e)},nt=function _sanitizeAttributes(e,t){if(_executeHooks(M.beforeSanitizeAttributes,e,null),!Uf(e,t)){var n=e.attributes;if(n&&!Nf(e)){for(var r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J=Tf(M.uponSanitizeAttribute,J,V,fe),forceKeepAttr:void 0},o=n.length,a=Ge(e.nodeName);o--;){var i=n[o],l=i.name,u=i.namespaceURI,c=i.value,f=Ge(l),s=c,p="value"===l?s:kt(s),d=!1;r.attrName=f,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,_executeHooks(M.uponSanitizeAttribute,e,r),p=r.attrValue,!he||"id"!==f&&"name"!==f||0===Et(p,ge)||(vf(l,e,i),p=ge+p,d=!0),_f(l,p)?vf(l,e,i):r.forceKeepAttr||(!r.keepAttr||!oe&&Rt(an,p)?vf(l,e,i):(ae&&(p=Kf(p)),Wf(a,f,p)?(p=Zf(a,f,u,p))!==s&&$f(e,l,u,p)&&d&&dt(m.removed):vf(l,e,i)))}_executeHooks(M.afterSanitizeAttributes,e,null),Uf(e,t)}}},rt=function _sanitizeShadowDOM(e){var t=null,n=Je(e);for(_executeHooks(M.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(_executeHooks(M.uponSanitizeShadowNode,t,null),Qe(t,e),nt(t,e),Ze(t.content)&&rt(t.content),Id(t)===ln.element){var r=T(t);Ze(r)&&(ot(r),rt(r))}ae&&Xe(e),_executeHooks(M.afterSanitizeShadowDOM,e,null)},ot=function _sanitizeAttachedShadowRoots(e){for(var t=[{node:e,shadow:null}];0<t.length;){var n=t.pop();if(n.shadow)rt(n.shadow);else{var r=n.node,o=Id(r)===ln.element,a=b(r);if(a)for(var i=a.length-1;0<=i;--i)t.push({node:a[i],shadow:null});if(o){var l=A?A(r):null;if("string"==typeof l&&"template"===Ge(l)){var u=r.content;Ze(u)&&t.push({node:u,shadow:null})}}if(o){var c=T(r);Ze(c)&&t.push({node:null,shadow:c},{node:c,shadow:null})}}}};return m.sanitize=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,a=null;if((De=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Pf(t)&&"string"!=typeof(t=function stringifyValue(e){switch(_typeof(e)){case"string":return e;case"number":return xt(e);case"boolean":return Ot(e);case"bigint":return Nt?Nt(e):"0";case"symbol":return It?It(e):"Symbol()";case"undefined":return Dt(e);case"function":case"object":if(null===e)return Dt(e);var t=e,n=lookupGetter(t,"toString");if("function"!=typeof n)return Dt(e);var r=n(t);return"string"==typeof r?r:Dt(r);default:return Dt(e)}}(t)))throw Lt("dirty is not a string, aborting");if(!m.isSupported)return t;ue?(K=ce,J=fe):lf(e),(0<M.uponSanitizeElement.length||0<M.uponSanitizeAttribute.length)&&(K=clone(K)),0<M.uponSanitizeAttribute.length&&(J=clone(J)),m.removed=[];var i=ve&&"string"!=typeof t&&Pf(t),l=[],u=Te;if(i){!function _neutralizePatchLinkage(e){ie&&xf(e,function(e){var t=Id(e);if(t===ln.processingInstruction||t===ln.comment&&Rt(rn,e.data)){try{g(e)}catch(e){}return!1}if(t===ln.element){var n=e,r=Ge(Jd(e));try{n.hasAttribute&&n.hasAttribute("patchsrc")&&n.removeAttribute("patchsrc"),n.hasAttribute&&n.hasAttribute("for")&&Gf("for",r)&&n.removeAttribute("for")}catch(e){}}return!0})}(t);var c=Jd(t);if("string"==typeof c){var f=Ge(c);if(!K[f]||Z[f])throw uf(t),Lt("root node is forbidden and cannot be sanitized in-place")}if(Nf(t))throw uf(t),Lt("root node is clobbered and cannot be sanitized in-place");l=zf(t),Te=bt()}else if(Pf(t))(r=(n=If("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===ln.element&&"BODY"===r.nodeName?n=r:"HTML"===r.nodeName?n=r:n.appendChild(r),ot(n);else{if(!pe&&!ae&&!le&&-1===t.indexOf("<"))return h&&me?Td(t):t;if(!(n=If(t)))return pe?null:me?O:""}n&&se&&sf(n.firstChild);var s=i?t:n;try{i&&ot(t);for(var p=Je(s);o=p.nextNode();)Qe(o,s),nt(o,s),Ze(o.content)&&rt(o.content);i&&function _sanitizeUnvisitedNodes(o,e){for(var a=Te,t=null,i=function getOriginal(){return t||(t=bt(),st(e,function(e){vt(t,e)})),t},n=function _loop(e){var t=zf(o),n=[o],r=!1;if(st(t,function(e){Id(e)===ln.documentFragment?mt(n,e):r||Tt(a,e)||(r=Tt(i(),e))}),!r)return{v:void 0};if(8<=e)throw Lt("the tree kept changing during in-place sanitization; refusing to return it");st(n,function(e,t){$e(e,0<t,o,i())})},r=0;;r++){var l=n(r);if("object"===_typeof(l))return l.v}}(t,l)}catch(e){throw i&&(uf(t),Bf(t,l)),e}finally{Te=u}if(i){if(Bf(t,l))throw Lt("a node selected for removal could not be safely returned; refusing to sanitize in place");return ae&&Ve(t),t}if(pe){if(ae&&Ve(n),de)for(a=L.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(J.shadowroot||J.shadowrootmode)&&(a=P.call(y,a,!0)),a}var d=le?n.outerHTML:n.innerHTML;return le&&K["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Rt(en,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),ae&&(d=Kf(d)),h&&me?Td(d):d},m.setConfig=function(){lf(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),ue=!0,ce=K,fe=J},m.clearConfig=function(){ue=!1,fe=ce=Be=null,h=x,O=""},m.isValidAttribute=function(e,t,n){Be||lf({});var r=Ge(e),o=Ge(t);return("string"!=typeof n||!(_f(t,n)||!oe&&Rt(an,n)))&&Wf(r,o,n)},m.addHook=function(e,t){"function"==typeof t&&Ct(M,e)&&mt(M[e],t)},m.removeHook=function(e,t){if(Ct(M,e)){if(void 0===t)return dt(M[e]);var n=pt(M[e],t);return-1===n?void 0:ht(M[e],n,1)[0]}},m.removeHooks=function(e){Ct(M,e)&&(M[e]=[])},m.removeAllHooks=function(){M=sn()},m}()},"object"===_typeof(t)&&void 0!==e?e.exports=i():(o=[],void 0===(a="function"==typeof(r=i)?r.apply(t,o):r)||(e.exports=a))},456:function(e,t){e.exports=function(e){function log(e){"undefined"!=typeof console&&(console.error||console.log)("[Script Loader]",e)}try{"undefined"!=typeof execScript&&function isIE(){return"undefined"!=typeof attachEvent&&"undefined"==typeof addEventListener}()?execScript(e):"undefined"!=typeof eval?eval.call(null,e):log("EvalError: No eval function available")}catch(e){log(e)}}}}]);