diff --git a/rammerhead/CHANGELOG.md b/lib/rammerhead/CHANGELOG.md similarity index 100% rename from rammerhead/CHANGELOG.md rename to lib/rammerhead/CHANGELOG.md diff --git a/rammerhead/README.md b/lib/rammerhead/README.md similarity index 100% rename from rammerhead/README.md rename to lib/rammerhead/README.md diff --git a/rammerhead/cache-js/.gitkeep b/lib/rammerhead/cache-js/.gitkeep similarity index 100% rename from rammerhead/cache-js/.gitkeep rename to lib/rammerhead/cache-js/.gitkeep diff --git a/rammerhead/cache-js/02f23d233e9c3ff79a227592a1ef39ed b/lib/rammerhead/cache-js/02f23d233e9c3ff79a227592a1ef39ed similarity index 100% rename from rammerhead/cache-js/02f23d233e9c3ff79a227592a1ef39ed rename to lib/rammerhead/cache-js/02f23d233e9c3ff79a227592a1ef39ed diff --git a/rammerhead/cache-js/39f6dde00bfd3722e6ea929b8c66ba6c b/lib/rammerhead/cache-js/39f6dde00bfd3722e6ea929b8c66ba6c similarity index 100% rename from rammerhead/cache-js/39f6dde00bfd3722e6ea929b8c66ba6c rename to lib/rammerhead/cache-js/39f6dde00bfd3722e6ea929b8c66ba6c diff --git a/rammerhead/cache-js/lru-database.db b/lib/rammerhead/cache-js/lru-database.db similarity index 98% rename from rammerhead/cache-js/lru-database.db rename to lib/rammerhead/cache-js/lru-database.db index d58fbec6..9144cb6f 100644 Binary files a/rammerhead/cache-js/lru-database.db and b/lib/rammerhead/cache-js/lru-database.db differ diff --git a/rammerhead/holy-config.js b/lib/rammerhead/holy-config.js similarity index 100% rename from rammerhead/holy-config.js rename to lib/rammerhead/holy-config.js diff --git a/rammerhead/package.json b/lib/rammerhead/package.json similarity index 100% rename from rammerhead/package.json rename to lib/rammerhead/package.json diff --git a/rammerhead/sessions/.gitkeep b/lib/rammerhead/sessions/.gitkeep similarity index 100% rename from rammerhead/sessions/.gitkeep rename to lib/rammerhead/sessions/.gitkeep diff --git a/rammerhead/sessions/c09a953eca774fceb5f8315dfa57531f.rhfsession b/lib/rammerhead/sessions/c09a953eca774fceb5f8315dfa57531f.rhfsession similarity index 100% rename from rammerhead/sessions/c09a953eca774fceb5f8315dfa57531f.rhfsession rename to lib/rammerhead/sessions/c09a953eca774fceb5f8315dfa57531f.rhfsession diff --git a/rammerhead/src/build.js b/lib/rammerhead/src/build.js similarity index 100% rename from rammerhead/src/build.js rename to lib/rammerhead/src/build.js diff --git a/rammerhead/src/classes/RammerheadLogging.js b/lib/rammerhead/src/classes/RammerheadLogging.js similarity index 100% rename from rammerhead/src/classes/RammerheadLogging.js rename to lib/rammerhead/src/classes/RammerheadLogging.js diff --git a/rammerhead/src/classes/RammerheadMemoryStore.js b/lib/rammerhead/src/classes/RammerheadMemoryStore.js similarity index 100% rename from rammerhead/src/classes/RammerheadMemoryStore.js rename to lib/rammerhead/src/classes/RammerheadMemoryStore.js diff --git a/rammerhead/src/classes/RammerheadProxy.js b/lib/rammerhead/src/classes/RammerheadProxy.js similarity index 100% rename from rammerhead/src/classes/RammerheadProxy.js rename to lib/rammerhead/src/classes/RammerheadProxy.js diff --git a/rammerhead/src/classes/RammerheadSession.js b/lib/rammerhead/src/classes/RammerheadSession.js similarity index 100% rename from rammerhead/src/classes/RammerheadSession.js rename to lib/rammerhead/src/classes/RammerheadSession.js diff --git a/rammerhead/src/classes/RammerheadSessionAbstractStore.js b/lib/rammerhead/src/classes/RammerheadSessionAbstractStore.js similarity index 100% rename from rammerhead/src/classes/RammerheadSessionAbstractStore.js rename to lib/rammerhead/src/classes/RammerheadSessionAbstractStore.js diff --git a/rammerhead/src/classes/RammerheadSessionFileCache.js b/lib/rammerhead/src/classes/RammerheadSessionFileCache.js similarity index 100% rename from rammerhead/src/classes/RammerheadSessionFileCache.js rename to lib/rammerhead/src/classes/RammerheadSessionFileCache.js diff --git a/rammerhead/src/client/hammerhead.js b/lib/rammerhead/src/client/hammerhead.js similarity index 100% rename from rammerhead/src/client/hammerhead.js rename to lib/rammerhead/src/client/hammerhead.js diff --git a/lib/rammerhead/src/client/hammerhead.min.js b/lib/rammerhead/src/client/hammerhead.min.js new file mode 100644 index 00000000..72c39fde --- /dev/null +++ b/lib/rammerhead/src/client/hammerhead.min.js @@ -0,0 +1 @@ +window["%is-hammerhead%"]=!0,function R(){var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function H(e){var t={exports:{}};return e(t,t.exports),t.exports}function B(){}var F,U="pending",V="settled",G="fulfilled",W="rejected",q=void 0!==j&&void 0!==j.process&&"function"==typeof j.process.emit,K="undefined"==typeof setImmediate?setTimeout:setImmediate,z=[];function X(){for(var e=0;et[1][r])return 1;if(t[0][r]!==t[1][r])return-1;if(0===r)return 0}}function i(e,t,r){var n,o=a,i=("string"==typeof t&&(r=t,t=void 0),void 0===t&&(t=!1),""+(o=r?s(r):o).version);for(n in e)if(e.hasOwnProperty(n)&&o[n]){if("string"!=typeof e[n])throw new Error("Browser version in the minVersion map should be a string: "+n+": "+String(e));return l([i,e[n]])<0}return t}return a.test=function(e){for(var t=0;t=t[r="scrollHeight"]?t[o]:Math.max(e.body[r],t[r],e.body[n],t[n])):(o=e.offsetHeight,(o=(o=(o-=xr(a(e,"paddingTop")))-xr(a(e,"paddingBottom")))-xr(a(e,"borderTopWidth")))-xr(a(e,"borderBottomWidth"))):null}function Or(e){var t;return e?uo(e)?e.document.documentElement.clientWidth:ho(e)?e.documentElement.clientWidth:(t=e.offsetWidth,(t-=xr(a(e,"borderLeftWidth")))-xr(a(e,"borderRightWidth"))):null}function Lr(e){var t=kr(e),r=Pr(e),r=e.scrollHeight-(r.top+r.bottom),n=vn(e).length;return 1===t?Nr(e):S&&n=t[r="scrollWidth"]?t[o]:Math.max(e.body[r],t[r],e.body[n],t[n])):(o=e.offsetWidth,(o=(o=(o-=xr(a(e,"paddingLeft")))-xr(a(e,"paddingRight")))-xr(a(e,"borderLeftWidth")))-xr(a(e,"borderRightWidth"))):null},getHeight:Nr,getInnerWidth:Or,getInnerHeight:function(e){var t;return e?uo(e)?e.document.documentElement.clientHeight:ho(e)?e.documentElement.clientHeight:(t=e.offsetHeight,(t-=xr(a(e,"borderTopWidth")))-xr(a(e,"borderBottomWidth"))):null},getOptionHeight:Lr,getSelectElementSize:kr,isVisibleChild:Dr,getScrollLeft:Mr,getScrollTop:Rr,setScrollLeft:jr,setScrollTop:Hr,getOffsetParent:Br,getOffset:Fr,isElementVisible:Ur,isElementInInvisibleIframe:Vr});function Wr(e){return Tn(e)?b.elementQuerySelectorAll:Po(e)||Io(e)?b.documentFragmentQuerySelectorAll:b.querySelectorAll}var qr=0,Kr=["[object HTMLMapElement]","[object HTMLAreaElement]"],zr=(n="undefined"==typeof window)?"":i(window),Xr=/^\[object .*?Document]$/i,$r=/^\[object .*?ProcessingInstruction]$/i,Yr=/^\[object SVG\w+?Element]$/i,Qr=/^\[object HTML.*?Element]$/i,Jr=/^\[object ArrayBuffer]$/i,Zr=/^\[object DataView]$/i,en=n?"":i(b.createElement.call(document,"td")),tn=n?-1:Node.ELEMENT_NODE,rn=/^(select|option|applet|area|audio|canvas|datalist|keygen|map|meter|object|progress|source|track|video|img)$/,nn=/^(input|textarea|button)$/,on=/^(script|style)$/i,sn=/^(email|number|password|search|tel|text|url)$/,an=/^(number|email)$/,ln=/^(color|date|datetime-local|month|week)$/;function cn(e){return e.offsetWidth<=0&&e.offsetHeight<=0}function i(e){return mr?e&&"object"==typeof e?b.objectToString.call(b.objectGetPrototypeOf(e)):"":b.objectToString.call(e)}function pn(e){for(var e=e||document,t=b.documentActiveElementGetter.call(e),r=Tn(t)?t:e.body;r&&r.shadowRoot;){var n=r.shadowRoot.activeElement;if(!n)break;r=n}return r}function un(e,t){return vn(e).indexOf(t)}function hn(e){return fn(e[_.processedContext])}function dn(e){var t=null;try{t=b.contentDocumentGetter.call(e).location.href}catch(e){t=null}var e=b.getAttribute.call(e,"src"+s.storedAttrPostfix)||b.getAttribute.call(e,"src")||b.iframeSrcGetter.call(e),r=t&&ir(t)&&x(t),n=e&&ir(e)&&x(e);return{documentLocation:r?r.destUrl:t,srcLocation:n?n.destUrl:e}}function fn(e){try{return e.frameElement}catch(e){return null}}function mn(e){var t=Fo(e,"map"),t='[usemap="#'+b.getAttribute.call(t,"name")+'"]';return b.querySelector.call(_n(e),t)}function gn(){var e,t;return qr||((e=b.createElement.call(document,"div")).style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.width="100px",b.appendChild.call(document.body,e),t=e.offsetWidth-e.clientWidth,qr=t,b.nodeParentNodeGetter.call(e).removeChild(e)),qr}function yn(e){return Fo(b.nodeParentNodeGetter.call(e),"select")}function vn(e){for(var t=b.elementQuerySelectorAll.call(e,"optgroup, option"),r=[],n=b.nodeListLengthGetter.call(t),o=0;o{try{return e["%is-hammerhead%"]}catch(e){return!0}})()==!!(()=>{try{return t["%is-hammerhead%"]}catch(e){return!0}})()))}catch(e){return!0}}function Cn(e){return e!==e.top}function Tn(e){return e instanceof b.elementClass||e&&Qr.test(i(e))&&xo(e)&&e.tagName}function An(e){return e&&"string"==typeof e.tagName?e.tagName.toLowerCase():""}var Pn="hammerhead|element|shadow-root-parent";function In(e){for(var t=b.nodeParentNodeGetter.call(e);t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t=b.nodeParentNodeGetter.call(t);return t&&t[Pn]}function Nn(e){e=b.nodeParentNodeGetter.call(e);return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e[Pn]?e[Pn]:e}function On(e,t){var t=t||document;return!!t.documentElement&&(!!t.documentElement.contains(e)||!!(t=In(e))&&On(t))}function Ln(e,t){t=t||_n(e);return window.document!==t}function kn(e){return e===s.focusPseudoClass||e===s.hoverPseudoClass||-1!==e.indexOf(s.storedAttrPostfix)}function Dn(e){return"[object HTMLIFrameElement]"===i(e)}function Mn(e){return"[object HTMLFrameElement]"===i(e)}function Rn(e){var t=dn(e),r=t.srcLocation,t=t.documentLocation;return!(null===t||!b.contentWindowGetter.call(e)[_.documentWasCleaned]&&((t=ir(t))||b.getAttribute.call(e,"src"))&&(r&&ir(r)||t))}function jn(e){return b.iframeSrcdocGetter&&b.hasAttribute.call(e,"srcdoc")}function Hn(e){return"[object HTMLImageElement]"===i(e)}function Bn(e){return"[object HTMLInputElement]"===i(e)}function Fn(e){return"[object HTMLTitleElement]"===i(e)}function Un(e){return"[object HTMLButtonElement]"===i(e)}function Vn(e){return"[object HTMLFieldSetElement]"===i(e)}function Gn(e){return"[object HTMLOptGroupElement]"===i(e)}function Wn(e){return"[object HTMLHtmlElement]"===i(e)}function qn(e){return"[object HTMLBodyElement]"===i(e)}function Kn(e){var e=b.nodeParentNodeGetter.call(e);return"html"===An(e)&&"#document"===(null==(e=b.nodeParentNodeGetter.call(e))?void 0:e.nodeName)}function zn(e){e=i(e);return"[object HTMLHeadElement]"===e||"[object HTMLBodyElement]"===e}function Xn(e){e=i(e);return"[object HTMLHeadElement]"===e||"[object HTMLBodyElement]"===e||"[object HTMLHtmlElement]"===e}function $n(e){return"[object HTMLBaseElement]"===i(e)}function Yn(e){return"[object HTMLScriptElement]"===i(e)}function Qn(e){return"[object HTMLStyleElement]"===i(e)}function Jn(e){return"[object HTMLLabelElement]"===i(e)}function Zn(e){return"[object HTMLTextAreaElement]"===i(e)}function eo(e){return"[object HTMLOptionElement]"===i(e)}function to(e){return"[object HTMLSelectElement]"===i(e)}function ro(e){return"[object HTMLFormElement]"===i(e)}function no(e){return Bn(e)&&"file"===e.type.toLowerCase()}function oo(e){return Bn(e)&&ln.test(e.type.toLowerCase())}function io(e){return qn(e)&&Kn(e)&&b.htmlCollectionLengthGetter.call(b.elementChildrenGetter.call(e))}function so(e){return-1!==Kr.indexOf(i(e))}function ao(e){return!(To(e)||Ao(e)||on.test(e.nodeName))}function lo(e){e=b.getAttribute.call(e,"tabIndex"),e=parseInt(e,10);return isNaN(e)?null:e}function co(e){return Bo(e,":disabled")}function po(e){var t,r,n,o,i;return!(!e||(t=lo(e),r=co(e),n="hidden"===a(e,"visibility"),o="none"===a(e,"display"),i=ke?cn(e)&&!eo(e):cn(e),r)||n||o||i||eo(e)&&S)&&(No(e)?null!==t||Bo(e,"a[href]"):!(!Lo(e)||!S)||Bo(e,'input, select, textarea, button, body, iframe, [contenteditable="true"], [contenteditable=""], [tabIndex]')||null!==t)}function C(e){return!!e[_.shadowUIElement]}function uo(t){try{if(!(t=(S||Ne)&&t&&t===t.window?t.window:t)||!t.toString||zr!==i(t))return!1}catch(e){try{return!!t.top}catch(e){return!1}}try{b.winLocalStorageGetter.call(t)}catch(e){return!1}return!0}function ho(e){if(e instanceof b.documentClass)return!0;try{return e&&Xr.test(i(e))}catch(e){return!1}}function fo(e){return e&&"[object Blob]"===i(e)}function mo(e){if(e)if(S||Le||Oe){var t=e,r=null;try{r=t.__proto__}catch(e){var n=Le||Oe;return t.replace&&(n||!!t.assign)}return!!r&&("[object LocationPrototype]"===(n=b.objectToString.call(r))||"[object Location]"===n)}else return e instanceof b.locationClass||"[object Location]"===b.objectToString.call(e);return!1}function go(e){return e instanceof b.svgElementClass||e&&Yr.test(i(e))}function yo(e){return!!Fo(e,"svg")}function vo(e){return!!(b.Headers&&e instanceof b.Headers)||e&&"[object Headers]"===i(e)}function Eo(e){return!!(b.Request&&e instanceof b.Request)||e&&"[object Request]"===i(e)}function So(e){return e.readOnly||"readonly"===e.getAttribute("readonly")}function _o(e){var t=e.getAttribute("type");return Bn(e)&&t?sn.test(t):sn.test(e.type)}function bo(e){return _o(e)||Zn(e)}function wo(e){return bo(e)&&!So(e)}function xo(e){return e&&e.nodeType===tn}function Co(e){return"[object Text]"===i(e)}function To(e){return $r.test(i(e))}function Ao(e){return"[object Comment]"===i(e)}function Po(e){return"[object DocumentFragment]"===i(e)}function Io(e){return"[object ShadowRoot]"===i(e)}function No(e){return"[object HTMLAnchorElement]"===i(e)}function Oo(e){return"[object HTMLTableElement]"===i(e)}function Lo(e){return i(e)===en}function ko(e){return"[object WebSocket]"===i(e)}function Do(e){return"[object MessageEvent]"===i(e)}function Mo(e){return"[object PerformanceNavigationTiming]"===i(e)}function Ro(e){return e instanceof b.ArrayBuffer||e&&Jr.test(i(e))}function jo(e){return e&&b.arrayBufferIsView(e)}function Ho(e){return e instanceof b.DataView||e&&Zr.test(i(e))}function Bo(e,t){return!!xo(e)&&b.matches.call(e,t)}function Fo(e,t){if(xo(e)){if(b.closest)return b.closest.call(e,t);for(var r=e,n=t;r;){if(Bo(r,n))return r;r=b.nodeParentNodeGetter.call(r)}}return null}function Uo(e,t){if(e)for(var r=0,n=t.split(/\s+/);r{try{return t.top["%hammerhead%"]}catch(e){return!0}})()||t===t.top)return t;if(r===t.top||xn(t,r))return r;try{n=r.frameElement}catch(e){n=null}return null!==n&&Rn(n)?e(r):r},getScrollbarSize:gn,getSelectParent:yn,getSelectVisibleChildren:vn,getTopSameDomainWindow:En,find:Sn,findDocument:_n,isContentEditableElement:bn,isCrossDomainIframe:wn,isCrossDomainWindows:xn,isIframeWindow:Cn,isDomElement:Tn,getTagName:An,SHADOW_ROOT_PARENT_ELEMENT:Pn,getNodeShadowRootParent:In,getParentExceptShadowRoot:Nn,isElementInDocument:On,isElementInIframe:Ln,isHammerheadAttr:kn,isIframeElement:Dn,isFrameElement:Mn,isIframeWithoutSrc:Rn,isIframeWithSrcdoc:jn,isImgElement:Hn,isInputElement:Bn,isTitleElement:Fn,isButtonElement:Un,isFieldSetElement:Vn,isOptGroupElement:Gn,isHtmlElement:Wn,isBodyElement:qn,isPageBody:Kn,isHeadElement:function(e){return"[object HTMLHeadElement]"===i(e)},isHeadOrBodyElement:zn,isHeadOrBodyOrHtmlElement:Xn,isBaseElement:$n,isScriptElement:Yn,isStyleElement:Qn,isLabelElement:Jn,isTextAreaElement:Zn,isOptionElement:eo,isRadioButtonElement:function(e){return Bn(e)&&"radio"===e.type.toLowerCase()},isColorInputElement:function(e){return Bn(e)&&"color"===e.type.toLowerCase()},isCheckboxElement:function(e){return Bn(e)&&"checkbox"===e.type.toLowerCase()},isSelectElement:to,isFormElement:ro,isFileInput:no,isInputWithNativeDialog:oo,isBodyElementWithChildren:io,isMapElement:so,isRenderedNode:ao,getTabIndex:lo,isElementDisabled:co,isElementFocusable:po,isShadowUIElement:C,isWindow:uo,isDocument:ho,isBlob:fo,isLocation:mo,isSVGElement:go,isSVGElementOrChild:yo,isFetchHeaders:vo,isFetchRequest:Eo,isElementReadOnly:So,isTextEditableInput:_o,isTextEditableElement:bo,isTextEditableElementAndEditingAllowed:wo,isElementNode:xo,isTextNode:Co,isProcessingInstructionNode:To,isCommentNode:Ao,isDocumentFragmentNode:Po,isShadowRoot:Io,isAnchorElement:No,isTableElement:Oo,isTableDataCellElement:Lo,isWebSocket:ko,isMessageEvent:Do,isPerformanceNavigationTiming:Mo,isArrayBuffer:Ro,isArrayBufferView:jo,isDataView:Ho,matches:Bo,closest:Fo,addClass:Uo,removeClass:Vo,hasClass:Go,parseDocumentCharset:Wo,getParents:qo,findParent:zo,nodeListToArray:Xo,getFileInputs:$o,getIframes:Yo,getScripts:Qo,isNumberOrEmailInput:Jo,isInputWithoutSelectionProperties:Zo,getAssociatedElement:ei}),t=(e(di,ti=Re),di.prototype.isDeactivated=function(){try{var e;if(this.document.body,this.window[_.hammerhead])return!!(e=fn(this.window))&&!On(e,_n(e))}catch(e){}return!0},di.prototype.attach=function(e,t){this.window=e,this.document=t||e.document},di);function di(){var e=null!==ti&&ti.apply(this,arguments)||this;return e.window=null,e.nativeMethods=b,e.document=null,e}var fi={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportSpecifier:"ImportSpecifier",ImportDeclaration:"ImportDeclaration",ChainExpression:"ChainExpression",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleDeclaration:"ModuleDeclaration",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},T=fi,c={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:3,LogicalAND:4,BitwiseOR:5,BitwiseXOR:6,BitwiseAND:7,Equality:8,Relational:9,BitwiseSHIFT:10,Additive:11,Multiplicative:12,Unary:13,Exponentiation:14,Postfix:14,Await:14,Call:15,New:16,TaggedTemplate:17,OptionalChaining:17,Member:18,Primary:19},mi={"||":c.LogicalOR,"&&":c.LogicalAND,"|":c.BitwiseOR,"^":c.BitwiseXOR,"&":c.BitwiseAND,"==":c.Equality,"!=":c.Equality,"===":c.Equality,"!==":c.Equality,is:c.Equality,isnt:c.Equality,"<":c.Relational,">":c.Relational,"<=":c.Relational,">=":c.Relational,in:c.Relational,instanceof:c.Relational,"<<":c.BitwiseSHIFT,">>":c.BitwiseSHIFT,">>>":c.BitwiseSHIFT,"+":c.Additive,"-":c.Additive,"*":c.Multiplicative,"%":c.Multiplicative,"/":c.Multiplicative,"??":c.Coalesce,"**":c.Exponentiation},gi=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],yi=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");function vi(e){return e<128?97<=e&&e<=122||65<=e&&e<=90||48<=e&&e<=57||36===e||95===e||92===e:(e=String.fromCharCode(e),yi.test(e))}function Ei(e){return 10===e||13===e||8232===e||8233===e}function Si(e){return 32===e||9===e||Ei(e)||11===e||12===e||160===e||5760<=e&&0<=gi.indexOf(e)}function _i(e,t){var r="";for(t|=0;0>>=1,e+=e)1&t&&(r+=e);return r}function bi(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function wi(e){for(var t,r,n,o="",i=0,s=0,a=0,l=e.length;a"),e.expression?(m.js+=m.optSpace,"{"===(r=h(t,u.e4)).charAt(0)&&(r="("+r+")"),m.js+=r):(m.js+=Ci(t),Ui[t.type](t,u.s8))}var Pi=(Pi=Array.isArray)||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u={e1:function(e){return{precedence:c.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e2:function(e){return{precedence:c.LogicalOR,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e3:{precedence:c.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!1},e4:{precedence:c.Assignment,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e5:{precedence:c.Sequence,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e6:function(e){return{precedence:c.New,allowIn:!0,allowCall:!1,allowUnparenthesizedNew:e}},e7:{precedence:c.Unary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e8:{precedence:c.Postfix,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e9:{precedence:void 0,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e10:{precedence:c.Call,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e11:function(e){return{precedence:c.Call,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!1}},e12:{precedence:c.Primary,allowIn:!1,allowCall:!1,allowUnparenthesizedNew:!0},e13:{precedence:c.Primary,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e14:{precedence:c.Sequence,allowIn:!1,allowCall:!0,allowUnparenthesizedNew:!0},e15:function(e){return{precedence:c.Sequence,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!0}},e16:function(e,t){return{precedence:e,allowIn:t,allowCall:!0,allowUnparenthesizedNew:!0}},e17:function(e){return{precedence:c.Call,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e18:function(e){return{precedence:c.Assignment,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e19:{precedence:c.Sequence,allowIn:!0,allowCall:!0,semicolonOptional:!1},e20:{precedence:c.Await,allowCall:!0},s1:function(e,t){return{allowIn:!0,functionBody:!1,directiveContext:e,semicolonOptional:t}},s2:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!0},s3:function(e){return{allowIn:e,functionBody:!1,directiveContext:!1,semicolonOptional:!1}},s4:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:e}},s5:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!0,semicolonOptional:e}},s6:{allowIn:!1,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s7:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s8:{allowIn:!0,functionBody:!0,directiveContext:!1,semicolonOptional:!1}},Ii=/[.eExX]|^0[0-9]+/,Ni=/[0-9]$/;function Oi(e,t){var r=e.operator,n=mi[e.operator],o=n",o),template:new r("template"),invalidTemplate:new r("invalidTemplate"),ellipsis:new r("...",o),backQuote:new r("`",i),dollarBraceL:new r("${",{beforeExpr:!0,startsExpr:!0}),eq:new r("=",{beforeExpr:!0,isAssign:!0}),assign:new r("_=",{beforeExpr:!0,isAssign:!0}),incDec:new r("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new r("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:n("||",1),logicalAND:n("&&",2),bitwiseOR:n("|",3),bitwiseXOR:n("^",4),bitwiseAND:n("&",5),equality:n("==/!=/===/!==",6),relational:n("/<=/>=",7),bitShift:n("<>/>>>",8),plusMin:new r("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:n("%",10),star:n("*",10),slash:n("/",10),starstar:new r("**",{beforeExpr:!0}),coalesce:n("??",1),_break:a("break"),_case:a("case",o),_catch:a("catch"),_continue:a("continue"),_debugger:a("debugger"),_default:a("default",o),_do:a("do",{isLoop:!0,beforeExpr:!0}),_else:a("else",o),_finally:a("finally"),_for:a("for",{isLoop:!0}),_function:a("function",i),_if:a("if"),_return:a("return",o),_switch:a("switch"),_throw:a("throw",o),_try:a("try"),_var:a("var"),_const:a("const"),_while:a("while",{isLoop:!0}),_with:a("with"),_new:a("new",{beforeExpr:!0,startsExpr:!0}),_this:a("this",i),_super:a("super",i),_class:a("class",i),_extends:a("extends",o),_export:a("export"),_import:a("import",i),_null:a("null",i),_true:a("true",i),_false:a("false",i),_in:a("in",{beforeExpr:!0,binop:7}),_instanceof:a("instanceof",{beforeExpr:!0,binop:7}),_typeof:a("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:a("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:a("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})};t.types=o}),l=H(function(e,t){t.__esModule=!0,t.isNewLine=i,t.lineBreakG=t.lineBreak=void 0,t.nextLineBreak=function(e,t,r){void 0===r&&(r=e.length);for(var n=t;n=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Da(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>10),56320+(1023&e)))}function l(e){return 36===e||40<=e&&e<=43||46===e||63===e||91<=e&&e<=94||123<=e&&e<=125}function c(e){return 65<=e&&e<=90||97<=e&&e<=122}function p(e){return c(e)||95===e}function u(e){return 48<=e&&e<=57}function h(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function d(e){return 65<=e&&e<=70?e-65+10:97<=e&&e<=102?e-97+10:e-48}function f(e){return 48<=e&&e<=55}s.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&6<=this.parser.options.ecmaVersion,this.switchN=n&&9<=this.parser.options.ecmaVersion},s.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},s.prototype.at=function(e,t){void 0===t&&(t=!1);var r,n=this.source,o=n.length;return o<=e?-1:(r=n.charCodeAt(e),!(!t&&!this.switchU||r<=55295||57344<=r||o<=e+1)&&56320<=(t=n.charCodeAt(e+1))&&t<=57343?(r<<10)+t-56613888:r)},s.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r,n=this.source,o=n.length;return o<=e?o:(r=n.charCodeAt(e),!t&&!this.switchU||r<=55295||57344<=r||o<=e+1||(t=n.charCodeAt(e+1))<56320||57343>10),56320+(1023&e)))}t.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new r(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},t.getToken=function(){return this.next(),new r(this)},"undefined"!=typeof Symbol&&(t[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===E.types.eof,value:e}}}}),t.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(E.types.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},t.readToken=function(e){return(0,Ta.isIdentifierStart)(e,6<=this.options.ecmaVersion)||92===e?this.readWord():this.getTokenFromCode(e)},t.fullCharCodeAtPos=function(){var e,t=this.input.charCodeAt(this.pos);return t<=55295||56320<=t||(e=this.input.charCodeAt(this.pos+1))<=56319||57344<=e?t:(t<<10)+e-56613888},t.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n,o=t;-1<(n=(0,l.nextLineBreak)(this.input,o,this.pos));)++this.curLine,o=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},t.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(l.lineBreak.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var o=this.input.slice(r,this.pos),i=(++this.pos,this.pos),s=this.readWord1(),i=(this.containsEsc&&this.unexpected(i),this.regexpState||(this.regexpState=new Ya.RegExpValidationState(this))),i=(i.reset(r,o,s),this.validateRegExpFlags(i),this.validateRegExpPattern(i),null);try{i=new RegExp(o,s)}catch(e){}return this.finishToken(E.types.regexp,{pattern:o,flags:s,value:i})},t.readInt=function(e,t,r){for(var n=12<=this.options.ecmaVersion&&void 0===t,o=r&&48===this.input.charCodeAt(this.pos),r=this.pos,i=0,s=0,a=0,l=null==t?1/0:t;a=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t=(t+=this.input.slice(r,this.pos))+this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):((0,l.isNewLine)(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(E.types.string,t)};var n={};t.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==n)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},t.invalidStringToken=function(e,t){if(this.inTemplateElement&&9<=this.options.ecmaVersion)throw n;this.raise(e,t)},t.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==E.types.template&&this.type!==E.types.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(E.types.template,e)):36===r?(this.pos+=2,this.finishToken(E.types.dollarBraceL)):(++this.pos,this.finishToken(E.types.backQuote));if(92===r)e=(e+=this.input.slice(t,this.pos))+this.readEscapedChar(!0),t=this.pos;else if((0,l.isNewLine)(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},t.readInvalidTemplateToken=function(){for(;this.pos(\s)*$/,jl=/(\/\/[^\n]*|\n\s*)-->[^\n]*([\n\s]*)?$/,Hl=/^(\s)*\s*$/,Fl=/^\s*javascript\s*:/i,Ul=/^\s*(application\/(x-)?(ecma|java)script|text\/(javascript(1\.[0-5])?|((x-)?ecma|x-java|js|live)script)|module)\s*$/i,Vl=["animate","animateColor","animateMotion","animateTransform","mpath","set","linearGradient","radialGradient","stop","a","altglyph","color-profile","cursor","feimage","filter","font-face-uri","glyphref","image","mpath","pattern","script","textpath","use","tref"],Gl=["script","link"],Wl=["a","form","area","input","button"],ql="modulepreload",Kl="hammerhead|element-processed",zl="hammerhead|autocomplete-attribute-absence-marker",P=(I.isTagWithTargetAttr=function(e){return!!e&&-1":a)))},I.prototype._processStyleAttr=function(e,t){var r=this.adapter.getAttr(e,"style");r&&this.adapter.setAttr(e,"style",Pl.process(r,t,!1))},I.prototype._processStylesheetElement=function(e,t){var r=this.adapter.getStyleContent(e);r&&t&&this.adapter.needToProcessContent(e)&&(r=Pl.process(r,t,!0),this.adapter.setStyleContent(e,r))},I.prototype._processTargetBlank=function(e,t,r){var n,o;this.allowMultipleWindows||!r.targetAttr||(n=I.getStoredAttrName(r.targetAttr),this.adapter.hasAttr(e,n))||"_blank"===(o=(o=this.adapter.getAttr(e,r.targetAttr))&&o.replace(/\s/g,""))&&(this.adapter.setAttr(e,r.targetAttr,"_top"),this.adapter.setAttr(e,n,o))},I.prototype._processUrlAttrs=function(e,t,r){var n,o,i,s,a,l,c,p,u,h,d,f,m,g;r.urlAttr&&(n=I.getStoredAttrName(r.urlAttr),i=!!(o=this.adapter.getAttr(e,r.urlAttr))&&xt(o),s=this.adapter.hasAttr(e,n),!o&&""!==o||s||!vt(o)&&!i||(a="iframe"===(s=this.adapter.getTagName(e))||"frame"===s,u="script"===s,l="a"===s,c=r.targetAttr?this.adapter.getAttr(e,r.targetAttr):null,this.adapter.needToProcessUrl(s,c||"")&&(c=this.getElementResourceType(e)||"",p="file:"!==(p=yt(o)).protocol&&!p.host,u=u&&this.adapter.getAttr(e,"charset")||"",h="img"===s&&""===o,d=a&&""===o,f=mt(t("/")),m=!1,g=o,a&&!i&&!p&&f&&(m=!this.adapter.sameOriginCheck(f.destUrl,o)),i&&!l||h||d||(g="img"!==s||this.forceProxySrcForImage?t(o,c,u,m):Et(o,t)),this.adapter.setAttr(e,n,o),this.adapter.setAttr(e,r.urlAttr,g))))},I.prototype._processSrcdocAttr=function(e){var t=I.getStoredAttrName("srcdoc"),r=this.adapter.getAttr(e,"srcdoc")||"",n=this.adapter.processSrcdocAttr(r);this.adapter.setAttr(e,t,r),this.adapter.setAttr(e,"srcdoc",n)},I.prototype._processUrlJsAttr=function(e,t,r){r.urlAttr&&I.isJsProtocol(this.adapter.getAttr(e,r.urlAttr)||"")&&this._processJsAttr(e,r.urlAttr,{isJsProtocol:!0,isEventAttr:!1})},I.prototype._processSVGXLinkHrefAttr=function(e,t,r){var n;r.urlAttr&&(n=this.adapter.getAttr(e,r.urlAttr)||"",Qe.test(n))&&(r=I.getStoredAttrName(r.urlAttr),this.adapter.setAttr(e,r,n))},I);function I(e){this.adapter=e,this.HTML_PROCESSING_REQUIRED_EVENT="hammerhead|event|html-processing-required",this.SVG_XLINK_HREF_TAGS=Vl,this.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER=zl,this.PROCESSED_PRELOAD_LINK_CONTENT_TYPE="script",this.MODULE_PRELOAD_LINK_REL=ql,this.forceProxySrcForImage=!1,this.allowMultipleWindows=!1,this.EVENTS=this.adapter.EVENTS,this.elementProcessorPatterns=this._createProcessorPatterns(this.adapter)}var Xl=new WeakMap;function $l(e,t,r,n){e=de(e,r,{value:n});b.objectDefineProperty(t,r,e)}(Ss=function(){}).prototype=DOMStringList.prototype,e(Jl,Yl=Ss),Jl.prototype.item=function(e){return this[e]},Jl.prototype.contains=function(e){"string"!=typeof e&&(e=String(e));for(var t=Xl.get(this)||0,r=0;r{try{return s["%hammerhead%"]}catch(e){return!0}})();$l(i,a,t.toString(),r?"":e.origin),r&&n&&n(s,function(e){return $l(i,o,t,e)}),s=s.parent}(r);return o}var Zl=Number.MAX_SAFE_INTEGER||9007199254740991,ec=Number.MIN_SAFE_INTEGER||-9007199254740991,tc=(rc.prototype.increment=function(){return this._id=this._id===Zl?ec:this._id+1,this._id},Object.defineProperty(rc.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),rc);function rc(){this._id=ec}var nc="hammerhead|command|get-origin",oc="hammerhead|command|origin-received";function ic(e){try{return e.location.toString()}catch(e){}}(_s=function(){}).prototype=Location.prototype,e(lc,sc=_s);var sc,ac=lc;function lc(i,n,o){function e(){var e,t;return Cn(i)&&i.location.href===tt?tt:(e=Bt(),t=kt.getResolverElement(i.document),b.anchorHrefSetter.call(t,e),wt(b.anchorHrefGetter.call(t),e))}function r(e){var t,r,n,o;return e=It(e="string"!=typeof e?String(e):e),P.isJsProtocol(e)?P.processJsAttrValue(e,{isJsProtocol:!0,isEventAttr:!1}):(t=ic(i),n=null,i!==i.parent&&(o=ic(i.parent),r=x(o))&&r.proxy&&(r=r.proxy.port,n=ut(o,e)?r:Qt(r)),o=t&&cr(t,e),w(e,{resourceType:o?u:m,proxyPort:n}))}function t(t,r){f[t]=de(d,t,{getter:function(){var e=fn(i);return(e&&Rn(e)?i.location:Ut())[t]},setter:function(e){var t=nr(i.location.toString(),r,e,m);return i.location=t,o(t),e}})}var s,a,l,c=sc.call(this)||this,p=x(ic(i)),u=p?p.resourceType:"",p=ar(u),h=b.objectHasOwnProperty.call(i.Location.prototype,"href"),d=h?i.Location.prototype:i.location,f={},m=(p.isIframe=p.isIframe||Cn(i),lt({isIframe:p.isIframe,isForm:p.isForm}));f.href=de(d,"href",{getter:e,setter:function(e){var t=r(e);return i.location.href=t,o(t),e}}),f.search=de(d,"search",{getter:function(){return new URL(Bt()).search},setter:function(e){var t=new URL(Bt());return t.search=e,i.location=tr(t.href),e}}),f.origin=de(d,"origin",{getter:function(){return ft(Ut())},setter:function(e){return e}}),f.hash=de(d,"hash",{getter:function(){return new URL(Bt()).hash},setter:function(e){var t=new URL(Bt());return t.hash=e,i.location.hash=new URL(tr(t.href)).hash,e}}),i.location.ancestorOrigins&&(s=b.objectCreate(null),a=new tc,n&&n.on(n.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message;t.cmd===nc?n.sendServiceMsg({id:t.id,cmd:oc,origin:c.origin},e.source):t.cmd===oc&&(e=s[t.id])&&e(t.origin)}),l=new Ql(i,n?function(e,t){var r=a.increment();s[r]=t,n.sendServiceMsg({id:r,cmd:nc},e)}:void 0),f.ancestorOrigins=de(d,"ancestorOrigins",{getter:function(){return l}}));if(t("port",b.anchorPortSetter),t("host",b.anchorHostSetter),t("hostname",b.anchorHostnameSetter),t("pathname",b.anchorPathnameSetter),t("protocol",b.anchorProtocolSetter),f.assign=de(d,"assign",{value:function(e){var e=r(e),t=i.location.assign(e);return o(e),t}}),f.replace=de(d,"replace",{value:function(e){var e=r(e),t=i.location.replace(e);return o(e),t}}),f.reload=de(d,"reload",{value:function(e){e=i.location.reload(e);return o(i.location.toString()),e}}),f.toString=de(d,"toString",{value:e}),!h&&b.objectHasOwnProperty.call(i.location,"valueOf")&&(f.valueOf=de(d,"valueOf",{value:function(){return c}})),b.objectDefineProperties(c,f),!Ae)for(var p=b.objectKeys(Location.prototype),g=c,y=function(e,t){var r;"function"==typeof e[t]&&(r=e[t],e[t]=function(){var e=this===g?i.location:this;return r.apply(e,arguments)})},v=0,E=p;v\n (function () {\n var currentScript = document.currentScript;\n\n /* NOTE: IE11 doesn't support the 'currentScript' property */\n if (!currentScript) {\n var scripts = document.scripts;\n var scriptsLength = scripts.length;\n\n currentScript = scripts[scriptsLength - 1];\n }\n\n currentScript.parentNode.removeChild(currentScript);\n\n "+e+"\n })();\n <\/script>\n ").replace(/\n\s*|\/\*[\S\s]*?\*\//g,"")}var wc,xc={iframeInit:bc('\n var parentHammerhead = null;\n\n if (!window["'+_.hammerhead+'"])\n Object.defineProperty(window, "'+_.documentWasCleaned+'", { value: true, configurable: true });\n\n try {\n parentHammerhead = window.parent["'+_.hammerhead+'"];\n } catch(e) {}\n\n if (parentHammerhead)\n parentHammerhead.sandbox.onIframeDocumentRecreated(window.frameElement);\n '),onWindowRecreation:bc('\n var hammerhead = window["'+_.hammerhead+'"];\n var sandbox = hammerhead && hammerhead.sandbox;\n\n if (!sandbox) {\n try {\n sandbox = window.parent["'+_.hammerhead+'"].sandboxUtils.backup.get(window);\n } catch(e) {}\n }\n\n if (sandbox) {\n Object.defineProperty(window, "'+_.documentWasCleaned+'", { value: true, configurable: true });\n\n sandbox.node.mutation.onDocumentCleaned(window, document);\n\n /* NOTE: B234357 */\n sandbox.node.processNodes(null, document);\n }\n '),onBodyCreated:bc('\n if (window["'+_.hammerhead+'"])\n window["'+_.hammerhead+'"].sandbox.node.raiseBodyCreatedEvent();\n '),onOriginFirstTitleLoaded:bc('\n window["'+_.hammerhead+'"].sandbox.node.onOriginFirstTitleElementInHeadLoaded();\n '),restoreStorages:bc('\n window.localStorage.setItem("%s", %s);\n window.sessionStorage.setItem("%s", %s);\n ')},Cc=((bs=wc=wc||{}).beforeBegin="beforebegin",bs.afterBegin="afterbegin",bs.beforeEnd="beforeend",bs.afterEnd="afterend",wc);function Tc(e){var t=b.nodeParentNodeGetter.call(e);t&&b.removeChild.call(t,e)}var Ac="hh_fake_doctype",Pc=(xs="hh_fake_tag_name_")+"head",Ic=xs+"body",Cs="hh_fake_attr",Nc=new RegExp("(<\\/?)"+xs,"ig"),Oc=/(<\/?)(html|head|body|table|tbody|tfoot|thead|tr|td|th|caption|colgroup)((?:\s[^>]*)?>)/gi,Lc="$1"+xs+"$2$3",kc=/<(\/?(?:col|noscript))(\s[^>]*?)?(\s?\/)?>/gi,Dc="
',Mc=new RegExp("]*?) "+Cs+'="([^|]+)\\|([^"]*)"([^>]*)',"ig"),Rc=/]*)>/gi,jc="<"+Ac+">$1",Hc=new RegExp("<"+Ac+">([\\S\\s]*?)","ig"),Bc=/]*>/gi,Fc=/\s(?:NS[0-9]+:[^"']+('|")[\S\s]*?\1|[^:]+:NS[0-9]+=(?:""|''))/g,Uc=function(){for(var e=[],t=0,r=fl;t").replace(Mc,"<$2$1$4$3").replace(Nc,"$1")}function Xc(e){return/^\s*(<\s*(!doctype|html|head|body)[^>]*>)/i.test(e)}function $c(e,t){var n,o,r=b.createElement.call(function(){try{qc.location&&qc.location.toString()}catch(e){qc=b.createHTMLDocument.call(document.implementation,"title"),(Kc=b.createDocumentFragment.call(qc))[Wc]=!0}return qc}(),"div"),t=(e=e.replace(Rc,jc).replace(kc,Dc).replace(Oc,Lc),b.appendChild.call(Kc,r),b.elementInnerHTMLSetter.call(r,e),t(r)?b.elementInnerHTMLGetter.call(r):e);return Tc(r),t=zc(t),S&&!Ne&&e!==t&&(r=t,n=e.match(Bc),o=0,t=n?r.replace(Bc,function(e){var t=n[o],r=t?t.match(Fc):null;return t&&o++,t?e.replace(Fc,function(){var e=r?r.join(""):"";return r=r&&null,e}):e}):r),t}function Yc(e){return $c(e,function(e){var i=!1;return Sn(e,Uc,function(e){var t,r,n,o;o=e,(r=N.getUrlAttr(o))&&b.hasAttribute.call(o,r)&&(t=P.getStoredAttrName(r),b.hasAttribute.call(o,t))&&(b.setAttribute.call(o,r,b.getAttribute.call(o,t)),b.removeAttribute.call(o,t)),r=e,b.hasAttribute.call(r,"autocomplete")&&(o=P.getStoredAttrName("autocomplete"),b.hasAttribute.call(r,o))&&(t=b.getAttribute.call(r,o),P.isAddedAutocompleteAttr("autocomplete",t)?b.removeAttribute.call(r,"autocomplete"):b.setAttribute.call(r,"autocomplete",t),b.removeAttribute.call(r,o)),r=e,(o=N.getTargetAttr(r))&&b.hasAttribute.call(r,o)&&(n=P.getStoredAttrName(o),b.hasAttribute.call(r,n))&&(b.setAttribute.call(r,o,b.getAttribute.call(r,n)),b.removeAttribute.call(r,n)),o=e,"iframe"===N.adapter.getTagName(o)&&b.hasAttribute.call(o,"sandbox")&&(r=P.getStoredAttrName("sandbox"),b.hasAttribute.call(o,r))&&(b.setAttribute.call(o,"sandbox",b.getAttribute.call(o,r)),b.removeAttribute.call(o,r)),n=e,b.hasAttribute.call(n,"style")&&(o=P.getStoredAttrName("style"),b.hasAttribute.call(n,o))&&(b.setAttribute.call(n,"style",b.getAttribute.call(n,o)),b.removeAttribute.call(n,o)),i=!0}),Sn(e,Vc,function(e){var t=b.nodeParentNodeGetter.call(e);t&&(b.removeChild.call(t,e),i=!0)}),Sn(e,"script",function(e){var t=b.nodeTextContentGetter.call(e),r=ba(t);t!==r&&(b.nodeTextContentSetter.call(e,r),i=!0)}),Sn(e,"style",function(e){var t=b.nodeTextContentGetter.call(e),r=Pl.cleanUp(t,x);t!==r&&(b.nodeTextContentSetter.call(e,r),i=!0)}),Sn(e,Gc,function(e){b.removeAttribute.call(e,s.hoverPseudoClass),b.removeAttribute.call(e,s.focusPseudoClass),i=!0}),Sn(e,"hh_fake_tag_name_head, hh_fake_tag_name_body",function(e){var t=b.elementInnerHTMLGetter.call(e);-1!==t.indexOf(xc.iframeInit)&&(b.elementInnerHTMLSetter.call(e,t.replace(xc.iframeInit,"")),i=!0)}),i})}function Qc(e,t){var f=(t=void 0===t?{}:t).parentTag,m=t.prepareDom,g=t.processedContext,y=t.isPage;return $c(e,function(e){var t=null,r=[],n=[],o=0,i=kt.getBaseUrl(document),s=(m&&m(e),b.htmlCollectionLengthGetter.call(b.elementChildrenGetter.call(e))&&(n=b.elementQuerySelectorAll.call(e,"*"),o=b.nodeListLengthGetter.call(n)),b.elementQuerySelector.call(e,"base"));s&&kt.updateBase(b.getAttribute.call(s,"href"),document);for(var a=0;a",op="<"+rp+">",ip=new RegExp("^[\\S\\s]*"+np,"g"),sp=new RegExp(op+"[\\S\\s]*$","g"),ap=/^<[^>]+>/g,lp=/<\/[^<>]+>$/g,cp=/<\/?(?:[A-Za-z][^>]*)?$/g,pp="hammerhead|unclosed-element-flag",up=(hp.prototype._cutPending=function(e){var t=e.match(cp);return this.pending=t?t[0]:"",this.pending?e.substring(0,e.length-this.pending.length):e},hp.prototype._wrapHtmlChunk=function(e){var t=this.parentTagChain.length?"<"+this.parentTagChain.join("><")+">":"";return this.isNonClosedComment&&(t+="\x3c!--"),t+np+e+op},hp.prototype._unwrapHtmlChunk=function(e){return e&&(e=e.replace(ip,"").replace(sp,""),this.isBeginMarkerInDOM||(e=this.isNonClosedComment?e.slice(4):e.replace(ap,"")),this.isEndMarkerInDOM||(e=this.isNonClosedComment?e.slice(0,-3):e.replace(lp,"")),!this.isBeginMarkerInDOM)&&this.isEndMarkerInDOM&&(this.isNonClosedComment=!1),e},hp._setUnclosedElementFlag=function(e){(Yn(e)||Qn(e))&&(e[pp]=!0)},hp.hasUnclosedElementFlag=function(e){return!!e[pp]},hp._searchBeginMarker=function(e){var t=b.elementQuerySelector.call(e,tp);if(!t){for(t=e;b.elementFirstElementChildGetter.call(t);)t=b.elementFirstElementChildGetter.call(t);e=b.nodeParentNodeGetter.call(t);b.nodeFirstChildGetter.call(e)!==t?t=b.nodeFirstChildGetter.call(e):Ao(b.nodeFirstChildGetter.call(t))&&(t=b.nodeFirstChildGetter.call(t))}return t},hp._searchEndMarker=function(e){var t=b.elementQuerySelector.call(e,rp);if(!t){for(t=e;b.elementLastElementChildGetter.call(t);)t=b.elementLastElementChildGetter.call(t);e=b.nodeParentNodeGetter.call(t);b.nodeLastChildGetter.call(e)!==t?t=b.nodeLastChildGetter.call(e):Ao(b.nodeLastChildGetter.call(t))&&(t=b.nodeLastChildGetter.call(t))}return t},hp.prototype._updateParentTagChain=function(e,t){var r=An(t)!==rp?t:b.nodeParentNodeGetter.call(t);for(Ao(t)&&(this.isNonClosedComment=!0,r=b.nodeParentNodeGetter.call(t)),this.parentTagChain=[];r!==e;)this.parentTagChain.unshift(An(r)),r=b.nodeParentNodeGetter.call(r)},hp.prototype._processBeginMarkerInContent=function(e){var t=e,r=(hp._setUnclosedElementFlag(t),this.isClosingContentEl&&(Yn(t)||Qn(t))?(this.contentForProcessing=b.nodeTextContentGetter.call(this.nonClosedEl)+b.nodeTextContentGetter.call(t).replace(ip,""),b.nodeTextContentSetter.call(t,"")):(r=b.nodeTextContentGetter.call(t),b.nodeTextContentSetter.call(t,r.replace(ip,""))),e=b.createElement.call(document,tp),b.nodeParentNodeGetter.call(t));b.insertBefore.call(r,e,t)},hp._createStartsWithClosingTagRegExp=function(e){for(var t=[e.charAt(e.length-1),"?"],r=e.length-2;-1i.right?n[o]:i.right;for(o=3;oi.bottom?n[o]:i.bottom;i.height=i.bottom-i.top,i.width=i.right-i.left}}return i&&(e=Cu(t),i.left+=e.left,i.top+=e.top),i}(e,t);if(e)return e}}return{height:0,left:0,top:0,width:0}}function Su(e){var t,r,n=Bo(e,"tspan")||Bo(e,"tref")||"textpath"===An(e),o=e.getBoundingClientRect(),i={height:n?e.offsetHeight:o.height,left:o.left+(document.body.scrollLeft||document.documentElement.scrollLeft),top:o.top+(document.body.scrollTop||document.documentElement.scrollTop),width:n?e.offsetWidth:o.width};return n?(n=Br(e),t=Fr(e),r=Fr(n),n=Bo(n,"body"),{height:i.height||o.height,left:n?e.offsetLeft||t.left:r.left+e.offsetLeft,top:n?e.offsetTop||t.top:r.top+e.offsetTop,width:i.width||o.width}):(Ie||S||((n=(n=b.getAttribute.call(e,"stroke-width")||a(e,"stroke-width"))?+n.replace(/px|em|ex|pt|pc|cm|mm|in/,""):1)&&+n%2!=0&&(n=+n+1),!(Bo(e,"line")||Bo(e,"polyline")||Bo(e,"polygon")||Bo(e,"path"))||i.width&&i.height?(Bo(e,"polygon")&&(i.height+=2*n,i.left-=n,i.top-=n,i.width+=2*n),i.height+=n,i.left-=n/2,i.top-=n/2,i.width+=n):!i.width&&i.height?(i.left-=n/2,i.width=n):i.width&&!i.height&&(i.height=n,i.top-=n/2)),i)}function _u(e){var t,r,n,o,i,s,a,l={};return(l=so(e)?Eu(e):Dr(e)?(a=yn(t=e))?(r=_u(a),n=Tr(a),o=Or(a)===a.clientWidth?0:gn(),i=Lr(a),s=un(a,t),s=Math.max(s-Rr(a)/i,0),{height:i,left:r.left+n.left,top:r.top+n.top+Pr(a).top+s*i,width:r.width-(n.left+n.right)-o}):_u(t):(a=Cu(e),{height:(s=yo(e)?Su(e):e.getBoundingClientRect()).height,left:a.left,top:a.top,width:s.width})).height=Math.round(l.height),l.left=Math.round(l.left),l.top=Math.round(l.top),l.width=Math.round(l.width),l}function bu(e,t,r){var n,o;return"iframe"===An(e)&&(n=_u(e),o=Tr(e),e=Pr(e),n.left+o.left+e.left<=t)&&t<=n.left+n.width-o.right-e.right&&n.top+o.top+e.top<=r&&r<=n.top+n.height-o.bottom-e.bottom}function wu(e,t,r){var n=yo(e),e=n?Su(e):null;return{left:n?e.left+t.left:r.left+t.left,top:n?e.top+t.top:r.top+t.top}}function xu(e,t,r,n,o){var i=Tr(o),i=(t.left+=i.left,t.top+=i.top,Cu(o)),o=Pr(o),s=null;return s=yo(e)?{x:(e=Su(e)).left-(document.body.scrollLeft||document.documentElement.scrollLeft)+t.left,y:e.top-(document.body.scrollTop||document.documentElement.scrollTop)+t.top}:Tu({x:r.left+t.left,y:r.top+t.top},n),{left:i.left+s.x+o.left,top:i.top+s.y+o.top}}function Cu(e,t){var r,n,o,i;return void 0===t&&(t=Math.round),so(e)?{left:(r=Eu(e)).left,top:r.top}:(n=(o=Ln(e,r=_n(e)))?hn(r):null,i=Fr(r===e?r.documentElement:e),e=(o=(o&&n?xu:wu)(e,r.body?Tr(r.body):{left:0,top:0},i,r,n)).left,i=o.top,"function"==typeof t&&(e=t(e),i=t(i)),{left:e,top:i})}function Tu(e,t){var t=t||document,r=Mr(t),n=Rr(t),o=Mr(t.body),t=Rr(t.body);return{x:e.x-(0===r&&0!==o?o:r),y:e.y-(0===n&&0!==t?t:n)}}var Au,Pu=Object.freeze({__proto__:null,getElementRectangle:_u,shouldIgnoreEventInsideIframe:bu,getOffsetPosition:Cu,offsetToClientCoords:Tu}),Iu=["button","fieldset","form","iframe","input","map","meta","object","output","param","select","textarea"],Nu=0,Ou=((Ps=function(){}).prototype=HTMLCollection.prototype,e(Lu,Au=Ps),Lu.prototype.item=function(e){return this._refreshCollection(),this._filteredCollection[e]},Object.defineProperty(Lu.prototype,"length",{get:function(){return this._refreshCollection(),this._filteredCollection.length},enumerable:!0,configurable:!0}),Lu.prototype._refreshCollection=function(){var e=this._lastNativeLength,t=b.htmlCollectionLengthGetter.call(this._collection);if(this._lastNativeLength=t,Jp.isOutdated(this._tagName,this._version)||!Jp.isDomContentLoaded()&&e!==t){var e=this._filteredCollection.length,t=function(e,t){for(var r=e._collection,n=e._namedProps?[]:null,o=e._filteredCollection,i=o.length=0;i"+t+"",{processedContext:e}):t},configurable:!0}),b.objectDefineProperty(r,v.getProxyUrl,{value:function(e,t){var r=kt.getBaseUrl(o.document),n=t&&t!==r,t=(n&&kt.updateBase(t,o.document),w(e,{resourceType:lt({isScript:!0})}));return n&&kt.updateBase(r,o.document),t},configurable:!0}),b.objectDefineProperty(r,v.restArray,{value:function(e,t){return b.arraySlice.call(e,t)},configurable:!0}),b.objectDefineProperty(r,v.arrayFrom,{value:function(e){return e&&(!b.isArray.call(b.Array,e)&&"function"==typeof e[Symbol.iterator]?b.arrayFrom.call(b.Array,e):e)},configurable:!0}),b.objectDefineProperty(r,v.restObject,{value:function(e,t){for(var r={},n=0,o=b.objectKeys(e);ns[u].lastAccessed&&(p=s[c],s[c]=s[u],s[u]=p),a.push(s[c]);break}u===s.length&&l.push(s[c])}return{outdated:a,actual:l}}function id(e){e.syncKey=e.syncKey||nd(e),e.cookieStr=e.cookieStr||e.syncKey+"="+e.value}function sd(e){return e.cookieStr?e.cookieStr+";path=/":nd(e)+"="+e.value+";path=/"}function ad(e){var t=Zh.exec(e)||[],r=t[1],t=t[2],n=void 0!==r&&void 0!==t&&r.split("|");return n&&n.length!==Jh?null:{isServerSync:-1t.length&&0===e.indexOf(t)&&("/"===t.charAt(t.length-1)||"/"===e.charAt(t.length))}function Cd(e){if(arguments.length){if(isNaN(e))return null}else e=b.dateNow();return e=1e3*Math.floor(e/1e3),new b.date(e)}var Td,Ad=Object.freeze({__proto__:null,parse:Sd,formatClientString:_d,setDefaultValues:bd,domainMatch:wd,pathMatch:xd,getUTCDate:Cd}),Pd=new b.date(0).toUTCString(),Id=(e(Nd,Td=t),Nd._removeAllSyncCookie=function(){for(var e=od(b.documentCookieGetter.call(document)),t=g.get().sessionId,r=0,n=e.outdated;r{try{return window.top["%hammerhead%"]}catch(e){return!0}})()||window===window.top?(this._transportWorker=new b.Worker(g.get().transportWorkerUrl,{name:"Transport"}),this._transportWorker.postMessage({cmd:"hammerhead|transport|set-initial-worker-settings",sessionId:g.get().sessionId,serviceMsgUrl:g.get().serviceMsgUrl}),this._transportWorker.addEventListener("message",function(e){return i._onWorkerMessage(e)}),this._processQueue()):o.sendServiceMsg({cmd:Xm},window.top),o.on(o.SERVICE_MSG_RECEIVED_EVENT,function(e){var t,r=e.message,n=e.source,e=e.ports;r.cmd===Xm?(t=new b.MessageChannel,o.sendServiceMsg({cmd:$m},n,[t.port1]),i._transportWorker.postMessage({cmd:"hammerhead|transport|handle-port"},[t.port2])):r.cmd===$m&&(i._transportWorker=e[0],i._transportWorker.onmessage=function(e){return i._onWorkerMessage(e)},i._processQueue())})},Qm.prototype._processQueue=function(){for(var e=0,t=this._queue;e(e%t+t)%t,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~-",e="_rhs";class d{constructor(e=function(){let e="";for(var t=i.split("");0(e||"").replace(/^((?:[a-z0-9]+:\/\/[^/]+)?(?:\/[^/]+\/))([^]+)/i,function(e,t,r){return t+n(r)}),o=new d(l);s=location.href,l=n(location.href,e=>o.shuffle(e));s!==l&&history.replaceState(null,null,l);let r=y.utils.url.getProxyUrl,t=y.utils.url.parseProxyUrl;function c(e){return e.replace(/(^.*?:\/)\//,"$1")}function u(e){return e.replace(/^.*?:\/(?!\/)/,"$&/")}y.utils.url.overrideGetProxyUrl(function(e,t){return v?r(e,t):n(r(e,t),e=>c(o.shuffle(e)))}),y.utils.url.overrideParseProxyUrl(function(e){return t(n(e,e=>o.unshuffle(u(e))))}),window.overrideGetProxyUrl(r=>function(e,t){return v?r(e,t):n(r(e,t),e=>c(o.shuffle(e)))}),window.overrideParseProxyUrl(t=>function(e){return t(n(e,e=>o.unshuffle(u(e))))})}}else console.warn("cannot get session id from url")}function r(){{let r=location.port||("https:"===location.protocol?"443":"80"),n=y.utils.url.getProxyUrl;y.utils.url.overrideGetProxyUrl(function(e,t={}){return t.proxyPort||(t.proxyPort=r),n(e,t)}),window.overrideParseProxyUrl(t=>function(e){e=t(e);return e&&e.proxy&&(e.proxy.port||(e.proxy.port=r)),e})}{let e={HTMLAnchorElement:["href"],HTMLAreaElement:["href"],HTMLBaseElement:["href"],HTMLEmbedElement:["src"],HTMLFormElement:["action"],HTMLFrameElement:["src"],HTMLIFrameElement:["src"],HTMLImageElement:["src"],HTMLInputElement:["src"],HTMLLinkElement:["href"],HTMLMediaElement:["src"],HTMLModElement:["cite"],HTMLObjectElement:["data"],HTMLQuoteElement:["cite"],HTMLScriptElement:["src"],HTMLSourceElement:["src"],HTMLTrackElement:["src"]};for(var r in e)for(var n of e[r])if(window[r]){var o=Object.getOwnPropertyDescriptor(window[r].prototype,n);let t=o.get;if(o.get=function(){return e=t.call(this),(y.utils.url.parseProxyUrl(e)||{}).destUrl||e;var e},"action"===n){let r=o.set;o.set=function(e){v=!0;try{var t=r.call(this,e)}catch(e){throw v=!1,e}return v=!1,t}}Object.defineProperty(window[r].prototype,n,o)}else console.warn("unexpected unsupported element class "+r)}{let t=`rammerhead|storage-wrapper|${y.settings._settings.sessionId}|${window.__get$(window,"location").host}|`,i=(e="")=>t+e,s=(e="")=>e.startsWith(t)?e.slice(t.length):null,e=(e,o)=>{let a=["internal","clear","key","getItem","setItem","removeItem","length"];Object.defineProperty(window,e,{configurable:!0,writable:!0,value:new Proxy(window[e],{get(e,t,r){if(a.includes(t)&&"length"!==t)return Reflect.get(e,t,r);if("length"!==t)return o[i(t)];{let e=0;for(var[n]of Object.entries(o))s(n)&&e++;return e}},set(e,t,r){return a.includes(t)||(o[i(t)]=r),!0},deleteProperty(e,t){return delete o[i(t)],!0},has(e,t){return i(t)in o||t in e},ownKeys(){var e,t=[];for([e]of Object.entries(o)){var r=s(e);r&&!a.includes(r)&&t.push(r)}return t},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(o,i(t))},defineProperty(e,t,r){return a.includes(t)||Object.defineProperty(o,i(t),r),!0}})})},r=(e,n)=>{Storage.prototype[e]=new Proxy(Storage.prototype[e],{apply(e,t,r){return n.apply(t,r)}})};e("localStorage",y.storages.localStorageProxy.internal.nativeStorage),e("sessionStorage",y.storages.sessionStorageProxy.internal.nativeStorage),r("clear",function(){for(var[e]of Object.entries(this))delete this[e]}),r("key",function(e){return(Object.entries(this)[e]||[])[0]||null}),r("getItem",function(e){return this.internal.nativeStorage[i(e)]||null}),r("setItem",function(e,t){e&&(this.internal.nativeStorage[i(e)]=t)}),r("removeItem",function(e){delete this.internal.nativeStorage[i(e)]})}if(delete window.overrideGetProxyUrl,delete window.overrideParseProxyUrl,delete window.overrideIsCrossDomainWindows,window.rammerheadStartListeners){for(var e of window.rammerheadStartListeners)try{e()}catch(e){console.error(e)}delete window.rammerheadStartListeners}if(window.rammerheadDisableLocalStorageImplementation)delete window.rammerheadDisableLocalStorageImplementation;else{var a="rammerhead_synctimestamp",t=!1,i=localStorage,s=i.internal.nativeStorage,l=y.settings._settings.sessionId,c=window.__get$(window,"location").origin,u=[];try{t=!0;var d,f=function(){var e=s[a],t=parseInt(e);if(isNaN(t))return e&&console.warn("invalid timestamp retrieved from storage: "+e),null;return t}();function p(e){if(!e||"object"!=typeof e)throw new TypeError("data must be an object");for(var t in i.clear(),e)i[t]=e[t]}f?(d=w({type:"sync",timestamp:f,data:i})).timestamp&&(h(d.timestamp),p(d.data)):(d=w({type:"sync",fetch:!0})).timestamp&&(h(d.timestamp),p(d.data)),t=!1}catch(e){if("server wants to disable localStorage syncing"!==e.message)throw e;return}i.addChangeEventListener(function(e){t||-1===u.indexOf(e.key)&&u.push(e.key)}),setInterval(function(){var e=g();e&&(w({type:"update",updateData:e},function(e){h(e.timestamp)}),u=[])},5e3),document.addEventListener("visibilitychange",function(){var e;"hidden"===document.visibilityState&&(e=g())&&y.nativeMethods.sendBeacon.call(window.navigator,m(),JSON.stringify({type:"update",updateData:e}))})}function h(e){if(!e)throw new TypeError("timestamp must be defined");if(isNaN(parseInt(e)))throw new TypeError("timestamp must be a number. received"+e);s[a]=e}function m(){return"/syncLocalStorage?sessionId="+encodeURIComponent(l)+"&origin="+encodeURIComponent(c)}function w(e,t){if(!e||"object"!=typeof e)throw new TypeError("data must be an object");var r=y.createNativeXHR();function n(){if(404===r.status)throw new Error("server wants to disable localStorage syncing");if(200!==r.status)throw new Error("server sent a non 200 code. got "+r.status+". Response: "+r.responseText)}if(r.open("POST",m(),!!t),r.setRequestHeader("content-type","application/json"),r.send(JSON.stringify(e)),!t)return n(),JSON.parse(r.responseText);r.onload=function(){n(),t(JSON.parse(r.responseText))}}function g(){if(!u.length)return null;for(var e={},t=0;tt[1][r])return 1;if(t[0][r]!==t[1][r])return-1;if(0===r)return 0}}function i(e,t,r){var n,o=a,i=("string"==typeof t&&(r=t,t=void 0),void 0===t&&(t=!1),""+(o=r?s(r):o).version);for(n in e)if(e.hasOwnProperty(n)&&o[n]){if("string"!=typeof e[n])throw new Error("Browser version in the minVersion map should be a string: "+n+": "+String(e));return l([i,e[n]])<0}return t}return a.test=function(e){for(var t=0;t=t[r="scrollHeight"]?t[o]:Math.max(e.body[r],t[r],e.body[n],t[n]);var o=e.offsetHeight;return(o-=br(l(e,"paddingTop")))-br(l(e,"paddingBottom"))-br(l(e,"borderTopWidth"))-br(l(e,"borderBottomWidth"))}function Ir(e){if(!e)return null;if(co(e))return e.document.documentElement.clientWidth;if(po(e))return e.documentElement.clientWidth;var t=e.offsetWidth;return(t-=br(l(e,"borderLeftWidth")))-br(l(e,"borderRightWidth"))}function Nr(e){var t=Or(e),r=Tr(e),r=e.scrollHeight-(r.top+r.bottom),n=gn(e).length;return 1===t?Pr(e):S&&n=t[r="scrollWidth"]?t[o]:Math.max(e.body[r],t[r],e.body[n],t[n]);var o=e.offsetWidth;return(o-=br(l(e,"paddingLeft")))-br(l(e,"paddingRight"))-br(l(e,"borderLeftWidth"))-br(l(e,"borderRightWidth"))},getHeight:Pr,getInnerWidth:Ir,getInnerHeight:function(e){if(!e)return null;if(co(e))return e.document.documentElement.clientHeight;if(po(e))return e.documentElement.clientHeight;var t=e.offsetHeight;return(t-=br(l(e,"borderTopWidth")))-br(l(e,"borderBottomWidth"))},getOptionHeight:Nr,getSelectElementSize:Or,isVisibleChild:Lr,getScrollLeft:kr,getScrollTop:Dr,setScrollLeft:Mr,setScrollTop:Rr,getOffsetParent:jr,getOffset:Hr,isElementVisible:Br,isElementInInvisibleIframe:Fr});function Vr(e){return xn(e)?b.elementQuerySelectorAll:To(e)||Ao(e)?b.documentFragmentQuerySelectorAll:b.querySelectorAll}var Gr=0,Wr=["[object HTMLMapElement]","[object HTMLAreaElement]"],Ce="undefined"==typeof window,qr=Ce?"":c(window),Kr=/^\[object .*?Document]$/i,zr=/^\[object .*?ProcessingInstruction]$/i,Xr=/^\[object SVG\w+?Element]$/i,$r=/^\[object HTML.*?Element]$/i,Yr=/^\[object ArrayBuffer]$/i,Qr=/^\[object DataView]$/i,Jr=Ce?"":c(b.createElement.call(document,"td")),Zr=Ce?-1:Node.ELEMENT_NODE,en=/^(select|option|applet|area|audio|canvas|datalist|keygen|map|meter|object|progress|source|track|video|img)$/,tn=/^(input|textarea|button)$/,rn=/^(script|style)$/i,nn=/^(email|number|password|search|tel|text|url)$/,on=/^(number|email)$/,sn=/^(color|date|datetime-local|month|week)$/;function an(e){return e.offsetWidth<=0&&e.offsetHeight<=0}function c(e){return dr?e&&"object"==typeof e?b.objectToString.call(b.objectGetPrototypeOf(e)):"":b.objectToString.call(e)}function ln(e){for(var e=e||document,t=b.documentActiveElementGetter.call(e),r=xn(t)?t:e.body;r&&r.shadowRoot;){var n=r.shadowRoot.activeElement;if(!n)break;r=n}return r}function cn(e,t){return gn(e).indexOf(t)}function pn(e){return hn(e[_.processedContext])}function un(e){var t=null;try{t=b.contentDocumentGetter.call(e).location.href}catch(e){t=null}var e=b.getAttribute.call(e,"src"+a.storedAttrPostfix)||b.getAttribute.call(e,"src")||b.iframeSrcGetter.call(e),r=t&&nr(t)&&Qt(t),n=e&&nr(e)&&Qt(e);return{documentLocation:r?r.destUrl:t,srcLocation:n?n.destUrl:e}}function hn(e){try{return e.frameElement}catch(e){return null}}function dn(e){var t=Ho(e,"map"),t='[usemap="#'+b.getAttribute.call(t,"name")+'"]';return b.querySelector.call(En(e),t)}function fn(){var e,t;return Gr||((e=b.createElement.call(document,"div")).style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.width="100px",b.appendChild.call(document.body,e),t=e.offsetWidth-e.clientWidth,Gr=t,b.nodeParentNodeGetter.call(e).removeChild(e)),Gr}function mn(e){return Ho(b.nodeParentNodeGetter.call(e),"select")}function gn(e){for(var t=b.elementQuerySelectorAll.call(e,"optgroup, option"),r=[],n=b.nodeListLengthGetter.call(t),o=0;o{try{return e["%is-hammerhead%"]}catch(e){return!0}})()==!!(()=>{try{return t["%is-hammerhead%"]}catch(e){return!0}})()):!1}catch(e){return!0}}function wn(e){return e!==e.top}function xn(e){return e instanceof b.elementClass||e&&$r.test(c(e))&&bo(e)&&e.tagName}function Cn(e){return e&&"string"==typeof e.tagName?e.tagName.toLowerCase():""}var Tn="hammerhead|element|shadow-root-parent";function An(e){for(var t=b.nodeParentNodeGetter.call(e);t&&t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)t=b.nodeParentNodeGetter.call(t);return t&&t[Tn]}function Pn(e){e=b.nodeParentNodeGetter.call(e);return e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e[Tn]?e[Tn]:e}function In(e,t){t=t||document;if(!t.documentElement)return!1;if(t.documentElement.contains(e))return!0;t=An(e);return!!t&&In(t)}function Nn(e,t){t=t||En(e);return window.document!==t}function On(e){return e===a.focusPseudoClass||e===a.hoverPseudoClass||-1!==e.indexOf(a.storedAttrPostfix)}function Ln(e){return"[object HTMLIFrameElement]"===c(e)}function kn(e){return"[object HTMLFrameElement]"===c(e)}function Dn(e){var t=un(e),r=t.srcLocation,t=t.documentLocation;if(null===t)return!1;if(b.contentWindowGetter.call(e)[_.documentWasCleaned])return!0;t=nr(t);return!t&&!b.getAttribute.call(e,"src")||(!r||!nr(r))&&!t}function Mn(e){return b.iframeSrcdocGetter&&b.hasAttribute.call(e,"srcdoc")}function Rn(e){return"[object HTMLImageElement]"===c(e)}function jn(e){return"[object HTMLInputElement]"===c(e)}function Hn(e){return"[object HTMLTitleElement]"===c(e)}function Bn(e){return"[object HTMLButtonElement]"===c(e)}function Fn(e){return"[object HTMLFieldSetElement]"===c(e)}function Un(e){return"[object HTMLOptGroupElement]"===c(e)}function Vn(e){return"[object HTMLHtmlElement]"===c(e)}function Gn(e){return"[object HTMLBodyElement]"===c(e)}function Wn(e){var e=b.nodeParentNodeGetter.call(e);return"html"===Cn(e)&&"#document"===(null==(e=b.nodeParentNodeGetter.call(e))?void 0:e.nodeName)}function qn(e){e=c(e);return"[object HTMLHeadElement]"===e||"[object HTMLBodyElement]"===e}function Kn(e){e=c(e);return"[object HTMLHeadElement]"===e||"[object HTMLBodyElement]"===e||"[object HTMLHtmlElement]"===e}function zn(e){return"[object HTMLBaseElement]"===c(e)}function Xn(e){return"[object HTMLScriptElement]"===c(e)}function $n(e){return"[object HTMLStyleElement]"===c(e)}function Yn(e){return"[object HTMLLabelElement]"===c(e)}function Qn(e){return"[object HTMLTextAreaElement]"===c(e)}function Jn(e){return"[object HTMLOptionElement]"===c(e)}function Zn(e){return"[object HTMLSelectElement]"===c(e)}function eo(e){return"[object HTMLFormElement]"===c(e)}function to(e){return jn(e)&&"file"===e.type.toLowerCase()}function ro(e){return jn(e)&&sn.test(e.type.toLowerCase())}function no(e){return Gn(e)&&Wn(e)&&b.htmlCollectionLengthGetter.call(b.elementChildrenGetter.call(e))}function oo(e){return-1!==Wr.indexOf(c(e))}function io(e){return!(xo(e)||Co(e)||rn.test(e.nodeName))}function so(e){e=b.getAttribute.call(e,"tabIndex"),e=parseInt(e,10);return isNaN(e)?null:e}function ao(e){return jo(e,":disabled")}function lo(e){if(!e)return!1;var t=so(e),r=ao(e),n="hidden"===l(e,"visibility"),o="none"===l(e,"display"),i=Ne?an(e)&&!Jn(e):an(e);return!(r||n||o||i)&&((!Jn(e)||!S)&&(Po(e)?null!==t||jo(e,"a[href]"):!(!No(e)||!S)||(jo(e,'input, select, textarea, button, body, iframe, [contenteditable="true"], [contenteditable=""], [tabIndex]')||null!==t)))}function x(e){return!!e[_.shadowUIElement]}function co(t){try{if(!(t=(S||Ae)&&t&&t===t.window?t.window:t)||!t.toString||qr!==c(t))return!1}catch(e){try{return!!t.top}catch(e){return!1}}try{b.winLocalStorageGetter.call(t)}catch(e){return!1}return!0}function po(e){if(e instanceof b.documentClass)return!0;try{return e&&Kr.test(c(e))}catch(e){return!1}}function uo(e){return e&&"[object Blob]"===c(e)}function ho(e){if(e)if(S||Ie||Pe){var t=e;var r=null;try{r=t.__proto__}catch(e){var n=Ie||Pe;return t.replace&&(n||!!t.assign)}return!!r&&("[object LocationPrototype]"===(n=b.objectToString.call(r))||"[object Location]"===n);return}else return e instanceof b.locationClass||"[object Location]"===b.objectToString.call(e);return!1}function fo(e){return e instanceof b.svgElementClass||e&&Xr.test(c(e))}function mo(e){return!!Ho(e,"svg")}function go(e){return!!(b.Headers&&e instanceof b.Headers)||e&&"[object Headers]"===c(e)}function yo(e){return!!(b.Request&&e instanceof b.Request)||e&&"[object Request]"===c(e)}function vo(e){return e.readOnly||"readonly"===e.getAttribute("readonly")}function Eo(e){var t=e.getAttribute("type");return jn(e)&&t?nn.test(t):nn.test(e.type)}function So(e){return Eo(e)||Qn(e)}function _o(e){return So(e)&&!vo(e)}function bo(e){return e&&e.nodeType===Zr}function wo(e){return"[object Text]"===c(e)}function xo(e){return zr.test(c(e))}function Co(e){return"[object Comment]"===c(e)}function To(e){return"[object DocumentFragment]"===c(e)}function Ao(e){return"[object ShadowRoot]"===c(e)}function Po(e){return"[object HTMLAnchorElement]"===c(e)}function Io(e){return"[object HTMLTableElement]"===c(e)}function No(e){return c(e)===Jr}function Oo(e){return"[object WebSocket]"===c(e)}function Lo(e){return"[object MessageEvent]"===c(e)}function ko(e){return"[object PerformanceNavigationTiming]"===c(e)}function Do(e){return e instanceof b.ArrayBuffer||e&&Yr.test(c(e))}function Mo(e){return e&&b.arrayBufferIsView(e)}function Ro(e){return e instanceof b.DataView||e&&Qr.test(c(e))}function jo(e,t){return!!bo(e)&&b.matches.call(e,t)}function Ho(e,t){if(bo(e))if(b.closest)return b.closest.call(e,t);else{var r=e;var n=t;for(;r;){if(jo(r,n))return r;r=b.nodeParentNodeGetter.call(r)}return null;return}return null}function Bo(e,t){if(e)for(var r=0,n=t.split(/\s+/);r{try{return t.top["%hammerhead%"]}catch(e){return!0}})()||t===t.top)return t;if(r===t.top||bn(t,r))return r;try{n=r.frameElement}catch(e){n=null}return null!==n&&Dn(n)?e(r):r},getScrollbarSize:fn,getSelectParent:mn,getSelectVisibleChildren:gn,getTopSameDomainWindow:yn,find:vn,findDocument:En,isContentEditableElement:Sn,isCrossDomainIframe:_n,isCrossDomainWindows:bn,isIframeWindow:wn,isDomElement:xn,getTagName:Cn,SHADOW_ROOT_PARENT_ELEMENT:Tn,getNodeShadowRootParent:An,getParentExceptShadowRoot:Pn,isElementInDocument:In,isElementInIframe:Nn,isHammerheadAttr:On,isIframeElement:Ln,isFrameElement:kn,isIframeWithoutSrc:Dn,isIframeWithSrcdoc:Mn,isImgElement:Rn,isInputElement:jn,isTitleElement:Hn,isButtonElement:Bn,isFieldSetElement:Fn,isOptGroupElement:Un,isHtmlElement:Vn,isBodyElement:Gn,isPageBody:Wn,isHeadElement:function(e){return"[object HTMLHeadElement]"===c(e)},isHeadOrBodyElement:qn,isHeadOrBodyOrHtmlElement:Kn,isBaseElement:zn,isScriptElement:Xn,isStyleElement:$n,isLabelElement:Yn,isTextAreaElement:Qn,isOptionElement:Jn,isRadioButtonElement:function(e){return jn(e)&&"radio"===e.type.toLowerCase()},isColorInputElement:function(e){return jn(e)&&"color"===e.type.toLowerCase()},isCheckboxElement:function(e){return jn(e)&&"checkbox"===e.type.toLowerCase()},isSelectElement:Zn,isFormElement:eo,isFileInput:to,isInputWithNativeDialog:ro,isBodyElementWithChildren:no,isMapElement:oo,isRenderedNode:io,getTabIndex:so,isElementDisabled:ao,isElementFocusable:lo,isShadowUIElement:x,isWindow:co,isDocument:po,isBlob:uo,isLocation:ho,isSVGElement:fo,isSVGElementOrChild:mo,isFetchHeaders:go,isFetchRequest:yo,isElementReadOnly:vo,isTextEditableInput:Eo,isTextEditableElement:So,isTextEditableElementAndEditingAllowed:_o,isElementNode:bo,isTextNode:wo,isProcessingInstructionNode:xo,isCommentNode:Co,isDocumentFragmentNode:To,isShadowRoot:Ao,isAnchorElement:Po,isTableElement:Io,isTableDataCellElement:No,isWebSocket:Oo,isMessageEvent:Lo,isPerformanceNavigationTiming:ko,isArrayBuffer:Do,isArrayBufferView:Mo,isDataView:Ro,matches:jo,closest:Ho,addClass:Bo,removeClass:Fo,hasClass:Uo,parseDocumentCharset:Vo,getParents:Go,findParent:qo,nodeListToArray:Ko,getFileInputs:zo,getIframes:Xo,getScripts:$o,isNumberOrEmailInput:Yo,isInputWithoutSelectionProperties:Qo,getAssociatedElement:Jo}),r=(e(ui,Zo=ke),ui.prototype.isDeactivated=function(){try{var e;if(this.document.body,this.window[_.hammerhead])return!!(e=hn(this.window))&&!In(e,En(e))}catch(e){}return!0},ui.prototype.attach=function(e,t){this.window=e,this.document=t||e.document},ui);function ui(){var e=null!==Zo&&Zo.apply(this,arguments)||this;return e.window=null,e.nativeMethods=b,e.document=null,e}var hi={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportBatchSpecifier:"ExportBatchSpecifier",ExportDeclaration:"ExportDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportSpecifier:"ImportSpecifier",ImportDeclaration:"ImportDeclaration",ChainExpression:"ChainExpression",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleDeclaration:"ModuleDeclaration",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},C=hi,di=0,fi=1,mi=1,gi=2,yi=2,vi=3,t=8,ce=9,n=10,i=11,_e=12,Ei=13,Si=14,_i=14,bi=15,wi=16,xi=17,Ci=17,Ti=18,s=19,Ai={"||":vi,"&&":4,"|":5,"^":6,"&":7,"==":t,"!=":t,"===":t,"!==":t,is:t,isnt:t,"<":ce,">":ce,"<=":ce,">=":ce,in:ce,instanceof:ce,"<<":n,">>":n,">>>":n,"+":i,"-":i,"*":_e,"%":_e,"/":_e,"??":3,"**":14};var Pi=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Ii=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]");function Ni(e){if(e<128)return 97<=e&&e<=122||65<=e&&e<=90||48<=e&&e<=57||36===e||95===e||92===e;e=String.fromCharCode(e);return Ii.test(e)}function Oi(e){return 10===e||13===e||8232===e||8233===e}function Li(e){return 32===e||9===e||Oi(e)||11===e||12===e||160===e||5760<=e&&0<=Pi.indexOf(e)}function ki(e,t){var r="";for(t|=0;0>>=1,e+=e)1&t&&(r+=e);return r}function Di(e,t){return 8232==(-2&e)?(t?"u":"\\u")+(8232===e?"2028":"2029"):10===e||13===e?(t?"":"\\")+(10===e?"n":"r"):String.fromCharCode(e)}function Mi(e){for(var t,r,n,o="",i=0,s=0,a=0,l=e.length;a"),e.expression?(g.js+=g.optSpace,"{"===(r=h(t,u.e4)).charAt(0)&&(r="("+r+")"),g.js+=r):(g.js+=ji(t),es[t.type](t,u.s8))}var Fi=(Fi=Array.isArray)||function(e){return"[object Array]"===Object.prototype.toString.call(e)},u={e1:function(e){return{precedence:mi,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e2:function(e){return{precedence:vi,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e3:{precedence:bi,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!1},e4:{precedence:mi,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e5:{precedence:di,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e6:function(e){return{precedence:wi,allowIn:!0,allowCall:!1,allowUnparenthesizedNew:e}},e7:{precedence:Ei,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e8:{precedence:Si,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e9:{precedence:void 0,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e10:{precedence:bi,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e11:function(e){return{precedence:bi,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!1}},e12:{precedence:s,allowIn:!1,allowCall:!1,allowUnparenthesizedNew:!0},e13:{precedence:s,allowIn:!0,allowCall:!0,allowUnparenthesizedNew:!0},e14:{precedence:di,allowIn:!1,allowCall:!0,allowUnparenthesizedNew:!0},e15:function(e){return{precedence:di,allowIn:!0,allowCall:e,allowUnparenthesizedNew:!0}},e16:function(e,t){return{precedence:e,allowIn:t,allowCall:!0,allowUnparenthesizedNew:!0}},e17:function(e){return{precedence:bi,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e18:function(e){return{precedence:mi,allowIn:e,allowCall:!0,allowUnparenthesizedNew:!0}},e19:{precedence:di,allowIn:!0,allowCall:!0,semicolonOptional:!1},e20:{precedence:_i,allowCall:!0},s1:function(e,t){return{allowIn:!0,functionBody:!1,directiveContext:e,semicolonOptional:t}},s2:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!0},s3:function(e){return{allowIn:e,functionBody:!1,directiveContext:!1,semicolonOptional:!1}},s4:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:e}},s5:function(e){return{allowIn:!0,functionBody:!1,directiveContext:!0,semicolonOptional:e}},s6:{allowIn:!1,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s7:{allowIn:!0,functionBody:!1,directiveContext:!1,semicolonOptional:!1},s8:{allowIn:!0,functionBody:!0,directiveContext:!1,semicolonOptional:!1}},Ui=/[.eExX]|^0[0-9]+/,Vi=/[0-9]$/;function Gi(e,t){var r=e.operator,n=Ai[e.operator],o=n",o),template:new r("template"),invalidTemplate:new r("invalidTemplate"),ellipsis:new r("...",o),backQuote:new r("`",i),dollarBraceL:new r("${",{beforeExpr:!0,startsExpr:!0}),eq:new r("=",{beforeExpr:!0,isAssign:!0}),assign:new r("_=",{beforeExpr:!0,isAssign:!0}),incDec:new r("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new r("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:n("||",1),logicalAND:n("&&",2),bitwiseOR:n("|",3),bitwiseXOR:n("^",4),bitwiseAND:n("&",5),equality:n("==/!=/===/!==",6),relational:n("/<=/>=",7),bitShift:n("<>/>>>",8),plusMin:new r("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:n("%",10),star:n("*",10),slash:n("/",10),starstar:new r("**",{beforeExpr:!0}),coalesce:n("??",1),_break:a("break"),_case:a("case",o),_catch:a("catch"),_continue:a("continue"),_debugger:a("debugger"),_default:a("default",o),_do:a("do",{isLoop:!0,beforeExpr:!0}),_else:a("else",o),_finally:a("finally"),_for:a("for",{isLoop:!0}),_function:a("function",i),_if:a("if"),_return:a("return",o),_switch:a("switch"),_throw:a("throw",o),_try:a("try"),_var:a("var"),_const:a("const"),_while:a("while",{isLoop:!0}),_with:a("with"),_new:a("new",{beforeExpr:!0,startsExpr:!0}),_this:a("this",i),_super:a("super",i),_class:a("class",i),_extends:a("extends",o),_export:a("export"),_import:a("import",i),_null:a("null",i),_true:a("true",i),_false:a("false",i),_in:a("in",{beforeExpr:!0,binop:7}),_instanceof:a("instanceof",{beforeExpr:!0,binop:7}),_typeof:a("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:a("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:a("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})};t.types=o}),T=j(function(e,t){t.__esModule=!0,t.isNewLine=i,t.lineBreakG=t.lineBreak=void 0,t.nextLineBreak=function(e,t,r){void 0===r&&(r=e.length);for(var n=t;n=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ka(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function el(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>10),56320+(1023&e)))}function l(e){return 36===e||40<=e&&e<=43||46===e||63===e||91<=e&&e<=94||123<=e&&e<=125}function c(e){return 65<=e&&e<=90||97<=e&&e<=122}function p(e){return c(e)||95===e}function u(e){return 48<=e&&e<=57}function h(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function d(e){return 65<=e&&e<=70?e-65+10:97<=e&&e<=102?e-97+10:e-48}function f(e){return 48<=e&&e<=55}s.prototype.reset=function(e,t,r){var n=-1!==r.indexOf("u");this.start=0|e,this.source=t+"",this.flags=r,this.switchU=n&&6<=this.parser.options.ecmaVersion,this.switchN=n&&9<=this.parser.options.ecmaVersion},s.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},s.prototype.at=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(n<=e)return-1;var o=r.charCodeAt(e);if(!t&&!this.switchU||o<=55295||57344<=o||n<=e+1)return o;t=r.charCodeAt(e+1);return 56320<=t&&t<=57343?(o<<10)+t-56613888:o},s.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var r=this.source,n=r.length;if(n<=e)return n;var o=r.charCodeAt(e);return!t&&!this.switchU||o<=55295||57344<=o||n<=e+1||(t=r.charCodeAt(e+1))<56320||57343e.numCapturingParens&&e.raise("Invalid escape");for(var t=n(e.backReferenceNames);!(r=t()).done;){var r=r.value;-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},i.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},i.regexp_alternative=function(e){for(;e.pose.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},i.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},i.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},i.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},i.regexp_eatZero=function(e){return 48===e.current()&&!u(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},i.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},i.regexp_eatControlLetter=function(e){var t=e.current();return!!c(t)&&(e.lastIntValue=t%32,e.advance(),!0)},i.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){var r=e.pos,t=(t=void 0===t?!1:t)||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var n=e.lastIntValue;if(t&&55296<=n&&n<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(56320<=i&&i<=57343)return e.lastIntValue=1024*(n-55296)+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=n}return!0}if(t&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(0<=(i=e.lastIntValue)&&i<=1114111))return!0;t&&e.raise("Invalid unicode escape"),e.pos=r}return!1},i.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},i.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(49<=t&&t<=57){for(;e.lastIntValue=10*e.lastIntValue+(t-48),e.advance(),48<=(t=e.current())&&t<=57;);return!0}return!1},i.regexp_eatCharacterClassEscape=function(e){var t,r=e.current();if(100===(t=r)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&9<=this.options.ecmaVersion&&(80===r||112===r)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},i.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r,n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e))return r=e.lastStringValue,this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}return e.pos=t,!!this.regexp_eatLoneUnicodePropertyNameOrValue(e)&&(n=e.lastStringValue,this.regexp_validateUnicodePropertyNameOrValue(e,n),!0)},i.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){(0,Ba.hasOwn)(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},i.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},i.regexp_eatUnicodePropertyName=function(e){var t;for(e.lastStringValue="";p(t=e.current());)e.lastStringValue+=a(t),e.advance();return""!==e.lastStringValue},i.regexp_eatUnicodePropertyValue=function(e){var t,r;for(e.lastStringValue="";p(r=t=e.current())||u(r);)e.lastStringValue+=a(t),e.advance();return""!==e.lastStringValue},i.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},i.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},i.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t,r=e.lastIntValue;e.eat(45)&&this.regexp_eatClassAtom(e)&&(t=e.lastIntValue,!e.switchU||-1!==r&&-1!==t||e.raise("Invalid character class"),-1!==r&&-1!==t&&t>10),56320+(1023&e)))}t.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new r(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},t.getToken=function(){return this.next(),new r(this)},"undefined"!=typeof Symbol&&(t[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===E.types.eof,value:e}}}}),t.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(E.types.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},t.readToken=function(e){return(0,Ha.isIdentifierStart)(e,6<=this.options.ecmaVersion)||92===e?this.readWord():this.getTokenFromCode(e)},t.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||56320<=e)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||57344<=t?e:(e<<10)+t-56613888},t.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(var n,o=t;-1<(n=(0,T.nextLineBreak)(this.input,o,this.pos));)++this.curLine,o=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},t.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(T.lineBreak.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.pos}var o=this.input.slice(r,this.pos),i=(++this.pos,this.pos),s=this.readWord1(),i=(this.containsEsc&&this.unexpected(i),this.regexpState||(this.regexpState=new ll.RegExpValidationState(this))),i=(i.reset(r,o,s),this.validateRegExpFlags(i),this.validateRegExpPattern(i),null);try{i=new RegExp(o,s)}catch(e){}return this.finishToken(E.types.regexp,{pattern:o,flags:s,value:i})},t.readInt=function(e,t,r){for(var n=12<=this.options.ecmaVersion&&void 0===t,o=r&&48===this.input.charCodeAt(this.pos),r=this.pos,i=0,s=0,a=0,l=null==t?1/0:t;a=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;92===n?(t=(t+=this.input.slice(r,this.pos))+this.readEscapedChar(!1),r=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):((0,T.isNewLine)(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(E.types.string,t)};var n={};t.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==n)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},t.invalidStringToken=function(e,t){if(this.inTemplateElement&&9<=this.options.ecmaVersion)throw n;this.raise(e,t)},t.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==E.types.template&&this.type!==E.types.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(E.types.template,e)):36===r?(this.pos+=2,this.finishToken(E.types.dollarBraceL)):(++this.pos,this.finishToken(E.types.backQuote));if(92===r)e=(e+=this.input.slice(t,this.pos))+this.readEscapedChar(!0),t=this.pos;else if((0,T.isNewLine)(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},t.readInvalidTemplateToken=function(){for(;this.pos(\s)*$/,$l=/(\/\/[^\n]*|\n\s*)-->[^\n]*([\n\s]*)?$/,Yl=/^(\s)*\s*$/,Jl=/^\s*javascript\s*:/i,Zl=/^\s*(application\/(x-)?(ecma|java)script|text\/(javascript(1\.[0-5])?|((x-)?ecma|x-java|js|live)script)|module)\s*$/i,ec=["animate","animateColor","animateMotion","animateTransform","mpath","set","linearGradient","radialGradient","stop","a","altglyph","color-profile","cursor","feimage","filter","font-face-uri","glyphref","image","mpath","pattern","script","textpath","use","tref"],tc=["script","link"],rc=["a","form","area","input","button"],nc="modulepreload",oc="hammerhead|element-processed",ic="hammerhead|autocomplete-attribute-absence-marker",P=(I.isTagWithTargetAttr=function(e){return!!e&&-1":a)))},I.prototype._processStyleAttr=function(e,t){var r=this.adapter.getAttr(e,"style");r&&this.adapter.setAttr(e,"style",Fl.process(r,t,!1))},I.prototype._processStylesheetElement=function(e,t){var r=this.adapter.getStyleContent(e);r&&t&&this.adapter.needToProcessContent(e)&&(r=Fl.process(r,t,!0),this.adapter.setStyleContent(e,r))},I.prototype._processTargetBlank=function(e,t,r){var n,o;!this.allowMultipleWindows&&r.targetAttr&&(n=I.getStoredAttrName(r.targetAttr),this.adapter.hasAttr(e,n)||"_blank"===(o=(o=this.adapter.getAttr(e,r.targetAttr))&&o.replace(/\s/g,""))&&(this.adapter.setAttr(e,r.targetAttr,"_top"),this.adapter.setAttr(e,n,o)))},I.prototype._processUrlAttrs=function(e,t,r){var n,o,i,s,a,l,c,p,u,h,d,f,m,g;r.urlAttr&&(n=I.getStoredAttrName(r.urlAttr),i=!!(o=this.adapter.getAttr(e,r.urlAttr))&&_t(o),s=this.adapter.hasAttr(e,n),!o&&""!==o||s||!mt(o)&&!i||(a="iframe"===(s=this.adapter.getTagName(e))||"frame"===s,u="script"===s,l="a"===s,c=r.targetAttr?this.adapter.getAttr(e,r.targetAttr):null,this.adapter.needToProcessUrl(s,c||"")&&(c=this.getElementResourceType(e)||"",p="file:"!==(p=ft(o)).protocol&&!p.host,u=u&&this.adapter.getAttr(e,"charset")||"",h="img"===s&&""===o,d=a&&""===o,f=ht(t("/")),m=!1,g=o,a&&!i&&!p&&f&&(m=!this.adapter.sameOriginCheck(f.destUrl,o)),i&&!l||h||d||(g="img"!==s||this.forceProxySrcForImage?t(o,c,u,m):gt(o,t)),this.adapter.setAttr(e,n,o),this.adapter.setAttr(e,r.urlAttr,g))))},I.prototype._processSrcdocAttr=function(e){var t=I.getStoredAttrName("srcdoc"),r=this.adapter.getAttr(e,"srcdoc")||"",n=this.adapter.processSrcdocAttr(r);this.adapter.setAttr(e,t,r),this.adapter.setAttr(e,"srcdoc",n)},I.prototype._processUrlJsAttr=function(e,t,r){r.urlAttr&&I.isJsProtocol(this.adapter.getAttr(e,r.urlAttr)||"")&&this._processJsAttr(e,r.urlAttr,{isJsProtocol:!0,isEventAttr:!1})},I.prototype._processSVGXLinkHrefAttr=function(e,t,r){var n;r.urlAttr&&(n=this.adapter.getAttr(e,r.urlAttr)||"",Xe.test(n)&&(r=I.getStoredAttrName(r.urlAttr),this.adapter.setAttr(e,r,n)))},I);function I(e){this.adapter=e,this.HTML_PROCESSING_REQUIRED_EVENT="hammerhead|event|html-processing-required",this.SVG_XLINK_HREF_TAGS=ec,this.AUTOCOMPLETE_ATTRIBUTE_ABSENCE_MARKER=ic,this.PROCESSED_PRELOAD_LINK_CONTENT_TYPE="script",this.MODULE_PRELOAD_LINK_REL=nc,this.forceProxySrcForImage=!1,this.allowMultipleWindows=!1,this.EVENTS=this.adapter.EVENTS,this.elementProcessorPatterns=this._createProcessorPatterns(this.adapter)}var sc=new WeakMap;function ac(e,t,r,n){e=he(e,r,{value:n});b.objectDefineProperty(t,r,e)}var lc,Ls=function(){},cc=(Ls.prototype=DOMStringList.prototype,e(pc,lc=Ls),pc.prototype.item=function(e){return this[e]},pc.prototype.contains=function(e){"string"!=typeof e&&(e=String(e));for(var t=sc.get(this)||0,r=0;r{try{return s["%hammerhead%"]}catch(e){return!0}})();ac(i,a,t.toString(),r?"":e.origin),r&&n&&n(s,function(e){return ac(i,o,t,e)}),s=s.parent}(r);return o}var uc=Number.MAX_SAFE_INTEGER||9007199254740991,hc=Number.MIN_SAFE_INTEGER||-9007199254740991,dc=(fc.prototype.increment=function(){return this._id=this._id===uc?hc:this._id+1,this._id},Object.defineProperty(fc.prototype,"value",{get:function(){return this._id},enumerable:!0,configurable:!0}),fc);function fc(){this._id=hc}var mc="hammerhead|command|get-origin",gc="hammerhead|command|origin-received";function yc(e){try{return e.location.toString()}catch(e){return}}var vc,ks=function(){},Ec=(ks.prototype=Location.prototype,e(Sc,vc=ks),Sc);function Sc(i,n,o){function e(){if(wn(i)&&i.location.href===Je)return Je;var e=Rt(),t=Nt.getResolverElement(i.document);return b.anchorHrefSetter.call(t,e),St(b.anchorHrefGetter.call(t),e)}function r(e){if(e=Tt(e="string"!=typeof e?String(e):e),P.isJsProtocol(e))return P.processJsAttrValue(e,{isJsProtocol:!0,isEventAttr:!1});var t,r=yc(i),n=null,o=(i!==i.parent&&(o=yc(i.parent),(t=Qt(o))&&t.proxy&&(t=t.proxy.port,n=lt(o,e)?t:Xt(t))),r&&ar(r,e));return w(e,{resourceType:o?u:m,proxyPort:n})}function t(t,r){f[t]=he(d,t,{getter:function(){var e=hn(i);return(e&&Dn(e)?i.location:Ht())[t]},setter:function(e){var t=tr(i.location.toString(),r,e,m);return i.location=t,o(t),e}})}var s,a,l,c=vc.call(this)||this,p=Qt(yc(i)),u=p?p.resourceType:"",p=ir(u),h=b.objectHasOwnProperty.call(i.Location.prototype,"href"),d=h?i.Location.prototype:i.location,f={},m=(p.isIframe=p.isIframe||wn(i),it({isIframe:p.isIframe,isForm:p.isForm}));f.href=he(d,"href",{getter:e,setter:function(e){var t=r(e);return i.location.href=t,o(t),e}}),f.search=he(d,"search",{getter:function(){return new URL(Rt()).search},setter:function(e){var t=new URL(Rt());return t.search=e,i.location=Zt(t.href),e}}),f.origin=he(d,"origin",{getter:function(){return ut(Ht())},setter:function(e){return e}}),f.hash=he(d,"hash",{getter:function(){return new URL(Rt()).hash},setter:function(e){var t=new URL(Rt());return t.hash=e,i.location.hash=new URL(Zt(t.href)).hash,e}}),i.location.ancestorOrigins&&(s=b.objectCreate(null),a=new dc,n&&n.on(n.SERVICE_MSG_RECEIVED_EVENT,function(e){var t=e.message,e=e.source;t.cmd===mc?n.sendServiceMsg({id:t.id,cmd:gc,origin:c.origin},e):t.cmd===gc&&(e=s[t.id])&&e(t.origin)}),l=new cc(i,n?function(e,t){var r=a.increment();s[r]=t,n.sendServiceMsg({id:r,cmd:mc},e)}:void 0),f.ancestorOrigins=he(d,"ancestorOrigins",{getter:function(){return l}}));if(t("port",b.anchorPortSetter),t("host",b.anchorHostSetter),t("hostname",b.anchorHostnameSetter),t("pathname",b.anchorPathnameSetter),t("protocol",b.anchorProtocolSetter),f.assign=he(d,"assign",{value:function(e){var e=r(e),t=i.location.assign(e);return o(e),t}}),f.replace=he(d,"replace",{value:function(e){var e=r(e),t=i.location.replace(e);return o(e),t}}),f.reload=he(d,"reload",{value:function(e){e=i.location.reload(e);return o(i.location.toString()),e}}),f.toString=he(d,"toString",{value:e}),!h&&b.objectHasOwnProperty.call(i.location,"valueOf")&&(f.valueOf=he(d,"valueOf",{value:function(){return c}})),b.objectDefineProperties(c,f),xe)return c;function g(e,t){var r;"function"==typeof e[t]&&(r=e[t],e[t]=function(){var e=this===y?i.location:this;return r.apply(e,arguments)})}for(var p=b.objectKeys(Location.prototype),y=c,v=0,E=p;v\n (function () {\n var currentScript = document.currentScript;\n\n /* NOTE: IE11 doesn't support the 'currentScript' property */\n if (!currentScript) {\n var scripts = document.scripts;\n var scriptsLength = scripts.length;\n\n currentScript = scripts[scriptsLength - 1];\n }\n\n currentScript.parentNode.removeChild(currentScript);\n\n "+e+"\n })();\n <\/script>\n ").replace(/\n\s*|\/\*[\S\s]*?\*\//g,"")}var Mc,Rc={iframeInit:Dc('\n var parentHammerhead = null;\n\n if (!window["'+_.hammerhead+'"])\n Object.defineProperty(window, "'+_.documentWasCleaned+'", { value: true, configurable: true });\n\n try {\n parentHammerhead = window.parent["'+_.hammerhead+'"];\n } catch(e) {}\n\n if (parentHammerhead)\n parentHammerhead.sandbox.onIframeDocumentRecreated(window.frameElement);\n '),onWindowRecreation:Dc('\n var hammerhead = window["'+_.hammerhead+'"];\n var sandbox = hammerhead && hammerhead.sandbox;\n\n if (!sandbox) {\n try {\n sandbox = window.parent["'+_.hammerhead+'"].sandboxUtils.backup.get(window);\n } catch(e) {}\n }\n\n if (sandbox) {\n Object.defineProperty(window, "'+_.documentWasCleaned+'", { value: true, configurable: true });\n\n sandbox.node.mutation.onDocumentCleaned(window, document);\n\n /* NOTE: B234357 */\n sandbox.node.processNodes(null, document);\n }\n '),onBodyCreated:Dc('\n if (window["'+_.hammerhead+'"])\n window["'+_.hammerhead+'"].sandbox.node.raiseBodyCreatedEvent();\n '),onOriginFirstTitleLoaded:Dc('\n window["'+_.hammerhead+'"].sandbox.node.onOriginFirstTitleElementInHeadLoaded();\n '),restoreStorages:Dc('\n window.localStorage.setItem("%s", %s);\n window.sessionStorage.setItem("%s", %s);\n ')},jc=((Ds=Mc=Mc||{}).beforeBegin="beforebegin",Ds.afterBegin="afterbegin",Ds.beforeEnd="beforeend",Ds.afterEnd="afterend",Mc);function Hc(e){var t=b.nodeParentNodeGetter.call(e);t&&b.removeChild.call(t,e)}var Rs="hh_fake_tag_name_",Bc="hh_fake_doctype",Fc=Rs+"head",Uc=Rs+"body",js="hh_fake_attr",Vc=new RegExp("(<\\/?)"+Rs,"ig"),Gc=/(<\/?)(html|head|body|table|tbody|tfoot|thead|tr|td|th|caption|colgroup)((?:\s[^>]*)?>)/gi,Wc="$1"+Rs+"$2$3",qc=/<(\/?(?:col|noscript))(\s[^>]*?)?(\s?\/)?>/gi,Kc="
',zc=new RegExp("]*?) "+js+'="([^|]+)\\|([^"]*)"([^>]*)',"ig"),Xc=/]*)>/gi,$c="<"+Bc+">$1",Yc=new RegExp("<"+Bc+">([\\S\\s]*?)","ig"),Qc=/]*>/gi,Jc=/\s(?:NS[0-9]+:[^"']+('|")[\S\s]*?\1|[^:]+:NS[0-9]+=(?:""|''))/g,Zc=function(){for(var e=[],t=0,r=Tl;t").replace(zc,"<$2$1$4$3").replace(Vc,"$1")}function sp(e){return/^\s*(<\s*(!doctype|html|head|body)[^>]*>)/i.test(e)}function ap(e,t){var n,o,r=b.createElement.call(function(){try{np.location&&np.location.toString()}catch(e){np=b.createHTMLDocument.call(document.implementation,"title"),(op=b.createDocumentFragment.call(np))[rp]=!0}return np}(),"div"),t=(e=e.replace(Xc,$c).replace(qc,Kc).replace(Gc,Wc),b.appendChild.call(op,r),b.elementInnerHTMLSetter.call(r,e),t(r)?b.elementInnerHTMLGetter.call(r):e);return Hc(r),t=ip(t),S&&!Ae&&e!==t&&(r=t,n=e.match(Qc),o=0,t=n?r.replace(Qc,function(e){var t=n[o],r=t?t.match(Jc):null;return t&&o++,t?e.replace(Jc,function(){var e=r?r.join(""):"";return r=r&&null,e}):e}):r),t}function lp(e){return ap(e,function(e){var i=!1;return vn(e,Zc,function(e){var t,r,n,o;o=e,(r=N.getUrlAttr(o))&&b.hasAttribute.call(o,r)&&(t=P.getStoredAttrName(r),b.hasAttribute.call(o,t)&&(b.setAttribute.call(o,r,b.getAttribute.call(o,t)),b.removeAttribute.call(o,t))),r=e,b.hasAttribute.call(r,"autocomplete")&&(o=P.getStoredAttrName("autocomplete"),b.hasAttribute.call(r,o)&&(t=b.getAttribute.call(r,o),P.isAddedAutocompleteAttr("autocomplete",t)?b.removeAttribute.call(r,"autocomplete"):b.setAttribute.call(r,"autocomplete",t),b.removeAttribute.call(r,o))),r=e,(o=N.getTargetAttr(r))&&b.hasAttribute.call(r,o)&&(n=P.getStoredAttrName(o),b.hasAttribute.call(r,n)&&(b.setAttribute.call(r,o,b.getAttribute.call(r,n)),b.removeAttribute.call(r,n))),o=e,"iframe"===N.adapter.getTagName(o)&&b.hasAttribute.call(o,"sandbox")&&(r=P.getStoredAttrName("sandbox"),b.hasAttribute.call(o,r)&&(b.setAttribute.call(o,"sandbox",b.getAttribute.call(o,r)),b.removeAttribute.call(o,r))),n=e,b.hasAttribute.call(n,"style")&&(o=P.getStoredAttrName("style"),b.hasAttribute.call(n,o)&&(b.setAttribute.call(n,"style",b.getAttribute.call(n,o)),b.removeAttribute.call(n,o))),i=!0}),vn(e,ep,function(e){var t=b.nodeParentNodeGetter.call(e);t&&(b.removeChild.call(t,e),i=!0)}),vn(e,"script",function(e){var t=b.nodeTextContentGetter.call(e),r=Da(t);t!==r&&(b.nodeTextContentSetter.call(e,r),i=!0)}),vn(e,"style",function(e){var t=b.nodeTextContentGetter.call(e),r=Fl.cleanUp(t,Qt);t!==r&&(b.nodeTextContentSetter.call(e,r),i=!0)}),vn(e,tp,function(e){b.removeAttribute.call(e,a.hoverPseudoClass),b.removeAttribute.call(e,a.focusPseudoClass),i=!0}),vn(e,"hh_fake_tag_name_head, hh_fake_tag_name_body",function(e){var t=b.elementInnerHTMLGetter.call(e);-1!==t.indexOf(Rc.iframeInit)&&(b.elementInnerHTMLSetter.call(e,t.replace(Rc.iframeInit,"")),i=!0)}),i})}function cp(e,t){var f=(t=void 0===t?{}:t).parentTag,m=t.prepareDom,g=t.processedContext,y=t.isPage;return ap(e,function(e){var t=null,r=[],n=[],o=0,i=Nt.getBaseUrl(document),s=(m&&m(e),b.htmlCollectionLengthGetter.call(b.elementChildrenGetter.call(e))&&(n=b.elementQuerySelectorAll.call(e,"*"),o=b.nodeListLengthGetter.call(n)),b.elementQuerySelector.call(e,"base"));s&&Nt.updateBase(b.getAttribute.call(s,"href"),document);for(var a=0;a",gp="<"+fp+">",yp=new RegExp("^[\\S\\s]*"+mp,"g"),vp=new RegExp(gp+"[\\S\\s]*$","g"),Ep=/^<[^>]+>/g,Sp=/<\/[^<>]+>$/g,_p=/<\/?(?:[A-Za-z][^>]*)?$/g,bp="hammerhead|unclosed-element-flag",wp=(xp.prototype._cutPending=function(e){var t=e.match(_p);return this.pending=t?t[0]:"",this.pending?e.substring(0,e.length-this.pending.length):e},xp.prototype._wrapHtmlChunk=function(e){var t=this.parentTagChain.length?"<"+this.parentTagChain.join("><")+">":"";return this.isNonClosedComment&&(t+="\x3c!--"),t+mp+e+gp},xp.prototype._unwrapHtmlChunk=function(e){return e&&(e=e.replace(yp,"").replace(vp,""),this.isBeginMarkerInDOM||(e=this.isNonClosedComment?e.slice(4):e.replace(Ep,"")),this.isEndMarkerInDOM||(e=this.isNonClosedComment?e.slice(0,-3):e.replace(Sp,"")),!this.isBeginMarkerInDOM&&this.isEndMarkerInDOM&&(this.isNonClosedComment=!1),e)},xp._setUnclosedElementFlag=function(e){(Xn(e)||$n(e))&&(e[bp]=!0)},xp.hasUnclosedElementFlag=function(e){return!!e[bp]},xp._searchBeginMarker=function(e){var t=b.elementQuerySelector.call(e,dp);if(t)return t;for(t=e;b.elementFirstElementChildGetter.call(t);)t=b.elementFirstElementChildGetter.call(t);e=b.nodeParentNodeGetter.call(t);return b.nodeFirstChildGetter.call(e)!==t?t=b.nodeFirstChildGetter.call(e):Co(b.nodeFirstChildGetter.call(t))&&(t=b.nodeFirstChildGetter.call(t)),t},xp._searchEndMarker=function(e){var t=b.elementQuerySelector.call(e,fp);if(t)return t;for(t=e;b.elementLastElementChildGetter.call(t);)t=b.elementLastElementChildGetter.call(t);e=b.nodeParentNodeGetter.call(t);return b.nodeLastChildGetter.call(e)!==t?t=b.nodeLastChildGetter.call(e):Co(b.nodeLastChildGetter.call(t))&&(t=b.nodeLastChildGetter.call(t)),t},xp.prototype._updateParentTagChain=function(e,t){var r=Cn(t)!==fp?t:b.nodeParentNodeGetter.call(t);for(Co(t)&&(this.isNonClosedComment=!0,r=b.nodeParentNodeGetter.call(t)),this.parentTagChain=[];r!==e;)this.parentTagChain.unshift(Cn(r)),r=b.nodeParentNodeGetter.call(r)},xp.prototype._processBeginMarkerInContent=function(e){var t=e,r=(xp._setUnclosedElementFlag(t),this.isClosingContentEl&&(Xn(t)||$n(t))?(this.contentForProcessing=b.nodeTextContentGetter.call(this.nonClosedEl)+b.nodeTextContentGetter.call(t).replace(yp,""),b.nodeTextContentSetter.call(t,"")):(r=b.nodeTextContentGetter.call(t),b.nodeTextContentSetter.call(t,r.replace(yp,""))),e=b.createElement.call(document,dp),b.nodeParentNodeGetter.call(t));b.insertBefore.call(r,e,t)},xp._createStartsWithClosingTagRegExp=function(e){for(var t=[e.charAt(e.length-1),"?"],r=e.length-2;-1i.right?n[o]:i.right;for(o=3;oi.bottom?n[o]:i.bottom;i.height=i.bottom-i.top,i.width=i.right-i.left}}return i&&(e=ju(t),i.left+=e.left,i.top+=e.top),i}(e,t);if(e)return e}}return{height:0,left:0,top:0,width:0}}function Lu(e){var t,r,n=jo(e,"tspan")||jo(e,"tref")||"textpath"===Cn(e),o=e.getBoundingClientRect(),i={height:n?e.offsetHeight:o.height,left:o.left+(document.body.scrollLeft||document.documentElement.scrollLeft),top:o.top+(document.body.scrollTop||document.documentElement.scrollTop),width:n?e.offsetWidth:o.width};if(n)return n=jr(e),t=Hr(e),r=Hr(n),n=jo(n,"body"),{height:i.height||o.height,left:n?e.offsetLeft||t.left:r.left+e.offsetLeft,top:n?e.offsetTop||t.top:r.top+e.offsetTop,width:i.width||o.width};if(Te||S)return i;n=b.getAttribute.call(e,"stroke-width")||l(e,"stroke-width");return(n=n?+n.replace(/px|em|ex|pt|pc|cm|mm|in/,""):1)&&+n%2!=0&&(n=+n+1),!(jo(e,"line")||jo(e,"polyline")||jo(e,"polygon")||jo(e,"path"))||i.width&&i.height?(jo(e,"polygon")&&(i.height+=2*n,i.left-=n,i.top-=n,i.width+=2*n),i.height+=n,i.left-=n/2,i.top-=n/2,i.width+=n):!i.width&&i.height?(i.left-=n/2,i.width=n):i.width&&!i.height&&(i.height=n,i.top-=n/2),i}function ku(e){var t,r,n,o,i,s,a,l={};return(l=oo(e)?Ou(e):Lr(e)?(a=mn(t=e))?(r=ku(a),n=xr(a),o=Ir(a)===a.clientWidth?0:fn(),i=Nr(a),s=cn(a,t),s=Math.max(s-Dr(a)/i,0),{height:i,left:r.left+n.left,top:r.top+n.top+Tr(a).top+s*i,width:r.width-(n.left+n.right)-o}):ku(t):(a=ju(e),{height:(s=mo(e)?Lu(e):e.getBoundingClientRect()).height,left:a.left,top:a.top,width:s.width})).height=Math.round(l.height),l.left=Math.round(l.left),l.top=Math.round(l.top),l.width=Math.round(l.width),l}function Du(e,t,r){if("iframe"!==Cn(e))return!1;var n=ku(e),o=xr(e),e=Tr(e),i=n.left+o.left+e.left,s=n.top+o.top+e.top,a=n.left+n.width-o.right-e.right,n=n.top+n.height-o.bottom-e.bottom;return i<=t&&t<=a&&s<=r&&r<=n}function Mu(e,t,r){var n=mo(e),e=n?Lu(e):null;return{left:n?e.left+t.left:r.left+t.left,top:n?e.top+t.top:r.top+t.top}}function Ru(e,t,r,n,o){var i=xr(o),i=(t.left+=i.left,t.top+=i.top,ju(o)),o=Tr(o),s=null;return s=mo(e)?{x:(e=Lu(e)).left-(document.body.scrollLeft||document.documentElement.scrollLeft)+t.left,y:e.top-(document.body.scrollTop||document.documentElement.scrollTop)+t.top}:Hu({x:r.left+t.left,y:r.top+t.top},n),{left:i.left+s.x+o.left,top:i.top+s.y+o.top}}function ju(e,t){if(void 0===t&&(t=Math.round),oo(e))return{left:(r=Ou(e)).left,top:r.top};var r=En(e),n=Nn(e,r),o=n?pn(r):null,i=Hr(r===e?r.documentElement:e),n=(n&&o?Ru:Mu)(e,r.body?xr(r.body):{left:0,top:0},i,r,o),e=n.left,i=n.top;return"function"==typeof t&&(e=t(e),i=t(i)),{left:e,top:i}}function Hu(e,t){var t=t||document,r=kr(t),n=Dr(t),o=kr(t.body),t=Dr(t.body);return{x:e.x-(0===r&&0!==o?o:r),y:e.y-(0===n&&0!==t?t:n)}}var Bu,Fu=Object.freeze({__proto__:null,getElementRectangle:ku,shouldIgnoreEventInsideIframe:Du,getOffsetPosition:ju,offsetToClientCoords:Hu}),Uu=["button","fieldset","form","iframe","input","map","meta","object","output","param","select","textarea"],Vu=0,Fs=function(){},Gu=(Fs.prototype=HTMLCollection.prototype,e(Wu,Bu=Fs),Wu.prototype.item=function(e){return this._refreshCollection(),this._filteredCollection[e]},Object.defineProperty(Wu.prototype,"length",{get:function(){return this._refreshCollection(),this._filteredCollection.length},enumerable:!0,configurable:!0}),Wu.prototype._refreshCollection=function(){var e=this._lastNativeLength,t=b.htmlCollectionLengthGetter.call(this._collection);if(this._lastNativeLength=t,pu.isOutdated(this._tagName,this._version)||!pu.isDomContentLoaded()&&e!==t){var e=this._filteredCollection.length,t=function(e,t){for(var r=e._collection,n=e._namedProps?[]:null,o=e._filteredCollection,i=o.length=0;i=n.length?null:n[e]}}),t.namedItem&&b.objectDefineProperty(n,"namedItem",{value:function(e){return t.namedItem(e)}}),n.length===e?t:n},L.prototype._filterNodeList=function(e,t){return this._filterList(e,t,function(e){return L._filterElement(e)})},L.prototype._filterStyleSheetList=function(e,t){return this._filterList(e,t,function(e){return L._filterElement(e.ownerNode)})},L._getFirstNonShadowElement=function(e){for(var t=b.nodeListLengthGetter.call(e),r=0;r"+t+"",{processedContext:e}):t},configurable:!0}),b.objectDefineProperty(r,v.getProxyUrl,{value:function(e,t){var r=Nt.getBaseUrl(o.document),n=t&&t!==r,t=(n&&Nt.updateBase(t,o.document),w(e,{resourceType:it({isScript:!0})}));return n&&Nt.updateBase(r,o.document),t},configurable:!0}),b.objectDefineProperty(r,v.restArray,{value:function(e,t){return b.arraySlice.call(e,t)},configurable:!0}),b.objectDefineProperty(r,v.arrayFrom,{value:function(e){return e&&(!b.isArray.call(b.Array,e)&&"function"==typeof e[Symbol.iterator]?b.arrayFrom.call(b.Array,e):e)},configurable:!0}),b.objectDefineProperty(r,v.restObject,{value:function(e,t){for(var r={},n=0,o=b.objectKeys(e);ns[u].lastAccessed&&(p=s[c],s[c]=s[u],s[u]=p),a.push(s[c]);break}u===s.length&&l.push(s[c])}return{outdated:a,actual:l}}function yd(e){e.syncKey=e.syncKey||md(e),e.cookieStr=e.cookieStr||e.syncKey+"="+e.value}function vd(e){return e.cookieStr?e.cookieStr+";path=/":md(e)+"="+e.value+";path=/"}function Ed(e){var t=ud.exec(e)||[],r=t[1],t=t[2],n=void 0!==r&&void 0!==t&&r.split("|");return n&&n.length!==pd?null:{isServerSync:-1e.lastAccessed},generateDeleteSyncCookieStr:_d}),wd=null;function xd(){if(!wd)for(wd=window.top;wd.opener&&wd!==wd.opener;)wd=wd.opener.top;return wd}var Cd="hammerhead|command|sync-cookie-start",Td="hammerhead|command|sync-cookie-done",Ad=(Pd._getCookieSandbox=function(e){try{var t=e[_.hammerhead].sandbox.cookie;return t.document&&t}catch(e){return null}},Pd.prototype._onMsgReceived=function(e){var t=this,r=e.message,n=e.source;r.cmd===Cd?(this._cookieSandbox.syncWindowCookie(r.cookies),this._win!==this._win.top?this._messageSandbox.sendServiceMsg({id:r.id,cmd:Td},n):this._win!==xd()?this.syncBetweenWindows(r.cookies,n).then(function(){return t._messageSandbox.sendServiceMsg({id:r.id,cmd:Td},n)}):this.syncBetweenWindows(r.cookies,n)):r.cmd===Td&&(e=this._resolversMap.get(r.id))&&e()},Pd.prototype._getWindowsForSync=function(e,t,r){void 0===r&&(r=[]),t!==e&&t!==this._win.top&&r.push(t);for(var n=0,o=t.frames;nt.length&&0===e.indexOf(t)&&("/"===t.charAt(t.length-1)||"/"===e.charAt(t.length))}function jd(e){if(arguments.length){if(isNaN(e))return null}else e=b.dateNow();return e=1e3*Math.floor(e/1e3),new b.date(e)}var Hd,Bd=Object.freeze({__proto__:null,parse:Ld,formatClientString:kd,setDefaultValues:Dd,domainMatch:Md,pathMatch:Rd,getUTCDate:jd}),Fd=new b.date(0).toUTCString(),Ud=(e(Vd,Hd=r),Vd._removeAllSyncCookie=function(){for(var e=gd(b.documentCookieGetter.call(document)),t=m.get().sessionId,r=0,n=e.outdated;rr)&&(n=kd(e)),Vd._updateClientCookieStr(e.key,n)),o&&(Dd(e,t),this._syncClientCookie(e),this.syncCookie()))},Vd.prototype.syncCookie=function(){for(var e=gd(b.documentCookieGetter.call(this.document)),t=m.get().sessionId,r=[],n=0,o=e.outdated;n{try{return window.top["%hammerhead%"]}catch(e){return!0}})()||window===window.top?(this._transportWorker=new b.Worker(m.get().transportWorkerUrl,{name:"Transport"}),this._transportWorker.postMessage({cmd:"hammerhead|transport|set-initial-worker-settings",sessionId:m.get().sessionId,serviceMsgUrl:m.get().serviceMsgUrl}),this._transportWorker.addEventListener("message",function(e){return i._onWorkerMessage(e)}),this._processQueue()):o.sendServiceMsg({cmd:sg},window.top),o.on(o.SERVICE_MSG_RECEIVED_EVENT,function(e){var t,r=e.message,n=e.source,e=e.ports;r.cmd===sg?(t=new b.MessageChannel,o.sendServiceMsg({cmd:ag},n,[t.port1]),i._transportWorker.postMessage({cmd:"hammerhead|transport|handle-port"},[t.port2])):r.cmd===ag&&(i._transportWorker=e[0],i._transportWorker.onmessage=function(e){return i._onWorkerMessage(e)},i._processQueue())})},cg.prototype._processQueue=function(){for(var e=0,t=this._queue;e(e%t+t)%t,u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~-",d="_rhs";const f=(e,n)=>(e||"").replace(/^((?:[a-z0-9]+:\/\/[^/]+)?(?:\/[^/]+\/))([^]+)/i,function(e,t,r){return t+n(r)}),p=new class{constructor(e=function(){let e="";const t=u.split("");for(;0p.shuffle(e));r!==n&&history.replaceState(null,null,n);const h=O.utils.url.getProxyUrl,m=O.utils.url.parseProxyUrl;function o(e){return e.replace(/(^.*?:\/)\//,"$1")}function s(e){return e.replace(/^.*?:\/(?!\/)/,"$&/")}O.utils.url.overrideGetProxyUrl(function(e,t){return I?h(e,t):f(h(e,t),e=>o(p.shuffle(e)))}),O.utils.url.overrideParseProxyUrl(function(e){return m(f(e,e=>p.unshuffle(s(e))))}),window.overrideGetProxyUrl(r=>function(e,t){return I?r(e,t):f(r(e,t),e=>o(p.shuffle(e)))}),window.overrideParseProxyUrl(t=>function(e){return t(f(e,e=>p.unshuffle(s(e))))})}}else console.warn("cannot get session id from url")}}function i(){{const h=location.port||("https:"===location.protocol?"443":"80"),m=O.utils.url.getProxyUrl;O.utils.url.overrideGetProxyUrl(function(e,t={}){return t.proxyPort||(t.proxyPort=h),m(e,t)}),window.overrideParseProxyUrl(r=>function(e){const t=r(e);return t&&t.proxy&&(t.proxy.port||(t.proxy.port=h)),t})}{const w={HTMLAnchorElement:["href"],HTMLAreaElement:["href"],HTMLBaseElement:["href"],HTMLEmbedElement:["src"],HTMLFormElement:["action"],HTMLFrameElement:["src"],HTMLIFrameElement:["src"],HTMLImageElement:["src"],HTMLInputElement:["src"],HTMLLinkElement:["href"],HTMLMediaElement:["src"],HTMLModElement:["cite"],HTMLObjectElement:["data"],HTMLQuoteElement:["cite"],HTMLScriptElement:["src"],HTMLSourceElement:["src"],HTMLTrackElement:["src"]};for(const g in w)for(const y of w[g])if(window[g]){const v=Object.getOwnPropertyDescriptor(window[g].prototype,y),x=v.get;if(v.get=function(){return e=x.call(this),(O.utils.url.parseProxyUrl(e)||{}).destUrl||e;var e},"action"===y){const P=v.set;v.set=function(e){I=!0;try{var t=P.call(this,e)}catch(e){throw I=!1,e}return I=!1,t}}Object.defineProperty(window[g].prototype,y,v)}else console.warn("unexpected unsupported element class "+g)}{const S=`rammerhead|storage-wrapper|${O.settings._settings.sessionId}|${window.__get$(window,"location").host}|`,b=(e="")=>S+e,T=(e="")=>e.startsWith(S)?e.slice(S.length):null,E=(e,o)=>{const s=["internal","clear","key","getItem","setItem","removeItem","length"];Object.defineProperty(window,e,{configurable:!0,writable:!0,value:new Proxy(window[e],{get(e,t,r){if(s.includes(t)&&"length"!==t)return Reflect.get(e,t,r);if("length"!==t)return o[b(t)];{let e=0;for(var[n]of Object.entries(o))T(n)&&e++;return e}},set(e,t,r){return s.includes(t)||(o[b(t)]=r),!0},deleteProperty(e,t){return delete o[b(t)],!0},has(e,t){return b(t)in o||t in e},ownKeys(){const e=[];for(var[t]of Object.entries(o)){t=T(t);t&&!s.includes(t)&&e.push(t)}return e},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(o,b(t))},defineProperty(e,t,r){return s.includes(t)||Object.defineProperty(o,b(t),r),!0}})})},L=(e,n)=>{Storage.prototype[e]=new Proxy(Storage.prototype[e],{apply(e,t,r){return n.apply(t,r)}})};E("localStorage",O.storages.localStorageProxy.internal.nativeStorage),E("sessionStorage",O.storages.sessionStorageProxy.internal.nativeStorage),L("clear",function(){for(var[e]of Object.entries(this))delete this[e]}),L("key",function(e){return(Object.entries(this)[e]||[])[0]||null}),L("getItem",function(e){return this.internal.nativeStorage[b(e)]||null}),L("setItem",function(e,t){e&&(this.internal.nativeStorage[b(e)]=t)}),L("removeItem",function(e){delete this.internal.nativeStorage[b(e)]})}if(delete window.overrideGetProxyUrl,delete window.overrideParseProxyUrl,delete window.overrideIsCrossDomainWindows,window.rammerheadStartListeners){for(const M of window.rammerheadStartListeners)try{M()}catch(e){console.error(e)}delete window.rammerheadStartListeners}if(window.rammerheadDisableLocalStorageImplementation)delete window.rammerheadDisableLocalStorageImplementation;else{var r="rammerhead_synctimestamp",t=!1,n=localStorage,o=n.internal.nativeStorage,e=O.settings._settings.sessionId,s=window.__get$(window,"location").origin,i=[];try{t=!0;var a,l=function(){var e=o[r],t=parseInt(e);if(isNaN(t))return e&&console.warn("invalid timestamp retrieved from storage: "+e),null;return t}();function c(e){if(!e||"object"!=typeof e)throw new TypeError("data must be an object");for(var t in n.clear(),e)n[t]=e[t]}l?(a=f({type:"sync",timestamp:l,data:n})).timestamp&&(u(a.timestamp),c(a.data)):(a=f({type:"sync",fetch:!0})).timestamp&&(u(a.timestamp),c(a.data)),t=!1}catch(e){if("server wants to disable localStorage syncing"!==e.message)throw e;return}n.addChangeEventListener(function(e){t||-1===i.indexOf(e.key)&&i.push(e.key)}),setInterval(function(){var e=p();e&&(f({type:"update",updateData:e},function(e){u(e.timestamp)}),i=[])},5e3),document.addEventListener("visibilitychange",function(){var e;"hidden"===document.visibilityState&&(e=p())&&O.nativeMethods.sendBeacon.call(window.navigator,d(),JSON.stringify({type:"update",updateData:e}))})}function u(e){if(!e)throw new TypeError("timestamp must be defined");if(isNaN(parseInt(e)))throw new TypeError("timestamp must be a number. received"+e);o[r]=e}function d(){return"/syncLocalStorage?sessionId="+encodeURIComponent(e)+"&origin="+encodeURIComponent(s)}function f(e,t){if(!e||"object"!=typeof e)throw new TypeError("data must be an object");var r=O.createNativeXHR();function n(){if(404===r.status)throw new Error("server wants to disable localStorage syncing");if(200!==r.status)throw new Error("server sent a non 200 code. got "+r.status+". Response: "+r.responseText)}if(r.open("POST",d(),!!t),r.setRequestHeader("content-type","application/json"),r.send(JSON.stringify(e)),!t)return n(),JSON.parse(r.responseText);r.onload=function(){n(),t(JSON.parse(r.responseText))}}function p(){if(!i.length)return null;for(var e={},t=0;t Cl­assic - Stea­lth

Important: Make sure you treat this as a PRIVATE session. Do NOT share