PageSourceSearch

https://www.deribit.com/assets/purify.es-BXpDQPfJ.js

js deribit.com collected 2026-09-24 09:24:18 UTC 22,725 bytes, 2 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`3dcc281a8e79fff17adf3e75579634b27b7debb6`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`7befe21d-e9ca-4698-b850-3f93ebd283de`,e._sentryDebugIdIdentifier=`sentry-dbid-7befe21d-e9ca-4698-b850-3f93ebd283de`)})()}catch{}import{r as e}from"./rolldown-runtime-Dm_dodAQ.js";var t=e({default:()=>C}),{entries:n,setPrototypeOf:r,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object,{freeze:s,seal:c,create:l}=Object,{apply:u,construct:d}=typeof Reflect<`u`&&Reflect;s||=function freeze(e){return e},c||=function seal(e){return e},u||=function apply(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},d||=function construct(e){return new e(...[...arguments].slice(1))};var f=unapply(Array.prototype.forEach),ee=unapply(Array.prototype.lastIndexOf),te=unapply(Array.prototype.pop),p=unapply(Array.prototype.push),ne=unapply(Array.prototype.splice),m=unapply(String.prototype.toLowerCase),re=unapply(String.prototype.toString),ie=unapply(String.prototype.match),h=unapply(String.prototype.replace),ae=unapply(String.prototype.indexOf),oe=unapply(String.prototype.trim),g=unapply(Object.prototype.hasOwnProperty),_=unapply(RegExp.prototype.test),v=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return u(e,t,n)}}function unconstruct(e){return function(){return d(e,[...arguments])}}function addToSet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;r&&r(e,null);let a=t.length;for(;a--;){let r=t[a];if(typeof r==`string`){let e=n(r);e!==r&&(i(t)||(t[a]=e),r=e)}e[r]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++)g(e,t)||(e[t]=null);return e}function clone(e){let t=l(null);for(let[r,i]of n(e))g(e,r)&&(t[r]=Array.isArray(i)?cleanArray(i):i&&typeof i==`object`&&i.constructor===Object?clone(i):i);return t}function lookupGetter(e,t){for(;e!==null;){let n=o(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==`function`)return unapply(n.value)}e=a(e)}function fallbackValue(){return null}return fallbackValue}var se=s(`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`.split(`.`)),ce=s(`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`.split(`.`)),le=s([`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`]),ue=s([`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`]),de=s(`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`.split(`.`)),fe=s([`maction`,`mal
1igngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),pe=s([`#text`]),me=s(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.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.slot`.split(`.`)),he=s(`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.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.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-rendering.textlength.type.u1.u2.unicode.values.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`.split(`.`)),ge=s(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.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`.split(`.`)),y=s([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),_e=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ve=c(/<%[\w\W]*|[\w\W]*%>/gm),ye=c(/\$\{[\w\W]*/gm),b=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),x=c(/^aria-[\-\w]+$/),be=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xe=c(/^(?:\w+script|data):/i),Se=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ce=c(/^html$/i),we=c(/^[a-z][.\w]*(-[.\w]+)+$/i),Te=Object.freeze({__proto__:null,ARIA_ATTR:x,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:we,DATA_ATTR:b,DOCTYPE_NAME:Ce,ERB_EXPR:ve,IS_ALLOWED_URI:be,IS_SCRIPT_OR_DATA:xe,MUSTACHE_EXPR:_e,TMPLIT_EXPR:ye}),S={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ee=function getGlobal(){return typeof window>`u`?null:window},De=function _createTrustedTypesPolicy(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Oe=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ee(),DOMPurify=e=>createDOMPurify(e);if(DOMPurify.version=`3.3.1`,DOMPurify.removed=[],!e||!e.document||e.document.nodeType!==S.document||!e.Element)return DOMPurify.isSupported=!1,DOMPurify;let{document:t}=e,r=t,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:c,Element:u,NodeFilter:d,NamedNodeMap:_e=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ve,DOMParser:ye,trustedTypes:b}=e,x=u.prototype,xe=lookupGetter(x,`cloneNode`),Se=lookupGetter(x,`remove`),we=lookupGetter(x,`nextSibling`),C=lookupGetter(x,`childNodes`),w=lookupGetter(x,`parentNode`);if(typeof o==`function`){let e=t.createElement(`template`);e.content&&e.content.ownerDocument&&(t=e.content.ownerDocument)}let T,E=``,{implementation:ke,createNodeIterator:Ae,createDocumentFragment:je,getElementsByTagName:Me}=t,{importNode:Ne}=r,D=Oe();DOMPurify.isSupported=typeof n==`function`&&typeof w==`function`&&ke&&ke.createHTMLDocument!==void 0;
vendor: 12,392 bytes, lines 1-2
1let{MUSTACHE_EXPR:Pe,ERB_EXPR:Fe,TMPLIT_EXPR:Ie,DATA_ATTR:Le,ARIA_ATTR:Re,IS_SCRIPT_OR_DATA:ze,ATTR_WHITESPACE:Be,CUSTOM_ELEMENT:Ve}=Te,{IS_ALLOWED_URI:He}=Te,O=null,Ue=addToSet({},[...se,...ce,...le,...de,...pe]),k=null,We=addToSet({},[...me,...he,...ge,...y]),A=Object.seal(l(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}})),j=null,Ge=null,M=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ke=!0,qe=!0,Je=!1,Ye=!0,N=!1,P=!0,F=!1,Xe=!1,Ze=!1,I=!1,L=!1,R=!1,Qe=!0,$e=!1,et=!0,z=!1,B={},V=null,tt=addToSet({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),nt=null,rt=addToSet({},[`audio`,`video`,`img`,`source`,`image`,`track`]),it=null,at=addToSet({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),H=`http://www.w3.org/1998/Math/MathML`,U=`http://www.w3.org/2000/svg`,W=`http://www.w3.org/1999/xhtml`,G=W,ot=!1,st=null,ct=addToSet({},[H,U,W],re),K=addToSet({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),q=addToSet({},[`annotation-xml`]),lt=addToSet({},[`title`,`style`,`font`,`a`,`script`]),J=null,ut=[`application/xhtml+xml`,`text/html`],Y=null,X=null,dt=t.createElement(`form`),ft=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function},pt=function _parseConfig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(X&&X===e)){if((!e||typeof e!=`object`)&&(e={}),e=clone(e),J=ut.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Y=J===`application/xhtml+xml`?re:m,O=g(e,`ALLOWED_TAGS`)?addToSet({},e.ALLOWED_TAGS,Y):Ue,k=g(e,`ALLOWED_ATTR`)?addToSet({},e.ALLOWED_ATTR,Y):We,st=g(e,`ALLOWED_NAMESPACES`)?addToSet({},e.ALLOWED_NAMESPACES,re):ct,it=g(e,`ADD_URI_SAFE_ATTR`)?addToSet(clone(at),e.ADD_URI_SAFE_ATTR,Y):at,nt=g(e,`ADD_DATA_URI_TAGS`)?addToSet(clone(rt),e.ADD_DATA_URI_TAGS,Y):rt,V=g(e,`FORBID_CONTENTS`)?addToSet({},e.FORBID_CONTENTS,Y):tt,j=g(e,`FORBID_TAGS`)?addToSet({},e.FORBID_TAGS,Y):clone({}),Ge=g(e,`FORBID_ATTR`)?addToSet({},e.FORBID_ATTR,Y):clone({}),B=g(e,`USE_PROFILES`)?e.USE_PROFILES:!1,Ke=e.ALLOW_ARIA_ATTR!==!1,qe=e.ALLOW_DATA_ATTR!==!1,Je=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=e.SAFE_FOR_TEMPLATES||!1,P=e.SAFE_FOR_XML!==!1,F=e.WHOLE_DOCUMENT||!1,I=e.RETURN_DOM||!1,L=e.RETURN_DOM_FRAGMENT||!1,R=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,Qe=e.SANITIZE_DOM!==!1,$e=e.SANITIZE_NAMED_PROPS||!1,et=e.KEEP_CONTENT!==!1,z=e.IN_PLACE||!1,He=e.ALLOWED_URI_REGEXP||be,G=e.NAMESPACE||W,K=e.MATHML_TEXT_INTEGRATION_POINTS||K,q=e.HTML_INTEGRATION_POINTS||q,A=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ft(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(A.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(qe=!1),L&&(I=!0),B&&(O=addToSet({},pe),k=[],B.html===!0&&(addToSet(O,se),addToSet(k,me)),B.svg===!0&&(addToSet(O,ce),addToSet(k,he),addToSet(k,y)),B.svgFilters===!0&&(addToSet(O,le),addToSet(k,he),addToSet(k,y)),B.mathMl===!0&&(addToSet(O,de),addToSet(k,ge),addToSet(k,y))),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?M.tagCheck=e.ADD_TAGS:(O===Ue&&(O=clone(O)),addToSet(O,e.ADD_TAGS,Y))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?M.attributeCheck=e.ADD_ATTR:(k===We&&(k=clone(k)),addToSet(k,e.ADD_ATTR,Y))),e.ADD_URI_SAFE_ATTR&&addToSet(it,e.ADD_URI_SAFE_ATTR,Y),e.FORBID_CONTENTS&&(V===tt&&(V=clone(V)),addToSet(V,e.FORBID_CONTENTS,Y)),e.ADD_FORBID_CONTENTS&&(V===tt&&(V=clone(V)),addToSet(V,e.ADD_FORBID_CONTENTS,Y)),et&&(O[`#text`]=!0),F&&addToSet(O,[`html`,`head`,`body`]),O.table&&(addToSet(O,[`tbody`]),delete j.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw v(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw v(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);T=e.TRUSTED_TYPES_POLICY,E=T.createHTML(``)}else T===void 0&&(T=De(b,i)),T!==null&&typeof E==`string`&&(E=T.createHTML(``));s&&s(e),X=e}},mt=addToSet({},[...ce,...le,...ue]),ht=addToSet({},[...de,...fe]),gt=function _checkValidNamespace(e){let t=w(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:`template`});let n=m(e.tagName),r=m(t.tagName);return st[e.namespaceURI]?e.namespaceURI===U?t.namespaceURI===W?n===`svg`:t.namespaceURI===H?n===`svg`&&(r===`annotation-xml`||K[r]):!!mt[n]:e.namespaceURI===H?t.namespaceURI===W?n===`math`:t.namespaceURI===U?n===`math`&&q[r]:!!ht[n]:e.namespaceURI===W?t.namespaceURI===U&&!q[r]||t.namespaceURI===H&&!K[r]?!1:!ht[n]&&(lt[n]||!mt[n]):!!(J===`application/xhtml+xml`&&st[e.namespaceURI]):!1},Z=function _forceRemove(e){p(DOMPurify.removed,{element:e});try{w(e).removeChild(e)}catch{Se(e)}},Q=function _removeAttribute(e,t){try{p(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch{p(DOMPurify.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e===`is`){if(I||L)try{Z(t)}catch{}else try{t.setAttribute(e,``)}catch{}}},_t=function _initDocument(e){let n=null,r=null;if(Ze)e=`<remove></remove>`+e;else{let t=ie(e,/^[\r\n\t ]+/);r=t&&t[0]}J===`application/xhtml+xml`&&G===W&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?T.createHTML(e):e;if(G===W)try{n=new ye().parseFromString(i,J)}catch{}if(!n||!n.documentElement){n=ke.createDocument(G,`template`,null);try{n.documentElement.innerHTML=ot?E:i}catch{}}let a=n.body||n.documentElement;return e&&r&&a.insertBefore(t.createTextNode(r),a.childNodes[0]||null),G===W?Me.call(n,F?`html`:`body`)[0]:F?n.documentElement:a},vt=function _createNodeIterator(e){return Ae.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},$=function _isClobbered(e){return e instanceof ve&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof _e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},yt=function _isNode(e){return typeof c==`function`&&e instanceof c};function _executeHooks(e,t,n){f(e,e=>{e.call(DOMPurify,t,n,X)})}let bt=function _sanitizeElements(e){let t=null;if(_executeHooks(D.beforeSanitizeElements,e,null),$(e))return Z(e),!0;let n=Y(e.nodeName);if(_executeHooks(D.uponSanitizeElement,e,{tagName:n,allowedTags:O}),P&&e.hasChildNodes()&&!yt(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent)||e.nodeType===S.progressingInstruction||P&&e.nodeType===S.comment&&_(/<[/\w]/g,e.data))return Z(e),!0;if(!(M.tagCheck instanceof Function&&M.tagCheck(n))&&(!O[n]||j[n])){if(!j[n]&&St(n)&&(A.tagNameCheck instanceof RegExp&&_(A.tagNameCheck,n)||A.tagNameCheck instanceof Function&&A.tagNameCheck(n)))return!1;if(et&&!V[n]){let t=w(e)||e.parentNode,n=C(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=xe(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,we(e))}}}return Z(e),!0}return e instanceof u&&!gt(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z(e),!0):(N&&e.nodeType===S.text&&(t=e.textContent,f([Pe,Fe,Ie],e=>{t=h(t,e,` `)}),e.textContent!==t&&(p(DOMPurify.removed,{element:e.cloneNode()}),e.textContent=t)),_executeHooks(D.afterSanitizeElements,e,null),!1)},xt=function _isValidAttribute(e,n,r){if(Qe&&(n===`id`||n===`name`)&&(r in t||r in dt))return!1;if(!(qe&&!Ge[n]&&_(Le,n))&&!(Ke&&_(Re,n))&&!(M.attributeCheck instanceof Function&&M.attributeCheck(n,e))){if(!k[n]||Ge[n]){if(!(St(e)&&(A.tagNameCheck instanceof RegExp&&_(A.tagNameCheck,e)||A.tagNameCheck instanceof Function&&A.tagNameCheck(e))&&(A.attributeNameCheck instanceof RegExp&&_(A.attributeNameCheck,n)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(n,e))||n===`is`&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&_(A.tagNameCheck,r)||A.tagNameCheck instanceof Function&&A.tagNameCheck(r))))return!1}else if(!it[n]&&!_(He,h(r,Be,``))&&!((n===`src`||n===`xlink:href`||n===`href`)&&e!==`script`&&ae(r,`data:`)===0&&nt[e])&&!(Je&&!_(ze,h(r,Be,``)))&&r)return!1}return!0},St=function _isBasicCustomElement(e){return e!==`annotation-xml`&&ie(e,Ve)},Ct=function _sanitizeAttributes(e){_executeHooks(D.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||$(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:k,forceKeepAttr:void 0},r=t.length;for(;r--;){let{name:i,namespaceURI:a,value:o}=t[r],s=Y(i),c=o,l=i===`value`?c:oe(c);if(n.attrName=s,n.attrValue=l,n.keepAttr=!0,n.forceKeepAttr=void 0,_executeHooks(D.uponSanitizeAttribute,e,n),l=n.attrValue,$e&&(s===`id`||s===`name`)&&(Q(i,e),l=`user-content-`+l),P&&_(/((--!?|])>)|<\/(style|title|textarea)/i,l)){Q(i,e);continue}if(s===`attributename`&&ie(l,`href`)){Q(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Q(i,e);continue}if(!Ye&&_(/\/>/i,l)){Q(i,e);continue}N&&f([Pe,Fe,Ie],e=>{l=h(l,e,` `)});let u=Y(e.nodeName);if(!xt(u,s,l)){Q(i,e);continue}if(T&&typeof b==`object`&&typeof b.getAttributeType==`function`&&!a)switch(b.getAttributeType(u,s)){case`TrustedHTML`:l=T.createHTML(l);break;case`TrustedScriptURL`:l=T.createScriptURL(l)}if(l!==c)try{a?e.setAttributeNS(a,i,l):e.setAttribute(i,l),$(e)?Z(e):te(DOMPurify.removed)}catch{Q(i,e)}}_executeHooks(D.afterSanitizeAttributes,e,null)},wt=function _sanitizeShadowDOM(e){let t=null,n=vt(e);for(_executeHooks(D.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_executeHooks(D.uponSanitizeShadowNode,t,null),bt(t),Ct(t),t.content instanceof a&&_sanitizeShadowDOM(t.content);_executeHooks(D.afterSanitizeShadowDOM,e,null)};return DOMPurify.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,i=null,o=null,s=null;if(ot=!e,ot&&(e=`<!-->`),typeof e!=`string`&&!yt(e)){if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw v(`dirty is not a string, aborting`)}else throw v(`toString is not a function`)}if(!DOMPurify.isSupported)return e;if(Xe||pt(t),DOMPurify.removed=[],typeof e==`string`&&(z=!1),z){if(e.nodeName){let t=Y(e.nodeName);if(!O[t]||j[t])throw v(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof c)n=_t(`<!---->`),i=n.ownerDocument.importNode(e,!0),i.nodeType===S.element&&i.nodeName===`BODY`||i.nodeName===`HTML`?n=i:n.appendChild(i);else{if(!I&&!N&&!F&&e.indexOf(`<`)===-1)return T&&R?T.createHTML(e):e;if(n=_t(e),!n)return I?null:R?E:``}n&&Ze&&Z(n.firstChild);let l=vt(z?e:n);for(;o=l.nextNode();)bt(o),Ct(o),o.content instanceof a&&wt(o.content);if(z)return e;if(I){if(L)for(s=je.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(k.shadowroot||k.shadowrootmode)&&(s=Ne.call(r,s,!0)),s}let u=F?n.outerHTML:n.innerHTML;return F&&O[`!doctype`]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(Ce,n.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+n.ownerDocument.doctype.name+`>
2`+u),N&&f([Pe,Fe,Ie],e=>{u=h(u,e,` `)}),T&&R?T.createHTML(u):u},DOMPurify.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pt(e),Xe=!0},DOMPurify.clearConfig=function(){X=null,Xe=!1},DOMPurify.isValidAttribute=function(e,t,n){X||pt({});let r=Y(e),i=Y(t);return xt(r,i,n)},DOMPurify.addHook=function(e,t){typeof t==`function`&&p(D[e],t)},DOMPurify.removeHook=function(e,t){if(t!==void 0){let n=ee(D[e],t);return n===-1?void 0:ne(D[e],n,1)[0]}return te(D[e])},DOMPurify.removeHooks=function(e){D[e]=[]},DOMPurify.removeAllHooks=function(){D=Oe()},DOMPurify}var C=createDOMPurify();export{t as n,C as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.