(()=>{var Rd=Object.create;var $e=Object.defineProperty,Ud=Object.defineProperties,Wd=Object.getOwnPropertyDescriptor,Gd=Object.getOwnPropertyDescriptors,md=Object.getOwnPropertyNames,Gn=Object.getOwnPropertySymbols,sd=Object.getPrototypeOf,sn=Object.prototype.hasOwnProperty,Fd=Object.prototype.propertyIsEnumerable;var mn=(e,t,l)=>t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,Fn=(e,t)=>{for(var l in t||(t={}))sn.call(t,l)&&mn(e,l,t[l]);if(Gn)for(var l of Gn(t))Fd.call(t,l)&&mn(e,l,t[l]);return e},Tn=(e,t)=>Ud(e,Gd(t));var Y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Td=(e,t,l,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of md(t))!sn.call(e,i)&&i!==l&&$e(e,i,{get:()=>t[i],enumerable:!(n=Wd(t,i))||n.enumerable});return e};var Qt=(e,t,l)=>(l=e!=null?Rd(sd(e)):{},Td(t||!e||!e.__esModule?$e(l,"default",{value:e,enumerable:!0}):l,e));var pn=Y((el,ll)=>{(function(e,t){typeof el=="object"&&typeof ll!="undefined"?ll.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.DOMPurify=t())})(el,function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:l,getPrototypeOf:n,getOwnPropertyDescriptor:i}=Object,{freeze:d,seal:a,create:c}=Object,{apply:V,construct:b}=typeof Reflect!="undefined"&&Reflect;d||(d=function(T){return T}),a||(a=function(T){return T}),V||(V=function(T,J,X){return T.apply(J,X)}),b||(b=function(T,J){return new T(...J)});let Z=x(Array.prototype.forEach),m=x(Array.prototype.pop),s=x(Array.prototype.push),N=x(String.prototype.toLowerCase),w=x(String.prototype.toString),D=x(String.prototype.match),H=x(String.prototype.replace),bt=x(String.prototype.indexOf),Ft=x(String.prototype.trim),S=x(Object.prototype.hasOwnProperty),O=x(RegExp.prototype.test),y=tt(TypeError);function x(B){return function(T){for(var J=arguments.length,X=new Array(J>1?J-1:0),K=1;K<J;K++)X[K-1]=arguments[K];return V(B,T,X)}}function tt(B){return function(){for(var T=arguments.length,J=new Array(T),X=0;X<T;X++)J[X]=arguments[X];return b(B,J)}}function g(B,T){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:N;t&&t(B,null);let X=T.length;for(;X--;){let K=T[X];if(typeof K=="string"){let Rt=J(K);Rt!==K&&(l(T)||(T[X]=Rt),K=Rt)}B[K]=!0}return B}function Ct(B){for(let T=0;T<B.length;T++)S(B,T)||(B[T]=null);return B}function rt(B){let T=c(null);for(let[J,X]of e(B))S(B,J)&&(Array.isArray(X)?T[J]=Ct(X):X&&typeof X=="object"&&X.constructor===Object?T[J]=rt(X):T[J]=X);return T}function It(B,T){for(;B!==null;){let X=i(B,T);if(X){if(X.get)return x(X.get);if(typeof X.value=="function")return x(X.value)}B=n(B)}function J(){return null}return J}let Ue=d(["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"]),Nt=d(["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"]),Xt=d(["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"]),Lt=d(["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"]),Pt=d(["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"]),R=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),r=d(["#text"]),W=d(["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","wrap","xmlns","slot"]),I=d(["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"]),u=d(["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"]),Q=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),L=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),P=a(/<%[\w\W]*|[\w\W]*%>/gm),nt=a(/\${[\w\W]*}/gm),_=a(/^data-[\-\w.\u00B7-\uFFFF]/),_t=a(/^aria-[\-\w]+$/),Tt=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Zt=a(/^(?:\w+script|data):/i),Oi=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Sl=a(/^html$/i),Ai=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var wl=Object.freeze({__proto__:null,MUSTACHE_EXPR:L,ERB_EXPR:P,TMPLIT_EXPR:nt,DATA_ATTR:_,ARIA_ATTR:_t,IS_ALLOWED_URI:Tt,IS_SCRIPT_OR_DATA:Zt,ATTR_WHITESPACE:Oi,DOCTYPE_NAME:Sl,CUSTOM_ELEMENT:Ai});let Hi=function(){return typeof window=="undefined"?null:window},zi=function(T,J){if(typeof T!="object"||typeof T.createPolicy!="function")return null;let X=null,K="data-tt-policy-suffix";J&&J.hasAttribute(K)&&(X=J.getAttribute(K));let Rt="dompurify"+(X?"#"+X:"");try{return T.createPolicy(Rt,{createHTML(kt){return kt},createScriptURL(kt){return kt}})}catch(kt){return console.warn("TrustedTypes policy "+Rt+" could not be created."),null}};function Ol(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hi(),T=p=>Ol(p);if(T.version="3.1.0",T.removed=[],!B||!B.document||B.document.nodeType!==9)return T.isSupported=!1,T;let{document:J}=B,X=J,K=X.currentScript,{DocumentFragment:Rt,HTMLTemplateElement:kt,Node:Se,Element:Al,NodeFilter:Kt,NamedNodeMap:yi=B.NamedNodeMap||B.MozNamedAttrMap,HTMLFormElement:fi,DOMParser:ji,trustedTypes:We}=B,Ge=Al.prototype,vi=It(Ge,"cloneNode"),Li=It(Ge,"nextSibling"),Pi=It(Ge,"childNodes"),we=It(Ge,"parentNode");if(typeof kt=="function"){let p=J.createElement("template");p.content&&p.content.ownerDocument&&(J=p.content.ownerDocument)}let et,qt="",{implementation:Oe,createNodeIterator:_i,createDocumentFragment:Ki,getElementsByTagName:qi}=J,{importNode:$i}=X,Vt={};T.isSupported=typeof e=="function"&&typeof we=="function"&&Oe&&Oe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ae,ERB_EXPR:He,TMPLIT_EXPR:ze,DATA_ATTR:td,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:ld,ATTR_WHITESPACE:Hl,CUSTOM_ELEMENT:nd}=wl,{IS_ALLOWED_URI:zl}=wl,f=null,Dl=g({},[...Ue,...Nt,...Xt,...Pt,...r]),j=null,yl=g({},[...W,...I,...u,...Q]),A=Object.seal(c(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}})),$t=null,De=null,fl=!0,ye=!0,jl=!1,vl=!0,St=!1,Ll=!0,Bt=!1,fe=!1,je=!1,wt=!1,me=!1,se=!1,Pl=!0,_l=!1,id="user-content-",ve=!0,te=!1,Ot={},At=null,Kl=g({},["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"]),ql=null,$l=g({},["audio","video","img","source","image","track"]),Le=null,tn=g({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Fe="http://www.w3.org/1998/Math/MathML",Te="http://www.w3.org/2000/svg",Ut="http://www.w3.org/1999/xhtml",Ht=Ut,Pe=!1,_e=null,dd=g({},[Fe,Te,Ut],w),ee=null,od=["application/xhtml+xml","text/html"],ad="text/html",v=null,zt=null,cd=J.createElement("form"),en=function(o){return o instanceof RegExp||o instanceof Function},Ke=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zt&&zt===o)){if((!o||typeof o!="object")&&(o={}),o=rt(o),ee=od.indexOf(o.PARSER_MEDIA_TYPE)===-1?ad:o.PARSER_MEDIA_TYPE,v=ee==="application/xhtml+xml"?w:N,f=S(o,"ALLOWED_TAGS")?g({},o.ALLOWED_TAGS,v):Dl,j=S(o,"ALLOWED_ATTR")?g({},o.ALLOWED_ATTR,v):yl,_e=S(o,"ALLOWED_NAMESPACES")?g({},o.ALLOWED_NAMESPACES,w):dd,Le=S(o,"ADD_URI_SAFE_ATTR")?g(rt(tn),o.ADD_URI_SAFE_ATTR,v):tn,ql=S(o,"ADD_DATA_URI_TAGS")?g(rt($l),o.ADD_DATA_URI_TAGS,v):$l,At=S(o,"FORBID_CONTENTS")?g({},o.FORBID_CONTENTS,v):Kl,$t=S(o,"FORBID_TAGS")?g({},o.FORBID_TAGS,v):{},De=S(o,"FORBID_ATTR")?g({},o.FORBID_ATTR,v):{},Ot=S(o,"USE_PROFILES")?o.USE_PROFILES:!1,fl=o.ALLOW_ARIA_ATTR!==!1,ye=o.ALLOW_DATA_ATTR!==!1,jl=o.ALLOW_UNKNOWN_PROTOCOLS||!1,vl=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,St=o.SAFE_FOR_TEMPLATES||!1,Ll=o.SAFE_FOR_XML!==!1,Bt=o.WHOLE_DOCUMENT||!1,wt=o.RETURN_DOM||!1,me=o.RETURN_DOM_FRAGMENT||!1,se=o.RETURN_TRUSTED_TYPE||!1,je=o.FORCE_BODY||!1,Pl=o.SANITIZE_DOM!==!1,_l=o.SANITIZE_NAMED_PROPS||!1,ve=o.KEEP_CONTENT!==!1,te=o.IN_PLACE||!1,zl=o.ALLOWED_URI_REGEXP||Tt,Ht=o.NAMESPACE||Ut,A=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&en(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(A.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&en(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(A.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(ye=!1),me&&(wt=!0),Ot&&(f=g({},r),j=[],Ot.html===!0&&(g(f,Ue),g(j,W)),Ot.svg===!0&&(g(f,Nt),g(j,I),g(j,Q)),Ot.svgFilters===!0&&(g(f,Xt),g(j,I),g(j,Q)),Ot.mathMl===!0&&(g(f,Pt),g(j,u),g(j,Q))),o.ADD_TAGS&&(f===Dl&&(f=rt(f)),g(f,o.ADD_TAGS,v)),o.ADD_ATTR&&(j===yl&&(j=rt(j)),g(j,o.ADD_ATTR,v)),o.ADD_URI_SAFE_ATTR&&g(Le,o.ADD_URI_SAFE_ATTR,v),o.FORBID_CONTENTS&&(At===Kl&&(At=rt(At)),g(At,o.FORBID_CONTENTS,v)),ve&&(f["#text"]=!0),Bt&&g(f,["html","head","body"]),f.table&&(g(f,["tbody"]),delete $t.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=o.TRUSTED_TYPES_POLICY,qt=et.createHTML("")}else et===void 0&&(et=zi(We,K)),et!==null&&typeof qt=="string"&&(qt=et.createHTML(""));d&&d(o),zt=o}},ln=g({},["mi","mo","mn","ms","mtext"]),nn=g({},["foreignobject","desc","title","annotation-xml"]),Vd=g({},["title","style","font","a","script"]),dn=g({},[...Nt,...Xt,...Lt]),on=g({},[...Pt,...R]),bd=function(o){let U=we(o);(!U||!U.tagName)&&(U={namespaceURI:Ht,tagName:"template"});let F=N(o.tagName),E=N(U.tagName);return _e[o.namespaceURI]?o.namespaceURI===Te?U.namespaceURI===Ut?F==="svg":U.namespaceURI===Fe?F==="svg"&&(E==="annotation-xml"||ln[E]):!!dn[F]:o.namespaceURI===Fe?U.namespaceURI===Ut?F==="math":U.namespaceURI===Te?F==="math"&&nn[E]:!!on[F]:o.namespaceURI===Ut?U.namespaceURI===Te&&!nn[E]||U.namespaceURI===Fe&&!ln[E]?!1:!on[F]&&(Vd[F]||!dn[F]):!!(ee==="application/xhtml+xml"&&_e[o.namespaceURI]):!1},Wt=function(o){s(T.removed,{element:o});try{o.parentNode.removeChild(o)}catch(U){o.remove()}},qe=function(o,U){try{s(T.removed,{attribute:U.getAttributeNode(o),from:U})}catch(F){s(T.removed,{attribute:null,from:U})}if(U.removeAttribute(o),o==="is"&&!j[o])if(wt||me)try{Wt(U)}catch(F){}else try{U.setAttribute(o,"")}catch(F){}},an=function(o){let U=null,F=null;if(je)o="<remove></remove>"+o;else{let $=D(o,/^[\r\n\t ]+/);F=$&&$[0]}ee==="application/xhtml+xml"&&Ht===Ut&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");let E=et?et.createHTML(o):o;if(Ht===Ut)try{U=new ji().parseFromString(E,ee)}catch($){}if(!U||!U.documentElement){U=Oe.createDocument(Ht,"template",null);try{U.documentElement.innerHTML=Pe?qt:E}catch($){}}let q=U.body||U.documentElement;return o&&F&&q.insertBefore(J.createTextNode(F),q.childNodes[0]||null),Ht===Ut?qi.call(U,Bt?"html":"body")[0]:Bt?U.documentElement:q},cn=function(o){return _i.call(o.ownerDocument||o,o,Kt.SHOW_ELEMENT|Kt.SHOW_COMMENT|Kt.SHOW_TEXT|Kt.SHOW_PROCESSING_INSTRUCTION|Kt.SHOW_CDATA_SECTION,null)},rd=function(o){return o instanceof fi&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof yi)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},Vn=function(o){return typeof Se=="function"&&o instanceof Se},Gt=function(o,U,F){Vt[o]&&Z(Vt[o],E=>{E.call(T,U,F,zt)})},bn=function(o){let U=null;if(Gt("beforeSanitizeElements",o,null),rd(o))return Wt(o),!0;let F=v(o.nodeName);if(Gt("uponSanitizeElement",o,{tagName:F,allowedTags:f}),o.hasChildNodes()&&!Vn(o.firstElementChild)&&O(/<[/\w]/g,o.innerHTML)&&O(/<[/\w]/g,o.textContent)||o.nodeType===7||Ll&&o.nodeType===8&&O(/<[/\w]/g,o.data))return Wt(o),!0;if(!f[F]||$t[F]){if(!$t[F]&&Zn(F)&&(A.tagNameCheck instanceof RegExp&&O(A.tagNameCheck,F)||A.tagNameCheck instanceof Function&&A.tagNameCheck(F)))return!1;if(ve&&!At[F]){let E=we(o)||o.parentNode,q=Pi(o)||o.childNodes;if(q&&E){let $=q.length;for(let it=$-1;it>=0;--it)E.insertBefore(vi(q[it],!0),Li(o))}}return Wt(o),!0}return o instanceof Al&&!bd(o)||(F==="noscript"||F==="noembed"||F==="noframes")&&O(/<\/no(script|embed|frames)/i,o.innerHTML)?(Wt(o),!0):(St&&o.nodeType===3&&(U=o.textContent,Z([Ae,He,ze],E=>{U=H(U,E," ")}),o.textContent!==U&&(s(T.removed,{element:o.cloneNode()}),o.textContent=U)),Gt("afterSanitizeElements",o,null),!1)},rn=function(o,U,F){if(Pl&&(U==="id"||U==="name")&&(F in J||F in cd))return!1;if(!(ye&&!De[U]&&O(td,U))){if(!(fl&&O(ed,U))){if(!j[U]||De[U]){if(!(Zn(o)&&(A.tagNameCheck instanceof RegExp&&O(A.tagNameCheck,o)||A.tagNameCheck instanceof Function&&A.tagNameCheck(o))&&(A.attributeNameCheck instanceof RegExp&&O(A.attributeNameCheck,U)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(U))||U==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&O(A.tagNameCheck,F)||A.tagNameCheck instanceof Function&&A.tagNameCheck(F))))return!1}else if(!Le[U]){if(!O(zl,H(F,Hl,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&o!=="script"&&bt(F,"data:")===0&&ql[o])){if(!(jl&&!O(ld,H(F,Hl,"")))){if(F)return!1}}}}}}return!0},Zn=function(o){return o!=="annotation-xml"&&D(o,nd)},Rn=function(o){Gt("beforeSanitizeAttributes",o,null);let{attributes:U}=o;if(!U)return;let F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j},E=U.length;for(;E--;){let q=U[E],{name:$,namespaceURI:it,value:Yt}=q,le=v($),dt=$==="value"?Yt:Ft(Yt);if(F.attrName=le,F.attrValue=dt,F.keepAttr=!0,F.forceKeepAttr=void 0,Gt("uponSanitizeAttribute",o,F),dt=F.attrValue,F.forceKeepAttr||(qe($,o),!F.keepAttr))continue;if(!vl&&O(/\/>/i,dt)){qe($,o);continue}St&&Z([Ae,He,ze],Wn=>{dt=H(dt,Wn," ")});let Un=v(o.nodeName);if(rn(Un,le,dt)){if(_l&&(le==="id"||le==="name")&&(qe($,o),dt=id+dt),et&&typeof We=="object"&&typeof We.getAttributeType=="function"&&!it)switch(We.getAttributeType(Un,le)){case"TrustedHTML":{dt=et.createHTML(dt);break}case"TrustedScriptURL":{dt=et.createScriptURL(dt);break}}try{it?o.setAttributeNS(it,$,dt):o.setAttribute($,dt),m(T.removed)}catch(Wn){}}}Gt("afterSanitizeAttributes",o,null)},Zd=function p(o){let U=null,F=cn(o);for(Gt("beforeSanitizeShadowDOM",o,null);U=F.nextNode();)Gt("uponSanitizeShadowNode",U,null),!bn(U)&&(U.content instanceof Rt&&p(U.content),Rn(U));Gt("afterSanitizeShadowDOM",o,null)};return T.sanitize=function(p){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,F=null,E=null,q=null;if(Pe=!p,Pe&&(p="<!-->"),typeof p!="string"&&!Vn(p))if(typeof p.toString=="function"){if(p=p.toString(),typeof p!="string")throw y("dirty is not a string, aborting")}else throw y("toString is not a function");if(!T.isSupported)return p;if(fe||Ke(o),T.removed=[],typeof p=="string"&&(te=!1),te){if(p.nodeName){let Yt=v(p.nodeName);if(!f[Yt]||$t[Yt])throw y("root node is forbidden and cannot be sanitized in-place")}}else if(p instanceof Se)U=an("<!---->"),F=U.ownerDocument.importNode(p,!0),F.nodeType===1&&F.nodeName==="BODY"||F.nodeName==="HTML"?U=F:U.appendChild(F);else{if(!wt&&!St&&!Bt&&p.indexOf("<")===-1)return et&&se?et.createHTML(p):p;if(U=an(p),!U)return wt?null:se?qt:""}U&&je&&Wt(U.firstChild);let $=cn(te?p:U);for(;E=$.nextNode();)bn(E)||(E.content instanceof Rt&&Zd(E.content),Rn(E));if(te)return p;if(wt){if(me)for(q=Ki.call(U.ownerDocument);U.firstChild;)q.appendChild(U.firstChild);else q=U;return(j.shadowroot||j.shadowrootmode)&&(q=$i.call(X,q,!0)),q}let it=Bt?U.outerHTML:U.innerHTML;return Bt&&f["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&O(Sl,U.ownerDocument.doctype.name)&&(it="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
`+it),St&&Z([Ae,He,ze],Yt=>{it=H(it,Yt," ")}),et&&se?et.createHTML(it):it},T.setConfig=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ke(p),fe=!0},T.clearConfig=function(){zt=null,fe=!1},T.isValidAttribute=function(p,o,U){zt||Ke({});let F=v(p),E=v(o);return rn(F,E,U)},T.addHook=function(p,o){typeof o=="function"&&(Vt[p]=Vt[p]||[],s(Vt[p],o))},T.removeHook=function(p){if(Vt[p])return m(Vt[p])},T.removeHooks=function(p){Vt[p]&&(Vt[p]=[])},T.removeAllHooks=function(){Vt={}},T}var Di=Ol();return Di})});var pe=Y((nl,il)=>{(function(e){"use strict";var t=function(){},l=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(b){return setTimeout(b,16)};function n(){var b=this;b.reads=[],b.writes=[],b.raf=l.bind(e),t("initialized",b)}n.prototype={constructor:n,runTasks:function(b){t("run tasks");for(var Z;Z=b.shift();)Z()},measure:function(b,Z){t("measure");var m=Z?b.bind(Z):b;return this.reads.push(m),i(this),m},mutate:function(b,Z){t("mutate");var m=Z?b.bind(Z):b;return this.writes.push(m),i(this),m},clear:function(b){return t("clear",b),a(this.reads,b)||a(this.writes,b)},extend:function(b){if(t("extend",b),typeof b!="object")throw new Error("expected object");var Z=Object.create(this);return c(Z,b),Z.fastdom=this,Z.initialize&&Z.initialize(),Z},catch:null};function i(b){b.scheduled||(b.scheduled=!0,b.raf(d.bind(null,b)),t("flush scheduled"))}function d(b){t("flush");var Z=b.writes,m=b.reads,s;try{t("flushing reads",m.length),b.runTasks(m),t("flushing writes",Z.length),b.runTasks(Z)}catch(N){s=N}if(b.scheduled=!1,(m.length||Z.length)&&i(b),s)if(t("task errored",s.message),b.catch)b.catch(s);else throw s}function a(b,Z){var m=b.indexOf(Z);return!!~m&&!!b.splice(m,1)}function c(b,Z){for(var m in Z)Z.hasOwnProperty(m)&&(b[m]=Z[m])}var V=e.fastdom=e.fastdom||new n;typeof il=="object"&&(il.exports=V)})(typeof window!="undefined"?window:typeof nl!="undefined"?nl:globalThis)});var hn=Y((Mo,un)=>{un.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var pt=Y(Jt=>{var dl,ud=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Jt.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};Jt.getSymbolTotalCodewords=function(t){return ud[t]};Jt.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};Jt.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');dl=t};Jt.isKanjiModeEnabled=function(){return typeof dl!="undefined"};Jt.toSJIS=function(t){return dl(t)}});var ue=Y(at=>{at.L={bit:1};at.M={bit:0};at.Q={bit:3};at.H={bit:2};function hd(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return at.L;case"m":case"medium":return at.M;case"q":case"quartile":return at.Q;case"h":case"high":return at.H;default:throw new Error("Unknown EC Level: "+e)}}at.isValid=function(t){return t&&typeof t.bit!="undefined"&&t.bit>=0&&t.bit<4};at.from=function(t,l){if(at.isValid(t))return t;try{return hd(t)}catch(n){return l}}});var Nn=Y((Co,In)=>{function gn(){this.buffer=[],this.length=0}gn.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let l=0;l<t;l++)this.putBit((e>>>t-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};In.exports=gn});var Bn=Y((ko,Xn)=>{function ne(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}ne.prototype.set=function(e,t,l,n){let i=e*this.size+t;this.data[i]=l,n&&(this.reservedBit[i]=!0)};ne.prototype.get=function(e,t){return this.data[e*this.size+t]};ne.prototype.xor=function(e,t,l){this.data[e*this.size+t]^=l};ne.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};Xn.exports=ne});var Yn=Y(he=>{var gd=pt().getSymbolSize;he.getRowColCoords=function(t){if(t===1)return[];let l=Math.floor(t/7)+2,n=gd(t),i=n===145?26:Math.ceil((n-13)/(2*l-2))*2,d=[n-7];for(let a=1;a<l-1;a++)d[a]=d[a-1]-i;return d.push(6),d.reverse()};he.getPositions=function(t){let l=[],n=he.getRowColCoords(t),i=n.length;for(let d=0;d<i;d++)for(let a=0;a<i;a++)d===0&&a===0||d===0&&a===i-1||d===i-1&&a===0||l.push([n[d],n[a]]);return l}});var Mn=Y(Jn=>{var Id=pt().getSymbolSize,Qn=7;Jn.getPositions=function(t){let l=Id(t);return[[0,0],[l-Qn,0],[0,l-Qn]]}});var xn=Y(C=>{C.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Mt={N1:3,N2:3,N3:40,N4:10};C.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7};C.from=function(t){return C.isValid(t)?parseInt(t,10):void 0};C.getPenaltyN1=function(t){let l=t.size,n=0,i=0,d=0,a=null,c=null;for(let V=0;V<l;V++){i=d=0,a=c=null;for(let b=0;b<l;b++){let Z=t.get(V,b);Z===a?i++:(i>=5&&(n+=Mt.N1+(i-5)),a=Z,i=1),Z=t.get(b,V),Z===c?d++:(d>=5&&(n+=Mt.N1+(d-5)),c=Z,d=1)}i>=5&&(n+=Mt.N1+(i-5)),d>=5&&(n+=Mt.N1+(d-5))}return n};C.getPenaltyN2=function(t){let l=t.size,n=0;for(let i=0;i<l-1;i++)for(let d=0;d<l-1;d++){let a=t.get(i,d)+t.get(i,d+1)+t.get(i+1,d)+t.get(i+1,d+1);(a===4||a===0)&&n++}return n*Mt.N2};C.getPenaltyN3=function(t){let l=t.size,n=0,i=0,d=0;for(let a=0;a<l;a++){i=d=0;for(let c=0;c<l;c++)i=i<<1&2047|t.get(a,c),c>=10&&(i===1488||i===93)&&n++,d=d<<1&2047|t.get(c,a),c>=10&&(d===1488||d===93)&&n++}return n*Mt.N3};C.getPenaltyN4=function(t){let l=0,n=t.data.length;for(let d=0;d<n;d++)l+=t.data[d];return Math.abs(Math.ceil(l*100/n/5)-10)*Mt.N4};function Nd(e,t,l){switch(e){case C.Patterns.PATTERN000:return(t+l)%2===0;case C.Patterns.PATTERN001:return t%2===0;case C.Patterns.PATTERN010:return l%3===0;case C.Patterns.PATTERN011:return(t+l)%3===0;case C.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(l/3))%2===0;case C.Patterns.PATTERN101:return t*l%2+t*l%3===0;case C.Patterns.PATTERN110:return(t*l%2+t*l%3)%2===0;case C.Patterns.PATTERN111:return(t*l%3+(t+l)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}C.applyMask=function(t,l){let n=l.size;for(let i=0;i<n;i++)for(let d=0;d<n;d++)l.isReserved(d,i)||l.xor(d,i,Nd(t,d,i))};C.getBestMask=function(t,l){let n=Object.keys(C.Patterns).length,i=0,d=1/0;for(let a=0;a<n;a++){l(a),C.applyMask(a,t);let c=C.getPenaltyN1(t)+C.getPenaltyN2(t)+C.getPenaltyN3(t)+C.getPenaltyN4(t);C.applyMask(a,t),c<d&&(d=c,i=a)}return i}});var al=Y(ol=>{var ut=ue(),ge=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ie=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ol.getBlocksCount=function(t,l){switch(l){case ut.L:return ge[(t-1)*4+0];case ut.M:return ge[(t-1)*4+1];case ut.Q:return ge[(t-1)*4+2];case ut.H:return ge[(t-1)*4+3];default:return}};ol.getTotalCodewordsCount=function(t,l){switch(l){case ut.L:return Ie[(t-1)*4+0];case ut.M:return Ie[(t-1)*4+1];case ut.Q:return Ie[(t-1)*4+2];case ut.H:return Ie[(t-1)*4+3];default:return}}});var En=Y(Xe=>{var ie=new Uint8Array(512),Ne=new Uint8Array(256);(function(){let t=1;for(let l=0;l<255;l++)ie[l]=t,Ne[t]=l,t<<=1,t&256&&(t^=285);for(let l=255;l<512;l++)ie[l]=ie[l-255]})();Xe.log=function(t){if(t<1)throw new Error("log("+t+")");return Ne[t]};Xe.exp=function(t){return ie[t]};Xe.mul=function(t,l){return t===0||l===0?0:ie[Ne[t]+Ne[l]]}});var Cn=Y(de=>{var cl=En();de.mul=function(t,l){let n=new Uint8Array(t.length+l.length-1);for(let i=0;i<t.length;i++)for(let d=0;d<l.length;d++)n[i+d]^=cl.mul(t[i],l[d]);return n};de.mod=function(t,l){let n=new Uint8Array(t);for(;n.length-l.length>=0;){let i=n[0];for(let a=0;a<l.length;a++)n[a]^=cl.mul(l[a],i);let d=0;for(;d<n.length&&n[d]===0;)d++;n=n.slice(d)}return n};de.generateECPolynomial=function(t){let l=new Uint8Array([1]);for(let n=0;n<t;n++)l=de.mul(l,new Uint8Array([1,cl.exp(n)]));return l}});var wn=Y((Do,Sn)=>{var kn=Cn();function Vl(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}Vl.prototype.initialize=function(t){this.degree=t,this.genPoly=kn.generateECPolynomial(this.degree)};Vl.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");let l=new Uint8Array(t.length+this.degree);l.set(t);let n=kn.mod(l,this.genPoly),i=this.degree-n.length;if(i>0){let d=new Uint8Array(this.degree);return d.set(n,i),d}return n};Sn.exports=Vl});var bl=Y(On=>{On.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}});var rl=Y(mt=>{var An="[0-9]+",Xd="[A-Z $%*+\\-./:]+",oe="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";oe=oe.replace(/u/g,"\\u");var Bd="(?:(?![A-Z0-9 $%*+\\-./:]|"+oe+`)(?:.|[\r
]))+`;mt.KANJI=new RegExp(oe,"g");mt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");mt.BYTE=new RegExp(Bd,"g");mt.NUMERIC=new RegExp(An,"g");mt.ALPHANUMERIC=new RegExp(Xd,"g");var Yd=new RegExp("^"+oe+"$"),Qd=new RegExp("^"+An+"$"),Jd=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");mt.testKanji=function(t){return Yd.test(t)};mt.testNumeric=function(t){return Qd.test(t)};mt.testAlphanumeric=function(t){return Jd.test(t)}});var ht=Y(z=>{var Md=bl(),Zl=rl();z.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};z.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};z.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};z.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};z.MIXED={bit:-1};z.getCharCountIndicator=function(t,l){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!Md.isValid(l))throw new Error("Invalid version: "+l);return l>=1&&l<10?t.ccBits[0]:l<27?t.ccBits[1]:t.ccBits[2]};z.getBestModeForData=function(t){return Zl.testNumeric(t)?z.NUMERIC:Zl.testAlphanumeric(t)?z.ALPHANUMERIC:Zl.testKanji(t)?z.KANJI:z.BYTE};z.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")};z.isValid=function(t){return t&&t.bit&&t.ccBits};function xd(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return z.NUMERIC;case"alphanumeric":return z.ALPHANUMERIC;case"kanji":return z.KANJI;case"byte":return z.BYTE;default:throw new Error("Unknown mode: "+e)}}z.from=function(t,l){if(z.isValid(t))return t;try{return xd(t)}catch(n){return l}}});var fn=Y(xt=>{var Be=pt(),Ed=al(),Hn=ue(),gt=ht(),Rl=bl(),Dn=7973,zn=Be.getBCHDigit(Dn);function Cd(e,t,l){for(let n=1;n<=40;n++)if(t<=xt.getCapacity(n,l,e))return n}function yn(e,t){return gt.getCharCountIndicator(e,t)+4}function kd(e,t){let l=0;return e.forEach(function(n){let i=yn(n.mode,t);l+=i+n.getBitsLength()}),l}function Sd(e,t){for(let l=1;l<=40;l++)if(kd(e,l)<=xt.getCapacity(l,t,gt.MIXED))return l}xt.from=function(t,l){return Rl.isValid(t)?parseInt(t,10):l};xt.getCapacity=function(t,l,n){if(!Rl.isValid(t))throw new Error("Invalid QR Code version");typeof n=="undefined"&&(n=gt.BYTE);let i=Be.getSymbolTotalCodewords(t),d=Ed.getTotalCodewordsCount(t,l),a=(i-d)*8;if(n===gt.MIXED)return a;let c=a-yn(n,t);switch(n){case gt.NUMERIC:return Math.floor(c/10*3);case gt.ALPHANUMERIC:return Math.floor(c/11*2);case gt.KANJI:return Math.floor(c/13);case gt.BYTE:default:return Math.floor(c/8)}};xt.getBestVersionForData=function(t,l){let n,i=Hn.from(l,Hn.M);if(Array.isArray(t)){if(t.length>1)return Sd(t,i);if(t.length===0)return 1;n=t[0]}else n=t;return Cd(n.mode,n.getLength(),i)};xt.getEncodedBits=function(t){if(!Rl.isValid(t)||t<7)throw new Error("Invalid QR Code version");let l=t<<12;for(;Be.getBCHDigit(l)-zn>=0;)l^=Dn<<Be.getBCHDigit(l)-zn;return t<<12|l}});var Pn=Y(Ln=>{var Ul=pt(),vn=1335,wd=21522,jn=Ul.getBCHDigit(vn);Ln.getEncodedBits=function(t,l){let n=t.bit<<3|l,i=n<<10;for(;Ul.getBCHDigit(i)-jn>=0;)i^=vn<<Ul.getBCHDigit(i)-jn;return(n<<10|i)^wd}});var Kn=Y((Po,_n)=>{var Od=ht();function Dt(e){this.mode=Od.NUMERIC,this.data=e.toString()}Dt.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};Dt.prototype.getLength=function(){return this.data.length};Dt.prototype.getBitsLength=function(){return Dt.getBitsLength(this.data.length)};Dt.prototype.write=function(t){let l,n,i;for(l=0;l+3<=this.data.length;l+=3)n=this.data.substr(l,3),i=parseInt(n,10),t.put(i,10);let d=this.data.length-l;d>0&&(n=this.data.substr(l),i=parseInt(n,10),t.put(i,d*3+1))};_n.exports=Dt});var $n=Y((_o,qn)=>{var Ad=ht(),Wl=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function yt(e){this.mode=Ad.ALPHANUMERIC,this.data=e}yt.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};yt.prototype.getLength=function(){return this.data.length};yt.prototype.getBitsLength=function(){return yt.getBitsLength(this.data.length)};yt.prototype.write=function(t){let l;for(l=0;l+2<=this.data.length;l+=2){let n=Wl.indexOf(this.data[l])*45;n+=Wl.indexOf(this.data[l+1]),t.put(n,11)}this.data.length%2&&t.put(Wl.indexOf(this.data[l]),6)};qn.exports=yt});var ei=Y((Ko,ti)=>{"use strict";ti.exports=function(t){for(var l=[],n=t.length,i=0;i<n;i++){var d=t.charCodeAt(i);if(d>=55296&&d<=56319&&n>i+1){var a=t.charCodeAt(i+1);a>=56320&&a<=57343&&(d=(d-55296)*1024+a-56320+65536,i+=1)}if(d<128){l.push(d);continue}if(d<2048){l.push(d>>6|192),l.push(d&63|128);continue}if(d<55296||d>=57344&&d<65536){l.push(d>>12|224),l.push(d>>6&63|128),l.push(d&63|128);continue}if(d>=65536&&d<=1114111){l.push(d>>18|240),l.push(d>>12&63|128),l.push(d>>6&63|128),l.push(d&63|128);continue}l.push(239,191,189)}return new Uint8Array(l).buffer}});var ni=Y((qo,li)=>{var Hd=ei(),zd=ht();function ft(e){this.mode=zd.BYTE,typeof e=="string"&&(e=Hd(e)),this.data=new Uint8Array(e)}ft.getBitsLength=function(t){return t*8};ft.prototype.getLength=function(){return this.data.length};ft.prototype.getBitsLength=function(){return ft.getBitsLength(this.data.length)};ft.prototype.write=function(e){for(let t=0,l=this.data.length;t<l;t++)e.put(this.data[t],8)};li.exports=ft});var di=Y(($o,ii)=>{var Dd=ht(),yd=pt();function jt(e){this.mode=Dd.KANJI,this.data=e}jt.getBitsLength=function(t){return t*13};jt.prototype.getLength=function(){return this.data.length};jt.prototype.getBitsLength=function(){return jt.getBitsLength(this.data.length)};jt.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let l=yd.toSJIS(this.data[t]);if(l>=33088&&l<=40956)l-=33088;else if(l>=57408&&l<=60351)l-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);l=(l>>>8&255)*192+(l&255),e.put(l,13)}};ii.exports=jt});var oi=Y((ta,Gl)=>{"use strict";var ae={single_source_shortest_paths:function(e,t,l){var n={},i={};i[t]=0;var d=ae.PriorityQueue.make();d.push(t,0);for(var a,c,V,b,Z,m,s,N,w;!d.empty();){a=d.pop(),c=a.value,b=a.cost,Z=e[c]||{};for(V in Z)Z.hasOwnProperty(V)&&(m=Z[V],s=b+m,N=i[V],w=typeof i[V]=="undefined",(w||N>s)&&(i[V]=s,d.push(V,s),n[V]=c))}if(typeof l!="undefined"&&typeof i[l]=="undefined"){var D=["Could not find a path from ",t," to ",l,"."].join("");throw new Error(D)}return n},extract_shortest_path_from_predecessor_list:function(e,t){for(var l=[],n=t,i;n;)l.push(n),i=e[n],n=e[n];return l.reverse(),l},find_path:function(e,t,l){var n=ae.single_source_shortest_paths(e,t,l);return ae.extract_shortest_path_from_predecessor_list(n,l)},PriorityQueue:{make:function(e){var t=ae.PriorityQueue,l={},n;e=e||{};for(n in t)t.hasOwnProperty(n)&&(l[n]=t[n]);return l.queue=[],l.sorter=e.sorter||t.default_sorter,l},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var l={value:e,cost:t};this.queue.push(l),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Gl!="undefined"&&(Gl.exports=ae)});var Ui=Y(vt=>{var M=ht(),Vi=Kn(),bi=$n(),ri=ni(),Zi=di(),ce=rl(),Ye=pt(),fd=oi();function ai(e){return unescape(encodeURIComponent(e)).length}function Ve(e,t,l){let n=[],i;for(;(i=e.exec(l))!==null;)n.push({data:i[0],index:i.index,mode:t,length:i[0].length});return n}function Ri(e){let t=Ve(ce.NUMERIC,M.NUMERIC,e),l=Ve(ce.ALPHANUMERIC,M.ALPHANUMERIC,e),n,i;return Ye.isKanjiModeEnabled()?(n=Ve(ce.BYTE,M.BYTE,e),i=Ve(ce.KANJI,M.KANJI,e)):(n=Ve(ce.BYTE_KANJI,M.BYTE,e),i=[]),t.concat(l,n,i).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}function ml(e,t){switch(t){case M.NUMERIC:return Vi.getBitsLength(e);case M.ALPHANUMERIC:return bi.getBitsLength(e);case M.KANJI:return Zi.getBitsLength(e);case M.BYTE:return ri.getBitsLength(e)}}function jd(e){return e.reduce(function(t,l){let n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===l.mode?(t[t.length-1].data+=l.data,t):(t.push(l),t)},[])}function vd(e){let t=[];for(let l=0;l<e.length;l++){let n=e[l];switch(n.mode){case M.NUMERIC:t.push([n,{data:n.data,mode:M.ALPHANUMERIC,length:n.length},{data:n.data,mode:M.BYTE,length:n.length}]);break;case M.ALPHANUMERIC:t.push([n,{data:n.data,mode:M.BYTE,length:n.length}]);break;case M.KANJI:t.push([n,{data:n.data,mode:M.BYTE,length:ai(n.data)}]);break;case M.BYTE:t.push([{data:n.data,mode:M.BYTE,length:ai(n.data)}])}}return t}function Ld(e,t){let l={},n={start:{}},i=["start"];for(let d=0;d<e.length;d++){let a=e[d],c=[];for(let V=0;V<a.length;V++){let b=a[V],Z=""+d+V;c.push(Z),l[Z]={node:b,lastCount:0},n[Z]={};for(let m=0;m<i.length;m++){let s=i[m];l[s]&&l[s].node.mode===b.mode?(n[s][Z]=ml(l[s].lastCount+b.length,b.mode)-ml(l[s].lastCount,b.mode),l[s].lastCount+=b.length):(l[s]&&(l[s].lastCount=b.length),n[s][Z]=ml(b.length,b.mode)+4+M.getCharCountIndicator(b.mode,t))}}i=c}for(let d=0;d<i.length;d++)n[i[d]].end=0;return{map:n,table:l}}function ci(e,t){let l,n=M.getBestModeForData(e);if(l=M.from(t,n),l!==M.BYTE&&l.bit<n.bit)throw new Error('"'+e+'" cannot be encoded with mode '+M.toString(l)+`.
 Suggested mode is: `+M.toString(n));switch(l===M.KANJI&&!Ye.isKanjiModeEnabled()&&(l=M.BYTE),l){case M.NUMERIC:return new Vi(e);case M.ALPHANUMERIC:return new bi(e);case M.KANJI:return new Zi(e);case M.BYTE:return new ri(e)}}vt.fromArray=function(t){return t.reduce(function(l,n){return typeof n=="string"?l.push(ci(n,null)):n.data&&l.push(ci(n.data,n.mode)),l},[])};vt.fromString=function(t,l){let n=Ri(t,Ye.isKanjiModeEnabled()),i=vd(n),d=Ld(i,l),a=fd.find_path(d.map,"start","end"),c=[];for(let V=1;V<a.length-1;V++)c.push(d.table[a[V]].node);return vt.fromArray(jd(c))};vt.rawSplit=function(t){return vt.fromArray(Ri(t,Ye.isKanjiModeEnabled()))}});var Gi=Y(Wi=>{var Je=pt(),sl=ue(),Pd=Nn(),_d=Bn(),Kd=Yn(),qd=Mn(),pl=xn(),ul=al(),$d=wn(),Qe=fn(),to=Pn(),eo=ht(),Fl=Ui();function lo(e,t){let l=e.size,n=qd.getPositions(t);for(let i=0;i<n.length;i++){let d=n[i][0],a=n[i][1];for(let c=-1;c<=7;c++)if(!(d+c<=-1||l<=d+c))for(let V=-1;V<=7;V++)a+V<=-1||l<=a+V||(c>=0&&c<=6&&(V===0||V===6)||V>=0&&V<=6&&(c===0||c===6)||c>=2&&c<=4&&V>=2&&V<=4?e.set(d+c,a+V,!0,!0):e.set(d+c,a+V,!1,!0))}}function no(e){let t=e.size;for(let l=8;l<t-8;l++){let n=l%2===0;e.set(l,6,n,!0),e.set(6,l,n,!0)}}function io(e,t){let l=Kd.getPositions(t);for(let n=0;n<l.length;n++){let i=l[n][0],d=l[n][1];for(let a=-2;a<=2;a++)for(let c=-2;c<=2;c++)a===-2||a===2||c===-2||c===2||a===0&&c===0?e.set(i+a,d+c,!0,!0):e.set(i+a,d+c,!1,!0)}}function oo(e,t){let l=e.size,n=Qe.getEncodedBits(t),i,d,a;for(let c=0;c<18;c++)i=Math.floor(c/3),d=c%3+l-8-3,a=(n>>c&1)===1,e.set(i,d,a,!0),e.set(d,i,a,!0)}function Tl(e,t,l){let n=e.size,i=to.getEncodedBits(t,l),d,a;for(d=0;d<15;d++)a=(i>>d&1)===1,d<6?e.set(d,8,a,!0):d<8?e.set(d+1,8,a,!0):e.set(n-15+d,8,a,!0),d<8?e.set(8,n-d-1,a,!0):d<9?e.set(8,15-d-1+1,a,!0):e.set(8,15-d-1,a,!0);e.set(n-8,8,1,!0)}function ao(e,t){let l=e.size,n=-1,i=l-1,d=7,a=0;for(let c=l-1;c>0;c-=2)for(c===6&&c--;;){for(let V=0;V<2;V++)if(!e.isReserved(i,c-V)){let b=!1;a<t.length&&(b=(t[a]>>>d&1)===1),e.set(i,c-V,b),d--,d===-1&&(a++,d=7)}if(i+=n,i<0||l<=i){i-=n,n=-n;break}}}function co(e,t,l){let n=new Pd;l.forEach(function(V){n.put(V.mode.bit,4),n.put(V.getLength(),eo.getCharCountIndicator(V.mode,e)),V.write(n)});let i=Je.getSymbolTotalCodewords(e),d=ul.getTotalCodewordsCount(e,t),a=(i-d)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let c=(a-n.getLengthInBits())/8;for(let V=0;V<c;V++)n.put(V%2?17:236,8);return Vo(n,e,t)}function Vo(e,t,l){let n=Je.getSymbolTotalCodewords(t),i=ul.getTotalCodewordsCount(t,l),d=n-i,a=ul.getBlocksCount(t,l),c=n%a,V=a-c,b=Math.floor(n/a),Z=Math.floor(d/a),m=Z+1,s=b-Z,N=new $d(s),w=0,D=new Array(a),H=new Array(a),bt=0,Ft=new Uint8Array(e.buffer);for(let tt=0;tt<a;tt++){let g=tt<V?Z:m;D[tt]=Ft.slice(w,w+g),H[tt]=N.encode(D[tt]),w+=g,bt=Math.max(bt,g)}let S=new Uint8Array(n),O=0,y,x;for(y=0;y<bt;y++)for(x=0;x<a;x++)y<D[x].length&&(S[O++]=D[x][y]);for(y=0;y<s;y++)for(x=0;x<a;x++)S[O++]=H[x][y];return S}function bo(e,t,l,n){let i;if(Array.isArray(e))i=Fl.fromArray(e);else if(typeof e=="string"){let b=t;if(!b){let Z=Fl.rawSplit(e);b=Qe.getBestVersionForData(Z,l)}i=Fl.fromString(e,b||40)}else throw new Error("Invalid data");let d=Qe.getBestVersionForData(i,l);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=d;else if(t<d)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+d+`.
`);let a=co(t,l,i),c=Je.getSymbolSize(t),V=new _d(c);return lo(V,t),no(V),io(V,t),Tl(V,l,0),t>=7&&oo(V,t),ao(V,a),isNaN(n)&&(n=pl.getBestMask(V,Tl.bind(null,V,l))),pl.applyMask(n,V),Tl(V,l,n),{modules:V,version:t,errorCorrectionLevel:l,maskPattern:n,segments:i}}Wi.create=function(t,l){if(typeof t=="undefined"||t==="")throw new Error("No input text");let n=sl.M,i,d;return typeof l!="undefined"&&(n=sl.from(l.errorCorrectionLevel,sl.M),i=Qe.from(l.version),d=pl.from(l.maskPattern),l.toSJISFunc&&Je.setToSJISFunction(l.toSJISFunc)),bo(t,i,n,d)}});var hl=Y(Et=>{function mi(e){if(typeof e=="number"&&(e=e.toString()),typeof e!="string")throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||t.length===5||t.length>8)throw new Error("Invalid hex color: "+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(n){return[n,n]}))),t.length===6&&t.push("F","F");let l=parseInt(t.join(""),16);return{r:l>>24&255,g:l>>16&255,b:l>>8&255,a:l&255,hex:"#"+t.slice(0,6).join("")}}Et.getOptions=function(t){t||(t={}),t.color||(t.color={});let l=typeof t.margin=="undefined"||t.margin===null||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,i=t.scale||4;return{width:n,scale:n?4:i,margin:l,color:{dark:mi(t.color.dark||"#000000ff"),light:mi(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}};Et.getScale=function(t,l){return l.width&&l.width>=t+l.margin*2?l.width/(t+l.margin*2):l.scale};Et.getImageWidth=function(t,l){let n=Et.getScale(t,l);return Math.floor((t+l.margin*2)*n)};Et.qrToImageData=function(t,l,n){let i=l.modules.size,d=l.modules.data,a=Et.getScale(i,n),c=Math.floor((i+n.margin*2)*a),V=n.margin*a,b=[n.color.light,n.color.dark];for(let Z=0;Z<c;Z++)for(let m=0;m<c;m++){let s=(Z*c+m)*4,N=n.color.light;if(Z>=V&&m>=V&&Z<c-V&&m<c-V){let w=Math.floor((Z-V)/a),D=Math.floor((m-V)/a);N=b[d[w*i+D]?1:0]}t[s++]=N.r,t[s++]=N.g,t[s++]=N.b,t[s]=N.a}}});var si=Y(Me=>{var gl=hl();function ro(e,t,l){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=l,t.width=l,t.style.height=l+"px",t.style.width=l+"px"}function Zo(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}Me.render=function(t,l,n){let i=n,d=l;typeof i=="undefined"&&(!l||!l.getContext)&&(i=l,l=void 0),l||(d=Zo()),i=gl.getOptions(i);let a=gl.getImageWidth(t.modules.size,i),c=d.getContext("2d"),V=c.createImageData(a,a);return gl.qrToImageData(V.data,t,i),ro(c,d,a),c.putImageData(V,0,0),d};Me.renderToDataURL=function(t,l,n){let i=n;typeof i=="undefined"&&(!l||!l.getContext)&&(i=l,l=void 0),i||(i={});let d=Me.render(t,l,i),a=i.type||"image/png",c=i.rendererOpts||{};return d.toDataURL(a,c.quality)}});var pi=Y(Ti=>{var Ro=hl();function Fi(e,t){let l=e.a/255,n=t+'="'+e.hex+'"';return l<1?n+" "+t+'-opacity="'+l.toFixed(2).slice(1)+'"':n}function Il(e,t,l){let n=e+t;return typeof l!="undefined"&&(n+=" "+l),n}function Uo(e,t,l){let n="",i=0,d=!1,a=0;for(let c=0;c<e.length;c++){let V=Math.floor(c%t),b=Math.floor(c/t);!V&&!d&&(d=!0),e[c]?(a++,c>0&&V>0&&e[c-1]||(n+=d?Il("M",V+l,.5+b+l):Il("m",i,0),i=0,d=!1),V+1<t&&e[c+1]||(n+=Il("h",a),a=0)):i++}return n}Ti.render=function(t,l,n){let i=Ro.getOptions(l),d=t.modules.size,a=t.modules.data,c=d+i.margin*2,V=i.color.light.a?"<path "+Fi(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",b="<path "+Fi(i.color.dark,"stroke")+' d="'+Uo(a,d,i.margin)+'"/>',Z='viewBox="0 0 '+c+" "+c+'"',s='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+Z+' shape-rendering="crispEdges">'+V+b+`</svg>
`;return typeof n=="function"&&n(null,s),s}});var hi=Y(be=>{var Wo=hn(),Nl=Gi(),ui=si(),Go=pi();function Xl(e,t,l,n,i){let d=[].slice.call(arguments,1),a=d.length,c=typeof d[a-1]=="function";if(!c&&!Wo())throw new Error("Callback required as last argument");if(c){if(a<2)throw new Error("Too few arguments provided");a===2?(i=l,l=t,t=n=void 0):a===3&&(t.getContext&&typeof i=="undefined"?(i=n,n=void 0):(i=n,n=l,l=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(l=t,t=n=void 0):a===2&&!t.getContext&&(n=l,l=t,t=void 0),new Promise(function(V,b){try{let Z=Nl.create(l,n);V(e(Z,t,n))}catch(Z){b(Z)}})}try{let V=Nl.create(l,n);i(null,e(V,t,n))}catch(V){i(V)}}be.create=Nl.create;be.toCanvas=Xl.bind(null,ui.render);be.toDataURL=Xl.bind(null,ui.renderToDataURL);be.toString=Xl.bind(null,function(e,t,l){return Go.render(e,l)})});var gi=Y((aa,Yl)=>{var Bl=function(e){"use strict";var t=Object.prototype,l=t.hasOwnProperty,n=Object.defineProperty||function(R,r,W){R[r]=W.value},i,d=typeof Symbol=="function"?Symbol:{},a=d.iterator||"@@iterator",c=d.asyncIterator||"@@asyncIterator",V=d.toStringTag||"@@toStringTag";function b(R,r,W){return Object.defineProperty(R,r,{value:W,enumerable:!0,configurable:!0,writable:!0}),R[r]}try{b({},"")}catch(R){b=function(r,W,I){return r[W]=I}}function Z(R,r,W,I){var u=r&&r.prototype instanceof bt?r:bt,Q=Object.create(u.prototype),L=new Xt(I||[]);return n(Q,"_invoke",{value:rt(R,W,L)}),Q}e.wrap=Z;function m(R,r,W){try{return{type:"normal",arg:R.call(r,W)}}catch(I){return{type:"throw",arg:I}}}var s="suspendedStart",N="suspendedYield",w="executing",D="completed",H={};function bt(){}function Ft(){}function S(){}var O={};b(O,a,function(){return this});var y=Object.getPrototypeOf,x=y&&y(y(Lt([])));x&&x!==t&&l.call(x,a)&&(O=x);var tt=S.prototype=bt.prototype=Object.create(O);Ft.prototype=S,n(tt,"constructor",{value:S,configurable:!0}),n(S,"constructor",{value:Ft,configurable:!0}),Ft.displayName=b(S,V,"GeneratorFunction");function g(R){["next","throw","return"].forEach(function(r){b(R,r,function(W){return this._invoke(r,W)})})}e.isGeneratorFunction=function(R){var r=typeof R=="function"&&R.constructor;return r?r===Ft||(r.displayName||r.name)==="GeneratorFunction":!1},e.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,S):(R.__proto__=S,b(R,V,"GeneratorFunction")),R.prototype=Object.create(tt),R},e.awrap=function(R){return{__await:R}};function Ct(R,r){function W(Q,L,P,nt){var _=m(R[Q],R,L);if(_.type==="throw")nt(_.arg);else{var _t=_.arg,Tt=_t.value;return Tt&&typeof Tt=="object"&&l.call(Tt,"__await")?r.resolve(Tt.__await).then(function(Zt){W("next",Zt,P,nt)},function(Zt){W("throw",Zt,P,nt)}):r.resolve(Tt).then(function(Zt){_t.value=Zt,P(_t)},function(Zt){return W("throw",Zt,P,nt)})}}var I;function u(Q,L){function P(){return new r(function(nt,_){W(Q,L,nt,_)})}return I=I?I.then(P,P):P()}n(this,"_invoke",{value:u})}g(Ct.prototype),b(Ct.prototype,c,function(){return this}),e.AsyncIterator=Ct,e.async=function(R,r,W,I,u){u===void 0&&(u=Promise);var Q=new Ct(Z(R,r,W,I),u);return e.isGeneratorFunction(r)?Q:Q.next().then(function(L){return L.done?L.value:Q.next()})};function rt(R,r,W){var I=s;return function(Q,L){if(I===w)throw new Error("Generator is already running");if(I===D){if(Q==="throw")throw L;return Pt()}for(W.method=Q,W.arg=L;;){var P=W.delegate;if(P){var nt=It(P,W);if(nt){if(nt===H)continue;return nt}}if(W.method==="next")W.sent=W._sent=W.arg;else if(W.method==="throw"){if(I===s)throw I=D,W.arg;W.dispatchException(W.arg)}else W.method==="return"&&W.abrupt("return",W.arg);I=w;var _=m(R,r,W);if(_.type==="normal"){if(I=W.done?D:N,_.arg===H)continue;return{value:_.arg,done:W.done}}else _.type==="throw"&&(I=D,W.method="throw",W.arg=_.arg)}}}function It(R,r){var W=r.method,I=R.iterator[W];if(I===i)return r.delegate=null,W==="throw"&&R.iterator.return&&(r.method="return",r.arg=i,It(R,r),r.method==="throw")||W!=="return"&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+W+"' method")),H;var u=m(I,R.iterator,r.arg);if(u.type==="throw")return r.method="throw",r.arg=u.arg,r.delegate=null,H;var Q=u.arg;if(!Q)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,H;if(Q.done)r[R.resultName]=Q.value,r.next=R.nextLoc,r.method!=="return"&&(r.method="next",r.arg=i);else return Q;return r.delegate=null,H}g(tt),b(tt,V,"Generator"),b(tt,a,function(){return this}),b(tt,"toString",function(){return"[object Generator]"});function Ue(R){var r={tryLoc:R[0]};1 in R&&(r.catchLoc=R[1]),2 in R&&(r.finallyLoc=R[2],r.afterLoc=R[3]),this.tryEntries.push(r)}function Nt(R){var r=R.completion||{};r.type="normal",delete r.arg,R.completion=r}function Xt(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(Ue,this),this.reset(!0)}e.keys=function(R){var r=Object(R),W=[];for(var I in r)W.push(I);return W.reverse(),function u(){for(;W.length;){var Q=W.pop();if(Q in r)return u.value=Q,u.done=!1,u}return u.done=!0,u}};function Lt(R){if(R!=null){var r=R[a];if(r)return r.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var W=-1,I=function u(){for(;++W<R.length;)if(l.call(R,W))return u.value=R[W],u.done=!1,u;return u.value=i,u.done=!0,u};return I.next=I}}throw new TypeError(typeof R+" is not iterable")}e.values=Lt;function Pt(){return{value:i,done:!0}}return Xt.prototype={constructor:Xt,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(Nt),!R)for(var r in this)r.charAt(0)==="t"&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=i)},stop:function(){this.done=!0;var R=this.tryEntries[0],r=R.completion;if(r.type==="throw")throw r.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var r=this;function W(nt,_){return Q.type="throw",Q.arg=R,r.next=nt,_&&(r.method="next",r.arg=i),!!_}for(var I=this.tryEntries.length-1;I>=0;--I){var u=this.tryEntries[I],Q=u.completion;if(u.tryLoc==="root")return W("end");if(u.tryLoc<=this.prev){var L=l.call(u,"catchLoc"),P=l.call(u,"finallyLoc");if(L&&P){if(this.prev<u.catchLoc)return W(u.catchLoc,!0);if(this.prev<u.finallyLoc)return W(u.finallyLoc)}else if(L){if(this.prev<u.catchLoc)return W(u.catchLoc,!0)}else if(P){if(this.prev<u.finallyLoc)return W(u.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(R,r){for(var W=this.tryEntries.length-1;W>=0;--W){var I=this.tryEntries[W];if(I.tryLoc<=this.prev&&l.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var u=I;break}}u&&(R==="break"||R==="continue")&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var Q=u?u.completion:{};return Q.type=R,Q.arg=r,u?(this.method="next",this.next=u.finallyLoc,H):this.complete(Q)},complete:function(R,r){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&r&&(this.next=r),H},finish:function(R){for(var r=this.tryEntries.length-1;r>=0;--r){var W=this.tryEntries[r];if(W.finallyLoc===R)return this.complete(W.completion,W.afterLoc),Nt(W),H}},catch:function(R){for(var r=this.tryEntries.length-1;r>=0;--r){var W=this.tryEntries[r];if(W.tryLoc===R){var I=W.completion;if(I.type==="throw"){var u=I.arg;Nt(W)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(R,r,W){return this.delegate={iterator:Lt(R),resultName:r,nextLoc:W},this.method==="next"&&(this.arg=i),H}},e}(typeof Yl=="object"?Yl.exports:{});try{regeneratorRuntime=Bl}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=Bl:Function("r","regeneratorRuntime = r")(Bl)}});var Ii=Y((ca,xe)=>{(function(){"use strict";var e=function(){function t(){}t.prototype=Object.create(null);function l(Z,m){for(var s=m.length,N=0;N<s;++N)V(Z,m[N])}var n={}.hasOwnProperty;function i(Z,m){Z[m]=!0}function d(Z,m){if(m.toString!==Object.prototype.toString&&!m.toString.toString().includes("[native code]")){Z[m.toString()]=!0;return}for(var s in m)n.call(m,s)&&(Z[s]=!!m[s])}var a=/\s+/;function c(Z,m){for(var s=m.split(a),N=s.length,w=0;w<N;++w)Z[s[w]]=!0}function V(Z,m){if(m){var s=typeof m;s==="string"?c(Z,m):Array.isArray(m)?l(Z,m):s==="object"?d(Z,m):s==="number"&&i(Z,m)}}function b(){for(var Z=arguments.length,m=Array(Z),s=0;s<Z;s++)m[s]=arguments[s];var N=new t;l(N,m);var w=[];for(var D in N)N[D]&&w.push(D);return w.join(" ")}return b}();typeof xe!="undefined"&&xe.exports?(e.default=e,xe.exports=e):window.classNames=e})()});var Xi=Y((Ni,Ee)=>{(function(e){var t={browser:[[/msie ([\.\_\d]+)/,"ie"],[/trident\/.*?rv:([\.\_\d]+)/,"ie"],[/firefox\/([\.\_\d]+)/,"firefox"],[/chrome\/([\.\_\d]+)/,"chrome"],[/version\/([\.\_\d]+).*?safari/,"safari"],[/mobile safari ([\.\_\d]+)/,"safari"],[/android.*?version\/([\.\_\d]+).*?safari/,"com.android.browser"],[/crios\/([\.\_\d]+).*?safari/,"chrome"],[/opera/,"opera"],[/opera\/([\.\_\d]+)/,"opera"],[/opera ([\.\_\d]+)/,"opera"],[/opera mini.*?version\/([\.\_\d]+)/,"opera.mini"],[/opios\/([a-z\.\_\d]+)/,"opera"],[/blackberry/,"blackberry"],[/blackberry.*?version\/([\.\_\d]+)/,"blackberry"],[/bb\d+.*?version\/([\.\_\d]+)/,"blackberry"],[/rim.*?version\/([\.\_\d]+)/,"blackberry"],[/iceweasel\/([\.\_\d]+)/,"iceweasel"],[/edge\/([\.\d]+)/,"edge"]],os:[[/linux ()([a-z\.\_\d]+)/,"linux"],[/mac os x/,"macos"],[/mac os x.*?([\.\_\d]+)/,"macos"],[/os ([\.\_\d]+) like mac os/,"ios"],[/openbsd ()([a-z\.\_\d]+)/,"openbsd"],[/android/,"android"],[/android ([a-z\.\_\d]+);/,"android"],[/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/,"firefoxos"],[/windows\s*(?:nt)?\s*([\.\_\d]+)/,"windows"],[/windows phone.*?([\.\_\d]+)/,"windows.phone"],[/windows mobile/,"windows.mobile"],[/blackberry/,"blackberryos"],[/bb\d+/,"blackberryos"],[/rim.*?os\s*([\.\_\d]+)/,"blackberryos"]],device:[[/ipad/,"ipad"],[/iphone/,"iphone"],[/lumia/,"lumia"],[/htc/,"htc"],[/nexus/,"nexus"],[/galaxy nexus/,"galaxy.nexus"],[/nokia/,"nokia"],[/ gt\-/,"galaxy"],[/ sm\-/,"galaxy"],[/xbox/,"xbox"],[/(?:bb\d+)|(?:blackberry)|(?: rim )/,"blackberry"]]},l="Unknown",n=Object.keys(t);function i(){var c=this;n.forEach(function(V){c[V]={name:l,version:[],versionString:l}})}function d(c,V,b){t[V].forEach(function(Z){var m=Z[0],s=Z[1],N=b.match(m);N&&(c[V].name=s,N[2]?(c[V].versionString=N[2],c[V].version=[]):N[1]?(c[V].versionString=N[1].replace(/_/g,"."),c[V].version=a(N[1])):(c[V].versionString=l,c[V].version=[]))})}function a(c){return c.split(/[\._]/).map(function(V){return parseInt(V)})}i.prototype.sniff=function(c){var V=this,b=typeof window!="undefined",Z=b?navigator.userAgent:"",m=(c||Z).toLowerCase();return n.forEach(function(s){d(V,s,m)}),this},typeof Ee!="undefined"&&Ee.exports?Ee.exports=i:(e.Sniffr=new i,e.Sniffr.sniff(navigator.userAgent))})(Ni)});function ot(e,t=null){let n=pd(t).querySelectorAll(e);return Array.from(n)}function k(e,t=null){let l=ot(e,t);return l.length===0?!1:l[0]}function pd(e){return e||(window.__shadowRoot?window.__shadowRoot.querySelector("article"):document)}var lt={footer:k("#StandardFooter"),topLink:k("[id$='-footerTopLink']"),logo:k("#FooterLogo"),logoLink:k("[id$='-footer_shorthand_link']"),lower:document.createElement("div"),lowerInner:document.createElement("div")};function tl(){lt.footer.classList.add("Prime3"),lt.logo.setAttribute("src",lt.logo.getAttribute("src").replace("black","white")),lt.topLink.classList.add("Prime3"),lt.logoLink.classList.add("Prime3"),lt.lower.id="prime3FooterLower",lt.lower.className="prime3FooterLower",lt.lowerInner.id="prime3FooterLowerInner",lt.lowerInner.className="prime3FooterLowerInner";let t=["<div>Join the world's leading storytelling teams at Shorthand.</div>","<div><a href="+lt.logoLink.getAttribute("href")+"><u>TRY IT FOR <strong>FREE</strong></u></a></div>","<div>No code, no credit card, & no commitment required.</div>"];lt.lowerInner.innerHTML="<div class='Layout prime3-items'>"+t.map(l=>l).join("")+"</div>",lt.footer.after(lt.lower),lt.lower.innerHTML=lt.lowerInner.outerHTML}var Ci=Qt(pn()),ke=Qt(pe()),ki=Qt(hi()),Wa=Qt(gi());var mo=Qt(Ii());var so=Xi(),Bi=["android","ios","firefoxos","windows.phone","windows.mobile","blackberryos"];var Ql=null;function Jl(){if(Ql===null){let e=new so;e.sniff(navigator.userAgent),Ql={isMobile:Bi.includes(e.os.name),isDesktop:!Bi.includes(e.os.name),isTablet:!1,isiPhone:e.device.name==="iphone",isiPad:e.device.name==="ipad",isAndroid:e.os.name==="android",isiOS:e.os.name==="ios",isiOS10:e.os.name==="ios"&&e.os.version[0]===10,isMac:e.os.name==="macos",isWindows:e.os.name==="windows",isIE:e.browser.name==="ie",isEdge:e.browser.name==="edge",isChrome:e.browser.name==="chrome",isSafari:e.browser.name==="safari",isFirefox:e.browser.name==="firefox",isOpera:e.browser.name==="opera",isBot:/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent),isCypress:window.Cypress}}return Ql}var Ml=Qt(pe());function h(e,t){(Array.isArray(e)?e:[e]).forEach(n=>{Ml.default.mutate(()=>{n.setAttribute("style","display: "+t)})})}function st(e){(Array.isArray(e)?e:[e]).forEach(l=>{Ml.default.mutate(()=>{l.parentNode.removeChild(l)})})}var Yi=Qt(pe());function Ce(e,t){let l=e.clientHeight;e.style.transition="all 0.5s ease-in-out",Yi.default.mutate(()=>{t==="out"?(e.style.bottom=`-${l}px`,e.style.opacity="0",e.style.zIndex="-1"):(e.style.zIndex="9999",e.style.bottom="0px",e.style.opacity="1")})}function Cl(){let e=ot("[id$='-footer_shorthand_link']");if(e&&po(e),G.footer&&El){st(G.closeButton),st(G.footerContents),st(G.footerTitles),st(G.interactivePanels),st(G.mobileHeaders),st(G.mobileTitle),st(G.openButton),st(G.openMessage),h(G.upper,"block"),G.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),h(G.upperInner,"flex"),G.footer.style.position="static";return}G.footer&&!El&&(G.mobileTitle.forEach((t,l)=>{ho(G.mobileTitle[l],G.footerContents[l],G.footerClose[l])}),Qi(G.openButton),Qi(G.closeButton),Xo(),go(),Re(),uo(),window.addEventListener("scroll",Si,{passive:!0}))}var xl=Jl().isMobile,{isIE:Fo,isEdge:To}=Jl(),El=Fo||To,ct=!1,Ze=Math.max(document.body.offsetWidth,window.innerWidth),re=Ze<=926||xl,G={closeButton:ot(".PreviewFooter--close-button"),footer:k(".PreviewFooter"),footerClose:ot(".PreviewFooter--mobile-close"),footerContents:ot("[data-PreviewFooter--item]"),footerOuter:k(".PreviewFooter--outer"),footerTitles:ot(".PreviewFooter--col-title"),interactivePanels:k(".PreviewFooter--interactive-panels"),mailtoLink:k(".PreviewFooter--mailto"),mobileHeaders:ot(".PreviewFooter--mobile-header"),mobileTitle:ot(".PreviewFooter--col-title-mobile"),openButton:k(".PreviewFooter--open-button"),openMessage:k(".PreviewFooter--message"),openMessageContainer:k(".PreviewFooter--message-container"),upper:k(".PreviewFooter--upper"),upperInner:k(".PreviewFooter--upper-inner")};function po(e){return(Array.isArray(e)?e:[e]).forEach(l=>{l.setAttribute("href",l.getAttribute("href").replace("__host__",window.location.hostname))})}function uo(){let e=xl?"orientationchange":"resize";window.addEventListener(e,()=>{ke.default.measure(()=>{Ze=Math.max(document.body.offsetWidth,window.innerWidth),re=Ze<=926||xl,ct=!1,Re()})},{passive:!0})}function Si(){let e=window.scrollY,t=document.body.offsetHeight,l=window.innerHeight,n=e/(t-l),i=Math.round(n*100);if(El||window.Cypress){Ce(G.footer,"in"),removeEventListener("scroll",Si);return}!ct&&i<80&&Ce(G.footer,"out"),!ct&&i>=80&&Ce(G.footer,"in")}function Qi(e){let t=()=>{ct=!ct,Re()};(Array.isArray(e)?e:[e]).forEach(n=>{n.addEventListener("click",()=>{t()},{passive:!0})})}var ho=(e,t,l)=>{e.addEventListener("click",()=>{ct=!0,Re(t)},{passive:!0}),l.addEventListener("click",()=>{ct=!1,Re(t)},{passive:!0})};function Ji(){G.footer.style.position="relative",ke.default.measure(()=>{let e=document.body.offsetHeight;ke.default.mutate(()=>{window.scrollTo({top:e,behavior:"smooth"})})})}function Re(e=G.footerContents[0]){switch(!0){case(ct&&!re):h(G.openButton,"none"),h(G.mobileTitle,"none"),h(G.mobileHeaders,"none"),Ze>926&&Ze<1100&&h(G.openMessageContainer,"none"),h(G.footerContents,"block"),h(G.openMessage,"block"),h(G.closeButton,"block"),h(G.footerTitles,"block"),h(G.upperInner,"flex"),h(G.interactivePanels,"flex"),G.openMessageContainer.classList.remove("PreviewFooter--center-horizontal"),G.upper.style.padding="1em 0",Ji();break;case(!ct&&!re):h(G.mobileTitle,"none"),h(G.mobileHeaders,"none"),h(G.closeButton,"none"),h(G.openMessage,"none"),h(G.footerContents,"none"),h(G.interactivePanels,"none"),h(G.openMessageContainer,"block"),h(G.openButton,"flex"),h(G.upper,"block"),h(G.upperInner,"flex"),G.openMessageContainer.classList.add("PreviewFooter--center-horizontal"),G.footer.style.position="sticky",G.upper.style.padding="0.5em 0";break;case(ct&&re):h(G.mobileTitle,"none"),h(G.closeButton,"none"),h(G.footerTitles,"none"),h(G.upperInner,"none"),h(G.footerContents,"none"),h(e,"block"),h(G.mobileHeaders,"flex"),h(G.interactivePanels,"flex"),G.upper.style.padding="1em 0",Ji();break;case(!ct&&re):h(G.openMessage,"none"),h(G.openButton,"none"),h(G.closeButton,"none"),h(G.footerContents,"none"),h(G.interactivePanels,"none"),h(G.upper,"block"),h(G.upperInner,"flex"),h(G.mobileTitle,"flex"),h(G.mobileHeaders,"flex"),h(G.openMessageContainer,"block"),G.footer.style.position="sticky",G.upper.style.padding="0.5em 0",G.openMessageContainer.classList.add("PreviewFooter--center-horizontal");break}}function go(){let e=k("#PreviewFooter--form");if(!e)return;let t=k("#PreviewFooter--feedbackButton");e.addEventListener("submit",Io);let l=e.querySelectorAll("input, textarea");l.forEach(n=>{n.addEventListener("focus",()=>{t.classList.add("share-btn-active")})}),l.forEach(n=>{n.addEventListener("blur",()=>{t.classList.remove("share-btn-active")})})}var Mi={feedback:function(e){if(!(e.length>=4))return"feedback"},name:function(e){if(!e.match(new RegExp("\\b([A-Z\\u{00C0}\\-\\u{00FF}][-,a-z. ']+[ ]*)+","ims")))return"name"},email:function(e){if(!e.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-\d]+\.)+[a-zA-Z]{2,}))$/))return"email"}},xi={success:function(e){e.reset();let t=k("#feedback-success");h(e,"none"),h(t,"block"),setTimeout(()=>{h(t,"none"),h(e,"block")},4e3)},error:function(e,t){function l(i){n=k(`${i}`),h(n,"block"),setTimeout(()=>{h(n,"none")},4e3)}if(t.error==="feedback"){l("#feedback-error");return}if(t.error==="name"){l("#name-error");return}if(t.error==="email"){l("#email-error");return}let n=k("#generic-error");h(e,"none"),n.innerText=t,h(n,"block"),setTimeout(()=>{h(n,"none"),h(e,"block")},4e3),console.error(t)}},Io=e=>{e.preventDefault();let t=G.footer.getAttribute("data-story"),l=e.target,n=new FormData(l),i={};n.forEach((a,c)=>{i[c]=Ci.default.sanitize(a)});let d=Object.keys(Mi).reduce((a,c)=>{let V=Mi[c](i[c]);return V?Tn(Fn({},a),{error:V}):a},{});Object.keys(d).length>0&&xi.error(l,d),Object.keys(d).length===0&&No(i,t).then(()=>{xi.success(l)})};function No(e,t){return fetch(`/${t}/feedback`,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}}).then(l=>{if(!l.ok)throw new Error("Something went wrong, please try again.")})}function Ei({mailtoEmail:e,previewURL:t,title:l},n=G.mailtoLink){n.setAttribute("href",`mailto:${e}?subject=${encodeURIComponent("Shorthand story for review - ")}${l}&body=${encodeURIComponent("Hello, here's a link to an unpublished (draft) copy of a Shorthand story for the purposes of review:")}%0D%0A%0D%0A${t}%0D%0A%0D%0A${encodeURIComponent("This link is for review only, and should not be promoted or shared. The story at this address may still be actively edited, extensively changed, or removed.")}`),n.setAttribute("target","_blank")}function Xo(){let e=k(".mailtoForm"),t=new FormData(e),l={mailtoEmail:"",previewURL:document.location,title:""};t.forEach((a,c)=>{l[c]=a}),l.title===""&&(l.title="A Shorthand Story"),Ei(l);let n=k("#mailtoEmail"),i=k("#mailtoButton");n.addEventListener("focus",()=>{i.classList.add("share-btn-active")}),n.addEventListener("blur",function(a){l.mailtoEmail=a.target.value,Ei(l),i.classList.remove("share-btn-active")});let d=document.querySelector("#qr-code");d&&ki.default.toCanvas(d,l.previewURL.toString(),{margin:0,width:116,color:{dark:"#fff",light:"#353535"}})}function wi(e){return(Array.isArray(e)?e:[e]).forEach(l=>{l.setAttribute("href",l.getAttribute("href").replace("__host__",window.location.hostname))})}function kl(){let e=k("#StandardFooter");e&&e.dataset.footer==="prime3"&&fetch("/features.json").then(n=>{n.status===200&&n.json().then(i=>{i.prime3&&tl()})}).catch(n=>{console.log(n)});let t=ot("[id$='-footer_shorthand_link']");if(t&&wi(t),ot("#PreviewFooter"))return Cl()}kl();})();
/*! Bundled license information:

dompurify/dist/purify.js:
  (*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE *)

classnames/dedupe.js:
  (*!
  	Copyright (c) 2018 Jed Watson.
  	Licensed under the MIT License (MIT), see
  	http://jedwatson.github.io/classnames
  *)
*/
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="764a7ffc-55d2-5566-bab1-9d39c7eefa8f")}catch(e){}}();
//# sourceMappingURL=footer.336663.min.js.map
//# debugId=764a7ffc-55d2-5566-bab1-9d39c7eefa8f
