/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@locker/distortion@0.27.4/dist/index.cjs.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*!
 * Copyright (C) 2019 salesforce.com, inc.
 */
"use strict";var _sharedDom$rootWindow$LWS;function _extends$LWS(){return _extends$LWS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},_extends$LWS.apply(null,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});var shared$LWS=require("@locker/shared"),sharedDom$LWS=require("@locker/shared-dom"),internalPolicy$LWS=require("@locker/internal-policy"),sharedUrl$LWS=require("@locker/shared-url"),trustedTypes$LWS=require("@locker/trusted-types"),htmlSanitizer$LWS=require("@locker/html-sanitizer");const ERR_ILLEGAL_CONSTRUCTOR$LWS="Illegal constructor",ERR_ILLEGAL_INVOCATION$LWS="Illegal invocation.",ERR_NO_NEW_OP_HTML_ELEMENT$LWS="Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.";let currentRegistry$LWS,currentUpgradingInstance$LWS;const definitionCache$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),globalRegistryCache$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),pivotCtorCache$LWS=shared$LWS.toSafeMap(new shared$LWS.MapCtor),sandboxRegistryCache$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),CustomElementRegistryProto$LWS=null==(_sharedDom$rootWindow$LWS=sharedDom$LWS.rootWindow.CustomElementRegistry)?void 0:_sharedDom$rootWindow$LWS.prototype,CustomElementRegistryProtoDefine$LWS=CustomElementRegistryProto$LWS?shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.define):void 0,CustomElementRegistryProtoWhenDefined$LWS=CustomElementRegistryProto$LWS?shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.whenDefined):void 0,CustomElementRegistryProtoUpgrade$LWS=CustomElementRegistryProto$LWS?shared$LWS.getUnmaskedFunction(CustomElementRegistryProto$LWS.upgrade):void 0;class VirtualRegistry$LWS{constructor(e,t=shared$LWS.getUnmaskedFunction(shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoDefaultViewGetter,e,[]).HTMLElement)){this._awaitingUpgrade=shared$LWS.toSafeMap(new shared$LWS.MapCtor),this._definedCtors=shared$LWS.toSafeSet(new shared$LWS.SetCtor),this._definitionByElement=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),this._definitionByTag=shared$LWS.toSafeMap(new shared$LWS.MapCtor),this._pendingRegistryByElement=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),this._document=e,this._originalHTMLElementCtor=t}applyDefine(e,t){const{0:r,1:o,2:n}=t;if(n&&n.extends)throw new sharedDom$LWS.DOMExceptionCtor("NotSupportedError: 'extends' key in customElements.define() options is not supported.");if(this._definitionByTag.has(r))throw new sharedDom$LWS.DOMExceptionCtor(`Failed to execute 'define' on 'CustomElementRegistry': the name "${r}" has already been used with this registry.`);if(this._definedCtors.has(o))throw new sharedDom$LWS.DOMExceptionCtor("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry.");const i=getDefinitionForCtor$LWS(o);let s=pivotCtorCache$LWS.get(r);if(void 0===s)s=createPivotingClass$LWS(this._document,this._originalHTMLElementCtor,i,r),shared$LWS.ReflectApply(CustomElementRegistryProtoDefine$LWS,e,[r,s]);else{const{formAssociated:e}=i;if(s.formAssociated!==e)throw new shared$LWS.LockerSecurityError(`Cannot create a definition for <${r}> with "formAssociated = ${e}". Either use "formAssociated = ${s.formAssociated}" for this component or rename the component to not conflict with <${r}>`)}pivotCtorCache$LWS.set(r,s),definitionCache$LWS.set(o,i),this._definedCtors.add(o),this._definitionByTag.set(r,i),i.PivotCtor=s;const a=this._awaitingUpgrade.get(r);a&&a.forEach((e=>{const t=this._pendingRegistryByElement.get(e);t&&(this._pendingRegistryByElement.delete(e),this.upgrade(e,t,i))}))}applyGet(e,t){const r=t[0],o=this._definitionByTag.get(r);return o?o.LocalCtor:void 0}applyUpgrade(e,t){const r=t[0],o=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoTagNameGetter,r,[]),n=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,o,[]);this._definitionByTag.get(n)&&shared$LWS.ReflectApply(CustomElementRegistryProtoUpgrade$LWS,e,[r])}applyWhenDefined(e,t){const r=t[0],o=shared$LWS.ReflectApply(CustomElementRegistryProtoWhenDefined$LWS,e,t);return new shared$LWS.PromiseCtor(((e,t)=>{shared$LWS.ReflectApply(shared$LWS.PromiseProtoThen,o,[()=>{const t=this._definitionByTag.get(r);t&&e(t.LocalCtor)},t])}))}getDefinition(e){return this._definitionByElement.get(e)}newCtor(e,t,r){const o=currentUpgradingInstance$LWS;if(o)return currentUpgradingInstance$LWS=void 0,o;const{constructor:n}=e,i=definitionCache$LWS.get(n);if(void 0===i||"function"!=typeof i.PivotCtor)try{return shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoTagNameGetter,this,[]),e}catch(e){return shared$LWS.ReflectConstruct(r,[],t)}return new i.PivotCtor(this,i)}scheduleConnectedCallback(e,t){let r=this._awaitingUpgrade.get(t);void 0===r&&(r=shared$LWS.toSafeSet(new shared$LWS.SetCtor),this._awaitingUpgrade.set(t,r)),r.add(e)}scheduleDisconnectedCallback(e,t){const r=this._awaitingUpgrade.get(t);r&&r.delete(e)}scheduleOrUpgrade(e,t,r){const o=this._definitionByTag.get(t);o?this.upgrade(e,r,o):(this._pendingRegistryByElement.set(e,r),shared$LWS.ReflectSetPrototypeOf(e,this._originalHTMLElementCtor.prototype))}setDefinition(e,t){shared$LWS.ReflectSetPrototypeOf(e,t.LocalCtor.prototype),this._definitionByElement.set(e,t)}upgrade(e,t,r){const{LocalCtor:o,connectedCallback:n}=r;this.setDefinition(e,r),r!==t&&patchAttributes$LWS(e,t,r),currentUpgradingInstance$LWS=e,shared$LWS.ReflectConstruct(o,[]);const i=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoTagNameGetter,e,[]),s=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,i,[]),a=this._awaitingUpgrade.get(s);if(a&&a.size){triggerAttributeChangedCallbackDuringUpgrade$LWS(e,t);a.has(e)&&shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoIsConnectedGetter,e,[])&&("function"==typeof n&&shared$LWS.ReflectApply(n,e,[]),a.delete(e),a.size||this._awaitingUpgrade.delete(s))}}}function createDefinitionRecord$LWS(e){let t,r,o,n,i;const{formAssociated:s=!1,observedAttributes:a,prototype:c}=e,{adoptedCallback:l,connectedCallback:S,disconnectedCallback:L}=c;s&&({formAssociatedCallback:r,formDisabledCallback:o,formResetCallback:n,formStateRestoreCallback:i}=c);let d=a?[...a]:void 0;return d&&!d.length&&(d=void 0),d&&(({attributeChangedCallback:t}=c),"function"!=typeof t&&(t=void 0,d=void 0)),{LocalCtor:e,PivotCtor:void 0,formAssociated:s,observedAttributes:d,observedAttributesAsSet:d?shared$LWS.toSafeSet(new shared$LWS.SetCtor(d)):void 0,adoptedCallback:"function"==typeof l?l:void 0,attributeChangedCallback:t,connectedCallback:"function"==typeof S?S:void 0,disconnectedCallback:"function"==typeof L?L:void 0,formAssociatedCallback:"function"==typeof r?r:void 0,formDisabledCallback:"function"==typeof o?o:void 0,formResetCallback:"function"==typeof n?n:void 0,formStateRestoreCallback:"function"==typeof i?i:void 0}}const instanceRegistryMap$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function createPivotingClass$LWS(e,t,r,o){var n;return(n=class extends t{constructor(n,i){let s;super(),n&&i?(s=n,n.setDefinition(this,i)):(s=getNodeRegistry$LWS(e,this)||getCurrentRegistry$LWS()||getGlobalCustomElementRegistry$LWS(e,t),s.scheduleOrUpgrade(this,o,r)),instanceRegistryMap$LWS.set(this,s)}adoptedCallback(){const e=instanceRegistryMap$LWS.get(this).getDefinition(this),t=e&&e.adoptedCallback;t&&shared$LWS.ReflectApply(t,this,[])}attributeChangedCallback(e,t,o){const n=instanceRegistryMap$LWS.get(this).getDefinition(this),i=n&&n.attributeChangedCallback;i&&(r===n||n.observedAttributesAsSet.has(e))&&shared$LWS.ReflectApply(i,this,[e,t,o])}connectedCallback(){const e=instanceRegistryMap$LWS.get(this),t=e.getDefinition(this);if(t){const{connectedCallback:e}=t;e&&shared$LWS.ReflectApply(e,this,[])}else e.scheduleConnectedCallback(this,o)}disconnectedCallback(){const e=instanceRegistryMap$LWS.get(this),t=e.getDefinition(this);if(t){const{disconnectedCallback:e}=t;e&&shared$LWS.ReflectApply(e,this,[])}else e.scheduleDisconnectedCallback(this,o)}formAssociatedCallback(e){const t=instanceRegistryMap$LWS.get(this).getDefinition(this),r=t&&t.formAssociatedCallback;r&&shared$LWS.ReflectApply(r,this,[e])}formDisabledCallback(e){const t=instanceRegistryMap$LWS.get(this).getDefinition(this),r=t&&t.formDisabledCallback;r&&shared$LWS.ReflectApply(r,this,[e])}formResetCallback(){const e=instanceRegistryMap$LWS.get(this).getDefinition(this),t=e&&e.formResetCallback;t&&shared$LWS.ReflectApply(t,this,[])}formStateRestoreCallback(e,t){const r=instanceRegistryMap$LWS.get(this).getDefinition(this),o=r&&r.formStateRestoreCallback;o&&shared$LWS.ReflectApply(o,this,[e,t])}}).formAssociated=Boolean(r.formAssociated),n.observedAttributes=r.observedAttributes?shared$LWS.shallowCloneArray(r.observedAttributes):[],n}function deleteGlobalCustomElementRegistry$LWS(e){globalRegistryCache$LWS.delete(e)}function getCurrentRegistry$LWS(){const e=currentRegistry$LWS;return currentRegistry$LWS=void 0,e}function getDefinitionForCtor$LWS(e){const t="function"==typeof e?e.prototype:void 0;if(!shared$LWS.isObject(t))throw new shared$LWS.TypeErrorCtor("Invalid custom element constructor.");let r=definitionCache$LWS.get(e);return void 0===r&&(r=createDefinitionRecord$LWS(e),definitionCache$LWS.set(e,r)),r}function getGlobalCustomElementRegistry$LWS(e,t){let r=globalRegistryCache$LWS.get(e);return r||(r=new VirtualRegistry$LWS(e,t),globalRegistryCache$LWS.set(e,r),r)}function getNodeRegistry$LWS(e,t){const r=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,t,[sharedDom$LWS.CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME]);if(null===r)return;shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttribute,t,[sharedDom$LWS.CUSTOM_ELEMENT_REGISTRY_ATTRIBUTE_NAME]);if(shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoOwnerDocumentGetter,t,[])!==e)return;const o=sandboxRegistryCache$LWS.get(e);return o?o.get(r):void 0}function getObservedAttributesDifference$LWS(e,t){const{observedAttributes:r}=t;if(e===t||void 0===r)return;const{observedAttributesAsSet:o}=e;if(void 0===o)return shared$LWS.toSafeSet(new shared$LWS.SetCtor(r));const n=shared$LWS.toSafeSet(new shared$LWS.SetCtor);for(let e=0,{length:t}=r;e<t;e+=1){const t=r[e];o.has(t)||n.add(t)}return n}function patchAttributes$LWS(e,t,r){const{attributeChangedCallback:o}=r;if(void 0===o)return;const n=getObservedAttributesDifference$LWS(t,r);if(void 0!==n){e.removeAttribute=shared$LWS.maskFunction((function(e){const t=[e];if(n.has(e)){const e=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,t);shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttribute,this,t),t[1]=e,t[2]=null,shared$LWS.ReflectApply(o,this,t)}else shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttribute,this,t)}),sharedDom$LWS.ElementProtoRemoveAttribute),e.setAttribute=shared$LWS.maskFunction((function(e,t){const r=[e],i=shared$LWS.toSafeStringValue(t),s=[e,i];if(n.has(e)){const e=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,r);shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoSetAttribute,this,s),r[1]=e,r[2]=i,shared$LWS.ReflectApply(o,this,r)}else shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoSetAttribute,this,s)}),sharedDom$LWS.ElementProtoSetAttribute),e.toggleAttribute=shared$LWS.maskFunction((function(e){const t=[e];let r;if(n.has(e)){const e=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoHasAttribute,this,t),n=e?shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,t):null;r=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoToggleAttribute,this,t),t[1]=n,e&&(t[2]=null),shared$LWS.ReflectApply(o,this,t)}else r=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoToggleAttribute,this,t);return r}),sharedDom$LWS.ElementProtoToggleAttribute);for(const t of n){const r=sharedDom$LWS.HTMLElementGlobalAttributesToPropertyName[t]||sharedDom$LWS.ElementAriaAttributesToPropertyName[t]||t;r in e&&shared$LWS.ReflectDefineProperty(e,r,{__proto__:null,enumerable:!0,configurable:!0,get(){return shared$LWS.ReflectGet(shared$LWS.ReflectGetPrototypeOf(this),r,this)},set(e){const n=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,[t]);shared$LWS.ReflectSet(shared$LWS.ReflectGetPrototypeOf(this),r,e,this);const i=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,[t]);n!==i&&shared$LWS.ReflectApply(o,this,[t,n,i])}})}}}function patchCustomElementRegistry$LWS(e,t){const{CustomElementRegistry:{prototype:r},customElements:o}=e,{define:n,get:i,upgrade:s,whenDefined:a}=r;r.define=shared$LWS.maskFunction((function(...e){if(this!==o)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");return t.applyDefine(this,e)}),n,shared$LWS.createUnmaskableTraps(n)),r.get=shared$LWS.maskFunction((function(...e){if(this!==o)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");return t.applyGet(this,e)}),i,shared$LWS.createUnmaskableTraps(i)),r.upgrade=shared$LWS.maskFunction((function(...e){if(this!==o)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");t.applyUpgrade(this,e)}),s,shared$LWS.createUnmaskableTraps(s)),r.whenDefined=shared$LWS.maskFunction((function(...e){return this!==o?shared$LWS.PromiseReject(new shared$LWS.TypeErrorCtor("Illegal invocation.")):t.applyWhenDefined(this,e)}),a,shared$LWS.createUnmaskableTraps(a))}function patchHTMLElement$LWS(e,t){const{HTMLElement:r}=e;e.HTMLElement=shared$LWS.maskFunction((function e(){if(void 0===new.target)throw new shared$LWS.TypeErrorCtor(ERR_NO_NEW_OP_HTML_ELEMENT$LWS);if(new.target===e)throw new shared$LWS.TypeErrorCtor("Illegal constructor");return t.newCtor(this,new.target,r)}),r,shared$LWS.createUnmaskableTraps(r))}function triggerAttributeChangedCallbackDuringUpgrade$LWS(e,t){const{attributeChangedCallback:r}=t;if(void 0===r)return;const{observedAttributes:o}=t;for(let t=0,{length:n}=o;t<n;t+=1){const n=o[t];if(shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoHasAttribute,e,[n])){const t=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,e,[n]);shared$LWS.ReflectApply(r,e,[n,null,t])}}}function unpatchCustomElementRegistry$LWS(e){const{CustomElementRegistry:{prototype:t}}=e;t.define=shared$LWS.getUnmaskedFunction(t.define),t.get=shared$LWS.getUnmaskedFunction(t.get),t.upgrade=shared$LWS.getUnmaskedFunction(t.upgrade),t.whenDefined=shared$LWS.getUnmaskedFunction(t.whenDefined)}function unpatchHTMLElement$LWS(e){e.HTMLElement=shared$LWS.getUnmaskedFunction(e.HTMLElement)}function getSandboxCustomElementRegistry$LWS(e,t){let r=sandboxRegistryCache$LWS.get(e);void 0===r&&(r=shared$LWS.toSafeMap(new shared$LWS.MapCtor),sandboxRegistryCache$LWS.set(e,r));let o=r.get(t);return o||(o=new VirtualRegistry$LWS(e),r.set(t,o),o)}function patchGlobalObject$LWS(e,t=e.document){const{HTMLElement:r}=e,o=shared$LWS.isMaskedFunction(r),n=shared$LWS.isMaskedFunction(e.CustomElementRegistry.prototype.get),i=o&&n?void 0:getGlobalCustomElementRegistry$LWS(t,shared$LWS.getUnmaskedFunction(r));o||patchHTMLElement$LWS(e,i),n||patchCustomElementRegistry$LWS(e,i)}function unpatchGlobalObject$LWS(e,t=e.document){deleteGlobalCustomElementRegistry$LWS(t),unpatchCustomElementRegistry$LWS(e),unpatchHTMLElement$LWS(e)}function setCustomElementsRegistry$LWS(e,t){currentRegistry$LWS=getSandboxCustomElementRegistry$LWS(e,t)}const DataTransferProtoBlockedProperties$LWS=["mozCursor","mozSourceNode","mozUserCancelled"];function blockAccessToNonce$LWS(e){if("nonce"===e)throw new shared$LWS.LockerSecurityError("Attribute 'nonce' not accessible")}const attributeDistortionFactoriesCache$LWS=shared$LWS.toSafeMap(new shared$LWS.MapCtor),sandboxAttributeDistortionRegistryCache$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function finalizeAttributeDistortions$LWS(e){const t=attributeDistortionFactoriesCache$LWS.get(e);if(void 0===t)return;attributeDistortionFactoriesCache$LWS.delete(e);const{document:r,key:o}=e;let n=sandboxAttributeDistortionRegistryCache$LWS.get(r);void 0===n&&(n={__proto__:null},sandboxAttributeDistortionRegistryCache$LWS.set(r,n));const i={__proto__:null};n[o]=i;for(let e=0,{length:r}=t;e<r;e+=1)t[e](i)}function getAttributeDistortion$LWS(e,t,r,o=sharedDom$LWS.NAMESPACE_DEFAULT){const{document:n,key:i}=e,s=sandboxAttributeDistortionRegistryCache$LWS.get(n);if(void 0===s)return;const a=s[i];if(void 0===a)return;const c=a[shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,r,[])];if(void 0===c)return;const l=c[o];if(void 0===l)return;const S=l.entries();for(const{0:e,1:r}of S)if(t instanceof e)return r}function normalizeNamespace$LWS(e){return null==e||""===e?sharedDom$LWS.NAMESPACE_DEFAULT:e}function registerAttributeDistortion$LWS(e,t,r,o,n){let i=attributeDistortionFactoriesCache$LWS.get(e);void 0===i&&(i=[],attributeDistortionFactoriesCache$LWS.set(e,i));const s=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,r,[]);i[i.length]=e=>{let r=e[s];void 0===r&&(r={__proto__:null},e[s]=r);let i=r[o];void 0===i&&(i=shared$LWS.toSafeMap(new shared$LWS.MapCtor),r[o]=i),i.set(t,n)}}function initDistortionAttrValueSetter$LWS({globalObject:{Attr:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"value");return function(e){return[t,function(r){const o=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoOwnerElementGetter,this,[]);if(o){const t=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,this,[]),n=normalizeNamespace$LWS(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,this,[])),i=getAttributeDistortion$LWS(e,o,t,n);if(i)return void shared$LWS.ReflectApply(i,o,[r])}shared$LWS.ReflectApply(t,this,[r])}]}}function initDistortionAuraUtilGlobalEval$LWS({UNCOMPILED_CONTEXT:e,globalObject:t}){var r;const o=null==(r=t.aura)||null==(r=r.util)?void 0:r.globalEval;return"function"!=typeof o?shared$LWS.noop:function({sandboxEvaluator:t}){return[o,function(r,o,n){let i=`(function s(){return(${r})})()`;if("string"==typeof o){const e=shared$LWS.ReflectApply(shared$LWS.StringProtoSplit,o,["://"]),{length:t}=e,r=t?e[e.length-1]:"";i+=this.sourceComment+("lib"===n?`/libraries/${shared$LWS.ReflectApply(shared$LWS.StringProtoReplace,r,[".","/"])}`:`/components/${shared$LWS.ReflectApply(shared$LWS.StringProtoReplace,r,[":","/"])}.js`)}return t(sharedDom$LWS.transformSourceText(i),e)}]}}function initDistortionBroadcastChannelPostMessage$LWS({globalObject:e}){const{BroadcastChannel:t}=e;if("function"!=typeof t)return shared$LWS.noop;const{prototype:{postMessage:r}}=t,o=[r,function(...e){try{return shared$LWS.ReflectApply(r,this,e)}catch(t){const{length:o}=e;if(o){const t=e[0];if(shared$LWS.isObject(t))return e[0]=shared$LWS.partialStructuredClone(t),shared$LWS.ReflectApply(r,this,e)}throw t}}];return function(){return o}}function initDistortionCacheStorageDelete$LWS({globalObject:{CacheStorage:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.delete;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){if(t.length){const{0:r}=t,o=shared$LWS.toSafeStringValue(r);t[0]=shared$LWS.prependNamespaceMarker(o,e)}return shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionCacheStorageHas$LWS({globalObject:{CacheStorage:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.has;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){if(t.length){const{0:r}=t,o=shared$LWS.toSafeStringValue(r);t[0]=shared$LWS.prependNamespaceMarker(o,e)}return shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionCacheStorageKeys$LWS({globalObject:{CacheStorage:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.keys;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(){const t=shared$LWS.ReflectApply(r,this,[]);return shared$LWS.ReflectApply(shared$LWS.PromiseProtoThen,t,[t=>{const r=[];for(let o=0,n=0,{length:i}=t;o<i;o+=1){const i=t[o];shared$LWS.startsWithNamespaceMarker(i,e)&&(r[n++]=shared$LWS.removeNamespaceMarker(i,e))}return r}])}]}}function initDistortionCacheStorageMatch$LWS({globalObject:{CacheStorage:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.match;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){const{length:o}=t;if(!o)return shared$LWS.ReflectApply(r,this,t);const n=o>=2?t[1]:void 0;if(shared$LWS.isObjectLike(n)&&"cacheName"in n){const{cacheName:o}=n,i=shared$LWS.toSafeStringValue(o),s=shared$LWS.shallowCloneOptions(n);return s.cacheName=shared$LWS.prependNamespaceMarker(i,e),t[1]=s,shared$LWS.ReflectApply(r,this,t)}return shared$LWS.PromiseReject(new shared$LWS.LockerSecurityError("caches.match() expects 'options.cacheName' to be present."))}]}}function initDistortionCacheStorageOpen$LWS({globalObject:{CacheStorage:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.open;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){if(t.length){const{0:r}=t,o=shared$LWS.toSafeStringValue(r);t[0]=shared$LWS.prependNamespaceMarker(o,e)}return shared$LWS.ReflectApply(r,this,t)}]}}const COOKIE_DELIMITER$LWS="; ";function prefixCookieDetailsOrName$LWS(e,t){if(shared$LWS.isObjectLike(e)){const r=shared$LWS.shallowCloneOptions(e);return r.name=shared$LWS.prependNamespaceMarker(r.name,t),r}return shared$LWS.prependNamespaceMarker(e,t)}function unprefixCookie$LWS(e,t){if(!shared$LWS.startsWithNamespaceMarker(e,t))return null;const r=shared$LWS.getNamespaceMarker(t),{length:o}=r,n=e.length>o&&"="===e[o]?o+1:o;return shared$LWS.ReflectApply(shared$LWS.StringProtoSlice,e,[n])}function initDistortionCookieStoreDelete$LWS({globalObject:{CookieStore:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.delete;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){const o=t.length?t[0]:void 0;return null!=o&&(t[0]=prefixCookieDetailsOrName$LWS(o,e)),shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionCookieStoreGet$LWS({globalObject:{CookieStore:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.get;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){const o=t.length?t[0]:void 0;null!=o&&(t[0]=prefixCookieDetailsOrName$LWS(o,e));const n=shared$LWS.ReflectApply(r,this,t);return shared$LWS.ReflectApply(shared$LWS.PromiseProtoThen,n,[t=>{if(t){const{name:r}=t;if(shared$LWS.startsWithNamespaceMarker(r,e))return t.name=shared$LWS.removeNamespaceMarker(r,e),t}return null}])}]}}function initDistortionCookieStoreGetAll$LWS({globalObject:{CookieStore:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.getAll;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){const o=t.length?t[0]:void 0;null!=o&&(t[0]=prefixCookieDetailsOrName$LWS(t[0],e));const n=shared$LWS.ReflectApply(r,this,t);return shared$LWS.ReflectApply(shared$LWS.PromiseProtoThen,n,[t=>{const r=[];let o=0;for(let n=0,{length:i}=t;n<i;n+=1){const i=t[n];if(i){const{name:t}=i;shared$LWS.startsWithNamespaceMarker(t,e)&&(i.name=shared$LWS.removeNamespaceMarker(t,e),r[o++]=i)}}return r}])}]}}const restrictedEventTargetRegistryBySandboxKeyRegistry$LWS={__proto__:null};function isEventTargetRestricted$LWS(e,t,r){const{key:o}=e,{[o]:n}=restrictedEventTargetRegistryBySandboxKeyRegistry$LWS;if(void 0===n||void 0===n[r])return!1;let i=shared$LWS.getUnmaskedFunction(t.constructor);for(;null!==i;){if(n[r].has(i))return!0;i=i.__proto__}return!1}function registerEventTargetRestriction$LWS(e,t,r){const o=shared$LWS.getUnmaskedFunction(t);if(isEventTargetRestricted$LWS(e,o.prototype,r))return;const{key:n}=e,{[n]:i={__proto__:null}}=restrictedEventTargetRegistryBySandboxKeyRegistry$LWS,{[r]:s=shared$LWS.toSafeWeakSet(new shared$LWS.WeakSetCtor)}=i;s.add(o),i[r]=s,restrictedEventTargetRegistryBySandboxKeyRegistry$LWS[n]=i}function createEventHandlerExceptionMessage$LWS(e,t){let r=`Cannot set '${t}' event handler`;const o=shared$LWS.ReflectGetOwnPropertyDescriptor(e.constructor,"name");if(o){shared$LWS.ReflectSetPrototypeOf(o,null);const{value:e}=o;"string"==typeof e&&(r+=` on ${e} object`)}return`${r}.`}function createEventListenerExceptionMessage$LWS(e,t){let r=`Cannot add '${t}' event listener`;const o=shared$LWS.ReflectGetOwnPropertyDescriptor(e.constructor,"name");if(o){shared$LWS.ReflectSetPrototypeOf(o,null);const{value:e}=o;"string"==typeof e&&(r+=` to ${e} object`)}return`${r}.`}function createEventDistortionFactory$LWS(e,t,r){const o=`on${r}`,n=shared$LWS.ObjectLookupOwnSetter(e,o);if("function"!=typeof n)return shared$LWS.noop;const i=createEventHandlerExceptionMessage$LWS(e,o),s=[n,function(){throw new shared$LWS.LockerSecurityError(i)}];return function(e){return registerEventTargetRestriction$LWS(e,t,r),s}}function initDistortionCookieStoreOnChange$LWS({globalObject:{CookieStore:e}}){return createEventDistortionFactory$LWS(null==e?void 0:e.prototype,e,"change")}function initDistortionCookieStoreSet$LWS({globalObject:{CookieStore:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.set;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){const{length:o}=t;if(o>1)t[0]=shared$LWS.prependNamespaceMarker(t[0],e);else if(o){const{0:r}=t;if(shared$LWS.isObjectLike(r)){const o=shared$LWS.shallowCloneOptions(r);o.name=shared$LWS.prependNamespaceMarker(o.name,e),t[0]=o}}return shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionCSSStyleRuleStyleGetter$LWS({globalObject:{CSSStyleRule:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"style"),r=[t,function(){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(t,this,[]))}];return function(){return r}}function initDistortionCustomElementRegistryDefine$LWS({document:e,globalObject:{CustomElementRegistry:t,customElements:r}}){var o;const n=null==t||null==(o=t.prototype)?void 0:o.define;return function({key:t}){const o=getSandboxCustomElementRegistry$LWS(e,t);return[n,function(...e){if(this!==r)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");return o.applyDefine(this,e)}]}}function initDistortionCustomElementRegistryGet$LWS({document:e,globalObject:{CustomElementRegistry:t,customElements:r}}){var o;const n=null==t||null==(o=t.prototype)?void 0:o.get;return function({key:t}){const o=getSandboxCustomElementRegistry$LWS(e,t);return[n,function(...e){if(this!==r)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");return o.applyGet(this,e)}]}}function initDistortionCustomElementRegistryUpgrade$LWS({document:e,globalObject:{CustomElementRegistry:t,customElements:r}}){var o;const n=null==t||null==(o=t.prototype)?void 0:o.upgrade;return function({key:t}){const o=getSandboxCustomElementRegistry$LWS(e,t);return[n,function(...e){if(this!==r)throw new shared$LWS.TypeErrorCtor("Illegal invocation.");o.applyUpgrade(this,e)}]}}function initDistortionCustomElementRegistryWhenDefined$LWS({document:e,globalObject:{CustomElementRegistry:t,customElements:r}}){var o;const n=null==t||null==(o=t.prototype)?void 0:o.whenDefined;return function({key:t}){const o=getSandboxCustomElementRegistry$LWS(e,t);return[n,function(...e){return this!==r?shared$LWS.PromiseReject(new shared$LWS.TypeErrorCtor("Illegal invocation.")):o.applyWhenDefined(this,e)}]}}function initDistortionDocumentCookieGetter$LWS({globalObject:{Document:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"cookie");return function({key:e}){return[t,function(){const t=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoCookieGetter,this,[]),r=shared$LWS.ReflectApply(shared$LWS.StringProtoSplit,t,["; "]),o=[];let n=0;for(let t=0,{length:i}=r;t<i;t+=1){const i=unprefixCookie$LWS(r[t],e);i&&(o[n++]=i)}return shared$LWS.ReflectApply(shared$LWS.ArrayProtoJoin,o,["; "])}]}}function initDistortionDocumentCookieSetter$LWS({globalObject:{Document:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"cookie");return function({key:e}){return[t,function(t){const r=shared$LWS.ReflectApply(shared$LWS.StringProtoSplit,t,["; "]);let{0:o}=r;o.length&&"="===o[0]&&(o=shared$LWS.ReflectApply(shared$LWS.StringProtoSlice,o,[1])),r[0]=shared$LWS.prependNamespaceMarker(o,e);const n=shared$LWS.ReflectApply(shared$LWS.ArrayProtoJoin,r,["; "]);shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoCookieSetter,this,[n])}]}}function initDistortionDocumentCreateElement$LWS({document:e,globalObject:{Document:{prototype:{createElement:t}}}}){return function({key:r}){return[t,function(...o){const{0:n}=o,i=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,n,[]);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isBlockedElement(i))throw new shared$LWS.LockerSecurityError(`Cannot create '${i}' element.`);return shared$LWS.ReflectApply(shared$LWS.StringProtoIncludes,i,["-"])&&setCustomElementsRegistry$LWS(e,r),shared$LWS.ReflectApply(t,this,o)}]}}function initDistortionDocumentCreateElementNS$LWS({document:e,globalObject:{Document:{prototype:{createElementNS:t}}}}){return function({key:r}){return[t,function(...o){const{1:n}=o,i=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,n,[]);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isBlockedElement(i))throw new shared$LWS.LockerSecurityError(`Cannot create '${i}' element.`);return shared$LWS.ReflectApply(shared$LWS.StringProtoIncludes,i,["-"])&&setCustomElementsRegistry$LWS(e,r),shared$LWS.ReflectApply(t,this,o)}]}}function domain$LWS(){throw new shared$LWS.LockerSecurityError("Cannot set document.domain.")}function initDistortionDocumentDomainSetter$LWS({globalObject:{Document:e}}){const t=[shared$LWS.ObjectLookupOwnSetter(e.prototype,"domain"),domain$LWS];return function(){return t}}const{isSharedElement:isSharedElement$t$LWS}=sharedDom$LWS.rootValidator,nonASCIIRegExp$LWS=/[^\x00-\x7F]/g;function throwLockerSecurityError$LWS(e,t){throw new shared$LWS.LockerSecurityError(`Cannot execute command '${e}' on ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,t,[])}.`)}function initDistortionDocumentExecCommand$LWS({document:e,globalObject:{Document:{prototype:{execCommand:t}},HTMLElement:r}}){const o=shared$LWS.ObjectLookupOwnGetter(Document.prototype,"activeElement"),n=shared$LWS.ObjectLookupOwnGetter(r.prototype,"isContentEditable");return function({key:r,type:i}){return[t,function(...s){const{length:a}=s;if(a>=1){const t=shared$LWS.toSafeStringValue(s[0]);let c;if(shared$LWS.isGaterEnabledFeature("changesSince.262")){const e=shared$LWS.ReflectApply(shared$LWS.StringProtoNormalize,t,["NFKD"]),r=shared$LWS.ReflectApply(shared$LWS.StringProtoReplace,e,[nonASCIIRegExp$LWS,""]);c=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,r,[])}else c=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,t,[]);if("selectall"===c&&this===sharedDom$LWS.rootDocument&&throwLockerSecurityError$LWS(t,this),s[0]=t,a>2){const{2:a}=s;if(null!=a&&"inserthtml"===c){if(0===i){const e=shared$LWS.ReflectApply(o,this,[]);isSharedElement$t$LWS(e)&&shared$LWS.ReflectApply(n,e,[])&&throwLockerSecurityError$LWS(t,e)}setCustomElementsRegistry$LWS(e,r),s[0]=t,s[2]=internalPolicy$LWS.lwsInternalPolicy.createHTML(a,r,internalPolicy$LWS.ContentType.HTML)}}}return shared$LWS.ReflectApply(t,this,s)}]}}function initDistortionDocumentOnsecuritypolicyviolation$LWS({globalObject:{Document:{prototype:e},HTMLDocument:t}}){return createEventDistortionFactory$LWS(e,t,"securitypolicyviolation")}function initDistortionDocumentOpen$LWS({globalObject:{Document:{prototype:{open:e}}}}){const t=[e,function(...t){const{length:r}=t;if(this===sharedDom$LWS.rootDocument&&r<3)throw new shared$LWS.LockerSecurityError("Cannot open top level document.");if(r>=3){const r=sharedDom$LWS.normalizeWindowOpenArguments(t),{0:o=""}=r;if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedUrl$LWS.isAttemptingToExploitURL(o))throw new shared$LWS.LockerSecurityError(`Cannot open: ${o}`);const n=shared$LWS.ReflectApply(e,this,r);return shared$LWS.isGaterEnabledFeature("changesSince.256")?sharedUrl$LWS.isSameOriginURL(o)&&sharedDom$LWS.markForUnsafePropertyBlocking(n):sharedDom$LWS.markForUnsafePropertyBlocking(n),n&&sharedDom$LWS.initWindowOpenChildWindow(n,o),n}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionDocumentReplaceChildren$LWS({globalObject:{Document:{prototype:{replaceChildren:e}}}}){const t=[e,function(...t){if(this===sharedDom$LWS.rootDocument)throw new shared$LWS.LockerSecurityError("Cannot replace children of document.");return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionDOMParserParseFromString$LWS({document:e,globalObject:t,globalObject:{DOMParser:{prototype:{parseFromString:r}}}}){return function({key:o}){return[r,function(...n){const{isIframeSrcdocScriptAttack:i,isXMLEntityAttack:s,isXMLNamespacedScriptAttack:a}=sharedDom$LWS.getValidator(e,t);if(n.length>=2){const t=shared$LWS.toSafeStringValue(n[0]),r=shared$LWS.toSafeStringValue(n[1]);let c;switch(r){case"application/xhtml+xml":c=internalPolicy$LWS.ContentType.XHTML;break;case"application/xml":case"text/xml":c=internalPolicy$LWS.ContentType.XML;break;case"image/svg+xml":c=internalPolicy$LWS.ContentType.SVG;break;default:c=internalPolicy$LWS.ContentType.HTML}if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&(c===internalPolicy$LWS.ContentType.XML||c===internalPolicy$LWS.ContentType.XHTML)&&(i(t)||s(t)||a(t)))throw new shared$LWS.LockerSecurityError(`Cannot 'parseFromString' using an unsecure ${shared$LWS.toSafeTemplateStringValue(t)}.`);setCustomElementsRegistry$LWS(e,o);const l=internalPolicy$LWS.lwsInternalPolicy.createHTML(t,o,c);n[0]=l,n[1]=r}return shared$LWS.ReflectApply(r,this,n)}]}}const{isSharedElement:isSharedElement$s$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$6$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementAfter$LWS({globalObject:{Element:{prototype:{after:e}},Node:t}}){const r=[e,function(...r){if(isSharedElement$s$LWS(this))for(let e=0,{length:o}=r;e<o;e+=1){const o=r[e];if(!isAllowedSharedElementChild$6$LWS(o)){const e=o instanceof t?shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,o,[]):shared$LWS.toSafeStringValue(o);throw new shared$LWS.LockerSecurityError(`Cannot insert ${e} after ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`)}}return shared$LWS.ReflectApply(e,this,r)}];return function(){return r}}const{isSharedElement:isSharedElement$r$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$5$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementAppend$LWS({globalObject:{Element:{prototype:{append:e}},Node:t}}){const r=[e,function(...r){if(isSharedElement$r$LWS(this))for(let e=0,{length:o}=r;e<o;e+=1){const o=r[e];if(!isAllowedSharedElementChild$5$LWS(o)){const e=o instanceof t?shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,o,[]):shared$LWS.toSafeStringValue(o);throw new shared$LWS.LockerSecurityError(`Cannot append ${e} to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`)}}return shared$LWS.ReflectApply(e,this,r)}];return function(){return r}}const elementShadowRootBySandboxKeyRegistry$LWS={__proto__:null};function registerShadowRootInSandbox$LWS(e,t){const{[e]:r=shared$LWS.toSafeWeakSet(new shared$LWS.WeakSetCtor)}=elementShadowRootBySandboxKeyRegistry$LWS;r.add(t),elementShadowRootBySandboxKeyRegistry$LWS[e]||(elementShadowRootBySandboxKeyRegistry$LWS[e]=r)}function isShadowRootAccessibleInThisSandbox$LWS(e,t){const r=elementShadowRootBySandboxKeyRegistry$LWS[e];return!!r&&r.has(t)}function initDistortionElementAttachShadow$LWS({globalObject:{Element:{prototype:{attachShadow:e}}}}){return function({key:t}){return[e,function(...r){const o=shared$LWS.ReflectApply(e,this,r);return registerShadowRootInSandbox$LWS(t,o),o}]}}const namedNodeMapToElementCache$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function pairElement$LWS(e,t){namedNodeMapToElementCache$LWS.set(e,t)}function setNamedItemWithAttr$LWS(e,t,r,o){const n=namedNodeMapToElementCache$LWS.get(r);if(n){const t=getAttributeDistortion$LWS(e,n,shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,o,[]),normalizeNamespace$LWS(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,o,[])));if(t){const e=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueGetter,o,[]);return shared$LWS.ReflectApply(t,n,[e])}}return shared$LWS.ReflectApply(t,r,[o])}function initDistortionElementAttributesGetter$LWS({globalObject:{Element:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"attributes"),r=[t,function(){const e=shared$LWS.ReflectApply(t,this,[]);return pairElement$LWS(e,this),e}];return function(){return r}}const{isSharedElement:isSharedElement$q$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$4$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementBefore$LWS({globalObject:{Element:{prototype:{before:e}},Node:t}}){const r=[e,function(...r){if(isSharedElement$q$LWS(this))for(let e=0,{length:o}=r;e<o;e+=1){const o=r[e];if(!isAllowedSharedElementChild$4$LWS(o)){const e=o instanceof t?shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,o,[]):shared$LWS.toSafeStringValue(o);throw new shared$LWS.LockerSecurityError(`Cannot insert ${e} before ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`)}}return shared$LWS.ReflectApply(e,this,r)}];return function(){return r}}function initDistortionElementGetAttribute$LWS({globalObject:{Element:{prototype:{getAttribute:e}}}}){return function(){return[e,function(...t){const{length:r}=t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&r>0&&blockAccessToNonce$LWS(sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(t[0]))),shared$LWS.ReflectApply(e,this,t)}]}}function initDistortionElementGetAttributeNode$LWS({globalObject:{Element:{prototype:{getAttributeNode:e}}}}){return function(){return[e,function(...t){const{length:r}=t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&r>0&&blockAccessToNonce$LWS(sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(t[0]))),shared$LWS.ReflectApply(e,this,t)}]}}function initDistortionElementGetAttributeNodeNS$LWS({globalObject:{Element:{prototype:{getAttributeNodeNS:e}}}}){return function(){return[e,function(...t){const{length:r}=t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&r>=2&&blockAccessToNonce$LWS(sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(t[1]))),shared$LWS.ReflectApply(e,this,t)}]}}function initDistortionElementGetAttributeNS$LWS({globalObject:{Element:{prototype:{getAttributeNS:e}}}}){return function(){return[e,function(...t){const{length:r}=t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&r>=2&&blockAccessToNonce$LWS(sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(t[1]))),shared$LWS.ReflectApply(e,this,t)}]}}function initDistortionElementGetInnerHTML$LWS({globalObject:{Element:{prototype:{getInnerHTML:e}}}}){if("function"!=typeof e)return shared$LWS.noop;const t=[e,function(...t){if(t.length){const{0:e}=t;if(shared$LWS.isObjectLike(e)){const r=shared$LWS.shallowCloneOptions(e);r.includeShadowRoots=!1,t[0]=r}else t[0]={__proto__:null,includeShadowRoots:!1}}else t[0]={__proto__:null,includeShadowRoots:!1};return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionElementInnerHTMLGetter$LWS({globalObject:e}){const{Element:t}=e,r=shared$LWS.ObjectLookupOwnGetter(t.prototype,"innerHTML"),o=[r,function(){var t;return shared$LWS.isGaterEnabledFeature("changesSince.262")?sharedDom$LWS.isUnknownScriptElement(this,e)?"":null!=(t=sharedDom$LWS.getOriginalScriptProperty(this))?t:sharedDom$LWS.removeNoncePatterns(shared$LWS.ReflectApply(r,this,[])):shared$LWS.ReflectApply(r,this,[])}];return function(){return o}}function scriptPropertySetters$LWS(e,t,r,o,n,i,s,a){const c=shared$LWS.toSafeStringValue(r);if(!sharedDom$LWS.isScriptPropertyEvaluatorHookDefined(e)){const r=i.get(o);sharedDom$LWS.defineScriptAccessorProperty(e,t,r,n)}return sharedDom$LWS.setOriginalScriptScriptProperty(e,c),!sharedDom$LWS.isScriptEvaluated(e)&&(sharedDom$LWS.isScriptURLEvaluatorHookDefined(e)||(sharedDom$LWS.defineScriptEvaluatorProperty(e,((o,i,a)=>{sharedDom$LWS.deleteOriginalScriptProperty(e),shared$LWS.ReflectDeleteProperty(e,t),shared$LWS.ReflectApply(n,e,[r]),s(sharedDom$LWS.transformSourceText(c),o,i,a)})),shared$LWS.ReflectApply(n,e,[a])),!0)}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$5$LWS,isSharedElement:isSharedElement$p$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementInnerHTMLSetter$LWS({document:e,globalObject:{Element:t,HTMLScriptElement:r,SVGElement:o,XMLDocument:n},root:{distortions:i}}){const{get:s,set:a}=shared$LWS.ReflectGetOwnPropertyDescriptor(t.prototype,"innerHTML");return function({key:t,sandboxEvaluator:c}){return[a,function(l){const S=shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoOwnerDocumentGetter,this,[])instanceof n,L=shared$LWS.isGaterEnabledFeature("changesSince.262")&&this instanceof o;if(!S||L){if(isSharedElement$p$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot set innerHTML of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);if(this instanceof r||this instanceof SVGScriptElement){if(scriptPropertySetters$LWS(this,"innerHTML",trustedTypes$LWS.trusted.createScript(l),s,a,i,c,trustedTypes$LWS.trusted.createScript(sharedDom$LWS.SCRIPT_HOOK_SOURCE_TEXT)))return}setCustomElementsRegistry$LWS(e,t);const o=L?internalPolicy$LWS.ContentType.SVG:internalPolicy$LWS.ContentType.HTML;l=internalPolicy$LWS.lwsInternalPolicy.createHTML(l,t,o)}if(isIframeSrcdocScriptAttack$5$LWS(l))throw new shared$LWS.LockerSecurityError(`Cannot set 'innerHTML' using an unsecure ${shared$LWS.toSafeTemplateStringValue(l)}.`);shared$LWS.ReflectApply(a,this,[l])}]}}const{isSharedElement:isSharedElement$o$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$3$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementInsertAdjacentElement$LWS({globalObject:{Element:{prototype:{insertAdjacentElement:e}}}}){const t=[e,function(...t){if(t.length>1){const{1:e}=t;if(isSharedElement$o$LWS(this)&&!isAllowedSharedElementChild$3$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot insert ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])} adjacent to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$4$LWS,isSharedElement:isSharedElement$n$LWS}=sharedDom$LWS.rootValidator,allowedElementHTMLRegExp$LWS=/^\s*<(link|script|style)/i;function initDistortionElementInsertAdjacentHTML$LWS({document:e,globalObject:{Element:{prototype:{insertAdjacentHTML:t}}}}){return function({key:r}){return[t,function(...o){if(o.length>1){const t=shared$LWS.ReflectApply(shared$LWS.StringProtoMatch,o[1],[allowedElementHTMLRegExp$LWS]);if(isSharedElement$n$LWS(this)&&null===t)throw new shared$LWS.LockerSecurityError(`Cannot insert adjacent HTML to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}`);setCustomElementsRegistry$LWS(e,r);const n=this instanceof SVGElement?internalPolicy$LWS.ContentType.SVG:internalPolicy$LWS.ContentType.HTML;if(o[1]=internalPolicy$LWS.lwsInternalPolicy.createHTML(o[1],r,n),isIframeSrcdocScriptAttack$4$LWS(o[1]))throw new shared$LWS.LockerSecurityError(`Cannot set 'insertAdjacentHTML' using an unsecure ${shared$LWS.toSafeTemplateStringValue(o[1])}.`)}shared$LWS.ReflectApply(t,this,o)}]}}function initDistortionElementOuterHTMLGetter$LWS({globalObject:{Element:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"outerHTML"),r=[t,function(){const e=shared$LWS.ReflectApply(t,this,[]);return shared$LWS.isGaterEnabledFeature("changesSince.262")?sharedDom$LWS.removeNoncePatterns(e):e}];return function(){return r}}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$3$LWS,isSharedElement:isSharedElement$m$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementOuterHTMLSetter$LWS({document:e,globalObject:{Element:t}}){const r=shared$LWS.ObjectLookupOwnSetter(t.prototype,"outerHTML");return function({key:t}){return[r,function(o){if(isSharedElement$m$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot set outerHTML of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);setCustomElementsRegistry$LWS(e,t);const n=internalPolicy$LWS.lwsInternalPolicy.createHTML(o,t,internalPolicy$LWS.ContentType.HTML);if(shared$LWS.isGaterEnabledFeature("changesSince.260")&&isIframeSrcdocScriptAttack$3$LWS(n))throw new shared$LWS.LockerSecurityError(`Cannot set 'outerHTML' using an unsecure ${shared$LWS.toSafeTemplateStringValue(o)}.`);shared$LWS.ReflectApply(r,this,[n])}]}}const{isSharedElement:isSharedElement$l$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$2$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementPrepend$LWS({globalObject:{Element:{prototype:{prepend:e}},Node:t}}){const r=[e,function(...r){if(isSharedElement$l$LWS(this))for(let e=0,{length:o}=r;e<o;e+=1){const o=r[e];if(!isAllowedSharedElementChild$2$LWS(o)){const e=o instanceof t?shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,o,[]):shared$LWS.toSafeStringValue(o);throw new shared$LWS.LockerSecurityError(`Cannot prepend ${e} to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`)}}return shared$LWS.ReflectApply(e,this,r)}];return function(){return r}}const{isSharedElement:isSharedElement$k$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementRemove$LWS({globalObject:{Element:{prototype:{remove:e}}}}){const t=[e,function(){if(isSharedElement$k$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot remove ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);shared$LWS.ReflectApply(e,this,[])}];return function(){return t}}const{isSharedElement:isSharedElement$j$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementReplaceChildren$LWS({globalObject:{Element:{prototype:{replaceChildren:e}}}}){const t=[e,function(...t){if(isSharedElement$j$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot replace children of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$i$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementReplaceWith$LWS({globalObject:{Element:{prototype:{replaceWith:e}}}}){const t=[e,function(...t){if(isSharedElement$i$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot replace ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionElementSetAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}}}}){return function(t){return[e,function(...r){if(r.length>1){const e=sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(r[0])),o=shared$LWS.toSafeStringValue(r[1]),n=getAttributeDistortion$LWS(t,this,e);if(n)return void shared$LWS.ReflectApply(n,this,[o]);r[0]=e,r[1]=o}shared$LWS.ReflectApply(e,this,r)}]}}function initDistortionElementSetAttributeNode$LWS({globalObject:{Attr:e,Element:{prototype:{setAttributeNode:t}}}}){return function(r){return[t,function(...o){const n=o.length?o[0]:void 0;if(!(n instanceof e))return shared$LWS.ReflectApply(t,this,o);if(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoOwnerElementGetter,n,[]))return shared$LWS.ReflectApply(t,this,o);const i=sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,n,[])),s=normalizeNamespace$LWS(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,n,[])),a=getAttributeDistortion$LWS(r,this,i,s);if(!a)return shared$LWS.ReflectApply(t,this,o);{const e=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttributeNode,this,[i]);e&&shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttributeNode,this,[e]);const r=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueGetter,n,[]);shared$LWS.ReflectApply(a,this,[r]);const o=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttributeNode,this,[i]);if(o&&shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttributeNode,this,[o]),e&&shared$LWS.ReflectApply(t,this,[e]),o){const e=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueGetter,o,[]);return shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueSetter,n,[e]),shared$LWS.ReflectApply(t,this,[n])}}}]}}function initDistortionElementSetAttributeNodeNS$LWS({globalObject:{Attr:e,Element:{prototype:{setAttributeNodeNS:t}}}}){return function(r){return[t,function(...o){const n=o.length?o[0]:void 0;if(!(n instanceof e))return shared$LWS.ReflectApply(t,this,o);if(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoOwnerElementGetter,n,[]))return shared$LWS.ReflectApply(t,this,o);const i=sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,n,[])),s=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,n,[]),a=normalizeNamespace$LWS(s),c=getAttributeDistortion$LWS(r,this,i,a);if(c){const e=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttributeNodeNS,this,[s,i]);e&&shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttributeNode,this,[e]);const r=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueGetter,n,[]);shared$LWS.ReflectApply(c,this,[r]);const o=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttributeNodeNS,this,[s,i]);if(o&&shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttributeNode,this,[o]),e&&shared$LWS.ReflectApply(t,this,[e]),o){const e=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueGetter,o,[]);return shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoValueSetter,n,[e]),shared$LWS.ReflectApply(t,this,[n])}return null}return shared$LWS.ReflectApply(t,this,[n])}]}}function initDistortionElementSetAttributeNS$LWS({globalObject:{Element:{prototype:{setAttributeNS:e}}}}){return function(t){return[e,function(...r){if(r.length<3)return void shared$LWS.ReflectApply(e,this,r);let{0:o}=r;null!=o&&(o=shared$LWS.toSafeStringValue(o));const n=sharedDom$LWS.normalizeNamespacedAttributeName(shared$LWS.toSafeStringValue(r[1])),i=shared$LWS.toSafeStringValue(r[2]),s=normalizeNamespace$LWS(o),a=getAttributeDistortion$LWS(t,this,n,s);a?shared$LWS.ReflectApply(a,this,[i]):(r[0]=o,r[1]=n,r[2]=i,shared$LWS.ReflectApply(e,this,r))}]}}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$2$LWS,isSharedElement:isSharedElement$h$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementSetHTML$LWS({document:e,globalObject:{Element:{prototype:{setHTML:t}},SVGElement:r,XMLDocument:o}}){return"function"!=typeof t?shared$LWS.noop:function({key:n}){return[t,function(...i){const s=shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoOwnerDocumentGetter,this,[])instanceof o,a=shared$LWS.isGaterEnabledFeature("changesSince.262")&&this instanceof r;if(!s||a){const t=shared$LWS.toSafeStringValue(i[0]);if(isSharedElement$h$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot setHTML of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);setCustomElementsRegistry$LWS(e,n);const r=a?internalPolicy$LWS.ContentType.SVG:internalPolicy$LWS.ContentType.HTML;if(i[0]=internalPolicy$LWS.lwsInternalPolicy.createHTML(t,n,r),isIframeSrcdocScriptAttack$2$LWS(i[0]))throw new shared$LWS.LockerSecurityError(`Cannot 'setHTML' using an unsecure ${shared$LWS.toSafeTemplateStringValue(i[0])}.`)}shared$LWS.ReflectApply(t,this,i)}]}}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$1$LWS,isSharedElement:isSharedElement$g$LWS}=sharedDom$LWS.rootValidator;function initDistortionElementSetHTMLUnsafe$LWS({document:e,globalObject:{Element:t,Element:{prototype:{setHTMLUnsafe:r}},HTMLScriptElement:o,SVGElement:n,XMLDocument:i},root:{distortions:s}}){return"function"!=typeof r?shared$LWS.noop:function({key:a,sandboxEvaluator:c}){const{get:l,set:S}=shared$LWS.ReflectGetOwnPropertyDescriptor(t.prototype,"innerHTML");return[r,function(t){let L=shared$LWS.toSafeStringValue(t);const d=shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoOwnerDocumentGetter,this,[])instanceof i,h=shared$LWS.isGaterEnabledFeature("changesSince.262")&&this instanceof n;if(!d||h){if(isSharedElement$g$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot 'setHTMLUnsafe' of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);if(this instanceof o||this instanceof SVGScriptElement){if(scriptPropertySetters$LWS(this,"innerHTML",trustedTypes$LWS.trusted.createScript(L),l,S,s,c,trustedTypes$LWS.trusted.createScript(sharedDom$LWS.SCRIPT_HOOK_SOURCE_TEXT)))return}setCustomElementsRegistry$LWS(e,a);const t=h?internalPolicy$LWS.ContentType.SVG:internalPolicy$LWS.ContentType.HTML;L=internalPolicy$LWS.lwsInternalPolicy.createHTML(L,a,t)}if(isIframeSrcdocScriptAttack$1$LWS(L))throw new shared$LWS.LockerSecurityError(`Cannot 'setHTMLUnsafe' using an unsecure ${shared$LWS.toSafeTemplateStringValue(L)}.`);shared$LWS.ReflectApply(r,this,[L])}]}}function initDistortionElementShadowRootGetter$LWS({globalObject:{Element:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"shadowRoot");return function({key:e}){return[t,function(){const r=shared$LWS.ReflectApply(t,this,[]);return isShadowRootAccessibleInThisSandbox$LWS(e,r)?r:null}]}}function initDistortionElementToggleAttribute$LWS({globalObject:{Element:{prototype:{hasAttribute:e,toggleAttribute:t}}}}){return function(r){return[t,function(...o){const{length:n}=o;if(n>0){const t=shared$LWS.toSafeStringValue(o[0]),i=getAttributeDistortion$LWS(r,this,t);if(i){const r=n>1?[o[1]]:[];return shared$LWS.ReflectApply(i,this,r),shared$LWS.ReflectApply(e,this,[t])}o[0]=t}return shared$LWS.ReflectApply(t,this,o)}]}}function initDistortionEval$LWS({UNCOMPILED_CONTEXT:e,globalObject:{eval:t}}){return function({sandboxEvaluator:r,virtualEnvironmentEvaluator:o}){return[t,function(t){return sharedDom$LWS.throwIfMarkedAsUnsafeInChildWindow(o,"eval"),r(sharedDom$LWS.transformSourceText(shared$LWS.toSafeStringValue(t)),e)}]}}function createDistortedComposedPath$LWS(e,t){const r=shared$LWS.ReflectApply(sharedDom$LWS.EventProtoCurrentTargetGetter,e,[]),{composedPath:o}=Event.prototype,n=shared$LWS.ReflectApply(o,e,[]);let i=n;for(let e=shared$LWS.ReflectApply(shared$LWS.ArrayProtoIndexOf,n,[r]);e>-1;e-=1){const r=n[e];if(r instanceof ShadowRoot&&!isShadowRootAccessibleInThisSandbox$LWS(t,r)){i=shared$LWS.ReflectApply(shared$LWS.ArrayProtoSlice,n,[e+1]);break}}return i}function initDistortionEventComposedPath$LWS({globalObject:{Event:{prototype:{composedPath:e}}}}){return function({key:t}){return[e,function(){return createDistortedComposedPath$LWS(this,t)}]}}function initDistortionEventPathGetter$LWS({globalObject:{Event:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"path");return"function"!=typeof t?shared$LWS.noop:function({key:e}){return[t,function(){return createDistortedComposedPath$LWS(this,e)}]}}function initDistortionEventTargetAddEventListener$LWS({globalObject:{EventTarget:{prototype:{addEventListener:e}}}}){return function(t){return[e,function(...r){const{length:o}=r;if(o>1){const e=shared$LWS.toSafeStringValue(r[0]);if(isEventTargetRestricted$LWS(t,this,e))throw new shared$LWS.LockerSecurityError(createEventListenerExceptionMessage$LWS(this,e));r[0]=e}return shared$LWS.ReflectApply(e,this,r)}]}}function initDistortionFunction$LWS({UNCOMPILED_CONTEXT:e,globalObject:{Function:t}}){const r=/\n?}[^}]*$/;return function({sandboxEvaluator:o,virtualEnvironmentEvaluator:n}){return[t,function(...t){sharedDom$LWS.throwIfMarkedAsUnsafeInChildWindow(n,"Function");const i=o("(function() {return Function(...arguments)})"),{length:s}=t;if(!s)return shared$LWS.ReflectApply(i,this,[]);const a=s-1,c=shared$LWS.toSafeStringValue(t[a]);shared$LWS.ReflectApply(i,this,[c]),t[a]="";const l=shared$LWS.ReflectApply(i,this,t),S=`${sharedDom$LWS.generateContextAssignmentCodeFromContextNames(sharedDom$LWS.UNIVERSAL_CONTEXT_NAMES)};`,L=shared$LWS.ReflectApply(shared$LWS.StringProtoReplace,`${l}`,[r,""]),d=sharedDom$LWS.compileSourceText(c);return o(`${S}(${L}${d}\n})`,e)}]}}function initDistortionHistoryPushState$LWS({globalObject:{DOMException:e,History:{prototype:{pushState:t}}}}){const r=[t,function(...r){try{return shared$LWS.ReflectApply(t,this,r)}catch(o){if(r.length&&o instanceof e){const e=r[0];if(shared$LWS.isObject(e))return r[0]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectApply(t,this,r)}throw o}}];return function(){return r}}function initDistortionHistoryReplaceState$LWS({globalObject:{DOMException:e,History:{prototype:{replaceState:t}}}}){const r=[t,function(...r){try{return shared$LWS.ReflectApply(t,this,r)}catch(o){if(r.length&&o instanceof e){const e=r[0];if(shared$LWS.isObject(e))return r[0]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectApply(t,this,r)}throw o}}];return function(){return r}}const ANCHOR_URL_SCHEMES_LIST$LWS=shared$LWS.toSafeArray(["about:","blob:","http:","https:"]);function isValidAnchorURLScheme$LWS(e){return shared$LWS.ReflectApply(sharedDom$LWS.HTMLAnchorElementProtoHrefSetter,sharedUrl$LWS.normalizerAnchor,[e]),ANCHOR_URL_SCHEMES_LIST$LWS.includes(shared$LWS.ReflectApply(sharedDom$LWS.HTMLAnchorElementProtoProtocolGetter,sharedUrl$LWS.normalizerAnchor,[]))}function initDistortionHTMLAnchorElementHrefSetter$LWS({globalObject:{HTMLAnchorElement:e}}){function t(e){const t=sharedUrl$LWS.sanitizeURLForElement(e);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&!isValidAnchorURLScheme$LWS(t))throw new shared$LWS.LockerSecurityError("HTMLAnchorElement.href supports http://, https://, blob: schemes, relative urls and about:blank.");shared$LWS.ReflectApply(sharedDom$LWS.HTMLAnchorElementProtoHrefSetter,this,[t])}const r=[shared$LWS.ObjectLookupOwnSetter(e.prototype,"href"),t];return function(o){return shared$LWS.isGaterEnabledFeature("changesSince.262")&&registerAttributeDistortion$LWS(o,e,"href",sharedDom$LWS.NAMESPACE_DEFAULT,t),r}}function initDistortionHTMLBaseElementHrefSetter$LWS({globalObject:{HTMLBaseElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"href");const r=[t,function(...e){if(shared$LWS.isGaterEnabledFeature("changesSince.262"))throw new shared$LWS.LockerSecurityError("Cannot set HTMLBaseElement.href.");return shared$LWS.ReflectApply(t,this,e)}];return function(){return r}}function initDistortionHTMLBodyElementOnrejectionhandled$LWS({globalObject:{HTMLBodyElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"rejectionhandled")}function initDistortionHTMLBodyElementOnstorage$LWS({globalObject:{HTMLBodyElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"storage")}function initDistortionHTMLBodyElementOnunhandledrejection$LWS({globalObject:{HTMLBodyElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"unhandledrejection")}function initDistortionHTMLElementCtor$LWS({document:e,globalObject:{HTMLElement:t}}){return function({key:r}){let o;return[t,function n(){if(void 0===new.target)throw new shared$LWS.TypeErrorCtor(ERR_NO_NEW_OP_HTML_ELEMENT$LWS);if(new.target===n)throw new shared$LWS.TypeErrorCtor("Illegal constructor");return void 0===o&&(o=getSandboxCustomElementRegistry$LWS(e,r)),o.newCtor(this,new.target,t)}]}}function initDistortionHTMLElementDatasetGetter$LWS({globalObject:{HTMLElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"dataset"),r=[t,function(){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(t,this,[]))}];return function(){return r}}function initDistortionHTMLElementInnerTextGetter$LWS({globalObject:e}){const t=shared$LWS.ObjectLookupOwnGetter(e.HTMLElement.prototype,"innerText");if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(){return shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isUnknownScriptElement(this,e)?"":shared$LWS.ReflectApply(t,this,[])}];return function(){return r}}const{isSharedElement:isSharedElement$f$LWS}=sharedDom$LWS.rootValidator;function initDistortionHTMLElementInnerTextSetter$LWS({globalObject:{HTMLElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"innerText");if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(e){if(isSharedElement$f$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot set innerText of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);shared$LWS.ReflectApply(t,this,[e])}];return function(){return r}}function initDistortionHTMLElementOnsecuritypolicyviolation$LWS({globalObject:{HTMLElement:{prototype:e},HTMLElement:t}}){return createEventDistortionFactory$LWS(e,t,"securitypolicyviolation")}const{isSharedElement:isSharedElement$e$LWS}=sharedDom$LWS.rootValidator;function initDistortionHTMLElementOuterTextSetter$LWS({globalObject:{HTMLElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"outerText");if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(e){if(isSharedElement$e$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot set outerText of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])}.`);shared$LWS.ReflectApply(t,this,[e])}];return function(){return r}}function initDistortionHTMLElementStyleGetter$LWS({globalObject:{HTMLElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"style"),r=[t,function(){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(t,this,[]))}];return function(){return r}}function initDistortionHTMLFormElementActionSetter$LWS({globalObject:{HTMLFormElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"action");return function(r){function o(e){const t=shared$LWS.toSafeStringValue(e),r=""!==t?sharedUrl$LWS.sanitizeURLForElement(t):"";if(r){const e=sharedUrl$LWS.parseURL(r);if(!sharedUrl$LWS.isAllowedEndpointURL(e)){const{normalizedURL:t}=e;throw new shared$LWS.LockerSecurityError(`Cannot set form action to disallowed endpoint: ${shared$LWS.toSafeTemplateStringValue(t)}`)}}shared$LWS.ReflectApply(sharedDom$LWS.HTMLFormElementProtoActionSetter,this,[r])}return shared$LWS.isGaterEnabledFeature("changesSince.262")?(registerAttributeDistortion$LWS(r,e,"action",sharedDom$LWS.NAMESPACE_DEFAULT,o),[t,o]):[t,t]}}function initDistortionHTMLFrameSetElementOnrejectionhandled$LWS({globalObject:{HTMLFrameSetElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"rejectionhandled")}function initDistortionHTMLFrameSetElementOnstorage$LWS({globalObject:{HTMLFrameSetElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"storage")}function initDistortionHTMLFrameSetElementOnunhandledrejection$LWS({globalObject:{HTMLFrameSetElement:e}}){return createEventDistortionFactory$LWS(e.prototype,e,"unhandledrejection")}function initDistortionIFrameElementContentDocumentGetter$LWS({globalObject:{HTMLIFrameElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"contentDocument"),r=[t,function(){return shared$LWS.isRevokedProxy(this)?null:shared$LWS.ReflectApply(t,this,[])}];return function(){return r}}function initDistortionIFrameElementContentWindowGetter$LWS({globalObject:{HTMLIFrameElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"contentWindow"),r=[t,function(){return shared$LWS.isRevokedProxy(this)?null:shared$LWS.ReflectApply(t,this,[])}];return function(){return r}}function initDistortionHTMLIFrameElementSandboxGetter$LWS({globalObject:{HTMLIFrameElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"sandbox");return function({key:e}){return[t,function(){const t=shared$LWS.ReflectApply(sharedDom$LWS.HTMLIFrameElementProtoSandboxGetter,this,[]);return shared$LWS.isGaterEnabledFeature(shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)&&shared$LWS.isNotAllowedToOverrideGaterEnabledFeature(e,shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)?[...t]:t}]}}const ABOUT_BLANK_TOKEN$LWS="about:blank",ALLOW_SAME_ORIGIN_TOKEN$LWS="allow-same-origin",ALLOW_SCRIPTS_TOKEN$LWS="allow-scripts",sameOriginSandboxedByLWS$LWS=shared$LWS.toSafeWeakSet(new shared$LWS.WeakSetCtor);function enforceSandboxAllowScriptsForSameOriginIframeRealm$LWS(e){const t=shared$LWS.ReflectApply(sharedDom$LWS.HTMLIFrameElementProtoSandboxGetter,e,[]),r=shared$LWS.ReflectApply(sharedDom$LWS.HTMLIFrameElementProtoSrcGetter,e,[]);if(shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoContains,t,["allow-same-origin"]))throw shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoRemove,t,["allow-same-origin"]),new shared$LWS.LockerSecurityError('HTMLIFrameElement.sandbox cannot be set to "allow-same-origin"');if(""!==r&&"about:blank"!==r){try{if(!sharedUrl$LWS.isSameOriginURL(r))return}catch(e){}shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoContains,t,["allow-scripts"])||(sameOriginSandboxedByLWS$LWS.add(e),shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoAdd,t,["allow-scripts"]))}else"about:blank"===r&&sameOriginSandboxedByLWS$LWS.has(e)&&(sameOriginSandboxedByLWS$LWS.delete(e),shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoRemove,t,["allow-scripts"]),0===shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoLengthGetter,t,[])&&shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoRemoveAttribute,e,["sandbox"]))}function initDistortionHTMLIFrameElementSrcSetter$LWS({globalObject:{HTMLIFrameElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"src");return function(r){function o(e){const t=shared$LWS.toSafeStringValue(e);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedUrl$LWS.isAttemptingToExploitURL(t))throw new shared$LWS.LockerSecurityError(`Cannot set src to "${shared$LWS.toSafeTemplateStringValue(t)}"`);const o=""!==t?sharedUrl$LWS.sanitizeURLForElement(t):"";if(o&&!sharedUrl$LWS.isValidURLScheme(o))throw new shared$LWS.LockerSecurityError("HTMLIFrameElement.src supports http://, https:// schemes, relative urls and about:blank.");if(shared$LWS.isGaterEnabledFeature("changesSince.258")){const e=sharedUrl$LWS.parseURL(o);if(!sharedUrl$LWS.isAllowedEndpointURL(e)){const{normalizedURL:t}=e;throw new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${shared$LWS.toSafeTemplateStringValue(t)}`)}}shared$LWS.ReflectApply(sharedDom$LWS.HTMLIFrameElementProtoSrcSetter,this,[o]),shared$LWS.isGaterEnabledFeature(shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)&&shared$LWS.isNotAllowedToOverrideGaterEnabledFeature(r.key,shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)&&enforceSandboxAllowScriptsForSameOriginIframeRealm$LWS(this)}return registerAttributeDistortion$LWS(r,e,"src",sharedDom$LWS.NAMESPACE_DEFAULT,o),[t,o]}}function initDistortionHTMLIFrameElementSandboxSetter$LWS({globalObject:{HTMLIFrameElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"sandbox");return function(r){function o(e){shared$LWS.ReflectApply(sharedDom$LWS.HTMLIFrameElementProtoSandboxSetter,this,[e]),shared$LWS.isGaterEnabledFeature(shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)&&shared$LWS.isNotAllowedToOverrideGaterEnabledFeature(r.key,shared$LWS.ENABLE_SANDBOXED_SAMEORIGIN_IFRAME_GATE)&&enforceSandboxAllowScriptsForSameOriginIframeRealm$LWS(this)}return registerAttributeDistortion$LWS(r,e,"sandbox",sharedDom$LWS.NAMESPACE_DEFAULT,o),[t,o]}}const importRegExp$LWS=/import/i,WARN_MESSAGE$LWS='Lightning Web Security: HTMLLinkElement does not allow setting "rel" property to "import" value.';function isValidRelValue$LWS(e){return"string"!=typeof e||!shared$LWS.ReflectApply(shared$LWS.RegExpProtoTest,importRegExp$LWS,[e])}function initDistortionHTMLLinkElementRelSetter$LWS({globalObject:{HTMLLinkElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"rel");function r(e){const r=shared$LWS.toSafeStringValue(e);isValidRelValue$LWS(r)?shared$LWS.ReflectApply(t,this,[r]):shared$LWS.consoleWarn(WARN_MESSAGE$LWS)}const o=[t,r];return function(t){return registerAttributeDistortion$LWS(t,e,"rel",sharedDom$LWS.NAMESPACE_DEFAULT,r),o}}function initDistortionHTMLLinkElementRelListSetter$LWS({globalObject:{DOMTokenList:e,HTMLLinkElement:t}}){const r=shared$LWS.ObjectLookupOwnSetter(t.prototype,"relList"),o=[r,function t(o){const n=t instanceof e?shared$LWS.ReflectApply(sharedDom$LWS.DOMTokenListProtoValueGetter,o,[]):shared$LWS.toSafeStringValue(o);isValidRelValue$LWS(n)?shared$LWS.ReflectApply(r,this,[n]):shared$LWS.consoleWarn(WARN_MESSAGE$LWS)}];return function(){return o}}function initDistortionHTMLMetaElementContentGetter$LWS({globalObject:{HTMLMetaElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"content"),r=[t,function(){const e=shared$LWS.ReflectApply(t,this,[]);return shared$LWS.isGaterEnabledFeature("changesSince.262")?sharedDom$LWS.removeNoncePatterns(e):e}];return function(){return r}}function initDistortionHTMLObjectElementDataSetter$LWS({globalObject:{HTMLObjectElement:e}}){const t=shared$LWS.ObjectLookupOwnSetter(e.prototype,"data");function r(e){const r=sharedUrl$LWS.sanitizeURLForElement(e);if(!sharedUrl$LWS.isValidURLScheme(r))throw new shared$LWS.LockerSecurityError("HTMLObjectElement.data supports http://, https:// schemes, relative urls and about:blank.");const o=sharedUrl$LWS.parseURL(r);if(!sharedUrl$LWS.isAllowedEndpointURL(o))throw new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${o.normalizedURL}`);shared$LWS.ReflectApply(t,this,[trustedTypes$LWS.trusted.createScriptURL(r)])}const o=[t,r];return function(t){return registerAttributeDistortion$LWS(t,e,"data",sharedDom$LWS.NAMESPACE_DEFAULT,r),o}}function initDistortionHTMLScriptElementInnerTextGetter$LWS({globalObject:e}){const{HTMLScriptElement:t}=e,r=shared$LWS.ReflectGetOwnPropertyDescriptor(t.prototype,"innerText");if(!shared$LWS.isGaterEnabledFeature("changesSince.262")||!r)return shared$LWS.noop;const{get:o}=r,n=[o,function(){var t;return sharedDom$LWS.isUnknownScriptElement(this,e)?"":null!=(t=sharedDom$LWS.getOriginalScriptProperty(this))?t:shared$LWS.ReflectApply(o,this,[])}];return function(){return n}}const descriptorCaches$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function createBlockedAttributeDistortionFactoryInitializer$LWS(e,t,r){return function(){const o=shared$LWS.enquote(r),n=`blocked${shared$LWS.capitalizeFirstChar(r)}Attribute`,{[n]:i}={[n]:()=>{throw new shared$LWS.LockerSecurityError(`Attribute ${o} not allowed on ${t}.`)}};return function(t){registerAttributeDistortion$LWS(t,e,r,sharedDom$LWS.NAMESPACE_DEFAULT,i)}}}function createGetThrowerFactoryInitializer$LWS(e,t){const r=shared$LWS.ObjectLookupOwnGetter(e,t),o=shared$LWS.toSafeTemplateStringValue(t),n=[r,function(){throw new shared$LWS.LockerSecurityError(`Cannot access ${o}.`)}];function i(){return n}return function(){return i}}function createSetThrowerFactoryInitializer$LWS(e,t){const r=shared$LWS.ObjectLookupOwnSetter(e,t),o=shared$LWS.toSafeTemplateStringValue(t),n=[r,function(){throw new shared$LWS.LockerSecurityError(`Cannot access ${o}.`)}];function i(){return n}return function(){return i}}function createValueThrowerFactoryInitializer$LWS(e,t){const{[t]:r}=e,o=shared$LWS.toSafeTemplateStringValue(t),n=[r,function(){throw new shared$LWS.LockerSecurityError(`Cannot access ${o}.`)}];function i(){return n}return function(){return i}}function addBlockedAttributeDistortionFactoryInitializers$LWS(e,t,r,o){let{length:n}=o;for(let i=0,{length:s}=r;i<s;i+=1)o[n++]=createBlockedAttributeDistortionFactoryInitializer$LWS(e,t,r[i])}function addBlockedPropertyDistortionFactoryInitializers$LWS({document:e},t,r,o){let{length:n}=o,i=descriptorCaches$LWS.get(e);void 0===i&&(i=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor),descriptorCaches$LWS.set(e,i));let s=i.get(t);void 0===s&&(s={__proto__:null},i.set(t,s));for(let e=0,{length:i}=r;e<i;e+=1){const i=r[e];let c=s[i];var a;if(void 0===c)c=null!=(a=shared$LWS.ReflectGetOwnPropertyDescriptor(t,i))?a:null,c&&shared$LWS.ReflectSetPrototypeOf(c,null),s[i]=c;if(c){const{value:e}=c;if("get"in c||"set"in c){const{get:e,set:r}=c;e&&(o[n++]=createGetThrowerFactoryInitializer$LWS(t,i)),r&&(o[n++]=createSetThrowerFactoryInitializer$LWS(t,i))}else"function"==typeof e&&(o[n++]=createValueThrowerFactoryInitializer$LWS(t,i))}}}const scriptURLs$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function trackScriptURL$LWS(e,t){scriptURLs$LWS.set(e,t)}function getScriptURL$LWS(e){return scriptURLs$LWS.get(e)}function createScriptDistortion$LWS({sandboxEvaluator:e},t){const r=`script${shared$LWS.capitalizeFirstChar(t)}`,{[r]:o}={[r](t){trackScriptURL$LWS(this,sharedUrl$LWS.resolveURL(t));const r=this;internalPolicy$LWS.lwsInternalPolicy.createScriptURL(t,(function(t){const o=shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoOwnerDocumentGetter,r,[]),n=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoDefaultViewGetter,o,[]),i={[shared$LWS.UNCOMPILED_LOCATION_NAME]:n.location,[shared$LWS.UNCOMPILED_TOP_NAME]:n.top};return t=sharedDom$LWS.transformSourceText(t),e(t,i,n,o)}),r)}};return o}function initDistortionHTMLScriptElementSrcGetter$LWS({globalObject:{HTMLScriptElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"src"),r=[t,function(){var e;return null!=(e=getScriptURL$LWS(this))?e:shared$LWS.ReflectApply(t,this,[])}];return function(){return r}}function initDistortionHTMLScriptElementSrcSetter$LWS({globalObject:{HTMLScriptElement:e}}){const{set:t}=shared$LWS.ReflectGetOwnPropertyDescriptor(e.prototype,"src");return function(r){const o=createScriptDistortion$LWS(r,"src");return registerAttributeDistortion$LWS(r,e,"src",sharedDom$LWS.NAMESPACE_DEFAULT,o),[t,o]}}function initDistortionHTMLScriptElementTextGetter$LWS({globalObject:e}){const{HTMLScriptElement:t}=e,r=shared$LWS.ObjectLookupOwnGetter(t.prototype,"text"),o=[r,function(){var t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isUnknownScriptElement(this,e)?"":null!=(t=sharedDom$LWS.getOriginalScriptProperty(this))?t:shared$LWS.ReflectApply(r,this,[])}];return function(){return o}}function initDistortionHTMLScriptElementTextSetter$LWS({globalObject:{HTMLScriptElement:e},root:{distortions:t}}){const{get:r,set:o}=shared$LWS.ReflectGetOwnPropertyDescriptor(e.prototype,"text");return function({sandboxEvaluator:n}){return[o,function(i){if(this instanceof e){if(scriptPropertySetters$LWS(this,"text",trustedTypes$LWS.trusted.createScript(i),r,o,t,n,trustedTypes$LWS.trusted.createScript(sharedDom$LWS.SCRIPT_HOOK_SOURCE_TEXT)))return}shared$LWS.ReflectApply(o,this,[i])}]}}function initDistortionHTMLScriptElementTextContentGetter$LWS({globalObject:e}){const{HTMLScriptElement:t}=e,r=shared$LWS.ReflectGetOwnPropertyDescriptor(t.prototype,"textContent");if(!shared$LWS.isGaterEnabledFeature("changesSince.256")||!r)return shared$LWS.noop;const{get:o}=r,n=[o,function(){var t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isUnknownScriptElement(this,e)?"":null!=(t=sharedDom$LWS.getOriginalScriptProperty(this))?t:shared$LWS.ReflectApply(o,this,[])}];return function(){return n}}function initDistortionHTMLScriptElementTextContentSetter$LWS({globalObject:{HTMLScriptElement:e},root:{distortions:t}}){const r=shared$LWS.ReflectGetOwnPropertyDescriptor(e.prototype,"textContent");if(!shared$LWS.isGaterEnabledFeature("changesSince.256")||!r)return shared$LWS.noop;const{get:o,set:n}=r;return function(e){const{sandboxEvaluator:r}=e;return[n,function(e){const i=trustedTypes$LWS.trusted.createScript(e);scriptPropertySetters$LWS(this,"textContent",i,o,n,t,r,trustedTypes$LWS.trusted.createScript(sharedDom$LWS.SCRIPT_HOOK_SOURCE_TEXT))||shared$LWS.ReflectApply(n,this,[i])}]}}function initDistortionIDBFactoryDatabases$LWS({globalObject:{IDBFactory:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.databases;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(){const t=shared$LWS.ReflectApply(r,this,[]);return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(shared$LWS.PromiseProtoThen,t,[t=>{const r=[];let o=0;for(let n=0,{length:i}=t;n<i;n+=1){const i=t[n],{name:s}=i;void 0!==s&&shared$LWS.startsWithNamespaceMarker(s,e)&&(r[o++]={name:shared$LWS.removeNamespaceMarker(s,e),version:i.version})}return r}]):t}]}}function initDistortionIDBFactoryDeleteDatabase$LWS({globalObject:{IDBFactory:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.deleteDatabase;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){return t.length&&shared$LWS.isGaterEnabledFeature("changesSince.262")&&(t[0]=shared$LWS.prependNamespaceMarker(t[0],e)),shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionIDBFactoryOpen$LWS({globalObject:{IDBFactory:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.open;return"function"!=typeof r?shared$LWS.noop:function({key:e}){return[r,function(...t){return t.length&&shared$LWS.isGaterEnabledFeature("changesSince.262")&&(t[0]=shared$LWS.prependNamespaceMarker(t[0],e)),shared$LWS.ReflectApply(r,this,t)}]}}function initDistortionIDBObjectStoreAdd$LWS({globalObject:{DOMException:e,IDBObjectStore:{prototype:{add:t}}}}){const r=[t,function(...r){try{return shared$LWS.ReflectApply(t,this,r)}catch(o){if(r.length&&o instanceof e){const e=r[0];if(shared$LWS.isObject(e))return r[0]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectApply(t,this,r)}throw o}}];return function(){return r}}function initDistortionIDBObjectStorePut$LWS({globalObject:{DOMException:e,IDBObjectStore:{prototype:{put:t}}}}){const r=[t,function(...r){try{return shared$LWS.ReflectApply(t,this,r)}catch(o){if(r.length&&o instanceof e){const e=r[0];if(shared$LWS.isObject(e))return r[0]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectApply(t,this,r)}throw o}}];return function(){return r}}function initDistortionMathMLElementOnsecuritypolicyviolation$LWS({globalObject:{MathMLElement:e}}){return"function"!=typeof e?shared$LWS.noop:createEventDistortionFactory$LWS(e.prototype,e,"securitypolicyviolation")}function initDistortionMessagePortPostMessage$LWS({globalObject:{DOMException:e,MessagePort:t}}){const{postMessage:r}=t.prototype,o=[r,function(...t){try{return shared$LWS.ReflectApply(r,this,t)}catch(o){const{length:n}=t;if(n&&o instanceof e){const e=t[0];if(shared$LWS.isObject(e))return n>1?t=shared$LWS.partialStructuredClone(t):t[0]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectApply(r,this,t)}throw o}}];return function(){return o}}const{isSharedElement:isSharedElement$d$LWS}=sharedDom$LWS.rootValidator;function initDistortionMutationObserverObserve$LWS({globalObject:{MutationObserver:{prototype:{observe:e}}}}){const t=[e,function(...t){const{0:r}=t;if(r&&isSharedElement$d$LWS(r))throw new shared$LWS.LockerSecurityError(`Cannot observe mutations on shared element ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,r,[])}.`);return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionNamedNodeMapSetNamedItem$LWS({globalObject:{Attr:e,NamedNodeMap:{prototype:{setNamedItem:t}}}}){return function(r){return[t,function(...o){const n=o.length?o[0]:void 0;return n&&n instanceof e?setNamedItemWithAttr$LWS(r,t,this,n):shared$LWS.ReflectApply(t,this,o)}]}}function initDistortionNamedNodeMapSetNamedItemNS$LWS({globalObject:{Attr:e,NamedNodeMap:{prototype:{setNamedItemNS:t}}}}){return function(r){return[t,function(...o){const n=o.length?o[0]:void 0;return n&&n instanceof e?setNamedItemWithAttr$LWS(r,t,this,n):shared$LWS.ReflectApply(t,this,o)}]}}function initDistortionNavigatorSendBeacon$LWS({globalObject:{Navigator:{prototype:{sendBeacon:e}}}}){const t=[e,function(...t){if(t.length){const e=sharedUrl$LWS.parseURL(shared$LWS.toSafeStringValue(t[0]));if(!sharedUrl$LWS.isAllowedEndpointURL(e))throw new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${e.normalizedURL}`);t[0]=e.normalizedURL}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionNavigatorServiceWorkerGetter$LWS({globalObject:{Navigator:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"serviceWorker");if("function"!=typeof t)return shared$LWS.noop;const r=[t,shared$LWS.noop];return function(){return r}}const{isSharedElement:isSharedElement$c$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$1$LWS}=sharedDom$LWS.rootValidator;function initDistortionNodeInsertBefore$LWS({globalObject:{Node:{prototype:{insertBefore:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(isSharedElement$c$LWS(this)&&!isAllowedSharedElementChild$1$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot insert child ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])} into ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])},`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionNodeValueSetter$LWS({globalObject:{Attr:e,Node:t}}){const r=shared$LWS.ObjectLookupOwnSetter(t.prototype,"nodeValue");return function(t){return[r,function(o){if(this instanceof e){const e=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoOwnerElementGetter,this,[]);if(null===e)return void shared$LWS.ReflectApply(r,this,[o]);const n=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,this,[]),i=normalizeNamespace$LWS(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,this,[])),s=getAttributeDistortion$LWS(t,e,n,i);if(s)return void shared$LWS.ReflectApply(s,e,[o])}shared$LWS.ReflectApply(r,this,[o])}]}}const{isSharedElement:isSharedElement$b$LWS}=sharedDom$LWS.rootValidator;function initDistortionNodeRemoveChild$LWS({globalObject:{Node:{prototype:{removeChild:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(isSharedElement$b$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot remove ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}.`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$a$LWS}=sharedDom$LWS.rootValidator;function initDistortionNodeReplaceChild$LWS({globalObject:{Node:{prototype:{replaceChild:e}}}}){const t=[e,function(...t){const{length:r}=t;if(r>1){const{1:e}=t;if(isSharedElement$a$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot replace ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}.`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionNodeTextContentGetter$LWS({globalObject:e,globalObject:{Node:t}}){const r=shared$LWS.ObjectLookupOwnGetter(t.prototype,"textContent"),o=[r,function(){var t;return shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedDom$LWS.isUnknownScriptElement(this,e)?"":null!=(t=sharedDom$LWS.getOriginalScriptProperty(this))?t:shared$LWS.ReflectApply(r,this,[])}];return function(){return o}}const{isSharedElement:isSharedElement$9$LWS}=sharedDom$LWS.rootValidator;function initDistortionNodeTextContentSetter$LWS({globalObject:{Attr:e,Node:t,HTMLScriptElement:r,SVGScriptElement:o},root:{distortions:n}}){const{get:i,set:s}=shared$LWS.ReflectGetOwnPropertyDescriptor(t.prototype,"textContent");return function(t){const{sandboxEvaluator:a}=t;return[s,function(c){const l=trustedTypes$LWS.trusted.createScript(c);if(this instanceof e){const e=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoOwnerElementGetter,this,[]);if(null===e)return void shared$LWS.ReflectApply(s,this,[l]);const r=shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNameGetter,this,[]),o=normalizeNamespace$LWS(shared$LWS.ReflectApply(sharedDom$LWS.AttrProtoNamespaceURIGetter,this,[])),n=getAttributeDistortion$LWS(t,e,r,o);if(n)return void shared$LWS.ReflectApply(n,e,[l])}else if(this instanceof r||this instanceof o){if(scriptPropertySetters$LWS(this,"textContent",l,i,s,n,a,trustedTypes$LWS.trusted.createScript(sharedDom$LWS.SCRIPT_HOOK_SOURCE_TEXT)))return}else if(isSharedElement$9$LWS(this))throw new shared$LWS.LockerSecurityError(`Cannot set textContent of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,this,[])} elements.`);shared$LWS.ReflectApply(s,this,[l])}]}}function initDistortionNotificationCtor$LWS({globalObject:{DOMException:e,Notification:t}}){if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){try{return shared$LWS.ReflectConstruct(t,r)}catch(o){if(r.length>1&&o instanceof e){const e=r[1];if(shared$LWS.isObjectLike(e)){const{data:o}=e;if(shared$LWS.isObject(o))return r[1]={__proto__:e,data:shared$LWS.partialStructuredClone(o)},shared$LWS.ReflectConstruct(t,r)}}throw o}}];return function(){return r}}function initDistortionPerformanceMark$LWS({globalObject:{Performance:{prototype:{mark:e}}}}){const t=[e,function(...t){try{return shared$LWS.ReflectApply(e,this,t)}catch(r){if(t.length>1&&r instanceof DOMException){const r=t[1];if(shared$LWS.isObject(r))return t[1]=shared$LWS.partialStructuredClone(r),shared$LWS.ReflectApply(e,this,t)}throw r}}];return function(){return t}}function initDistortionPerformanceMeasure$LWS({globalObject:{Performance:{prototype:{measure:e}}}}){const t=[e,function(...t){try{return shared$LWS.ReflectApply(e,this,t)}catch(r){if(t.length>1&&r instanceof DOMException){const r=t[1];if(shared$LWS.isObject(r))return t[1]=shared$LWS.partialStructuredClone(r),shared$LWS.ReflectApply(e,this,t)}throw r}}];return function(){return t}}function initDistortionPerformanceMarkCtor$LWS({globalObject:{DOMException:e,PerformanceMark:t}}){if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){try{return shared$LWS.ReflectConstruct(t,r)}catch(o){if(r.length>1&&o instanceof e){const e=r[1];if(shared$LWS.isObject(e))return r[1]=shared$LWS.partialStructuredClone(e),shared$LWS.ReflectConstruct(t,r)}throw o}}];return function(){return r}}function initDistortionPromiseAll$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.all;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseAllSettled$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.allSettled;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseAny$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.any;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseCatch$LWS({globalObject:{Promise:{prototype:e}}}){const t=null==e?void 0:e.catch;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...e){const{0:r}=e;if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&"function"==typeof r&&r===eval)throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.");return shared$LWS.ReflectApply(t,this,e)}];return function(){return r}}function initDistortionPromiseFinally$LWS({globalObject:{Promise:{prototype:e}}}){const t=null==e?void 0:e.finally;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...e){const{0:r}=e;if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&"function"==typeof r&&r===eval)throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.");return shared$LWS.ReflectApply(t,this,e)}];return function(){return r}}function initDistortionPromiseRace$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.race;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseReject$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.reject;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseResolve$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.resolve;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseThen$LWS({globalObject:{Promise:{prototype:e}}}){const t=null==e?void 0:e.then;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...e){const{0:r,1:o}=e;if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&("function"==typeof r&&r===eval||"function"==typeof o&&o===eval))throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.");return shared$LWS.ReflectApply(t,this,e)}];return function(){return r}}function initDistortionPromiseTry$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.try;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){const{0:o}=r;if(shared$LWS.isGaterEnabledFeature("changesSince.260")&&"function"==typeof o&&o===eval)throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.");return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,r):shared$LWS.ReflectApply(t,this,r)}];return function(){return r}}function initDistortionPromiseWithResolvers$LWS({globalObject:{Promise:e}}){const t=null==e?void 0:e.withResolvers;if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(){return shared$LWS.isGaterEnabledFeature("changesSince.262")?shared$LWS.ReflectApply(t,e,[]):shared$LWS.ReflectApply(t,this,[])}];return function(){return r}}function initDistortionRangeCreateContextualFragment$LWS({document:e,globalObject:{Range:{prototype:{createContextualFragment:t}}}}){return function({key:r}){return[t,function(...o){if(o.length){const{0:t}=o;null!=t&&(setCustomElementsRegistry$LWS(e,r),o[0]=internalPolicy$LWS.lwsInternalPolicy.createHTML(t,r,internalPolicy$LWS.ContentType.HTML))}return shared$LWS.ReflectApply(t,this,o)}]}}const{isSharedElement:isSharedElement$8$LWS}=sharedDom$LWS.rootValidator;function initDistortionRangeDeleteContents$LWS({globalObject:{AbstractRange:e,Range:{prototype:{deleteContents:t}}}}){const{prototype:r}=null!=e?e:Range,o=shared$LWS.ObjectLookupOwnGetter(r,"endContainer"),n=shared$LWS.ObjectLookupOwnGetter(r,"startContainer"),i=[t,function(...e){const r=[shared$LWS.ReflectApply(o,this,[]),shared$LWS.ReflectApply(n,this,[])];for(let e=0,{length:t}=r;e<t;e+=1){const t=r[e];if(isSharedElement$8$LWS(t))throw new shared$LWS.LockerSecurityError(`Cannot delete contents of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,t,[])}.`)}return shared$LWS.ReflectApply(t,this,e)}];return function(){return i}}const{isSharedElement:isSharedElement$7$LWS}=sharedDom$LWS.rootValidator;function initDistortionRangeExtractContents$LWS({globalObject:{AbstractRange:e,Range:{prototype:{extractContents:t}}}}){const{prototype:r}=null!=e?e:Range,o=shared$LWS.ObjectLookupOwnGetter(r,"endContainer"),n=shared$LWS.ObjectLookupOwnGetter(r,"startContainer"),i=[t,function(...e){const r=[shared$LWS.ReflectApply(o,this,[]),shared$LWS.ReflectApply(n,this,[])];for(let e=0,{length:t}=r;e<t;e+=1){const t=r[e];if(isSharedElement$7$LWS(t))throw new shared$LWS.LockerSecurityError(`Cannot extract contents of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,t,[])}.`)}return shared$LWS.ReflectApply(t,this,e)}];return function(){return i}}const{isSharedElement:isSharedElement$6$LWS,isAllowedSharedElementChild:isAllowedSharedElementChild$LWS}=sharedDom$LWS.rootValidator;function initDistortionRangeInsertNode$LWS({globalObject:{Range:{prototype:{insertNode:e}}}}){const t=shared$LWS.ObjectLookupOwnGetter(Range.prototype,"commonAncestorContainer"),r=[e,function(...r){if(r.length){const e=shared$LWS.ReflectApply(t,this,[]);if(e&&isSharedElement$6$LWS(e)&&!isAllowedSharedElementChild$LWS(r[0]))throw new shared$LWS.LockerSecurityError(`Cannot insert a new child node of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}.`)}return shared$LWS.ReflectApply(e,this,r)}];return function(){return r}}const{isSharedElement:isSharedElement$5$LWS}=sharedDom$LWS.rootValidator;function createRangeProtoMethodDistortionFactoryInitializer$LWS(e){return function({globalObject:{Range:{prototype:{[e]:t}}}}){const{[e]:r}={[e](...r){if(r.length){const{0:t}=r;if(isSharedElement$5$LWS(t))throw new shared$LWS.LockerSecurityError(`Cannot call ${e} with ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,t,[])}.`)}return shared$LWS.ReflectApply(t,this,r)}},o=[t,r];return function(){return o}}}const initDistortionRangeSetEnd$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setEnd"),initDistortionRangeSelectNode$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("selectNode"),initDistortionRangeSelectNodeContents$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("selectNodeContents"),initDistortionRangeSetEndAfter$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setEndAfter"),initDistortionRangeSetEndBefore$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setEndBefore"),initDistortionRangeSetStart$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setStart"),initDistortionRangeSetStartAfter$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setStartAfter"),initDistortionRangeSetStartBefore$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("setStartBefore"),initDistortionRangeSurroundContents$LWS=createRangeProtoMethodDistortionFactoryInitializer$LWS("surroundContents"),{isSharedElement:isSharedElement$4$LWS}=sharedDom$LWS.rootValidator;function initDistortionSelectionCollapse$LWS({globalObject:{Selection:{prototype:{collapse:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(e&&isSharedElement$4$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot collapse selection to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$3$LWS}=sharedDom$LWS.rootValidator;function initDistortionSelectionExtend$LWS({globalObject:{Selection:{prototype:{extend:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(isSharedElement$3$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot extend selection to ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$2$LWS}=sharedDom$LWS.rootValidator;function initDistortionSelectionSelectAllChildren$LWS({globalObject:{Selection:{prototype:{selectAllChildren:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(isSharedElement$2$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot select all children of ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$1$LWS}=sharedDom$LWS.rootValidator;function initDistortionSelectionSetBaseAndExtent$LWS({globalObject:{Selection:{prototype:{setBaseAndExtent:e}}}}){const t=[e,function(...t){if(4===t.length){const{0:e,2:r}=t,o=isSharedElement$1$LWS(e),n=isSharedElement$1$LWS(r);if(o||n){const t=o?e:r;throw new shared$LWS.LockerSecurityError(`Cannot set selection with ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,t,[])}`)}}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}const{isSharedElement:isSharedElement$LWS}=sharedDom$LWS.rootValidator;function initDistortionSelectionSetPosition$LWS({globalObject:{Selection:{prototype:{setPosition:e}}}}){const t=[e,function(...t){if(t.length){const{0:e}=t;if(e&&isSharedElement$LWS(e))throw new shared$LWS.LockerSecurityError(`Cannot set position with ${shared$LWS.ReflectApply(sharedDom$LWS.NodeProtoNodeNameGetter,e,[])}`)}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionServiceWorkerContainerProto$LWS({globalObject:{ServiceWorkerContainer:e}}){if("function"!=typeof e)return shared$LWS.noop;const{prototype:t}=e,r=[t,shared$LWS.createRevokedProxy(t)];return function(){return r}}function initDistortionShadowRootInnerHTMLSetter$LWS({document:e,globalObject:{ShadowRoot:t}}){const r=shared$LWS.ObjectLookupOwnSetter(t.prototype,"innerHTML");return function({key:t}){return[r,function(o){setCustomElementsRegistry$LWS(e,t),shared$LWS.ReflectApply(r,this,[internalPolicy$LWS.lwsInternalPolicy.createHTML(o,t,internalPolicy$LWS.ContentType.HTML)])}]}}const{isIframeSrcdocScriptAttack:isIframeSrcdocScriptAttack$LWS}=sharedDom$LWS.rootValidator;function initDistortionShadowRootSetHTMLUnsafe$LWS({document:e,globalObject:{ShadowRoot:{prototype:{setHTMLUnsafe:t}}}}){return"function"!=typeof t?shared$LWS.noop:function({key:r}){return[t,function(o){const n=internalPolicy$LWS.lwsInternalPolicy.createHTML(shared$LWS.toSafeStringValue(o),r,internalPolicy$LWS.ContentType.HTML);if(isIframeSrcdocScriptAttack$LWS(n))throw new shared$LWS.LockerSecurityError(`Cannot 'setHTMLUnsafe' using an unsecure ${shared$LWS.toSafeTemplateStringValue(n)}.`);setCustomElementsRegistry$LWS(e,r),shared$LWS.ReflectApply(t,this,[n])}]}}function SharedWorker$LWS(e){throw new shared$LWS.LockerSecurityError(`Cannot create SharedWorker with ${shared$LWS.toSafeTemplateStringValue(e)}.`)}function initDistortionSharedWorkerCtor$LWS({globalObject:{SharedWorker:e}}){if("function"!=typeof e)return shared$LWS.noop;const t=[e,SharedWorker$LWS];return function(){return t}}function initDistortionSharedWorkerProto$LWS({globalObject:{SharedWorker:e}}){if("function"!=typeof e)return shared$LWS.noop;const{prototype:t}=e,r=[t,shared$LWS.createRevokedProxy(t)];return function(){return r}}function getStorageKeysForNamespace$LWS(e,t){const r=shared$LWS.ObjectKeys(e),o=[];let n=0;for(let e=0,{length:i}=r;e<i;e+=1){const i=r[e];shared$LWS.startsWithStorageNamespaceMarker(i,t)&&(o[n++]=i)}return o}function processStorageKeysForNamespace$LWS(e,t){const{length:r}=e,o=shared$LWS.ArrayCtor(r);for(let n=0;n<r;n+=1){const r=e[n];o[n]=shared$LWS.removeStorageNamespaceMarker(r,t)}return o}const storageToMetaMap$LWS=shared$LWS.toSafeWeakMap(new shared$LWS.WeakMapCtor);function getStorageMetaOrThrowInvalidInvocation$LWS(e){const t=storageToMetaMap$LWS.get(e);if(void 0===t)throw new shared$LWS.LockerSecurityError("Illegal invocation.");return t}function createStorageProxy$LWS(e){const t=new shared$LWS.ProxyCtor(e,{get(e,r,o){if("symbol"==typeof r)return shared$LWS.ReflectGet(e,r,o);const{namespace:n,storage:i}=storageToMetaMap$LWS.get(t),s=shared$LWS.prependStorageNamespaceMarker(r,n);if(shared$LWS.ObjectHasOwn(i,s))return shared$LWS.ReflectGet(i,s);const a=shared$LWS.ReflectGetPrototypeOf(e);return null===a?void 0:shared$LWS.ReflectGet(a,r,o)},set(e,r,o){if("symbol"==typeof r)return shared$LWS.ReflectSet(e,r,o);const{namespace:n,storage:i}=storageToMetaMap$LWS.get(t),s=shared$LWS.prependStorageNamespaceMarker(r,n);return shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoSetItem,i,[s,o]),!0},defineProperty(e,r,o){const n=o;if(shared$LWS.ReflectSetPrototypeOf(n,null),"symbol"==typeof r)return shared$LWS.ReflectDefineProperty(e,r,n);const{namespace:i,storage:s}=storageToMetaMap$LWS.get(t),a=shared$LWS.prependStorageNamespaceMarker(r,i);return shared$LWS.ReflectDefineProperty(s,a,n)},deleteProperty(e,r){if("symbol"==typeof r)return shared$LWS.ReflectDeleteProperty(e,r);const{namespace:o,storage:n}=storageToMetaMap$LWS.get(t),i=shared$LWS.prependStorageNamespaceMarker(r,o);return shared$LWS.ReflectDeleteProperty(n,i)},getOwnPropertyDescriptor(e,r){let o;if("symbol"==typeof r)o=shared$LWS.ReflectGetOwnPropertyDescriptor(e,r);else{const{namespace:e,storage:n}=storageToMetaMap$LWS.get(t),i=shared$LWS.prependStorageNamespaceMarker(r,e);o=shared$LWS.ReflectGetOwnPropertyDescriptor(n,i)}return o&&shared$LWS.ReflectSetPrototypeOf(o,null),o},ownKeys(e){const{namespace:r,storage:o}=storageToMetaMap$LWS.get(t),n=processStorageKeysForNamespace$LWS(getStorageKeysForNamespace$LWS(o,r),r),i=shared$LWS.ObjectGetOwnPropertySymbols(e);return shared$LWS.ArrayConcat(n,i)},has(e,r){if("symbol"==typeof r)return shared$LWS.ReflectHas(e,r);const{namespace:o,storage:n}=storageToMetaMap$LWS.get(t),i=shared$LWS.prependStorageNamespaceMarker(r,o);if(shared$LWS.ObjectHasOwn(n,i))return!0;const s=shared$LWS.ReflectGetPrototypeOf(e);return null!==s&&shared$LWS.ReflectHas(s,r)},preventExtensions:e=>!1});return t}class PatchedStorage$LWS{constructor(){throw new shared$LWS.LockerSecurityError("Illegal constructor")}get length(){const{namespace:e,storage:t}=getStorageMetaOrThrowInvalidInvocation$LWS(this);return getStorageKeysForNamespace$LWS(t,e).length}key(...e){const{namespace:t,storage:r}=getStorageMetaOrThrowInvalidInvocation$LWS(this);if(e.length){const o=getStorageKeysForNamespace$LWS(r,t),n=o[e[0]],i=o[0],s=n||i;return"string"!=typeof s?null:shared$LWS.removeStorageNamespaceMarker(s,t)}return shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoKey,r,e)}getItem(...e){const{namespace:t,storage:r}=getStorageMetaOrThrowInvalidInvocation$LWS(this);return e.length&&(e[0]=shared$LWS.prependStorageNamespaceMarker(shared$LWS.toSafeStringValue(e[0]),t)),shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoGetItem,r,e)}setItem(...e){const{namespace:t,storage:r}=getStorageMetaOrThrowInvalidInvocation$LWS(this);e.length>1&&(e[0]=shared$LWS.prependStorageNamespaceMarker(shared$LWS.toSafeStringValue(e[0]),t),e[1]=shared$LWS.toSafeStringValue(e[1])),shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoSetItem,r,e)}removeItem(...e){const{namespace:t,storage:r}=getStorageMetaOrThrowInvalidInvocation$LWS(this);e.length&&(e[0]=shared$LWS.prependStorageNamespaceMarker(shared$LWS.toSafeStringValue(e[0]),t)),shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoRemoveItem,r,e)}clear(){const{namespace:e,storage:t}=getStorageMetaOrThrowInvalidInvocation$LWS(this),r=getStorageKeysForNamespace$LWS(t,e);for(let e=0,{length:o}=r;e<o;e+=1){const o=r[e];shared$LWS.ReflectApply(sharedDom$LWS.StorageProtoRemoveItem,t,[o])}}}function createStorage$LWS(e,t){const r=createStorageProxy$LWS({__proto__:PatchedStorage$LWS.prototype});return shared$LWS.trackAsLiveTarget(r),storageToMetaMap$LWS.set(r,{namespace:t,storage:e}),r}const{prototype:PatchedStorageProto$LWS}=PatchedStorage$LWS,{clear:patchedStorageProtoClear$LWS,getItem:patchedStorageProtoGetItem$LWS,key:patchedStorageProtoKey$LWS,removeItem:patchedStorageProtoRemoveItem$LWS,setItem:patchedStorageProtoSetItem$LWS}=PatchedStorageProto$LWS,patchedStorageProtoLengthGetter$LWS=shared$LWS.ObjectLookupOwnGetter(PatchedStorageProto$LWS,"length");function createDistortionStorageFactoryInitializer$LWS(e){return function({globalObject:t}){let r;try{r=t[e]}catch(e){}return shared$LWS.isObject(r)?function({key:e}){return[r,createStorage$LWS(r,e)]}:shared$LWS.noop}}function initDistortionStorageLength$LWS({globalObject:{Storage:e}}){const t=[shared$LWS.ObjectLookupOwnGetter(e.prototype,"length"),patchedStorageProtoLengthGetter$LWS];return function(){return t}}function initDistortionStorageGetItem$LWS({globalObject:{Storage:{prototype:{getItem:e}}}}){const t=[e,patchedStorageProtoGetItem$LWS];return function(){return t}}function initDistortionStorageSetItem$LWS({globalObject:{Storage:{prototype:{setItem:e}}}}){const t=[e,patchedStorageProtoSetItem$LWS];return function(){return t}}function initDistortionStorageKey$LWS({globalObject:{Storage:{prototype:{key:e}}}}){const t=[e,patchedStorageProtoKey$LWS];return function(){return t}}function initDistortionStorageRemoveItem$LWS({globalObject:{Storage:{prototype:{removeItem:e}}}}){const t=[e,patchedStorageProtoRemoveItem$LWS];return function(){return t}}function initDistortionStorageClear$LWS({globalObject:{Storage:{prototype:{clear:e}}}}){const t=[e,patchedStorageProtoClear$LWS];return function(){return t}}function initDistortionStorage$LWS({globalObject:{Storage:e}}){const t=[e,PatchedStorage$LWS];return function(){return t}}const initDistortionLocalStorage$LWS=createDistortionStorageFactoryInitializer$LWS("localStorage"),initDistortionSessionStorage$LWS=createDistortionStorageFactoryInitializer$LWS("sessionStorage");function initDistortionSVGAnimateElementAttributeNameAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGAnimateElement:t}}){return function(r){function o(e,t){if(shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoHasAttribute,e,[t])){const o=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,e,[t]);if(o){const n=getAttributeDistortion$LWS(r,e,t);n&&shared$LWS.ReflectApply(n,e,[o])}}}registerAttributeDistortion$LWS(r,t,"attributeName",sharedDom$LWS.NAMESPACE_DEFAULT,(function(t){shared$LWS.ReflectApply(e,this,["attributeName",t]),"href"===t&&(o(this,"from"),o(this,"to"),o(this,"values"))}))}}function initDistortionSVGAnimateElementFromAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGAnimateElement:t}}){function r(t){"href"===shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,["attributeName"])&&(t=htmlSanitizer$LWS.sanitizeSvgHref(t)),shared$LWS.ReflectApply(e,this,["from",t])}return function(e){registerAttributeDistortion$LWS(e,t,"from",sharedDom$LWS.NAMESPACE_DEFAULT,r)}}function initDistortionSVGAnimateElementToAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGAnimateElement:t}}){function r(t){"href"===shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,["attributeName"])&&(t=htmlSanitizer$LWS.sanitizeSvgHref(t)),shared$LWS.ReflectApply(e,this,["to",t])}return function(e){registerAttributeDistortion$LWS(e,t,"to",sharedDom$LWS.NAMESPACE_DEFAULT,r)}}function initDistortionSVGAnimateElementValuesAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGAnimateElement:t}}){function r(t){let r=t;if("href"===shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,["attributeName"])){const e=shared$LWS.ReflectApply(shared$LWS.StringProtoSplit,t,[";"]),{length:o}=e;for(let t=0;t<o;t+=1)e[t]=htmlSanitizer$LWS.sanitizeSvgHref(e[t]);r=shared$LWS.ReflectApply(shared$LWS.ArrayProtoJoin,e,[";"])}shared$LWS.ReflectApply(e,this,["values",r])}return function(e){registerAttributeDistortion$LWS(e,t,"values",sharedDom$LWS.NAMESPACE_DEFAULT,r)}}function initDistortionSVGElementDatasetGetter$LWS({globalObject:{SVGElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"dataset"),r=[t,function(){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(t,this,[]))}];return function(){return r}}function initDistortionSVGElementOnsecuritypolicyviolation$LWS({globalObject:{SVGElement:{prototype:e},SVGElement:t}}){return createEventDistortionFactory$LWS(e,t,"securitypolicyviolation")}function initDistortionSVGElementStyleGetter$LWS({globalObject:{SVGElement:e}}){const t=shared$LWS.ObjectLookupOwnGetter(e.prototype,"style"),r=[t,function(){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(t,this,[]))}];return function(){return r}}const script$LWS=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoCreateElementNS,document,[sharedDom$LWS.NAMESPACE_SVG,"script"]);function initDistortionSVGScriptElementHrefGetter$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGScriptElement:t}}){const r=shared$LWS.ObjectLookupOwnGetter(t.prototype,"href"),o=[r,function(){const t=getScriptURL$LWS(this);return"string"==typeof t?(shared$LWS.ReflectApply(e,script$LWS,["href",trustedTypes$LWS.trusted.createScriptURL(t)]),shared$LWS.ReflectApply(r,script$LWS,[])):shared$LWS.ReflectApply(r,this,[])}];return function(){return o}}function initDistortionSVGScriptElementHrefSetter$LWS({globalObject:{SVGScriptElement:e}}){return function(t){registerAttributeDistortion$LWS(t,e,"href",sharedDom$LWS.NAMESPACE_XLINK,createScriptDistortion$LWS(t,"href")),registerAttributeDistortion$LWS(t,e,"xlink:href",sharedDom$LWS.NAMESPACE_XLINK,createScriptDistortion$LWS(t,"xlink:href")),registerAttributeDistortion$LWS(t,e,"href",sharedDom$LWS.NAMESPACE_DEFAULT,createScriptDistortion$LWS(t,"href")),registerAttributeDistortion$LWS(t,e,"xlink:href",sharedDom$LWS.NAMESPACE_DEFAULT,createScriptDistortion$LWS(t,"xlink:href"))}}function initDistortionSVGSetElementAttributeNameAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGSetElement:t}}){return function(r){registerAttributeDistortion$LWS(r,t,"attributeName",sharedDom$LWS.NAMESPACE_DEFAULT,(function(t){shared$LWS.ReflectApply(e,this,["attributeName",t]),"href"===t&&function(e,t){if(shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoHasAttribute,e,[t])){const o=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,e,[t]);if(o){const n=getAttributeDistortion$LWS(r,e,t);n&&shared$LWS.ReflectApply(n,e,[o])}}}(this,"to")}))}}function initDistortionSVGSetElementToAttribute$LWS({globalObject:{Element:{prototype:{setAttribute:e}},SVGSetElement:t}}){function r(t){"href"===shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoGetAttribute,this,["attributeName"])&&(t=htmlSanitizer$LWS.sanitizeSvgHref(t)),shared$LWS.ReflectApply(e,this,["to",t])}return function(e){registerAttributeDistortion$LWS(e,t,"to",sharedDom$LWS.NAMESPACE_DEFAULT,r)}}function createDistortionHrefAttributeFactoryInitializer$LWS(e){return function({globalObject:{Element:{prototype:{setAttribute:t,setAttributeNS:r}},SVGUseElement:o}}){function n(t){const o=null==t||""===t?t:htmlSanitizer$LWS.sanitizeSvgHref(t);shared$LWS.ReflectApply(r,this,[sharedDom$LWS.NAMESPACE_XLINK,e,o])}return function(r){if(registerAttributeDistortion$LWS(r,o,e,sharedDom$LWS.NAMESPACE_XLINK,n),"href"===e){const n=function(r){const o=null==r||""===r?r:htmlSanitizer$LWS.sanitizeSvgHref(r);shared$LWS.ReflectApply(t,this,[e,o])};registerAttributeDistortion$LWS(r,o,e,sharedDom$LWS.NAMESPACE_DEFAULT,n)}}}}const initDistortionSVGUseElementHrefAttribute$LWS=createDistortionHrefAttributeFactoryInitializer$LWS("href"),initDistortionSVGUseElementXlinkHrefAttribute$LWS=createDistortionHrefAttributeFactoryInitializer$LWS("xlink:href");function createTrustedTypesExceptionMessage$LWS(e){return`Cannot create TrustedTypePolicy with '${e}' policy name.`}function initDistortionTrustedTypePolicyFactoryCreatePolicy$LWS({globalObject:{TrustedTypePolicyFactory:e}}){var t;const r=null==e||null==(t=e.prototype)?void 0:t.createPolicy;if("function"!=typeof r)return shared$LWS.noop;const o=[r,function(...e){const t=e.length?e[0]:void 0;if("default"===t)throw new shared$LWS.LockerSecurityError(createTrustedTypesExceptionMessage$LWS(t));try{return shared$LWS.ReflectApply(r,this,e)}catch(e){shared$LWS.consoleWarn(`${createTrustedTypesExceptionMessage$LWS(t)} Substituting with Lightning Web Security policy.`)}return trustedTypes$LWS.trusted}];return function(){return o}}const HTML_MIME_TYPES_LIST$LWS=shared$LWS.toSafeArray(["text/html","image/svg+xml","text/xml"]),createInsecureBlobErrorMessage$LWS=e=>`Cannot 'createObjectURL' using an unsecure ${shared$LWS.toSafeTemplateStringValue(e)}.`;function initDistortionURLCreateObjectURL$LWS({document:e,globalObject:t,globalObject:{MediaSource:r,URL:{createObjectURL:o}}}){const{isEqualDomString:n,isIframeSrcdocScriptAttack:i,isXMLEntityAttack:s,isXMLNamespacedScriptAttack:a}=sharedDom$LWS.getValidator(e,t);return function({key:e}){const t=htmlSanitizer$LWS.blobSanitizer(e);return[o,function(e){let c=shared$LWS.ReflectApply(o,this,[e]);if(r&&e instanceof r)return c;const l=shared$LWS.ReflectApply(sharedDom$LWS.BlobProtoTypeGetter,e,[]);if(""===l){const t=shared$LWS.ReflectApply(sharedDom$LWS.BlobProtoSlice,e,[0,void 0,"text/plain"]);return shared$LWS.ReflectApply(o,this,[t])}const S=shared$LWS.ReflectApply(shared$LWS.StringProtoToLowerCase,l,[]);if(HTML_MIME_TYPES_LIST$LWS.includes(S)){const r=shared$LWS.ReflectApply(sharedDom$LWS.BlobProtoSizeGetter,e,[]),l=shared$LWS.ReflectApply(sharedDom$LWS.BlobProtoSlice,e,[0,r,`${S};charset=utf-8`]);sharedDom$LWS.URLRevokeObjectURL(c),c=shared$LWS.ReflectApply(o,this,[l]);const L=new sharedDom$LWS.XhrCtor;shared$LWS.ReflectApply(sharedDom$LWS.XhrProtoOpen,L,["GET",c,!1]);try{shared$LWS.ReflectApply(sharedDom$LWS.XhrProtoSend,L,[])}catch(t){throw new shared$LWS.LockerSecurityError(`Unable to verify ${shared$LWS.toSafeTemplateStringValue(e)} is secure.`)}const d=shared$LWS.ReflectApply(sharedDom$LWS.XhrProtoResponseTextGetter,L,[]),h=t.sanitize(d);if(!n(trustedTypes$LWS.trusted.createHTML(d),trustedTypes$LWS.trusted.createHTML(h))||i(d))throw sharedDom$LWS.URLRevokeObjectURL(c),new shared$LWS.LockerSecurityError(createInsecureBlobErrorMessage$LWS(e));if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&(s(d)||a(d)))throw sharedDom$LWS.URLRevokeObjectURL(c),new shared$LWS.LockerSecurityError(createInsecureBlobErrorMessage$LWS(e));return c}if(sharedUrl$LWS.isMIMETypeAllowed(S))return c;throw sharedDom$LWS.URLRevokeObjectURL(c),new shared$LWS.LockerSecurityError("Unsupported MIME type.")}]}}function containsEval$LWS(e,t){if(e===t)return!0;if("object"==typeof e&&null!==e)for(const r in e)if(shared$LWS.ObjectHasOwn(e,r)&&containsEval$LWS(e[r],t))return!0;return!1}function initDistortionWebAssemblyInstanceExportsGetter$LWS({globalObject:{WebAssembly:{Instance:e},eval:t}}){const r=shared$LWS.ObjectLookupOwnGetter(e.prototype,"exports"),o=[r,function(){const e=this,o=shared$LWS.ObjectGetOwnPropertyDescriptors(shared$LWS.ReflectApply(r,this,[])),n=shared$LWS.ObjectKeys(o),i={__proto__:null};for(const r of n){const n=o[r],{value:s}=n;if("function"==typeof s){const o=_extends$LWS({__proto__:null},n);o.value=function(...r){if(shared$LWS.isGaterEnabledFeature("changesSince.260")&&containsEval$LWS(r,t))throw new shared$LWS.LockerSecurityError("Cannot call WebAssembly.Instance exported function with eval.");return shared$LWS.ReflectApply(s,e,r)},shared$LWS.ReflectDefineProperty(i,r,o)}else shared$LWS.ReflectDefineProperty(i,r,n)}return i}];return function(){return o}}function initDistortionWebAssemblyInstantiate$LWS({globalObject:{WebAssembly:{instantiate:e},eval:t}}){return function(){return[e,function(...r){const{length:o}=r;if(o>1){const{1:e}=r;if(null!=e&&shared$LWS.isGaterEnabledFeature("changesSince.260")&&containsEval$LWS(e,t))throw new shared$LWS.LockerSecurityError("WebAssembly.instantiate: Import object contains eval, which is not allowed.")}return shared$LWS.ReflectApply(e,this,r)}]}}function initDistortionWebAssemblyInstantiateStreaming$LWS({globalObject:{WebAssembly:{instantiateStreaming:e},eval:t}}){return function(){return[e,function(...r){const{length:o}=r;if(o>1){const{1:e}=r;if(null!=e&&shared$LWS.isGaterEnabledFeature("changesSince.260")&&containsEval$LWS(e,t))throw new shared$LWS.LockerSecurityError("WebAssembly.instantiateStreaming: Import object contains eval, which is not allowed.")}return shared$LWS.ReflectApply(e,this,r)}]}}function initDistortionWindowFetch$LWS({globalObject:{fetch:e}}){const t=[e,function(...t){let{0:r}=t;if(null!=r){let e;if(r instanceof Request?e=sharedUrl$LWS.parseURL(shared$LWS.ReflectApply(sharedDom$LWS.RequestProtoURLGetter,r,[])):(e=sharedUrl$LWS.parseURL(shared$LWS.toSafeStringValue(r)),r=e.normalizedURL,t[0]=r),!sharedUrl$LWS.isAllowedEndpointURL(e)){const{normalizedURL:t}=e;return shared$LWS.PromiseReject(new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${shared$LWS.toSafeTemplateStringValue(t)}`))}}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function initDistortionWindowFetchLater$LWS({globalObject:{fetchLater:e}}){if("function"!=typeof e)return shared$LWS.noop;const t=[e,function(...t){if(!shared$LWS.isGaterEnabledFeature("changesSince.258"))return shared$LWS.ReflectApply(e,this,t);let{0:r}=t;if(null!=r){let e;if(r instanceof Request?e=sharedUrl$LWS.parseURL(shared$LWS.ReflectApply(sharedDom$LWS.RequestProtoURLGetter,r,[])):(e=sharedUrl$LWS.parseURL(shared$LWS.toSafeStringValue(r)),r=e.normalizedURL,t[0]=r),!sharedUrl$LWS.isAllowedEndpointURL(e)){const{normalizedURL:t}=e;throw new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${shared$LWS.toSafeTemplateStringValue(t)}`)}}return shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}class BaseFrameHandler$LWS{defineProperty(e,t,r){return!0}deleteProperty(e,t){return!0}getOwnPropertyDescriptor(e,t){}isExtensible(e){return!0}ownKeys(e){return[]}preventExtensions(e){return!0}set(e,t,r,o){return!0}setPrototypeOf(e){return!1}}shared$LWS.ReflectSetPrototypeOf(BaseFrameHandler$LWS.prototype,null);class ShadowFramesPrototypeHandler$LWS extends BaseFrameHandler$LWS{}function initDistortionWindowFramesGetter$LWS({globalObject:e}){const t=shared$LWS.ObjectLookupOwnGetter(e,"frames");if("function"!=typeof t)return shared$LWS.noop;let r;const o=[t,function(){return void 0===r&&(r=(()=>{const t=shared$LWS.ReflectGetPrototypeOf(e),r=shared$LWS.ReflectGetPrototypeOf(t),o=shared$LWS.ReflectApply(shared$LWS.FunctionProtoBind,sharedDom$LWS.WindowLengthGetter,[e]),n=shared$LWS.ReflectApply(shared$LWS.FunctionProtoBind,shared$LWS.noop,[]),i=t=>{const r="string"==typeof t?+t:-1;if(r>-1&&shared$LWS.NumberIsInteger(r)&&r<shared$LWS.ReflectApply(sharedDom$LWS.WindowLengthGetter,e,[])){const r=shared$LWS.ObjectLookupOwnValue(e,t);if(sharedDom$LWS.isWindow(r))return r}},s=o=>{if("string"==typeof o&&!shared$LWS.ObjectHasOwn(e,o)&&!shared$LWS.ObjectHasOwn(t,o)){const e=shared$LWS.ObjectLookupOwnValue(r,o);if(sharedDom$LWS.isWindow(e))return e}},a=t=>"length"===t?shared$LWS.ReflectApply(sharedDom$LWS.WindowLengthGetter,e,[]):i(t),c={},l={},S=new class extends BaseFrameHandler$LWS{get(e,t,r){const o=a(t);return void 0===o?shared$LWS.ReflectGet(e,t,r):o}getOwnPropertyDescriptor(e,t){if("length"===t)return{__proto__:null,configurable:!0,enumerable:!0,get:o,set:n};const r=i(t);return r?{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!1}:void 0}has(e,t){return shared$LWS.ReflectHas(e,t)||void 0!==a(t)}ownKeys(){const{length:t}=e,r=shared$LWS.ArrayCtor(t+1);for(let e=0;e<t;e+=1)r[e]=`${e}`;return r[t]="length",r}},L=new ShadowFramesPrototypeHandler$LWS,d=new class extends ShadowFramesPrototypeHandler$LWS{get(e,t,r){const o=s(t);return void 0===o?shared$LWS.ReflectGet(e,t,r):o}getOwnPropertyDescriptor(e,t){const r=s(t);return void 0===r?r:{__proto__:null,configurable:!0,enumerable:!0,value:r,writable:!1}}has(e,t){return shared$LWS.ReflectHas(e,t)||void 0!==s(t)}ownKeys(){const e=[];let t=0;const o=shared$LWS.ObjectGetOwnPropertyDescriptors(r);shared$LWS.ReflectSetPrototypeOf(o,null);for(const r in o)if("string"==typeof r){const n=o[r];shared$LWS.ObjectHasOwn(n,"value")&&sharedDom$LWS.isWindow(n.value)&&(e[t++]=r)}return e}},h=new shared$LWS.ProxyCtor(l,L),$=new shared$LWS.ProxyCtor({},d);return shared$LWS.ReflectSetPrototypeOf(c,h),shared$LWS.ReflectSetPrototypeOf(l,$),new shared$LWS.ProxyCtor(c,S)})()),r}];return function(){return o}}function initDistortionWindowGetComputedStyle$LWS({globalObject:{getComputedStyle:e}}){const t=[e,function(...t){return shared$LWS.trackAsLiveTarget(shared$LWS.ReflectApply(e,this,t))}];return function(){return t}}function length$LWS(){return 0}function initDistortionWindowLengthGetter$LWS({globalObject:e}){const t=shared$LWS.ObjectLookupOwnGetter(e,"length");if("function"!=typeof t)return shared$LWS.noop;const r=[t,length$LWS];return function(){return r}}function initDistortionWindowOnrejectionhandled$LWS({globalObject:e,globalObject:{Window:t}}){return createEventDistortionFactory$LWS(e,t,"rejectionhandled")}function initDistortionWindowOnsecuritypolicyviolation$LWS({globalObject:e,globalObject:{Window:t}}){return createEventDistortionFactory$LWS(e,t,"securitypolicyviolation")}function initDistortionWindowOnstorage$LWS({globalObject:e,globalObject:{Window:t}}){return createEventDistortionFactory$LWS(e,t,"storage")}function initDistortionWindowOnunhandledrejection$LWS({globalObject:e,globalObject:{Window:t}}){return createEventDistortionFactory$LWS(e,t,"unhandledrejection")}function initDistortionWindowOpen$LWS({globalObject:{open:e}}){const t=[e,function(...t){const r=sharedDom$LWS.normalizeWindowOpenArguments(t),{0:o=""}=r;if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedUrl$LWS.isAttemptingToExploitURL(o))throw new shared$LWS.LockerSecurityError(`Cannot open: ${o}`);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&sharedUrl$LWS.isSameOriginURL(o)){const e=sharedUrl$LWS.parseURL(o);if(!sharedUrl$LWS.isValidBrowsingContextURL(e))throw new shared$LWS.LockerSecurityError(`Cannot open disallowed endpoint: ${shared$LWS.toSafeTemplateStringValue(e.normalizedURL)}`)}const n=shared$LWS.ReflectApply(e,this,r);if(shared$LWS.isGaterEnabledFeature("changesSince.256")?sharedUrl$LWS.isSameOriginURL(o)&&sharedDom$LWS.markForUnsafePropertyBlocking(n):sharedDom$LWS.markForUnsafePropertyBlocking(n),r.length>1){const{1:e}=r;if("_self"===e||"_parent"===e||"_top"===e)return n}return n&&r.length&&sharedDom$LWS.initWindowOpenChildWindow(n,o),n}];return function(){return t}}function initDistortionWindowPostMessage$LWS({globalObject:{postMessage:e}}){const t=[e,function(...t){try{return shared$LWS.ReflectApply(e,this,t)}catch(r){const{length:o}=t;if(o){const r=t[0];if(shared$LWS.isObject(r)){const n=o>1?t[1]:void 0;return shared$LWS.isObjectLike(n)?t=shared$LWS.partialStructuredClone(t):t[0]=shared$LWS.partialStructuredClone(r),shared$LWS.ReflectApply(e,this,t)}}throw r}}];return function(){return t}}function initDistortionWindowSetInterval$LWS({UNCOMPILED_CONTEXT:e,globalObject:{setInterval:t}}){return function({sandboxEvaluator:r,virtualEnvironmentEvaluator:o}){return[t,function(...n){if(sharedDom$LWS.throwIfMarkedAsUnsafeInChildWindow(o,"setInterval"),n.length){const{0:t}=n;if(null!=t)if("function"!=typeof t){const o=shared$LWS.toSafeStringValue(t);n[0]=()=>{r(sharedDom$LWS.transformSourceText(o),e)}}else if(shared$LWS.isGaterEnabledFeature("changesSince.256")&&t===eval)throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.")}return shared$LWS.ReflectApply(t,this,n)}]}}function initDistortionWindowSetTimeout$LWS({UNCOMPILED_CONTEXT:e,globalObject:{setTimeout:t}}){return function({sandboxEvaluator:r,virtualEnvironmentEvaluator:o}){return[t,function(...n){if(sharedDom$LWS.throwIfMarkedAsUnsafeInChildWindow(o,"setTimeout"),n.length){const{0:t}=n;if(null!=t)if("function"!=typeof t){const o=shared$LWS.toSafeStringValue(t);n[0]=()=>{r(sharedDom$LWS.transformSourceText(o),e)}}else if(shared$LWS.isGaterEnabledFeature("changesSince.256")&&t===eval)throw new shared$LWS.LockerSecurityError("Cannot pass unsafe eval reference.")}return shared$LWS.ReflectApply(t,this,n)}]}}function initDistortionWindowStructuredClone$LWS({globalObject:{DOMException:e,structuredClone:t}}){if("function"!=typeof t)return shared$LWS.noop;const r=[t,function(...r){try{return shared$LWS.ReflectApply(t,this,r)}catch(o){const{length:n}=r;if(n&&o instanceof e){const e=r[0];if(shared$LWS.isObject(e)){const o=n>1?r[1]:void 0;if(shared$LWS.isObjectLike(o)){const{transfer:e}=o;r[1]={__proto__:o,transfer:e},r=shared$LWS.partialStructuredClone(r)}else r[0]=shared$LWS.partialStructuredClone(e);return shared$LWS.ReflectApply(t,this,r)}}throw o}}];return function(){return r}}function Worker$LWS(e){throw new shared$LWS.LockerSecurityError(`Cannot create Worker with ${shared$LWS.toSafeTemplateStringValue(e)}.`)}function initDistortionWorkerCtor$LWS({globalObject:{Worker:e}}){const t=[e,Worker$LWS];return function(){return t}}function initDistortionWorkerProto$LWS({globalObject:{Worker:{prototype:e}}}){const t=[e,shared$LWS.createRevokedProxy(e)];return function(){return t}}function initDistortionXMLHttpRequestOpen$LWS({globalObject:{XMLHttpRequest:{prototype:{open:e}}}}){const t=[e,function(...t){const r=t.length>1?t[1]:void 0;if(null!=r){const e=sharedUrl$LWS.parseURL(shared$LWS.toSafeStringValue(r));if(!sharedUrl$LWS.isAllowedEndpointURL(e))throw new shared$LWS.LockerSecurityError(`Cannot request disallowed endpoint: ${e.normalizedURL}`);t[1]=e.normalizedURL}shared$LWS.ReflectApply(e,this,t)}];return function(){return t}}function replaceDocumentContent$LWS(e,t){const r=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoImplementationGetter,e,[]),o=shared$LWS.ReflectApply(sharedDom$LWS.DOMImplementationProtoCreateDocument,r,[sharedDom$LWS.NAMESPACE_XHTML,"html"]),n=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoDocumentElementGetter,o,[]);return shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoInnerHTMLSetter,n,[t]),o}function initDistortionXMLHttpRequestResponseGetter$LWS({document:e,globalObject:t,globalObject:{Document:r,XMLHttpRequest:o}}){const n=shared$LWS.ObjectLookupOwnGetter(o.prototype,"response"),{isXMLEntityAttack:i,isXMLNamespacedScriptAttack:s}=sharedDom$LWS.getValidator(e,t);return function({key:t}){return[n,function(){const o=shared$LWS.ReflectApply(n,this,[]);if(setCustomElementsRegistry$LWS(e,t),o instanceof r){const e=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoDocumentElementGetter,o,[]),r=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoOuterHTMLGetter,e,[]);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&(i(r)||s(r)))throw new shared$LWS.LockerSecurityError(`Cannot access XMLHttpRequest response using an unsecure ${shared$LWS.toSafeTemplateStringValue(o)}.`);return replaceDocumentContent$LWS(o,internalPolicy$LWS.lwsInternalPolicy.createHTML(r,t,internalPolicy$LWS.ContentType.HTML))}return o}]}}function initDistortionXMLHttpRequestResponseXMLGetter$LWS({document:e,globalObject:t,globalObject:{XMLHttpRequest:r}}){const o=shared$LWS.ObjectLookupOwnGetter(r.prototype,"responseXML"),{isXMLEntityAttack:n,isXMLNamespacedScriptAttack:i}=sharedDom$LWS.getValidator(e,t);return function({key:t}){return[o,function(){const r=shared$LWS.ReflectApply(o,this,[]);setCustomElementsRegistry$LWS(e,t);const s=shared$LWS.ReflectApply(sharedDom$LWS.DocumentProtoDocumentElementGetter,r,[]),a=shared$LWS.ReflectApply(sharedDom$LWS.ElementProtoOuterHTMLGetter,s,[]);if(shared$LWS.isGaterEnabledFeature("changesSince.262")&&(n(a)||i(a)))throw new shared$LWS.LockerSecurityError(`Cannot access XMLHttpRequest responseXML using an unsecure ${shared$LWS.toSafeTemplateStringValue(r)}.`);return replaceDocumentContent$LWS(r,internalPolicy$LWS.lwsInternalPolicy.createHTML(a,t,internalPolicy$LWS.ContentType.HTML))}]}}const internalDistortionFactoryInitializers$LWS=[initDistortionBroadcastChannelPostMessage$LWS,initDistortionCSSStyleRuleStyleGetter$LWS,initDistortionDocumentDomainSetter$LWS,initDistortionDocumentOnsecuritypolicyviolation$LWS,initDistortionDocumentOpen$LWS,initDistortionElementAttributesGetter$LWS,initDistortionElementGetInnerHTML$LWS,initDistortionElementInnerHTMLGetter$LWS,initDistortionElementOuterHTMLGetter$LWS,initDistortionElementRemove$LWS,initDistortionElementReplaceChildren$LWS,initDistortionElementReplaceWith$LWS,initDistortionFunction$LWS,initDistortionHistoryPushState$LWS,initDistortionHistoryReplaceState$LWS,initDistortionHTMLElementDatasetGetter$LWS,initDistortionHTMLElementInnerTextGetter$LWS,initDistortionHTMLElementInnerTextSetter$LWS,initDistortionHTMLElementOuterTextSetter$LWS,initDistortionHTMLElementStyleGetter$LWS,initDistortionIFrameElementContentDocumentGetter$LWS,initDistortionIFrameElementContentWindowGetter$LWS,initDistortionHTMLIFrameElementSandboxGetter$LWS,initDistortionHTMLIFrameElementSandboxSetter$LWS,initDistortionHTMLIFrameElementSrcSetter$LWS,initDistortionHTMLLinkElementRelSetter$LWS,initDistortionHTMLLinkElementRelListSetter$LWS,initDistortionHTMLMetaElementContentGetter$LWS,initDistortionHTMLObjectElementDataSetter$LWS,initDistortionHTMLScriptElementInnerTextGetter$LWS,initDistortionHTMLScriptElementSrcGetter$LWS,initDistortionHTMLScriptElementTextContentGetter$LWS,initDistortionHTMLScriptElementTextContentSetter$LWS,initDistortionHTMLScriptElementTextGetter$LWS,initDistortionHTMLScriptElementTextSetter$LWS,initDistortionIDBObjectStoreAdd$LWS,initDistortionIDBObjectStorePut$LWS,initDistortionMessagePortPostMessage$LWS,initDistortionMutationObserverObserve$LWS,initDistortionNavigatorSendBeacon$LWS,initDistortionNavigatorServiceWorkerGetter$LWS,initDistortionNodeRemoveChild$LWS,initDistortionNodeReplaceChild$LWS,initDistortionPerformanceMark$LWS,initDistortionPerformanceMeasure$LWS,initDistortionPerformanceMarkCtor$LWS,initDistortionPromiseAll$LWS,initDistortionPromiseAllSettled$LWS,initDistortionPromiseAny$LWS,initDistortionPromiseCatch$LWS,initDistortionPromiseFinally$LWS,initDistortionPromiseRace$LWS,initDistortionPromiseReject$LWS,initDistortionPromiseResolve$LWS,initDistortionPromiseThen$LWS,initDistortionPromiseTry$LWS,initDistortionPromiseWithResolvers$LWS,initDistortionNotificationCtor$LWS,initDistortionRangeDeleteContents$LWS,initDistortionRangeExtractContents$LWS,initDistortionRangeInsertNode$LWS,initDistortionRangeSelectNode$LWS,initDistortionRangeSelectNodeContents$LWS,initDistortionRangeSetEnd$LWS,initDistortionRangeSetEndAfter$LWS,initDistortionRangeSetEndBefore$LWS,initDistortionRangeSetStart$LWS,initDistortionRangeSetStartAfter$LWS,initDistortionRangeSetStartBefore$LWS,initDistortionRangeSurroundContents$LWS,initDistortionSelectionCollapse$LWS,initDistortionSelectionExtend$LWS,initDistortionSelectionSelectAllChildren$LWS,initDistortionSelectionSetBaseAndExtent$LWS,initDistortionSelectionSetPosition$LWS,initDistortionServiceWorkerContainerProto$LWS,initDistortionSharedWorkerCtor$LWS,initDistortionSharedWorkerProto$LWS,initDistortionStorage$LWS,initDistortionStorageClear$LWS,initDistortionStorageGetItem$LWS,initDistortionStorageKey$LWS,initDistortionStorageLength$LWS,initDistortionStorageRemoveItem$LWS,initDistortionStorageSetItem$LWS,initDistortionSVGAnimateElementFromAttribute$LWS,initDistortionSVGAnimateElementToAttribute$LWS,initDistortionSVGAnimateElementValuesAttribute$LWS,initDistortionSVGElementDatasetGetter$LWS,initDistortionSVGElementStyleGetter$LWS,initDistortionSVGSetElementToAttribute$LWS,initDistortionSVGUseElementHrefAttribute$LWS,initDistortionSVGUseElementXlinkHrefAttribute$LWS,initDistortionTrustedTypePolicyFactoryCreatePolicy$LWS,initDistortionWindowFetch$LWS,initDistortionWindowFetchLater$LWS,initDistortionWindowFramesGetter$LWS,initDistortionWindowGetComputedStyle$LWS,initDistortionWindowLengthGetter$LWS,initDistortionWindowOpen$LWS,initDistortionWindowPostMessage$LWS,initDistortionWindowStructuredClone$LWS,initDistortionWorkerCtor$LWS,initDistortionWorkerProto$LWS,initDistortionXMLHttpRequestOpen$LWS],internalKeyedDistortionFactoryInitializers$LWS=[initDistortionAttrValueSetter$LWS,initDistortionAuraUtilGlobalEval$LWS,initDistortionCacheStorageDelete$LWS,initDistortionCacheStorageHas$LWS,initDistortionCacheStorageKeys$LWS,initDistortionCacheStorageMatch$LWS,initDistortionCacheStorageOpen$LWS,initDistortionCookieStoreDelete$LWS,initDistortionCookieStoreGet$LWS,initDistortionCookieStoreGetAll$LWS,initDistortionCookieStoreOnChange$LWS,initDistortionCookieStoreSet$LWS,initDistortionCustomElementRegistryDefine$LWS,initDistortionCustomElementRegistryGet$LWS,initDistortionCustomElementRegistryUpgrade$LWS,initDistortionCustomElementRegistryWhenDefined$LWS,initDistortionDocumentCookieGetter$LWS,initDistortionDocumentCookieSetter$LWS,initDistortionDocumentCreateElement$LWS,initDistortionDocumentCreateElementNS$LWS,initDistortionDocumentExecCommand$LWS,initDistortionDocumentReplaceChildren$LWS,initDistortionDOMParserParseFromString$LWS,initDistortionElementAttachShadow$LWS,initDistortionElementInnerHTMLSetter$LWS,initDistortionElementInsertAdjacentHTML$LWS,initDistortionElementOuterHTMLSetter$LWS,initDistortionElementGetAttribute$LWS,initDistortionElementGetAttributeNode$LWS,initDistortionElementGetAttributeNodeNS$LWS,initDistortionElementGetAttributeNS$LWS,initDistortionElementSetAttribute$LWS,initDistortionElementSetAttributeNode$LWS,initDistortionElementSetAttributeNodeNS$LWS,initDistortionElementSetAttributeNS$LWS,initDistortionElementSetHTML$LWS,initDistortionElementSetHTMLUnsafe$LWS,initDistortionElementShadowRootGetter$LWS,initDistortionElementToggleAttribute$LWS,initDistortionEval$LWS,initDistortionEventComposedPath$LWS,initDistortionEventPathGetter$LWS,initDistortionEventTargetAddEventListener$LWS,initDistortionHTMLAnchorElementHrefSetter$LWS,initDistortionHTMLBaseElementHrefSetter$LWS,initDistortionHTMLBodyElementOnrejectionhandled$LWS,initDistortionHTMLBodyElementOnstorage$LWS,initDistortionHTMLBodyElementOnunhandledrejection$LWS,initDistortionHTMLElementCtor$LWS,initDistortionHTMLElementOnsecuritypolicyviolation$LWS,initDistortionHTMLFormElementActionSetter$LWS,initDistortionHTMLFrameSetElementOnrejectionhandled$LWS,initDistortionHTMLFrameSetElementOnstorage$LWS,initDistortionHTMLFrameSetElementOnunhandledrejection$LWS,initDistortionHTMLScriptElementSrcSetter$LWS,initDistortionHTMLScriptElementTextSetter$LWS,initDistortionIDBFactoryDatabases$LWS,initDistortionIDBFactoryDeleteDatabase$LWS,initDistortionIDBFactoryOpen$LWS,initDistortionMathMLElementOnsecuritypolicyviolation$LWS,initDistortionNamedNodeMapSetNamedItem$LWS,initDistortionNamedNodeMapSetNamedItemNS$LWS,initDistortionNodeValueSetter$LWS,initDistortionNodeTextContentGetter$LWS,initDistortionNodeTextContentSetter$LWS,initDistortionRangeCreateContextualFragment$LWS,initDistortionShadowRootInnerHTMLSetter$LWS,initDistortionShadowRootSetHTMLUnsafe$LWS,initDistortionLocalStorage$LWS,initDistortionSessionStorage$LWS,initDistortionSVGAnimateElementAttributeNameAttribute$LWS,initDistortionSVGScriptElementHrefGetter$LWS,initDistortionSVGScriptElementHrefSetter$LWS,initDistortionSVGSetElementAttributeNameAttribute$LWS,initDistortionSVGElementOnsecuritypolicyviolation$LWS,initDistortionURLCreateObjectURL$LWS,initDistortionWebAssemblyInstanceExportsGetter$LWS,initDistortionWebAssemblyInstantiate$LWS,initDistortionWebAssemblyInstantiateStreaming$LWS,initDistortionWindowOnrejectionhandled$LWS,initDistortionWindowOnsecuritypolicyviolation$LWS,initDistortionWindowOnstorage$LWS,initDistortionWindowOnunhandledrejection$LWS,initDistortionWindowSetInterval$LWS,initDistortionWindowSetTimeout$LWS,initDistortionXMLHttpRequestResponseGetter$LWS,initDistortionXMLHttpRequestResponseXMLGetter$LWS],externalDistortionFactoryInitializers$LWS=shared$LWS.ArrayConcat(internalDistortionFactoryInitializers$LWS,[initDistortionElementAfter$LWS,initDistortionElementAppend$LWS,initDistortionElementBefore$LWS,initDistortionElementInsertAdjacentElement$LWS,initDistortionElementPrepend$LWS,initDistortionNodeInsertBefore$LWS]),externalKeyedDistortionFactoryInitializers$LWS=internalKeyedDistortionFactoryInitializers$LWS,distortionFactoryInitializerToggleSwitches$LWS=shared$LWS.toSafeMap(new shared$LWS.MapCtor([[initDistortionCacheStorageDelete$LWS,"caches"],[initDistortionCacheStorageHas$LWS,"caches"],[initDistortionCacheStorageKeys$LWS,"caches"],[initDistortionCacheStorageMatch$LWS,"caches"],[initDistortionCacheStorageOpen$LWS,"caches"],[initDistortionCookieStoreDelete$LWS,"cookieStore"],[initDistortionCookieStoreGet$LWS,"cookieStore"],[initDistortionCookieStoreGetAll$LWS,"cookieStore"],[initDistortionCookieStoreOnChange$LWS,"cookieStore"],[initDistortionCookieStoreSet$LWS,"cookieStore"],[initDistortionCSSStyleRuleStyleGetter$LWS,"style"],[initDistortionCustomElementRegistryDefine$LWS,"customElements"],[initDistortionCustomElementRegistryGet$LWS,"customElements"],[initDistortionCustomElementRegistryUpgrade$LWS,"customElements"],[initDistortionCustomElementRegistryWhenDefined$LWS,"customElements"],[initDistortionDocumentCookieGetter$LWS,"documentCookie"],[initDistortionDocumentCookieSetter$LWS,"documentCookie"],[initDistortionDocumentDomainSetter$LWS,"documentDomain"],[initDistortionDocumentExecCommand$LWS,"documentExecCommand"],[initDistortionDOMParserParseFromString$LWS,"domParserParseFromString"],[initDistortionElementAfter$LWS,"element"],[initDistortionElementAppend$LWS,"element"],[initDistortionElementAttributesGetter$LWS,"attributes"],[initDistortionElementBefore$LWS,"element"],[initDistortionElementGetInnerHTML$LWS,"innerHTML"],[initDistortionElementInnerHTMLSetter$LWS,"innerHTML"],[initDistortionElementInsertAdjacentElement$LWS,"element"],[initDistortionElementInsertAdjacentHTML$LWS,"element"],[initDistortionElementOuterHTMLSetter$LWS,"element"],[initDistortionElementPrepend$LWS,"element"],[initDistortionElementRemove$LWS,"element"],[initDistortionElementReplaceChildren$LWS,"element"],[initDistortionElementReplaceWith$LWS,"element"],[initDistortionElementGetAttribute$LWS,"attributes"],[initDistortionElementGetAttributeNode$LWS,"attributes"],[initDistortionElementGetAttributeNodeNS$LWS,"attributes"],[initDistortionElementGetAttributeNS$LWS,"attributes"],[initDistortionElementSetAttribute$LWS,"attributes"],[initDistortionElementSetAttributeNode$LWS,"attributes"],[initDistortionElementSetAttributeNodeNS$LWS,"attributes"],[initDistortionElementSetAttributeNS$LWS,"attributes"],[initDistortionElementSetHTML$LWS,"element"],[initDistortionElementToggleAttribute$LWS,"attributes"],[initDistortionHTMLFormElementActionSetter$LWS,"form"],[initDistortionHistoryPushState$LWS,"history"],[initDistortionHistoryReplaceState$LWS,"history"],[initDistortionHTMLElementDatasetGetter$LWS,"dataset"],[initDistortionHTMLElementStyleGetter$LWS,"style"],[initDistortionHTMLScriptElementInnerTextGetter$LWS,"script"],[initDistortionHTMLScriptElementSrcGetter$LWS,"script"],[initDistortionHTMLScriptElementSrcSetter$LWS,"script"],[initDistortionHTMLScriptElementTextGetter$LWS,"script"],[initDistortionHTMLScriptElementTextSetter$LWS,"script"],[initDistortionIDBFactoryDatabases$LWS,"indexedDB"],[initDistortionIDBFactoryDeleteDatabase$LWS,"indexedDB"],[initDistortionIDBFactoryOpen$LWS,"indexedDB"],[initDistortionIDBObjectStoreAdd$LWS,"indexedDB"],[initDistortionIDBObjectStorePut$LWS,"indexedDB"],[initDistortionLocalStorage$LWS,"storage"],[initDistortionMessagePortPostMessage$LWS,"postMessage"],[initDistortionMutationObserverObserve$LWS,"mutationObserver"],[initDistortionNamedNodeMapSetNamedItem$LWS,"attributes"],[initDistortionNamedNodeMapSetNamedItemNS$LWS,"attributes"],[initDistortionNavigatorSendBeacon$LWS,"navigatorSendBeacon"],[initDistortionNodeInsertBefore$LWS,"node"],[initDistortionNodeRemoveChild$LWS,"node"],[initDistortionNodeReplaceChild$LWS,"node"],[initDistortionNodeTextContentGetter$LWS,"node"],[initDistortionNodeTextContentSetter$LWS,"node"],[initDistortionNodeValueSetter$LWS,"node"],[initDistortionNotificationCtor$LWS,"notification"],[initDistortionPerformanceMark$LWS,"performance"],[initDistortionPerformanceMarkCtor$LWS,"performance"],[initDistortionPerformanceMeasure$LWS,"performance"],[initDistortionRangeCreateContextualFragment$LWS,"range"],[initDistortionRangeDeleteContents$LWS,"range"],[initDistortionRangeExtractContents$LWS,"range"],[initDistortionRangeInsertNode$LWS,"range"],[initDistortionRangeSelectNode$LWS,"range"],[initDistortionRangeSelectNodeContents$LWS,"range"],[initDistortionRangeSetEnd$LWS,"range"],[initDistortionRangeSetEndAfter$LWS,"range"],[initDistortionRangeSetEndBefore$LWS,"range"],[initDistortionRangeSetStart$LWS,"range"],[initDistortionRangeSetStartAfter$LWS,"range"],[initDistortionRangeSetStartBefore$LWS,"range"],[initDistortionRangeSurroundContents$LWS,"range"],[initDistortionSelectionCollapse$LWS,"selection"],[initDistortionSelectionExtend$LWS,"selection"],[initDistortionSelectionSelectAllChildren$LWS,"selection"],[initDistortionSelectionSetBaseAndExtent$LWS,"selection"],[initDistortionSelectionSetPosition$LWS,"selection"],[initDistortionSessionStorage$LWS,"storage"],[initDistortionShadowRootInnerHTMLSetter$LWS,"innerHTML"],[initDistortionStorage$LWS,"storage"],[initDistortionStorageClear$LWS,"storage"],[initDistortionStorageGetItem$LWS,"storage"],[initDistortionStorageKey$LWS,"storage"],[initDistortionStorageLength$LWS,"storage"],[initDistortionStorageRemoveItem$LWS,"storage"],[initDistortionStorageSetItem$LWS,"storage"],[initDistortionSVGElementDatasetGetter$LWS,"dataset"],[initDistortionSVGElementStyleGetter$LWS,"style"],[initDistortionSVGScriptElementHrefGetter$LWS,"script"],[initDistortionSVGScriptElementHrefSetter$LWS,"script"],[initDistortionWindowFetch$LWS,"windowFetch"],[initDistortionWindowFetchLater$LWS,"windowFetchLater"],[initDistortionWindowFramesGetter$LWS,"windowFrames"],[initDistortionWindowGetComputedStyle$LWS,"style"],[initDistortionWindowLengthGetter$LWS,"windowFrames"],[initDistortionWindowPostMessage$LWS,"postMessage"],[initDistortionWindowSetInterval$LWS,"setInterval"],[initDistortionWindowSetTimeout$LWS,"setTimeout"],[initDistortionXMLHttpRequestResponseGetter$LWS,"xhr"],[initDistortionXMLHttpRequestResponseXMLGetter$LWS,"xhr"]])),DocumentBlockedProperties$LWS=["parseHTMLUnsafe"],DocumentProtoBlockedProperties$LWS=["createProcessingInstruction","exitFullscreen","fullscreen","fullscreenElement","fullscreenEnabled","mozCancelFullScreen","mozFullScreen","mozFullScreenElement","mozFullScreenEnabled","onfullscreenchange","onfullscreenerror","onmozfullscreenchange","onmozfullscreenerror","onrejectionhandled","onunhandledrejection","parseHTMLUnsafe","releaseCapture","releaseEvents","requestStorageAccess","webkitFullScreenKeyboardInputAllowed","write","writeln"],ElementProtoBlockedProperties$LWS=["mozRequestFullScreen","onfullscreenchange","onfullscreenerror","requestFullscreen","webkitRequestFullScreen","webkitRequestFullscreen"],EventProtoBlockedProperties$LWS=["originalTarget","explicitOriginalTarget"],HTMLElementBlockedAttributes$LWS=["nonce"],HTMLElementProtoBlockedProperties$LWS=["nonce","onrejectionhandled","onunhandledrejection"],HTMLEmbedElementProtoBlockedProperties$LWS=["getSVGDocument"],HTMLIFrameElementBlockedAttributes$LWS=["srcdoc"],HTMLIFrameElementProtoBlockedProperties$LWS=["getSVGDocument","srcdoc"],HTMLObjectElementProtoBlockedProperties$LWS=["getSVGDocument"],HTMLScriptElementBlockedAttributes$LWS=["nonce"],HTMLScriptElementProtoBlockedProperties$LWS=["nonce"],SVGElementBlockedAttributes$LWS=["nonce"],SVGElementProtoBlockedProperties$LWS=["nonce"],UIEventProtoBlockedProperties$LWS=["rangeParent"],WindowBlockedProperties$LWS=["find","requestFileSystem","webkitRequestFileSystem"],XSLTProcessorProtoBlockedProperties$LWS=["transformToDocument","transformToFragment"];exports.DataTransferProtoBlockedProperties=DataTransferProtoBlockedProperties$LWS,exports.DocumentBlockedProperties=DocumentBlockedProperties$LWS,exports.DocumentProtoBlockedProperties=DocumentProtoBlockedProperties$LWS,exports.ElementProtoBlockedProperties=ElementProtoBlockedProperties$LWS,exports.EventProtoBlockedProperties=EventProtoBlockedProperties$LWS,exports.HTMLElementBlockedAttributes=HTMLElementBlockedAttributes$LWS,exports.HTMLElementProtoBlockedProperties=HTMLElementProtoBlockedProperties$LWS,exports.HTMLEmbedElementProtoBlockedProperties=HTMLEmbedElementProtoBlockedProperties$LWS,exports.HTMLIFrameElementBlockedAttributes=HTMLIFrameElementBlockedAttributes$LWS,exports.HTMLIFrameElementProtoBlockedProperties=HTMLIFrameElementProtoBlockedProperties$LWS,exports.HTMLObjectElementProtoBlockedProperties=HTMLObjectElementProtoBlockedProperties$LWS,exports.HTMLScriptElementBlockedAttributes=HTMLScriptElementBlockedAttributes$LWS,exports.HTMLScriptElementProtoBlockedProperties=HTMLScriptElementProtoBlockedProperties$LWS,exports.SVGElementBlockedAttributes=SVGElementBlockedAttributes$LWS,exports.SVGElementProtoBlockedProperties=SVGElementProtoBlockedProperties$LWS,exports.UIEventProtoBlockedProperties=UIEventProtoBlockedProperties$LWS,exports.WindowBlockedProperties=WindowBlockedProperties$LWS,exports.XSLTProcessorProtoBlockedProperties=XSLTProcessorProtoBlockedProperties$LWS,exports.addBlockedAttributeDistortionFactoryInitializers=addBlockedAttributeDistortionFactoryInitializers$LWS,exports.addBlockedPropertyDistortionFactoryInitializers=addBlockedPropertyDistortionFactoryInitializers$LWS,exports.distortionFactoryInitializerToggleSwitches=distortionFactoryInitializerToggleSwitches$LWS,exports.externalDistortionFactoryInitializers=externalDistortionFactoryInitializers$LWS,exports.externalKeyedDistortionFactoryInitializers=externalKeyedDistortionFactoryInitializers$LWS,exports.finalizeAttributeDistortions=finalizeAttributeDistortions$LWS,exports.initDistortionWindowPostMessage=initDistortionWindowPostMessage$LWS,exports.internalDistortionFactoryInitializers=internalDistortionFactoryInitializers$LWS,exports.internalKeyedDistortionFactoryInitializers=internalKeyedDistortionFactoryInitializers$LWS,exports.patchGlobalObject=patchGlobalObject$LWS,exports.unpatchGlobalObject=unpatchGlobalObject$LWS;
/*! version: 0.27.3 */
//# sourceMappingURL=/sm/e6449102eb04f776e4445646a28ebec2b467f5a5f8ab82756dee9526071326c7.map