8bitworkshop/gen/chunk-UC2UKQOH.js

7 lines
29 KiB
JavaScript

import{a as Tr}from"./chunk-B2GOFULO.js";import{d as Jt}from"./chunk-WAARL7ET.js";var _r=Jt((Ot,Rt)=>{(function(d,_){typeof Ot=="object"&&typeof Rt!="undefined"?Rt.exports=_():typeof define=="function"&&define.amd?define(_):(d=typeof globalThis!="undefined"?globalThis:d||self,d.DOMPurify=_())})(Ot,function(){"use strict";function d(i){return d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},d(i)}function _(i,s){return _=Object.setPrototypeOf||function(r,t){return r.__proto__=t,r},_(i,s)}function F(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(i){return!1}}function A(i,s,f){return F()?A=Reflect.construct:A=function(t,a,l){var v=[null];v.push.apply(v,a);var E=Function.bind.apply(t,v),L=new E;return l&&_(L,l.prototype),L},A.apply(null,arguments)}function y(i){return W(i)||ne(i)||U(i)||ce()}function W(i){if(Array.isArray(i))return H(i)}function ne(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function U(i,s){if(!!i){if(typeof i=="string")return H(i,s);var f=Object.prototype.toString.call(i).slice(8,-1);if(f==="Object"&&i.constructor&&(f=i.constructor.name),f==="Map"||f==="Set")return Array.from(i);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return H(i,s)}}function H(i,s){(s==null||s>i.length)&&(s=i.length);for(var f=0,r=new Array(s);f<s;f++)r[f]=i[f];return r}function ce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G=Object.hasOwnProperty,Ne=Object.setPrototypeOf,Ce=Object.isFrozen,Ie=Object.getPrototypeOf,M=Object.getOwnPropertyDescriptor,b=Object.freeze,B=Object.seal,Ze=Object.create,xe=typeof Reflect!="undefined"&&Reflect,me=xe.apply,h=xe.construct;me||(me=function(s,f,r){return s.apply(f,r)}),b||(b=function(s){return s}),B||(B=function(s){return s}),h||(h=function(s,f){return A(s,y(f))});var m=k(Array.prototype.forEach),g=k(Array.prototype.pop),T=k(Array.prototype.push),X=k(String.prototype.toLowerCase),ae=k(String.prototype.toString),Oe=k(String.prototype.match),z=k(String.prototype.replace),O=k(String.prototype.indexOf),Je=k(String.prototype.trim),S=k(RegExp.prototype.test),pe=Re(TypeError);function k(i){return function(s){for(var f=arguments.length,r=new Array(f>1?f-1:0),t=1;t<f;t++)r[t-1]=arguments[t];return me(i,s,r)}}function Re(i){return function(){for(var s=arguments.length,f=new Array(s),r=0;r<s;r++)f[r]=arguments[r];return h(i,f)}}function c(i,s,f){f=f||X,Ne&&Ne(i,null);for(var r=s.length;r--;){var t=s[r];if(typeof t=="string"){var a=f(t);a!==t&&(Ce(s)||(s[r]=a),t=a)}i[t]=!0}return i}function j(i){var s=Ze(null),f;for(f in i)me(G,i,[f])===!0&&(s[f]=i[f]);return s}function re(i,s){for(;i!==null;){var f=M(i,s);if(f){if(f.get)return k(f.get);if(typeof f.value=="function")return k(f.value)}i=Ie(i)}function r(t){return console.warn("fallback value for",t),null}return r}var ze=b(["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","section","select","shadow","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"]),Le=b(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=b(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),de=b(["animate","color-profile","cursor","discard","fedropshadow","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=b(["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"]),Qe=b(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ve=b(["#text"]),K=b(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),oe=b(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),ke=b(["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"]),se=b(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),et=B(/\{\{[\w\W]*|[\w\W]*\}\}/gm),le=B(/<%[\w\W]*|[\w\W]*%>/gm),tt=B(/\${[\w\W]*}/gm),he=B(/^data-[\-\w.\u00B7-\uFFFF]/),Pe=B(/^aria-[\-\w]+$/),Fe=B(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rt=B(/^(?:\w+script|data):/i),Ue=B(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nt=B(/^html$/i),He=function(){return typeof window=="undefined"?null:window},at=function(s,f){if(d(s)!=="object"||typeof s.createPolicy!="function")return null;var r=null,t="data-tt-policy-suffix";f.currentScript&&f.currentScript.hasAttribute(t)&&(r=f.currentScript.getAttribute(t));var a="dompurify"+(r?"#"+r:"");try{return s.createPolicy(a,{createHTML:function(v){return v},createScriptURL:function(v){return v}})}catch(l){return console.warn("TrustedTypes policy "+a+" could not be created."),null}};function Ge(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:He(),s=function(e){return Ge(e)};if(s.version="2.4.4",s.removed=[],!i||!i.document||i.document.nodeType!==9)return s.isSupported=!1,s;var f=i.document,r=i.document,t=i.DocumentFragment,a=i.HTMLTemplateElement,l=i.Node,v=i.Element,E=i.NodeFilter,L=i.NamedNodeMap,J=L===void 0?i.NamedNodeMap||i.MozNamedAttrMap:L,ge=i.HTMLFormElement,ye=i.DOMParser,Be=i.trustedTypes,We=v.prototype,er=re(We,"cloneNode"),tr=re(We,"nextSibling"),rr=re(We,"childNodes"),it=re(We,"parentNode");if(typeof a=="function"){var ot=r.createElement("template");ot.content&&ot.content.ownerDocument&&(r=ot.content.ownerDocument)}var Y=at(Be,f),st=Y?Y.createHTML(""):"",je=r,lt=je.implementation,nr=je.createNodeIterator,ar=je.createDocumentFragment,ir=je.getElementsByTagName,or=f.importNode,Dt={};try{Dt=j(r).documentMode?r.documentMode:{}}catch(u){}var V={};s.isSupported=typeof it=="function"&&lt&&typeof lt.createHTMLDocument!="undefined"&&Dt!==9;var ut=et,ft=le,ct=tt,sr=he,lr=Pe,ur=rt,wt=Ue,mt=Fe,D=null,Nt=c({},[].concat(y(ze),y(Le),y(q),y(ie),y(ve))),w=null,Ct=c({},[].concat(y(K),y(oe),y(ke),y(se))),R=Object.seal(Object.create(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}})),Me=null,pt=null,It=!0,dt=!0,xt=!1,zt=!0,Te=!1,ue=!1,vt=!1,ht=!1,Ee=!1,$e=!1,Ye=!1,kt=!0,Pt=!1,fr="user-content-",gt=!0,De=!1,_e={},Ae=null,Ft=c({},["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"]),Ut=null,Ht=c({},["audio","video","img","source","image","track"]),yt=null,Gt=c({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ve="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",Q="http://www.w3.org/1999/xhtml",Se=Q,Tt=!1,Et=null,cr=c({},[Ve,Xe,Q],ae),fe,mr=["application/xhtml+xml","text/html"],pr="text/html",N,be=null,dr=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},_t=function(e){be&&be===e||((!e||d(e)!=="object")&&(e={}),e=j(e),fe=mr.indexOf(e.PARSER_MEDIA_TYPE)===-1?fe=pr:fe=e.PARSER_MEDIA_TYPE,N=fe==="application/xhtml+xml"?ae:X,D="ALLOWED_TAGS"in e?c({},e.ALLOWED_TAGS,N):Nt,w="ALLOWED_ATTR"in e?c({},e.ALLOWED_ATTR,N):Ct,Et="ALLOWED_NAMESPACES"in e?c({},e.ALLOWED_NAMESPACES,ae):cr,yt="ADD_URI_SAFE_ATTR"in e?c(j(Gt),e.ADD_URI_SAFE_ATTR,N):Gt,Ut="ADD_DATA_URI_TAGS"in e?c(j(Ht),e.ADD_DATA_URI_TAGS,N):Ht,Ae="FORBID_CONTENTS"in e?c({},e.FORBID_CONTENTS,N):Ft,Me="FORBID_TAGS"in e?c({},e.FORBID_TAGS,N):{},pt="FORBID_ATTR"in e?c({},e.FORBID_ATTR,N):{},_e="USE_PROFILES"in e?e.USE_PROFILES:!1,It=e.ALLOW_ARIA_ATTR!==!1,dt=e.ALLOW_DATA_ATTR!==!1,xt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,zt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=e.SAFE_FOR_TEMPLATES||!1,ue=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,$e=e.RETURN_DOM_FRAGMENT||!1,Ye=e.RETURN_TRUSTED_TYPE||!1,ht=e.FORCE_BODY||!1,kt=e.SANITIZE_DOM!==!1,Pt=e.SANITIZE_NAMED_PROPS||!1,gt=e.KEEP_CONTENT!==!1,De=e.IN_PLACE||!1,mt=e.ALLOWED_URI_REGEXP||mt,Se=e.NAMESPACE||Q,e.CUSTOM_ELEMENT_HANDLING&&Bt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(R.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Bt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(R.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(R.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(dt=!1),$e&&(Ee=!0),_e&&(D=c({},y(ve)),w=[],_e.html===!0&&(c(D,ze),c(w,K)),_e.svg===!0&&(c(D,Le),c(w,oe),c(w,se)),_e.svgFilters===!0&&(c(D,q),c(w,oe),c(w,se)),_e.mathMl===!0&&(c(D,ie),c(w,ke),c(w,se))),e.ADD_TAGS&&(D===Nt&&(D=j(D)),c(D,e.ADD_TAGS,N)),e.ADD_ATTR&&(w===Ct&&(w=j(w)),c(w,e.ADD_ATTR,N)),e.ADD_URI_SAFE_ATTR&&c(yt,e.ADD_URI_SAFE_ATTR,N),e.FORBID_CONTENTS&&(Ae===Ft&&(Ae=j(Ae)),c(Ae,e.FORBID_CONTENTS,N)),gt&&(D["#text"]=!0),ue&&c(D,["html","head","body"]),D.table&&(c(D,["tbody"]),delete Me.tbody),b&&b(e),be=e)},Wt=c({},["mi","mo","mn","ms","mtext"]),jt=c({},["foreignobject","desc","title","annotation-xml"]),vr=c({},["title","style","font","a","script"]),qe=c({},Le);c(qe,q),c(qe,de);var At=c({},ie);c(At,Qe);var hr=function(e){var n=it(e);(!n||!n.tagName)&&(n={namespaceURI:Se,tagName:"template"});var o=X(e.tagName),p=X(n.tagName);return Et[e.namespaceURI]?e.namespaceURI===Xe?n.namespaceURI===Q?o==="svg":n.namespaceURI===Ve?o==="svg"&&(p==="annotation-xml"||Wt[p]):Boolean(qe[o]):e.namespaceURI===Ve?n.namespaceURI===Q?o==="math":n.namespaceURI===Xe?o==="math"&&jt[p]:Boolean(At[o]):e.namespaceURI===Q?n.namespaceURI===Xe&&!jt[p]||n.namespaceURI===Ve&&!Wt[p]?!1:!At[o]&&(vr[o]||!qe[o]):!!(fe==="application/xhtml+xml"&&Et[e.namespaceURI]):!1},ee=function(e){T(s.removed,{element:e});try{e.parentNode.removeChild(e)}catch(n){try{e.outerHTML=st}catch(o){e.remove()}}},St=function(e,n){try{T(s.removed,{attribute:n.getAttributeNode(e),from:n})}catch(o){T(s.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e==="is"&&!w[e])if(Ee||$e)try{ee(n)}catch(o){}else try{n.setAttribute(e,"")}catch(o){}},$t=function(e){var n,o;if(ht)e="<remove></remove>"+e;else{var p=Oe(e,/^[\r\n\t ]+/);o=p&&p[0]}fe==="application/xhtml+xml"&&Se===Q&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var P=Y?Y.createHTML(e):e;if(Se===Q)try{n=new ye().parseFromString(P,fe)}catch(I){}if(!n||!n.documentElement){n=lt.createDocument(Se,"template",null);try{n.documentElement.innerHTML=Tt?st:P}catch(I){}}var x=n.body||n.documentElement;return e&&o&&x.insertBefore(r.createTextNode(o),x.childNodes[0]||null),Se===Q?ir.call(n,ue?"html":"body")[0]:ue?n.documentElement:x},Yt=function(e){return nr.call(e.ownerDocument||e,e,E.SHOW_ELEMENT|E.SHOW_COMMENT|E.SHOW_TEXT,null,!1)},gr=function(e){return e instanceof ge&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof J)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},we=function(e){return d(l)==="object"?e instanceof l:e&&d(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},te=function(e,n,o){!V[e]||m(V[e],function(p){p.call(s,n,o,be)})},Vt=function(e){var n;if(te("beforeSanitizeElements",e,null),gr(e)||S(/[\u0080-\uFFFF]/,e.nodeName))return ee(e),!0;var o=N(e.nodeName);if(te("uponSanitizeElement",e,{tagName:o,allowedTags:D}),e.hasChildNodes()&&!we(e.firstElementChild)&&(!we(e.content)||!we(e.content.firstElementChild))&&S(/<[/\w]/g,e.innerHTML)&&S(/<[/\w]/g,e.textContent)||o==="select"&&S(/<template/i,e.innerHTML))return ee(e),!0;if(!D[o]||Me[o]){if(!Me[o]&&qt(o)&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,o)||R.tagNameCheck instanceof Function&&R.tagNameCheck(o)))return!1;if(gt&&!Ae[o]){var p=it(e)||e.parentNode,P=rr(e)||e.childNodes;if(P&&p)for(var x=P.length,I=x-1;I>=0;--I)p.insertBefore(er(P[I],!0),tr(e))}return ee(e),!0}return e instanceof v&&!hr(e)||(o==="noscript"||o==="noembed")&&S(/<\/no(script|embed)/i,e.innerHTML)?(ee(e),!0):(Te&&e.nodeType===3&&(n=e.textContent,n=z(n,ut," "),n=z(n,ft," "),n=z(n,ct," "),e.textContent!==n&&(T(s.removed,{element:e.cloneNode()}),e.textContent=n)),te("afterSanitizeElements",e,null),!1)},Xt=function(e,n,o){if(kt&&(n==="id"||n==="name")&&(o in r||o in dr))return!1;if(!(dt&&!pt[n]&&S(sr,n))){if(!(It&&S(lr,n))){if(!w[n]||pt[n]){if(!(qt(e)&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,e)||R.tagNameCheck instanceof Function&&R.tagNameCheck(e))&&(R.attributeNameCheck instanceof RegExp&&S(R.attributeNameCheck,n)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(n))||n==="is"&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&S(R.tagNameCheck,o)||R.tagNameCheck instanceof Function&&R.tagNameCheck(o))))return!1}else if(!yt[n]){if(!S(mt,z(o,wt,""))){if(!((n==="src"||n==="xlink:href"||n==="href")&&e!=="script"&&O(o,"data:")===0&&Ut[e])){if(!(xt&&!S(ur,z(o,wt,"")))){if(o)return!1}}}}}}return!0},qt=function(e){return e.indexOf("-")>0},Kt=function(e){var n,o,p,P;te("beforeSanitizeAttributes",e,null);var x=e.attributes;if(!!x){var I={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w};for(P=x.length;P--;){n=x[P];var Ke=n,C=Ke.name,bt=Ke.namespaceURI;if(o=C==="value"?n.value:Je(n.value),p=N(C),I.attrName=p,I.attrValue=o,I.keepAttr=!0,I.forceKeepAttr=void 0,te("uponSanitizeAttribute",e,I),o=I.attrValue,!I.forceKeepAttr&&(St(C,e),!!I.keepAttr)){if(!zt&&S(/\/>/i,o)){St(C,e);continue}Te&&(o=z(o,ut," "),o=z(o,ft," "),o=z(o,ct," "));var Zt=N(e.nodeName);if(!!Xt(Zt,p,o)){if(Pt&&(p==="id"||p==="name")&&(St(C,e),o=fr+o),Y&&d(Be)==="object"&&typeof Be.getAttributeType=="function"&&!bt)switch(Be.getAttributeType(Zt,p)){case"TrustedHTML":o=Y.createHTML(o);break;case"TrustedScriptURL":o=Y.createScriptURL(o);break}try{bt?e.setAttributeNS(bt,C,o):e.setAttribute(C,o),g(s.removed)}catch(Sr){}}}}te("afterSanitizeAttributes",e,null)}},yr=function u(e){var n,o=Yt(e);for(te("beforeSanitizeShadowDOM",e,null);n=o.nextNode();)te("uponSanitizeShadowNode",n,null),!Vt(n)&&(n.content instanceof t&&u(n.content),Kt(n));te("afterSanitizeShadowDOM",e,null)};return s.sanitize=function(u){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,o,p,P,x;if(Tt=!u,Tt&&(u="<!-->"),typeof u!="string"&&!we(u)){if(typeof u.toString!="function")throw pe("toString is not a function");if(u=u.toString(),typeof u!="string")throw pe("dirty is not a string, aborting")}if(!s.isSupported){if(d(i.toStaticHTML)==="object"||typeof i.toStaticHTML=="function"){if(typeof u=="string")return i.toStaticHTML(u);if(we(u))return i.toStaticHTML(u.outerHTML)}return u}if(vt||_t(e),s.removed=[],typeof u=="string"&&(De=!1),De){if(u.nodeName){var I=N(u.nodeName);if(!D[I]||Me[I])throw pe("root node is forbidden and cannot be sanitized in-place")}}else if(u instanceof l)n=$t("<!---->"),o=n.ownerDocument.importNode(u,!0),o.nodeType===1&&o.nodeName==="BODY"||o.nodeName==="HTML"?n=o:n.appendChild(o);else{if(!Ee&&!Te&&!ue&&u.indexOf("<")===-1)return Y&&Ye?Y.createHTML(u):u;if(n=$t(u),!n)return Ee?null:Ye?st:""}n&&ht&&ee(n.firstChild);for(var Ke=Yt(De?u:n);p=Ke.nextNode();)p.nodeType===3&&p===P||Vt(p)||(p.content instanceof t&&yr(p.content),Kt(p),P=p);if(P=null,De)return u;if(Ee){if($e)for(x=ar.call(n.ownerDocument);n.firstChild;)x.appendChild(n.firstChild);else x=n;return(w.shadowroot||w.shadowrootmod)&&(x=or.call(f,x,!0)),x}var C=ue?n.outerHTML:n.innerHTML;return ue&&D["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&S(nt,n.ownerDocument.doctype.name)&&(C="<!DOCTYPE "+n.ownerDocument.doctype.name+`>
`+C),Te&&(C=z(C,ut," "),C=z(C,ft," "),C=z(C,ct," ")),Y&&Ye?Y.createHTML(C):C},s.setConfig=function(u){_t(u),vt=!0},s.clearConfig=function(){be=null,vt=!1},s.isValidAttribute=function(u,e,n){be||_t({});var o=N(u),p=N(e);return Xt(o,p,n)},s.addHook=function(u,e){typeof e=="function"&&(V[u]=V[u]||[],T(V[u],e))},s.removeHook=function(u){if(V[u])return g(V[u])},s.removeHooks=function(u){V[u]&&(V[u]=[])},s.removeAllHooks=function(){V={}},s}var Z=Ge();return Z})});var Ar=Jt((Lt,Mt)=>{(function(d,_){typeof Lt=="object"&&typeof Mt!="undefined"?Mt.exports=_():typeof define=="function"&&define.amd?define(_):(d=typeof globalThis!="undefined"?globalThis:d||self,d.Split=_())})(Lt,function(){"use strict";var d=typeof window!="undefined"?window:null,_=d===null,F=_?void 0:d.document,A="addEventListener",y="removeEventListener",W="getBoundingClientRect",ne="_a",U="_b",H="_c",ce="horizontal",G=function(){return!1},Ne=_?"calc":["","-webkit-","-moz-","-o-"].filter(function(h){var m=F.createElement("div");return m.style.cssText="width:"+h+"calc(9px)",!!m.style.length}).shift()+"calc",Ce=function(h){return typeof h=="string"||h instanceof String},Ie=function(h){if(Ce(h)){var m=F.querySelector(h);if(!m)throw new Error("Selector "+h+" did not match a DOM element");return m}return h},M=function(h,m,g){var T=h[m];return T!==void 0?T:g},b=function(h,m,g,T){if(m){if(T==="end")return 0;if(T==="center")return h/2}else if(g){if(T==="start")return 0;if(T==="center")return h/2}return h},B=function(h,m){var g=F.createElement("div");return g.className="gutter gutter-"+m,g},Ze=function(h,m,g){var T={};return Ce(m)?T[h]=m:T[h]=Ne+"("+m+"% - "+g+"px)",T},xe=function(h,m){var g;return g={},g[h]=m+"px",g},me=function(h,m){if(m===void 0&&(m={}),_)return{};var g=h,T,X,ae,Oe,z,O;Array.from&&(g=Array.from(g));var Je=Ie(g[0]),S=Je.parentNode,pe=getComputedStyle?getComputedStyle(S):null,k=pe?pe.flexDirection:null,Re=M(m,"sizes")||g.map(function(){return 100/g.length}),c=M(m,"minSize",100),j=Array.isArray(c)?c:g.map(function(){return c}),re=M(m,"maxSize",1/0),ze=Array.isArray(re)?re:g.map(function(){return re}),Le=M(m,"expandToMin",!1),q=M(m,"gutterSize",10),de=M(m,"gutterAlign","center"),ie=M(m,"snapOffset",30),Qe=Array.isArray(ie)?ie:g.map(function(){return ie}),ve=M(m,"dragInterval",1),K=M(m,"direction",ce),oe=M(m,"cursor",K===ce?"col-resize":"row-resize"),ke=M(m,"gutter",B),se=M(m,"elementStyle",Ze),et=M(m,"gutterStyle",xe);K===ce?(T="width",X="clientX",ae="left",Oe="right",z="clientWidth"):K==="vertical"&&(T="height",X="clientY",ae="top",Oe="bottom",z="clientHeight");function le(r,t,a,l){var v=se(T,t,a,l);Object.keys(v).forEach(function(E){r.style[E]=v[E]})}function tt(r,t,a){var l=et(T,t,a);Object.keys(l).forEach(function(v){r.style[v]=l[v]})}function he(){return O.map(function(r){return r.size})}function Pe(r){return"touches"in r?r.touches[0][X]:r[X]}function Fe(r){var t=O[this.a],a=O[this.b],l=t.size+a.size;t.size=r/this.size*l,a.size=l-r/this.size*l,le(t.element,t.size,this[U],t.i),le(a.element,a.size,this[H],a.i)}function rt(r){var t,a=O[this.a],l=O[this.b];!this.dragging||(t=Pe(r)-this.start+(this[U]-this.dragOffset),ve>1&&(t=Math.round(t/ve)*ve),t<=a.minSize+a.snapOffset+this[U]?t=a.minSize+this[U]:t>=this.size-(l.minSize+l.snapOffset+this[H])&&(t=this.size-(l.minSize+this[H])),t>=a.maxSize-a.snapOffset+this[U]?t=a.maxSize+this[U]:t<=this.size-(l.maxSize-l.snapOffset+this[H])&&(t=this.size-(l.maxSize+this[H])),Fe.call(this,t),M(m,"onDrag",G)(he()))}function Ue(){var r=O[this.a].element,t=O[this.b].element,a=r[W](),l=t[W]();this.size=a[T]+l[T]+this[U]+this[H],this.start=a[ae],this.end=a[Oe]}function nt(r){if(!getComputedStyle)return null;var t=getComputedStyle(r);if(!t)return null;var a=r[z];return a===0?null:(K===ce?a-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):a-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),a)}function He(r){var t=nt(S);if(t===null||j.reduce(function(E,L){return E+L},0)>t)return r;var a=0,l=[],v=r.map(function(E,L){var J=t*E/100,ge=b(q,L===0,L===r.length-1,de),ye=j[L]+ge;return J<ye?(a+=ye-J,l.push(0),ye):(l.push(J-ye),J)});return a===0?r:v.map(function(E,L){var J=E;if(a>0&&l[L]-a>0){var ge=Math.min(a,l[L]-a);a-=ge,J=E-ge}return J/t*100})}function at(){var r=this,t=O[r.a].element,a=O[r.b].element;r.dragging&&M(m,"onDragEnd",G)(he()),r.dragging=!1,d[y]("mouseup",r.stop),d[y]("touchend",r.stop),d[y]("touchcancel",r.stop),d[y]("mousemove",r.move),d[y]("touchmove",r.move),r.stop=null,r.move=null,t[y]("selectstart",G),t[y]("dragstart",G),a[y]("selectstart",G),a[y]("dragstart",G),t.style.userSelect="",t.style.webkitUserSelect="",t.style.MozUserSelect="",t.style.pointerEvents="",a.style.userSelect="",a.style.webkitUserSelect="",a.style.MozUserSelect="",a.style.pointerEvents="",r.gutter.style.cursor="",r.parent.style.cursor="",F.body.style.cursor=""}function Ge(r){if(!("button"in r&&r.button!==0)){var t=this,a=O[t.a].element,l=O[t.b].element;t.dragging||M(m,"onDragStart",G)(he()),r.preventDefault(),t.dragging=!0,t.move=rt.bind(t),t.stop=at.bind(t),d[A]("mouseup",t.stop),d[A]("touchend",t.stop),d[A]("touchcancel",t.stop),d[A]("mousemove",t.move),d[A]("touchmove",t.move),a[A]("selectstart",G),a[A]("dragstart",G),l[A]("selectstart",G),l[A]("dragstart",G),a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.MozUserSelect="none",a.style.pointerEvents="none",l.style.userSelect="none",l.style.webkitUserSelect="none",l.style.MozUserSelect="none",l.style.pointerEvents="none",t.gutter.style.cursor=oe,t.parent.style.cursor=oe,F.body.style.cursor=oe,Ue.call(t),t.dragOffset=Pe(r)-t.end}}Re=He(Re);var Z=[];O=g.map(function(r,t){var a={element:Ie(r),size:Re[t],minSize:j[t],maxSize:ze[t],snapOffset:Qe[t],i:t},l;if(t>0&&(l={a:t-1,b:t,dragging:!1,direction:K,parent:S},l[U]=b(q,t-1==0,!1,de),l[H]=b(q,!1,t===g.length-1,de),k==="row-reverse"||k==="column-reverse")){var v=l.a;l.a=l.b,l.b=v}if(t>0){var E=ke(t,K,a.element);tt(E,q,t),l[ne]=Ge.bind(l),E[A]("mousedown",l[ne]),E[A]("touchstart",l[ne]),S.insertBefore(E,a.element),l.gutter=E}return le(a.element,a.size,b(q,t===0,t===g.length-1,de),t),t>0&&Z.push(l),a});function i(r){var t=r.i===Z.length,a=t?Z[r.i-1]:Z[r.i];Ue.call(a);var l=t?a.size-r.minSize-a[H]:r.minSize+a[U];Fe.call(a,l)}O.forEach(function(r){var t=r.element[W]()[T];t<r.minSize&&(Le?i(r):r.minSize=t)});function s(r){var t=He(r);t.forEach(function(a,l){if(l>0){var v=Z[l-1],E=O[v.a],L=O[v.b];E.size=t[l-1],L.size=a,le(E.element,E.size,v[U],E.i),le(L.element,L.size,v[H],L.i)}})}function f(r,t){Z.forEach(function(a){if(t!==!0?a.parent.removeChild(a.gutter):(a.gutter[y]("mousedown",a[ne]),a.gutter[y]("touchstart",a[ne])),r!==!0){var l=se(T,a.a.size,a[U]);Object.keys(l).forEach(function(v){O[a.a].element.style[v]="",O[a.b].element.style[v]=""})}})}return{setSizes:s,getSizes:he,collapse:function(t){i(O[t])},destroy:f,parent:S,pairs:Z}};return me})});var Qt=Tr(),Er=class{constructor(_,F){this.boundkeys=[];this.mousetrap=F?new Qt(F):Qt,this.span=$(document.createElement("span")).addClass("btn_toolbar"),_.appendChild(this.span[0]),this.newGroup()}destroy(){if(this.span&&(this.span.remove(),this.span=null),this.mousetrap){for(var _ of this.boundkeys)this.mousetrap.unbind(_);this.mousetrap=null}}newGroup(){return this.grp=$(document.createElement("span")).addClass("btn_group").appendTo(this.span).hide()}add(_,F,A,y){var W=null;return A&&(W=$(document.createElement("button")).addClass("btn"),A.startsWith("glyphicon")&&(A='<span class="glyphicon '+A+'" aria-hidden="true"></span>'),W.html(A),W.prop("title",_?F+" ("+_+")":F),W.click(y),this.grp.append(W).show()),_&&(this.mousetrap.bind(_,y),this.boundkeys.push(_)),W}};export{Er as a,_r as b,Ar as c};
/*! @license DOMPurify 2.4.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.4/LICENSE */
/*! Split.js - v1.6.5 */
//# sourceMappingURL=chunk-UC2UKQOH.js.map