@lwrjs/client-modules 0.6.0-alpha.1 → 0.6.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle/prod/lwr/init/init.js +1 -1
- package/build/bundle/prod/lwr/lockerDefine/lockerDefine.js +1 -1
- package/build/bundle/prod/lwr/servicesESM/servicesESM.js +1 -1
- package/build/modules/lwr/init/init.js +7 -1
- package/build/modules/lwr/initSsr/initSsr.js +40 -0
- package/build/modules/lwr/lockerDefine/lockerDefine.js +5943 -4425
- package/build/modules/lwr/lockerSandbox/lockerSandbox.js +6076 -4536
- package/build/modules/lwr/metrics/metrics.js +19 -0
- package/build/modules/lwr/preInit/preInit.js +18 -0
- package/build/modules/lwr/profiler/profiler.js +57 -0
- package/build/modules/lwr/servicesESM/servicesESM.js +16 -1
- package/package.json +13 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{BOOTSTRAP_END as e}from"lwr/metrics";import{logOperationStart as o}from"lwr/profiler";import{createElement as t}from"lwc";function r(e,o){return t(e,{is:o})}function n(e){return e.replace(/\/v\/[a-zA-Z0-9-_.]+$/,"").replace("/","-").replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`))}const c=/-([a-z])/g;function l(e){return e.replace(c,(e=>e[1].toUpperCase()))}function i(t){if("undefined"!=typeof customElements&&"undefined"!=typeof document){const e=document.querySelector("[lwr-root]");t.forEach((([o,t])=>{const c=n(o);let i=document.body.querySelector(c);if(i){document.querySelectorAll(c).forEach((e=>{const o=r(c,t);for(const{name:t,value:r}of e.attributes){o.setAttribute(t,r);const e=l(t);e in o&&(o[e]=r)}for(;e.childNodes.length>0;)o.appendChild(e.childNodes[0]);if(e.parentElement.replaceChild(o,e),globalThis.performance){const e="lwr-bootstrap-on-app-init";globalThis.performance.measure(e)}}))}else i=r(c,t),e?e.appendChild(i):document.body.appendChild(i)}))}o({id:e})}export{l as getPropFromAttrName,i as init,n as toKebabCase};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const{apply:t,construct:e,deleteProperty:n,has:o,get:r,getPrototypeOf:i,set:c,setPrototypeOf:s,defineProperty:u,isExtensible:a,getOwnPropertyDescriptor:l,ownKeys:f,preventExtensions:p}=Reflect,{filter:d,includes:m,indexOf:y,join:h,slice:g,some:w}=Array.prototype,v=Array,{from:b,isArray:E}=Array,{push:T}=Array.prototype;function k(e,...n){const o=t(g,e,[0]),{length:r}=n;for(let e=0;e<r;e+=1){const r=n[e];t(T,o,E(r)?r:[r])}return o}function x(e,n){return t(m,e,[n])}function A(e,...n){return t(h,e,n)}function R(e,...n){return t(T,e,n)}function S(e,...n){return t(g,e,n)}const _=[],{create:L}=Object,{ownKeys:M,setPrototypeOf:P}=Reflect;function O(t){return"function"==typeof t||"object"==typeof t&&null!==t}function D(t){const e=M(t),n=L(null);for(let o=0,r=e.length;o<r;o+=1){const r=e[o];n[r]=t[r]}return n}function N(t){const e=M(t);for(let n=0,o=e.length;n<o;n+=1)P(t[e[n]],null);return t}const{__lookupGetter__:F,__lookupSetter__:I,hasOwnProperty:H}=Object.prototype,{assign:C,create:z,defineProperty:U,defineProperties:$,getOwnPropertyDescriptors:W,freeze:j,getOwnPropertyNames:B,getOwnPropertySymbols:V,keys:K,seal:q,isSealed:G,isFrozen:X,preventExtensions:Y}=Object;function Z(e,n){return null!=e&&t(H,e,[n])}function J(e,n){if(null!=e&&t(H,e,[n]))return t(F,e,[n])}function Q(e,n){if(null!=e&&t(H,e,[n]))return t(I,e,[n])}function tt(e,n){if(null!=e&&t(H,e,[n]))return e[n]}const et=Proxy,nt=Proxy.revocable;function ot(t){const e=nt(t,z(null));return e.revoke(),e.proxy}const rt=Error,it=RangeError,ct=TypeError;class st extends Error{}class ut extends st{}const{bind:at}=Function.prototype,{for:lt,iterator:ft}=Symbol,pt=lt("@@lockerLiveValue");function dt(t){return u(t,pt,{value:void 0,configurable:!1,enumerable:!1,writable:!1}),t}const{entries:mt,forEach:yt,set:ht}=Map.prototype,gt=Map;const wt=Math.min,{then:vt}=Promise.prototype;const bt=String,{charCodeAt:Et,includes:Tt,match:kt,replace:xt,slice:At,split:Rt,substring:St,startsWith:_t,toLowerCase:Lt,toUpperCase:Mt}=String.prototype;function Pt(e,n){return t(Et,e,[n])}function Ot(e,n){return t(kt,e,[n])}function Dt(e,n,o){return t(xt,e,[n,o])}function Nt(e,...n){return t(Rt,e,n)}function Ft(e,...n){return t(St,e,n)}function It(e,...n){return t(_t,e,n)}function Ht(e){return t(Lt,e,_)}function Ct(e){return t(Mt,e,_)}function zt(e){return e.length?`${Ct(e[0])}${function(e,...n){return t(At,e,n)}(e,1)}`:""}function Ut(t){try{return bt(t)}catch{return""}}function $t(t){return null==t?t:Ut(t)}const{test:Wt}=RegExp.prototype;function jt(e,n){return t(Wt,e,[Ut(n)])}function Bt(t){return t}function Vt(t,e){const n=t.length,o=e.length,r=wt(n,o),i=b(t);for(let n=0;n<r;n+=1)i[n]=e[n](t[n]);return i}const{add:Kt,delete:qt,has:Gt}=Set.prototype,Xt=Set;function Yt(e,n){return t(Gt,e,[n])}const{get:Zt,set:Jt}=WeakMap.prototype,Qt=WeakMap;function te(e,n){return t(Zt,e,[n])}function ee(e,n,o){return t(Jt,e,[n,o])}const ne=J(Attr.prototype,"name"),oe=J(Attr.prototype,"namespaceURI"),re=J(Attr.prototype,"ownerElement"),{get:ie,set:ce}=l(Attr.prototype,"value");function se(e){return t(ne,e,_)}function ue(e){return t(oe,e,_)}function ae(e){return t(re,e,_)}function le(e){return t(ie,e,_)}function fe(e,n){t(ce,e,[n])}const{get:pe,set:de}=l(Document.prototype,"cookie"),{createComment:me,createElement:ye,createElementNS:he,getElementById:ge}=Document.prototype,we=J(Document.prototype,"body"),ve=J(Document.prototype,"head"),{execCommand:be}=Document.prototype;function Ee(e){return t(we,e,_)}function Te(e,...n){return t(ye,e,n)}function ke(t,e){return`${xe(e)}${t}`}function xe(t){return`LSKey-${t}$`}const{attachShadow:Ae,insertAdjacentHTML:Re,setAttribute:Se,setAttributeNS:_e,setAttributeNode:Le}=Element.prototype,{closest:Me,getAttributeNode:Pe,getAttributeNodeNS:Oe,querySelector:De,removeAttributeNode:Ne,setAttributeNodeNS:Fe}=Element.prototype,{get:Ie,set:He}=l(Element.prototype,"innerHTML"),{get:Ce,set:ze}=l(Element.prototype,"outerHTML"),Ue=J(Element.prototype,"attributes");function $e(e){return t(Ie,e,_)}function We(e,n){t(He,e,[n])}function je(e,n){return t(De,e,[n])}function Be(e,n){return t(Pe,e,[n])}function Ve(e,n,o){return t(Oe,e,[n,o])}function Ke(e,n){return t(Ne,e,[n])}function qe(e,n,o){return t(Se,e,[n,o])}function Ge(e,n){return t(Le,e,[n])}function Xe(e,n){return t(Fe,e,[n])}const Ye=J(HTMLTemplateElement.prototype,"content");function Ze(e){return t(Ye,e,_)}const{appendChild:Je,cloneNode:Qe,isEqualNode:tn}=Node.prototype,en=J(Node.prototype,"childNodes"),nn=J(Node.prototype,"firstChild"),on=J(Node.prototype,"nodeName"),rn=J(Node.prototype,"ownerDocument"),cn=Q(Node.prototype,"textContent");function sn(e,n){return t(Je,e,[n])}function un(e){return t(en,e,_)}const{document:an}=window,ln=Te(an,"template"),fn=Te(an,"template");function pn(e,n){const o=e instanceof HTMLTemplateElement?Ze(e):e,r=n instanceof HTMLTemplateElement?Ze(n):n;if(t(tn,o,[r])){const t=un(o),e=t.length;if(e>0){const n=un(r);for(let o=0;o<e;o+=1)if(!1===pn(t[o],n[o]))return!1}return!0}return!1}function dn(e,n=an){return e===function(e){return t(ve,e,_)}(n)||e===Ee(n)}const mn=J(Blob.prototype,"size"),{slice:yn}=Blob.prototype,hn=J(Blob.prototype,"type"),gn=Blob;const wn="undefined"==typeof CookieStore?void 0:CookieStore.prototype,vn=tt(wn,"delete"),bn=tt(wn,"get"),En=tt(wn,"getAll"),Tn=tt(wn,"set"),{define:kn,get:xn}=CustomElementRegistry.prototype,{getElementById:An}=DocumentFragment.prototype;const Rn=J(DOMTokenList.prototype,"value");const{composedPath:Sn}=Event.prototype,_n=J(Event.prototype,"currentTarget");const{addEventListener:Ln}=EventTarget.prototype;function Mn(e,...n){return t(Ln,e,n)}const Pn=J(HTMLAnchorElement.prototype,"hostname"),{get:On,set:Dn}=l(HTMLAnchorElement.prototype,"href"),Nn=J(HTMLAnchorElement.prototype,"pathname"),Fn=J(HTMLAnchorElement.prototype,"protocol");function In(e){return t(Pn,e,_)}function Hn(e){return t(On,e,_)}function Cn(e,n){t(Dn,e,[n])}function zn(e){return t(Fn,e,_)}const Un=Q(HTMLElement.prototype,"innerText"),$n=Q(HTMLElement.prototype,"outerText"),Wn=J(HTMLElement.prototype,"dataset"),jn=J(HTMLElement.prototype,"style");function Bn(e){return t(Wn,e,_)}const Vn=Un?function(e,n){t(Un,e,[n])}:function(t,e){},Kn=$n?function(e,n){t($n,e,[n])}:function(t,e){};const qn=J(HTMLFrameElement.prototype,"contentDocument"),Gn=J(HTMLFrameElement.prototype,"contentWindow");const Xn=J(HTMLIFrameElement.prototype,"contentDocument"),Yn=J(HTMLIFrameElement.prototype,"contentWindow"),Zn=Q(HTMLIFrameElement.prototype,"src");const Jn=Q(HTMLLinkElement.prototype,"rel"),Qn=Q(HTMLLinkElement.prototype,"relList");const to=J(HTMLObjectElement.prototype,"contentDocument"),eo=J(HTMLObjectElement.prototype,"contentWindow");const no=eo?function(e){return t(eo,e,_)}:function(t){return null},{get:oo,set:ro}=l(HTMLScriptElement.prototype,"src"),io=J(MessageEvent.prototype,"source");const{setNamedItem:co}=NamedNodeMap.prototype,{createContextualFragment:so}=Range.prototype,uo=J(Request.prototype,"url");const{key:ao,getItem:lo,removeItem:fo,setItem:po}=Storage.prototype,mo=J(SVGElement.prototype,"dataset");function yo(e){return t(mo,e,_)}const{createObjectURL:ho,revokeObjectURL:go}=URL,wo=["opener","parent"],vo=["close","closed","focus","postMessage"],bo={},{clearInterval:Eo}=window,To=J(window,"length"),ko=J(window,"opener"),xo=J(window,"parent"),Ao=J(window,"self"),Ro=new Qt;const{decodeURIComponent:So,encodeURIComponent:_o,fetch:Lo,open:Mo,setInterval:Po,setTimeout:Oo}=window;function Do(e){let n=null;return null!==e&&(n=te(Ro,e),n||(n=function(e){const n={};for(let o=0,r=vo.length;o<r;o+=1){const r=vo[o],i=l(e,r);if(i){s(i,null);const{value:o}=i;if("function"==typeof o){const n=t(at,o,[e]);u(n,"name",l(o,"name")),i.value=n}else{const{get:n,set:o}=i;let r=bo;"function"==typeof n&&(i.get=function(){return r===bo?t(n,e,_):r}),"function"==typeof o&&(i.set=function(t){r=t})}u(n,r,i)}}for(let o=0,r=wo.length;o<r;o+=1){const r=wo[o],i=l(e,r);if(i){s(i,null);const{get:o,set:c}=i;let a=bo;"function"==typeof o&&(i.get=function(){return a===bo?Do(t(o,e,_)):a}),"function"==typeof c&&(i.set=function(t){a=t}),u(n,r,i)}}return n}(e),ee(Ro,e,n))),n}function No(t){return Z(t,"top")}function Fo(e){try{return t(Ao,e,_),!0}catch{}return!1}function Io(e){return t(To,e,_)}const Ho=XMLHttpRequest,Co=Ho.prototype,{send:zo}=Co,Uo=J(Co,"responseText"),$o=J(Co,"status"),Wo=Q(Co,"withCredentials"),{open:jo}=Co;function Bo(e,n,o,r=!0){return t(jo,e,[n,o,r])}function Vo(e){return t(Uo,e,_)}function Ko(e){return t(zo,e,_)}function qo(e){return t($o,e,_)}var Go=Object.hasOwnProperty,Xo=Object.setPrototypeOf,Yo=Object.isFrozen,Zo=Object.getPrototypeOf,Jo=Object.getOwnPropertyDescriptor,Qo=Object.freeze,tr=Object.seal,er=Object.create,nr="undefined"!=typeof Reflect&&Reflect,or=nr.apply,rr=nr.construct;or||(or=function(t,e,n){return t.apply(e,n)}),Qo||(Qo=function(t){return t}),tr||(tr=function(t){return t}),rr||(rr=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var ir,cr=hr(Array.prototype.forEach),sr=hr(Array.prototype.pop),ur=hr(Array.prototype.push),ar=hr(String.prototype.toLowerCase),lr=hr(String.prototype.match),fr=hr(String.prototype.replace),pr=hr(String.prototype.indexOf),dr=hr(String.prototype.trim),mr=hr(RegExp.prototype.test),yr=(ir=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return rr(ir,e)});function hr(t){return function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return or(t,e,o)}}function gr(t,e){Xo&&Xo(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var r=ar(o);r!==o&&(Yo(e)||(e[n]=r),o=r)}t[o]=!0}return t}function wr(t){var e=er(null),n=void 0;for(n in t)or(Go,t,[n])&&(e[n]=t[n]);return e}function vr(t,e){for(;null!==t;){var n=Jo(t,e);if(n){if(n.get)return hr(n.get);if("function"==typeof n.value)return hr(n.value)}t=Zo(t)}return function(t){return console.warn("fallback value for",t),null}}var br=Qo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Er=Qo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tr=Qo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),kr=Qo(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),xr=Qo(["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"]),Ar=Qo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rr=Qo(["#text"]),Sr=Qo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),_r=Qo(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","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"]),Lr=Qo(["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"]),Mr=Qo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pr=tr(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Or=tr(/<%[\s\S]*|[\s\S]*%>/gm),Dr=tr(/^data-[\-\w.\u00B7-\uFFFF]/),Nr=tr(/^aria-[\-\w]+$/),Fr=tr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ir=tr(/^(?:\w+script|data):/i),Hr=tr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function zr(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var Ur=function(){return"undefined"==typeof window?null:window},$r=function(t,e){if("object"!==(void 0===t?"undefined":Cr(t))||"function"!=typeof t.createPolicy)return null;var n=null;e.currentScript&&e.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=e.currentScript.getAttribute("data-tt-policy-suffix"));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};var Wr=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ur(),n=function(e){return t(e)};if(n.version="2.2.9",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var o=e.document,r=e.document,i=e.DocumentFragment,c=e.HTMLTemplateElement,s=e.Node,u=e.Element,a=e.NodeFilter,l=e.NamedNodeMap,f=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,p=e.Text,d=e.Comment,m=e.DOMParser,y=e.trustedTypes,h=u.prototype,g=vr(h,"cloneNode"),w=vr(h,"nextSibling"),v=vr(h,"childNodes"),b=vr(h,"parentNode");if("function"==typeof c){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var T=$r(y,o),k=T&&tt?T.createHTML(""):"",x=r,A=x.implementation,R=x.createNodeIterator,S=x.createDocumentFragment,_=o.importNode,L={};try{L=wr(r).documentMode?r.documentMode:{}}catch(t){}var M={};n.isSupported="function"==typeof b&&A&&void 0!==A.createHTMLDocument&&9!==L;var P=Pr,O=Or,D=Dr,N=Nr,F=Ir,I=Hr,H=Fr,C=null,z=gr({},[].concat(zr(br),zr(Er),zr(Tr),zr(xr),zr(Rr))),U=null,$=gr({},[].concat(zr(Sr),zr(_r),zr(Lr),zr(Mr))),W=null,j=null,B=!0,V=!0,K=!1,q=!1,G=!1,X=!1,Y=!1,Z=!1,J=!1,Q=!0,tt=!1,et=!0,nt=!0,ot=!1,rt={},it=gr({},["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"]),ct=null,st=gr({},["audio","video","img","source","image","track"]),ut=null,at=gr({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),lt="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml",dt=pt,mt=!1,yt=null,ht=r.createElement("form"),gt=function(t){yt&&yt===t||(t&&"object"===(void 0===t?"undefined":Cr(t))||(t={}),t=wr(t),C="ALLOWED_TAGS"in t?gr({},t.ALLOWED_TAGS):z,U="ALLOWED_ATTR"in t?gr({},t.ALLOWED_ATTR):$,ut="ADD_URI_SAFE_ATTR"in t?gr(wr(at),t.ADD_URI_SAFE_ATTR):at,ct="ADD_DATA_URI_TAGS"in t?gr(wr(st),t.ADD_DATA_URI_TAGS):st,W="FORBID_TAGS"in t?gr({},t.FORBID_TAGS):{},j="FORBID_ATTR"in t?gr({},t.FORBID_ATTR):{},rt="USE_PROFILES"in t&&t.USE_PROFILES,B=!1!==t.ALLOW_ARIA_ATTR,V=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,q=t.SAFE_FOR_TEMPLATES||!1,G=t.WHOLE_DOCUMENT||!1,Z=t.RETURN_DOM||!1,J=t.RETURN_DOM_FRAGMENT||!1,Q=!1!==t.RETURN_DOM_IMPORT,tt=t.RETURN_TRUSTED_TYPE||!1,Y=t.FORCE_BODY||!1,et=!1!==t.SANITIZE_DOM,nt=!1!==t.KEEP_CONTENT,ot=t.IN_PLACE||!1,H=t.ALLOWED_URI_REGEXP||H,dt=t.NAMESPACE||pt,q&&(V=!1),J&&(Z=!0),rt&&(C=gr({},[].concat(zr(Rr))),U=[],!0===rt.html&&(gr(C,br),gr(U,Sr)),!0===rt.svg&&(gr(C,Er),gr(U,_r),gr(U,Mr)),!0===rt.svgFilters&&(gr(C,Tr),gr(U,_r),gr(U,Mr)),!0===rt.mathMl&&(gr(C,xr),gr(U,Lr),gr(U,Mr))),t.ADD_TAGS&&(C===z&&(C=wr(C)),gr(C,t.ADD_TAGS)),t.ADD_ATTR&&(U===$&&(U=wr(U)),gr(U,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&gr(ut,t.ADD_URI_SAFE_ATTR),nt&&(C["#text"]=!0),G&&gr(C,["html","head","body"]),C.table&&(gr(C,["tbody"]),delete W.tbody),Qo&&Qo(t),yt=t)},wt=gr({},["mi","mo","mn","ms","mtext"]),vt=gr({},["foreignobject","desc","title","annotation-xml"]),bt=gr({},Er);gr(bt,Tr),gr(bt,kr);var Et=gr({},xr);gr(Et,Ar);var Tt=function(t){var e=b(t);e&&e.tagName||(e={namespaceURI:pt,tagName:"template"});var n=ar(t.tagName),o=ar(e.tagName);if(t.namespaceURI===ft)return e.namespaceURI===pt?"svg"===n:e.namespaceURI===lt?"svg"===n&&("annotation-xml"===o||wt[o]):Boolean(bt[n]);if(t.namespaceURI===lt)return e.namespaceURI===pt?"math"===n:e.namespaceURI===ft?"math"===n&&vt[o]:Boolean(Et[n]);if(t.namespaceURI===pt){if(e.namespaceURI===ft&&!vt[o])return!1;if(e.namespaceURI===lt&&!wt[o])return!1;var r=gr({},["title","style","font","a","script"]);return!Et[n]&&(r[n]||!bt[n])}return!1},kt=function(t){ur(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=k}catch(e){t.remove()}}},xt=function(t,e){try{ur(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ur(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!U[t])if(Z||J)try{kt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},At=function(t){var e=void 0,n=void 0;if(Y)t="<remove></remove>"+t;else{var o=lr(t,/^[\r\n\t ]+/);n=o&&o[0]}var i=T?T.createHTML(t):t;if(dt===pt)try{e=(new m).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){e=A.createDocument(dt,"template",null);try{e.documentElement.innerHTML=mt?"":i}catch(t){}}var c=e.body||e.documentElement;return t&&n&&c.insertBefore(r.createTextNode(n),c.childNodes[0]||null),G?e.documentElement:c},Rt=function(t){return R.call(t.ownerDocument||t,t,a.SHOW_ELEMENT|a.SHOW_COMMENT|a.SHOW_TEXT,null,!1)},St=function(t){return!(t instanceof p||t instanceof d)&&!("string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof f&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},_t=function(t){return"object"===(void 0===s?"undefined":Cr(s))?t instanceof s:t&&"object"===(void 0===t?"undefined":Cr(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Lt=function(t,e,o){M[t]&&cr(M[t],(function(t){t.call(n,e,o,yt)}))},Mt=function(t){var e=void 0;if(Lt("beforeSanitizeElements",t,null),St(t))return kt(t),!0;if(lr(t.nodeName,/[\u0080-\uFFFF]/))return kt(t),!0;var o=ar(t.nodeName);if(Lt("uponSanitizeElement",t,{tagName:o,allowedTags:C}),!_t(t.firstElementChild)&&(!_t(t.content)||!_t(t.content.firstElementChild))&&mr(/<[/\w]/g,t.innerHTML)&&mr(/<[/\w]/g,t.textContent))return kt(t),!0;if(!C[o]||W[o]){if(nt&&!it[o]){var r=b(t)||t.parentNode,i=v(t)||t.childNodes;if(i&&r)for(var c=i.length-1;c>=0;--c)r.insertBefore(g(i[c],!0),w(t))}return kt(t),!0}return t instanceof u&&!Tt(t)?(kt(t),!0):"noscript"!==o&&"noembed"!==o||!mr(/<\/no(script|embed)/i,t.innerHTML)?(q&&3===t.nodeType&&(e=t.textContent,e=fr(e,P," "),e=fr(e,O," "),t.textContent!==e&&(ur(n.removed,{element:t.cloneNode()}),t.textContent=e)),Lt("afterSanitizeElements",t,null),!1):(kt(t),!0)},Pt=function(t,e,n){if(et&&("id"===e||"name"===e)&&(n in r||n in ht))return!1;if(V&&mr(D,e));else if(B&&mr(N,e));else{if(!U[e]||j[e])return!1;if(ut[e]);else if(mr(H,fr(n,I,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==pr(n,"data:")||!ct[t]){if(K&&!mr(F,fr(n,I,"")));else if(n)return!1}else;}return!0},Ot=function(t){var e=void 0,o=void 0,r=void 0,i=void 0;Lt("beforeSanitizeAttributes",t,null);var c=t.attributes;if(c){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U};for(i=c.length;i--;){var u=e=c[i],a=u.name,l=u.namespaceURI;if(o=dr(e.value),r=ar(a),s.attrName=r,s.attrValue=o,s.keepAttr=!0,s.forceKeepAttr=void 0,Lt("uponSanitizeAttribute",t,s),o=s.attrValue,!s.forceKeepAttr&&(xt(a,t),s.keepAttr))if(mr(/\/>/i,o))xt(a,t);else{q&&(o=fr(o,P," "),o=fr(o,O," "));var f=t.nodeName.toLowerCase();if(Pt(f,r,o))try{l?t.setAttributeNS(l,a,o):t.setAttribute(a,o),sr(n.removed)}catch(t){}}}Lt("afterSanitizeAttributes",t,null)}},Dt=function t(e){var n=void 0,o=Rt(e);for(Lt("beforeSanitizeShadowDOM",e,null);n=o.nextNode();)Lt("uponSanitizeShadowNode",n,null),Mt(n)||(n.content instanceof i&&t(n.content),Ot(n));Lt("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,r){var c=void 0,u=void 0,a=void 0,l=void 0,f=void 0;if((mt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_t(t)){if("function"!=typeof t.toString)throw yr("toString is not a function");if("string"!=typeof(t=t.toString()))throw yr("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Cr(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(_t(t))return e.toStaticHTML(t.outerHTML)}return t}if(X||gt(r),n.removed=[],"string"==typeof t&&(ot=!1),ot);else if(t instanceof s)1===(u=(c=At("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===u.nodeName||"HTML"===u.nodeName?c=u:c.appendChild(u);else{if(!Z&&!q&&!G&&-1===t.indexOf("<"))return T&&tt?T.createHTML(t):t;if(!(c=At(t)))return Z?null:k}c&&Y&&kt(c.firstChild);for(var p=Rt(ot?t:c);a=p.nextNode();)3===a.nodeType&&a===l||Mt(a)||(a.content instanceof i&&Dt(a.content),Ot(a),l=a);if(l=null,ot)return t;if(Z){if(J)for(f=S.call(c.ownerDocument);c.firstChild;)f.appendChild(c.firstChild);else f=c;return Q&&(f=_.call(o,f,!0)),f}var d=G?c.outerHTML:c.innerHTML;return q&&(d=fr(d,P," "),d=fr(d,O," ")),T&&tt?T.createHTML(d):d},n.setConfig=function(t){gt(t),X=!0},n.clearConfig=function(){yt=null,X=!1},n.isValidAttribute=function(t,e,n){yt||gt({});var o=ar(t),r=ar(e);return Pt(o,r,n)},n.addHook=function(t,e){"function"==typeof e&&(M[t]=M[t]||[],ur(M[t],e))},n.removeHook=function(t){M[t]&&sr(M[t])},n.removeHooks=function(t){M[t]&&(M[t]=[])},n.removeAllHooks=function(){M={}},n}();const jr=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-controls","aria-describedby","aria-disabled","aria-readonly","aria-dropeffect","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-disabled","aria-invalid","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role","target"],Br=["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern","use"],Vr=k(Br,["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","body","br","button","caption","canvas","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figure","figcaption","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","keygen","kbd","label","legend","li","map","mark","menu","meter","nav","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Kr={ADD_ATTR:jr,ALLOWED_TAGS:Vr,IN_PLACE:!0},qr={ADD_ATTR:jr,ALLOWED_TAGS:Br,RETURN_DOM_FRAGMENT:!0,SANITIZE_DOM:!1},Gr={ADD_ATTR:jr,ALLOWED_TAGS:(Xr=Vr,Yr=t=>!x(["iframe"],t),t(d,Xr,[Yr])),SANITIZE_DOM:!1};var Xr,Yr;const Zr=new Qt;function Jr(e,n){let o=te(Zr,e);return o||(o=Wr(),o.setConfig(e),n&&function(e,n){t(yt,e,[n])}(n,(t,e)=>{o.addHook(e,t)}),ee(Zr,e,o),o)}const Qr=["href","xlink:href"],ti=new gt([["uponSanitizeAttribute",function(e,n){const o=function(e){return Ct(t(on,e,_))}(e);n.attrValue&&"USE"===o&&x(Qr,n.attrName)&&(n.attrValue=di(n.attrValue));return n}]]),ei=["http:","https:"],{document:ni}=window,oi=Te(ni,"template"),ri=Te(ni,"a"),ii=new Xt,ci=/[^a-z0-9]+/gi;function si(e,n){if(Yt(ii,n.normalizedUrl)){const o=function(e,...n){return t(Po,e,n)}(window,()=>{var r;Yt(ii,n.normalizedUrl)||(ai(e,n),r=window,t(Eo,r,[o]))},50)}else ai(e,n)}function ui(e){const n=function(t){const e=Te(ni,"div");return qe(e,"style","display:none"),qe(e,"id",t),sn(Ee(ni),e),e}(e.normalizedUrl);var o,r;o=ii,r=e.normalizedUrl,t(Kt,o,[r]);const i=new Ho;Mn(i,"load",()=>{if(200===qo(i)){const o=yi(Vo(i));if(e.requestedFragment){const n=function(e,n){return t(An,e,[n])}(o,e.requestedFragment);n&&qe(n,"id",e.normalizedFragment)}sn(n,o),function(e,n){t(qt,e,[n])}(ii,e.normalizedUrl)}}),Bo(i,"GET",e.requestedUrl),Ko(i)}function ai(t,e){const{normalizedFragment:n,requestedFragment:o}=e;let r=je(t,"#"+n);if(!r)try{r=je(t,"#"+o),qe(r,"id",n)}catch{}}function li(){return Jr(Gr,ti)}function fi(){return Jr(qr,ti)}function pi(t){We(oi,t);const e=Ze(oi);return Jr(Kr,ti).sanitize(e),$e(oi)}function di(e){if(It(e,"#"))return e;const n=function(t){Cn(ri,t);const e=Hn(ri),n=zn(ri),[o,r]=Nt(e,"#"),i=Dt(Ht(o),ci,"");return{normalizedFragment:r?`${i}_${Dt(r,ci,"")}`:"",normalizedUrl:i,protocol:n,requestedFragment:r,requestedUrl:o}}(e);if(x(ei,n.protocol)){const e=(o=ni,r=n.normalizedUrl,t(ge,o,[r]));return e&&n.normalizedFragment?si(e,n):e||ui(n),n.requestedFragment?"#"+n.normalizedFragment:"#"+n.normalizedUrl}var o,r;return e}function mi(e,n){const o=t(rn,e,_);const r=function(e,n=""){return t(me,e,[n])}(o,""),i=function(e,n){return t(Me,e,[n])}(e,"svg"),c=i?function(e,n=!1){return t(Qe,e,[n])}(i,!1):function(e,...n){return t(he,e,n)}(o,"http://www.w3.org/2000/svg","svg");sn(c,r);return $e(function(e){return t(nn,e,_)}(yi(Dt(function(e){return t(Ce,e,_)}(c),"\x3c!----\x3e",n))))}function yi(t){return fi().sanitize(t)}const hi=["http:","https:"],gi=["/aura","/webruntime"],wi=/[\u2029\u2028\n\r\t]/g,vi=Te(document,"a"),bi=/\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/;function Ei(e){const n=Ht(e.pathname);return function(e,n){return t(w,e,[n])}(gi,e=>function(e,...n){return t(Tt,e,n)}(n,e))}function Ti(e){return Cn(vi,ki(e)),{normalizedURL:Hn(vi),hostname:In(vi),pathname:So((n=vi,t(Nn,n,_)))};var n}function ki(t){return""===t?t:Dt(t,wi,"")}const xi=z(null),Ai=[],Ri=Symbol("@@HasLockerElementAttributeDistortion");function Si(e,n,o,r,i){let c=e[o];c||(c=z(null));let s=c[r];s||(s=new gt),t(ht,s,[n,i]),c[r]=s,e[o]=c}function _i(e,n,o,r){if(!(Ri in e))return;const i=xi[n][o=Ht(o)];if(!i)return;const c=i[r];if(!c)return;const s=t(mt,c,_);for(const t of s){const n=t[0],o=t[1];if(e instanceof n)return o}}function Li(t){return null==t||""===t?"default":t}function Mi(t,e){const{prototype:n}=t;R(Ai,o=>{const{attributeNamespace:r,distortion:i}=e,c=Ht(e.attributeName);return Si(o,t,c,r,i),Ri in n||u(n,Ri,z(null)),null})}function Pi(t,e){if(O(t)){const n=D(t);n.name=ke(n.name,e),t=n}else t=ke(t,e);return t}const Oi=new Qt;function Di(t){return t=Ut(t),Ht(Ut(t))}function Ni(t){try{return le(t),t}catch{return}}function Fi(e){const n=function(e){return t(_n,e,_)}(e),o=t(Sn,e,_);let r=o;for(let e=function(e,...n){return t(y,e,n)}(o,n);e>-1;e-=1){if(o[e]instanceof ShadowRoot){r=S(o,e+1);break}}return r}const Ii=/import/i,Hi='HTMLLinkElement does not allow setting "rel" property to "import" value.';function Ci(t){return!jt(Ii,t)}function zi(t,e){return function(n){return[tt(t,e),function(){throw new rt("not allowed")}]}}function Ui(t,e){return function(n){return[J(t,e),function(){throw new rt("not allowed")}]}}function $i(t,e){return function(n){return[Q(t,e),function(){throw new rt("not allowed")}]}}function Wi(e,n,o){const{evaluator:r,key:i}=n,c=Te(document,"a");return function(n){const s=n;if(""===n)return void qe(this,e,n);Cn(c,n),n=Hn(c);o(this)["distorted"+zt(e)]=s;const a=In(c),l=new Ho;Ot(a,bi)&&function(e,n){t(Wo,e,[n])}(l,!0),Mn(l,"load",()=>{const t=qo(l);if(200===t){const t=Vo(l),n=z(null);n.configurable=!0,n.value=r,u(this,"$evaluator$",n),qe(this,e,function(t,e){const n=_o(t);return ho(new gn([`\n {\n const text = decodeURIComponent(\`${n}\`);\n const evaluator = document.currentScript.$evaluator$;\n delete document.currentScript.$evaluator$;\n evaluator('${e}', text);\n }`],{type:"text/javascript"}))}(t,i))}else 404===t&&qe(this,e,"blob:http://localhost/not-found")}),Bo(l,"GET",n),Ko(l)}}function ji(t,e){const n=[];for(let o=0,r=e.length;o<r;o+=1){const r=e[o],i=l(t,r);if(i){const{get:e,set:o,value:c}=i;"function"==typeof c?R(n,zi(t,r)):"function"==typeof e&&(R(n,Ui(t,r)),"function"==typeof o&&R(n,$i(t,r)))}}return n}function Bi(n,o){return"function"==typeof n&&"function"==typeof o?function(n,o){const r=new et(o,j({apply:(e,o,i)=>(o===r&&(o=n),t(n,o,i)),construct:(t,o,i)=>(i===r&&(i=n),e(n,o,i))}));return r}(n,o):n}function Vi(t,e){return`${t}${e}`}function Ki(t,e){const n=K(t),o=[];for(let t=0,r=n.length;t<r;t+=1){const r=n[t];It(r,e)&&R(o,r)}return o}const qi=new WeakMap;function Gi(t){const e=te(qi,t);if(void 0===e)throw new ct("Illegal invocation");return e}function Xi(e){return new Proxy(e,{get(t,e,n){const{storage:o,storageRootKey:c}=Gi(t);if("symbol"==typeof e)return r(t,e,n);const s=Vi(c,Ut(e));if(Z(o,s))return r(o,s);const u=i(t);return null===u?void 0:r(u,e,n)},set(e,n,o){const{storage:r,storageRootKey:i}=Gi(e);if("symbol"==typeof n)return c(e,n,o);const s=Vi(i,Ut(n));return t(po,r,[s,o]),!0},defineProperty(t,e,n){const{storage:o,storageRootKey:r}=Gi(t);if("symbol"==typeof e)return U(t,e,n);const i=Vi(r,Ut(e));return u(o,i,n)},deleteProperty(t,e){const{storage:o,storageRootKey:r}=Gi(t);if("symbol"==typeof e)return n(t,e);const i=Vi(r,Ut(e));return n(o,i)},getOwnPropertyDescriptor(t,e){const{storage:n,storageRootKey:o}=Gi(t);if("symbol"==typeof e)return l(t,e);const r=Vi(o,Ut(e));return l(n,r)},ownKeys(t){const{storage:e,storageRootKey:n}=Gi(t);return k(function(t,e){const{length:n}=t,o=new v(n);for(let r=0;r<n;r+=1){const n=t[r];o[r]=Dt(n,e,"")}return o}(Ki(e,n),n),V(t))},has(t,e){const{storage:n,storageRootKey:r}=Gi(t);if("symbol"==typeof e)return o(t,e);if(Z(n,Vi(r,Ut(e))))return!0;const c=i(t);return null!==c&&o(c,e)},preventExtensions:t=>!1})}class Yi{constructor(){throw new rt("Illegal constructor")}get length(){const{storage:t,storageRootKey:e}=Gi(this);return Ki(t,e).length}key(e){const{storage:n,storageRootKey:o}=Gi(this),r=arguments;if(r.length){const t=Ki(n,o),e=t[r[0]],i=t[0],c=e||i;return void 0===c?null:Dt(c,o,"")}return t(ao,n,r)}getItem(e){const{storage:n,storageRootKey:o}=Gi(this);let r=arguments;return r.length&&(r=Vt(r,[Ut]),r[0]=Vi(o,r[0])),t(lo,n,r)}setItem(e,n){const{storage:o,storageRootKey:r}=Gi(this);let i=arguments;i.length>1&&(i=Vt(i,[Ut,Ut]),i[0]=Vi(r,i[0])),t(po,o,i)}removeItem(e){const{storage:n,storageRootKey:o}=Gi(this);let r=arguments;r.length&&(r=Vt(r,[Ut]),r[0]=Vi(o,r[0])),t(fo,n,r)}clear(){const{storage:e,storageRootKey:n}=Gi(this),o=Ki(e,n);for(let n=0,r=o.length;n<r;n+=1){const r=o[n];t(fo,e,[r])}}}const{clear:Zi,getItem:Ji,key:Qi,removeItem:tc,setItem:ec}=Yi.prototype,nc=J(Yi.prototype,"length");function oc(t){return function(e,n){const o=e[t];if(null==o)return null;const{key:r}=n;return[o,function(t,e){const n=z(Yi.prototype);dt(n);const o=Xi(n),r={proxy:o,storage:t,storageRootKey:e};return ee(qi,o,r),ee(qi,n,r),o}(o,`LSKey[${r}]`)]}}const rc=oc("localStorage"),ic=oc("sessionStorage");function cc(e){return function(n){const{SVGUseElement:o}=n;return Mi(o,{attributeName:e,attributeNamespace:"http://www.w3.org/1999/xlink",distortion:function(n){const o=null==n||""===n?n:di(n);!function(e,n,o,r){t(_e,e,[n,o,r])}(this,"http://www.w3.org/1999/xlink",e,o)}}),null}}const sc=cc("href"),uc=cc("xlink:href"),ac=["application/octet-stream","application/json","application/pdf","video/","audio/","image/","font/","text/plain","text/markdown","application/zip","application/x-bzip","application/x-rar-compressed","application/x-tar"],lc=/^[a-z]+\/[a-z+-]+$/,fc=["text/html","image/svg+xml","text/xml"];const pc=/(^|,)(\s*noopener\s*=\s*(?:yes|1)\s*)(,|$)/g;const dc=[function(t){const{Document:e}=t;return[Q(e.prototype,"domain"),function(){throw new st("The operation is insecure.")}]},function(e){const{Document:n}=e,{execCommand:o}=n.prototype;return[o,function(...e){if(e.length>2){const t=e[2];if(null!=t){"inserthtml"===Ht((e=Vt(e,[Ut]))[0])&&(e[2]=pi(e[2]))}}return t(be,this,e)}]},function(e){const{Element:n}=e,{attachShadow:o}=n.prototype;return[o,function(...e){if(e.length){const t=e[0];if(null!=t){const{mode:n}=t;if("closed"!==n)throw new ut("Shadow root mode cannot be 'open'");const o={...t,mode:n},r=i(t);s(o,r),e[0]=o}}return t(Ae,this,e)}]},function(e){const{Element:n}=e;return[J(n.prototype,"attributes"),function(){const e=t(Ue,this,_);return ee(Oi,e,this),e}]},function(t){const{Element:e,SVGElement:n}=t;return[Q(e.prototype,"innerHTML"),function(t){if(dn(this))throw new st(`Element.innerHTML cannot be set with ${this} elements!`);We(this,t=this instanceof n?mi(this,t):pi(t))}]},function(e){const{Element:n}=e;return[Q(n.prototype,"outerHTML"),function(e){if(dn(this))throw new st(`Element.outerHTML cannot be set with ${this} elements!`);!function(e,n){t(ze,e,[n])}(this,e=pi(e))}]},function(e){const{Element:n}=e,{insertAdjacentHTML:o}=n.prototype;return[o,function(e,n){const o=Ht(Ut(e)),r=pi(n);t(Re,this,[o,r])}]},function(t){const{Element:e}=t;return[J(e.prototype,"shadowRoot"),function(){return null}]},function(t){const{Event:e}=t,{composedPath:n}=e.prototype;return[n,function(){return Fi(this)}]},function(t){const{Event:e}=t,n=J(e.prototype,"path");return n?[n,function(){return Fi(this)}]:null},function(t){const{HTMLElement:e}=t,n=Q(e.prototype,"innerText");return n?[n,function(t){if(dn(this))throw new st(`HTMLElement.innerText cannot be set with ${this} elements!`);Vn(this,t)}]:null},function(t){const{HTMLElement:e}=t,n=Q(e.prototype,"outerText");return n?[n,function(t){if(dn(this))throw new st(`HTMLElement.outerText cannot be set with ${this} elements!`);Kn(this,t)}]:null},function(e){const{HTMLElement:n}=e;return[J(n.prototype,"style"),function(){const e=t(jn,this,_);return Z(e,pt)?e:dt(e)}]},function(e){const{HTMLFrameElement:n}=e;return[J(n.prototype,"contentDocument"),function(){return t(qn,this,_),null}]},function(e){const{HTMLFrameElement:n}=e;return[J(n.prototype,"contentWindow"),function(){return Do(t(Gn,this,_))}]},function(e){const{HTMLIFrameElement:n}=e,o=Q(n.prototype,"src");function r(e){const n=(Cn(vi,e),ki(Hn(vi)));if(!function(t,e=hi){return Cn(vi,t),x(e,zn(vi))}(n))throw new st("HTMLIFrameElement.src supports http://, https:// schemes and relative urls.");!function(e,n){t(Zn,e,[n])}(this,n)}return Mi(n,{attributeName:"src",attributeNamespace:"default",distortion:r}),[o,r]},function(e){const{HTMLIFrameElement:n}=e;return[J(n.prototype,"contentDocument"),function(){return t(Xn,this,_),null}]},function(e){const{HTMLIFrameElement:n}=e;return[J(n.prototype,"contentWindow"),function(){return Do(t(Yn,this,_))}]},function(e){const{HTMLLinkElement:n}=e,o=Q(n.prototype,"rel");function r(e){Ci(e=Ut(e))?function(e,n){t(Jn,e,[n])}(this,e):console.warn(Hi)}return Mi(n,{attributeName:"rel",attributeNamespace:"default",distortion:r}),[o,r]},function(e){const{DOMTokenList:n,HTMLLinkElement:o}=e;return[Q(o.prototype,"relList"),function e(o){const r=e instanceof n?t(Rn,o,_):Ut(o);Ci(r)?function(e,n){t(Qn,e,[n])}(this,r):console.warn(Hi)}]},function(e){const{HTMLObjectElement:n}=e;return[J(n.prototype,"contentDocument"),function(){return t(to,this,_),null}]},function(t){const{HTMLObjectElement:e}=t,n=J(e.prototype,"contentWindow");return n?[n,function(){return Do(no(this))}]:null},function(e){const{HTMLScriptElement:n}=e;return[J(n.prototype,"src"),function(){return function(t){const e=tt(Bn(t),"distortedSrc");return void 0===e?"":e}(this)||t(oo,this,_)}]},function(e){const{MessageEvent:n}=e;return[J(n.prototype,"source"),function(){const e=t(io,this,_);return"[object Window]"===Ut(e)?Do(e):e}]},function(t){const{Navigator:e}=t,n=J(e.prototype,"serviceWorker");return n?[n,function(){}]:null},function(e){const{Node:n}=e;return[Q(n.prototype,"textContent"),function(e){if(dn(this))throw new st(`Node.textContent cannot be set with ${this} elements!`);!function(e,n){t(cn,e,[n])}(this,e=Ut(e))}]},function(e){const{Range:n}=e,{createContextualFragment:o}=n.prototype;return[o,function(...e){if(e.length){const t=e[0];null!=t&&(e=Vt(e,[pi]))}return t(so,this,e)}]},function(t){const{ServiceWorkerContainer:e}=t;let n;return"function"!=typeof e?null:(n=e.prototype,[n,ot(n)])},function(t){const{ShadowRoot:e}=t;return[J(e.prototype,"mode"),function(){return"closed"}]},function(t){const{SharedWorker:e}=t;let n;return"function"!=typeof e?null:(n=e,[n,function(t){throw new ut("Locker does not allow execution of script at: "+t)}])},function(t){const{SharedWorker:e}=t;let n;return"function"!=typeof e?null:(n=e.prototype,[n,ot(n)])},function(t){const{Storage:e}=t;return[J(e.prototype,"length"),nc]},function(t){const{Storage:e}=t,{getItem:n}=e.prototype;return[n,Ji]},function(t){const{Storage:e}=t,{setItem:n}=e.prototype;return[n,ec]},function(t){const{Storage:e}=t,{key:n}=e.prototype;return[n,Qi]},function(t){const{Storage:e}=t,{removeItem:n}=e.prototype;return[n,tc]},function(t){const{Storage:e}=t,{clear:n}=e.prototype;return[n,Zi]},function(t){const{Storage:e}=t;return[e,Yi]},sc,uc,function(e){const{URL:n}=e,{createObjectURL:o}=n;return[o,function(e){let n=ho(e);const o=Ht(t(hn,e,_));var r;if(x(fc,o)){const i=function(e,...n){return t(yn,e,n)}(e,0,function(e){return t(mn,e,_)}(e),o+";charset=utf-8");go(n),n=ho(i);const c=new Ho;Bo(c,"GET",n,!1),Ko(c);const s=li(),u=Vo(c),a=s.sanitize(u);if(r=a,We(ln,u),We(fn,r),!pn(ln,fn))throw go(n),new st(`Locker: Cannot "createObjectURL" using a unsecure ${e}!`);return n}if(""===o||function(t){if(jt(lc,t))for(let e=0,n=ac.length;e<n;e+=1)if(It(t,ac[e]))return!0;return!1}(o))return n;throw go(n),new st("Locker: Unsupported MIME type.")}]},function(e){const{fetch:n}=e;return[n,function(...e){let n=e[0];if(null!=n){let o;if(n instanceof Request)o=Ti(t(uo,n,_));else{o=Ti(Ut(n)),n=o.normalizedURL,e[0]=n}if(Ei(o)){return Promise.reject(new ut("Request URL cannot be made to a disallowed endpoint: "+n))}}return t(Lo,this,e)}]},function(t){let e;return[J(t,"frames"),function(){if(!e){const n=/^0$|^[1-9][0-9]*$/,c=i(t),u=i(c),a=e=>{if(d(e)){const n=tt(t,e);if(p(n))return Do(n)}},l=e=>{if("string"==typeof e&&!Z(t,e)&&!Z(c,e)){const t=tt(u,e);if(p(t))return Do(t)}},f=e=>"length"===e?Io(t):d(e)?a(e):void 0,p=e=>void 0!==e&&e!==t&&No(e)&&Fo(e),d=e=>jt(n,e)&&e<Io(t);class m{defineProperty(t,e,n){return!1}deleteProperty(t,e){return!1}getOwnPropertyDescriptor(t,e){}isExtensible(t){return!0}ownKeys(t){return[]}preventExtensions(t){return!0}set(t,e,n,o){return!1}setPrototypeOf(t){return!1}}s(m.prototype,null),j(m.prototype);class y extends m{get(t,e,n){const o=f(e);return void 0!==o?o:r(t,e,n)}getOwnPropertyDescriptor(t,e){if("length"===e)return{get:()=>f("length"),set(t){},configurable:!0,enumerable:!0};const n=d(e)?a(e):void 0;return n?{value:n,configurable:!0,enumerable:!0,writable:!1}:void 0}has(t,e){return void 0!==f(e)||o(t,e)}ownKeys(){const{length:e}=t,n=v(e+1);for(let t=0;t<e;t+=1)n[t]=""+t;return n[e]="length",n}}class h extends m{}class g extends h{get(t,e,n){const o=l(e);return void 0===o?r(t,e,n):o}getOwnPropertyDescriptor(t,e){const n=l(e);if(n)return{value:n,configurable:!0,enumerable:!0,writable:!1}}has(t,e){return void 0!==l(e)||o(t,e)}ownKeys(){const t=[],e=N(W(u));s(e,null);for(const n in e)"string"==typeof n&&p(e[n].value)&&t.push(n);return t}}const w={},b={},E={},T=j(new y),k=j(new h),x=j(new g),A=new et(b,k),R=new et(E,x);s(w,A),s(b,R),e=new et(w,T)}return e}]},function(t){return[J(t,"length"),function(){return 0}]},function(e){const{open:n}=e;return[n,function(...e){const n=Vt(e,[Bt,Bt,Ut]);if(n.length>2){let t=Ht(n[2]);jt(pc,t)&&(pc.lastIndex=0,t=Dt(t,pc,(t,e,n,o)=>`${e}noopener${o}`)),n[2]=t}return Do(t(Mo,this,n))}]},function(e){const n=J(e,"opener");return void 0===n?null:[n,function(){return Do(t(ko,e,_))}]},function(e){const n=J(e,"parent");return void 0===n?null:[n,function(){return Do(t(xo,e,_))}]},function(t){const{Worker:e}=t;return[e,function(t){throw new ut("Locker does not allow Worker script at: "+t)}]},function(t){const{Worker:{prototype:e}}=t;return[e,ot(e)]},function(e){const{XMLHttpRequest:n}=e,{open:o}=n.prototype;return[o,function(e,n,o,r,i){if(arguments.length<2||null==n)return void t(jo,this,arguments);const c=Vt(arguments,[Bt,Ut]),s=c[1],u=Ti(s);if(Ei(u))throw new ut("Request URL cannot be made to a disallowed endpoint: "+u.normalizedURL);c[1]=u.normalizedURL,t(jo,this,c)}]}],mc=[function(e,n){const{Attr:o}=e,{key:r}=n;return[Q(o.prototype,"value"),function(e){const n=ae(this);if(n){const o=se(this),i=Li(ue(this)),c=_i(n,r,o,i);if(c)return void t(c,n,[e])}fe(this,e)}]},function(e,n){const{CookieStore:o}=e;if(null==o)return null;const r=tt(o.prototype,"delete");if(!r)return null;const{key:i}=n;return[r,function(...e){const n=e.length?e[0]:null;return null!=n&&(e[0]=Pi(n,i)),t(vn,this,e)}]},function(e,n){const{CookieStore:o}=e;if(null==o)return null;const r=tt(o.prototype,"get");if(!r)return null;const{key:i}=n;return[r,function(...e){const n=e.length?e[0]:null;return null!=n&&(e[0]=Pi(n,i)),t(bn,this,e)}]},function(e,n){const{CookieStore:o}=e;if(null==o)return null;const r=tt(o.prototype,"getAll");if(!r)return null;const{key:i}=n;return[r,function(...e){const n=e.length?e[0]:null;return null!=n?(e[0]=Pi(e[0],i),t(En,this,e)):function(e,...n){return t(vt,e,[n])}(t(En,this,e),t=>{const e=t,n=[];for(let t=0,o=e.length;t<o;t+=1){const o=e[t],r=xe(i);It(o.name,r)&&R(n,o)}return n})}]},function(e,n){const{CookieStore:o}=e;if(null==o)return null;const r=tt(o.prototype,"set");if(!r)return null;const{key:i}=n;return[r,function(...e){if(e.length>1){const t=e[0];e[0]=ke(t,i)}else if(e.length){const t=e[0];if(O(t)){const n=D(t);n.name=ke(n.name,i),e[0]=n}}return t(Tn,this,e)}]},function(e,n){const{Document:o}=e,{key:r}=n;return[J(o.prototype,"cookie"),function(){const e=Nt(t(pe,this,_),"; "),n=xe(r),o=n.length,i=[];for(let t=0,r=e.length;t<r;t+=1){const r=e[t];It(r,n)&&(61!==Pt(r,o)?R(i,Ft(r,o)):61===Pt(r,o)&&R(i,Ft(r,o+1)))}return A(i,"; ")}]},function(e,n){const{Document:o}=e,{key:r}=n;return[Q(o.prototype,"cookie"),function(e){const n=Nt(e,"; ");let o=n[0];var i,c;It(o,"=")&&(o=Ft(o,1)),n[0]=ke(o,r),i=this,c=A(n,"; "),t(de,i,[c])}]},function(e,n){const{key:o}=n,r=Ht(o),{CustomElementRegistry:i}=e,{define:c}=i.prototype;return[c,function(e,n,o){const i=Vt(arguments,[Ut]),c=i[0],s=Ht(c);if(!It(s,r+"-"))throw new it(`Disallowed name when calling customElements.define() with name "${c}". Only names prefixed with "${r}-" are allowed.`);t(kn,this,i)}]},function(e,n){const{key:o}=n,r=Ht(o),{CustomElementRegistry:i}=e,{get:c}=i.prototype;return[c,function(e){const n=Vt(arguments,[Ut]),o=n[0],i=Ht(o);if(!It(i,r+"-"))throw new it(`Disallowed name when calling customElements.get() with name "${o}". Only names prefixed with "${r}-" are allowed.`);return t(xn,this,n)}]},function(e,n){const{key:o}=n,{Element:r}=e,{setAttribute:i}=r.prototype;return[i,function(e,n){const r=Vt(arguments,[Di,Ut]);r.length<2&&t(Se,this,r);const[i,c]=r,s=_i(this,o,i,"default");s?t(s,this,[c]):t(Se,this,r)}]},function(e,n){const{key:o}=n,{Element:r}=e,{setAttributeNS:i}=r.prototype;return[i,function(...e){if(e.length<3)return void t(_e,this,e);const n=Vt(e,[$t,Di,Ut]),r=n[0],i=n[1],c=Li(r),s=_i(this,o,i,c);if(s){const e=n[2];t(s,this,[e])}else t(_e,this,n)}]},function(e,n){const{key:o}=n,{Element:r}=e,{setAttributeNode:i}=r.prototype;return[i,function(e){const n=Vt(arguments,[Ni]),[r]=n;if(null==r)return t(Le,this,n);if(ae(r))return t(Le,this,n);const i=se(r),c=Li(ue(r)),s=_i(this,o,i,c);if(!s)return t(Le,this,n);{const e=Be(this,i);e&&Ke(this,e);const n=le(r);t(s,this,[n]);const o=Be(this,i);if(o&&Ke(this,o),e&&Ge(this,e),o){return fe(r,le(o)),Ge(this,r)}}}]},function(e,n){const{key:o}=n,{Element:r}=e,{setAttributeNodeNS:i}=r.prototype;return[i,function(e){if(null==e)return Xe(this,e);if(ae(e))return Xe(this,e);const n=ue(e),r=se(e),i=Li(n),c=_i(this,o,r,i);if(c){const o=Ve(this,n,r);o&&Ke(this,o);const i=Ut(le(e));t(c,this,[i]);const s=Ve(this,n,r);if(s&&Ke(this,s),o&&Xe(this,o),s){return fe(e,le(s)),Xe(this,e)}return null}return Xe(this,e)}]},function(t,e){const{HTMLScriptElement:n}=t,o=Q(n.prototype,"src"),r=Wi("src",e,Bn);return Mi(n,{attributeName:"src",attributeNamespace:"default",distortion:r}),[o,r]},function(e,n){const{key:o}=n,{NamedNodeMap:r}=e,{setNamedItem:i}=r.prototype;return[i,function(e){const n=te(Oi,this);if(n){const r=se(e),i=Li(ue(e)),c=_i(n,o,r,i);if(c){const o=le(e);return t(c,n,[o])}}return t(co,this,[e])}]},function(t,e){const{SVGScriptElement:n}=t;return Mi(n,{attributeName:"href",attributeNamespace:"default",distortion:Wi("href",e,yo)}),null},function(e,n){const{evaluator:o,key:r}=n,{setInterval:i}=e;return[i,function(...e){if(e.length){const t=e[0];if(null!=t&&"function"!=typeof t){const n=Ut(t);e[0]=()=>{o(r,n)}}}return t(Po,this,e)}]},function(e,n){const{evaluator:o,key:r}=n,{setTimeout:i}=e;return[i,function(...e){if(e.length){const t=e[0];if(null!=t&&"function"!=typeof t){const n=Ut(t);e[0]=()=>{o(r,n)}}}return t(Oo,this,e)}]},rc,ic],yc=k(dc,[]),hc=k(mc,[]);k(dc,[]),k(mc,[]);var gc=["exitFullscreen","fullscreen","fullscreenElement","fullscreenEnabled","mozCancelFullScreen","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","onfullscreenchange","onfullscreenerror","onmozfullscreenchange","onmozfullscreenerror","onrejectionhandled","onsecuritypolicyviolation","onunhandledrejection","releaseCapture","releaseEvents","webkitFullScreenKeyboardInputAllowed","write","writeln"],wc=["mozRequestFullScreen","onfullscreenchange","onfullscreenerror","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen"],vc=["nonce","onrejectionhandled","onunhandledrejection"],bc=["getSVGDocument"],Ec=["allowpaymentrequest","referrerpolicy","sandbox","srcdoc"],Tc=["allowPaymentRequest","csp","featurePolicy","getSVGDocument","referrerPolicy","sandbox","srcdoc"],kc=["getSVGDocument"];const xc=new Qt;function Ac(e){const{Document:n,Element:o,HTMLElement:r,HTMLIFrameElement:i}=e,c=[];return t(T,c,ji(n.prototype,gc)),t(T,c,ji(o.prototype,wc)),t(T,c,ji(r.prototype,vc)),t(T,c,ji(i.prototype,Tc)),t(T,c,ji(HTMLEmbedElement.prototype,bc)),t(T,c,ji(HTMLObjectElement.prototype,kc)),function(t,e,n="default"){for(let o=0,r=e.length;o<r;o+=1){const r=e[o];Mi(t,{attributeName:r,attributeNamespace:n,distortion(){throw new rt(`Attribute "${r}" not allowed on ${t.name}`)}})}}(i,Ec),c}const Rc=(e,n,o)=>function(...r){try{return t(n,this,r)}catch(t){throw o(e,t),t}};function Sc(e,n,o,r){const i=[],{instrumentation:c}=r,s={evaluator:o,key:n,instrumentation:c},u=te(xc,e),{errorBeacon:a}=c;if(u)t(T,i,u);else{const t=Ac(e);for(let o=0,r=t.length;o<r;o+=1){const r=(0,t[o])(e,s);if(null!==r){const[t,e]=r;R(i,[t,Bi("function"==typeof e?Rc(n,e,a):e,t)])}}for(let t=0,o=yc.length;t<o;t+=1){const o=(0,yc[t])(e,s);if(null!==o){const[t,e]=o;R(i,[t,Bi("function"==typeof e?Rc(n,e,a):e,t)])}}ee(xc,e,function(t){return S(t,0)}(i))}for(let t=0,o=hc.length;t<o;t+=1){const o=(0,hc[t])(e,s);if(null!==o){const[t,e]=o;R(i,[t,Bi("function"==typeof e?Rc(n,e,a):e,t)])}}return t(T,i,function(t){const e=z(null),n=[],{length:o}=Ai;for(let t=0;t<o;t+=1){const o=(0,Ai[t])(e);null!==o&&R(n,o)}return xi[t]=e,n}(n)),i}function _c(t,e,n,o){if("a"===n&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?o:"a"===n?o.call(t):o?o.value:e.get(t)}function Lc(t,e,n,o,r){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?r.call(t,n):r?r.value=n:e.set(t,n),n}var Mc,Pc;let Oc=0;class Dc{constructor(t,e,n,o){Mc.set(this,void 0),Pc.set(this,void 0),Lc(this,Mc,n),Lc(this,Pc,o),this.activityId=`${Ut(t)}-${function(){const t=Date.now()+1e-9*Oc;return Oc=(Oc+1)%1e9,""+t}()}`,this.nameOrDescription=e,this.sandboxKey=t}start(){return"function"==typeof _c(this,Mc)&&_c(this,Mc).call(this,this.activityId,this.sandboxKey,this.nameOrDescription),this}stop(){return"function"==typeof _c(this,Pc)&&_c(this,Pc).call(this,this.activityId),this}}Mc=new WeakMap,Pc=new WeakMap;const Nc=new class{activityBeacon(t,e){return new Dc(t,e)}errorBeacon(t,e){}logBeacon(t,e){}},Fc=Array,Ic=[],Hc=Error,{assign:Cc,defineProperties:zc,defineProperty:Uc,freeze:$c,getOwnPropertyDescriptors:Wc}=Object,{__lookupGetter__:jc,hasOwnProperty:Bc}=Object.prototype;function Vc(t,e){return null!=t&&qc(Bc,t,[e])}function Kc(t,e){if(null!=t&&qc(Bc,t,[e]))return qc(jc,t,[e])}const{apply:qc,construct:Gc,getPrototypeOf:Xc,setPrototypeOf:Yc,defineProperty:Zc,isExtensible:Jc,getOwnPropertyDescriptor:Qc,ownKeys:ts,preventExtensions:es,deleteProperty:ns,has:os,get:rs,set:is}=Reflect,{test:cs}=RegExp.prototype;const ss=Set,{has:us}=Set.prototype;function as(t,e){return qc(us,t,[e])}const ls=TypeError,fs=WeakMap,{get:ps,set:ds}=WeakMap.prototype;function ms(t,e){return qc(ps,t,[e])}function ys(t,e,n){return qc(ds,t,[e,n])}const hs=function(t,e){const n=Symbol.for("@@lockerLiveValue"),{blueMap:o,distortionCallback:r}=t,{apply:i,construct:c}=e,s=Array,u=Error,a=TypeError,l=[],f=()=>{},{isArray:p}=Array,{defineProperties:d,getOwnPropertyDescriptors:m,freeze:y,seal:h,isSealed:g,isFrozen:w}=Object,{__lookupGetter__:v,__lookupSetter__:b,hasOwnProperty:E}=Object.prototype,{revocable:T}=Proxy,{apply:k,isExtensible:x,getOwnPropertyDescriptor:A,setPrototypeOf:R,getPrototypeOf:S,preventExtensions:_,deleteProperty:L,ownKeys:M,defineProperty:P,get:O,set:D,has:N}=Reflect,{get:F}=WeakMap.prototype;function I(t,e){return null!=t&&k(E,t,[e])}function H(t,e,n){if(void 0!==e){const o=C(e);P(t,n,o)}}function C(t){const e={__proto__:null,...t};if("writable"in e)e.value=z(e.value);else{const{get:t,set:n}=e;"function"==typeof t&&(e.get=z(t)),"function"==typeof n&&(e.set=z(n))}return e}function z(e){if(null===e)return e;if(void 0!==e){if("object"==typeof e||"function"==typeof e){const n=function(t){let e;try{e=r(t)}finally{if(e!==t&&typeof e!=typeof t)throw new u(`Invalid distortion ${t}.`)}return e}(e),i=k(F,o,[n]);return void 0!==i?i:function(e){const n=function(t){let e;if("function"==typeof t){try{e="prototype"in t?function(){}:()=>{}}catch{e=function(){}}!function(t,e){try{const n=A(t,"name");P(e,"name",n)}catch{}}(t,e)}else{let n=!1;try{n=p(t)}catch{}e=n?[]:{}}return e}(e),o=new at(e),{proxy:r,revoke:i}=T(n,o);o.revoke=i;try{t.setRefMapEntries(r,e)}catch(t){throw new u("Internal Error")}try{p(e)}catch{i()}return r}(n)}return e}}function U(e){const{length:n}=e,o=new s(n);for(let r=0;r<n;r+=1)r in e&&(o[r]=t.getBlueValue(e[r]));return o}function $(t,e,n){const o=A(t,e);void 0!==o?I(o,"configurable")&&!0===o.configurable?P(t,e,n):I(o,"writable")&&!0===o.writable&&(t[e]=n.value):P(t,e,n)}function W(t,e){!function(t,e){const n=m(e),o=M(n),r={__proto__:null};for(let t=0,e=o.length;t<e;t+=1){const e=o[t],i=C(n[e]);r[e]=i}d(t,r)}(t,e),R(t,z(S(e))),_(t)}function j(e,n,o){const{target:r}=this;let c;try{const e=t.getBlueValue(n),s=U(o);c=i(r,e,s)}catch(t){throw z(t)}return z(c)}function B(e,n,o){const{target:r}=this;if(void 0===o)throw new a;let i;try{const e=t.getBlueValue(o),s=U(n);i=c(r,s,e)}catch(t){throw z(t)}return z(i)}function V(t,e,n){const{target:o}=this;if(!I(o,e)){const t=S(o);if(null===t)return;const r=z(t);return O(r,e,n)}const r=function(t,e){return null==t?void 0:k(v,t,[e])}(o,e);return r?k(z(r),n,l):z(o[e])}function K(t,e){const{target:n}=this;if(I(n,e))return!0;const o=S(n);if(null===o)return!1;const r=z(o);return N(r,e)}function q(t){return M(this.target)}function G(t){if(!x(t))return!1;const{target:e}=this;return!!x(e)||(W(t,e),!1)}function X(t,e){const{target:n}=this,o=A(n,e);return void 0===o?o:(!1===o.configurable&&H(t,o,e),C(o))}function Y(t){return z(S(this.target))}function Z(e,n){return R(this.target,t.getBlueValue(n))}function J(e,n,o,r){const{target:i}=this;if(!I(i,n)){const t=z(S(i));return null!==t&&D(t,n,o,r)}const c=function(t,e){return null==t?k(b,t,[e]):void 0}(i,n);return c?(k(z(c),r,[o]),!0):D(i,n,t.getBlueValue(o))}function Q(t,e){return L(this.target,e)}function tt(t){const{target:e}=this;if(x(t)){if(!_(e))return x(e)||W(t,e),!1;W(t,e)}return!0}function et(e,n,o){const{target:r}=this,i=function(e){const n={__proto__:null,...e};if("writable"in n)n.value=t.getBlueValue(n.value);else{const{get:e,set:o}=n;"function"==typeof e&&(n.get=t.getBlueValue(e)),"function"==typeof o&&(n.set=t.getBlueValue(o))}return n}(o);if(P(r,n,i)&&!1===i.configurable){H(e,A(r,n),n)}return!0}function nt(t,e){return ut(this,t),this.setPrototypeOf(t,e)}function ot(t,e,n,o){return ut(this,t),this.set(t,e,n,o)}function rt(t,e){return ut(this,t),this.deleteProperty(t,e)}function it(t){return ut(this,t),this.preventExtensions(t)}function ct(t,e,n){return ut(this,t),this.defineProperty(t,e,n)}function st(t,e){const n=function(t){const e={__proto__:null,descriptors:null,isBroken:!1,isExtensible:!1,isFrozen:!1,isSealed:!1,proto:null};try{e.proto=S(t),e.descriptors=m(t),w(t)?e.isFrozen=e.isSealed=e.isExtensible=!0:g(t)?e.isSealed=e.isExtensible=!0:x(t)&&(e.isExtensible=!0),p(t)}catch(t){e.proto=null,e.descriptors={},e.isBroken=!0}return e}(t.target),{proto:o,isBroken:r}=n;r&&t.revoke();const i=z(o);R(e,i),function(t,e){const n=M(e);for(let o=0,r=n.length;o<r;o+=1){const r=n[o];if(I(e,r)){$(t,r,C(e[r]))}}}(e,n.descriptors),n.isFrozen?y(e):n.isSealed?h(e):n.isExtensible||_(e);const c=t;delete c.getOwnPropertyDescriptor,delete c.getPrototypeOf,delete c.get,delete c.has,delete c.ownKeys,delete c.isExtensible,t.set=D,t.defineProperty=P,t.deleteProperty=L,t.setPrototypeOf=R,t.preventExtensions=_,y(t)}function ut(t,e){!function(t){let e=!1;try{e=I(t,n)}catch{}return e}(t.target)?st(t,e):function(t,e){t.set=J,t.deleteProperty=Q,t.setPrototypeOf=Z,t.preventExtensions=tt,t.defineProperty=et}(t),y(t)}class at{constructor(t){this.apply=j,this.construct=B,this.get=V,this.has=K,this.ownKeys=q,this.isExtensible=G,this.getOwnPropertyDescriptor=X,this.getPrototypeOf=Y,this.setPrototypeOf=nt,this.set=ot,this.deleteProperty=rt,this.preventExtensions=it,this.defineProperty=ct,this.revoke=f,this.target=t}}return R(at.prototype,null),z}.toString().replace("{","{'use strict';");const gs=Proxy,{isArray:ws}=Array;function vs(t){let e;if("function"==typeof t){try{e="prototype"in t?function(){}:()=>{}}catch{e=function(){}}!function(t,e){try{const n=Qc(t,"name");Zc(e,"name",n)}catch{}}(t,e)}else{let n=!1;try{n=ws(t)}catch{}e=n?[]:{}}return e}function bs(t){function e(t,e,n){const r=Qc(e,n);if(void 0!==r){const e=o(r);Zc(t,n,e)}}function n(e){const n=vs(e),o=new u(e),r=new gs(n,o);return t.setRefMapEntries(e,r),r}function o(t){const e={__proto__:null,...t};if("writable"in e){const{value:t}=e;e.value="function"==typeof t?r(t):i(t)}else{const{get:t,set:n}=e;"function"==typeof t&&(e.get=r(t)),"function"==typeof n&&(e.set=r(n))}return e}function r(e){const o=t.getBlueRef(e);return void 0===o?n(e):o}function i(e){if(null==e)return e;if("function"==typeof e)return r(e);if("object"==typeof e){const o=t.getBlueRef(e);return void 0===o?n(e):o}return e}function c(e){const{length:n}=e,o=new Fc(n);for(let r=0;r<n;r+=1)r in e&&(o[r]=t.getRedValue(e[r]));return o}function s(t,e){!function(t,e){const n=Wc(e),r=ts(n),i={__proto__:null};for(let t=0,e=r.length;t<e;t+=1){const e=r[t],c=o(n[e]);i[e]=c}zc(t,i)}(t,e),Yc(t,i(Xc(e))),es(t)}class u{constructor(t){this.target=t,$c(this)}apply(e,n,o){const{target:r}=this,i=t.getRedValue(n),s=c(o);let u;try{u=qc(r,i,s)}catch(e){throw t.getBlueValue(e)}return t.getBlueValue(u)}construct(e,n,o){const{target:r}=this;if(void 0===o)throw new ls;const i=t.getRedValue(o),s=c(n);let u;try{u=Gc(r,s,i)}catch(e){throw t.getBlueValue(e)}return t.getBlueValue(u)}defineProperty(n,o,r){const{target:i}=this,c=function(e){const n={__proto__:null,...e};return"value"in n&&(n.value=t.getRedValue(n.value)),"set"in n&&(n.set=t.getRedValue(n.set)),"get"in n&&(n.get=t.getRedValue(n.get)),n}(r);return Zc(i,o,c)&&!1===c.configurable&&e(n,i,o),!0}deleteProperty(t,e){return ns(this.target,e)}get(t,e,n){const{target:o}=this,r=Qc(o,e);if(void 0===r){const t=i(Xc(o));if(null===t)return;return rs(t,e,n)}return Vc(r,"get")?qc(i(r.get),n,Ic):i(r.value)}getOwnPropertyDescriptor(t,n){const{target:r}=this,i=Qc(r,n);return void 0===i?i:(!1===i.configurable&&e(t,r,n),o(i))}getPrototypeOf(e){return t.getBlueValue(Xc(this.target))}has(t,e){const{target:n}=this;if(Vc(n,e))return!0;const o=i(Xc(n));return null!==o&&os(o,e)}isExtensible(t){if(!Jc(t))return!1;const{target:e}=this;return!!Jc(e)||(s(t,e),!1)}ownKeys(t){return ts(this.target)}preventExtensions(t){const{target:e}=this;if(Jc(t)){if(!es(e))return Jc(e)||s(t,e),!1;s(t,e)}return!0}set(e,n,o,r){const{target:c}=this,s=Qc(c,n);if(void 0===s){const t=i(Xc(c));if(null!==t)return is(t,n,o,r)}else if(Vc(s,"set"))return qc(i(s.set),r,[o]),!0;return is(c,n,t.getRedValue(o))}setPrototypeOf(e,n){return Yc(this.target,t.getRedValue(n))}}return Yc(u.prototype,null),$c(u.prototype),i}const Es=/^\d+$/,Ts=t=>t;class ks{constructor(t){if(this.redMap=new fs,this.blueMap=new fs,void 0===t)throw new Hc("Missing VirtualEnvironmentOptions options bag.");const{redGlobalThis:e,distortionCallback:n}=t;this.distortionCallback=n||Ts;const o=e.eval(`(${hs})`),r={apply:(t,e,n)=>qc(t,e,n),construct:(t,e,n)=>Gc(t,e,n)};this.getRedValue=o(this,r),this.getBlueValue=bs(this)}getBlueValue(t){}getRedValue(t){}getBlueRef(t){const e=ms(this.redMap,t);if(void 0!==e)return e}getRedRef(t){const e=ms(this.blueMap,t);if(void 0!==e)return e}setRefMapEntries(t,e){ys(this.redMap,t,e),ys(this.blueMap,e,t)}remap(t,e,n){const o=this,r=ts(n),i={__proto__:null};for(let e=0,c=r.length;e<c;e+=1){const c=r[e];if("symbol"!=typeof c&&qc(cs,Es,[c]))continue;if(!xs(t,c)){console.warn(`Property ${String(c)} of ${t} cannot be remapped.`);continue}const s={__proto__:null,...n[c]},u={__proto__:null,...s};if("value"in s)u.value=o.getRedValue(s.value);else{let t=()=>{};if("function"==typeof s.get){const{get:e}=s,n=this.distortionCallback(e);t=function(){const t=qc(n,o.getBlueValue(this),Ic);return o.getRedValue(t)},u.get=function(){return qc(t,this,Ic)}}"function"==typeof s.set&&(u.set=function(e){t=()=>e})}i[c]=u}zc(t,i)}}function xs(t,e){const n=Qc(t,e);return void 0===n||!0===n.configurable}const As=new fs,Rs=new ss(["Infinity","NaN","undefined","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","AggregateError","Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Error","EvalError","FinalizationRegistry","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Number","Object","Proxy","RangeError","ReferenceError","RegExp","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakRef","Atomics","JSON","Math","Reflect","escape","unescape"]),Ss=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError"];function _s(t){let e=ms(As,t);if(void 0!==e)return e;e={__proto__:null},ys(As,t,e);for(let n=0,o=Ss.length;n<o;n+=1){const o=Ss[n];e[o]=t[o]}return e}function Ls(t){return as(Rs,t)}const Ms=new fs;function Ps(t){const e={__proto__:null};return e.window=t.window,e.document=t.document,e.WindowProto=Xc(e.window),e.WindowPropertiesProto=Xc(e.WindowProto),e.EventTargetProto=Xc(e.WindowPropertiesProto),e.DocumentProto=Xc(e.document),e}function Os(t){let e=ms(Ms,t);return void 0!==e||(e=Ps(t),ys(Ms,t,e),e.windowDescriptors=Wc(e.window),e.WindowProtoDescriptors={__proto__:null},e.WindowPropertiesProtoDescriptors={__proto__:null},e.EventTargetProtoDescriptors=Wc(e.EventTargetProto)),e}function Ds(t,e,n,o){Yc(n.document,t.getRedValue(e.DocumentProto));const r=function(t,e,n){const o={__proto__:null};for(let n=0,r=t.length;n<r;n+=1){const r=t[n];Ls(r)||(o[r]=e[r])}return Cc(o,n),delete o.location,delete o.document,delete o.window,delete o.top,delete o.crypto,delete o.chrome,o}(n.windowOwnKeys,e.windowDescriptors,o),i=function(t,e){const n={__proto__:null};for(let o=0,r=t.length;o<r;o+=1){const r=t[o];n[r]=e[r]}return n}(n.WindowPropertiesProtoOwnKeys,e.WindowPropertiesProtoDescriptors);t.remap(n.window,e.window,r),t.remap(n.EventTargetProto,e.EventTargetProto,e.EventTargetProtoDescriptors),t.remap(n.WindowPropertiesProto,e.WindowPropertiesProto,i),t.remap(n.WindowProto,e.WindowProto,e.WindowProtoDescriptors)}Os(window);const{createElement:Ns}=document,{remove:Fs}=Element.prototype,{appendChild:Is}=Node.prototype,Hs=Kc(Document.prototype,"body"),Cs=Kc(Node.prototype,"isConnected"),zs=Kc(Node.prototype,"lastChild");function Us(){const t=(e=document,qc(Ns,e,["iframe"]));var e;t.setAttribute("sandbox","allow-same-origin allow-scripts"),t.style.display="none";var n;return((t,e)=>{qc(Is,t,[e])})((t=>qc(Hs,t,Ic))(document)||(n=document,qc(zs,n,Ic)),t),t}function $s(t){qc(Cs,t,Ic)&&qc(Fs,t,Ic)}const{open:Ws,close:js}=document;function Bs(t){const{distortionCallback:e,endowments:n,keepAlive:o}=t||{__proto__:null},r=Us(),i=window,c=r.contentWindow.window,s=function(t){const e={__proto__:null},n=ts(t);for(let o=0,r=n.length;o<r;o+=1){const r=n[o];as(Rs,r)||(e[r]=Qc(t,r))}return e}(n||{}),{eval:u}=c,a=Os(i),l=function(t){const e=Ps(t);return e.windowOwnKeys=ts(e.window),e.WindowPropertiesProtoOwnKeys=[],e}(c),f=new ks({blueGlobalThis:i,redGlobalThis:c,distortionCallback:e});return function(t){const{Error:e}=t;Vc(e,"stackTraceLimit")&&"number"==typeof e.stackTraceLimit&&(e.stackTraceLimit*=2)}(c),function(t,e,n){const o=_s(e),r=_s(n);for(let e=0,n=Ss.length;e<n;e+=1){const n=Ss[e],i=o[n],c=r[n];i&&(t.setRefMapEntries(c,i),i.prototype&&t.setRefMapEntries(c.prototype,i.prototype))}}(f,i,c),function(t,e,n){t.setRefMapEntries(n.window,e.window),t.setRefMapEntries(n.document,e.document),t.setRefMapEntries(n.EventTargetProto,e.EventTargetProto),t.setRefMapEntries(n.WindowPropertiesProto,e.WindowPropertiesProto),t.setRefMapEntries(n.WindowProto,e.WindowProto)}(f,a,l),Ds(f,a,l,s),!0!==o?$s(r):(Ws.call(l.document),js.call(l.document)),t=>{try{u(t)}catch(t){throw f.getBlueValue(t)}}}let Vs,Ks;function qs(){const t=Vs;return Vs=void 0,t}function Gs(){const t=Ks;return Ks=void 0,t}function Xs(t){Vs=t}const Ys=N({$lockerEvalContext$:{get:()=>qs()},$lockerEvalHelpers$:{get:()=>Gs()}}),Zs=z(null);const Js=new Qt;function Qs(t){return e=>{const{distortions:n}=t,o=te(n,e);return o||(No(e)&&Fo(e)&&(!function(t,e){const{distortionFactory:n,distortions:o}=t,r=n(e);for(let t=0,e=r.length;t<e;t+=1){const[e,n]=r[t];ee(o,e,n)}}(t,e),ee(n,e,e)),e)}}function tu(t,e,n){const o=z(null,Ys);n&&$(o,N(W(n)));const r=z(null),i=Qs(r);return r.distortionFactory=e,r.distortions=new Qt(e(window)),r.evaluator=Bs({distortionCallback:i,endowments:o,keepAlive:!1}),r.helpers=z(null),Xs({loadingPromises:Js,helpersFactory:t=>{C(r.helpers,t())}}),r.evaluator(`'use strict';\n const { loadingPromises, helpersFactory } = $lockerEvalContext$;\n helpersFactory(${function(){const{iterator:t}=Symbol,{[t]:e}=Array.prototype,{freeze:n}=Object,o=Promise,r=o.resolve.bind(o),{apply:i,setPrototypeOf:c}=Reflect,{createElement:s}=Document.prototype,{querySelector:u,setAttribute:a}=Element.prototype,{stopPropagation:l}=Event.prototype,{addEventListener:f}=EventTarget.prototype,{appendChild:p}=Node.prototype,{get:d,set:m}=WeakMap.prototype,y=document,h=[],g=y.head;function w(t,...e){return i(s,t,e)}function v(t,e){return i(u,t,[e])}function b(t,...e){return i(f,t,e)}function E(t,e){return i(d,t,[e])}const T=function*(){}.constructor.prototype.prototype,{next:k,throw:x}=T,A=(t,e)=>i(k,t,[e]),R=(t,e)=>i(x,t,[e]);function S(t,e,n,o,i,c,s){let u,a;try{u=c(t,s),a=u.value}catch(t){return void n(t)}u.done?e(a):r(a).then(o,i)}const _=""+crypto.getRandomValues(new Uint32Array(1))[0];function L(t,e){const n=new o((n,o)=>{b(t,"load",()=>{n(void 0)}),b(t,"error",t=>{i(l,t,h),o((t=>`[Locker] resource loader error loading "${t}"`)(e))})});return function(t,e,n){i(m,t,[e,n])}(Js,t,n),i(p,g,[t]),n}return{asyncToGen:function(t,e,n){return new o((o,r)=>{const c=i(t,e,n);function s(t){S(c,o,r,s,u,A,t)}function u(t){S(c,o,r,s,u,R,t)}s(void 0)})},loadScript:function(t,e){let n=v(g,`script[data-distorted-src='${e}'][data-locker-id='${_}']`);return n?E(Js,n)||r():(n=w(y,"script"),i(a,n,["data-locker-id",_]),n.type="text/javascript",n.src=e,L(n,e))},loadStyle:function(t,e){let n=v(g,`link[href='${e}']`);return n?E(Js,n)||r():(n=w(y,"link"),n.type="text/css",n.rel="stylesheet",n.href=e,L(n,e))},ObjectFreeze:n,spreadable:function(n){return c(n,null),n[t]=e,n}}}})`),Zs[t]=r,r}function eu(t,e,n,o,r){const i=r||Nc,{errorBeacon:c,activityBeacon:s}=i;"string"!=typeof e&&(e=function(t){let e=Ut(t);return"function"==typeof t&&(e=Ot(e,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),e=Dt(e,/\/\/# sandbox(MappingURL=.*?\s*)$/,(t,e)=>"//# source"+e),e=Dt(e,/\breturn\s*\[\s*(["'])\u200D\1\s*,\s*([^,\s]+)\s*,\s*([^\]\s]+)\s*\]/g,(t,e,n,o)=>`${n}=${o}`),"'use strict';"+e}(e));let u=function(t){return Zs[t]}(t);if(!u){O(o)||(o=void 0);const e=z(null,{instrumentation:{value:i}}),n=n=>{const o=s(t,"createExternalDistortionEntries");o.start();const r=Sc(n,t,eu,e);return o.stop(),r},r=s(t,"createSandbox");r.start(),u=tu(t,n,o),r.stop()}var a;let l;Xs(n),a=u.helpers,Ks=a;try{u.evaluator(e)}catch(t){l=t}finally{if(qs(),Gs(),void 0!==l)throw c(t,l),l}}const nu=globalThis.LWR.define;function ou(t,e,n,o){const[r,i]=t.split("/");if(o.includes(r)||o.includes(r+"/*")||o.includes(`${r}/${i}`))return n;const c=function(t,e,n){let o;return eu(t,`"use strict";$lockerEvalContext$(${n.toString()});\n//# sourceURL=modules/${e}.js\n`,t=>{o=t}),o}(r,t,n),s=e.indexOf("exports");return s>=0?function(...t){const e=t.map((t,e)=>{return e===s&&(n=t,Reflect.defineProperty(n,Symbol.for("@@lockerLiveValue"),{}),n)||t;var n});return c.apply(this,e)}:c}function ru(t){globalThis.LWR=Object.freeze(Object.assign(Object.assign({},globalThis.LWR),{define:function(e,n,o,r){"function"==typeof n&&(r=o,o=n,n=[]),nu(e,n,ou(e,n,o,t),r)}}))}export{ru as registerLockerDefine};
|
|
1
|
+
const{apply:t,construct:e,deleteProperty:n,has:r,get:o,getPrototypeOf:i,set:a,setPrototypeOf:s,defineProperty:c,isExtensible:l,getOwnPropertyDescriptor:u,ownKeys:f,preventExtensions:p}=Reflect,{filter:d,includes:y,indexOf:m,join:h,pop:g,slice:b,some:v}=Array.prototype,w=[],T=Array,{from:E,isArray:k}=Array,{push:P}=Array.prototype;function x(e,...n){const r=t(b,e,[0]),{length:o}=n;for(let e=0;e<o;e+=1){const o=n[e];t(P,r,k(o)?o:[o])}return r}function S(e,n){return t(y,e,[n])}function A(e,...n){return t(h,e,n)}function O(e,...n){return t(P,e,n)}function L(e,...n){return t(b,e,n)}const{now:M}=Date,{bind:D}=Function.prototype,R=(e,n)=>t(D,e,[n]),{create:_}=Object,{ownKeys:N,setPrototypeOf:I}=Reflect;function C(t){return"function"==typeof t||"object"==typeof t&&null!==t}function F(t){const e=N(t),n=_(null);for(let r=0,o=e.length;r<o;r+=1){const o=e[r];n[o]=t[o]}return n}function H(t){const e=N(t);for(let n=0,r=e.length;n<r;n+=1)I(t[e[n]],null);return t}const $="undefined"==typeof performance?M:R(performance.now,performance),{__lookupGetter__:j,__lookupSetter__:U,hasOwnProperty:z}=Object.prototype,{assign:G,create:W,defineProperty:K,defineProperties:V,getOwnPropertyDescriptors:q,freeze:B,getOwnPropertyNames:X,getOwnPropertySymbols:Y,keys:Z,seal:J,isSealed:Q,isFrozen:tt,preventExtensions:et}=Object;function nt(e,n){return null!=e&&t(z,e,[n])}function rt(e,n){if(null!=e&&t(z,e,[n]))return t(j,e,[n])}function ot(e,n){if(null!=e&&t(z,e,[n]))return t(U,e,[n])}function it(e,n){if(null!=e&&t(z,e,[n]))return e[n]}const at=Proxy,st=Proxy.revocable;function ct(t){const e=st(t,W(null));return e.revoke(),e.proxy}const lt=Error,ut=RangeError,ft=TypeError;class pt extends Error{}class dt extends pt{}const{parse:yt,stringify:mt}=JSON,{for:ht,iterator:gt}=Symbol,bt=ht("@@lockerLiveValue");function vt(t){return c(t,bt,{value:void 0,configurable:!1,enumerable:!1,writable:!1}),t}const wt=ht("@@lockerMagicValue");const{clear:Tt,entries:Et,forEach:kt,get:Pt,set:xt}=Map.prototype,St=Map;const At=Math.min,{then:Ot}=Promise.prototype;const Lt=String,{charCodeAt:Mt,includes:Dt,match:Rt,replace:_t,slice:Nt,split:It,substring:Ct,startsWith:Ft,toLowerCase:Ht,toUpperCase:$t}=String.prototype;function jt(e,n){return t(Mt,e,[n])}function Ut(e,n){return t(Rt,e,[n])}function zt(e,n,r){return t(_t,e,[n,r])}function Gt(e,...n){return t(It,e,n)}function Wt(e,...n){return t(Ct,e,n)}function Kt(e,...n){return t(Ft,e,n)}function Vt(e){return t(Ht,e,w)}function qt(e){return t($t,e,w)}function Bt(e){return e.length?`${qt(e[0])}${function(e,...n){return t(Nt,e,n)}(e,1)}`:""}function Xt(t){try{return Lt(t)}catch(t){return""}}function Yt(t){return null==t?t:Xt(t)}const{test:Zt}=RegExp.prototype;function Jt(e,n){return t(Zt,e,[Xt(n)])}function Qt(t){return t}function te(t,e){const n=t.length,r=e.length,o=At(n,r),i=E(t);for(let n=0;n<o;n+=1)i[n]=e[n](t[n]);return i}const{add:ee,delete:ne,has:re}=Set.prototype,oe=Set;function ie(e,n){return t(re,e,[n])}const{get:ae,set:se}=WeakMap.prototype,ce=WeakMap;function le(e,n){return t(ae,e,[n])}function ue(e,n,r){return t(se,e,[n,r])}const fe=rt(Attr.prototype,"name"),pe=rt(Attr.prototype,"namespaceURI"),de=rt(Attr.prototype,"ownerElement"),{get:ye,set:me}=u(Attr.prototype,"value");function he(e){return t(fe,e,w)}function ge(e){return t(pe,e,w)}function be(e){return t(de,e,w)}function ve(e){return t(ye,e,w)}function we(e,n){t(me,e,[n])}const{get:Te,set:Ee}=u(Document.prototype,"cookie"),{createComment:ke,createElement:Pe,createElementNS:xe,getElementById:Se}=Document.prototype,Ae=rt(Document.prototype,"body"),Oe=rt(Document.prototype,"head"),{execCommand:Le}=Document.prototype;function Me(e){return t(Ae,e,w)}function De(e,...n){return t(Pe,e,n)}function Re(t,e){return`${_e(e)}${t}`}function _e(t){return`LSKey-${t}$`}const{attachShadow:Ne,insertAdjacentHTML:Ie,setAttribute:Ce,setAttributeNS:Fe,setAttributeNode:He}=Element.prototype,{closest:$e,getAttributeNode:je,getAttributeNodeNS:Ue,querySelector:ze,remove:Ge,removeAttributeNode:We,setAttributeNodeNS:Ke}=Element.prototype,{get:Ve,set:qe}=u(Element.prototype,"innerHTML"),{get:Be,set:Xe}=u(Element.prototype,"outerHTML"),Ye=rt(Element.prototype,"attributes");function Ze(e){return t(Ve,e,w)}function Je(e,n){t(qe,e,[n])}function Qe(e,n){return t(ze,e,[n])}function tn(e,n){return t(je,e,[n])}function en(e,n,r){return t(Ue,e,[n,r])}function nn(e,n){return t(We,e,[n])}function rn(e,n,r){return t(Ce,e,[n,r])}function on(e,n){return t(He,e,[n])}function an(e,n){return t(Ke,e,[n])}const sn=rt(HTMLTemplateElement.prototype,"content");function cn(e){return t(sn,e,w)}const{appendChild:ln,cloneNode:un,isEqualNode:fn}=Node.prototype,pn=rt(Node.prototype,"childNodes"),dn=rt(Node.prototype,"firstChild"),yn=rt(Node.prototype,"lastChild"),mn=rt(Node.prototype,"nodeName"),hn=rt(Node.prototype,"ownerDocument"),gn=ot(Node.prototype,"textContent");function bn(e,n){return t(ln,e,[n])}function vn(e){return t(pn,e,w)}const{document:wn}=window,Tn=De(wn,"template"),En=De(wn,"template");function kn(e,n){const r=e instanceof HTMLTemplateElement?cn(e):e,o=n instanceof HTMLTemplateElement?cn(n):n;if(t(fn,r,[o])){const t=vn(r),e=t.length;if(e>0){const n=vn(o);for(let r=0;r<e;r+=1)if(!1===kn(t[r],n[r]))return!1}return!0}return!1}function Pn(e,n=wn){return e===function(e){return t(Oe,e,w)}(n)||e===Me(n)}const xn=rt(Blob.prototype,"size"),{slice:Sn}=Blob.prototype,An=rt(Blob.prototype,"type"),On=Blob;const Ln="undefined"==typeof CookieStore?void 0:CookieStore.prototype,Mn=it(Ln,"delete"),Dn=it(Ln,"get"),Rn=it(Ln,"getAll"),_n=it(Ln,"set"),{define:Nn,get:In}=CustomElementRegistry.prototype,{getElementById:Cn}=DocumentFragment.prototype;const Fn=rt(DOMTokenList.prototype,"value");const{composedPath:Hn}=Event.prototype,$n=rt(Event.prototype,"currentTarget");const{addEventListener:jn}=EventTarget.prototype;function Un(e,...n){return t(jn,e,n)}const zn=rt(HTMLAnchorElement.prototype,"hostname"),{get:Gn,set:Wn}=u(HTMLAnchorElement.prototype,"href"),Kn=rt(HTMLAnchorElement.prototype,"pathname"),Vn=rt(HTMLAnchorElement.prototype,"protocol");function qn(e){return t(zn,e,w)}function Bn(e){return t(Gn,e,w)}function Xn(e,n){t(Wn,e,[n])}function Yn(e){return t(Vn,e,w)}const Zn=ot(HTMLElement.prototype,"innerText"),Jn=ot(HTMLElement.prototype,"outerText"),Qn=rt(HTMLElement.prototype,"dataset"),tr=rt(HTMLElement.prototype,"style");function er(e){return t(Qn,e,w)}const nr=Zn?function(e,n){t(Zn,e,[n])}:function(t,e){},rr=Jn?function(e,n){t(Jn,e,[n])}:function(t,e){};function or(e){return t(tr,e,w)}const ir=rt(HTMLFrameElement.prototype,"contentDocument"),ar=rt(HTMLFrameElement.prototype,"contentWindow");const sr=rt(HTMLIFrameElement.prototype,"contentDocument"),cr=rt(HTMLIFrameElement.prototype,"contentWindow"),lr=ot(HTMLIFrameElement.prototype,"src");function ur(e){return t(cr,e,w)}const fr=ot(HTMLLinkElement.prototype,"rel"),pr=ot(HTMLLinkElement.prototype,"relList");const dr=rt(HTMLObjectElement.prototype,"contentDocument"),yr=rt(HTMLObjectElement.prototype,"contentWindow");const mr=yr?function(e){return t(yr,e,w)}:function(t){return null},{get:hr,set:gr}=u(HTMLScriptElement.prototype,"src"),br=rt(MessageEvent.prototype,"source");const{setNamedItem:vr}=NamedNodeMap.prototype,{createContextualFragment:wr}=Range.prototype,Tr=rt(Request.prototype,"url");const{key:Er,getItem:kr,removeItem:Pr,setItem:xr}=Storage.prototype,Sr=(()=>{const t=document.createElement("div");return c(t.style,"color",{value:"red"}),""===t.getAttribute("style")})(),Ar=rt(SVGElement.prototype,"dataset");function Or(e){return t(Ar,e,w)}const{createObjectURL:Lr,revokeObjectURL:Mr}=URL,Dr=["opener","parent","postMessage"],Rr=["close","closed","focus"],_r={},{clearInterval:Nr}=window,Ir=rt(window,"length"),Cr=rt(window,"opener"),Fr=rt(window,"parent"),Hr=it(window,"postMessage"),$r=rt(window,"self"),jr=new ce;function Ur(...e){const n=e.length?e[0]:void 0;if("object"==typeof(r=n)&&null!==r)try{e[0]=function(t){return yt(mt(t))}(n)}catch(t){throw new DOMException("The object could not be cloned.")}var r;return t(Hr,this,e)}const{decodeURIComponent:zr,encodeURIComponent:Gr,fetch:Wr,open:Kr,setInterval:Vr,setTimeout:qr}=window;function Br(e){let n=null;return null!==e&&(n=le(jr,e),n||(n=function(e){const n={};for(let r=0,o=Rr.length;r<o;r+=1){const o=Rr[r],i=u(e,o);if(i){s(i,null);const{value:r}=i;if("function"==typeof r){const t=R(r,e);c(t,"name",u(r,"name")),i.value=t}else{const{get:n,set:r}=i;let o=_r;"function"==typeof n&&(i.get=function(){return o===_r?t(n,e,w):o}),"function"==typeof r&&(i.set=function(t){o=t})}c(n,o,i)}}for(let r=0,o=Dr.length;r<o;r+=1){const o=Dr[r],i=u(e,o);if(i){s(i,null);const{get:r,set:a,value:l}=i;let u=_r;"function"==typeof r&&(i.get=function(){return u===_r?Br(t(r,e,w)):u}),"function"==typeof a&&(i.set=function(t){u=t}),"postMessage"===o&&"function"==typeof l&&(i.value=function(...n){return t(Ur,e,n)}),c(n,o,i)}}return n}(e),ue(jr,e,n))),n}function Xr(t){return nt(t,"top")}function Yr(e){try{return t($r,e,w),!0}catch(t){}return!1}function Zr(e){return t(Ir,e,w)}const Jr=XMLHttpRequest,Qr=Jr.prototype,{send:to}=Qr,eo=rt(Qr,"responseText"),no=rt(Qr,"status"),ro=ot(Qr,"withCredentials"),{open:oo}=Qr;function io(e,n,r,o=!0){return t(oo,e,[n,r,o])}function ao(e){return t(eo,e,w)}function so(e){return t(to,e,w)}function co(e){return t(no,e,w)}const lo=["http:","https:"],uo=["/aura","/webruntime"],fo=/[\u2029\u2028\n\r\t]/g,po=De(document,"a"),yo=/\.(force|salesforce|visualforce|documentforce|my\.site|salesforce-sites)\.com$/;function mo(e){const n=Vt(e.pathname);return r=e=>function(e,...n){return t(Dt,e,n)}(n,e),t(v,uo,[r]);var r}function ho(e){return Xn(po,go(e)),{normalizedURL:Bn(po),hostname:qn(po),pathname:zr((n=po,t(Kn,n,w)))};var n}function go(t){return""===t?t:zt(t,fo,"")}var bo=Object.hasOwnProperty,vo=Object.setPrototypeOf,wo=Object.isFrozen,To=Object.getPrototypeOf,Eo=Object.getOwnPropertyDescriptor,ko=Object.freeze,Po=Object.seal,xo=Object.create,So="undefined"!=typeof Reflect&&Reflect,Ao=So.apply,Oo=So.construct;Ao||(Ao=function(t,e,n){return t.apply(e,n)}),ko||(ko=function(t){return t}),Po||(Po=function(t){return t}),Oo||(Oo=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(e))))});var Lo,Mo=jo(Array.prototype.forEach),Do=jo(Array.prototype.pop),Ro=jo(Array.prototype.push),_o=jo(String.prototype.toLowerCase),No=jo(String.prototype.match),Io=jo(String.prototype.replace),Co=jo(String.prototype.indexOf),Fo=jo(String.prototype.trim),Ho=jo(RegExp.prototype.test),$o=(Lo=TypeError,function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return Oo(Lo,e)});function jo(t){return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ao(t,e,r)}}function Uo(t,e){vo&&vo(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var o=_o(r);o!==r&&(wo(e)||(e[n]=o),r=o)}t[r]=!0}return t}function zo(t){var e=xo(null),n=void 0;for(n in t)Ao(bo,t,[n])&&(e[n]=t[n]);return e}function Go(t,e){for(;null!==t;){var n=Eo(t,e);if(n){if(n.get)return jo(n.get);if("function"==typeof n.value)return jo(n.value)}t=To(t)}return function(t){return console.warn("fallback value for",t),null}}var Wo=ko(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ko=ko(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Vo=ko(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),qo=ko(["animate","color-profile","cursor","discard","fedropshadow","feimage","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"]),Bo=ko(["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"]),Xo=ko(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Yo=ko(["#text"]),Zo=ko(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Jo=ko(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","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"]),Qo=ko(["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"]),ti=ko(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ei=Po(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ni=Po(/<%[\s\S]*|[\s\S]*%>/gm),ri=Po(/^data-[\-\w.\u00B7-\uFFFF]/),oi=Po(/^aria-[\-\w]+$/),ii=Po(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ai=Po(/^(?:\w+script|data):/i),si=Po(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function li(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var ui=function(){return"undefined"==typeof window?null:window},fi=function(t,e){if("object"!==(void 0===t?"undefined":ci(t))||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};var pi=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ui(),n=function(e){return t(e)};if(n.version="2.2.9",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,i=e.DocumentFragment,a=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,f=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,p=e.Text,d=e.Comment,y=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Go(h,"cloneNode"),b=Go(h,"nextSibling"),v=Go(h,"childNodes"),w=Go(h,"parentNode");if("function"==typeof a){var T=o.createElement("template");T.content&&T.content.ownerDocument&&(o=T.content.ownerDocument)}var E=fi(m,r),k=E&&tt?E.createHTML(""):"",P=o,x=P.implementation,S=P.createNodeIterator,A=P.createDocumentFragment,O=r.importNode,L={};try{L=zo(o).documentMode?o.documentMode:{}}catch(t){}var M={};n.isSupported="function"==typeof w&&x&&void 0!==x.createHTMLDocument&&9!==L;var D=ei,R=ni,_=ri,N=oi,I=ai,C=si,F=ii,H=null,$=Uo({},[].concat(li(Wo),li(Ko),li(Vo),li(Bo),li(Yo))),j=null,U=Uo({},[].concat(li(Zo),li(Jo),li(Qo),li(ti))),z=null,G=null,W=!0,K=!0,V=!1,q=!1,B=!1,X=!1,Y=!1,Z=!1,J=!1,Q=!0,tt=!1,et=!0,nt=!0,rt=!1,ot={},it=Uo({},["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"]),at=null,st=Uo({},["audio","video","img","source","image","track"]),ct=null,lt=Uo({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),ut="http://www.w3.org/1998/Math/MathML",ft="http://www.w3.org/2000/svg",pt="http://www.w3.org/1999/xhtml",dt=pt,yt=!1,mt=null,ht=o.createElement("form"),gt=function(t){mt&&mt===t||(t&&"object"===(void 0===t?"undefined":ci(t))||(t={}),t=zo(t),H="ALLOWED_TAGS"in t?Uo({},t.ALLOWED_TAGS):$,j="ALLOWED_ATTR"in t?Uo({},t.ALLOWED_ATTR):U,ct="ADD_URI_SAFE_ATTR"in t?Uo(zo(lt),t.ADD_URI_SAFE_ATTR):lt,at="ADD_DATA_URI_TAGS"in t?Uo(zo(st),t.ADD_DATA_URI_TAGS):st,z="FORBID_TAGS"in t?Uo({},t.FORBID_TAGS):{},G="FORBID_ATTR"in t?Uo({},t.FORBID_ATTR):{},ot="USE_PROFILES"in t&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,K=!1!==t.ALLOW_DATA_ATTR,V=t.ALLOW_UNKNOWN_PROTOCOLS||!1,q=t.SAFE_FOR_TEMPLATES||!1,B=t.WHOLE_DOCUMENT||!1,Z=t.RETURN_DOM||!1,J=t.RETURN_DOM_FRAGMENT||!1,Q=!1!==t.RETURN_DOM_IMPORT,tt=t.RETURN_TRUSTED_TYPE||!1,Y=t.FORCE_BODY||!1,et=!1!==t.SANITIZE_DOM,nt=!1!==t.KEEP_CONTENT,rt=t.IN_PLACE||!1,F=t.ALLOWED_URI_REGEXP||F,dt=t.NAMESPACE||pt,q&&(K=!1),J&&(Z=!0),ot&&(H=Uo({},[].concat(li(Yo))),j=[],!0===ot.html&&(Uo(H,Wo),Uo(j,Zo)),!0===ot.svg&&(Uo(H,Ko),Uo(j,Jo),Uo(j,ti)),!0===ot.svgFilters&&(Uo(H,Vo),Uo(j,Jo),Uo(j,ti)),!0===ot.mathMl&&(Uo(H,Bo),Uo(j,Qo),Uo(j,ti))),t.ADD_TAGS&&(H===$&&(H=zo(H)),Uo(H,t.ADD_TAGS)),t.ADD_ATTR&&(j===U&&(j=zo(j)),Uo(j,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&Uo(ct,t.ADD_URI_SAFE_ATTR),nt&&(H["#text"]=!0),B&&Uo(H,["html","head","body"]),H.table&&(Uo(H,["tbody"]),delete z.tbody),ko&&ko(t),mt=t)},bt=Uo({},["mi","mo","mn","ms","mtext"]),vt=Uo({},["foreignobject","desc","title","annotation-xml"]),wt=Uo({},Ko);Uo(wt,Vo),Uo(wt,qo);var Tt=Uo({},Bo);Uo(Tt,Xo);var Et=function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:pt,tagName:"template"});var n=_o(t.tagName),r=_o(e.tagName);if(t.namespaceURI===ft)return e.namespaceURI===pt?"svg"===n:e.namespaceURI===ut?"svg"===n&&("annotation-xml"===r||bt[r]):Boolean(wt[n]);if(t.namespaceURI===ut)return e.namespaceURI===pt?"math"===n:e.namespaceURI===ft?"math"===n&&vt[r]:Boolean(Tt[n]);if(t.namespaceURI===pt){if(e.namespaceURI===ft&&!vt[r])return!1;if(e.namespaceURI===ut&&!bt[r])return!1;var o=Uo({},["title","style","font","a","script"]);return!Tt[n]&&(o[n]||!wt[n])}return!1},kt=function(t){Ro(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=k}catch(e){t.remove()}}},Pt=function(t,e){try{Ro(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){Ro(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!j[t])if(Z||J)try{kt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},xt=function(t){var e=void 0,n=void 0;if(Y)t="<remove></remove>"+t;else{var r=No(t,/^[\r\n\t ]+/);n=r&&r[0]}var i=E?E.createHTML(t):t;if(dt===pt)try{e=(new y).parseFromString(i,"text/html")}catch(t){}if(!e||!e.documentElement){e=x.createDocument(dt,"template",null);try{e.documentElement.innerHTML=yt?"":i}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),B?e.documentElement:a},St=function(t){return S.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},At=function(t){return!(t instanceof p||t instanceof d)&&!("string"==typeof t.nodeName&&"string"==typeof t.textContent&&"function"==typeof t.removeChild&&t.attributes instanceof f&&"function"==typeof t.removeAttribute&&"function"==typeof t.setAttribute&&"string"==typeof t.namespaceURI&&"function"==typeof t.insertBefore)},Ot=function(t){return"object"===(void 0===s?"undefined":ci(s))?t instanceof s:t&&"object"===(void 0===t?"undefined":ci(t))&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Lt=function(t,e,r){M[t]&&Mo(M[t],(function(t){t.call(n,e,r,mt)}))},Mt=function(t){var e=void 0;if(Lt("beforeSanitizeElements",t,null),At(t))return kt(t),!0;if(No(t.nodeName,/[\u0080-\uFFFF]/))return kt(t),!0;var r=_o(t.nodeName);if(Lt("uponSanitizeElement",t,{tagName:r,allowedTags:H}),!Ot(t.firstElementChild)&&(!Ot(t.content)||!Ot(t.content.firstElementChild))&&Ho(/<[/\w]/g,t.innerHTML)&&Ho(/<[/\w]/g,t.textContent))return kt(t),!0;if(!H[r]||z[r]){if(nt&&!it[r]){var o=w(t)||t.parentNode,i=v(t)||t.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(g(i[a],!0),b(t))}return kt(t),!0}return t instanceof c&&!Et(t)?(kt(t),!0):"noscript"!==r&&"noembed"!==r||!Ho(/<\/no(script|embed)/i,t.innerHTML)?(q&&3===t.nodeType&&(e=t.textContent,e=Io(e,D," "),e=Io(e,R," "),t.textContent!==e&&(Ro(n.removed,{element:t.cloneNode()}),t.textContent=e)),Lt("afterSanitizeElements",t,null),!1):(kt(t),!0)},Dt=function(t,e,n){if(et&&("id"===e||"name"===e)&&(n in o||n in ht))return!1;if(K&&Ho(_,e));else if(W&&Ho(N,e));else{if(!j[e]||G[e])return!1;if(ct[e]);else if(Ho(F,Io(n,C,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==Co(n,"data:")||!at[t]){if(V&&!Ho(I,Io(n,C,"")));else if(n)return!1}else;}return!0},Rt=function(t){var e=void 0,r=void 0,o=void 0,i=void 0;Lt("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};for(i=a.length;i--;){var c=e=a[i],l=c.name,u=c.namespaceURI;if(r=Fo(e.value),o=_o(l),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Lt("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(Pt(l,t),s.keepAttr))if(Ho(/\/>/i,r))Pt(l,t);else{q&&(r=Io(r,D," "),r=Io(r,R," "));var f=t.nodeName.toLowerCase();if(Dt(f,o,r))try{u?t.setAttributeNS(u,l,r):t.setAttribute(l,r),Do(n.removed)}catch(t){}}}Lt("afterSanitizeAttributes",t,null)}},_t=function t(e){var n=void 0,r=St(e);for(Lt("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)Lt("uponSanitizeShadowNode",n,null),Mt(n)||(n.content instanceof i&&t(n.content),Rt(n));Lt("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t,o){var a=void 0,c=void 0,l=void 0,u=void 0,f=void 0;if((yt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Ot(t)){if("function"!=typeof t.toString)throw $o("toString is not a function");if("string"!=typeof(t=t.toString()))throw $o("dirty is not a string, aborting")}if(!n.isSupported){if("object"===ci(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof t)return e.toStaticHTML(t);if(Ot(t))return e.toStaticHTML(t.outerHTML)}return t}if(X||gt(o),n.removed=[],"string"==typeof t&&(rt=!1),rt);else if(t instanceof s)1===(c=(a=xt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Z&&!q&&!B&&-1===t.indexOf("<"))return E&&tt?E.createHTML(t):t;if(!(a=xt(t)))return Z?null:k}a&&Y&&kt(a.firstChild);for(var p=St(rt?t:a);l=p.nextNode();)3===l.nodeType&&l===u||Mt(l)||(l.content instanceof i&&_t(l.content),Rt(l),u=l);if(u=null,rt)return t;if(Z){if(J)for(f=A.call(a.ownerDocument);a.firstChild;)f.appendChild(a.firstChild);else f=a;return Q&&(f=O.call(r,f,!0)),f}var d=B?a.outerHTML:a.innerHTML;return q&&(d=Io(d,D," "),d=Io(d,R," ")),E&&tt?E.createHTML(d):d},n.setConfig=function(t){gt(t),X=!0},n.clearConfig=function(){mt=null,X=!1},n.isValidAttribute=function(t,e,n){mt||gt({});var r=_o(t),o=_o(e);return Dt(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&(M[t]=M[t]||[],Ro(M[t],e))},n.removeHook=function(t){M[t]&&Do(M[t])},n.removeHooks=function(t){M[t]&&(M[t]=[])},n.removeAllHooks=function(){M={}},n}();const di=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-controls","aria-describedby","aria-disabled","aria-readonly","aria-dropeffect","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-disabled","aria-invalid","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","role","target"],yi=["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern","use"],mi=x(yi,["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","body","br","button","caption","canvas","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figure","figcaption","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","keygen","kbd","label","legend","li","map","mark","menu","meter","nav","ol","optgroup","option","output","p","pre","progress","q","rp","rt","ruby","s","samp","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),hi={ADD_ATTR:di,ALLOWED_TAGS:mi,IN_PLACE:!0},gi={ADD_ATTR:di,ALLOWED_TAGS:yi,RETURN_DOM_FRAGMENT:!0,SANITIZE_DOM:!1},bi={ADD_ATTR:di,ALLOWED_TAGS:(vi=mi,wi=t=>!S(["iframe"],t),t(d,vi,[wi])),SANITIZE_DOM:!1};var vi,wi;const Ti=new ce;function Ei(e,n){let r=le(Ti,e);return r||(r=pi(),r.setConfig(e),n&&function(e,n){t(kt,e,[n])}(n,((t,e)=>{r.addHook(e,t)})),ue(Ti,e,r),r)}const ki=["href","xlink:href"],Pi=new St([["uponSanitizeAttribute",function(e,n){const r=function(e){return qt(t(mn,e,w))}(e);n.attrValue&&"USE"===r&&S(ki,n.attrName)&&(n.attrValue=Fi(n.attrValue));return n}]]),xi=["http:","https:"],{document:Si}=window,Ai=De(Si,"template"),Oi=De(Si,"a"),Li=new oe,Mi=/[^a-z0-9]+/gi;function Di(e,n){if(ie(Li,n.normalizedUrl)){const r=function(e,...n){return t(Vr,e,n)}(window,(()=>{var o;ie(Li,n.normalizedUrl)||(_i(e,n),o=window,t(Nr,o,[r]))}),50)}else _i(e,n)}function Ri(e){const n=function(t){const e=De(Si,"div");return rn(e,"style","display:none"),rn(e,"id",t),bn(Me(Si),e),e}(e.normalizedUrl);var r,o;r=Li,o=e.normalizedUrl,t(ee,r,[o]);const i=new Jr;Un(i,"load",(()=>{if(200===co(i)){const r=$i(ao(i));if(e.requestedFragment){const n=function(e,n){return t(Cn,e,[n])}(r,e.requestedFragment);n&&rn(n,"id",e.normalizedFragment)}bn(n,r),function(e,n){t(ne,e,[n])}(Li,e.normalizedUrl)}})),io(i,"GET",e.requestedUrl),so(i)}function _i(t,e){const{normalizedFragment:n,requestedFragment:r}=e;let o=Qe(t,`#${n}`);if(!o)try{o=Qe(t,`#${r}`),rn(o,"id",n)}catch(t){}}function Ni(){return Ei(bi,Pi)}function Ii(){return Ei(gi,Pi)}function Ci(t){Je(Ai,t);const e=cn(Ai);return Ei(hi,Pi).sanitize(e),Ze(Ai)}function Fi(e){if(Kt(e,"#"))return e;const n=function(t){Xn(Oi,t);const e=Bn(Oi),n=Yn(Oi),[r,o]=Gt(e,"#"),i=zt(Vt(r),Mi,"");return{normalizedFragment:o?`${i}_${zt(o,Mi,"")}`:"",normalizedUrl:i,protocol:n,requestedFragment:o,requestedUrl:r}}(e);if(S(xi,n.protocol)){const e=(r=Si,o=n.normalizedUrl,t(Se,r,[o]));return e&&n.normalizedFragment?Di(e,n):e||Ri(n),n.requestedFragment?`#${n.normalizedFragment}`:`#${n.normalizedUrl}`}var r,o;return e}function Hi(e,n){const r=t(hn,e,w);const o=function(e,n=""){return t(ke,e,[n])}(r,""),i=function(e,n){return t($e,e,[n])}(e,"svg"),a=i?function(e,n=!1){return t(un,e,[n])}(i,!1):function(e,...n){return t(xe,e,n)}(r,"http://www.w3.org/2000/svg","svg");bn(a,o);const s=function(e){return t(Be,e,w)}(a),c=function(e){return t(dn,e,w)}($i(zt(s,"\x3c!----\x3e",n)));return Ze(c)}function $i(t){return Ii().sanitize(t)}function ji(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ui(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(n),!0).forEach((function(e){zi(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zi(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Gi=W(null),Wi=[],Ki=Symbol("@@HasLockerElementAttributeDistortion");function Vi(e,n,r,o,i){let a=e[r];a||(a=W(null));let s=a[o];s||(s=new St),t(xt,s,[n,i]),a[o]=s,e[r]=a}function qi(e,n,r,o){if(!(Ki in e))return;const i=Gi[n][r=Vt(r)];if(!i)return;const a=i[o];if(!a)return;const s=t(Et,a,w);for(const t of s){const n=t[0],r=t[1];if(e instanceof n)return r}}function Bi(t){return null==t||""===t?"default":t}function Xi(t,e){const{prototype:n}=t;O(Wi,(r=>{const{attributeNamespace:o,distortion:i}=e,a=Vt(e.attributeName);return Vi(r,t,a,o,i),Ki in n||c(n,Ki,W(null)),null}))}function Yi(t,e){return function(n){return[it(t,e),function(){throw new lt("not allowed")}]}}function Zi(t,e){return function(n){return[rt(t,e),function(){throw new lt("not allowed")}]}}function Ji(t,e){return function(n){return[ot(t,e),function(){throw new lt("not allowed")}]}}function Qi(e,n,r){const{evaluator:o,key:i}=n,a=De(document,"a");return function(n){const s=n;if(""===n)return void rn(this,e,n);Xn(a,n),n=Bn(a);r(this)[`distorted${Bt(e)}`]=s;const l=qn(a),u=new Jr;Ut(l,yo)&&function(e,n){t(ro,e,[n])}(u,!0),Un(u,"load",(()=>{const t=co(u);if(200===t){const t=ao(u),n=W(null);n.configurable=!0,n.value=o,c(this,"$evaluator$",n),rn(this,e,function(t,e){const n=`\n {\n const { $evaluator$ } = document.currentScript;\n const text = decodeURIComponent(\`${Gr(t)}\`);\n delete document.currentScript.$evaluator$;\n $evaluator$('${Xt(e)}', text);\n }`;return Lr(new On([n],{type:"text/javascript"}))}(t,i))}else 404===t&&rn(this,e,"blob:http://localhost/not-found")})),io(u,"GET",n),so(u)}}function ta(t,e){const n=[];for(let r=0,o=e.length;r<o;r+=1){const o=e[r],i=u(t,o);if(i){const{get:e,set:r,value:a}=i;"function"==typeof a?O(n,Yi(t,o)):"function"==typeof e&&(O(n,Zi(t,o)),"function"==typeof r&&O(n,Ji(t,o)))}}return n}function ea(n,r){return"function"==typeof n&&"function"==typeof r?function(n,r){const o=new at(r,B({apply:(e,r,i)=>(r===o&&(r=n),t(n,r,i)),construct:(t,r,i)=>(i===o&&(i=n),e(n,r,i))}));return o}(n,r):n}function na(e,n,r,o){return function(...i){const a=n.startActivity(r,{sandboxKey:o});let s;try{s=t(e,this,i)}finally{a.stop()}return s}}function ra(t,e){if(C(t)){const n=F(t);n.name=Re(n.name,e),t=n}else t=Re(t,e);return t}const oa=new ce;function ia(t){return t=Xt(t),Vt(Xt(t))}function aa(t){try{return ve(t),t}catch(t){return}}function sa(e){const n=function(e){return t($n,e,w)}(e),r=t(Hn,e,w),o=function(e,...n){return t(m,e,n)}(r,n);let i=r;for(let t=o;t>-1;t-=1){if(r[t]instanceof ShadowRoot){i=L(r,t+1);break}}return i}const ca=/import/i,la='HTMLLinkElement does not allow setting "rel" property to "import" value.';function ua(t){return!Jt(ca,t)}function fa(t,e){return`${t}${e}`}function pa(t,e){const n=Z(t),r=[];for(let t=0,o=n.length;t<o;t+=1){const o=n[t];Kt(o,e)&&O(r,o)}return r}const da=new WeakMap;function ya(t){const e=le(da,t);if(void 0===e)throw new ft("Illegal invocation");return e}function ma(e){return new Proxy(e,{get(t,e,n){const{storage:r,storageRootKey:a}=ya(t);if("symbol"==typeof e)return o(t,e,n);const s=fa(a,Xt(e));if(nt(r,s))return o(r,s);const c=i(t);return null===c?void 0:o(c,e,n)},set(e,n,r){const{storage:o,storageRootKey:i}=ya(e);if("symbol"==typeof n)return a(e,n,r);const s=fa(i,Xt(n));return t(xr,o,[s,r]),!0},defineProperty(t,e,n){const{storage:r,storageRootKey:o}=ya(t);if("symbol"==typeof e)return K(t,e,n);const i=fa(o,Xt(e));return c(r,i,n)},deleteProperty(t,e){const{storage:r,storageRootKey:o}=ya(t);if("symbol"==typeof e)return n(t,e);const i=fa(o,Xt(e));return n(r,i)},getOwnPropertyDescriptor(t,e){const{storage:n,storageRootKey:r}=ya(t);if("symbol"==typeof e)return u(t,e);const o=fa(r,Xt(e));return u(n,o)},ownKeys(t){const{storage:e,storageRootKey:n}=ya(t),r=function(t,e){const{length:n}=t,r=new T(n);for(let o=0;o<n;o+=1){const n=t[o];r[o]=zt(n,e,"")}return r}(pa(e,n),n);return x(r,Y(t))},has(t,e){const{storage:n,storageRootKey:o}=ya(t);if("symbol"==typeof e)return r(t,e);if(nt(n,fa(o,Xt(e))))return!0;const a=i(t);return null!==a&&r(a,e)},preventExtensions:t=>!1})}class ha{constructor(){throw new lt("Illegal constructor")}get length(){const{storage:t,storageRootKey:e}=ya(this);return pa(t,e).length}key(e){const{storage:n,storageRootKey:r}=ya(this),o=arguments;if(o.length){const t=pa(n,r),e=t[o[0]],i=t[0],a=e||i;return void 0===a?null:zt(a,r,"")}return t(Er,n,o)}getItem(e){const{storage:n,storageRootKey:r}=ya(this);let o=arguments;return o.length&&(o=te(o,[Xt]),o[0]=fa(r,o[0])),t(kr,n,o)}setItem(e,n){const{storage:r,storageRootKey:o}=ya(this);let i=arguments;i.length>1&&(i=te(i,[Xt,Xt]),i[0]=fa(o,i[0])),t(xr,r,i)}removeItem(e){const{storage:n,storageRootKey:r}=ya(this);let o=arguments;o.length&&(o=te(o,[Xt]),o[0]=fa(r,o[0])),t(Pr,n,o)}clear(){const{storage:e,storageRootKey:n}=ya(this),r=pa(e,n);for(let n=0,o=r.length;n<o;n+=1){const o=r[n];t(Pr,e,[o])}}}const{clear:ga,getItem:ba,key:va,removeItem:wa,setItem:Ta}=ha.prototype,Ea=rt(ha.prototype,"length");function ka(t){return function(e,n){const r=e[t];if(null==r)return null;const{key:o}=n;const i=function(t,e){const n=W(ha.prototype);vt(n);const r=ma(n),o={proxy:r,storage:t,storageRootKey:e};return ue(da,r,o),ue(da,n,o),r}(r,`LSKey[${o}]`);return[r,i]}}const Pa=ka("localStorage"),xa=ka("sessionStorage");function Sa(e){return function(n){const{SVGUseElement:r}=n;return Xi(r,{attributeName:e,attributeNamespace:"http://www.w3.org/1999/xlink",distortion:function(n){const r=null==n||""===n?n:Fi(n);!function(e,n,r,o){t(Fe,e,[n,r,o])}(this,"http://www.w3.org/1999/xlink",e,r)}}),null}}const Aa=Sa("href"),Oa=Sa("xlink:href"),La=["application/octet-stream","application/json","application/pdf","video/","audio/","image/","font/","text/plain","text/markdown","application/zip","application/x-bzip","application/x-rar-compressed","application/x-tar"],Ma=/^[a-z]+\/[a-z+-]+$/,Da=["text/html","image/svg+xml","text/xml"];const Ra=/(^|,)(\s*noopener\s*=\s*(?:yes|1)\s*)(,|$)/g;const _a=[function(t){const{Document:e}=t;return[ot(e.prototype,"domain"),function(){throw new pt("The operation is insecure.")}]},function(e){const{Document:n}=e,{execCommand:r}=n.prototype;return[r,function(...e){if(e.length>2){const t=e[2];if(null!=t){"inserthtml"===Vt((e=te(e,[Xt]))[0])&&(e[2]=Ci(e[2]))}}return t(Le,this,e)}]},function(e){const{Element:n}=e,{attachShadow:r}=n.prototype;return[r,function(...e){if(e.length){const t=e[0];if(null!=t){const{mode:n}=t;if("closed"!==n)throw new dt("Shadow root mode cannot be 'open'");const r=Ui(Ui({},t),{},{mode:n}),o=i(t);s(r,o),e[0]=r}}return t(Ne,this,e)}]},function(e){const{Element:n}=e;return[rt(n.prototype,"attributes"),function(){const e=t(Ye,this,w);return ue(oa,e,this),e}]},function(t){const{Element:e,SVGElement:n}=t;return[ot(e.prototype,"innerHTML"),function(t){if(Pn(this))throw new pt(`Element.innerHTML cannot be set with ${this} elements!`);Je(this,t=this instanceof n?Hi(this,t):Ci(t))}]},function(e){const{Element:n}=e;return[ot(n.prototype,"outerHTML"),function(e){if(Pn(this))throw new pt(`Element.outerHTML cannot be set with ${this} elements!`);!function(e,n){t(Xe,e,[n])}(this,e=Ci(e))}]},function(e){const{Element:n}=e,{insertAdjacentHTML:r}=n.prototype;return[r,function(e,n){const r=Vt(Xt(e)),o=Ci(n);t(Ie,this,[r,o])}]},function(t){const{Element:e}=t;return[rt(e.prototype,"shadowRoot"),function(){return null}]},function(t){const{Event:e}=t,{composedPath:n}=e.prototype;return[n,function(){return sa(this)}]},function(t){const{Event:e}=t,n=rt(e.prototype,"path");return n?[n,function(){return sa(this)}]:null},function(t){const{HTMLElement:e}=t,n=ot(e.prototype,"innerText");return n?[n,function(t){if(Pn(this))throw new pt(`HTMLElement.innerText cannot be set with ${this} elements!`);nr(this,t)}]:null},function(t){const{HTMLElement:e}=t,n=ot(e.prototype,"outerText");return n?[n,function(t){if(Pn(this))throw new pt(`HTMLElement.outerText cannot be set with ${this} elements!`);rr(this,t)}]:null},function(t){const{HTMLElement:e}=t;return[rt(e.prototype,"style"),function(){const t=or(this);return nt(t,bt)?t:(Sr&&!function(t){return nt(t,wt)}(t)&&function(t){c(t,wt,{value:void 0,configurable:!1,enumerable:!1,writable:!1})}(t),vt(t))}]},function(e){const{HTMLFrameElement:n}=e;return[rt(n.prototype,"contentDocument"),function(){return t(ir,this,w),null}]},function(e){const{HTMLFrameElement:n}=e;return[rt(n.prototype,"contentWindow"),function(){return Br(t(ar,this,w))}]},function(e){const{HTMLIFrameElement:n}=e,r=ot(n.prototype,"src");function o(e){const n=(Xn(po,e),go(Bn(po)));if(!function(t,e=lo){return Xn(po,t),S(e,Yn(po))}(n))throw new pt("HTMLIFrameElement.src supports http://, https:// schemes and relative urls.");!function(e,n){t(lr,e,[n])}(this,n)}return Xi(n,{attributeName:"src",attributeNamespace:"default",distortion:o}),[r,o]},function(e){const{HTMLIFrameElement:n}=e;return[rt(n.prototype,"contentDocument"),function(){return t(sr,this,w),null}]},function(t){const{HTMLIFrameElement:e}=t;return[rt(e.prototype,"contentWindow"),function(){return Br(ur(this))}]},function(e){const{HTMLLinkElement:n}=e,r=ot(n.prototype,"rel");function o(e){ua(e=Xt(e))?function(e,n){t(fr,e,[n])}(this,e):console.warn(la)}return Xi(n,{attributeName:"rel",attributeNamespace:"default",distortion:o}),[r,o]},function(e){const{DOMTokenList:n,HTMLLinkElement:r}=e;return[ot(r.prototype,"relList"),function e(r){const o=e instanceof n?t(Fn,r,w):Xt(r);ua(o)?function(e,n){t(pr,e,[n])}(this,o):console.warn(la)}]},function(e){const{HTMLObjectElement:n}=e;return[rt(n.prototype,"contentDocument"),function(){return t(dr,this,w),null}]},function(t){const{HTMLObjectElement:e}=t,n=rt(e.prototype,"contentWindow");return n?[n,function(){return Br(mr(this))}]:null},function(e){const{HTMLScriptElement:n}=e;return[rt(n.prototype,"src"),function(){return function(t){const e=it(er(t),"distortedSrc");return void 0===e?"":e}(this)||t(hr,this,w)}]},function(e){const{MessageEvent:n}=e;return[rt(n.prototype,"source"),function(){const e=t(br,this,w);return"[object Window]"===Xt(e)?Br(e):e}]},function(t){const{Navigator:e}=t,n=rt(e.prototype,"serviceWorker");return n?[n,function(){}]:null},function(e){const{Node:n}=e;return[ot(n.prototype,"textContent"),function(e){if(Pn(this))throw new pt(`Node.textContent cannot be set with ${this} elements!`);!function(e,n){t(gn,e,[n])}(this,e=Xt(e))}]},function(e){const{Range:n}=e,{createContextualFragment:r}=n.prototype;return[r,function(...e){if(e.length){const t=e[0];null!=t&&(e=te(e,[Ci]))}return t(wr,this,e)}]},function(t){const{ServiceWorkerContainer:e}=t;let n;return"function"!=typeof e?null:(n=e.prototype,[n,ct(n)])},function(t){const{ShadowRoot:e}=t;return[rt(e.prototype,"mode"),function(){return"closed"}]},function(t){const{SharedWorker:e}=t;let n;return"function"!=typeof e?null:(n=e,[n,function(t){throw new dt(`Locker does not allow SharedWorker script at: ${t}`)}])},function(t){const{SharedWorker:e}=t;let n;return"function"!=typeof e?null:(n=e.prototype,[n,ct(n)])},function(t){const{Storage:e}=t;return[rt(e.prototype,"length"),Ea]},function(t){const{Storage:e}=t,{getItem:n}=e.prototype;return[n,ba]},function(t){const{Storage:e}=t,{setItem:n}=e.prototype;return[n,Ta]},function(t){const{Storage:e}=t,{key:n}=e.prototype;return[n,va]},function(t){const{Storage:e}=t,{removeItem:n}=e.prototype;return[n,wa]},function(t){const{Storage:e}=t,{clear:n}=e.prototype;return[n,ga]},function(t){const{Storage:e}=t;return[e,ha]},Aa,Oa,function(e){const{URL:n}=e,{createObjectURL:r}=n;return[r,function(e){let n=Lr(e);const r=Vt(t(An,e,w));var o;if(S(Da,r)){const i=function(e,...n){return t(Sn,e,n)}(e,0,function(e){return t(xn,e,w)}(e),`${r};charset=utf-8`);Mr(n),n=Lr(i);const a=new Jr;io(a,"GET",n,!1),so(a);const s=Ni(),c=ao(a),l=s.sanitize(c);if(o=l,Je(Tn,c),Je(En,o),!kn(Tn,En))throw Mr(n),new pt(`Locker: Cannot "createObjectURL" using a unsecure ${e}!`);return n}if(""===r||function(t){if(Jt(Ma,t))for(let e=0,n=La.length;e<n;e+=1)if(Kt(t,La[e]))return!0;return!1}(r))return n;throw Mr(n),new pt("Locker: Unsupported MIME type.")}]},function(e,n){const{fetch:r}=e;let o=function(...e){let n=e[0];if(null!=n){let r;if(n instanceof Request)r=ho(t(Tr,n,w));else{r=ho(Xt(n)),n=r.normalizedURL,e[0]=n}if(mo(r)){return Promise.reject(new dt(`Request URL cannot be made to a disallowed endpoint: ${n}`))}}return t(Wr,this,e)};return n.instrumentation&&(o=na(o,n.instrumentation,"Window.fetch-distortion",n.key)),[r,o]},function(t){const e=rt(t,"frames");if(void 0===e)return null;let n;return[e,function(){if(!n){const e=/^0$|^[1-9][0-9]*$/,a=i(t),c=i(a),l=e=>{if(d(e)){const n=it(t,e);if(p(n))return Br(n)}},u=e=>{if("string"==typeof e&&!nt(t,e)&&!nt(a,e)){const t=it(c,e);if(p(t))return Br(t)}},f=e=>"length"===e?Zr(t):d(e)?l(e):void 0,p=e=>void 0!==e&&e!==t&&Xr(e)&&Yr(e),d=n=>Jt(e,n)&&n<Zr(t);class y{defineProperty(t,e,n){return!1}deleteProperty(t,e){return!1}getOwnPropertyDescriptor(t,e){}isExtensible(t){return!0}ownKeys(t){return[]}preventExtensions(t){return!0}set(t,e,n,r){return!1}setPrototypeOf(t){return!1}}s(y.prototype,null),B(y.prototype);class m extends y{get(t,e,n){const r=f(e);return void 0!==r?r:o(t,e,n)}getOwnPropertyDescriptor(t,e){if("length"===e)return{get:()=>f("length"),set(t){},configurable:!0,enumerable:!0};const n=d(e)?l(e):void 0;return n?{value:n,configurable:!0,enumerable:!0,writable:!1}:void 0}has(t,e){return void 0!==f(e)||r(t,e)}ownKeys(){const{length:e}=t,n=T(e+1);for(let t=0;t<e;t+=1)n[t]=`${t}`;return n[e]="length",n}}class h extends y{}class g extends h{get(t,e,n){const r=u(e);return void 0===r?o(t,e,n):r}getOwnPropertyDescriptor(t,e){const n=u(e);if(n)return{value:n,configurable:!0,enumerable:!0,writable:!1}}has(t,e){return void 0!==u(e)||r(t,e)}ownKeys(){const t=[],e=H(q(c));s(e,null);for(const n in e)"string"==typeof n&&p(e[n].value)&&t.push(n);return t}}const b={},v={},w={},E=B(new m),k=B(new h),P=B(new g),x=new at(v,k),S=new at(w,P);s(b,x),s(v,S),n=new at(b,E)}return n}]},function(t){const e=rt(t,"length");return void 0===e?null:[e,function(){return 0}]},function(e){const{open:n}=e;return[n,function(...e){const n=te(e,[Qt,Qt,Xt]);if(n.length>2){let t=Vt(n[2]);Jt(Ra,t)&&(Ra.lastIndex=0,t=zt(t,Ra,((t,e,n,r)=>`${e}noopener${r}`))),n[2]=t}return Br(t(Kr,this,n))}]},function(e){const n=rt(e,"opener");return void 0===n?null:[n,function(){return Br(t(Cr,e,w))}]},function(e){const n=rt(e,"parent");return void 0===n?null:[n,function(){return Br(t(Fr,e,w))}]},function(e){return[it(e,"postMessage"),function(...e){return t(Ur,this,e)}]},function(t){const{Worker:e}=t;return[e,function(t){throw new dt(`Locker does not allow Worker script at: ${t}`)}]},function(t){const{Worker:{prototype:e}}=t;return[e,ct(e)]},function(e,n){const{XMLHttpRequest:r}=e,{open:o}=r.prototype;let i=function(e,n,r,o,i){if(arguments.length<2||null==n)return void t(oo,this,arguments);const a=te(arguments,[Qt,Xt]),s=a[1],c=ho(s);if(mo(c))throw new dt(`Request URL cannot be made to a disallowed endpoint: ${c.normalizedURL}`);a[1]=c.normalizedURL,t(oo,this,a)};return n.instrumentation&&(i=na(i,n.instrumentation,"XMLHttpRequest.open-value-distortion",n.key)),[o,i]}],Na=[function(e,n){var r,o;const i=null===(r=e.aura)||void 0===r||null===(o=r.util)||void 0===o?void 0:o.globalEval;if(!i)return null;const{evaluator:a,key:s}=n;return[i,function(e,n,r){let o=`(function s(){return(${e})})()`;if("string"==typeof n){const e=function(e){return t(g,e,w)}(Gt(n,"://"));o+=this.sourceComment+("lib"===r?`/libraries/${zt(e,".","/")}`:`/components/${zt(e,":","/")}.js`)}return a(s,o)}]},function(e,n){const{Attr:r}=e,{key:o}=n,i=ot(r.prototype,"value");let a=function(e){const n=be(this);if(n){const r=he(this),i=Bi(ge(this)),a=qi(n,o,r,i);if(a)return void t(a,n,[e])}we(this,e)};return n.instrumentation&&(a=na(a,n.instrumentation,"Attr.value-setter-distortion",n.key)),[i,a]},function(e,n){const{CookieStore:r}=e;if(null==r)return null;const o=it(r.prototype,"delete");if(!o)return null;const{key:i}=n;return[o,function(...e){const n=e.length?e[0]:null;return null!=n&&(e[0]=ra(n,i)),t(Mn,this,e)}]},function(e,n){const{CookieStore:r}=e;if(null==r)return null;const o=it(r.prototype,"get");if(!o)return null;const{key:i}=n;return[o,function(...e){const n=e.length?e[0]:null;return null!=n&&(e[0]=ra(n,i)),t(Dn,this,e)}]},function(e,n){const{CookieStore:r}=e;if(null==r)return null;const o=it(r.prototype,"getAll");if(!o)return null;const{key:i}=n;return[o,function(...e){const n=e.length?e[0]:null;return null!=n?(e[0]=ra(e[0],i),t(Rn,this,e)):function(e,...n){return t(Ot,e,[n])}(t(Rn,this,e),(t=>{const e=t,n=[];for(let t=0,r=e.length;t<r;t+=1){const r=e[t],o=_e(i);Kt(r.name,o)&&O(n,r)}return n}))}]},function(e,n){const{CookieStore:r}=e;if(null==r)return null;const o=it(r.prototype,"set");if(!o)return null;const{key:i}=n;return[o,function(...e){if(e.length>1){const t=e[0];e[0]=Re(t,i)}else if(e.length){const t=e[0];if(C(t)){const n=F(t);n.name=Re(n.name,i),e[0]=n}}return t(_n,this,e)}]},function(e,n){const{Document:r}=e,{key:o}=n;return[rt(r.prototype,"cookie"),function(){const e=Gt(t(Te,this,w),"; "),n=_e(o),r=n.length,i=[];for(let t=0,o=e.length;t<o;t+=1){const o=e[t];Kt(o,n)&&(61!==jt(o,r)?O(i,Wt(o,r)):61===jt(o,r)&&O(i,Wt(o,r+1)))}return A(i,"; ")}]},function(e,n){const{Document:r}=e,{key:o}=n;return[ot(r.prototype,"cookie"),function(e){const n=Gt(e,"; ");let r=n[0];var i,a;Kt(r,"=")&&(r=Wt(r,1)),n[0]=Re(r,o),i=this,a=A(n,"; "),t(Ee,i,[a])}]},function(e,n){const{key:r}=n,o=Vt(r),{CustomElementRegistry:i}=e,{define:a}=i.prototype;return[a,function(e,n,r){const i=te(arguments,[Xt]),a=i[0],s=Vt(a);if(!Kt(s,`${o}-`))throw new ut(`Disallowed name when calling customElements.define() with name "${a}". Only names prefixed with "${o}-" are allowed.`);t(Nn,this,i)}]},function(e,n){const{key:r}=n,o=Vt(r),{CustomElementRegistry:i}=e,{get:a}=i.prototype;return[a,function(e){const n=te(arguments,[Xt]),r=n[0],i=Vt(r);if(!Kt(i,`${o}-`))throw new ut(`Disallowed name when calling customElements.get() with name "${r}". Only names prefixed with "${o}-" are allowed.`);return t(In,this,n)}]},function(e,n){const{key:r}=n,{Element:o}=e,{setAttribute:i}=o.prototype;let a=function(e,n){const o=te(arguments,[ia,Xt]);o.length<2&&t(Ce,this,o);const[i,a]=o,s=qi(this,r,i,"default");s?t(s,this,[a]):t(Ce,this,o)};return n.instrumentation&&(a=na(a,n.instrumentation,"Element.setAttribute-value-distortion",n.key)),[i,a]},function(e,n){const{key:r}=n,{Element:o}=e,{setAttributeNS:i}=o.prototype;return[i,function(...e){if(e.length<3)return void t(Fe,this,e);const n=te(e,[Yt,ia,Xt]),o=n[0],i=n[1],a=Bi(o),s=qi(this,r,i,a);if(s){const e=n[2];t(s,this,[e])}else t(Fe,this,n)}]},function(e,n){const{key:r}=n,{Element:o}=e,{setAttributeNode:i}=o.prototype;return[i,function(e){const n=te(arguments,[aa]),[o]=n;if(null==o)return t(He,this,n);if(be(o))return t(He,this,n);const i=he(o),a=Bi(ge(o)),s=qi(this,r,i,a);if(!s)return t(He,this,n);{const e=tn(this,i);e&&nn(this,e);const n=ve(o);t(s,this,[n]);const r=tn(this,i);if(r&&nn(this,r),e&&on(this,e),r){return we(o,ve(r)),on(this,o)}}}]},function(e,n){const{key:r}=n,{Element:o}=e,{setAttributeNodeNS:i}=o.prototype;return[i,function(e){if(null==e)return an(this,e);if(be(e))return an(this,e);const n=ge(e),o=he(e),i=Bi(n),a=qi(this,r,o,i);if(a){const r=en(this,n,o);r&&nn(this,r);const i=Xt(ve(e));t(a,this,[i]);const s=en(this,n,o);if(s&&nn(this,s),r&&an(this,r),s){return we(e,ve(s)),an(this,e)}return null}return an(this,e)}]},function(t,e){const{HTMLScriptElement:n}=t,r=ot(n.prototype,"src"),o=Qi("src",e,er);return Xi(n,{attributeName:"src",attributeNamespace:"default",distortion:o}),[r,o]},function(e,n){const{key:r}=n,{NamedNodeMap:o}=e,{setNamedItem:i}=o.prototype;return[i,function(e){const n=le(oa,this);if(n){const o=he(e),i=Bi(ge(e)),a=qi(n,r,o,i);if(a){const r=ve(e);return t(a,n,[r])}}return t(vr,this,[e])}]},function(t,e){const{SVGScriptElement:n}=t;return Xi(n,{attributeName:"href",attributeNamespace:"default",distortion:Qi("href",e,Or)}),null},function(e,n){const{evaluator:r,key:o}=n,{setInterval:i}=e;return[i,function(...e){if(e.length){const t=e[0];if(null!=t&&"function"!=typeof t){const n=Xt(t);e[0]=()=>{r(o,n)}}}return t(Vr,this,e)}]},function(e,n){const{evaluator:r,key:o}=n,{setTimeout:i}=e;let a=function(...e){if(e.length){const t=e[0];if(null!=t&&"function"!=typeof t){const n=Xt(t);e[0]=()=>{r(o,n)}}}return t(qr,this,e)};return n.instrumentation&&(a=na(a,n.instrumentation,"Window.setTimeout-distortion",n.key)),[i,a]},Pa,xa],Ia=x(_a,[]),Ca=x(Na,[]);x(_a,[]),x(Na,[]);var Fa=["exitFullscreen","fullscreen","fullscreenElement","fullscreenEnabled","mozCancelFullScreen","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","onfullscreenchange","onfullscreenerror","onmozfullscreenchange","onmozfullscreenerror","onrejectionhandled","onsecuritypolicyviolation","onunhandledrejection","releaseCapture","releaseEvents","webkitFullScreenKeyboardInputAllowed","write","writeln"],Ha=["mozRequestFullScreen","onfullscreenchange","onfullscreenerror","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen"],$a=["nonce","onrejectionhandled","onunhandledrejection"],ja=["getSVGDocument"],Ua=["allowpaymentrequest","referrerpolicy","sandbox","srcdoc"],za=["allowPaymentRequest","csp","featurePolicy","getSVGDocument","referrerPolicy","sandbox","srcdoc"],Ga=["getSVGDocument"];const Wa=new ce;function Ka(e){const{Document:n,Element:r,HTMLElement:o,HTMLIFrameElement:i}=e,a=[];return t(P,a,ta(n.prototype,Fa)),t(P,a,ta(r.prototype,Ha)),t(P,a,ta(o.prototype,$a)),t(P,a,ta(i.prototype,za)),t(P,a,ta(HTMLEmbedElement.prototype,ja)),t(P,a,ta(HTMLObjectElement.prototype,Ga)),function(t,e,n="default"){for(let r=0,o=e.length;r<o;r+=1){const o=e[r];Xi(t,{attributeName:o,attributeNamespace:n,distortion(){throw new lt(`Attribute "${o}" not allowed on ${t.name}`)}})}}(i,Ua),a}const Va=(e,n,r)=>function(...o){try{return t(n,this,o)}catch(t){throw r({sandboxKey:e,error:t}),t}};function qa(e,n,r,o){const i=[],{instrumentation:a,verboseInstrumentation:s}=o,c={evaluator:r,key:n,instrumentation:s?a:void 0},{error:l}=a,u=le(Wa,e);if(u)t(P,i,u);else{const t=Ka(e);for(let r=0,o=t.length;r<o;r+=1){const o=(0,t[r])(e,c);if(null!==o){const[t,e]=o;O(i,[t,ea("function"==typeof e?Va(n,e,l):e,t)])}}for(let t=0,r=Ia.length;t<r;t+=1){const r=(0,Ia[t])(e,c);if(null!==r){const[t,e]=r;O(i,[t,ea("function"==typeof e?Va(n,e,l):e,t)])}}ue(Wa,e,function(t){return L(t,0)}(i))}for(let t=0,r=Ca.length;t<r;t+=1){const r=(0,Ca[t])(e,c);if(null!==r){const[t,e]=r;O(i,[t,ea("function"==typeof e?Va(n,e,l):e,t)])}}return t(P,i,function(t){const e=W(null),n=[],{length:r}=Wi;for(let t=0;t<r;t+=1){const r=(0,Wi[t])(e);null!==r&&O(n,r)}return Gi[t]=e,n}(n)),i}function Ba(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function Xa(t,e,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,n):o?o.value=n:e.set(t,n),n}var Ya,Za,Ja,Qa,ts,es;let ns=0;class rs{constructor(t,e,n,r=!1){Ya.set(this,void 0),Za.set(this,void 0),Ja.set(this,void 0),Qa.set(this,void 0),ts.set(this,void 0),es.set(this,void 0),Xa(this,Ya,e),Xa(this,Za,n),Xa(this,Qa,0),Xa(this,ts,0),Xa(this,es,r),Xa(this,Ja,!1),this.activityName=t,this.activityId=`${t}-${ns+=1,M()+ns}`}start(t){Ba(this,es)&&Xa(this,Qa,$()),"function"==typeof Ba(this,Ya)&&Ba(this,Ya).call(this,this,t)}stop(t){Ba(this,es)&&Xa(this,ts,$()),Ba(this,Ja)||"function"!=typeof Ba(this,Za)||Ba(this,Za).call(this,this,t)}error(t){this.stop(t)}get duration(){return Ba(this,ts)>Ba(this,Qa)?Ba(this,ts)-Ba(this,Qa):0}}Ya=new WeakMap,Za=new WeakMap,Ja=new WeakMap,Qa=new WeakMap,ts=new WeakMap,es=new WeakMap;const os=new class{startActivity(t,e){return new rs(t,void 0,void 0)}log(t){}error(t){}},{setPrototypeOf:is}=Reflect;var as;function ss(){const t=Array,{isArray:e}=Array,{defineProperties:n,freeze:r,isFrozen:o,isSealed:i,seal:a}=Object,{hasOwnProperty:s,toString:c}=Object.prototype,{revocable:l}=Proxy,{apply:u,construct:f,defineProperty:p,deleteProperty:d,get:y,getOwnPropertyDescriptor:m,getPrototypeOf:h,has:g,isExtensible:b,ownKeys:v,preventExtensions:w,set:T,setPrototypeOf:E}=Reflect,{slice:k}=String.prototype,P=TypeError,{get:x,set:S}=WeakMap.prototype,A="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||(p(Object.prototype,"globalThis",{__proto__:null,configurable:!0,get(){return d(Object.prototype,"globalThis"),this||self}}),globalThis),{eval:O}=A,L=Symbol.for("@@lockerLiveValue"),M=Symbol.for("@@lockerMagicValue"),{toStringTag:D}=Symbol,R=Symbol.for("@@membraneUndefinedValue");let _,N,I;return function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(_||(_={})),E(_,null),function(t){t[t.None=0]="None",t[t.IsNotExtensible=1]="IsNotExtensible",t[t.IsSealed=2]="IsSealed",t[t.IsFrozen=4]="IsFrozen",t[t.Revoked=16]="Revoked"}(N||(N={})),E(N,null),function(t){t[t.None=0]="None",t[t.IsArray=1]="IsArray",t[t.IsFunction=2]="IsFunction",t[t.IsObject=4]="IsObject",t[t.IsArrowFunction=8]="IsArrowFunction",t[t.Revoked=16]="Revoked"}(I||(I={})),E(I,null),function(C,F,H=as.None,$,j){const{distortionCallback:U=(t=>t),instrumentation:z}=j||{__proto__:null},G=new WeakMap,W=`to:${C}`,K=`from:${C}`,V=!!(H&_.MagicMarker);let q,B,X,Y,Z,J,Q,tt,et,nt,rt,ot,it,at,st,ct;function lt(t,e){let r=[];et(e,((...t)=>{r=t}));const o={};let i;const a=(t,e,n,r,o,a)=>{i=ut(t,e,n,r,o,a)};for(let t=0,n=r.length;t<n;t+=1){const n=r[t];J(e,n,a),i&&(o[n]=i)}n(t,o)}function ut(t,e,n,r,o,i){const a={__proto__:null};return t!==R&&(a.configurable=!!t),e!==R&&(a.enumerable=!!e),n!==R&&(a.writable=!!n),o!==R&&(a.get=mt(o)),i!==R&&(a.set=mt(i)),r!==R&&(a.value=mt(r)),a}function ft(t){const e=()=>{ct=t};return e["[[OriginalTarget]]"]=t,e["[[Color]]"]=C,e}function pt(t){return function(...e){try{return u(t,this,e)}catch(t){const e=ht();if(e)throw e;throw new P(null==t?void 0:t.message)}}}function dt(t){const e=xt(t),{configurable:n,enumerable:r,writable:o,value:i,get:a,set:s}=e;return["configurable"in e?!!n:R,"enumerable"in e?!!r:R,"writable"in e?!!o:R,"value"in e?bt(i):R,"get"in e?bt(a):R,"set"in e?bt(s):R]}function yt(t,e){let n=Tt(t);for(;n;){const t=m(n,e);if(t)return xt(t);n=h(n)}}function mt(t){return"function"==typeof t?(t(),ht()):t}function ht(){const t=ct;return ct=void 0,t}function gt(t){let n=u(x,G,[t]);if(n)return n;const r=function(t){let e;try{return e=U(t),e}finally{if(e!==t&&typeof e!=typeof t)throw new P(`Invalid distortion ${t}.`)}}(t),o=ft(r),i=function(t){let n=I.None;if("function"==typeof t){n|=I.IsFunction;try{n|=+!("prototype"in t)&&I.IsArrowFunction}catch(t){}}else{let r=!1;try{r=e(t)}catch(t){n|=I.Revoked}n|=+r&&I.IsArray,n|=+!r&&I.IsObject}return n}(r);let a;if("function"==typeof t)try{const e=m(t,"name");if(e){a=xt(e).value}}catch(t){}return n=q(o,i,a),u(S,G,[t,n]),n}function bt(t){if(void 0!==t)return null===t||"function"!=typeof t&&"object"!=typeof t?t:gt(t)}function vt(t,e,n){return z?function(...r){const o=z.startActivity(e,{crossingDirection:n});try{return u(t,this,r)}catch(t){throw o.error(t),t}finally{o.stop()}}:t}function wt(t,e,n){let r;return J(t,n,((t,o,i,a,s,c)=>{r=ut(t,o,i,a,s,c),!1===r.configurable&&p(e,n,r)})),r}function Tt(t){return mt(Q(t))}function Et(t,e,n,r,o,i){const a=wt(t,e,n),c=a||yt(t,n);if(c){if("get"in c||"set"in c){const{set:t}=c;return!!t&&(u(t,o,[r]),!0)}if(!1===c.writable)return!1}let l;if(i)l=a;else{if(null===o||"function"!=typeof o&&"object"!=typeof o)return!1;const t=m(o,n);t&&(l=xt(t))}return l?!("get"in l)&&!("set"in l)&&!1!==l.writable&&(f=o,V&&u(s,f,[M])?rt(t,n,bt(r),gt(o)):p(o,n,{__proto__:null,value:r}),!0):p(o,n,{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!0});var f}function kt(t,e){lt(t,e);const n=Tt(e);E(t,n),w(t)}function Pt(t){const e=bt(t);return"function"==typeof e&&e(),t}function xt(t){return E(t,null),t}class St{constructor(t,e,n){this.color=C,this.apply=function(t,e,n){const{foreignTargetPointer:r}=this,o=[r,bt(e)],{length:i}=n,{length:a}=o;o.length+=i;for(let t=0,e=i;t<e;t+=1){const e=n[t],r=t+a;o[r]=void 0===e?void 0:null===e||"function"!=typeof e&&"object"!=typeof e?e:gt(e)}return mt(u(B,void 0,o))},this.construct=function(t,e,n){if(void 0===n)throw new P;const{foreignTargetPointer:r}=this,o=[r,bt(n)],{length:i}=e,{length:a}=o;o.length+=i;for(let t=0,n=i;t<n;t+=1){const n=e[t],r=t+a;o[r]=void 0===n?void 0:null===n||"function"!=typeof n&&"object"!=typeof n?n:gt(n)}return mt(u(X,void 0,o))};const o=function(t,e){let n;return t&I.IsFunction?(n=t&I.IsArrowFunction?()=>{}:function(){},p(n,"name",{__proto__:null,configurable:!0,enumerable:!1,value:e,writable:!1})):n=t&I.IsArray?[]:{},n}(e,n),{proxy:i,revoke:a}=l(o,this);this.foreignTargetPointer=t,this.proxy=i,this.revoke=a,this.defineProperty=St.defaultDefinePropertyTrap,this.deleteProperty=St.defaultDeletePropertyTrap,this.isExtensible=St.defaultIsExtensibleTrap,this.getOwnPropertyDescriptor=St.defaultGetOwnPropertyDescriptorTrap,this.getPrototypeOf=St.defaultGetPrototypeOfTrap,this.get=St.defaultGetTrap,this.has=St.defaultHasTrap,this.ownKeys=St.defaultOwnKeysTrap,this.preventExtensions=St.defaultPreventExtensionsTrap,this.setPrototypeOf=St.defaultSetPrototypeOfTrap,this.set=St.defaultSetTrap,e&I.Revoked&&a(),F||r(this)}makeProxyLive(){this.defineProperty=St.liveDefinePropertyTrap,this.deleteProperty=St.liveDeletePropertyTrap,this.preventExtensions=St.livePreventExtensionsTrap,this.set=St.liveSetTrap,this.setPrototypeOf=St.liveSetPrototypeOfTrap,r(this)}makeProxyStatic(t){const{foreignTargetPointer:e}=this,n=it(e);if(n&N.Revoked)this.revoke();else{try{const n=Tt(e);E(t,n)}catch(t){return void this.revoke()}lt(t,e),n&N.IsFrozen?r(t):n&N.IsSealed?a(t):n&N.IsNotExtensible&&w(t),this.defineProperty=St.staticDefinePropertyTrap,this.deleteProperty=St.staticDeletePropertyTrap,this.get=St.staticGetTrap,this.getOwnPropertyDescriptor=St.staticGetOwnPropertyDescriptorTrap,this.getPrototypeOf=St.staticGetPrototypeOfTrap,this.has=St.staticHasTrap,this.isExtensible=St.staticIsExtensibleTrap,this.ownKeys=St.staticOwnKeysTrap,this.preventExtensions=St.staticPreventExtensionsTrap,this.set=St.staticSetTrap,this.setPrototypeOf=St.staticSetPrototypeOfTrap,r(this)}}makeProxyUnambiguous(t){var e;e=this.foreignTargetPointer,st(e,L)?this.makeProxyLive():this.makeProxyStatic(t)}static liveDefinePropertyTrap(t,e,n){return function(t,e,n,r){const o=dt(r),i=Y(t,n,o[0],o[1],o[2],o[3],o[4],o[5]);return i&&!1===o[0]&&J(t,n,((t,r,o,i,a,s)=>{p(e,n,ut(t,r,o,i,a,s))})),i}(this.foreignTargetPointer,t,e,n)}static liveDeletePropertyTrap(t,e){return function(t,e,n){return Z(t,n)}(this.foreignTargetPointer,0,e)}static liveGetOwnPropertyDescriptorTrap(t,e){return wt(this.foreignTargetPointer,t,e)}static liveGetPrototypeOfTrap(t){return Tt(this.foreignTargetPointer)}static liveGetTrap(t,e,n){return function(t,e,n,r){const o=wt(t,e,n)||yt(t,n);if(o){const{get:t,value:e}=o;return t?u(t,r,[]):e}if(n===D)return at(t)}(this.foreignTargetPointer,t,e,n)}static liveHasTrap(t,e){return function(t,e){if(st(t,e))return!0;let n=Tt(t);for(;n;){if(u(s,n,[e]))return!0;n=h(n)}return!1}(this.foreignTargetPointer,e)}static liveIsExtensibleTrap(t){return function(t,e){if(b(e)){if(tt(t))return!0;kt(e,t)}return!1}(this.foreignTargetPointer,t)}static liveOwnKeysTrap(t){return function(t){let e;return et(t,((...t)=>{e=t})),e||[]}(this.foreignTargetPointer)}static livePreventExtensionsTrap(t){return function(t,e){if(b(e)){if(!nt(t))return tt(t)||kt(e,t),!1;kt(e,t)}return!0}(this.foreignTargetPointer,t)}static liveSetPrototypeOfTrap(t,e){return function(t,e){const n=bt(e);return ot(t,n)}(this.foreignTargetPointer,e)}static liveSetTrap(t,e,n,r){const o=this.proxy===r;return Et(this.foreignTargetPointer,t,e,n,r,o)}static pendingDefinePropertyTrap(t,e,n){return this.makeProxyUnambiguous(t),this.defineProperty(t,e,n)}static pendingDeletePropertyTrap(t,e){return this.makeProxyUnambiguous(t),this.deleteProperty(t,e)}static pendingPreventExtensionsTrap(t){return this.makeProxyUnambiguous(t),this.preventExtensions(t)}static pendingSetPrototypeOfTrap(t,e){return this.makeProxyUnambiguous(t),this.setPrototypeOf(t,e)}static pendingSetTrap(t,e,n,r){return this.makeProxyUnambiguous(t),this.set(t,e,n,r)}static staticGetTrap(t,e,n){return e===D?at(this.foreignTargetPointer):y(t,e,n)}}return St.staticDefinePropertyTrap=p,St.staticDeletePropertyTrap=d,St.staticGetOwnPropertyDescriptorTrap=m,St.staticGetPrototypeOfTrap=h,St.staticHasTrap=g,St.staticIsExtensibleTrap=b,St.staticOwnKeysTrap=v,St.staticPreventExtensionsTrap=w,St.staticSetTrap=T,St.staticSetPrototypeOfTrap=E,St.defaultGetTrap=St.liveGetTrap,St.defaultGetOwnPropertyDescriptorTrap=St.liveGetOwnPropertyDescriptorTrap,St.defaultGetPrototypeOfTrap=St.liveGetPrototypeOfTrap,St.defaultHasTrap=St.liveHasTrap,St.defaultIsExtensibleTrap=St.liveIsExtensibleTrap,St.defaultOwnKeysTrap=St.liveOwnKeysTrap,St.defaultDefinePropertyTrap=F?St.pendingDefinePropertyTrap:St.liveDefinePropertyTrap,St.defaultDeletePropertyTrap=F?St.pendingDeletePropertyTrap:St.liveDeletePropertyTrap,St.defaultPreventExtensionsTrap=F?St.pendingPreventExtensionsTrap:St.livePreventExtensionsTrap,St.defaultSetTrap=F?St.pendingSetTrap:St.liveSetTrap,St.defaultSetPrototypeOfTrap=F?St.pendingSetPrototypeOfTrap:St.liveSetPrototypeOfTrap,E(St.prototype,null),r(St.prototype),$(ft(A),ht,bt,((t,e)=>{t();return ft(ht()[e])}),(t=>{try{return bt(O(t))}catch(t){throw Pt(t)}}),((t,e)=>{t();const n=ht();u(S,G,[n,e])}),((t,e,n)=>{const{proxy:r}=new St(t,e,n);return u(S,G,[r,t]),ft(r)}),vt(((e,n,...r)=>{e();const o=ht(),i=mt(n),{length:a}=r,s=new t(a);for(let t=0,e=a;t<e;t+=1)s[t]=mt(r[t]);let c;try{c=u(o,i,s)}catch(t){throw Pt(t)}return bt(c)}),"callableApply",W),vt(((e,n,...r)=>{e();const o=ht(),i=mt(n),{length:a}=r,s=new t(a);for(let t=0,e=a;t<e;t+=1)s[t]=mt(r[t]);let c;try{c=f(o,s,i)}catch(t){throw Pt(t)}return bt(c)}),"callableConstruct",W),vt(((t,e,n,r,o,i,a,s)=>{t();const c=ht();try{return p(c,e,ut(n,r,o,i,a,s))}catch(t){throw Pt(t)}}),"callableDefineProperty",W),vt(((t,e)=>{t();const n=ht();try{return d(n,e)}catch(t){throw Pt(t)}}),"callableDeleteProperty",W),vt(((t,e,n)=>{t();const r=ht();let o;try{o=m(r,e)}catch(t){throw Pt(t)}if(o){const t=dt(o);n(t[0],t[1],t[2],t[3],t[4],t[5])}}),"callableGetOwnPropertyDescriptor",W),vt((t=>{t();const e=ht();let n;try{n=h(e)}catch(t){throw Pt(t)}return bt(n)}),"callableGetPrototypeOf",W),vt((t=>{t();const e=ht();try{return b(e)}catch(t){throw Pt(t)}}),"callableIsExtensible",W),vt(((t,e)=>{t();const n=ht();let r;try{r=v(n)}catch(t){throw Pt(t)}u(e,void 0,r)}),"callableOwnKeys",W),vt((t=>{t();const e=ht();try{return w(e)}catch(t){throw Pt(t)}}),"callablePreventExtensions",W),vt(((t,e,n,r)=>{t();const o=ht();try{return T(o,e,mt(n),mt(r))}catch(t){throw Pt(t)}}),"callableSet",W),vt(((t,e)=>{t();const n=ht(),r=mt(e);try{return E(n,r)}catch(t){throw Pt(t)}}),"callableSetPrototypeOf",W),vt((t=>{t();return function(t){let n=N.None;try{o(t)?n|=N.IsSealed&N.IsFrozen&N.IsNotExtensible:i(t)?n|=N.IsSealed:b(t)||(n|=N.IsNotExtensible),e(t)}catch(t){n|=N.Revoked}return n}(ht())}),"callableGetTargetIntegrityTraits",W),vt((t=>{t();const n=ht();try{if("object"==typeof n&&null!==n&&!e(n)){const t=u(c,n,[]);return u(k,t,[8,-1])}}catch(t){}}),"callableGetUnbrandedTag",W),vt(((t,e)=>{t();const n=ht();try{return u(s,n,[e])}catch(t){throw Pt(t)}}),"callableHasOwnProperty",W)),(...t)=>{const{6:e,7:n,8:r,9:o,10:i,11:a,12:s,13:c,14:l,15:u,16:f,17:p,18:d,19:y,20:m}=t;q=e,B=pt(vt(n,"callableApply",K)),X=pt(vt(r,"callableConstruct",K)),Y=pt(vt(o,"callableDefineProperty",K)),Z=pt(vt(i,"callableDeleteProperty",K)),J=pt(vt(a,"callableGetOwnPropertyDescriptor",K)),Q=pt(vt(s,"callableGetPrototypeOf",K)),tt=pt(vt(c,"callableIsExtensible",K)),et=pt(vt(l,"callableOwnKeys",K)),nt=pt(vt(u,"callablePreventExtensions",K)),rt=pt(vt(f,"callableSet",K)),ot=pt(vt(p,"callableSetPrototypeOf",K)),it=pt(vt(d,"callableGetTargetIntegrityTraits",K)),at=pt(vt(y,"callableGetUnbrandedTag",K)),st=pt(vt(m,"callableHasOwnProperty",K))}}}!function(t){t[t.None=0]="None",t[t.MagicMarker=1]="MagicMarker"}(as||(as={})),is(as,null);const cs=TypeError,ls=`\n(function(){\n 'use strict';\n (${function(){"number"==typeof Error.stackTraceLimit&&(Error.stackTraceLimit*=2)}.toString()})();\n return (${ss.toString()})\n})()`;const us=Symbol.for("@@membraneUndefinedValue"),fs=Error,{assign:ps,keys:ds}=Object,{apply:ys,ownKeys:ms}=Reflect,{slice:hs,toUpperCase:gs}=String.prototype;function bs(t){const{length:e}=t;if(!e)return t;const n=ys(gs,t[0],[]);return 1===e?n:n+ys(hs,t,[1])}class vs{constructor(t){if(void 0===t)throw new fs("Missing VirtualEnvironmentOptions options bag.");const{blueConnector:e,redConnector:n,distortionCallback:r,support:o,instrumentation:i}=t;this.blueConnector=e,this.redConnector=n;let a=as.None;const s=o?ds(o):[];for(let t=0,e=s.length;t<e;t+=1){const e=bs(s[t]);a|=as[e]}let c,l;const u=e("blue",false,a,((...t)=>{c=t}),{distortionCallback:r,instrumentation:i}),f=n("red",true,a,((...t)=>{l=t}));ys(u,void 0,l),ys(f,void 0,c);const{0:p,1:d,2:y,3:m,5:h}=c;this.blueGlobalThisPointer=p,this.blueGetSelectedTarget=d,this.blueGetTransferableValue=y,this.blueCallableGetPropertyValuePointer=m,this.blueCallableLinkPointers=h;const{0:g,3:b,4:v,5:w,9:T,17:E}=l;this.redGlobalThisPointer=g,this.redCallableEvaluate=v,this.redCallableSetPrototypeOf=E,this.redCallableDefineProperty=T,this.redCallableGetPropertyValuePointer=b,this.redCallableLinkPointers=w}evaluate(t){try{const e=this.redCallableEvaluate(t);return"function"==typeof e?(e(),this.blueGetSelectedTarget()):e}catch(t){const e=this.blueGetSelectedTarget();if(e)throw e;throw t}}link(...t){let e=this.blueGlobalThisPointer,n=this.redGlobalThisPointer;for(let r=0,o=t.length;r<o;r+=1){const o=t[r];e=this.blueCallableGetPropertyValuePointer(e,o),n=this.redCallableGetPropertyValuePointer(n,o)}this.redCallableLinkPointers(n,e),this.blueCallableLinkPointers(e,n)}remap(t,e){const n=ms(e),r=this.blueGetTransferableValue(t);for(let t=0,o=n.length;t<o;t+=1){const o=n[t],i=e[o],a=ps({__proto__:null},i);this.redCallableDefineProperty(r,o,"configurable"in a?!!a.configurable:us,"enumerable"in a?!!a.enumerable:us,"writable"in a?!!a.writable:us,"value"in a?this.blueGetTransferableValue(a.value):us,"get"in a?this.blueGetTransferableValue(a.get):us,"set"in a?this.blueGetTransferableValue(a.set):us)}}remapProto(t,e){const n=this.blueGetTransferableValue(t),r=this.blueGetTransferableValue(e);this.redCallableSetPrototypeOf(n,r)}}const{includes:ws}=Array.prototype,{has:Ts}=Set.prototype,{apply:Es,getOwnPropertyDescriptor:ks,ownKeys:Ps}=Reflect,xs=new Set(["globalThis","Infinity","NaN","undefined","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","AggregateError","Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Error","EvalError","FinalizationRegistry","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Number","Object","Proxy","RangeError","ReferenceError","RegExp","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakRef","Atomics","JSON","Math","Reflect","escape","unescape"]),Ss=["AggregateError","Array","Error","EvalError","Function","Object","Proxy","RangeError","ReferenceError","SyntaxError","TypeError","URIError","eval"];function As(t,e){const n=Ps(e);for(let r=0,o=n.length;r<o;r+=1){const o=n[r];if(!Es(Ts,xs,[o])&&!Es(ws,Ss,[o])){const n=ks(e,o);n&&(t[o]=n)}}return t}const Os=TypeError;const{assign:Ls,getOwnPropertyDescriptors:Ms}=Object,{getPrototypeOf:Ds,apply:Rs}=Reflect,{get:_s,set:Ns}=WeakMap.prototype,Is=new WeakMap;function Cs(t){let e=Rs(_s,Is,[t]);return e||(e=function(t){const e={__proto__:null};return e.window=t.window,e.document=t.document,e.WindowProto=Ds(e.window),e.WindowPropertiesProto=Ds(e.WindowProto),e.EventTargetProto=Ds(e.WindowPropertiesProto),e.DocumentProto=Ds(e.document),e}(t),Rs(Ns,Is,[t,e]),e.EventTargetProtoDescriptors=Ms(e.EventTargetProto),e)}function Fs(t,e,n){t.remapProto(e.document,e.DocumentProto);const r=function(t){const e={};return Ls(e,t),delete e.document,delete e.location,delete e.top,delete e.window,delete e.crypto,delete e.chrome,e}(n);t.remap(e.window,r),t.remap(e.EventTargetProto,e.EventTargetProtoDescriptors)}Cs(window);const Hs=[],{close:$s,createElement:js,open:Us}=document,{remove:zs,setAttribute:Gs}=Element.prototype,{appendChild:Ws}=Node.prototype,{assign:Ks}=Object,{__lookupGetter__:Vs,hasOwnProperty:qs}=Object.prototype,{apply:Bs}=Reflect;function Xs(t,e){if(null!=t&&Bs(qs,t,[e]))return Bs(Vs,t,[e])}const Ys=Xs(Document.prototype,"body"),Zs=Xs(HTMLElement.prototype,"style"),Js=Xs(HTMLIFrameElement.prototype,"contentWindow"),Qs=Xs(Node.prototype,"isConnected"),tc=Xs(Node.prototype,"lastChild");function ec(){const t=(e=document,Bs(js,e,["iframe"]));var e;const n=function(t){return Bs(Ys,t,Hs)}(document)||(r=document,Bs(tc,r,Hs));var r;return Bs(Zs,t,Hs).display="none",function(t,e,n){Bs(Gs,t,[e,n])}(t,"sandbox","allow-same-origin allow-scripts"),function(t,e){Bs(Ws,t,[e])}(n,t),t}function nc(t){Bs(Qs,t,Hs)&&Bs(zs,t,Hs)}const rc=ss();function oc(t,e,n){!function(t,e){if(!t)throw new Os("Missing global object shape.");if(!e)throw new Os("Missing global object virtualization target.")}(t,e);const r=Ks({__proto__:null,keepAlive:!1},n),{distortionCallback:o,endowments:i={},keepAlive:a,support:s,instrumentation:c}=r,l=ec(),u=function(t){return Bs(Js,t,Hs)}(l).window,{document:f}=u,p=rc,d=function(t){if("function"!=typeof t)throw new cs("Missing evaluator function.");return t(ls)()}(u.eval),y=Cs(e),m=new vs({blueConnector:p,distortionCallback:o,redConnector:d,support:s,instrumentation:c});return m.link("window"),function(t,e){for(let n=0,r=Ss.length;n<r;n+=1){const r=Ss[n],o=e[r];o&&(t.link(r),o.prototype&&t.link(r,"prototype"))}}(m,e),function(t,e){e.EventTarget&&e instanceof EventTarget&&(t.link("document"),t.link("__proto__"),t.link("__proto__","__proto__"),t.link("__proto__","__proto__","__proto__"))}(m,e),Fs(m,y,function(...t){const e={};for(let n=0,r=t.length;n<r;n+=1){const r=t[n];r&&As(e,r)}return e}(t,i)),!0!==a?nc(l):(Bs(Us,f,Hs),function(t){Bs($s,t,Hs)}(f)),m}let ic,ac,sc;function cc(){const t=ac;return ac=void 0,t}function lc(){const t=sc;return sc=void 0,t}function uc(t){ac=t}const fc=H({$lockerEvalContext$:{get:()=>cc()},$lockerEvalHelpers$:{get:()=>lc()}}),pc=W(null);const dc=new ce;function yc(t){return e=>{const{distortions:n}=t,r=le(n,e);return r||(Xr(e)&&Yr(e)&&(!function(t,e){const{distortionFactory:n,distortions:r}=t,o=n(e);for(let t=0,e=o.length;t<e;t+=1){const[e,n]=o[t];ue(r,e,n)}}(t,e),ue(n,e,e)),e)}}function mc(){const e=De(document,"iframe"),n=Me(document)||(r=document,t(yn,r,w));var r;return or(e).display="none",rn(e,"sandbox","allow-same-origin allow-scripts"),bn(n,e),e}function hc(e,n,r,o){const i=W(null,fc);r&&V(i,H(q(r)));const a=W(null),s=yc(a);if(!ic){ic={};const e=mc(),n=ur(e).window,r=f(n);t(Ge,e,w);const o={};for(let t=0,e=r.length;t<e;t+=1){const e=r[t],n=u(window,e);n&&(o[e]=n)}V(ic,o)}a.distortionFactory=n,a.distortions=new ce(n(window));const c=oc(ic,window,{distortionCallback:s,endowments:i,keepAlive:!1,support:{magicMarker:Sr},instrumentation:o});return a.env=c,a.helpers=W(null),uc((t=>{G(a.helpers,t({loadingPromises:dc}))})),a.env.evaluate(`'use strict';\n $lockerEvalContext$(${function(t){const{loadingPromises:e}=t,{iterator:n}=Symbol,{[n]:r}=Array.prototype,{freeze:o}=Object,i=Promise,a=i.resolve.bind(i),{apply:s,getPrototypeOf:c,setPrototypeOf:l}=Reflect,{createElement:u}=Document.prototype,{querySelector:f,setAttribute:p}=Element.prototype,{stopPropagation:d}=Event.prototype,{addEventListener:y}=EventTarget.prototype,{appendChild:m}=Node.prototype,{get:h,set:g}=WeakMap.prototype,b=document,v=[],w=b.head;function T(t,...e){return s(u,t,e)}function E(t,e){return s(f,t,[e])}function k(t,...e){return s(y,t,e)}function P(t,e){return s(h,t,[e])}const x=function*(){}.constructor.prototype.prototype,{next:S,throw:A}=x,O=(t,e)=>s(S,t,[e]),L=(t,e)=>s(A,t,[e]);function M(t,e,n,r,o,i,s){let c,l;try{c=i(t,s),l=c.value}catch(t){return void n(t)}c.done?e(l):a(l).then(r,o)}const D="data-locker-id",R=`${crypto.getRandomValues(new Uint32Array(1))[0]}`;function _(t,n){const r=new i(((e,r)=>{k(t,"load",(()=>{e(void 0)})),k(t,"error",(t=>{s(d,t,v),r((t=>`[Locker] resource loader error loading "${t}"`)(n))}))}));return function(t,e,n){s(g,t,[e,n])}(e,t,r),s(m,w,[t]),r}return{asyncToGen:function(t,e,n){return new i(((r,o)=>{const i=s(t,e,n);function a(t){M(i,r,o,a,c,O,t)}function c(t){M(i,r,o,a,c,L,t)}a(void 0)}))},loadScript:function(t,n){let r=E(w,`script[data-distorted-src='${n}'][data-locker-id='${R}']`);return r?P(e,r)||a():(r=T(b,"script"),function(t,e,n){s(p,t,[e,n])}(r,D,R),r.type="text/javascript",r.src=n,_(r,n))},loadStyle:function(t,n){let r=E(w,`link[href='${n}']`);return r?P(e,r)||a():(r=T(b,"link"),r.type="text/css",r.rel="stylesheet",r.href=n,_(r,n))},namespace:function(t){return o(t)},spreadable:function(t){return l(t,null),t[n]=r,t},super:function(t,e,n,r){const o=c(t.prototype)[e];return s(o,n,r)}}}})`),pc[e]=a,a}function gc(t,e,n,r,o,i){const a=o||os,{startActivity:s}=a,c={sandboxKey:t},l=s("EvaluateInSandboxDuration",c);"string"!=typeof e&&(e=function(t){let e=Xt(t);return"function"==typeof t&&(e=Ut(e,/^[\s\S]+?\{(?:[\t ]*\r?\n)?([\s\S]*?)(?:\r?\n[\t ]*)?\}$/)[1]),e=zt(e,/\/\/# sandbox(MappingURL=.*?\s*)$/,((t,e)=>`//# source${e}`)),e=zt(e,/\breturn\s*\[\s*(["'])\u200D\1\s*,\s*([^,\s]+)\s*,\s*([^\]\s]+)\s*\]/g,((t,e,n,r)=>`${n}=${r}`)),`'use strict';${e}`}(e));let u=function(t){return pc[t]}(t);if(!u){C(r)||(r=void 0);const e=W(null,{instrumentation:{value:a},verboseInstrumentation:{value:i}}),n=n=>{const r=s("createExternalDistortionEntries",c),o=qa(n,t,gc,e);return r.stop(),o},o=s("createSandbox",c);u=hc(t,n,r,i?a:void 0),o.stop()}var f;let p;uc(n),f=u.helpers,sc=f;const d=s("externalEvaluatorDuration",c);try{p=u.env.evaluate(e)}catch(e){throw d.error({sandboxKey:t,error:e}),e}finally{cc(),lc(),d.stop()}return l.stop(),p}const bc=globalThis.LWR.define;function vc(t,e,n,r){const[o,i]=t.split("/");if(r.includes(o)||r.includes(`${o}/*`)||r.includes(`${o}/${i}`))return n;const a=function(t,e,n){let r;return gc(t,`"use strict";$lockerEvalContext$(${n.toString()});\n//# sourceURL=modules/${e}.js\n`,(t=>{r=t})),r}(o,t,n),s=e.indexOf("exports");return s>=0?function(...t){const e=t.map(((t,e)=>{return e===s&&(n=t,Reflect.defineProperty(n,Symbol.for("@@lockerLiveValue"),{}),n)||t;var n}));return a.apply(this,e)}:a}function wc(t){globalThis.LWR=Object.freeze(Object.assign(Object.assign({},globalThis.LWR),{define:function(e,n,r,o){"function"==typeof n&&(o=r,r=n,n=[]),bc(e,n,vc(e,n,r,t),o)}}))}export{wc as registerLockerDefine};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const o=[];let e;const t=globalThis.LWR;globalThis.LWR.define?globalThis.LWR=Object.freeze({define:globalThis.LWR.define}):delete globalThis.LWR;const n={addLoaderPlugin:()=>{console.warn("API is not supported in ESM format")},handleStaleModule:function(t){o.push(t),e||(e=new WebSocket(`ws://${location.host}`),e.addEventListener("message",(async({data:e})=>{const t=JSON.parse(e);if("moduleUpdate"===t.eventType){const{oldHash:e,newHash:n,module:{specifier:a}}=t.payload;for(let t=0;t<o.length;t++){if(null!==(0,o[t])({name:a,oldHash:e,newHash:n}))break}}})))},appMetadata:function(){const{bootstrapModule:o,rootComponent:e,rootComponents:n}=t;return{bootstrapModule:o,rootComponent:e,rootComponents:n}}()};export{n as services};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { BOOTSTRAP_END } from 'lwr/metrics';
|
|
2
|
+
import { logOperationStart } from 'lwr/profiler'; // TODO: This is a temporal workaround until https://github.com/salesforce/lwc/pull/2083 is sorted
|
|
2
3
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
4
|
// @ts-ignore
|
|
5
|
+
|
|
4
6
|
import { createElement } from 'lwc';
|
|
5
7
|
|
|
6
8
|
function initializeWebComponent(elementName, Ctor) {
|
|
@@ -96,4 +98,8 @@ export function init(rootModules) {
|
|
|
96
98
|
}
|
|
97
99
|
});
|
|
98
100
|
}
|
|
101
|
+
|
|
102
|
+
logOperationStart({
|
|
103
|
+
id: BOOTSTRAP_END
|
|
104
|
+
});
|
|
99
105
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// TODO: This is a temporal workaround until https://github.com/salesforce/lwc/pull/2083 is sorted
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
import { hydrateComponent } from 'lwc';
|
|
5
|
+
export function toKebabCase(specifier) {
|
|
6
|
+
return specifier.replace(/\/v\/[a-zA-Z0-9-_.]+$/, '').replace('/', '-').replace(/([A-Z])/g, c => `-${c.toLowerCase()}`);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* This method maps between attribute names
|
|
10
|
+
* and the corresponding props name.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
const CAMEL_REGEX = /-([a-z])/g;
|
|
14
|
+
export function getPropFromAttrName(propName) {
|
|
15
|
+
return propName.replace(CAMEL_REGEX, g => g[1].toUpperCase());
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Hydrate the given components component(s).
|
|
19
|
+
* @param components - An array of arrays, each one holding a pair of
|
|
20
|
+
* bare specifier and corresponding LightningElement constructor
|
|
21
|
+
* @example - [['x/appRoot', appCtor], ['x/nav', navCtor]]
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
export function init(components) {
|
|
25
|
+
if (typeof document !== 'undefined') {
|
|
26
|
+
components.forEach(([moduleSpecifier, ctor]) => {
|
|
27
|
+
// Kebab-case the specifier
|
|
28
|
+
const elementName = toKebabCase(moduleSpecifier);
|
|
29
|
+
const customElements = document.querySelectorAll(elementName);
|
|
30
|
+
customElements.forEach(customElement => {
|
|
31
|
+
hydrateComponent(customElement, ctor, {});
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
if (globalThis.performance) {
|
|
36
|
+
const metric = 'lwr-bootstrap-on-app-init';
|
|
37
|
+
globalThis.performance.measure(metric);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|