PageSourceSearch

https://www.imesd.k12.or.us/dist/assets/purify.es-BGtG0CB9.js

js imesd.k12.or.us collected 2026-10-09 23:03:24 UTC 29,090 bytes, 4 lines download raw bytes

vendor: 7,028 bytes, lines 1-2
1function Ye(r,i){(i==null||i>r.length)&&(i=r.length);for(var s=0,c=Array(i);s<i;s++)c[s]=r[s];return c}function Hn(r){if(Array.isArray(r))return r}function Gn(r,i){var s=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,u,d,S,ut=[],w=!0,At=!1;try{if(d=(s=s.call(r)).next,i!==0)for(;!(w=(c=d.call(s)).done)&&(ut.push(c.value),ut.length!==i);w=!0);}catch(q){At=!0,u=q}finally{try{if(!w&&s.return!=null&&(S=s.return(),Object(S)!==S))return}finally{if(At)throw u}}return ut}}function Wn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bn(r,i){return Hn(r)||Gn(r,i)||Yn(r,i)||Wn()}function Yn(r,i){if(r){if(typeof r=="string")return Ye(r,i);var s={}.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Ye(r,i):void 0}}const an=Object.entries,je=Object.setPrototypeOf,jn=Object.isFrozen,Xn=Object.getPrototypeOf,$n=Object.getOwnPropertyDescriptor;let y=Object.freeze,b=Object.seal,lt=Object.create,sn=typeof Reflect<"u"&&Reflect,le=sn.apply,ce=sn.construct;y||(y=function(i){return i});b||(b=function(i){return i});le||(le=function(i,s){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];return i.apply(s,u)});ce||(ce=function(i){for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return new i(...c)});const V=A(Array.prototype.forEach),Vn=A(Array.prototype.lastIndexOf),Xe=A(Array.prototype.pop),ht=A(Array.prototype.push),qn=A(Array.prototype.splice),ct=Array.isArray,Et=A(String.prototype.toLowerCase),ne=A(String.prototype.toString),$e=A(String.prototype.match),_t=A(String.prototype.replace),Ve=A(String.prototype.indexOf),Kn=A(String.prototype.trim),Zn=A(Number.prototype.toString),Jn=A(Boolean.prototype.toString),qe=typeof BigInt>"u"?null:A(BigInt.prototype.toString),Ke=typeof Symbol>"u"?null:A(Symbol.prototype.toString),D=A(Object.prototype.hasOwnProperty),gt=A(Object.prototype.toString),O=A(RegExp.prototype.test),G=Qn(TypeError);function A(r){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];return le(r,i,c)}}function Qn(r){return function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return ce(r,s)}}function m(r,i){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Et;if(je&&je(r,null),!ct(i))return r;let c=i.length;for(;c--;){let u=i[c];if(typeof u=="string"){const d=s(u);d!==u&&(jn(i)||(i[c]=d),u=d)}r[u]=!0}return r}function to(r){for(let i=0;i<r.length;i++)D(r,i)||(r[i]=null);return r}function C(r){const i=lt(null);for(const c of an(r)){var s=Bn(c,2);const u=s[0],d=s[1];D(r,u)&&(ct(d)?i[u]=to(d):d&&typeof d=="object"&&d.constructor===Object?i[u]=C(d):i[u]=d)}return i}function eo(r){switch(typeof r){case"string":return r;case"number":return Zn(r);case"boolean":return Jn(r);case"bigint":return qe?qe(r):"0";case"symbol":return Ke?Ke(r):"Symbol()";case"undefined":return gt(r);case"function":case"object":{if(r===null)return gt(r);const i=r,s=P(i,"toString");if(typeof s=="function"){const c=s(i);return typeof c=="string"?c:gt(c)}return gt(r)}default:return gt(r)}}function P(r,i){for(;r!==null;){const c=$n(r,i);if(c){if(c.get)return A(c.get);if(typeof c.value=="function")return A(c.value)}r=Xn(r)}function s(){return null}return s}function no(r){try{return O(r,""),!0}catch{return!1}}const Ze=y(["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"]),oe=y(["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"]),re=y(["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"]),oo=y(["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"]),ie=y(["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"]),ro=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Je=y(["#text"]),Qe=y(["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","
2spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ae=y(["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"]),tn=y(["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"]),xt=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),io=b(/{{[\w\W]*|^[\w\W]*}}/g),ao=b(/<%[\w\W]*|^[\w\W]*%>/g),so=b(/\${[\w\W]*/g),lo=b(/^data-[\-\w.\u00B7-\uFFFF]+$/),co=b(/^aria-[\-\w]+$/),en=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uo=b(/^(?:\w+script|data):/i),fo=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),po=b(/^html$/i),mo=b(/^[a-z][.\w]*(-[.\w]+)+$/i),nn=b(/<[/\w!]/g),on=b(/<[/\w]/g),To=b(/<\/no(script|embed|frames)/i),ho=b(/\/>/i),N={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ln=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],_o=y(m({},ln)),go=(function(){const r={};return V(ln,i=>{r[i]=b(new RegExp("</"+i+"(?=[\\t\\n\\f\\r />])","i"))}),y(r)})(),Eo=function(){return typeof window>"u"?null:window},Ao=function(i,s){if(typeof i!="object"||typeof i.createPolicy!="function")return null;
vendor: 4,353 bytes, line 2
2let c=null;const u="data-tt-policy-suffix";s&&s.hasAttribute(u)&&(c=s.getAttribute(u));const d="dompurify"+(c?"#"+c:"");try{return i.createPolicy(d,{createHTML(S){return S},createScriptURL(S){return S}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},rn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},W=function(i,s,c,u){return D(i,s)&&ct(i[s])?m(u.base?C(u.base):{},i[s],u.transform):c},se=function(i,s,c){const u=D(i,s)?i[s]:void 0;return u&&typeof u=="object"?C(u):c()};function cn(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Eo();const i=o=>cn(o);if(i.version="3.4.16",i.removed=[],!r||!r.document||r.document.nodeType!==N.document||!r.Element)return i.isSupported=!1,i;let s=r.document;const c=s,u=c.currentScript;r.DocumentFragment;const d=r.HTMLTemplateElement,S=r.Node,ut=r.Element,w=r.NodeFilter;r.NamedNodeMap===void 0&&(r.NamedNodeMap||r.MozNamedAttrMap),r.HTMLFormElement;const At=r.DOMParser,q=r.trustedTypes,U=ut.prototype,un=P(U,"cloneNode"),kt=P(U,"remove"),ue=P(U,"removeAttributeNode"),fn=P(U,"nextSibling"),K=P(U,"childNodes"),Z=P(U,"parentNode"),fe=P(U,"shadowRoot"),Ut=P(U,"attributes"),B=S&&S.prototype?P(S.prototype,"nodeType"):null,J=S&&S.prototype?P(S.prototype,"nodeName"):null,yt=S&&S.prototype?P(S.prototype,"ownerDocument"):null,ft=function(t){return B?B(t):t.nodeType},Ft=function(t){return J?J(t):t.nodeName};if(typeof d=="function"){const o=s.createElement("template");o.content&&o.content.ownerDocument&&(s=o.content.ownerDocument)}let L,Y="",zt,pe=!1,pt=0;const me=function(){if(pt>0)throw G('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.')},Q=function(t){me(),pt++;try{return L.createHTML(t)}finally{pt--}},pn=function(t){me(),pt++;try{return L.createScriptURL(t)}finally{pt--}},mn=function(){return pe||(zt=Ao(q,u),pe=!0),zt},St=s,Ht=St.implementation,de=St.createNodeIterator,dn=St.createDocumentFragment,Tn=St.getElementsByTagName,hn=c.importNode;let T=rn();i.isSupported=typeof an=="function"&&typeof Z=="function"&&Ht&&Ht.createHTMLDocument!==void 0;const _n=io,gn=ao,En=so,An=lo,yn=co,Sn=uo,Te=fo,bn=mo;let he=en,h=null;const Gt=m({},[...Ze,...oe,...re,...ie,...Je]);let _=null;const Wt=m({},[...Qe,...ae,...tn,...xt]);let v=Object.seal(lt(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}})),mt=null,_e=null;const F=Object.seal(lt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,Bt=!0,Ee=!1,Ae=!0,z=!1,j=!0,X=!1,Yt=!1,bt=null,Ot=null,jt=!1,tt=!1,Rt=!1,Lt=!1,ye=!0,Se=!1;const be="user-content-";let Xt=!0,$t=!1,et={},nt=null;const Oe=m({},["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"]);let Re=null;const Le=m({},["audio","video","img","source","image","track"]);let De=null;const we=m({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",wt="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml";let ot=x,Vt=!1,qt=null;const On=m({},[Dt,wt,x],ne),Ie=y(["mi","mo","mn","ms","mtext"]);let Kt=m({},Ie);const Ne=y(["annotation-xml"]);let Zt=m({},Ne);const Rn=m({},["title","style","font","a","script"]);let dt=null;const Ln=["application/xhtml+xml","text/html"],Dn="text/html";let E=null,rt=null;const wn=s.createElement("form"),Ce=function(t){return t instanceof RegExp||t instanceof Function},Jt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rt&&rt===t)return;(!t||typeof t!="object")&&(t={}
vendor: 11,629 bytes, line 2
2),t=C(t),dt=Ln.indexOf(t.PARSER_MEDIA_TYPE)===-1?Dn:t.PARSER_MEDIA_TYPE,E=dt==="application/xhtml+xml"?ne:Et,h=W(t,"ALLOWED_TAGS",Gt,{transform:E}),_=W(t,"ALLOWED_ATTR",Wt,{transform:E}),qt=W(t,"ALLOWED_NAMESPACES",On,{transform:ne}),De=W(t,"ADD_URI_SAFE_ATTR",we,{transform:E,base:we}),Re=W(t,"ADD_DATA_URI_TAGS",Le,{transform:E,base:Le}),nt=W(t,"FORBID_CONTENTS",Oe,{transform:E}),mt=W(t,"FORBID_TAGS",C({}),{transform:E}),_e=W(t,"FORBID_ATTR",C({}),{transform:E}),et=D(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?C(t.USE_PROFILES):t.USE_PROFILES:!1,ge=t.ALLOW_ARIA_ATTR!==!1,Bt=t.ALLOW_DATA_ATTR!==!1,Ee=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,z=t.SAFE_FOR_TEMPLATES||!1,j=t.SAFE_FOR_XML!==!1,X=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,Lt=t.RETURN_TRUSTED_TYPE||!1,jt=t.FORCE_BODY||!1,ye=t.SANITIZE_DOM!==!1,Se=t.SANITIZE_NAMED_PROPS||!1,Xt=t.KEEP_CONTENT!==!1,$t=t.IN_PLACE||!1,he=no(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:en,ot=typeof t.NAMESPACE=="string"?t.NAMESPACE:x,Kt=se(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>m({},Ie)),Zt=se(t,"HTML_INTEGRATION_POINTS",()=>m({},Ne));const e=se(t,"CUSTOM_ELEMENT_HANDLING",()=>lt(null));if(v=lt(null),D(e,"tagNameCheck")&&Ce(e.tagNameCheck)&&(v.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Ce(e.attributeNameCheck)&&(v.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),b(v),z&&(Bt=!1),Rt&&(tt=!0),et&&(h=m({},Je),_=lt(null),et.html===!0&&(m(h,Ze),m(_,Qe)),et.svg===!0&&(m(h,oe),m(_,ae),m(_,xt)),et.svgFilters===!0&&(m(h,re),m(_,ae),m(_,xt)),et.mathMl===!0&&(m(h,ie),m(_,tn),m(_,xt))),F.tagCheck=null,F.attributeCheck=null,D(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?F.tagCheck=t.ADD_TAGS:ct(t.ADD_TAGS)&&(h===Gt&&(h=C(h)),m(h,t.ADD_TAGS,E))),D(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?F.attributeCheck=t.ADD_ATTR:ct(t.ADD_ATTR)&&(_===Wt&&(_=C(_)),m(_,t.ADD_ATTR,E))),D(t,"ADD_FORBID_CONTENTS")&&ct(t.ADD_FORBID_CONTENTS)&&(nt===Oe&&(nt=C(nt)),m(nt,t.ADD_FORBID_CONTENTS,E)),Xt&&(h["#text"]=!0),X&&m(h,["html","head","body"]),h.table&&(m(h,["tbody"]),delete mt.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const n=L;L=t.TRUSTED_TYPES_POLICY;try{Y=Q("")}catch(a){throw L=n,a}}else t.TRUSTED_TYPES_POLICY===null?(L=void 0,Y=""):(L===void 0&&(L=mn()),L&&typeof Y=="string"&&(Y=Q("")));y&&y(t),rt=t},Me=m({},[...oe,...re,...oo]),Pe=m({},[...ie,...ro]),In=function(t,e,n){return e.namespaceURI===x?t==="svg":e.namespaceURI===Dt?t==="svg"&&(n==="annotation-xml"||Kt[n]):!!Me[t]},Nn=function(t,e,n){return e.namespaceURI===x?t==="math":e.namespaceURI===wt?t==="math"&&Zt[n]:!!Pe[t]},Cn=function(t,e,n){return e.namespaceURI===wt&&!Zt[n]||e.namespaceURI===Dt&&!Kt[n]?!1:!Pe[t]&&(Rn[t]||!Me[t])},Mn=function(t){let e=Z(t);(!e||!e.tagName)&&(e={namespaceURI:ot,tagName:"template"});const n=Et(t.tagName),a=Et(e.tagName);return qt[t.namespaceURI]?t.namespaceURI===wt?In(n,e,a):t.namespaceURI===Dt?Nn(n,e,a):t.namespaceURI===x?Cn(n,e,a):!!(dt==="application/xhtml+xml"&&qt[t.namespaceURI]):!1},H=function(t){ht(i.removed,{element:t});try{Z(t).removeChild(t)}catch{if(kt(t),!Z(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ve=function(t,e,n){try{ue(t,e)}catch{try{t.removeAttribute(n)}catch{}}},It=function(t){Nt(t);const e=K(t);if(e){const a=[];V(e,l=>{ht(a,l)}),V(a,l=>{try{kt(l)}catch{}})}const n=Ut(t);if(n)for(let a=n.length-1;a>=0;--a){const l=n[a],f=l&&l.name;typeof f=="string"&&ve(t,l,f)}},$=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch{n=null}ht(i.removed,{attribute:n||null,from:e});try{n?ue(e,n):e.removeAttribute(t)}catch{try{e.removeAttribute(t)}catch{}}if(t==="is")if(tt||Rt)try{H(e)}catch{}else try{e.setAttribute(t,"")}catch{}},Pn=function(t){const e=Ut(t);if(e)for(let n=e.length-1;n>=0;--n){const a=e[n],l=a&&a.name;typeof l!="string"||_[E(l)]||ve(t,a,l)}},Nt=function(t){const e=[t];for(;e.length>0;){const n=e.pop();ft(n)===N.element&&Pn(n);const a=K(n);if(a)for(let l=a.length-1;l>=0;--l)e.push(a[l])}},xe=function(t,e){return j?t==="patchsrc"?!0:t==="for"&&e!=="label"&&e!=="output":!1},vn=function(t){if(!j)return;const e=[t];for(;e.length>0;){const n=e.pop(),a=ft(n);if(a===N.processingInstruction||a===N.comment&&O(on,n.data)){try{kt(n)}catch{}continue}if(a===N.element){const f=n,p=E(Ft(n));try{f.hasAttribute&&f.hasAttribute("patchsrc")&&f.removeAttribute("patchsrc"),f.hasAttribute&&f.hasAttribute("for")&&xe("for",p)&&f.removeAttribute("for")}catch{}}const l=K(n);if(l)for(let f=l.length-1;f>=0;--f)e.push(l[f])}},ke=function(t){let e=null,n=null;if(jt)t="<remove></remove>"+t;else{const f=$e(t,/^[\r\n\t ]+/);n=f&&f[0]}dt==="application/xhtml+xml"&&ot===x&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const a=L?Q(t):t;if(ot===x)try{e=new At().parseFromString(a,dt)}catch{}if(!e||!e.documentElement){e=Ht.createDocument(ot,"template",null);try{e.documentElement.innerHTML=Vt?Y:a}catch{}}const l=e.body||e.documentElement;return t&&n&&l.insertBefore(s.createTextNode(n),l.childNodes[0]||null),ot===x?Tn.call(e,X?"html":"body")[0]:X?e.documentElement:l},Ue=function(t){const e=yt?yt(t):t.ownerDocument;return de.call(e||t,t,w.SHOW_ELEMENT|w.SHOW_COMMENT|w.SHOW_TEXT|w.SHOW_PROCESSING_INSTRUCTION|w.SHOW_CDATA_SECTION,null)},Ct=function(t){return t=_t(t,_n," "),t=_t(t,gn," "),t=_t(t,En," "),t},Qt=function(t){var e;t.normalize();const n=yt?yt(t):t.ownerDocument,a=de.call(n||t,t,w.SHOW_TEXT|w.SHOW_COMMENT|w.SHOW_CDATA_SECTION|w.SHOW_PROCESSING_INSTRUCTION,null);let l=a.nextNode();for(;l;)l.data=Ct(l.data),l=a.nextNode();const f=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");f&&V(f,p=>{it(p.content)&&Qt(p.content)})},Mt=function(t){const e=J?J(t):null;return typeof e!="string"||E(e)!=="form"?!1:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==Ut(t)||typeof t.removeAttribute!="function"||typeof t.removeAttributeNode!="function"||typeof t.getAttributeNode!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==B(t)||t.childNodes!==K(t)},it=function(t){if(!B||typeof t!="object"||t===null)return!1;try{return B(t)===N.documentFragment}catch{return!1}},Tt=function(t){if(!B||typeof t!="object"||t===null)return!1;try{return typeof B(t)=="number"}catch{return!1}};function k(o,t,e){o.length!==0&&V(o,n=>{n.call(i,t,e,rt)})}const xn=function(t,e){return!!(j&&t.hasChildNodes()&&!Tt(t.firstElementChild)&&O(nn,t.textContent)&&O(nn,t.innerHTML)||j&&t.namespaceURI===x&&_o[e]&&(Tt(t.firstElementChild)||typeof t.textContent=="string"&&O(go[e],t.textContent))||t.nodeType===N.processingInstruction||j&&t.nodeType===N.comment&&O(on,t.data))},Pt=function(t,e){if(t instanceof RegExp)return O(t,e);if(t instanceof Function){for(var n=arguments.length,a=new Array(n>2?n-2:0),l=2;l<n;l++)a[l-2]=arguments[l];return!!t(e,...a)}return!1},kn=function(t,e,n){if(!mt[e]&&Ge(e)&&Pt(v.tagNameCheck,e))return!1;if(Xt&&!nt[e]){const a=Z(t),l=K(t);if(l&&a){const f=l.length;for(let p=f-1;p>=0;--p){const g=t===n?un(l[p],!0):l[p];a.insertBefore(g,fn(t))}}}return H(t),!0},Fe=function(t,e,n,a){return t.length===0?e:e===n||e===a?C(e):e},at=function(t,e){return t===e||Z(t)!==null?!1:($t&&Nt(t),!0)},ze=function(t,e){if(k(T.beforeSanitizeElements,t,null),at(t,e))return!0;if(Mt(t))return H(t),!0;const n=E(Ft(t));if(h=Fe(T.uponSanitizeElement,h,Gt,bt),k(T.uponSanitizeElement,t,{tagName:n,allowedTags:h}),at(t,e))return!0;if(xn(t,n))return H(t),!0;if(mt[n]||!(F.tagCheck instanceof Function&&F.tagCheck(n))&&!h[n]){const a=kn(t,n,e);return a===!1&&(k(T.afterSanitizeElements,t,null),at(t,e))?!0:a}if(ft(t)===N.element&&!Mn(t)||(n==="noscript"||n==="noembed"||n==="noframes")&&O(To,t.innerHTML))return H(t),!0;if(z&&t.nodeType===N.text){const a=Ct(t.textContent);t.textContent!==a&&(ht(i.removed,{element:t.cloneNode()}),t.textContent=a)}return k(T.afterSanitizeElements,t,null),at(t,e)},He=function(t,e,n){if(_e[e]||xe(e,t)||ye&&(e==="id"||e==="name")&&(n in s||n in wn))return!1;const a=_[e]||F.attributeCheck instanceof Function&&F.attributeCheck(e,t);return Bt&&O(An,e)||ge&&O(yn,e)?!0:a?De[e]||O(he,_t(n,Te,""))||(e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&Ve(n,"data:")===0&&Re[t]||Ee&&!O(Sn,_t(n,Te,""))?!0:!n:Ge(t)&&Pt(v.tagNameCheck,t)&&Pt(v.attributeNameCheck,e,t)||e==="is"&&v.allowCustomizedBuiltInElements&&Pt(v.tagNameCheck,n)},Un=m({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ge=function(t){return!Un[Et(t)]&&O(bn,t)},Fn=function(t,e,n,a){if(L&&typeof q=="object"&&typeof q.getAttributeType=="function"&&!n)switch(q.getAttributeType(t,e)){case"TrustedHTML":return Q(a);case"TrustedScriptURL":return pn(a)}return a},zn=function(t,e,n,a){try{return n?t.setAttributeNS(n,e,a):t.setAttribute(e,a),Mt(t)?(H(t),!1):!0}catch{return $(e,t),!1}},We=function(t,e){if(k(T.beforeSanitizeAttributes,t,null),at(t,e))return;const n=t.attributes;if(!n||Mt(t))return;_=Fe(T.uponSanitizeAttribute,_,Wt,Ot);const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0};let l=n.length;const f=E(t.nodeName);for(;l--;){const p=n[l],g=p.name,M=p.namespaceURI,I=p.value,st=E(g),ee=I;let R=g==="value"?ee:Kn(ee),Be=!1;if(a.attrName=st,a.attrValue=R,a.keepAttr=!0,a.forceKeepAttr=void 0,k(T.uponSanitizeAttribute,t,a),R=a.attrValue,Se&&(st==="id"||st==="name")&&Ve(R,be)!==0&&($(g,t,p),R=be+R,Be=!0),j&&O(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,R)){$(g,t,p);continue}if(st==="attributename"&&$e(R,"href")){$(g,t,p);continue}if(!a.forceKeepAttr){if(!a.keepAttr){$(g,t,p);continue}if(!Ae&&O(ho,R)){$(g,t,p);continue}if(z&&(R=Ct(R)),!He(f,st,R)){$(g,t,p);continue}R=Fn(f,st,M,R),R!==ee&&zn(t,g,M,R)&&Be&&Xe(i.removed)}}k(T.afterSanitizeAttributes,t,null),at(t,e)},vt=function(t){let e=null;const n=Ue(t);for(k(T.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(k(T.uponSanitizeShadowNode,e,null),ze(e,t),We(e,t),it(e.content)&&vt(e.content),ft(e)===N.element){const a=fe(e);it(a)&&(te(a),vt(a))}k(T.afterSanitizeShadowDOM,t,null)},te=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const n=e.pop();if(n.shadow){vt(n.shadow);continue}const a=n.node,l=ft(a)===N.element,f=K(a);if(f)for(let p=f.length-1;p>=0;--p)e.push({node:f[p],shadow:null});if(l){const p=J?J(a):null;if(typeof p=="string"&&E(p)==="template"){const g=a.content;it(g)&&e.push({node:g,shadow:null})}}if(l){const p=fe(a);it(p)&&e.push({node:null,shadow:p},{node:p,shadow:null})}}};return i.sanitize=function(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,n=null,a=null,l=null;if(Vt=!o,Vt&&(o="<!-->"),typeof o!="string"&&!Tt(o)&&(o=eo(o),typeof o!="string"))throw G("dirty is not a string, aborting");if(!i.isSupported)return o;Yt?(h=bt,_=Ot):Jt(t),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(h=C(h)),T.uponSanitizeAttribute.length>0&&(_=C(_)),i.removed=[];const f=$t&&typeof o!="string"&&Tt(o);if(f){vn(o);const M=Ft(o);
vendor: 1,915 bytes, lines 2-4
2if(typeof M=="string"){const I=E(M);if(!h[I]||mt[I])throw It(o),G("root node is forbidden and cannot be sanitized in-place")}if(Mt(o))throw It(o),G("root node is clobbered and cannot be sanitized in-place");try{te(o)}catch(I){throw It(o),I}}else if(Tt(o))e=ke("<!---->"),n=e.ownerDocument.importNode(o,!0),n.nodeType===N.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?e=n:e.appendChild(n),te(e);else{if(!tt&&!z&&!X&&o.indexOf("<")===-1)return L&&Lt?Q(o):o;if(e=ke(o),!e)return tt?null:Lt?Y:""}e&&jt&&H(e.firstChild);const p=f?o:e;try{const M=Ue(p);for(;a=M.nextNode();)ze(a,p),We(a,p),it(a.content)&&vt(a.content)}catch(M){throw f&&(It(o),V(i.removed,I=>{I.element&&Nt(I.element)})),M}if(f){let M=!1;if(V(i.removed,I=>{I.element&&(I.element===o&&(M=!0),Nt(I.element))}),M)throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return z&&Qt(o),o}if(tt){if(z&&Qt(e),Rt)for(l=dn.call(e.ownerDocument);e.firstChild;)l.appendChild(e.firstChild);else l=e;return(_.shadowroot||_.shadowrootmode)&&(l=hn.call(c,l,!0)),l}let g=X?e.outerHTML:e.innerHTML;return X&&h["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&O(po,e.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+e.ownerDocument.doctype.name+`>
3`+g),z&&(g=Ct(g)),L&&Lt?Q(g):g},i.setConfig=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Jt(o),Yt=!0,bt=h,Ot=_},i.clearConfig=function(){rt=null,Yt=!1,bt=null,Ot=null,L=zt,Y=""},i.isValidAttribute=function(o,t,e){rt||Jt({});const n=E(o),a=E(t);return He(n,a,e)},i.addHook=function(o,t){typeof t=="function"&&D(T,o)&&ht(T[o],t)},i.removeHook=function(o,t){if(D(T,o)){if(t!==void 0){const e=Vn(T[o],t);return e===-1?void 0:qn(T[o],e,1)[0]}return Xe(T[o])}},i.removeHooks=function(o){D(T,o)&&(T[o]=[])},i.removeAllHooks=function(){T=rn()},i}var yo=cn();export{yo as p};
4//# sourceMappingURL=purify.es-BGtG0CB9.js.map

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.