JezK
Edit File: text-path.min.js
(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,__commonJSMin=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),__copyProps=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},__toESM=(n,r,a)=>(a=n==null?{}:e(i(n)),__copyProps(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),o=__commonJSMin(((e,t)=>{function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}t.exports=_interopRequireDefault,t.exports.__esModule=!0,t.exports.default=t.exports})),s=__commonJSMin((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isScrollSnapActive=e.escapeHTML=void 0;var escapeHTML=e=>{let t={"&":`&`,"<":`<`,">":`>`,"'":`'`,'"':`"`};return e.replace(/[&<>'"]/g,e=>t[e]||e)};e.escapeHTML=escapeHTML;var isScrollSnapActive=()=>{var e,t;return(elementorFrontend.isEditMode()?(e=elementor.settings.page.model.attributes)==null?void 0:e.scroll_snap:(t=elementorFrontend.config.settings.page)==null?void 0:t.scroll_snap)===`yes`};e.isScrollSnapActive=isScrollSnapActive})),c=__commonJSMin(((e,t)=>{ /*! @license DOMPurify 3.3.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.3.0/LICENSE */ var{entries:n,setPrototypeOf:r,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object,{freeze:s,seal:c,create:l}=Object,{apply:u,construct:d}=typeof Reflect<`u`&&Reflect;s||(s=function freeze(e){return e}),c||(c=function seal(e){return e}),u||(u=function apply(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),d||(d=function construct(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});var f=unapply(Array.prototype.forEach),ee=unapply(Array.prototype.lastIndexOf),te=unapply(Array.prototype.pop),p=unapply(Array.prototype.push),ne=unapply(Array.prototype.splice),m=unapply(String.prototype.toLowerCase),re=unapply(String.prototype.toString),ie=unapply(String.prototype.match),h=unapply(String.prototype.replace),ae=unapply(String.prototype.indexOf),oe=unapply(String.prototype.trim),g=unapply(Object.prototype.hasOwnProperty),_=unapply(RegExp.prototype.test),v=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return u(e,t,r)}}function unconstruct(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return d(e,n)}}function addToSet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;r&&r(e,null);let a=t.length;for(;a--;){let r=t[a];if(typeof r==`string`){let e=n(r);e!==r&&(i(t)||(t[a]=e),r=e)}e[r]=!0}return e}function cleanArray(e){for(let t=0;t<e.length;t++)g(e,t)||(e[t]=null);return e}function clone(e){let t=l(null);for(let[r,i]of n(e))g(e,r)&&(Array.isArray(i)?t[r]=cleanArray(i):i&&typeof i==`object`&&i.constructor===Object?t[r]=clone(i):t[r]=i);return t}function lookupGetter(e,t){for(;e!==null;){let n=o(e,t);if(n){if(n.get)return unapply(n.get);if(typeof n.value==`function`)return unapply(n.value)}e=a(e)}function fallbackValue(){return null}return fallbackValue}var se=s(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),ce=s(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),le=s([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ue=s([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),de=s(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),fe=s([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),pe=s([`#text`]),me=s(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),he=s(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ge=s(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),y=s([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),_e=c(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ve=c(/<%[\w\W]*|[\w\W]*%>/gm),ye=c(/\$\{[\w\W]*/gm),b=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),x=c(/^aria-[\-\w]+$/),be=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xe=c(/^(?:\w+script|data):/i),Se=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ce=c(/^html$/i),we=c(/^[a-z][.\w]*(-[.\w]+)+$/i),Te=Object.freeze({__proto__:null,ARIA_ATTR:x,ATTR_WHITESPACE:Se,CUSTOM_ELEMENT:we,DATA_ATTR:b,DOCTYPE_NAME:Ce,ERB_EXPR:ve,IS_ALLOWED_URI:be,IS_SCRIPT_OR_DATA:xe,MUSTACHE_EXPR:_e,TMPLIT_EXPR:ye}),S={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ee=function getGlobal(){return typeof window>`u`?null:window},De=function _createTrustedTypesPolicy(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch(e){return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Oe=function _createHooksMap(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ee(),DOMPurify=e=>createDOMPurify(e);if(DOMPurify.version=`3.3.0`,DOMPurify.removed=[],!e||!e.document||e.document.nodeType!==S.document||!e.Element)return DOMPurify.isSupported=!1,DOMPurify;let{document:t}=e,r=t,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:c,Element:u,NodeFilter:d,NamedNodeMap:_e=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ve,DOMParser:ye,trustedTypes:b}=e,x=u.prototype,xe=lookupGetter(x,`cloneNode`),Se=lookupGetter(x,`remove`),we=lookupGetter(x,`nextSibling`),ke=lookupGetter(x,`childNodes`),C=lookupGetter(x,`parentNode`);if(typeof o==`function`){let e=t.createElement(`template`);e.content&&e.content.ownerDocument&&(t=e.content.ownerDocument)}let w,T=``,{implementation:Ae,createNodeIterator:je,createDocumentFragment:Me,getElementsByTagName:Ne}=t,{importNode:Pe}=r,E=Oe();DOMPurify.isSupported=typeof n==`function`&&typeof C==`function`&&Ae&&Ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Fe,ERB_EXPR:Ie,TMPLIT_EXPR:Le,DATA_ATTR:Re,ARIA_ATTR:ze,IS_SCRIPT_OR_DATA:Be,ATTR_WHITESPACE:Ve,CUSTOM_ELEMENT:He}=Te,{IS_ALLOWED_URI:Ue}=Te,D=null,We=addToSet({},[...se,...ce,...le,...de,...pe]),O=null,Ge=addToSet({},[...me,...he,...ge,...y]),k=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),A=null,Ke=null,j=Object.seal(l(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),qe=!0,Je=!0,Ye=!1,Xe=!0,M=!1,N=!0,P=!1,Ze=!1,Qe=!1,F=!1,I=!1,L=!1,$e=!0,et=!1,tt=!0,R=!1,z={},B=null,nt=addToSet({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),rt=null,it=addToSet({},[`audio`,`video`,`img`,`source`,`image`,`track`]),at=null,ot=addToSet({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),V=`http://www.w3.org/1998/Math/MathML`,H=`http://www.w3.org/2000/svg`,U=`http://www.w3.org/1999/xhtml`,W=U,st=!1,ct=null,lt=addToSet({},[V,H,U],re),G=addToSet({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),K=addToSet({},[`annotation-xml`]),ut=addToSet({},[`title`,`style`,`font`,`a`,`script`]),q=null,dt=[`application/xhtml+xml`,`text/html`],J=null,Y=null,ft=t.createElement(`form`),pt=function isRegexOrFunction(e){return e instanceof RegExp||e instanceof Function},X=function _parseConfig(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Y&&Y===e)){if((!e||typeof e!=`object`)&&(e={}),e=clone(e),q=dt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,J=q===`application/xhtml+xml`?re:m,D=g(e,`ALLOWED_TAGS`)?addToSet({},e.ALLOWED_TAGS,J):We,O=g(e,`ALLOWED_ATTR`)?addToSet({},e.ALLOWED_ATTR,J):Ge,ct=g(e,`ALLOWED_NAMESPACES`)?addToSet({},e.ALLOWED_NAMESPACES,re):lt,at=g(e,`ADD_URI_SAFE_ATTR`)?addToSet(clone(ot),e.ADD_URI_SAFE_ATTR,J):ot,rt=g(e,`ADD_DATA_URI_TAGS`)?addToSet(clone(it),e.ADD_DATA_URI_TAGS,J):it,B=g(e,`FORBID_CONTENTS`)?addToSet({},e.FORBID_CONTENTS,J):nt,A=g(e,`FORBID_TAGS`)?addToSet({},e.FORBID_TAGS,J):clone({}),Ke=g(e,`FORBID_ATTR`)?addToSet({},e.FORBID_ATTR,J):clone({}),z=g(e,`USE_PROFILES`)?e.USE_PROFILES:!1,qe=e.ALLOW_ARIA_ATTR!==!1,Je=e.ALLOW_DATA_ATTR!==!1,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,M=e.SAFE_FOR_TEMPLATES||!1,N=e.SAFE_FOR_XML!==!1,P=e.WHOLE_DOCUMENT||!1,F=e.RETURN_DOM||!1,I=e.RETURN_DOM_FRAGMENT||!1,L=e.RETURN_TRUSTED_TYPE||!1,Qe=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,et=e.SANITIZE_NAMED_PROPS||!1,tt=e.KEEP_CONTENT!==!1,R=e.IN_PLACE||!1,Ue=e.ALLOWED_URI_REGEXP||be,W=e.NAMESPACE||U,G=e.MATHML_TEXT_INTEGRATION_POINTS||G,K=e.HTML_INTEGRATION_POINTS||K,k=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(k.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&pt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(k.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(k.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),M&&(Je=!1),I&&(F=!0),z&&(D=addToSet({},pe),O=[],z.html===!0&&(addToSet(D,se),addToSet(O,me)),z.svg===!0&&(addToSet(D,ce),addToSet(O,he),addToSet(O,y)),z.svgFilters===!0&&(addToSet(D,le),addToSet(O,he),addToSet(O,y)),z.mathMl===!0&&(addToSet(D,de),addToSet(O,ge),addToSet(O,y))),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?j.tagCheck=e.ADD_TAGS:(D===We&&(D=clone(D)),addToSet(D,e.ADD_TAGS,J))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?j.attributeCheck=e.ADD_ATTR:(O===Ge&&(O=clone(O)),addToSet(O,e.ADD_ATTR,J))),e.ADD_URI_SAFE_ATTR&&addToSet(at,e.ADD_URI_SAFE_ATTR,J),e.FORBID_CONTENTS&&(B===nt&&(B=clone(B)),addToSet(B,e.FORBID_CONTENTS,J)),tt&&(D[`#text`]=!0),P&&addToSet(D,[`html`,`head`,`body`]),D.table&&(addToSet(D,[`tbody`]),delete A.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw v(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw v(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);w=e.TRUSTED_TYPES_POLICY,T=w.createHTML(``)}else w===void 0&&(w=De(b,i)),w!==null&&typeof T==`string`&&(T=w.createHTML(``));s&&s(e),Y=e}},mt=addToSet({},[...ce,...le,...ue]),ht=addToSet({},[...de,...fe]),gt=function _checkValidNamespace(e){let t=C(e);(!t||!t.tagName)&&(t={namespaceURI:W,tagName:`template`});let n=m(e.tagName),r=m(t.tagName);return ct[e.namespaceURI]?e.namespaceURI===H?t.namespaceURI===U?n===`svg`:t.namespaceURI===V?n===`svg`&&(r===`annotation-xml`||G[r]):!!mt[n]:e.namespaceURI===V?t.namespaceURI===U?n===`math`:t.namespaceURI===H?n===`math`&&K[r]:!!ht[n]:e.namespaceURI===U?t.namespaceURI===H&&!K[r]||t.namespaceURI===V&&!G[r]?!1:!ht[n]&&(ut[n]||!mt[n]):!!(q===`application/xhtml+xml`&&ct[e.namespaceURI]):!1},Z=function _forceRemove(e){p(DOMPurify.removed,{element:e});try{C(e).removeChild(e)}catch(t){Se(e)}},Q=function _removeAttribute(e,t){try{p(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(DOMPurify.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e===`is`)if(F||I)try{Z(t)}catch(e){}else try{t.setAttribute(e,``)}catch(e){}},_t=function _initDocument(e){let n=null,r=null;if(Qe)e=`<remove></remove>`+e;else{let t=ie(e,/^[\r\n\t ]+/);r=t&&t[0]}q===`application/xhtml+xml`&&W===U&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=w?w.createHTML(e):e;if(W===U)try{n=new ye().parseFromString(i,q)}catch(e){}if(!n||!n.documentElement){n=Ae.createDocument(W,`template`,null);try{n.documentElement.innerHTML=st?T:i}catch(e){}}let a=n.body||n.documentElement;return e&&r&&a.insertBefore(t.createTextNode(r),a.childNodes[0]||null),W===U?Ne.call(n,P?`html`:`body`)[0]:P?n.documentElement:a},vt=function _createNodeIterator(e){return je.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},$=function _isClobbered(e){return e instanceof ve&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof _e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},yt=function _isNode(e){return typeof c==`function`&&e instanceof c};function _executeHooks(e,t,n){f(e,e=>{e.call(DOMPurify,t,n,Y)})}let bt=function _sanitizeElements(e){let t=null;if(_executeHooks(E.beforeSanitizeElements,e,null),$(e))return Z(e),!0;let n=J(e.nodeName);if(_executeHooks(E.uponSanitizeElement,e,{tagName:n,allowedTags:D}),N&&e.hasChildNodes()&&!yt(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent)||e.nodeType===S.progressingInstruction||N&&e.nodeType===S.comment&&_(/<[/\w]/g,e.data))return Z(e),!0;if(!(j.tagCheck instanceof Function&&j.tagCheck(n))&&(!D[n]||A[n])){if(!A[n]&&St(n)&&(k.tagNameCheck instanceof RegExp&&_(k.tagNameCheck,n)||k.tagNameCheck instanceof Function&&k.tagNameCheck(n)))return!1;if(tt&&!B[n]){let t=C(e)||e.parentNode,n=ke(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=xe(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,we(e))}}}return Z(e),!0}return e instanceof u&&!gt(e)||(n===`noscript`||n===`noembed`||n===`noframes`)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z(e),!0):(M&&e.nodeType===S.text&&(t=e.textContent,f([Fe,Ie,Le],e=>{t=h(t,e,` `)}),e.textContent!==t&&(p(DOMPurify.removed,{element:e.cloneNode()}),e.textContent=t)),_executeHooks(E.afterSanitizeElements,e,null),!1)},xt=function _isValidAttribute(e,n,r){if($e&&(n===`id`||n===`name`)&&(r in t||r in ft))return!1;if(!(Je&&!Ke[n]&&_(Re,n))&&!(qe&&_(ze,n))&&!(j.attributeCheck instanceof Function&&j.attributeCheck(n,e))){if(!O[n]||Ke[n]){if(!(St(e)&&(k.tagNameCheck instanceof RegExp&&_(k.tagNameCheck,e)||k.tagNameCheck instanceof Function&&k.tagNameCheck(e))&&(k.attributeNameCheck instanceof RegExp&&_(k.attributeNameCheck,n)||k.attributeNameCheck instanceof Function&&k.attributeNameCheck(n,e))||n===`is`&&k.allowCustomizedBuiltInElements&&(k.tagNameCheck instanceof RegExp&&_(k.tagNameCheck,r)||k.tagNameCheck instanceof Function&&k.tagNameCheck(r))))return!1}else if(!at[n]&&!_(Ue,h(r,Ve,``))&&!((n===`src`||n===`xlink:href`||n===`href`)&&e!==`script`&&ae(r,`data:`)===0&&rt[e])&&!(Ye&&!_(Be,h(r,Ve,``)))&&r)return!1}return!0},St=function _isBasicCustomElement(e){return e!==`annotation-xml`&&ie(e,He)},Ct=function _sanitizeAttributes(e){_executeHooks(E.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||$(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:O,forceKeepAttr:void 0},r=t.length;for(;r--;){let{name:i,namespaceURI:a,value:o}=t[r],s=J(i),c=o,l=i===`value`?c:oe(c);if(n.attrName=s,n.attrValue=l,n.keepAttr=!0,n.forceKeepAttr=void 0,_executeHooks(E.uponSanitizeAttribute,e,n),l=n.attrValue,et&&(s===`id`||s===`name`)&&(Q(i,e),l=`user-content-`+l),N&&_(/((--!?|])>)|<\/(style|title|textarea)/i,l)){Q(i,e);continue}if(s===`attributename`&&ie(l,`href`)){Q(i,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Q(i,e);continue}if(!Xe&&_(/\/>/i,l)){Q(i,e);continue}M&&f([Fe,Ie,Le],e=>{l=h(l,e,` `)});let u=J(e.nodeName);if(!xt(u,s,l)){Q(i,e);continue}if(w&&typeof b==`object`&&typeof b.getAttributeType==`function`&&!a)switch(b.getAttributeType(u,s)){case`TrustedHTML`:l=w.createHTML(l);break;case`TrustedScriptURL`:l=w.createScriptURL(l);break}if(l!==c)try{a?e.setAttributeNS(a,i,l):e.setAttribute(i,l),$(e)?Z(e):te(DOMPurify.removed)}catch(t){Q(i,e)}}_executeHooks(E.afterSanitizeAttributes,e,null)},wt=function _sanitizeShadowDOM(e){let t=null,n=vt(e);for(_executeHooks(E.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_executeHooks(E.uponSanitizeShadowNode,t,null),bt(t),Ct(t),t.content instanceof a&&_sanitizeShadowDOM(t.content);_executeHooks(E.afterSanitizeShadowDOM,e,null)};return DOMPurify.sanitize=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=null,i=null,o=null,s=null;if(st=!e,st&&(e=`<!-->`),typeof e!=`string`&&!yt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw v(`dirty is not a string, aborting`)}else throw v(`toString is not a function`);if(!DOMPurify.isSupported)return e;if(Ze||X(t),DOMPurify.removed=[],typeof e==`string`&&(R=!1),R){if(e.nodeName){let t=J(e.nodeName);if(!D[t]||A[t])throw v(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof c)n=_t(`<!---->`),i=n.ownerDocument.importNode(e,!0),i.nodeType===S.element&&i.nodeName===`BODY`||i.nodeName===`HTML`?n=i:n.appendChild(i);else{if(!F&&!M&&!P&&e.indexOf(`<`)===-1)return w&&L?w.createHTML(e):e;if(n=_t(e),!n)return F?null:L?T:``}n&&Qe&&Z(n.firstChild);let l=vt(R?e:n);for(;o=l.nextNode();)bt(o),Ct(o),o.content instanceof a&&wt(o.content);if(R)return e;if(F){if(I)for(s=Me.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(O.shadowroot||O.shadowrootmode)&&(s=Pe.call(r,s,!0)),s}let u=P?n.outerHTML:n.innerHTML;return P&&D[`!doctype`]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(Ce,n.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+n.ownerDocument.doctype.name+`> `+u),M&&f([Fe,Ie,Le],e=>{u=h(u,e,` `)}),w&&L?w.createHTML(u):u},DOMPurify.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};X(e),Ze=!0},DOMPurify.clearConfig=function(){Y=null,Ze=!1},DOMPurify.isValidAttribute=function(e,t,n){Y||X({});let r=J(e),i=J(t);return xt(r,i,n)},DOMPurify.addHook=function(e,t){typeof t==`function`&&p(E[e],t)},DOMPurify.removeHook=function(e,t){if(t!==void 0){let n=ee(E[e],t);return n===-1?void 0:ne(E[e],n,1)[0]}return te(E[e])},DOMPurify.removeHooks=function(e){E[e]=[]},DOMPurify.removeAllHooks=function(){E=Oe()},DOMPurify}t.exports=createDOMPurify()})),l=__toESM(__commonJSMin((e=>{var t=o();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(),r=t(c()),TextPathHandler=class extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{pathContainer:`.e-text-path`,svg:`.e-text-path > svg`}}}getDefaultElements(){let{selectors:e}=this.getSettings(),t=this.$element[0];return{widgetWrapper:t,pathContainer:t.querySelector(e.pathContainer),svg:t.querySelector(e.svg),textPath:t.querySelector(e.textPath)}}onInit(){this.elements=this.getDefaultElements(),this.fetchSVG().then(()=>{let e=r.default.sanitize(this.elements.widgetWrapper.dataset.id);this.pathId=`e-path-${e}`,this.textPathId=`e-text-path-${e}`,this.elements.svg&&this.initTextPath()})}fetchSVG(){let{url:e}=this.elements.pathContainer.dataset;return!e||!e.endsWith(`.svg`)?Promise.reject(e):fetch(e).then(e=>e.text()).then(e=>{this.elements.pathContainer.innerHTML=r.default.sanitize(e),this.elements=this.getDefaultElements()})}setOffset(e){this.elements.textPath&&(this.isRTL()&&(e=100-parseInt(e)),this.elements.textPath.setAttribute(`startOffset`,e+`%`))}onElementChange(e){let{start_point:t,text:n}=this.getElementSettings();switch(e){case`start_point`:this.setOffset(t.size);break;case`text`:this.setText(n);break;case`text_path_direction`:this.setOffset(t.size),this.setText(n);break;default:break}}attachIdToPath(){let e=this.elements.svg.querySelector(`[data-path-anchor]`)||this.elements.svg.querySelector(`path`);e.id=this.pathId}initTextPath(){let{start_point:e}=this.getElementSettings(),t=(0,n.escapeHTML)(this.elements.pathContainer.dataset.text);this.attachIdToPath(),this.elements.svg.innerHTML+=` <text> <textPath id="${this.textPathId}" href="#${this.pathId}"></textPath> </text> `,this.elements.textPath=this.elements.svg.querySelector(`#${this.textPathId}`),this.setOffset(e.size),this.setText(t)}setText(e){let{is_external:t,nofollow:i}=this.getElementSettings().link,{linkUrl:a}=this.elements.pathContainer.dataset,o=t?`_blank`:``,s=i?`nofollow`:``;a&&(e=`<a href="${(0,n.escapeHTML)(a)}" rel="${s}" target="${o}">${(0,n.escapeHTML)(e)}</a>`,e=r.default.sanitize(e,{ADD_ATTR:[`target`]})),this.elements.textPath.innerHTML=e;let c=this.elements.svg.querySelector(`#${this.textPathId}-clone`);if(c&&c.remove(),this.shouldReverseText()){let t=this.elements.textPath.cloneNode();t.id+=`-clone`,t.classList.add(`elementor-hidden`),t.textContent=e,this.elements.textPath.parentNode.appendChild(t),this.reverseToRTL()}}isRTL(){let{text_path_direction:e}=this.getElementSettings(),t=elementorFrontend.config.is_rtl;return e&&(t=e===`rtl`),t}shouldReverseText(){return!this.isRTL()||elementorFrontend.utils.environment.firefox?!1:!elementorFrontend.utils.environment.blink||!this.isFixedChromiumVersion()}isFixedChromiumVersion(){return parseInt(navigator.userAgent.match(/(?:Chrom(?:e|ium)|Edg)\/([0-9]+)\./)[1])>=96}reverseToRTL(){let e=this.elements.textPath;e=e.querySelector(`a`)||e,e.textContent=e.textContent.replace(/([\u0591-\u07FF\u200F\u202B\u202E\uFB1D-\uFDFD\uFE70-\uFEFC\s$&+,:;=?@#|'<>.^*()%!-]+)/gi,e=>e.split(``).reverse().join(``)),e.setAttribute(`aria-hidden`,!0)}};e.default=TextPathHandler}))());(window.__elementorChunks=window.__elementorChunks||{})[`text-path`]=l})();