function(){"use strict";var AtomExport=(()=>{var A=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var P=(n,t)=>{for(var e in t)A(n,e,{get:t[e],enumerable:!0})},V=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of h(t))!b.call(n,o)&&o!==e&&A(n,o,{get:()=>t[o],enumerable:!(r=y(t,o))||r.enumerable});return n};var W=n=>V(A({},"__esModule",{value:!0}),n);var z={};P(z,{default:()=>k});var x={15:"element not selectable",11:"element not visible",31:"unsupported operation",30:"unsupported operation",24:"invalid cookie domain",29:"invalid coordinates",12:"invalid element state",32:"invalid selector",51:"invalid selector",52:"invalid selector",17:"javascript error",405:"unknown method",34:"move target out of bounds",27:"no such alert",7:"no such element",8:"no such frame",23:"no such window",28:"script timeout",33:"session not created",10:"stale element reference",21:"timeout",25:"unable to set cookie",26:"unexpected alert open",13:"unknown error",9:"unknown command"};function I(n){return x[n]??"unknown error"}var l=new WeakSet;function D(n){return typeof n=="object"&&n!==null&&l.has(n)}var c=class extends Error{code;state;constructor(t,e=""){super(e),l.add(this),this.code=t,this.state=I(t);let r=this.state.replace(/(^|\s+)[a-z]/g,s=>s.toUpperCase().trimStart()).replace(/\s+/g,"");this.name=r.endsWith("Error")?r:`${r}Error`;let o=new Error(this.message);o.name=this.name,this.stack=o.stack||""}};var S="ELEMENT",d="element-6066-11e4-a52e-4f735466cecf",L="WINDOW";function j(n){function t(e,r){if(e==null)return null;switch(typeof e){case"string":case"number":case"boolean":return e;case"function":return e.toString();case"object":break;default:return null}let o=e;if(r.includes(o))throw new c(17,"Recursive object cannot be transferred");if("nodeType"in o&&(o.nodeType===Node.ELEMENT_NODE||o.nodeType===Node.DOCUMENT_NODE||o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in o)){let E=M(o);return{[S]:E,[d]:E}}if("document"in o)return{[L]:M(o)};if(Array.isArray(e))return e.map(E=>t(E,r));if(r=[...r,o],H(e))return Array.from(e).map(E=>t(E,r));let s={};for(let E of Object.keys(o))s[E]=t(o[E],r);return s}return t(n,[])}function N(n,t){if(Array.isArray(n))return n.map(e=>N(e,t));if(B(n)){if(typeof n=="function")return n;let e=n;if(S in e)return p(e[S],t);if(d in e)return p(e[d],t);if(L in e)return p(e[L],t);let r={};for(let o of Object.keys(e))r[o]=N(e[o],t);return r}return n}function f(n){return{status:0,value:j(n)}}function _(n){let t=m(n)??13;return{status:t,value:{message:a(n,""),error:I(t)}}}var O="The script threw an error";function m(n){return D(n)?n.code:void 0}function a(n,t){let e="";try{if(n!=null){let r=n.message;if(r!==void 0){let o=m(n)===void 0?String(n.name??""):"";e=String(r),e=o&&o!=="Error"?e?`${o}: ${e}`:o:e}else e=typeof n=="object"?JSON.stringify(n)??"":String(n),e=e==="{}"?"":e}}catch{}return e||t}function T(n,t){return new c(m(n)??17,a(n,t))}var K=":wdc:";function M(n){let t=n.ownerDocument,e=w(t);Object.keys(e).length-1>=J&&G(t||document);let r;for(let o of Object.keys(e))if(e[o]===n){r=o;break}return r||(r=K+e.nextId++,e[r]=n),r}function p(n,t){n=decodeURIComponent(n);let e=t||document,r=w(e);if(!(n in r))throw new c(10,"Element does not exist in cache");let o=r[n];if(!C(e,o))return o;throw delete r[n],"setInterval"in o?new c(23,"Window has been closed."):new c(10,"Element is no longer attached to the DOM")}function B(n){return typeof n=="object"&&n!==null||typeof n=="function"}function H(n){return Array.isArray(n)?!0:typeof n=="object"&&n!==null&&typeof n.length=="number"}var U="$wdc_";function w(n){let t=n||document,e=t[U];return e||(e=t[U]={},e.nextId=Date.now()),e.nextId||(e.nextId=Date.now()),e}var J=200;function C(n,t){if("setInterval"in t)return!!t.closed;let e=t;for(;e;){if(e===n.documentElement)return!1;e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e=e.host),e=e.parentNode}return!0}function G(n){let t=w(n);for(let e of Object.keys(t)){let r=t[e];!r||typeof r!="object"||C(n,r)&&delete t[e]}}var X=3600*1e3,v="The promise returned by the script was rejected",g=["unload","pagehide"];function k(n,t,e,r=window,o){let s=i=>e?JSON.stringify(i):i,E;try{let i=new r.Function(n),R=N(t,r.document);E=i.apply(null,R)}catch(i){return s(_(T(i,O)))}try{if(!$(E))return s(f(E))}catch(i){return s(_(T(i,O)))}let u=E;return(async()=>s(await Y(u,r,o)))()}function $(n){return n!==null&&(typeof n=="object"||typeof n=="function")&&typeof n.then=="function"}function Y(n,t,e){return new Promise(r=>{let o,s=u=>{for(let i of g)t.removeEventListener(i,E,!0);t.clearTimeout(o),r(u)};function E(){s(_(new c(13,"Detected a page unload or pagehide event; the promise returned by the script does not work across page loads.")))}for(let u of g)t.addEventListener(u,E,!0);if(typeof e=="number"){let u=Date.now();o=t.setTimeout(()=>{s(_(new c(28,`Timed out waiting for the promise returned by the script after ${Date.now()-u} ms`)))},Math.min(Math.max(0,e),X))}Promise.resolve(n).then(u=>{let i;try{i=f(u)}catch(R){i=_(T(R,O))}s(i)},u=>s(_(new c(17,a(u,v)))))})}return W(z);})(); return AtomExport.default.apply(null,arguments);}