PageSourceSearch

https://dragoncandy.com/assets/HelpArticlePage-DJZp3TSs.js

js dragoncandy.com collected 2026-10-09 23:29:50 UTC 30,136 bytes, 4 lines download raw bytes

vendor: 4,410 bytes, lines 1-2
1import{a as sn,b as ln,j as c}from"./vendor-query-CoKCXE9e.js";import{h as cn,f as un,r as Et,L as yt}from"./vendor-react-NJLRjSjs.js";import{a as fn,u as mn,B as bt,s as St}from"./index-DBAqNMm0.js";import{D as xt}from"./dc-skeleton-iESXvn71.js";import{S as pn}from"./SEO-D5d1SUhM.js";import{P as dn}from"./PageHeader-CnzFbckG.js";import{P as Ge}from"./PublicPageHeader-BtgcVl2A.js";import{m as hn,S as Tn}from"./contactAddresses-BzQ11YA-.js";import{i as gn,aT as _n,bm as An,bE as En,g as yn,a8 as bn}from"./vendor-icons-BJkqKOmI.js";import"./vendor-supabase-B1MD-rV-.js";import"./sheet-BHhZsRsH.js";import"./brandLogo-C0908pMR.js";/*! @license DOMPurify 3.4.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.3/LICENSE */function Rt(n,o){(o==null||o>n.length)&&(o=n.length);for(var a=0,s=Array(o);a<o;a++)s[a]=n[a];return s}function Sn(n){if(Array.isArray(n))return n}function xn(n,o){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var s,u,m,I,H=[],z=!0,h=!1;try{if(m=(a=a.call(n)).next,o!==0)for(;!(z=(s=m.call(a)).done)&&(H.push(s.value),H.length!==o);z=!0);}catch(Y){h=!0,u=Y}finally{try{if(!z&&a.return!=null&&(I=a.return(),Object(I)!==I))return}finally{if(h)throw u}}return H}}function Rn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nn(n,o){return Sn(n)||xn(n,o)||On(n,o)||Rn()}function On(n,o){if(n){if(typeof n=="string")return Rt(n,o);var a={}.toString.call(n).slice(8,-1);return a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Rt(n,o):void 0}}const Ut=Object.entries,Nt=Object.setPrototypeOf,Dn=Object.isFrozen,In=Object.getPrototypeOf,Ln=Object.getOwnPropertyDescriptor;let D=Object.freeze,M=Object.seal,te=Object.create,Ht=typeof Reflect<"u"&&Reflect,Ve=Ht.apply,qe=Ht.construct;D||(D=function(o){return o});M||(M=function(o){return o});Ve||(Ve=function(o,a){for(var s=arguments.length,u=new Array(s>2?s-2:0),m=2;m<s;m++)u[m-2]=arguments[m];return o.apply(a,u)});qe||(qe=function(o){for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return new o(...s)});const Z=g(Array.prototype.forEach),wn=g(Array.prototype.lastIndexOf),Ot=g(Array.prototype.pop),Q=g(Array.prototype.push),Cn=g(Array.prototype.splice),O=Array.isArray,ce=g(String.prototype.toLowerCase),Be=g(String.prototype.toString),Dt=g(String.prototype.match),J=g(String.prototype.replace),It=g(String.prototype.indexOf),Mn=g(String.prototype.trim),Pn=g(Number.prototype.toString),vn=g(Boolean.prototype.toString),Lt=typeof BigInt>"u"?null:g(BigInt.prototype.toString),wt=typeof Symbol>"u"?null:g(Symbol.prototype.toString),p=g(Object.prototype.hasOwnProperty),le=g(Object.prototype.toString),S=g(RegExp.prototype.test),Se=kn(TypeError);function g(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return Ve(n,o,s)}}function kn(n){return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return qe(n,a)}}function l(n,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ce;if(Nt&&Nt(n,null),!O(o))return n;let s=o.length;for(;s--;){let u=o[s];if(typeof u=="string"){const m=a(u);m!==u&&(Dn(o)||(o[s]=m),u=m)}n[u]=!0}return n}function Fn(n){for(let o=0;o<n.length;o++)p(n,o)||(n[o]=null);return n}function w(n){const o=te(null);for(const s of Ut(n)){var a=Nn(s,2);const u=a[0],m=a[1];p(n,u)&&(O(m)?o[u]=Fn(m):m&&typeof m=="object"&&m.constructor===Object?o[u]=w(m):o[u]=m)}return o}function Un(n){switch(typeof n){case"string":return n;case"number":return Pn(n);case"boolean":return vn(n);case"bigint":return Lt?Lt(n):"0";case"symbol":return wt?wt(n):"Symbol()";case"undefined":return le(n);case"function":case"object":{if(n===null)return le(n);const o=n,a=ne(o,"toString");if(typeof a=="function"){const s=a(o);return typeof s=="string"?s:le(s)}return le(n)}default:return le(n)}}function ne(n,o){for(;n!==null;){const s=Ln(n,o);if(s){if(s.get)return g(s.get);if(typeof s.value=="function")return g(s.value)}n=In(n)}function a(){return null}return a}function Hn(n){try{return S(n,""),!0}catch{return!1}}
2const Ct=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","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),We=D(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$e=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"]),jn=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"]),Ye=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"]),zn=D(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mt=D(["#text"]),Pt=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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Xe=D(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),vt=D(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
2subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xe=D(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Gn=M(/{{[\w\W]*|^[\w\W]*}}/g),Bn=M(/<%[\w\W]*|^[\w\W]*%>/g),Wn=M(/\${[\w\W]*/g),$n=M(/^data-[\-\w.\u00B7-\uFFFF]+$/),Yn=M(/^aria-[\-\w]+$/),kt=M(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xn=M(/^(?:\w+script|data):/i),Vn=M(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qn=M(/^html$/i),Kn=M(/^[a-z][.\w]*(-[.\w]+)+$/i),ee={element:1,text:3,progressingInstruction:7,comment:8,document:9},Zn=function(){return typeof window>"u"?null:window},Qn=function(o,a){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null;const u="data-tt-policy-suffix";a&&a.hasAttribute(u)&&(s=a.getAttribute(u));const m="dompurify"+(s?"#"+s:"");try{return o.createPolicy(m,{createHTML(I){return I},createScriptURL(I){return I}})}catch{return console.warn("TrustedTypes policy "+m+" could not be created."),null}},Ft=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function jt(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zn();const o=i=>jt(i);if(o.version="3.4.3",o.removed=[],!n||!n.document||n.document.nodeType!==ee.document||!n.Element)return o.isSupported=!1,o;let a=n.document;const s=a,u=s.currentScript,m=n.DocumentFragment,I=n.HTMLTemplateElement,H=n.Node,z=n.Element,h=n.NodeFilter,Y=n.NamedNodeMap,Re=Y===void 0?n.NamedNodeMap||n.MozNamedAttrMap:Y,ue=n.HTMLFormElement,fe=n.DOMParser,x=n.trustedTypes,P=z.prototype,zt=ne(P,"cloneNode"),Gt=ne(P,"remove"),Bt=ne(P,"nextSibling"),Wt=ne(P,"childNodes"),me=ne(P,"parentNode");if(typeof I=="function"){const i=a.createElement("template");i.content&&i.content.ownerDocument&&(a=i.content.ownerDocument)}let R,oe="";const pe=a,Ne=pe.implementation,$t=pe.createNodeIterator,Yt=pe.createDocumentFragment,Xt=pe.getElementsByTagName,Vt=s.importNode;let N=Ft();o.isSupported=typeof Ut=="function"&&typeof me=="function"&&Ne&&Ne.createHTMLDocument!==void 0;const de=Gn,he=Bn,Te=Wn,qt=$n,Kt=Yn,Zt=Xn,Ke=Vn,Qt=Kn;let Ze=kt,A=null;const Qe=l({},[...Ct,...We,...$e,...Ye,...Mt]);let b=null;const Je=l({},[...Pt,...Xe,...vt,...xe]);let d=Object.seal(te(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}})),re=null,ge=null;const G=Object.seal(te(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let et=!0,Oe=!0,tt=!1,nt=!0,B=!1,ae=!0,W=!1,De=!1,Ie=!1,X=!1,_e=!1,Ae=!1,ot=!0,rt=!1;const at="user-content-";let Le=!0,ie=!1,V={},F=null;const we=l({},["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"]);let it=null;const st=l({},["audio","video","img","source","image","track"]);let Ce=null;const lt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ee="http://www.w3.org/1998/Math/MathML",ye="http://www.w3.org/2000/svg",U="http://www.w3.org/1999/xhtml";let q=U,Me=!1,Pe=null;const Jt=l({},[Ee,ye,U],Be);let ve=l({},["mi","mo","mn","ms","mtext"]),ke=l({},["annotation-xml"]);const en=l({},["title","style","font","a","script"]);let se=null;const tn=["application/xhtml+xml","text/html"],nn="text/html";let _=null,K=null;const on=a.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},Fe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(K&&K===e)return;(!e||typeof e!="object")&&(e={}),e=w(e),se=tn.indexOf(e.PARSER_MEDIA_TYPE)===-1?nn:e.PARSER_MEDIA_TYPE,_=se==="application/xhtml+xml"?Be:ce,A=p(e,"ALLOWED_TAGS")&&O(e.ALLOWED_TAGS)?l({},e.ALLOWED_TAGS,_):Qe,b=p(e,"ALLOWED_ATTR")&&O(e.ALLOWED_ATTR)?l({},e.ALLOWED_ATTR,_):Je,Pe=p(e,"ALLOWED_NAMESPACES")&&O(e.ALLOWED_NAMESPACES)?l({},e.ALLOWED_NAMESPACES,Be):Jt,Ce=p(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)?l(w(lt),e.ADD_URI_SAFE_ATTR,_):lt,it=p(e,"ADD_DATA_URI_TAGS")&&O(e.ADD_DATA_URI_TAGS)?l(w(st),e.ADD_DATA_URI_TAGS,_):st,F=p(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)?l({},e.FORBID_CONTENTS,_):we,re=p(e,"FORBID_TAGS")&&O(e.FORBID_TAGS)?l({},e.FORBID_TAGS,_):w({}),ge=p(e,"FORBID_ATTR")&&O(e.FORBID_ATTR)?l({},e.FORBID_ATTR,_):w({}),V=p(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?w(e.USE_PROFILES):e.USE_PROFILES:!1,et=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,tt
vendor: 7,102 bytes, line 2
2=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=e.SAFE_FOR_TEMPLATES||!1,ae=e.SAFE_FOR_XML!==!1,W=e.WHOLE_DOCUMENT||!1,X=e.RETURN_DOM||!1,_e=e.RETURN_DOM_FRAGMENT||!1,Ae=e.RETURN_TRUSTED_TYPE||!1,Ie=e.FORCE_BODY||!1,ot=e.SANITIZE_DOM!==!1,rt=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,ie=e.IN_PLACE||!1,Ze=Hn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kt,q=typeof e.NAMESPACE=="string"?e.NAMESPACE:U,ve=p(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?w(e.MATHML_TEXT_INTEGRATION_POINTS):l({},["mi","mo","mn","ms","mtext"]),ke=p(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?w(e.HTML_INTEGRATION_POINTS):l({},["annotation-xml"]);const t=p(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?w(e.CUSTOM_ELEMENT_HANDLING):te(null);if(d=te(null),p(t,"tagNameCheck")&&ct(t.tagNameCheck)&&(d.tagNameCheck=t.tagNameCheck),p(t,"attributeNameCheck")&&ct(t.attributeNameCheck)&&(d.attributeNameCheck=t.attributeNameCheck),p(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(d.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),B&&(Oe=!1),_e&&(X=!0),V&&(A=l({},Mt),b=te(null),V.html===!0&&(l(A,Ct),l(b,Pt)),V.svg===!0&&(l(A,We),l(b,Xe),l(b,xe)),V.svgFilters===!0&&(l(A,$e),l(b,Xe),l(b,xe)),V.mathMl===!0&&(l(A,Ye),l(b,vt),l(b,xe))),G.tagCheck=null,G.attributeCheck=null,p(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?G.tagCheck=e.ADD_TAGS:O(e.ADD_TAGS)&&(A===Qe&&(A=w(A)),l(A,e.ADD_TAGS,_))),p(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?G.attributeCheck=e.ADD_ATTR:O(e.ADD_ATTR)&&(b===Je&&(b=w(b)),l(b,e.ADD_ATTR,_))),p(e,"ADD_URI_SAFE_ATTR")&&O(e.ADD_URI_SAFE_ATTR)&&l(Ce,e.ADD_URI_SAFE_ATTR,_),p(e,"FORBID_CONTENTS")&&O(e.FORBID_CONTENTS)&&(F===we&&(F=w(F)),l(F,e.FORBID_CONTENTS,_)),p(e,"ADD_FORBID_CONTENTS")&&O(e.ADD_FORBID_CONTENTS)&&(F===we&&(F=w(F)),l(F,e.ADD_FORBID_CONTENTS,_)),Le&&(A["#text"]=!0),W&&l(A,["html","head","body"]),A.table&&(l(A,["tbody"]),delete re.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Se('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');R=e.TRUSTED_TYPES_POLICY,oe=R.createHTML("")}else R===void 0&&(R=Qn(x,u)),R!==null&&typeof oe=="string"&&(oe=R.createHTML(""));D&&D(e),K=e},ut=l({},[...We,...$e,...jn]),ft=l({},[...Ye,...zn]),rn=function(e){let t=me(e);(!t||!t.tagName)&&(t={namespaceURI:q,tagName:"template"});const r=ce(e.tagName),f=ce(t.tagName);return Pe[e.namespaceURI]?e.namespaceURI===ye?t.namespaceURI===U?r==="svg":t.namespaceURI===Ee?r==="svg"&&(f==="annotation-xml"||ve[f]):!!ut[r]:e.namespaceURI===Ee?t.namespaceURI===U?r==="math":t.namespaceURI===ye?r==="math"&&ke[f]:!!ft[r]:e.namespaceURI===U?t.namespaceURI===ye&&!ke[f]||t.namespaceURI===Ee&&!ve[f]?!1:!ft[r]&&(en[r]||!ut[r]):!!(se==="application/xhtml+xml"&&Pe[e.namespaceURI]):!1},v=function(e){Q(o.removed,{element:e});try{me(e).removeChild(e)}catch{Gt(e)}},$=function(e,t){try{Q(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{Q(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(X||_e)try{v(t)}catch{}else try{t.setAttribute(e,"")}catch{}},mt=function(e){let t=null,r=null;if(Ie)e="<remove></remove>"+e;else{const T=Dt(e,/^[\r\n\t ]+/);r=T&&T[0]}se==="application/xhtml+xml"&&q===U&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const f=R?R.createHTML(e):e;if(q===U)try{t=new fe().parseFromString(f,se)}catch{}if(!t||!t.documentElement){t=Ne.createDocument(q,"template",null);try{t.documentElement.innerHTML=Me?oe:f}catch{}}const E=t.body||t.documentElement;return e&&r&&E.insertBefore(a.createTextNode(r),E.childNodes[0]||null),q===U?Xt.call(t,W?"html":"body")[0]:W?t.documentElement:E},pt=function(e){return $t.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof ue&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Re)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},He=function(e){return typeof H=="function"&&e instanceof H};function j(i,e,t){Z(i,r=>{r.call(o,e,t,K)})}const dt=function(e){let t=null;if(j(N.beforeSanitizeElements,e,null),Ue(e))return v(e),!0;const r=_(e.nodeName);if(j(N.uponSanitizeElement,e,{tagName:r,allowedTags:A}),ae&&e.hasChildNodes()&&!He(e.firstElementChild)&&S(/<[/\w!]/g,e.innerHTML)&&S(/<[/\w!]/g,e.textContent)||ae&&e.namespaceURI===U&&r==="style"&&He(e.firstElementChild)||e.nodeType===ee.progressingInstruction||ae&&e.nodeType===ee.comment&&S(/<[/\w]/g,e.data))return v(e),!0;if(re[r]||!(G.tagCheck instanceof Function&&G.tagCheck(r))&&!A[r]){if(!re[r]&&Tt(r)&&(d.tagNameCheck instanceof RegExp&&S(d.tagNameCheck,r)||d.tagNameCheck instanceof Function&&d.tagNameCheck(r)))return!1;if(Le&&!F[r]){const f=me(e)||e.parentNode,E=Wt(e)||e.childNodes;if(E&&f){const T=E.length;for(let L=T-1;L>=0;--L){const C=zt(E[L],!0);f.insertBefore(C,Bt(e))}}}return v(e),!0}return e instanceof z&&!rn(e)||(r==="noscript"||r==="noembed"||r==="noframes")&&S(/<\/no(script|embed|frames)/i,e.innerHTML)?(v(e),!0):(B&&e.nodeType===ee.text&&(t=e.textContent,Z([de,he,Te],f=>{t=J(t,f," ")}),e.textContent!==t&&(Q(o.removed,{element:e.cloneNode()}),e.textContent=t)),j(N.afterSanitizeElements,e,null),!1)},ht=function(e,t,r){if(ge[t]||ot&&(t==="id"||t==="name")&&(r in a||r in on))return!1;const f=b[t]||G.attributeCheck instanceof Function&&G.attributeCheck(t,e);if(!(Oe&&!ge[t]&&S(qt,t))){if(!(et&&S(Kt,t))){if(!f||ge[t]){if(!(Tt(e)&&(d.tagNameCheck instanceof RegExp&&S(d.tagNameCheck,e)||d.tagNameCheck instanceof Function&&d.tagNameCheck(e))&&(d.attributeNameCheck instanceof RegExp&&S(d.attributeNameCheck,t)||d.attributeNameCheck instanceof Function&&d.attributeNameCheck(t,e))||t==="is"&&d.allowCustomizedBuiltInElements&&(d.tagNameCheck instanceof RegExp&&S(d.tagNameCheck,r)||d.tagNameCheck instanceof Function&&d.tagNameCheck(r))))return!1}else if(!Ce[t]){if(!S(Ze,J(r,Ke,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&It(r,"data:")===0&&it[e])){if(!(tt&&!S(Zt,J(r,Ke,"")))){if(r)return!1}}}}}}return!0},an=l({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Tt=function(e){return!an[ce(e)]&&S(Qt,e)},gt=function(e){j(N.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b,forceKeepAttr:void 0};let f=t.length;for(;f--;){const E=t[f],T=E.name,L=E.namespaceURI,C=E.value,k=_(T),ze=C;let y=T==="value"?ze:Mn(ze);
2if(r.attrName=k,r.attrValue=y,r.keepAttr=!0,r.forceKeepAttr=void 0,j(N.uponSanitizeAttribute,e,r),y=r.attrValue,rt&&(k==="id"||k==="name")&&It(y,at)!==0&&($(T,e),y=at+y),ae&&S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,y)){$(T,e);continue}if(k==="attributename"&&Dt(y,"href")){$(T,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){$(T,e);continue}if(!nt&&S(/\/>/i,y)){$(T,e);continue}B&&Z([de,he,Te],At=>{y=J(y,At," ")});const _t=_(e.nodeName);if(!ht(_t,k,y)){$(T,e);continue}if(R&&typeof x=="object"&&typeof x.getAttributeType=="function"&&!L)switch(x.getAttributeType(_t,k)){case"TrustedHTML":{y=R.createHTML(y);break}case"TrustedScriptURL":{y=R.createScriptURL(y);break}}if(y!==ze)try{L?e.setAttributeNS(L,T,y):e.setAttribute(T,y),Ue(e)?v(e):Ot(o.removed)}catch{$(T,e)}}j(N.afterSanitizeAttributes,e,null)},je=function(e){let t=null;const r=pt(e);for(j(N.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)j(N.uponSanitizeShadowNode,t,null),dt(t),gt(t),t.content instanceof m&&je(t.content);j(N.afterSanitizeShadowDOM,e,null)},be=function(e){if(e.nodeType===ee.element&&e.shadowRoot instanceof m){const f=e.shadowRoot;be(f),je(f)}const t=e.childNodes;if(!t)return;const r=[];Z(t,f=>{Q(r,f)});for(const f of r)be(f)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,f=null,E=null;if(Me=!i,Me&&(i="<!-->"),typeof i!="string"&&!He(i)&&(i=Un(i),typeof i!="string"))throw Se("dirty is not a string, aborting");if(!o.isSupported)return i;if(De||Fe(e),o.removed=[],typeof i=="string"&&(ie=!1),ie){const C=i.nodeName;if(typeof C=="string"){const k=_(C);if(!A[k]||re[k])throw Se("root node is forbidden and cannot be sanitized in-place")}be(i)}else if(i instanceof H)t=mt("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===ee.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),be(r);else{if(!X&&!B&&!W&&i.indexOf("<")===-1)return R&&Ae?R.createHTML(i):i;if(t=mt(i),!t)return X?null:Ae?oe:""}t&&Ie&&v(t.firstChild);const T=pt(ie?i:t);for(;f=T.nextNode();)dt(f),gt(f),f.content instanceof m&&je(f.content);if(ie)return i;if(X){if(B){t.normalize();let C=t.innerHTML;Z([de,he,Te],k=>{C=J(C,k," ")}),t.innerHTML=C}if(_e)for(E=Yt.call(t.ownerDocument);t.firstChild;)E.appendChild(t.firstChild);else E=t;return(b.shadowroot||b.shadowrootmode)&&(E=Vt.call(s,E,!0)),E}let L=W?t.outerHTML:t.innerHTML;return W&&A["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&S(qn,t.ownerDocument.doctype.name)&&(L="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
3`+L),B&&Z([de,he,Te],C=>{L=J(L,C," ")}),R&&Ae?R.createHTML(L):L},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fe(i),De=!0},o.clearConfig=function(){K=null,De=!1},o.isValidAttribute=function(i,e,t){K||Fe({});const r=_(i),f=_(e);return ht(r,f,t)},o.addHook=function(i,e){typeof e=="function"&&Q(N[i],e)},o.removeHook=function(i,e){if(e!==void 0){const t=wn(N[i],e);return t===-1?void 0:Cn(N[i],t,1)[0]}return Ot(N[i])},o.removeHooks=function(i){N[i]=[]},o.removeAllHooks=function(){N=Ft()},o}var Jn=jt();function mo(){var fe;const{slug:n}=cn(),o=un(),{user:a}=fn(),{openDonnyWithContext:s}=mn(),[u,m]=Et.useState(null),[I,H]=Et.useState(""),z=x=>{x.preventDefault();const P=I.trim();P&&o(`/help?q=${encodeURIComponent(P)}`)},{data:h,isLoading:Y}=sn({queryKey:["help-article",n],queryFn:async()=>{const{data:x,error:P}=await St.from("help_articles").select("id, title, body, slug").eq("slug",n).single();if(P)throw P;return x},enabled:!!n}),Re=ln({mutationFn:async x=>{!a||!h||await St.from("help_article_feedback").insert({article_id:h.id,user_id:a.id,helpful:x})}}),ue=x=>{m(x),Re.mutate(x)};return Y?c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(Ge,{}),c.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-8",children:[c.jsx(xt,{variant:"text-block",className:"h-8 w-64 mb-4"}),c.jsx(xt,{variant:"text-block",count:5})]})]}):h?c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(Ge,{}),c.jsx(pn,{title:`${h.title} - DragonCandy Help`,description:((fe=h.body)==null?void 0:fe.slice(0,155))??`Help article: ${h.title}`,path:`/help/${n}`,jsonLd:{"@context":"https://schema.org","@type":"Article",headline:h.title,url:`https://dragoncandy.com/help/${n}`}}),c.jsx(dn,{children:c.jsxs("div",{className:"max-w-2xl mx-auto",children:[c.jsxs(yt,{to:"/help",className:"inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-dc-teal mb-3",children:[c.jsx(gn,{className:"w-3.5 h-3.5"}),"Help Center"]}),c.jsx("h1",{className:"text-xl lg:text-2xl font-bold text-dc-dark",children:h.title}),c.jsxs("form",{onSubmit:z,className:"relative mt-4 max-w-md",children:[c.jsx(_n,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-dc-teal"}),c.jsx("input",{value:I,onChange:x=>H(x.target.value),placeholder:"Search all help…","aria-label":"Search help articles",className:"w-full pl-9 pr-4 py-2.5 rounded-full border border-gray-200 bg-white text-sm focus:outline-none focus:border-dc-teal focus:ring-2 focus:ring-dc-teal/30 transition-colors"})]})]})}),c.jsxs("div",{className:"max-w-2xl mx-auto px-4 py-8 lg:py-12",children:[c.jsx("article",{children:c.jsx("div",{className:"prose prose-sm max-w-none text-gray-700 leading-relaxed whitespace-pre-line [&_img]:rounded-xl [&_img]:shadow-md [&_img]:my-4 [&_img]:max-w-full",dangerouslySetInnerHTML:{__html:Jn.sanitize(h.body)}})}),c.jsxs("div",{className:"mt-8 pt-6 border-t border-gray-100",children:[c.jsx("p",{className:"text-sm text-gray-500 mb-3",children:"Was this helpful?"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>ue(!0),disabled:u!==null,className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-sm transition-colors ${u===!0?"border-dc-teal bg-dc-teal/10 text-dc-teal":"border-gray-200 text-gray-500 hover:border-dc-teal hover:text-dc-teal"}`,children:[c.jsx(An,{className:"w-3.5 h-3.5"}),"Yes"]}),c.jsxs("button",{onClick:()=>ue(!1),disabled:u!==null,className:`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full border text-sm transition-colors ${u===!1?"border-red-300 bg-red-50 text-red-500":"border-gray-200 text-gray-500 hover:border-red-300 hover:text-red-500"}`,children:[c.jsx(En,{className:"w-3.5 h-3.5"}),"No"]})]}),u!==null&&c.jsx("p",{className:"text-xs text-gray-400 mt-2",children:"Thanks for your feedback!"})]}),c.jsxs("div",{className:"mt-8 flex flex-col sm:flex-row gap-3",children:[c.jsxs(bt,{variant:"dc-primary",className:"flex-1",onClick:()=>s(`Help me understand: ${h.title}`),children:[c.jsx(yn,{className:"w-4 h-4 mr-1.5"}),"Talk to Donny about this"]}),c.jsx(bt,{variant:"dc-outline",className:"flex-1",asChild:!0,children:c.jsxs("a",{href:hn(Tn,`Help: ${h.title}`),children:[c.jsx(bn,{className:"w-4 h-4 mr-1.5"}),"Email support"]})})]})]})]}):c.jsxs("div",{className:"min-h-screen bg-white",children:[c.jsx(Ge,{}),c.jsx("div",{className:"flex items-center justify-center py-16",children:c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-lg font-semibold text-dc-dark",children:"Article not found"}),c.jsx(yt,{to:"/help",className:"text-sm text-dc-teal mt-2 inline-block",children:"Back to Help Center"})]})})]})}export{mo as default};
4//# sourceMappingURL=HelpArticlePage-DJZp3TSs.js.map

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