/*! For license information please see settings.js.LICENSE.txt */ (()=>{var e={2926:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var o,r,a=[],s=!0,d=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(a.push(o.value),!t||a.length!==t);s=!0);}catch(e){d=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(d)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:v;if(null===e||g(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;throw new Error(n)},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;if(function(e){return g(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return S(e,t)}))};var n=S(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},C=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"3.7.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.7.0",url:"https://stripe.com/docs/stripe-js/react"}))},E=t.createContext(null);E.displayName="ElementsContext";var k=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},T=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return x(n)}),[n]),s=d(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,elements:"sync"===a.tag?a.stripe.elements(o):null}})),2),i=s[0],c=s[1];t.useEffect((function(){var e=!0,t=function(e){c((function(t){return t.stripe?t:{stripe:e,elements:e.elements(o)}}))};return"async"!==a.tag||i.stripe?"sync"!==a.tag||i.stripe||t(a.stripe):a.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[a,i,o]);var l=f(n);t.useEffect((function(){null!==l&&l!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[l,n]);var u=f(o);return t.useEffect((function(){if(i.elements){var e=b(o,u,["clientSecret","fonts"]);e&&i.elements.update(e)}}),[o,u,i.elements]),t.useEffect((function(){C(i.stripe)}),[i.stripe]),t.createElement(E.Provider,{value:i},r)};T.propTypes={stripe:y.any,options:y.object};var j=function(e){var n=t.useContext(E);return k(n,e)},N=function(e){return(0,e.children)(j("mounts "))};N.propTypes={children:y.func.isRequired};var A=["on","session"],R=t.createContext(null);R.displayName="CheckoutSdkContext";var I=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an provider."));return e},P=t.createContext(null);P.displayName="CheckoutContext";var M=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return x(n,"Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),i=d(t.useState(null),2),c=i[0],l=i[1],u=d(t.useState((function(){return{stripe:"sync"===a.tag?a.stripe:null,checkoutSdk:null}})),2),m=u[0],p=u[1],h=function(e,t){p((function(n){return n.stripe&&n.checkoutSdk?n:{stripe:e,checkoutSdk:t}}))},y=t.useRef(!1);t.useEffect((function(){var e=!0;return"async"!==a.tag||m.stripe?"sync"===a.tag&&a.stripe&&!y.current&&(y.current=!0,a.stripe.initCheckout(o).then((function(e){e&&(h(a.stripe,e),e.on("change",l))}))):a.stripePromise.then((function(t){t&&e&&!y.current&&(y.current=!0,t.initCheckout(o).then((function(e){e&&(h(t,e),e.on("change",l))})))})),function(){e=!1}}),[a,m,o,l]);var _=f(n);t.useEffect((function(){null!==_&&_!==n&&console.warn("Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[_,n]);var g=f(o),$=f(m.checkoutSdk);t.useEffect((function(){var e,t;if(m.checkoutSdk){var n=null==g||null===(e=g.elementsOptions)||void 0===e?void 0:e.appearance,r=null==o||null===(t=o.elementsOptions)||void 0===t?void 0:t.appearance,a=!w(r,n),s=!$&&m.checkoutSdk;r&&(a||s)&&m.checkoutSdk.changeAppearance(r)}}),[o,g,m.checkoutSdk,$]),t.useEffect((function(){C(m.stripe)}),[m.stripe]);var b=t.useMemo((function(){return function(e,t){if(!e)return null;e.on,e.session;var n=s(e,A);return t?Object.assign(t,n):Object.assign(e.session(),n)}(m.checkoutSdk,c)}),[m.checkoutSdk,c]);return m.checkoutSdk?t.createElement(R.Provider,{value:m},t.createElement(P.Provider,{value:b},r)):null};M.propTypes={stripe:y.any,options:y.shape({fetchClientSecret:y.func.isRequired,elementsOptions:y.object}).isRequired};var O=function(e){var n=t.useContext(R),o=t.useContext(E);if(n&&o)throw new Error("You cannot wrap the part of your app that ".concat(e," in both and providers."));return n?I(n,e):k(o,e)},L=["mode"],D=function(e,n){var o,r="".concat((o=e).charAt(0).toUpperCase()+o.slice(1),"Element"),a=n?function(e){O("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,a=n.id,i=n.className,c=n.options,l=void 0===c?{}:c,u=n.onBlur,m=n.onFocus,p=n.onReady,h=n.onChange,y=n.onEscape,g=n.onClick,$=n.onLoadError,w=n.onLoaderStart,v=n.onNetworksChange,S=n.onConfirm,x=n.onCancel,C=n.onShippingAddressChange,E=n.onShippingRateChange,k=O("mounts <".concat(r,">")),T="elements"in k?k.elements:null,j="checkoutSdk"in k?k.checkoutSdk:null,N=d(t.useState(null),2),A=N[0],R=N[1],I=t.useRef(null),P=t.useRef(null);_(A,"blur",u),_(A,"focus",m),_(A,"escape",y),_(A,"click",g),_(A,"loaderror",$),_(A,"loaderstart",w),_(A,"networkschange",v),_(A,"confirm",S),_(A,"cancel",x),_(A,"shippingaddresschange",C),_(A,"shippingratechange",E),_(A,"change",h),p&&(o="expressCheckout"===e?p:function(){p(A)}),_(A,"ready",o),t.useLayoutEffect((function(){if(null===I.current&&null!==P.current&&(T||j)){var t=null;if(j)switch(e){case"payment":t=j.createPaymentElement(l);break;case"address":if(!("mode"in l))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var n=l.mode,o=s(l,L);if("shipping"===n)t=j.createShippingAddressElement(o);else{if("billing"!==n)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=j.createBillingAddressElement(o)}break;case"expressCheckout":t=j.createExpressCheckoutElement(l);break;case"currencySelector":t=j.createCurrencySelectorElement();break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the , , , or ."))}else T&&(t=T.create(e,l));I.current=t,R(t),t&&t.mount(P.current)}}),[T,j,l]);var M=f(l);return t.useEffect((function(){if(I.current){var e=b(l,M,["paymentRequest"]);e&&"update"in I.current&&I.current.update(e)}}),[l,M]),t.useLayoutEffect((function(){return function(){if(I.current&&"function"==typeof I.current.destroy)try{I.current.destroy(),I.current=null}catch(e){}}}),[]),t.createElement("div",{id:a,className:i,ref:P})};return a.propTypes={id:y.string,className:y.string,onChange:y.func,onBlur:y.func,onFocus:y.func,onReady:y.func,onEscape:y.func,onClick:y.func,onLoadError:y.func,onLoaderStart:y.func,onNetworksChange:y.func,onConfirm:y.func,onCancel:y.func,onShippingAddressChange:y.func,onShippingRateChange:y.func,options:y.object},a.displayName=r,a.__elementType=e,a},F="undefined"==typeof window,B=t.createContext(null);B.displayName="EmbeddedCheckoutProviderContext";var U=function(){var e=t.useContext(B);if(!e)throw new Error(" must be used within ");return e},z=F?function(e){var n=e.id,o=e.className;return U(),t.createElement("div",{id:n,className:o})}:function(e){var n=e.id,o=e.className,r=U().embeddedCheckout,a=t.useRef(!1),s=t.useRef(null);return t.useLayoutEffect((function(){return!a.current&&r&&null!==s.current&&(r.mount(s.current),a.current=!0),function(){if(a.current&&r)try{r.unmount(),a.current=!1}catch(e){}}}),[r]),t.createElement("div",{ref:s,id:n,className:o})},H=D("auBankAccount",F),W=D("card",F),q=D("cardNumber",F),G=D("cardExpiry",F),V=D("cardCvc",F),Y=D("fpxBank",F),K=D("iban",F),Z=D("idealBank",F),J=D("p24Bank",F),Q=D("epsBank",F),X=D("payment",F),ee=D("expressCheckout",F),te=D("currencySelector",F),ne=D("paymentRequestButton",F),oe=D("linkAuthentication",F),re=D("address",F),ae=D("shippingAddress",F),se=D("paymentMethodMessaging",F),de=D("affirmMessage",F),ie=D("afterpayClearpayMessage",F);e.AddressElement=re,e.AffirmMessageElement=de,e.AfterpayClearpayMessageElement=ie,e.AuBankAccountElement=H,e.CardCvcElement=V,e.CardElement=W,e.CardExpiryElement=G,e.CardNumberElement=q,e.CheckoutProvider=M,e.CurrencySelectorElement=te,e.Elements=T,e.ElementsConsumer=N,e.EmbeddedCheckout=z,e.EmbeddedCheckoutProvider=function(e){var n=e.stripe,o=e.options,r=e.children,a=t.useMemo((function(){return x(n,"Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.")}),[n]),s=t.useRef(null),i=t.useRef(null),c=d(t.useState({embeddedCheckout:null}),2),l=c[0],u=c[1];t.useEffect((function(){if(!i.current&&!s.current){var e=function(e){i.current||s.current||(i.current=e,s.current=i.current.initEmbeddedCheckout(o).then((function(e){u({embeddedCheckout:e})})))};"async"!==a.tag||i.current||!o.clientSecret&&!o.fetchClientSecret?"sync"!==a.tag||i.current||!o.clientSecret&&!o.fetchClientSecret||e(a.stripe):a.stripePromise.then((function(t){t&&e(t)}))}}),[a,o,l,i]),t.useEffect((function(){return function(){l.embeddedCheckout?(s.current=null,l.embeddedCheckout.destroy()):s.current&&s.current.then((function(){s.current=null,l.embeddedCheckout&&l.embeddedCheckout.destroy()}))}}),[l.embeddedCheckout]),t.useEffect((function(){C(i)}),[i]);var m=f(n);t.useEffect((function(){null!==m&&m!==n&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.")}),[m,n]);var p=f(o);return t.useEffect((function(){null!=p&&(null!=o?(void 0===o.clientSecret&&void 0===o.fetchClientSecret&&console.warn("Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`."),null!=p.clientSecret&&o.clientSecret!==p.clientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.fetchClientSecret&&o.fetchClientSecret!==p.fetchClientSecret&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead."),null!=p.onComplete&&o.onComplete!==p.onComplete&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it."),null!=p.onShippingDetailsChange&&o.onShippingDetailsChange!==p.onShippingDetailsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it."),null!=p.onLineItemsChange&&o.onLineItemsChange!==p.onLineItemsChange&&console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.")):console.warn("Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them."))}),[p,o]),t.createElement(B.Provider,{value:l},r)},e.EpsBankElement=Q,e.ExpressCheckoutElement=ee,e.FpxBankElement=Y,e.IbanElement=K,e.IdealBankElement=Z,e.LinkAuthenticationElement=oe,e.P24BankElement=J,e.PaymentElement=X,e.PaymentMethodMessagingElement=se,e.PaymentRequestButtonElement=ne,e.ShippingAddressElement=ae,e.useCheckout=function(){!function(e){var n=t.useContext(R);I(n,e)}("calls useCheckout()");var e=t.useContext(P);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an provider.");return e},e.useElements=function(){return j("calls useElements()").elements},e.useStripe=function(){return O("calls useStripe()").stripe}}(t,n(1609))},2838:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,o,r){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,o){var r=[null];r.push.apply(r,n);var a=new(Function.bind.apply(e,r));return o&&t(a,o.prototype),a},n.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n1?n-1:0),r=1;r/gm),q=u(/\${[\w\W]*}/gm),G=u(/^data-[\-\w.\u00B7-\uFFFF]/),V=u(/^aria-[\-\w]+$/),Y=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=u(/^(?:\w+script|data):/i),Z=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=u(/^html$/i),Q=u(/^[a-z][.\w]*(-[.\w]+)+$/i),X=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),r=function(e){return t(e)};if(r.version="2.5.6",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var a=n.document,s=n.document,d=n.DocumentFragment,i=n.HTMLTemplateElement,c=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,y=n.HTMLFormElement,_=n.DOMParser,T=n.trustedTypes,ee=u.prototype,te=A(ee,"cloneNode"),ne=A(ee,"nextSibling"),oe=A(ee,"childNodes"),re=A(ee,"parentNode");if("function"==typeof i){var ae=s.createElement("template");ae.content&&ae.content.ownerDocument&&(s=ae.content.ownerDocument)}var se=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var o=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(o=n.currentScript.getAttribute(r));var a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(T,a),de=se?se.createHTML(""):"",ie=s,ce=ie.implementation,le=ie.createNodeIterator,ue=ie.createDocumentFragment,me=ie.getElementsByTagName,pe=a.importNode,he={};try{he=N(s).documentMode?s.documentMode:{}}catch(e){}var ye={};r.isSupported="function"==typeof re&&ce&&void 0!==ce.createHTMLDocument&&9!==he;var _e,fe,ge=H,$e=W,we=q,be=G,ve=V,Se=K,xe=Z,Ce=Q,Ee=Y,ke=null,Te=j({},[].concat(o(R),o(I),o(P),o(O),o(D))),je=null,Ne=j({},[].concat(o(F),o(B),o(U),o(z))),Ae=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,Ie=null,Pe=!0,Me=!0,Oe=!1,Le=!0,De=!1,Fe=!0,Be=!1,Ue=!1,ze=!1,He=!1,We=!1,qe=!1,Ge=!0,Ve=!1,Ye=!0,Ke=!1,Ze={},Je=null,Qe=j({},["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"]),Xe=null,et=j({},["audio","video","img","source","image","track"]),tt=null,nt=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",st=at,dt=!1,it=null,ct=j({},[ot,rt,at],b),lt=["application/xhtml+xml","text/html"],ut=null,mt=s.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(t){ut&&ut===t||(t&&"object"===e(t)||(t={}),t=N(t),_e=_e=-1===lt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===_e?b:w,ke="ALLOWED_TAGS"in t?j({},t.ALLOWED_TAGS,fe):Te,je="ALLOWED_ATTR"in t?j({},t.ALLOWED_ATTR,fe):Ne,it="ALLOWED_NAMESPACES"in t?j({},t.ALLOWED_NAMESPACES,b):ct,tt="ADD_URI_SAFE_ATTR"in t?j(N(nt),t.ADD_URI_SAFE_ATTR,fe):nt,Xe="ADD_DATA_URI_TAGS"in t?j(N(et),t.ADD_DATA_URI_TAGS,fe):et,Je="FORBID_CONTENTS"in t?j({},t.FORBID_CONTENTS,fe):Qe,Re="FORBID_TAGS"in t?j({},t.FORBID_TAGS,fe):{},Ie="FORBID_ATTR"in t?j({},t.FORBID_ATTR,fe):{},Ze="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Me=!1!==t.ALLOW_DATA_ATTR,Oe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,De=t.SAFE_FOR_TEMPLATES||!1,Fe=!1!==t.SAFE_FOR_XML,Be=t.WHOLE_DOCUMENT||!1,He=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,ze=t.FORCE_BODY||!1,Ge=!1!==t.SANITIZE_DOM,Ve=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,Ke=t.IN_PLACE||!1,Ee=t.ALLOWED_URI_REGEXP||Ee,st=t.NAMESPACE||at,Ae=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),De&&(Me=!1),We&&(He=!0),Ze&&(ke=j({},o(D)),je=[],!0===Ze.html&&(j(ke,R),j(je,F)),!0===Ze.svg&&(j(ke,I),j(je,B),j(je,z)),!0===Ze.svgFilters&&(j(ke,P),j(je,B),j(je,z)),!0===Ze.mathMl&&(j(ke,O),j(je,U),j(je,z))),t.ADD_TAGS&&(ke===Te&&(ke=N(ke)),j(ke,t.ADD_TAGS,fe)),t.ADD_ATTR&&(je===Ne&&(je=N(je)),j(je,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&j(tt,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(Je===Qe&&(Je=N(Je)),j(Je,t.FORBID_CONTENTS,fe)),Ye&&(ke["#text"]=!0),Be&&j(ke,["html","head","body"]),ke.table&&(j(ke,["tbody"]),delete Re.tbody),l&&l(t),ut=t)},yt=j({},["mi","mo","mn","ms","mtext"]),_t=j({},["foreignobject","annotation-xml"]),ft=j({},["title","style","font","a","script"]),gt=j({},I);j(gt,P),j(gt,M);var $t=j({},O);j($t,L);var wt=function(e){$(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=de}catch(t){e.remove()}}},bt=function(e,t){try{$(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){$(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!je[e])if(He||We)try{wt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(ze)e=""+e;else{var o=v(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===_e&&st===at&&(e=''+e+"");var r=se?se.createHTML(e):e;if(st===at)try{t=(new _).parseFromString(r,_e)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(st,"template",null);try{t.documentElement.innerHTML=dt?de:r}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),st===at?me.call(t,Be?"html":"body")[0]:Be?t.documentElement:a},St=function(e){return le.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null,!1)},xt=function(e){return e instanceof y&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Ct=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Et=function(e,t,n){ye[e]&&f(ye[e],(function(e){e.call(r,t,n,ut)}))},kt=function(e){var t;if(Et("beforeSanitizeElements",e,null),xt(e))return wt(e),!0;if(E(/[\u0080-\uFFFF]/,e.nodeName))return wt(e),!0;var n=fe(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:n,allowedTags:ke}),e.hasChildNodes()&&!Ct(e.firstElementChild)&&(!Ct(e.content)||!Ct(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return wt(e),!0;if("select"===n&&E(/