← Back
Editing: fluentform_transactions_ui.js
/*! For license information please see fluentform_transactions_ui.js.LICENSE.txt */ (()=>{"use strict";function t(t,e){this.v=t,this.k=e}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,n)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){var n,o;function r(n,o){try{var a=e[n](o),l=a.value,c=l instanceof t;Promise.resolve(c?l.v:l).then(function(t){if(c){var o="return"===n&&l.k?n:"next";if(!l.k||t.done)return r(o,t);t=e[o](t).value}i(!!a.done,t)},function(t){r("throw",t)})}catch(t){i(2,t)}}function i(t,e){2===t?n.reject(e):n.resolve({value:e,done:t}),(n=n.next)?r(n.key,n.arg):o=null}this._invoke=function(t,e){return new Promise(function(i,a){var l={key:t,arg:e,resolve:i,reject:a,next:null};o?o=o.next=l:(n=o=l,r(t,e))})},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(t){return this._invoke("next",t)},o.prototype.throw=function(t){return this._invoke("throw",t)},o.prototype.return=function(t){return this._invoke("return",t)};const r=Object.entries,i=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let s=Object.freeze,u=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,m=p.apply,d=p.construct;s||(s=function(t){return t}),u||(u=function(t){return t}),m||(m=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),d||(d=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const h=F(Array.prototype.forEach);Array.prototype.indexOf;const y=F(Array.prototype.lastIndexOf),g=F(Array.prototype.pop),b=F(Array.prototype.push),_=F(Array.prototype.slice),S=F(Array.prototype.splice),v=Array.isArray,A=j(Set),w=F(Set.prototype.add),T=F(Set.prototype.has),E=F(String.prototype.toLowerCase),x=F(String.prototype.toString),O=F(String.prototype.match),N=F(String.prototype.replace),k=F(String.prototype.indexOf),D=F(String.prototype.trim),C=F(Number.prototype.toString),R=F(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),L=F(Object.prototype.hasOwnProperty),M=F(Object.prototype.toString),P=F(RegExp.prototype.test),U=j(TypeError);function F(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return m(t,e,o)}}function j(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return d(t,n)}}function H(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(i&&i(t,null),!v(e))return t;let o=e.length;for(;o--;){let r=e[o];if("string"==typeof r){const t=n(r);t!==r&&(a(e)||(e[o]=t),r=t)}t[r]=!0}return t}function B(t){for(let e=0;e<t.length;e++)L(t,e)||(t[e]=null);return t}function W(t){const e=f(null);for(const i of r(t)){var o=n(i,2);const r=o[0],a=o[1];L(t,r)&&(v(a)?e[r]=B(a):a&&"object"==typeof a&&a.constructor===Object?e[r]=W(a):e[r]=a)}return e}function Y(t,e){for(;null!==t;){const n=c(t,e);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}t=l(t)}return function(){return null}}const G=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"]),q=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"]),$=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"]),J=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"]),K=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"]),X=s(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=s(["#text"]),V=s(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","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"]),Q=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","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),tt=s(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),et=s(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nt=u(/{{[\w\W]*|^[\w\W]*}}/g),ot=u(/<%[\w\W]*|^[\w\W]*%>/g),rt=u(/\${[\w\W]*/g),it=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),at=u(/^aria-[\-\w]+$/),lt=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ct=u(/^(?:\w+script|data):/i),st=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ut=u(/^html$/i),ft=u(/^[a-z][.\w]*(-[.\w]+)+$/i),pt=u(/<[/\w!]/g),mt=u(/<[/\w]/g),dt=u(/<\/no(script|embed|frames)/i),ht=u(/\/>/i),yt=1,gt=3,bt=7,_t=8,St=9,vt=11,At=s(H({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),wt=function(){return"undefined"==typeof window?null:window},Tt=function(t,e,n,o){return L(t,e)&&v(t[e])?H(o.base?W(o.base):{},t[e],o.transform):n},Et=function(t,e,n){const o=L(t,e)?t[e]:void 0;return o&&"object"==typeof o?W(o):n()};var xt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wt();const n=e=>t(e);if(n.version="3.4.17",n.removed=[],!e||!e.document||e.document.nodeType!==St||!e.Element)return n.isSupported=!1,n;let o=e.document;const i=o,a=i.currentScript;e.DocumentFragment;const p=e.HTMLTemplateElement,m=e.Node,d=e.Element,j=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const B=e.DOMParser,xt=e.trustedTypes,Ot=d.prototype,Nt=Y(Ot,"cloneNode"),kt=Y(Ot,"remove"),Dt=Y(Ot,"removeAttributeNode"),Ct=Y(Ot,"nextSibling"),Rt=Y(Ot,"childNodes"),It=Y(Ot,"parentNode"),zt=Y(Ot,"shadowRoot"),Lt=Y(Ot,"attributes"),Mt=m&&m.prototype?Y(m.prototype,"nodeType"):null,Pt=m&&m.prototype?Y(m.prototype,"nodeName"):null,Ut=m&&m.prototype?Y(m.prototype,"ownerDocument"):null,Ft=function(t){return Mt?Mt(t):t.nodeType},jt=function(t){return Pt?Pt(t):t.nodeName},Ht=function(t,e){for(;null!==t;){const n=c(t,e);if(n)return n.get?F(n.get):null;t=l(t)}return null}(Ot,"namespaceURI"),Bt=function(t){return Ht?Ht(t):t.namespaceURI};if("function"==typeof p){const t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let Wt,Yt,Gt="",qt=!1,$t=0;const Jt=function(){if($t>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Kt=function(t){Jt(),$t++;try{return Wt.createHTML(t)}finally{$t--}},Xt=function(){return qt||(Yt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(xt,a),qt=!0),Yt},Zt=o,Vt=Zt.implementation,Qt=Zt.createNodeIterator,te=Zt.createDocumentFragment,ee=Zt.getElementsByTagName,ne=i.importNode;let oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof r&&"function"==typeof It&&Vt&&void 0!==Vt.createHTMLDocument;const re=nt,ie=ot,ae=rt,le=it,ce=at,se=ct,ue=st,fe=ft;let pe=lt,me=null;const de=H({},[...G,...q,...$,...K,...Z]);let he=null;const ye=H({},[...V,...Q,...tt,...et]);let ge=Object.seal(f(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}})),be=null,_e=null;const Se=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ve=!0,Ae=!0,we=!1,Te=!0,Ee=!1,xe=!0,Oe=!1,Ne=!1,ke=null,De=null,Ce=!1,Re=!1,Ie=!1,ze=!1,Le=!0,Me=!1;const Pe="user-content-";let Ue=!0,Fe=!1,je=null,He={},Be=null;const We=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Ge=H({},["audio","video","img","source","image","track"]);let qe=null;const $e=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ze=Xe,Ve=!1,Qe=null;const tn=H({},[Je,Ke,Xe],x),en=s(["mi","mo","mn","ms","mtext"]);let nn=H({},en);const on=s(["annotation-xml"]);let rn=H({},on);const an=H({},["title","style","font","a","script"]);let ln=null;const cn=["application/xhtml+xml","text/html"];let sn=null,un=null;const fn=o.createElement("form"),pn=function(t){return t instanceof RegExp||t instanceof Function},mn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(un&&un===t)return;t&&"object"==typeof t||(t={}),t=W(t),ln=-1===cn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,sn="application/xhtml+xml"===ln?x:E,me=Tt(t,"ALLOWED_TAGS",de,{transform:sn}),he=Tt(t,"ALLOWED_ATTR",ye,{transform:sn}),Qe=Tt(t,"ALLOWED_NAMESPACES",tn,{transform:x}),qe=Tt(t,"ADD_URI_SAFE_ATTR",$e,{transform:sn,base:$e}),Ye=Tt(t,"ADD_DATA_URI_TAGS",Ge,{transform:sn,base:Ge}),Be=Tt(t,"FORBID_CONTENTS",We,{transform:sn}),be=Tt(t,"FORBID_TAGS",W({}),{transform:sn}),_e=Tt(t,"FORBID_ATTR",W({}),{transform:sn}),He=!!L(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?W(t.USE_PROFILES):t.USE_PROFILES),ve=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,we=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ee=t.SAFE_FOR_TEMPLATES||!1,xe=!1!==t.SAFE_FOR_XML,Oe=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,Ce=t.FORCE_BODY||!1,Le=!1!==t.SANITIZE_DOM,Me=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Fe=t.IN_PLACE||!1,pe=function(t){try{return P(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:lt,Ze="string"==typeof t.NAMESPACE?t.NAMESPACE:Xe,nn=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>H({},en)),rn=Et(t,"HTML_INTEGRATION_POINTS",()=>H({},on));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(ge=f(null),L(e,"tagNameCheck")&&pn(e.tagNameCheck)&&(ge.tagNameCheck=e.tagNameCheck),L(e,"attributeNameCheck")&&pn(e.attributeNameCheck)&&(ge.attributeNameCheck=e.attributeNameCheck),L(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ge.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),u(ge),Ee&&(Ae=!1),Ie&&(Re=!0),He&&(me=H({},Z),he=f(null),!0===He.html&&(H(me,G),H(he,V)),!0===He.svg&&(H(me,q),H(he,Q),H(he,et)),!0===He.svgFilters&&(H(me,$),H(he,Q),H(he,et)),!0===He.mathMl&&(H(me,K),H(he,tt),H(he,et))),Se.tagCheck=null,Se.attributeCheck=null,L(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Se.tagCheck=t.ADD_TAGS:v(t.ADD_TAGS)&&(me===de&&(me=W(me)),H(me,t.ADD_TAGS,sn))),L(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Se.attributeCheck=t.ADD_ATTR:v(t.ADD_ATTR)&&(he===ye&&(he=W(he)),H(he,t.ADD_ATTR,sn))),L(t,"ADD_FORBID_CONTENTS")&&v(t.ADD_FORBID_CONTENTS)&&(Be===We&&(Be=W(Be)),H(Be,t.ADD_FORBID_CONTENTS,sn)),Ue&&(me["#text"]=!0),Oe&&H(me,["html","head","body"]),me.table&&(H(me,["tbody"]),delete be.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Wt;Wt=t.TRUSTED_TYPES_POLICY;try{Gt=Kt("")}catch(t){throw Wt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Wt=void 0,Gt=""):(void 0===Wt&&(Wt=Xt()),Wt&&"string"==typeof Gt&&(Gt=Kt("")));s&&s(t),un=t},dn=H({},[...q,...$,...J]),hn=H({},[...K,...X]),yn=function(t){const e=Bt(t),n=E(jt(t)),o=It(t);let r,i;return o&&Ft(o)===yt?(r={namespaceURI:Bt(o)},i=E(jt(o))):(r={namespaceURI:Ze},i="template"),!!Qe[e]&&(e===Ke?function(t,e,n){return e.namespaceURI===Xe?"svg"===t:e.namespaceURI===Je?"svg"===t&&("annotation-xml"===n||nn[n]):Boolean(dn[t])}(n,r,i):e===Je?function(t,e,n){return e.namespaceURI===Xe?"math"===t:e.namespaceURI===Ke?"math"===t&&rn[n]:Boolean(hn[t])}(n,r,i):e===Xe?function(t,e,n){return!(e.namespaceURI===Ke&&!rn[n])&&!(e.namespaceURI===Je&&!nn[n])&&!hn[t]&&(an[t]||!dn[t])}(n,r,i):!("application/xhtml+xml"!==ln||!Qe[e]))},gn=function(t){b(n.removed,{element:t});try{It(t).removeChild(t)}catch(e){if(kt(t),!It(t))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},bn=function(t,e,n){try{Dt(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},_n=function(t){wn(t);const e=Rt(t);e&&h(_(e),t=>{try{kt(t)}catch(t){}});const n=Ft(t)===yt?Lt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&bn(t,o,r)}},Sn=function(t,e,o){if(!o)try{o=e.getAttributeNode(t)}catch(t){o=null}b(n.removed,{attribute:o||null,from:e});try{o?Dt(e,o):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(Re||Ie)try{gn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},vn=function(t){const e=Lt(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||he[sn(r)]||bn(t,o,r)}},An=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[t];for(;o.length>0;){const t=o.pop();if(!1===e(t))continue;if(n&&Ft(t)===yt){const e=zt(t);zn(e)&&o.push(e)}const r=Rt(t);if(r)for(let t=r.length-1;t>=0;--t)o.push(r[t])}},wn=function(t){An(t,t=>{Ft(t)===yt&&vn(t)})},Tn=function(t){const e=[];return An(t,t=>{e.push(t)},!0),e},En=function(t,e){let o=!1;return h(n.removed,e=>{e.element&&(o=o||e.element===t,wn(e.element))}),function(t,e){const n=A();h(Tn(t),t=>{Ft(t)===yt&&w(n,t)}),h(e,t=>{Ft(t)!==yt||T(n,t)||vn(t)})}(t,e),o},xn=function(t,e,n,o){const r=kn(t);let i;for(;i=r.nextNode();)T(o,i)&&!T(je,i)&&(e&&Mn(oe.uponSanitizeShadowNode,i,null),jn(i,n),$n(i,n),zn(i.content)&&Jn(i.content))},On=function(t,e){return!!xe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},Nn=function(t){let e=null,n=null;if(Ce)t="<remove></remove>"+t;else{const e=O(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ln&&Ze===Xe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=Wt?Kt(t):t;if(Ze===Xe)try{e=(new B).parseFromString(r,ln)}catch(t){}if(!e||!e.documentElement){e=Vt.createDocument(Ze,"template",null);try{e.documentElement.innerHTML=Ve?Gt:r}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(o.createTextNode(n),i.childNodes[0]||null),Ze===Xe?ee.call(e,Oe?"html":"body")[0]:Oe?e.documentElement:i},kn=function(t){const e=Ut?Ut(t):t.ownerDocument;return Qt.call(e||t,t,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT|j.SHOW_PROCESSING_INSTRUCTION|j.SHOW_CDATA_SECTION,null)},Dn=function(t){return t=N(t,re," "),t=N(t,ie," "),t=N(t,ae," ")},Cn=function(t){var e;Rn(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&h(n,t=>{zn(t.content)&&Cn(t.content)})},Rn=function(t){t.normalize();const e=Ut?Ut(t):t.ownerDocument,n=Qt.call(e||t,t,j.SHOW_TEXT|j.SHOW_COMMENT|j.SHOW_CDATA_SECTION|j.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=Dn(o.data),o=n.nextNode()},In=function(t){const e=Pt?Pt(t):null;return"string"==typeof e&&("form"===sn(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Lt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Mt(t)||t.childNodes!==Rt(t)))},zn=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return Mt(t)===vt}catch(t){return!1}},Ln=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Mt(t)}catch(t){return!1}};function Mn(t,e,o){0!==t.length&&h(t,t=>{t.call(n,e,o,un)})}const Pn=function(t,e){if(t instanceof RegExp)return P(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},Un=function(t,e,n,o){return 0===t.length?e:e===n||e===o?W(e):e},Fn=function(t,e){return t!==e&&null===It(t)&&(Fe&&wn(t),!0)},jn=function(t,e){var o;if(o=t,je&&w(je,o),Mn(oe.beforeSanitizeElements,t,null),Fn(t,e))return!0;if(In(t))return gn(t),!0;const r=sn(jt(t));if(me=Un(oe.uponSanitizeElement,me,de,ke),Mn(oe.uponSanitizeElement,t,{tagName:r,allowedTags:me}),Fn(t,e))return!0;if(function(t,e){return!!(xe&&t.hasChildNodes()&&!Ln(t.firstElementChild)&&P(pt,t.textContent)&&P(pt,t.innerHTML))||!!(xe&&At[e]&&Ft(t)===yt&&Bt(t)===Xe&&(Ln(t.firstElementChild)||"string"==typeof t.textContent&&P(pt,t.textContent)))||t.nodeType===bt||!(!xe||t.nodeType!==_t||!P(mt,t.data))}(t,r))return gn(t),!0;if(be[r]||!(Se.tagCheck instanceof Function&&Se.tagCheck(r))&&!me[r]){const n=function(t,e,n){if(!be[e]&&Wn(e)&&Pn(ge.tagNameCheck,e))return!1;if(Ue&&!Be[e]&&!Be[E(e)]){const e=It(t),o=Rt(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?Nt(o[r],!0):o[r];e.insertBefore(i,Ct(t))}}return gn(t),!0}(t,r,e);return!(!1!==n||(Mn(oe.afterSanitizeElements,t,null),!Fn(t,e)))||n}if(Ft(t)===yt&&!yn(t))return gn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&P(dt,t.innerHTML))return gn(t),!0;if(Ee&&t.nodeType===gt){const e=Dn(t.textContent);t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)}return Mn(oe.afterSanitizeElements,t,null),Fn(t,e)},Hn=function(t,e,n){if(_e[e])return!1;if(On(e,t))return!1;if(Le&&("id"===e||"name"===e)&&(n in o||n in fn))return!1;const r=he[e]||Se.attributeCheck instanceof Function&&Se.attributeCheck(e,t);return!(!Ae||!P(le,e))||(!(!ve||!P(ce,e))||(r?!!qe[e]||(!!P(pe,N(n,ue,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==k(n,"data:")||!Ye[t])||(!(!we||P(se,N(n,ue,"")))||!n))):Wn(t)&&Pn(ge.tagNameCheck,t)&&Pn(ge.attributeNameCheck,e,t)||"is"===e&&ge.allowCustomizedBuiltInElements&&Pn(ge.tagNameCheck,n)))},Bn=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wn=function(t){return!Bn[E(t)]&&P(fe,t)},Yn=function(t,e,n,o){if(Wt&&"object"==typeof xt&&"function"==typeof xt.getAttributeType&&!n)switch(xt.getAttributeType(t,e)){case"TrustedHTML":return Kt(o);case"TrustedScriptURL":return function(t){Jt(),$t++;try{return Wt.createScriptURL(t)}finally{$t--}}(o)}return o},Gn=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),!In(t)||(gn(t),!1)}catch(n){return Sn(e,t),!1}},qn=function(t,e){return!(!xe||!P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===E(t)&&null!==O(e,"href")},$n=function(t,e){if(Mn(oe.beforeSanitizeAttributes,t,null),Fn(t,e))return;const o=t.attributes;if(!o||In(t))return;he=Un(oe.uponSanitizeAttribute,he,ye,De);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0};let i=o.length;const a=sn(t.nodeName);for(;i--;){const e=o[i],l=e.name,c=e.namespaceURI,s=e.value,u=sn(l),f=s;let p="value"===l?f:D(f),m=!1;r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Mn(oe.uponSanitizeAttribute,t,r),p=r.attrValue,!Me||"id"!==u&&"name"!==u||0===k(p,Pe)||(Sn(l,t,e),p=Pe+p,m=!0),qn(l,p)?Sn(l,t,e):r.forceKeepAttr||(r.keepAttr&&(Te||!P(ht,p))?(Ee&&(p=Dn(p)),Hn(a,u,p)?(p=Yn(a,u,c,p),p!==f&&Gn(t,l,c,p)&&m&&g(n.removed)):Sn(l,t,e)):Sn(l,t,e))}Mn(oe.afterSanitizeAttributes,t,null),Fn(t,e)},Jn=function(t){let e=null;const n=kn(t);for(Mn(oe.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Mn(oe.uponSanitizeShadowNode,e,null),jn(e,t),$n(e,t),zn(e.content)&&Jn(e.content),Ft(e)===yt){const t=zt(e);zn(t)&&(Kn(t),Jn(t))}Ee&&Rn(t),Mn(oe.afterSanitizeShadowDOM,t,null)},Kn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Jn(t.shadow);continue}const n=t.node,o=Ft(n)===yt,r=Rt(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=Pt?Pt(n):null;if("string"==typeof t&&"template"===sn(t)){const t=n.content;zn(t)&&e.push({node:t,shadow:null})}}if(o){const t=zt(n);zn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,r=null,a=null,l=null;if(Ve=!t,Ve&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ln(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return C(t);case"boolean":return R(t);case"bigint":return I?I(t):"0";case"symbol":return z?z(t):"Symbol()";case"undefined":default:return M(t);case"function":case"object":{if(null===t)return M(t);const e=t,n=Y(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:M(t)}return M(t)}}}(t)))throw U("dirty is not a string, aborting");if(!n.isSupported)return t;Ne?(me=ke,he=De):mn(e),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(me=W(me)),oe.uponSanitizeAttribute.length>0&&(he=W(he)),n.removed=[];const c=Fe&&"string"!=typeof t&&Ln(t);let s=[];const u=je;if(c){f=t,xe&&An(f,t=>{const e=Ft(t);if(e===bt||e===_t&&P(mt,t.data)){try{kt(t)}catch(t){}return!1}if(e===yt){const e=t,n=sn(jt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&On("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=jt(t);if("string"==typeof e){const n=sn(e);if(!me[n]||be[n])throw _n(t),U("root node is forbidden and cannot be sanitized in-place")}if(In(t))throw _n(t),U("root node is clobbered and cannot be sanitized in-place");s=Tn(t),je=A()}else if(Ln(t))o=Nn("\x3c!----\x3e"),r=o.ownerDocument.importNode(t,!0),r.nodeType===yt&&"BODY"===r.nodeName||"HTML"===r.nodeName?o=r:o.appendChild(r),Kn(o);else{if(!Re&&!Ee&&!Oe&&-1===t.indexOf("<"))return Wt&&ze?Kt(t):t;if(o=Nn(t),!o)return Re?null:ze?Gt:""}var f;o&&Ce&&gn(o.firstChild);const p=c?t:o;try{c&&Kn(t);const e=kn(p);for(;a=e.nextNode();)jn(a,p),$n(a,p),zn(a.content)&&Jn(a.content);c&&function(t,e){const n=je;let o=null;const r=()=>(o||(o=A(),h(e,t=>{w(o,t)})),o);for(let e=0;;e++){const o=Tn(t),i=[t];let a=!1;if(h(o,t=>{Ft(t)===vt?b(i,t):a||T(n,t)||(a=T(r(),t))}),!a)return;if(e>=8)throw U("the tree kept changing during in-place sanitization; refusing to return it");h(i,(e,n)=>{xn(e,n>0,t,r())})}}(t,s)}catch(e){throw c&&(_n(t),En(t,s)),e}finally{je=u}if(c){if(En(t,s))throw U("a node selected for removal could not be safely returned; refusing to sanitize in place");return Ee&&Cn(t),t}if(Re){if(Ee&&Cn(o),Ie)for(l=te.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return(he.shadowroot||he.shadowrootmode)&&(l=ne.call(i,l,!0)),l}let m=Oe?o.outerHTML:o.innerHTML;return Oe&&me["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&P(ut,o.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+m),Ee&&(m=Dn(m)),Wt&&ze?Kt(m):m},n.setConfig=function(){mn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ne=!0,ke=me,De=he},n.clearConfig=function(){un=null,Ne=!1,ke=null,De=null,Wt=Yt,Gt=""},n.isValidAttribute=function(t,e,n){un||mn({});const o=sn(t),r=sn(e);return("string"!=typeof n||!(qn(e,n)||!Te&&P(ht,n)))&&Hn(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&L(oe,t)&&b(oe[t],e)},n.removeHook=function(t,e){if(L(oe,t)){if(void 0!==e){const n=y(oe[t],e);return-1===n?void 0:S(oe[t],n,1)[0]}return g(oe[t])}},n.removeHooks=function(t){L(oe,t)&&(oe[t]=[])},n.removeAllHooks=function(){oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Ot=["_blank","_self","_parent","_top"],Nt=["_self","_top","_parent"],kt=/^[A-Za-z][A-Za-z0-9_.-]*$/,Dt=/^[A-Za-z][A-Za-z-]*$/,Ct=["noopener"];function Rt(t){var e=t&&"string"==typeof t.tagName?t.tagName.toUpperCase():"";return"A"===e||"AREA"===e}var It,zt=xt(window);zt.addHook("uponSanitizeAttribute",function(t,e){var n,o;"target"===e.attrName&&Rt(t)&&(n=e.attrValue,o=String(n||"").trim(),(Ot.includes(o.toLowerCase())||kt.test(o))&&(e.forceKeepAttr=!0))}),zt.addHook("afterSanitizeAttributes",function(t){if(Rt(t)&&"function"==typeof t.getAttribute&&"function"==typeof t.setAttribute){var e=t.getAttribute("target");if(e&&!Nt.includes(e.trim().toLowerCase())){var n=(t.getAttribute("rel")||"").split(/\s+/).filter(function(t){return Dt.test(t)});Ct.forEach(function(t){n.includes(t)||n.push(t)}),t.setAttribute("rel",n.join(" "))}}}),jQuery(document).ready(((It=jQuery)(".ff_show_payments").on("click",function(t){t.preventDefault(),It(".ff_sub_cancel_confirmation").hide();var e=It(this),n=e.data("subscription_id"),o=e.closest(".ff_subscription").find(".ff_subscription_payments");if(e.attr("data-got_payments"))return e.attr("data-got_payments",""),void o.removeClass("ff_has_payments").html("");o.html("Fetching Payments..."),function(t,e,n){e.addClass("ff_payments_fetching").prop("disabled",!0),jQuery.get(window.ff_transactions_vars.ajax_url,{subscription_id:t,action:"fluentform_user_payment_endpoints",route:"get_subscription_transactions",_nonce:window.ff_transactions_vars.nonce}).then(function(t){n(t.data.html,"success")}).catch(function(t){t.responseJSON?t.responseJSON.data?n(t.responseJSON.data.message):n("Could not fetch the payments. Please try again"):n(t.responseText)}).always(function(){e.removeClass("ff_payments_fetching").prop("disabled",!1)})}(n,e,function(t,n){var r;n?e.attr("data-got_payments","yes"):e.attr("data-got_payments",""),o.addClass("ff_has_payments").html(null==(r=t)?"":zt.sanitize(String(r)))})}),It(".ff_cancel_subscription").on("click",function(t){t.preventDefault(),It(".ff_subscription_payments").html("").removeClass("ff_has_payments");var e=It(this),n=e.data("subscription_id"),o=e.closest(".ff_subscription").find(".ff_sub_cancel_confirmation");o.find(".ff_confirm_subscription_cancel").attr("data-subscription_id",n),o.show()}),It(".ff_confirm_subscription_cancel").on("click",function(){var t=It(this),e=t.data("subscription_id");t.prop("disabled",!0);var n=t.closest(".ff_sub_cancel_confirmation").find(".ff_sub_message_notices");n.html("Sending Request Please wait..."),jQuery.post(window.ff_transactions_vars.ajax_url,{subscription_id:e,action:"fluentform_user_payment_endpoints",route:"cancel_transaction",_nonce:window.ff_transactions_vars.nonce}).then(function(t){n.text(t.message),setTimeout(function(){window.location.reload()},1e3)}).catch(function(t){var e="Request failed. Please try again";t.responseJSON?t.responseJSON.data&&(e=t.responseJSON.data.message):e=t.responseText,n.text(e)}).always(function(){t.prop("disabled",!1)})}),void It(".ff_cancel_close").on("click",function(){It(".ff_sub_cancel_confirmation").hide()})))})();
Save File
Cancel