alphana-sdk 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alphana-sdk.global.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +1 -1
- package/dist/react/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
3
3
|
or you can use record.mirror to access the mirror instance during recording.`,sr={map:{},getId(){return console.error(we),-1},getNode(){return console.error(we),null},removeNodeFromMap(){console.error(we)},has(){return console.error(we),!1},reset(){console.error(we)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(sr=new Proxy(sr,{get(t,e,r){return e==="map"&&console.error(we),Reflect.get(t,e,r)}}));function ke(t,e,r={}){let n=null,i=0;return function(...o){let s=Date.now();!i&&r.leading===!1&&(i=s);let a=e-(s-i),c=this;a<=0||a>e?(n&&(clearTimeout(n),n=null),i=s,t.apply(c,o)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{i=r.leading===!1?0:Date.now(),n=null,t.apply(c,o)},a))}}function ve(t,e,r,n,i=window){let o=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>ve(t,e,o||{},!0)}function te(t,e,r){try{if(!(e in t))return()=>{};let n=t[e],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=i,()=>{t[e]=n}}catch(n){return()=>{}}}function He(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ze(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function M(t,e,r,n){if(!t)return!1;let i=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!i)return!1;if(typeof e=="string"){if(i.classList.contains(e)||n&&i.closest("."+e)!==null)return!0}else if(Me(i,e,n))return!0;return!!(r&&(t.matches(r)||n&&i.closest(r)!==null))}function ar(t,e){return e.getId(t)!==-1}function Ke(t,e){return e.getId(t)===ge}function Et(t,e){if(me(t))return!1;let r=e.getId(t);return e.has(r)?t.parentNode&&t.parentNode.nodeType===t.DOCUMENT_NODE?!1:t.parentNode?Et(t.parentNode,e):!0:!0}function xt(t){return!!t.changedTouches}function cr(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let r=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function ze(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function Ye(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function Je(t){return!!(t!=null&&t.shadowRoot)}var Ge=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var r;return(r=this.styleIDMap.get(e))!==null&&r!==void 0?r:-1}has(e){return this.styleIDMap.has(e)}add(e,r){if(this.has(e))return this.getId(e);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};var S=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(S||{}),b=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t))(b||{}),je=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(je||{}),ae=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(ae||{});function lr(t){return"__ln"in t}var Rt=class{constructor(){this.length=0,this.head=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<e;n++)r=(r==null?void 0:r.next)||null;return r}addNode(e){let r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&lr(e.previousSibling)){let n=e.previousSibling.__ln.next;r.next=n,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(e.nextSibling&&lr(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;r.previous=n,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;this.length++}removeNode(e){let r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next&&(r.next.previous=r.previous)):(this.head=r.next,this.head&&(this.head.previous=null)),e.__ln&&delete e.__ln,this.length--)}},dr=(t,e)=>`${t}@${e}`,Qe=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],r=new Rt,n=a=>{let c=a,l=ge;for(;l===ge;)c=c&&c.nextSibling,l=c&&this.mirror.getId(c);return l},i=a=>{var c,l,d,u;let p=null;((l=(c=a.getRootNode)===null||c===void 0?void 0:c.call(a))===null||l===void 0?void 0:l.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&a.getRootNode().host&&(p=a.getRootNode().host);let g=p;for(;((u=(d=g==null?void 0:g.getRootNode)===null||d===void 0?void 0:d.call(g))===null||u===void 0?void 0:u.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&g.getRootNode().host;)g=g.getRootNode().host;let h=!this.doc.contains(a)&&(!g||!this.doc.contains(g));if(!a.parentNode||h)return;let v=me(a.parentNode)?this.mirror.getId(p):this.mirror.getId(a.parentNode),C=n(a);if(v===-1||C===-1)return r.addNode(a);let y=pe(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{ze(f,this.mirror)&&this.iframeManager.addIframe(f),Ye(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),Je(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(f,m)=>{this.iframeManager.attachIframe(f,m),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,m)=>{this.stylesheetManager.attachLinkElement(f,m)}});y&&e.push({parentId:v,nextId:C,node:y})};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let a of Array.from(this.movedSet.values()))ur(this.removes,a,this.mirror)&&!this.movedSet.has(a.parentNode)||i(a);for(let a of Array.from(this.addedSet.values()))!hr(this.droppedSet,a)&&!ur(this.removes,a,this.mirror)||hr(this.movedSet,a)?i(a):this.droppedSet.add(a);let o=null;for(;r.length;){let a=null;if(o){let c=this.mirror.getId(o.value.parentNode),l=n(o.value);c!==-1&&l!==-1&&(a=o)}if(!a)for(let c=r.length-1;c>=0;c--){let l=r.get(c);if(l){let d=this.mirror.getId(l.value.parentNode);if(n(l.value)===-1)continue;if(d!==-1){a=l;break}else{let p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let g=p.parentNode.host;if(this.mirror.getId(g)!==-1){a=l;break}}}}}if(!a){for(;r.head;)r.removeNode(r.head.value);break}o=a.previous,r.removeNode(a.value),i(a.value)}let s={texts:this.texts.map(a=>({id:this.mirror.getId(a.node),value:a.value})).filter(a=>this.mirror.has(a.id)),attributes:this.attributes.map(a=>({id:this.mirror.getId(a.node),attributes:a.attributes})).filter(a=>this.mirror.has(a.id)),removes:this.removes,adds:e};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!Ke(e.target,this.mirror))switch(e.type){case"characterData":{let r=e.target.textContent;!M(e.target,this.blockClass,this.blockSelector,!1)&&r!==e.oldValue&&this.texts.push({value:Tt(e.target,this.maskTextClass,this.maskTextSelector)&&r?this.maskTextFn?this.maskTextFn(r):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{let r=e.target,n=e.target.getAttribute(e.attributeName);if(e.attributeName==="value"&&(n=Ne({maskInputOptions:this.maskInputOptions,tagName:e.target.tagName,type:e.target.getAttribute("type"),value:n,maskInputFn:this.maskInputFn})),M(e.target,this.blockClass,this.blockSelector,!1)||n===e.oldValue)return;let i=this.attributes.find(o=>o.node===e.target);if(r.tagName==="IFRAME"&&e.attributeName==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)e.attributeName="rr_src";else return;if(i||(i={node:e.target,attributes:{}},this.attributes.push(i)),e.attributeName==="style"){let o=this.doc.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue),(i.attributes.style===void 0||i.attributes.style===null)&&(i.attributes.style={});let s=i.attributes.style;for(let a of Array.from(r.style)){let c=r.style.getPropertyValue(a),l=r.style.getPropertyPriority(a);(c!==o.style.getPropertyValue(a)||l!==o.style.getPropertyPriority(a))&&(l===""?s[a]=c:s[a]=[c,l])}for(let a of Array.from(o.style))r.style.getPropertyValue(a)===""&&(s[a]=!1)}else i.attributes[e.attributeName]=At(this.doc,r.tagName,e.attributeName,n);break}case"childList":{if(M(e.target,this.blockClass,this.blockSelector,!0))return;e.addedNodes.forEach(r=>this.genAdds(r,e.target)),e.removedNodes.forEach(r=>{let n=this.mirror.getId(r),i=me(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);M(e.target,this.blockClass,this.blockSelector,!1)||Ke(r,this.mirror)||!ar(r,this.mirror)||(this.addedSet.has(r)?(Mt(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(e.target)&&n===-1||Et(e.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[dr(n,i)]?Mt(this.movedSet,r):this.removes.push({parentId:i,id:n,isShadow:me(e.target)&&fe(e.target)?!0:void 0})),this.mapRemoves.push(r))});break}}},this.genAdds=(e,r)=>{if(this.mirror.hasNode(e)){if(Ke(e,this.mirror))return;this.movedSet.add(e);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[dr(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);M(e,this.blockClass,this.blockSelector,!1)||e.childNodes.forEach(n=>this.genAdds(n))}}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager"].forEach(r=>{this[r]=e[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Mt(t,e){t.delete(e),e.childNodes.forEach(r=>Mt(t,r))}function ur(t,e,r){return t.length===0?!1:pr(t,e,r)}function pr(t,e,r){let{parentNode:n}=e;if(!n)return!1;let i=r.getId(n);return t.some(o=>o.id===i)?!0:pr(t,n,r)}function hr(t,e){return t.size===0?!1:fr(t,e)}function fr(t,e){let{parentNode:r}=e;return r?t.has(r)?!0:fr(t,r):!1}var ue=[],vr=typeof CSSGroupingRule!="undefined",yr=typeof CSSMediaRule!="undefined",Ir=typeof CSSSupportsRule!="undefined",Cr=typeof CSSConditionRule!="undefined";function Oe(t){try{if("composedPath"in t){let e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0];return t.target}catch(e){return t.target}}function Nt(t,e){var r,n;let i=new Qe;ue.push(i),i.init(t);let o=window.MutationObserver||window.__rrMutationObserver,s=(n=(r=window==null?void 0:window.Zone)===null||r===void 0?void 0:r.__symbol__)===null||n===void 0?void 0:n.call(r,"MutationObserver");s&&window[s]&&(o=window[s]);let a=new o(i.processMutations.bind(i));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function Un({mousemoveCb:t,sampling:e,doc:r,mirror:n}){if(e.mousemove===!1)return()=>{};let i=typeof e.mousemove=="number"?e.mousemove:50,o=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500,s=[],a,c=ke(u=>{let p=Date.now()-a;t(s.map(g=>(g.timeOffset-=p,g)),u),s=[],a=null},o),l=ke(u=>{let p=Oe(u),{clientX:g,clientY:h}=xt(u)?u.changedTouches[0]:u;a||(a=Date.now()),s.push({x:g,y:h,id:n.getId(p),timeOffset:Date.now()-a}),c(typeof DragEvent!="undefined"&&u instanceof DragEvent?b.Drag:u instanceof MouseEvent?b.MouseMove:b.TouchMove)},i,{trailing:!1}),d=[_("mousemove",l,r),_("touchmove",l,r),_("drag",l,r)];return()=>{d.forEach(u=>u())}}function Vn({mouseInteractionCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[],c=l=>d=>{let u=Oe(d);if(M(u,n,i,!0))return;let p=xt(d)?d.changedTouches[0]:d;if(!p)return;let g=r.getId(u),{clientX:h,clientY:v}=p;t({type:je[l],id:g,x:h,y:v})};return Object.keys(je).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&s[l]!==!1).forEach(l=>{let d=l.toLowerCase(),u=c(l);a.push(_(d,u,e))}),()=>{a.forEach(l=>l())}}function Ot({scrollCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,sampling:o}){let s=ke(a=>{let c=Oe(a);if(!c||M(c,n,i,!0))return;let l=r.getId(c);if(c===e){let d=e.scrollingElement||e.documentElement;t({id:l,x:d.scrollLeft,y:d.scrollTop})}else t({id:l,x:c.scrollLeft,y:c.scrollTop})},o.scroll||100);return _("scroll",s,e)}function Gn({viewportResizeCb:t}){let e=-1,r=-1,n=ke(()=>{let i=He(),o=Ze();(e!==i||r!==o)&&(t({width:Number(o),height:Number(i)}),e=i,r=o)},200);return _("resize",n,window)}function gr(t,e){let r=Object.assign({},t);return e||delete r.userTriggered,r}var Hn=["INPUT","TEXTAREA","SELECT"],mr=new WeakMap;function Zn({inputCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,ignoreClass:o,maskInputOptions:s,maskInputFn:a,sampling:c,userTriggeredOnInput:l}){function d(y){let f=Oe(y),m=y.isTrusted;if(f&&f.tagName==="OPTION"&&(f=f.parentElement),!f||!f.tagName||Hn.indexOf(f.tagName)<0||M(f,n,i,!0))return;let w=f.type;if(f.classList.contains(o))return;let x=f.value,B=!1;w==="radio"||w==="checkbox"?B=f.checked:(s[f.tagName.toLowerCase()]||s[w])&&(x=Ne({maskInputOptions:s,tagName:f.tagName,type:w,value:x,maskInputFn:a})),u(f,gr({text:x,isChecked:B,userTriggered:m},l));let D=f.name;w==="radio"&&D&&B&&e.querySelectorAll(`input[type="radio"][name="${D}"]`).forEach(T=>{T!==f&&u(T,gr({text:T.value,isChecked:!B,userTriggered:!1},l))})}function u(y,f){let m=mr.get(y);if(!m||m.text!==f.text||m.isChecked!==f.isChecked){mr.set(y,f);let w=r.getId(y);t(Object.assign(Object.assign({},f),{id:w}))}}let g=(c.input==="last"?["change"]:["input","change"]).map(y=>_(y,d,e)),h=e.defaultView;if(!h)return()=>{g.forEach(y=>y())};let v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),C=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&g.push(...C.map(y=>ve(y[0],y[1],{set(){d({target:this})}},!1,h))),()=>{g.forEach(y=>y())}}function Xe(t){let e=[];function r(n,i){if(vr&&n.parentRule instanceof CSSGroupingRule||yr&&n.parentRule instanceof CSSMediaRule||Ir&&n.parentRule instanceof CSSSupportsRule||Cr&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(s)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(s)}return i}return r(t,e)}function de(t,e,r){let n,i;return t?(t.ownerNode?n=e.getId(t.ownerNode):i=r.getId(t),{styleId:i,id:n}):{}}function Kn({styleSheetRuleCb:t,mirror:e,stylesheetManager:r},{win:n}){let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=function(d,u){let{id:p,styleId:g}=de(this,e,r.styleMirror);return(p&&p!==-1||g&&g!==-1)&&t({id:p,styleId:g,adds:[{rule:d,index:u}]}),i.apply(this,[d,u])};let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=function(d){let{id:u,styleId:p}=de(this,e,r.styleMirror);return(u&&u!==-1||p&&p!==-1)&&t({id:u,styleId:p,removes:[{index:d}]}),o.apply(this,[d])};let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=function(d){let{id:u,styleId:p}=de(this,e,r.styleMirror);return(u&&u!==-1||p&&p!==-1)&&t({id:u,styleId:p,replace:d}),s.apply(this,[d])});let a;n.CSSStyleSheet.prototype.replaceSync&&(a=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=function(d){let{id:u,styleId:p}=de(this,e,r.styleMirror);return(u&&u!==-1||p&&p!==-1)&&t({id:u,styleId:p,replaceSync:d}),a.apply(this,[d])});let c={};vr?c.CSSGroupingRule=n.CSSGroupingRule:(yr&&(c.CSSMediaRule=n.CSSMediaRule),Cr&&(c.CSSConditionRule=n.CSSConditionRule),Ir&&(c.CSSSupportsRule=n.CSSSupportsRule));let l={};return Object.entries(c).forEach(([d,u])=>{l[d]={insertRule:u.prototype.insertRule,deleteRule:u.prototype.deleteRule},u.prototype.insertRule=function(p,g){let{id:h,styleId:v}=de(this.parentStyleSheet,e,r.styleMirror);return(h&&h!==-1||v&&v!==-1)&&t({id:h,styleId:v,adds:[{rule:p,index:[...Xe(this),g||0]}]}),l[d].insertRule.apply(this,[p,g])},u.prototype.deleteRule=function(p){let{id:g,styleId:h}=de(this.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||h&&h!==-1)&&t({id:g,styleId:h,removes:[{index:[...Xe(this),p]}]}),l[d].deleteRule.apply(this,[p])}}),()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=o,s&&(n.CSSStyleSheet.prototype.replace=s),a&&(n.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,u])=>{u.prototype.insertRule=l[d].insertRule,u.prototype.deleteRule=l[d].deleteRule})}}function Pt({mirror:t,stylesheetManager:e},r){var n,i,o;let s=null;r.nodeName==="#document"?s=t.getId(r):s=t.getId(r.host);let a=r.nodeName==="#document"?(n=r.defaultView)===null||n===void 0?void 0:n.Document:(o=(i=r.ownerDocument)===null||i===void 0?void 0:i.defaultView)===null||o===void 0?void 0:o.ShadowRoot,c=Object.getOwnPropertyDescriptor(a==null?void 0:a.prototype,"adoptedStyleSheets");return s===null||s===-1||!a||!c?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var l;return(l=c.get)===null||l===void 0?void 0:l.call(this)},set(l){var d;let u=(d=c.set)===null||d===void 0?void 0:d.call(this,l);if(s!==null&&s!==-1)try{e.adoptStyleSheets(l,s)}catch(p){}return u}}),()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})}function zn({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){let o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(a,c,l){var d;if(r.has(a))return o.apply(this,[a,c,l]);let{id:u,styleId:p}=de((d=this.parentRule)===null||d===void 0?void 0:d.parentStyleSheet,e,n.styleMirror);return(u&&u!==-1||p&&p!==-1)&&t({id:u,styleId:p,set:{property:a,value:c,priority:l},index:Xe(this.parentRule)}),o.apply(this,[a,c,l])};let s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(a){var c;if(r.has(a))return s.apply(this,[a]);let{id:l,styleId:d}=de((c=this.parentRule)===null||c===void 0?void 0:c.parentStyleSheet,e,n.styleMirror);return(l&&l!==-1||d&&d!==-1)&&t({id:l,styleId:d,remove:{property:a},index:Xe(this.parentRule)}),s.apply(this,[a])},()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}}function Yn({mediaInteractionCb:t,blockClass:e,blockSelector:r,mirror:n,sampling:i}){let o=a=>ke(c=>{let l=Oe(c);if(!l||M(l,e,r,!0))return;let{currentTime:d,volume:u,muted:p,playbackRate:g}=l;t({type:a,id:n.getId(l),currentTime:d,volume:u,muted:p,playbackRate:g})},i.media||500),s=[_("play",o(0)),_("pause",o(1)),_("seeked",o(2)),_("volumechange",o(3)),_("ratechange",o(4))];return()=>{s.forEach(a=>a())}}function Jn({fontCb:t,doc:e}){let r=e.defaultView;if(!r)return()=>{};let n=[],i=new WeakMap,o=r.FontFace;r.FontFace=function(c,l,d){let u=new o(c,l,d);return i.set(u,{family:c,buffer:typeof l!="string",descriptors:d,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),u};let s=te(e.fonts,"add",function(a){return function(c){return setTimeout(()=>{let l=i.get(c);l&&(t(l),i.delete(c))},0),a.apply(this,[c])}});return n.push(()=>{r.FontFace=o}),n.push(s),()=>{n.forEach(a=>a())}}function jn(t){let{doc:e,mirror:r,blockClass:n,blockSelector:i,selectionCb:o}=t,s=!0,a=()=>{let c=e.getSelection();if(!c||s&&(c!=null&&c.isCollapsed))return;s=c.isCollapsed||!1;let l=[],d=c.rangeCount||0;for(let u=0;u<d;u++){let p=c.getRangeAt(u),{startContainer:g,startOffset:h,endContainer:v,endOffset:C}=p;M(g,n,i,!0)||M(v,n,i,!0)||l.push({start:r.getId(g),startOffset:h,end:r.getId(v),endOffset:C})}o({ranges:l})};return a(),_("selectionchange",a)}function Qn(t,e){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:i,scrollCb:o,viewportResizeCb:s,inputCb:a,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:d,canvasMutationCb:u,fontCb:p,selectionCb:g}=t;t.mutationCb=(...h)=>{e.mutation&&e.mutation(...h),r(...h)},t.mousemoveCb=(...h)=>{e.mousemove&&e.mousemove(...h),n(...h)},t.mouseInteractionCb=(...h)=>{e.mouseInteraction&&e.mouseInteraction(...h),i(...h)},t.scrollCb=(...h)=>{e.scroll&&e.scroll(...h),o(...h)},t.viewportResizeCb=(...h)=>{e.viewportResize&&e.viewportResize(...h),s(...h)},t.inputCb=(...h)=>{e.input&&e.input(...h),a(...h)},t.mediaInteractionCb=(...h)=>{e.mediaInteaction&&e.mediaInteaction(...h),c(...h)},t.styleSheetRuleCb=(...h)=>{e.styleSheetRule&&e.styleSheetRule(...h),l(...h)},t.styleDeclarationCb=(...h)=>{e.styleDeclaration&&e.styleDeclaration(...h),d(...h)},t.canvasMutationCb=(...h)=>{e.canvasMutation&&e.canvasMutation(...h),u(...h)},t.fontCb=(...h)=>{e.font&&e.font(...h),p(...h)},t.selectionCb=(...h)=>{e.selection&&e.selection(...h),g(...h)}}function br(t,e={}){let r=t.doc.defaultView;if(!r)return()=>{};Qn(t,e);let n=Nt(t,t.doc),i=Un(t),o=Vn(t),s=Ot(t),a=Gn(t),c=Zn(t),l=Yn(t),d=Kn(t,{win:r}),u=Pt(t,t.doc),p=zn(t,{win:r}),g=t.collectFonts?Jn(t):()=>{},h=jn(t),v=[];for(let C of t.plugins)v.push(C.observer(C.callback,r,C.options));return()=>{ue.forEach(C=>C.reset()),n.disconnect(),i(),o(),s(),a(),c(),l(),d(),u(),p(),g(),h(),v.forEach(C=>C())}}var Pe=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,r,n,i){let o=n||this.getIdToRemoteIdMap(e),s=i||this.getRemoteIdToIdMap(e),a=o.get(r);return a||(a=this.generateIdFn(),o.set(r,a),s.set(a,r)),a}getIds(e,r){let n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return r.map(o=>this.getId(e,o,n,i))}getRemoteId(e,r,n){let i=n||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;let o=i.get(r);return o||-1}getRemoteIds(e,r){let n=this.getRemoteIdToIdMap(e);return r.map(i=>this.getRemoteId(e,i,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r}getRemoteIdToIdMap(e){let r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r}};var qe=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Pe(wt),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Pe(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,r){var n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(n=this.loadListener)===null||n===void 0||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){if(e.data.type==="rrweb"){if(!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let i=this.transformCrossOriginEvent(n,e.data.event);i&&this.wrappedEmit(i,e.data.isCheckout)}}transformCrossOriginEvent(e,r){var n;switch(r.type){case S.FullSnapshot:return this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e),{timestamp:r.timestamp,type:S.IncrementalSnapshot,data:{source:b.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case S.Meta:case S.Load:case S.DomContentLoaded:return!1;case S.Plugin:return r;case S.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case S.IncrementalSnapshot:switch(r.data.source){case b.Mutation:return r.data.adds.forEach(i=>{this.replaceIds(i,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,e)}),r.data.removes.forEach(i=>{this.replaceIds(i,e,["parentId","id"])}),r.data.attributes.forEach(i=>{this.replaceIds(i,e,["id"])}),r.data.texts.forEach(i=>{this.replaceIds(i,e,["id"])}),r;case b.Drag:case b.TouchMove:case b.MouseMove:return r.data.positions.forEach(i=>{this.replaceIds(i,e,["id"])}),r;case b.ViewportResize:return!1;case b.MediaInteraction:case b.MouseInteraction:case b.Scroll:case b.CanvasMutation:case b.Input:return this.replaceIds(r.data,e,["id"]),r;case b.StyleSheetRule:case b.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case b.Font:return r;case b.Selection:return r.data.ranges.forEach(i=>{this.replaceIds(i,e,["start","end"])}),r;case b.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(n=r.data.styles)===null||n===void 0||n.forEach(i=>{this.replaceStyleIds(i,e,["styleId"])}),r}}}replace(e,r,n,i){for(let o of i)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=e.getIds(n,r[o]):r[o]=e.getId(n,r[o]));return r}replaceIds(e,r,n){return this.replace(this.crossOriginIframeMirror,e,r,n)}replaceStyleIds(e,r,n){return this.replace(this.crossOriginIframeStyleMirror,e,r,n)}replaceIdOnNode(e,r){this.replaceIds(e,r,["id"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}};var $e=class{constructor(e){this.shadowDoms=new WeakSet,this.restorePatches=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror;let r=this;this.restorePatches.push(te(Element.prototype,"attachShadow",function(n){return function(i){let o=n.call(this,i);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,this.ownerDocument),o}}))}addShadowRoot(e,r){fe(e)&&(this.shadowDoms.has(e)||(this.shadowDoms.add(e),Nt(Object.assign(Object.assign({},this.bypassOptions),{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e),Ot(Object.assign(Object.assign({},this.bypassOptions),{scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),Pt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e)},0)))}observeAttachShadow(e){if(e.contentWindow){let r=this;this.restorePatches.push(te(e.contentWindow.HTMLElement.prototype,"attachShadow",function(n){return function(i){let o=n.call(this,i);return this.shadowRoot&&r.addShadowRoot(this.shadowRoot,e.contentDocument),o}}))}}reset(){this.restorePatches.forEach(e=>e()),this.shadowDoms=new WeakSet}};function Sr(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function wr(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(d){try{l(n.next(d))}catch(u){s(u)}}function c(d){try{l(n.throw(d))}catch(u){s(u)}}function l(d){d.done?o(d.value):i(d.value).then(a,c)}l((n=n.apply(t,e||[])).next())})}var Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xn=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(Le=0;Le<Ae.length;Le++)Xn[Ae.charCodeAt(Le)]=Le;var Le,kr=function(t){var e=new Uint8Array(t),r,n=e.length,i="";for(r=0;r<n;r+=3)i+=Ae[e[r]>>2],i+=Ae[(e[r]&3)<<4|e[r+1]>>4],i+=Ae[(e[r+1]&15)<<2|e[r+2]>>6],i+=Ae[e[r+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};var Ar=new Map;function qn(t,e){let r=Ar.get(t);return r||(r=new Map,Ar.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}var Lt=(t,e,r)=>{if(!t||!(Tr(t,e)||typeof t=="object"))return;let n=t.constructor.name,i=qn(r,n),o=i.indexOf(t);return o===-1&&(o=i.length,i.push(t)),o};function et(t,e,r){if(t instanceof Array)return t.map(n=>et(n,e,r));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){let n=t.constructor.name,i=kr(t);return{rr_type:n,base64:i}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[et(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){let n=t.constructor.name,{src:i}=t;return{rr_type:n,src:i}}else if(t instanceof HTMLCanvasElement){let n="HTMLImageElement",i=t.toDataURL();return{rr_type:n,src:i}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[et(t.data,e,r),t.width,t.height]};if(Tr(t,e)||typeof t=="object"){let n=t.constructor.name,i=Lt(t,e,r);return{rr_type:n,index:i}}}}return t}var tt=(t,e,r)=>[...t].map(n=>et(n,e,r)),Tr=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>t instanceof e[i]);function Er(t,e,r,n){let i=[],o=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof e.CanvasRenderingContext2D.prototype[s]!="function")continue;let a=te(e.CanvasRenderingContext2D.prototype,s,function(c){return function(...l){return M(this.canvas,r,n,!0)||setTimeout(()=>{let d=tt([...l],e,this);t(this.canvas,{type:ae["2D"],property:s,args:d})},0),c.apply(this,l)}});i.push(a)}catch(a){let c=ve(e.CanvasRenderingContext2D.prototype,s,{set(l){t(this.canvas,{type:ae["2D"],property:s,args:[l],setter:!0})}});i.push(c)}return()=>{i.forEach(s=>s())}}function Ft(t,e,r){let n=[];try{let i=te(t.HTMLCanvasElement.prototype,"getContext",function(o){return function(s,...a){return M(this,e,r,!0)||"__context"in this||(this.__context=s),o.apply(this,[s,...a])}});n.push(i)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(i=>i())}}function xr(t,e,r,n,i,o,s){let a=[],c=Object.getOwnPropertyNames(t);for(let l of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof t[l]!="function")continue;let d=te(t,l,function(u){return function(...p){let g=u.apply(this,p);if(Lt(g,s,this),!M(this.canvas,n,i,!0)){let h=tt([...p],s,this),v={type:e,property:l,args:h};r(this.canvas,v)}return g}});a.push(d)}catch(d){let u=ve(t,l,{set(p){r(this.canvas,{type:e,property:l,args:[p],setter:!0})}});a.push(u)}return a}function Rr(t,e,r,n,i){let o=[];return o.push(...xr(e.WebGLRenderingContext.prototype,ae.WebGL,t,r,n,i,e)),typeof e.WebGL2RenderingContext!="undefined"&&o.push(...xr(e.WebGL2RenderingContext.prototype,ae.WebGL2,t,r,n,i,e)),()=>{o.forEach(s=>s())}}var Bt=null;try{Mr=typeof module!="undefined"&&typeof module.require=="function"&&module.require("worker_threads")||typeof __non_webpack_require__=="function"&&__non_webpack_require__("worker_threads")||typeof require=="function"&&require("worker_threads"),Bt=Mr.Worker}catch(t){}var Mr;function $n(t,e){return Buffer.from(t,"base64").toString(e?"utf16":"utf8")}function Nr(t,e,r){var n=e===void 0?null:e,i=r===void 0?!1:r,o=$n(t,i),s=o.indexOf(`
|
|
4
4
|
`,10)+1,a=o.substring(s)+(n?"//# sourceMappingURL="+n:"");return function(l){return new Bt(a,Object.assign({},l,{eval:!0}))}}function ei(t,e){var r=atob(t);if(e){for(var n=new Uint8Array(r.length),i=0,o=r.length;i<o;++i)n[i]=r.charCodeAt(i);return String.fromCharCode.apply(null,new Uint16Array(n.buffer))}return r}function ti(t,e,r){var n=e===void 0?null:e,i=r===void 0?!1:r,o=ei(t,i),s=o.indexOf(`
|
|
5
|
-
`,10)+1,a=o.substring(s)+(n?"//# sourceMappingURL="+n:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}function Or(t,e,r){var n;return function(o){return n=n||ti(t,e,r),new Worker(n,o)}}var ri=Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]";function Pr(){return ri}function Lr(t,e,r){return Pr()?Nr(t,e,r):Or(t,e,r)}var Fr=Lr("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1V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cGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgY29uc3QgeyBpZCwgYml0bWFwLCB3aWR0aCwgaGVpZ2h0LCBkYXRhVVJMT3B0aW9ucyB9ID0gZS5kYXRhOw0KICAgICAgICAgICAgICAgI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k7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",null,!1);var rt=class{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(l)};let{sampling:r="all",win:n,blockClass:i,blockSelector:o,recordCanvas:s,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,i,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,i,o,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,r,n,i,o){let s=Ft(r,n,i),a=new Map,c=new Fr;c.onmessage=h=>{let{id:v}=h.data;if(a.set(v,!1),!("base64"in h.data))return;let{base64:C,type:y,width:f,height:m}=h.data;this.mutationCb({id:v,type:ae["2D"],commands:[{property:"clearRect",args:[0,0,f,m]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:y}]},0,0]}]})};let l=1e3/e,d=0,u,p=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(v=>{M(v,n,i,!0)||h.push(v)}),h},g=h=>{if(d&&h-d<l){u=requestAnimationFrame(g);return}d=h,p().forEach(v=>wr(this,void 0,void 0,function*(){var C;let y=this.mirror.getId(v);if(a.get(y))return;if(a.set(y,!0),["webgl","webgl2"].includes(v.__context)){let m=v.getContext(v.__context);((C=m==null?void 0:m.getContextAttributes())===null||C===void 0?void 0:C.preserveDrawingBuffer)===!1&&(m==null||m.clear(m.COLOR_BUFFER_BIT))}let f=yield createImageBitmap(v);c.postMessage({id:y,bitmap:f,width:v.width,height:v.height,dataURLOptions:o.dataURLOptions},[f])})),u=requestAnimationFrame(g)};u=requestAnimationFrame(g),this.resetObservers=()=>{s(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=Ft(e,r,n),o=Er(this.processMutation.bind(this),e,r,n),s=Rr(this.processMutation.bind(this),e,r,n,this.mirror);this.resetObservers=()=>{i(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=r=>{this.rafStamps.latestId=r,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||r===-1)return;let i=n.map(s=>Sr(s,["type"])),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:i}),this.pendingCanvasMutations.delete(e)}};var nt=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ge,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,r){if(e.length===0)return;let n={id:r,styleIds:[]},i=[];for(let o of e){let s;if(this.styleMirror.has(o))s=this.styleMirror.getId(o);else{s=this.styleMirror.add(o);let a=Array.from(o.rules||CSSRule);i.push({styleId:s,rules:a.map((c,l)=>({rule:St(c),index:l}))})}n.styleIds.push(s)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}};function L(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}var N,it,Dt,ot=!1,re=ir();function ye(t={}){let{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:l=!0,maskAllInputs:d,maskInputOptions:u,slimDOMOptions:p,maskInputFn:g,maskTextFn:h,hooks:v,packFn:C,sampling:y={},dataURLOptions:f={},mousemoveWait:m,recordCanvas:w=!1,recordCrossOriginIframes:x=!1,userTriggeredOnInput:B=!1,collectFonts:D=!1,inlineImages:T=!1,plugins:K,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:Q=new Set([])}=t,X=x?window.parent===window:!0,q=!1;if(!X)try{window.parent.document,q=!1}catch(I){q=!0}if(X&&!e)throw new Error("emit function is required");m!==void 0&&y.mousemove===void 0&&(y.mousemove=m),re.reset();let P=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u!==void 0?u:{password:!0},Y=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all"}:p||{};cr();let $,ie=0,se=I=>{for(let W of K||[])W.eventProcessor&&(I=W.eventProcessor(I));return C&&(I=C(I)),I};N=(I,W)=>{var H;if(!((H=ue[0])===null||H===void 0)&&H.isFrozen()&&I.type!==S.FullSnapshot&&!(I.type===S.IncrementalSnapshot&&I.data.source===b.Mutation)&&ue.forEach(R=>R.unfreeze()),X)e==null||e(se(I),W);else if(q){let R={type:"rrweb",event:se(I),isCheckout:W};window.parent.postMessage(R,"*")}if(I.type===S.FullSnapshot)$=I,ie=0;else if(I.type===S.IncrementalSnapshot){if(I.data.source===b.Mutation&&I.data.isAttachIframe)return;ie++;let R=n&&ie>=n,j=r&&I.timestamp-$.timestamp>r;(R||j)&&it(!0)}};let G=I=>{N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Mutation},I)}))},J=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Scroll},I)})),ce=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.CanvasMutation},I)})),O=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.AdoptedStyleSheet},I)})),ee=new nt({mutationCb:G,adoptedStyleSheetCb:O}),oe=new qe({mirror:re,mutationCb:G,stylesheetManager:ee,recordCrossOriginIframes:x,wrappedEmit:N});for(let I of K||[])I.getMirror&&I.getMirror({nodeMirror:re,crossOriginIframeMirror:oe.crossOriginIframeMirror,crossOriginIframeStyleMirror:oe.crossOriginIframeStyleMirror});Dt=new rt({recordCanvas:w,mutationCb:ce,win:window,blockClass:i,blockSelector:o,mirror:re,sampling:y.canvas,dataURLOptions:f});let Ce=new $e({mutationCb:G,scrollCb:J,bypassOptions:{blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskInputOptions:P,dataURLOptions:f,maskTextFn:h,maskInputFn:g,recordCanvas:w,inlineImages:T,sampling:y,slimDOMOptions:Y,iframeManager:oe,stylesheetManager:ee,canvasManager:Dt,keepIframeSrcFn:z},mirror:re});it=(I=!1)=>{var W,H,R,j,k,Z;N(L({type:S.Meta,data:{href:window.location.href,width:Ze(),height:He()}}),I),ee.reset(),ue.forEach(U=>U.lock());let Ee=or(document,{mirror:re,blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskAllInputs:P,maskTextFn:h,slimDOM:Y,dataURLOptions:f,recordCanvas:w,inlineImages:T,onSerialize:U=>{ze(U,re)&&oe.addIframe(U),Ye(U,re)&&ee.trackLinkElement(U),Je(U)&&Ce.addShadowRoot(U.shadowRoot,document)},onIframeLoad:(U,pt)=>{oe.attachIframe(U,pt),Ce.observeAttachShadow(U)},onStylesheetLoad:(U,pt)=>{ee.attachLinkElement(U,pt)},keepIframeSrcFn:z});if(!Ee)return console.warn("Failed to snapshot the document");N(L({type:S.FullSnapshot,data:{node:Ee,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((H=(W=document==null?void 0:document.body)===null||W===void 0?void 0:W.parentElement)===null||H===void 0?void 0:H.scrollLeft)||((R=document==null?void 0:document.body)===null||R===void 0?void 0:R.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((k=(j=document==null?void 0:document.body)===null||j===void 0?void 0:j.parentElement)===null||k===void 0?void 0:k.scrollTop)||((Z=document==null?void 0:document.body)===null||Z===void 0?void 0:Z.scrollTop)||0}}})),ue.forEach(U=>U.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ee.adoptStyleSheets(document.adoptedStyleSheets,re.getId(document))};try{let I=[];I.push(_("DOMContentLoaded",()=>{N(L({type:S.DomContentLoaded,data:{}}))}));let W=R=>{var j;return br({mutationCb:G,mousemoveCb:(k,Z)=>N(L({type:S.IncrementalSnapshot,data:{source:Z,positions:k}})),mouseInteractionCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.MouseInteraction},k)})),scrollCb:J,viewportResizeCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.ViewportResize},k)})),inputCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Input},k)})),mediaInteractionCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.MediaInteraction},k)})),styleSheetRuleCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.StyleSheetRule},k)})),styleDeclarationCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.StyleDeclaration},k)})),canvasMutationCb:ce,fontCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Font},k)})),selectionCb:k=>{N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Selection},k)}))},blockClass:i,ignoreClass:s,maskTextClass:a,maskTextSelector:c,maskInputOptions:P,inlineStylesheet:l,sampling:y,recordCanvas:w,inlineImages:T,userTriggeredOnInput:B,collectFonts:D,doc:R,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:z,blockSelector:o,slimDOMOptions:Y,dataURLOptions:f,mirror:re,iframeManager:oe,stylesheetManager:ee,shadowDomManager:Ce,canvasManager:Dt,ignoreCSSAttributes:Q,plugins:((j=K==null?void 0:K.filter(k=>k.observer))===null||j===void 0?void 0:j.map(k=>({observer:k.observer,options:k.options,callback:Z=>N(L({type:S.Plugin,data:{plugin:k.name,payload:Z}}))})))||[]},v)};oe.addLoadListener(R=>{I.push(W(R.contentDocument))});let H=()=>{it(),I.push(W(document)),ot=!0};return document.readyState==="interactive"||document.readyState==="complete"?H():I.push(_("load",()=>{N(L({type:S.Load,data:{}})),H()},window)),()=>{I.forEach(R=>R()),ot=!1}}catch(I){console.warn(I)}}ye.addCustomEvent=(t,e)=>{if(!ot)throw new Error("please add custom event after start recording");N(L({type:S.Custom,data:{tag:t,payload:e}}))};ye.freezePage=()=>{ue.forEach(t=>t.freeze())};ye.takeFullSnapshot=t=>{if(!ot)throw new Error("please take full snapshot after start recording");it(t)};ye.mirror=re;var st=class{constructor(e){this.opts=e;this.seq=0;this.buffer=[];this.stopRecording=null;this.flushTimer=null}start(){var r,n,i;if(typeof document=="undefined"||this.stopRecording)return;let e={emit:o=>{this.buffer.push(o),this.buffer.length>=this.opts.maxEventsPerBatch&&this.flush()},checkoutEveryNms:(r=this.opts.checkoutEveryNms)!=null?r:6e5,inlineStylesheet:(n=this.opts.inlineStylesheet)!=null?n:!1,maskAllInputs:this.opts.maskAllInputs,maskTextClass:this.opts.maskTextClass,blockClass:this.opts.blockClass};this.stopRecording=(i=ye(e))!=null?i:null,this.flushTimer=setInterval(()=>{this.buffer.length>0&&this.flush()},this.opts.flushIntervalMs)}flush(){if(this.buffer.length===0)return;let e=this.buffer.splice(0,this.buffer.length);this.opts.emit({type:"session_replay",data:{seq:this.seq++,events:e}})}destroy(){var e;this.flushTimer!==null&&(clearInterval(this.flushTimer),this.flushTimer=null),this.flush(),(e=this.stopRecording)==null||e.call(this),this.stopRecording=null}};var Br="2.0.2";function Dr(t){var r,n;let e=t.toLowerCase();return/ipad|tablet|(android(?!.*mobile))/i.test(e)?"tablet":/mobile|android|iphone|ipod|windows phone/i.test(e)?"mobile":typeof navigator!="undefined"&&navigator.maxTouchPoints>0&&typeof window!="undefined"&&((n=(r=window.matchMedia)==null?void 0:r.call(window,"(pointer: coarse)"))==null?void 0:n.matches)&&/macintosh|mac os x/i.test(e)?"tablet":"desktop"}function ni(t){return/windows/i.test(t)?"Windows":/android/i.test(t)?"Android":/iphone|ipad|ipod/i.test(t)?"iOS":/mac os x|macintosh/i.test(t)?"macOS":/linux/i.test(t)?"Linux":"Other"}function ii(t){return/edg\//i.test(t)?"Edge":/opr\/|opera/i.test(t)?"Opera":/chrome\/[0-9]/i.test(t)&&!/chromium/i.test(t)?"Chrome":/firefox\/[0-9]/i.test(t)?"Firefox":/safari\/[0-9]/i.test(t)&&!/chrome/i.test(t)?"Safari":"Other"}function oi(){let e=navigator.userAgentData;return e?{mobile:e.mobile,platform:e.platform}:{}}function si(t,e){var n;let r=((n=e.platform)!=null?n:"").toLowerCase();return r==="ios"||r==="ipados"||r==="android"?e.mobile?"mobile":"tablet":e.mobile===!0?"mobile":Dr(t)}function _r(t){var a,c,l,d,u,p,g,h,v,C,y,f;if(typeof window=="undefined"||typeof navigator=="undefined")return{sessionId:t,timestamp:Date.now(),device:"desktop",os:"Other",browser:"Other",language:"",languages:[],colorScheme:"",screenWidth:0,screenHeight:0,viewportWidth:0,viewportHeight:0,devicePixelRatio:1,timeZone:"",sdkVersion:Br};let e=navigator.userAgent||"",r=oi(),n=r.mobile!==void 0||r.platform?si(e,r):Dr(e),i="";(c=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: dark)"))!=null&&c.matches?i="dark":(d=(l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: light)"))!=null&&d.matches&&(i="light");let o="";try{o=(u=Intl.DateTimeFormat().resolvedOptions().timeZone)!=null?u:""}catch(m){o=""}let s=typeof navigator.languages!="undefined"&&navigator.languages.length?[...navigator.languages]:navigator.language?[navigator.language]:[];return{sessionId:t,timestamp:Date.now(),device:n,os:ni(e),browser:ii(e),language:navigator.language||"",languages:s,colorScheme:i,screenWidth:(g=(p=window.screen)==null?void 0:p.width)!=null?g:0,screenHeight:(v=(h=window.screen)==null?void 0:h.height)!=null?v:0,viewportWidth:(C=window.innerWidth)!=null?C:0,viewportHeight:(y=window.innerHeight)!=null?y:0,devicePixelRatio:(f=window.devicePixelRatio)!=null?f:1,timeZone:o,sdkVersion:Br}}function ai(t){var n;let e=(n=t.getAttribute("data-alphana-amount"))==null?void 0:n.trim();if(!e)return;let r=Number(e);return Number.isFinite(r)?r:void 0}function ci(t){var r;return((r=t.getAttribute("data-alphana-currency"))==null?void 0:r.trim())||void 0}function li(t){var r;return((r=t.getAttribute("data-alphana-event-name"))==null?void 0:r.trim())||void 0}function di(t,e){var n;if(!t||typeof t.getAttribute!="function"||typeof t.id!="string")return null;let r=t;for(;r;){let i=(n=r.id)==null?void 0:n.trim();if(i){let o=e.get(i);if(o)return{binding:o,matchedEl:r}}r=r.parentElement}return null}function ui(t,e){var o,s,a;let r=(o=ai(t))!=null?o:e.value,n=(s=ci(t))!=null?s:e.currency;if(r==null||!n)return null;let i=(a=li(t))!=null?a:e.eventName;return{amount:r,currency:n,eventName:i}}var at=class{constructor(e){this.handlers=e;this.bindingsById=new Map;this.attached=!1;this.onClick=e=>{let r=di(e.target,this.bindingsById);if(!r)return;let{binding:n,matchedEl:i}=r;if(n.eventKind==="goal"){this.handlers.onGoal(n);return}let o=ui(i,n);if(!o){typeof console!="undefined"&&console.debug("[alphana-sdk] revenue element click skipped: missing amount/currency",n.elementId);return}this.handlers.onRevenue(n,o.amount,o.currency,o.eventName)}}setBindings(e){this.bindingsById=new Map(e.filter(r=>typeof r.elementId=="string"&&r.elementId.trim()).map(r=>[r.elementId.trim(),r]))}start(){typeof document=="undefined"||this.attached||(document.addEventListener("click",this.onClick,!0),this.attached=!0)}destroy(){!this.attached||typeof document=="undefined"||(document.removeEventListener("click",this.onClick,!0),this.attached=!1)}};var Wr="alphana-cookie-consent",hi="https://alphana.ir",pi="https://alphana.ir/logo/Fav-Alphana.png";function Te(){var t;typeof document!="undefined"&&((t=document.getElementById(Wr))==null||t.remove())}function Ur(t,e){var w;if(typeof document=="undefined")return;Te();let r=document.createElement("div");r.id=Wr,r.setAttribute("data-alphana-widget","cookie-consent"),Object.assign(r.style,{all:"initial",position:"fixed",left:"0",right:"0",bottom:"0",zIndex:"2147483646",pointerEvents:"none"});let n=r.attachShadow({mode:"open"}),i=document.documentElement.getAttribute("dir")==="rtl"||/^(fa|ar|he|ur)/i.test(document.documentElement.lang)?"rtl":"ltr",o=t.theme,s=i==="rtl"?"\u0633\u06CC\u0627\u0633\u062A \u062D\u0631\u06CC\u0645 \u062E\u0635\u0648\u0635\u06CC":"Privacy policy",a=i==="rtl"?"\u0642\u062F\u0631\u062A\u200C\u06AF\u0631\u0641\u062A\u0647 \u0627\u0632 Alphana":"Powered by Alphana",c=document.createElement("style");c.textContent=`
|
|
5
|
+
`,10)+1,a=o.substring(s)+(n?"//# sourceMappingURL="+n:""),c=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(c)}function Or(t,e,r){var n;return function(o){return n=n||ti(t,e,r),new Worker(n,o)}}var ri=Object.prototype.toString.call(typeof process!="undefined"?process:0)==="[object process]";function Pr(){return ri}function Lr(t,e,r){return Pr()?Nr(t,e,r):Or(t,e,r)}var Fr=Lr("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCS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GVyKHRoaXMsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICAgICAgY29uc3QgaWQgPSBgJHt3aWR0aH0tJHtoZWlnaHR9YDsNCiAgICAgICAgICAgIGlmICgnT2Zmc2NyZWVuQ2FudmFzJyBpbiBnbG9iYWxUaGlzKSB7DQogICAgICAgICAgICAgICAgaWYgKHRyYW5zcGFyZW50QmxvYk1hcC5oYXMoaWQpKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNwYXJlbnRCbG9iTWFwLmdldChpZCk7DQogICAgICAgICAgICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsNCiAgICAgICAgICAgICAgICBvZmZzY3JlZW4uZ2V0Q29udGV4dCgnMmQnKTsNCiAgICAgICAgICAgICAgICBjb25zdCBibG9iID0geWllbGQgb2Zmc2NyZWVuLmNvbnZlcnRUb0Jsb2IoZGF0YVVSTE9wdGlvbnMpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0geWllbGQgYmxvYi5hcnJheUJ1ZmZlcigpOw0KICAgICAgICAgICAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7DQogICAgICAgICAgICAgICAgdHJhbnNwYXJlbnRCbG9iTWFwLnNldChpZCwgYmFzZTY0KTsNCiAgICAgICAgICAgICAgICByZXR1cm4gYmFzZTY0Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICcnOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9KTsNCiAgICB9DQogICAgY29uc3Qgd29ya2VyID0gc2VsZjsNCiAgICB3b3JrZXIub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsNCiAgICAgICAgcmV0dXJuIF9fYXdhaXRlcih0aGlzLCB2b2lkIDAsIHZvaWQgMC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AgICAgICAgcmV0dXJuIHdvcmtlci5wb3N0TWVzc2FnZSh7IGlkIH0pOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7DQogICAgICAgICAgICAgICAgd29ya2VyLnBvc3RNZXNzYWdlKHsNCiAgICAgICAgICAgICAgICAgICAgaWQsDQogICAgICAgICAgICAgICAgICAgIHR5cGUsDQogICAgICAgICAgICAgICAgICAgIGJhc2U2NCwNCiAgICAgICAgICAgICAgICAgICAgd2lkdGgsDQogICAgICAgICAgICAgICAgICAgIGhlaWdodCwNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgfTsKCn0pKCk7Cgo=",null,!1);var rt=class{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(l)};let{sampling:r="all",win:n,blockClass:i,blockSelector:o,recordCanvas:s,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,i,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,i,o,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,r,n,i,o){let s=Ft(r,n,i),a=new Map,c=new Fr;c.onmessage=h=>{let{id:v}=h.data;if(a.set(v,!1),!("base64"in h.data))return;let{base64:C,type:y,width:f,height:m}=h.data;this.mutationCb({id:v,type:ae["2D"],commands:[{property:"clearRect",args:[0,0,f,m]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:y}]},0,0]}]})};let l=1e3/e,d=0,u,p=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(v=>{M(v,n,i,!0)||h.push(v)}),h},g=h=>{if(d&&h-d<l){u=requestAnimationFrame(g);return}d=h,p().forEach(v=>wr(this,void 0,void 0,function*(){var C;let y=this.mirror.getId(v);if(a.get(y))return;if(a.set(y,!0),["webgl","webgl2"].includes(v.__context)){let m=v.getContext(v.__context);((C=m==null?void 0:m.getContextAttributes())===null||C===void 0?void 0:C.preserveDrawingBuffer)===!1&&(m==null||m.clear(m.COLOR_BUFFER_BIT))}let f=yield createImageBitmap(v);c.postMessage({id:y,bitmap:f,width:v.width,height:v.height,dataURLOptions:o.dataURLOptions},[f])})),u=requestAnimationFrame(g)};u=requestAnimationFrame(g),this.resetObservers=()=>{s(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let i=Ft(e,r,n),o=Er(this.processMutation.bind(this),e,r,n),s=Rr(this.processMutation.bind(this),e,r,n,this.mirror);this.resetObservers=()=>{i(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=r=>{this.rafStamps.latestId=r,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||r===-1)return;let i=n.map(s=>Sr(s,["type"])),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:i}),this.pendingCanvasMutations.delete(e)}};var nt=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ge,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,r){if(e.length===0)return;let n={id:r,styleIds:[]},i=[];for(let o of e){let s;if(this.styleMirror.has(o))s=this.styleMirror.getId(o);else{s=this.styleMirror.add(o);let a=Array.from(o.rules||CSSRule);i.push({styleId:s,rules:a.map((c,l)=>({rule:St(c),index:l}))})}n.styleIds.push(s)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}};function L(t){return Object.assign(Object.assign({},t),{timestamp:Date.now()})}var N,it,Dt,ot=!1,re=ir();function ye(t={}){let{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",maskTextClass:a="rr-mask",maskTextSelector:c=null,inlineStylesheet:l=!0,maskAllInputs:d,maskInputOptions:u,slimDOMOptions:p,maskInputFn:g,maskTextFn:h,hooks:v,packFn:C,sampling:y={},dataURLOptions:f={},mousemoveWait:m,recordCanvas:w=!1,recordCrossOriginIframes:x=!1,userTriggeredOnInput:B=!1,collectFonts:D=!1,inlineImages:T=!1,plugins:K,keepIframeSrcFn:z=()=>!1,ignoreCSSAttributes:Q=new Set([])}=t,X=x?window.parent===window:!0,q=!1;if(!X)try{window.parent.document,q=!1}catch(I){q=!0}if(X&&!e)throw new Error("emit function is required");m!==void 0&&y.mousemove===void 0&&(y.mousemove=m),re.reset();let P=d===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u!==void 0?u:{password:!0},Y=p===!0||p==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:p==="all",headMetaDescKeywords:p==="all"}:p||{};cr();let $,ie=0,se=I=>{for(let W of K||[])W.eventProcessor&&(I=W.eventProcessor(I));return C&&(I=C(I)),I};N=(I,W)=>{var H;if(!((H=ue[0])===null||H===void 0)&&H.isFrozen()&&I.type!==S.FullSnapshot&&!(I.type===S.IncrementalSnapshot&&I.data.source===b.Mutation)&&ue.forEach(R=>R.unfreeze()),X)e==null||e(se(I),W);else if(q){let R={type:"rrweb",event:se(I),isCheckout:W};window.parent.postMessage(R,"*")}if(I.type===S.FullSnapshot)$=I,ie=0;else if(I.type===S.IncrementalSnapshot){if(I.data.source===b.Mutation&&I.data.isAttachIframe)return;ie++;let R=n&&ie>=n,j=r&&I.timestamp-$.timestamp>r;(R||j)&&it(!0)}};let G=I=>{N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Mutation},I)}))},J=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Scroll},I)})),ce=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.CanvasMutation},I)})),O=I=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.AdoptedStyleSheet},I)})),ee=new nt({mutationCb:G,adoptedStyleSheetCb:O}),oe=new qe({mirror:re,mutationCb:G,stylesheetManager:ee,recordCrossOriginIframes:x,wrappedEmit:N});for(let I of K||[])I.getMirror&&I.getMirror({nodeMirror:re,crossOriginIframeMirror:oe.crossOriginIframeMirror,crossOriginIframeStyleMirror:oe.crossOriginIframeStyleMirror});Dt=new rt({recordCanvas:w,mutationCb:ce,win:window,blockClass:i,blockSelector:o,mirror:re,sampling:y.canvas,dataURLOptions:f});let Ce=new $e({mutationCb:G,scrollCb:J,bypassOptions:{blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskInputOptions:P,dataURLOptions:f,maskTextFn:h,maskInputFn:g,recordCanvas:w,inlineImages:T,sampling:y,slimDOMOptions:Y,iframeManager:oe,stylesheetManager:ee,canvasManager:Dt,keepIframeSrcFn:z},mirror:re});it=(I=!1)=>{var W,H,R,j,k,Z;N(L({type:S.Meta,data:{href:window.location.href,width:Ze(),height:He()}}),I),ee.reset(),ue.forEach(U=>U.lock());let Ee=or(document,{mirror:re,blockClass:i,blockSelector:o,maskTextClass:a,maskTextSelector:c,inlineStylesheet:l,maskAllInputs:P,maskTextFn:h,slimDOM:Y,dataURLOptions:f,recordCanvas:w,inlineImages:T,onSerialize:U=>{ze(U,re)&&oe.addIframe(U),Ye(U,re)&&ee.trackLinkElement(U),Je(U)&&Ce.addShadowRoot(U.shadowRoot,document)},onIframeLoad:(U,pt)=>{oe.attachIframe(U,pt),Ce.observeAttachShadow(U)},onStylesheetLoad:(U,pt)=>{ee.attachLinkElement(U,pt)},keepIframeSrcFn:z});if(!Ee)return console.warn("Failed to snapshot the document");N(L({type:S.FullSnapshot,data:{node:Ee,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((H=(W=document==null?void 0:document.body)===null||W===void 0?void 0:W.parentElement)===null||H===void 0?void 0:H.scrollLeft)||((R=document==null?void 0:document.body)===null||R===void 0?void 0:R.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((k=(j=document==null?void 0:document.body)===null||j===void 0?void 0:j.parentElement)===null||k===void 0?void 0:k.scrollTop)||((Z=document==null?void 0:document.body)===null||Z===void 0?void 0:Z.scrollTop)||0}}})),ue.forEach(U=>U.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ee.adoptStyleSheets(document.adoptedStyleSheets,re.getId(document))};try{let I=[];I.push(_("DOMContentLoaded",()=>{N(L({type:S.DomContentLoaded,data:{}}))}));let W=R=>{var j;return br({mutationCb:G,mousemoveCb:(k,Z)=>N(L({type:S.IncrementalSnapshot,data:{source:Z,positions:k}})),mouseInteractionCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.MouseInteraction},k)})),scrollCb:J,viewportResizeCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.ViewportResize},k)})),inputCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Input},k)})),mediaInteractionCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.MediaInteraction},k)})),styleSheetRuleCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.StyleSheetRule},k)})),styleDeclarationCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.StyleDeclaration},k)})),canvasMutationCb:ce,fontCb:k=>N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Font},k)})),selectionCb:k=>{N(L({type:S.IncrementalSnapshot,data:Object.assign({source:b.Selection},k)}))},blockClass:i,ignoreClass:s,maskTextClass:a,maskTextSelector:c,maskInputOptions:P,inlineStylesheet:l,sampling:y,recordCanvas:w,inlineImages:T,userTriggeredOnInput:B,collectFonts:D,doc:R,maskInputFn:g,maskTextFn:h,keepIframeSrcFn:z,blockSelector:o,slimDOMOptions:Y,dataURLOptions:f,mirror:re,iframeManager:oe,stylesheetManager:ee,shadowDomManager:Ce,canvasManager:Dt,ignoreCSSAttributes:Q,plugins:((j=K==null?void 0:K.filter(k=>k.observer))===null||j===void 0?void 0:j.map(k=>({observer:k.observer,options:k.options,callback:Z=>N(L({type:S.Plugin,data:{plugin:k.name,payload:Z}}))})))||[]},v)};oe.addLoadListener(R=>{I.push(W(R.contentDocument))});let H=()=>{it(),I.push(W(document)),ot=!0};return document.readyState==="interactive"||document.readyState==="complete"?H():I.push(_("load",()=>{N(L({type:S.Load,data:{}})),H()},window)),()=>{I.forEach(R=>R()),ot=!1}}catch(I){console.warn(I)}}ye.addCustomEvent=(t,e)=>{if(!ot)throw new Error("please add custom event after start recording");N(L({type:S.Custom,data:{tag:t,payload:e}}))};ye.freezePage=()=>{ue.forEach(t=>t.freeze())};ye.takeFullSnapshot=t=>{if(!ot)throw new Error("please take full snapshot after start recording");it(t)};ye.mirror=re;var st=class{constructor(e){this.opts=e;this.seq=0;this.buffer=[];this.stopRecording=null;this.flushTimer=null}start(){var r,n,i;if(typeof document=="undefined"||this.stopRecording)return;let e={emit:o=>{this.buffer.push(o),this.buffer.length>=this.opts.maxEventsPerBatch&&this.flush()},checkoutEveryNms:(r=this.opts.checkoutEveryNms)!=null?r:6e5,inlineStylesheet:(n=this.opts.inlineStylesheet)!=null?n:!1,maskAllInputs:this.opts.maskAllInputs,maskTextClass:this.opts.maskTextClass,blockClass:this.opts.blockClass};this.stopRecording=(i=ye(e))!=null?i:null,this.flushTimer=setInterval(()=>{this.buffer.length>0&&this.flush()},this.opts.flushIntervalMs)}flush(){if(this.buffer.length===0)return;let e=this.buffer.splice(0,this.buffer.length);this.opts.emit({type:"session_replay",data:{seq:this.seq++,events:e}})}destroy(){var e;this.flushTimer!==null&&(clearInterval(this.flushTimer),this.flushTimer=null),this.flush(),(e=this.stopRecording)==null||e.call(this),this.stopRecording=null}};var Br="2.0.2";function Dr(t){var r,n;let e=t.toLowerCase();return/ipad|tablet|(android(?!.*mobile))/i.test(e)?"tablet":/mobile|android|iphone|ipod|windows phone/i.test(e)?"mobile":typeof navigator!="undefined"&&navigator.maxTouchPoints>0&&typeof window!="undefined"&&((n=(r=window.matchMedia)==null?void 0:r.call(window,"(pointer: coarse)"))==null?void 0:n.matches)&&/macintosh|mac os x/i.test(e)?"tablet":"desktop"}function ni(t){return/windows/i.test(t)?"Windows":/android/i.test(t)?"Android":/iphone|ipad|ipod/i.test(t)?"iOS":/mac os x|macintosh/i.test(t)?"macOS":/linux/i.test(t)?"Linux":"Other"}function ii(t){return/edg\//i.test(t)?"Edge":/opr\/|opera/i.test(t)?"Opera":/chrome\/[0-9]/i.test(t)&&!/chromium/i.test(t)?"Chrome":/firefox\/[0-9]/i.test(t)?"Firefox":/safari\/[0-9]/i.test(t)&&!/chrome/i.test(t)?"Safari":"Other"}function oi(){let e=navigator.userAgentData;return e?{mobile:e.mobile,platform:e.platform}:{}}function si(t,e){var n;let r=((n=e.platform)!=null?n:"").toLowerCase();return r==="ios"||r==="ipados"||r==="android"?e.mobile?"mobile":"tablet":e.mobile===!0?"mobile":Dr(t)}function _r(t){var a,c,l,d,u,p,g,h,v,C,y,f;if(typeof window=="undefined"||typeof navigator=="undefined")return{sessionId:t,timestamp:Date.now(),device:"desktop",os:"Other",browser:"Other",language:"",languages:[],colorScheme:"",screenWidth:0,screenHeight:0,viewportWidth:0,viewportHeight:0,devicePixelRatio:1,timeZone:"",sdkVersion:Br};let e=navigator.userAgent||"",r=oi(),n=r.mobile!==void 0||r.platform?si(e,r):Dr(e),i="";(c=(a=window.matchMedia)==null?void 0:a.call(window,"(prefers-color-scheme: dark)"))!=null&&c.matches?i="dark":(d=(l=window.matchMedia)==null?void 0:l.call(window,"(prefers-color-scheme: light)"))!=null&&d.matches&&(i="light");let o="";try{o=(u=Intl.DateTimeFormat().resolvedOptions().timeZone)!=null?u:""}catch(m){o=""}let s=typeof navigator.languages!="undefined"&&navigator.languages.length?[...navigator.languages]:navigator.language?[navigator.language]:[];return{sessionId:t,timestamp:Date.now(),device:n,os:ni(e),browser:ii(e),language:navigator.language||"",languages:s,colorScheme:i,screenWidth:(g=(p=window.screen)==null?void 0:p.width)!=null?g:0,screenHeight:(v=(h=window.screen)==null?void 0:h.height)!=null?v:0,viewportWidth:(C=window.innerWidth)!=null?C:0,viewportHeight:(y=window.innerHeight)!=null?y:0,devicePixelRatio:(f=window.devicePixelRatio)!=null?f:1,timeZone:o,sdkVersion:Br}}function ai(t){var n;let e=(n=t.getAttribute("data-alphana-amount"))==null?void 0:n.trim();if(!e)return;let r=Number(e);return Number.isFinite(r)?r:void 0}function ci(t){var r;return((r=t.getAttribute("data-alphana-currency"))==null?void 0:r.trim())||void 0}function li(t){var r;return((r=t.getAttribute("data-alphana-event-name"))==null?void 0:r.trim())||void 0}function di(t,e){var n;if(!t||typeof t.getAttribute!="function"||typeof t.id!="string")return null;let r=t;for(;r;){let i=(n=r.id)==null?void 0:n.trim();if(i){let o=e.get(i);if(o)return{binding:o,matchedEl:r}}r=r.parentElement}return null}function ui(t,e){var o,s,a;let r=(o=ai(t))!=null?o:e.value,n=(s=ci(t))!=null?s:e.currency;if(r==null||!n)return null;let i=(a=li(t))!=null?a:e.eventName;return{amount:r,currency:n,eventName:i}}var at=class{constructor(e){this.handlers=e;this.bindingsById=new Map;this.attached=!1;this.onClick=e=>{let r=di(e.target,this.bindingsById);if(!r)return;let{binding:n,matchedEl:i}=r;if(n.eventKind==="goal"){this.handlers.onGoal(n);return}let o=ui(i,n);if(!o){typeof console!="undefined"&&console.debug("[alphana-sdk] revenue element click skipped: missing amount/currency",n.elementId);return}this.handlers.onRevenue(n,o.amount,o.currency,o.eventName)}}setBindings(e){this.bindingsById=new Map(e.filter(r=>typeof r.elementId=="string"&&r.elementId.trim()).map(r=>[r.elementId.trim(),r]))}start(){typeof document=="undefined"||this.attached||(document.addEventListener("click",this.onClick,!0),this.attached=!0)}destroy(){!this.attached||typeof document=="undefined"||(document.removeEventListener("click",this.onClick,!0),this.attached=!1)}};var Wr="alphana-cookie-consent",hi="https://alphana.ir",pi="https://storage.alphana.ir/cdn/logos/Fav-Alphana.png";function Te(){var t;typeof document!="undefined"&&((t=document.getElementById(Wr))==null||t.remove())}function Ur(t,e){var w;if(typeof document=="undefined")return;Te();let r=document.createElement("div");r.id=Wr,r.setAttribute("data-alphana-widget","cookie-consent"),Object.assign(r.style,{all:"initial",position:"fixed",left:"0",right:"0",bottom:"0",zIndex:"2147483646",pointerEvents:"none"});let n=r.attachShadow({mode:"open"}),i=document.documentElement.getAttribute("dir")==="rtl"||/^(fa|ar|he|ur)/i.test(document.documentElement.lang)?"rtl":"ltr",o=t.theme,s=i==="rtl"?"\u0633\u06CC\u0627\u0633\u062A \u062D\u0631\u06CC\u0645 \u062E\u0635\u0648\u0635\u06CC":"Privacy policy",a=i==="rtl"?"\u0642\u062F\u0631\u062A\u200C\u06AF\u0631\u0641\u062A\u0647 \u0627\u0632 Alphana":"Powered by Alphana",c=document.createElement("style");c.textContent=`
|
|
6
6
|
:host { all: initial; }
|
|
7
7
|
.sheet {
|
|
8
8
|
pointer-events: auto;
|