!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7dfc2252-7b41-5f7c-b27a-93f6e7ded457")}catch(e){}}();
(()=>{var e,t,n,r={1035(e,t,n){"use strict";var r=n(5959),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=c(t),m=c(n),g=0;g<s.length;++g){var y=s[g];if(!(i[y]||r&&r[y]||m&&m[y]||a&&a[y])){var v=f(n,y);try{l(t,y,v)}catch(e){}}}}return t}},1179(e,t,n){"use strict";var r={};n.r(r),n.d(r,{Text:()=>sl,block:()=>al,destructive:()=>ll,highlighterText:()=>dl,muted:()=>ul,positive:()=>cl,upperCase:()=>fl});var o={};n.r(o),n.d(o,{getDebugEnabled:()=>Pu,getLoggingEnabled:()=>Nu,getLogs:()=>Du,getWCShippingHealthItem:()=>Au,getWPComHealthItem:()=>Ru,getWoocommerceHealthItem:()=>Mu});var i={};n.r(i),n.d(i,{init:()=>Lu,refreshServiceData:()=>Fu,toggleDebug:()=>ju});var s={};n.r(s),n.d(s,{API_REFRESH_SERVICE_DATA:()=>zu,API_SAVE_DEBUG_TOGGLE:()=>$u});var a=n(9576),c=n(1609),l=n.t(c,2),u=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),d=Math.abs,f=String.fromCharCode,p=Object.assign;function h(e){return e.trim()}function m(e,t,n){return e.replace(t,n)}function g(e,t){return e.indexOf(t)}function y(e,t){return 0|e.charCodeAt(t)}function v(e,t,n){return e.slice(t,n)}function b(e){return e.length}function w(e){return e.length}function _(e,t){return t.push(e),e}var x=1,S=1,k=0,E=0,C=0,T="";function I(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:x,column:S,length:s,return:""}}function O(e,t){return p(I("",null,null,"",null,null,0),e,{length:-e.length},t)}function M(){return C=E>0?y(T,--E):0,S--,10===C&&(S=1,x--),C}function R(){return C=E<k?y(T,E++):0,S++,10===C&&(S=1,x++),C}function A(){return y(T,E)}function D(){return E}function N(e,t){return v(T,e,t)}function P(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){return x=S=1,k=b(T=e),E=0,[]}function j(e){return T="",e}function F(e){return h(N(E-1,B(91===e?e+2:40===e?e+1:e)))}function $(e){for(;(C=A())&&C<33;)R();return P(e)>2||P(C)>3?"":" "}function z(e,t){for(;--t&&R()&&!(C<48||C>102||C>57&&C<65||C>70&&C<97););return N(e,D()+(t<6&&32==A()&&32==R()))}function B(e){for(;R();)switch(C){case e:return E;case 34:case 39:34!==e&&39!==e&&B(C);break;case 40:41===e&&B(e);break;case 92:R()}return E}function H(e,t){for(;R()&&e+C!==57&&(e+C!==84||47!==A()););return"/*"+N(t,E-1)+"*"+f(47===e?e:R())}function U(e){for(;!P(A());)R();return N(e,E)}var W="-ms-",q="-moz-",V="-webkit-",X="comm",G="rule",Y="decl",K="@keyframes";function J(e,t){for(var n="",r=w(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Y:return e.return=e.return||e.value;case X:return"";case K:return e.return=e.value+"{"+J(e.children,r)+"}";case G:e.value=e.props.join(",")}return b(n=J(e.children,r))?e.return=e.value+"{"+n+"}":""}function Z(e){return j(ee("",null,null,null,[""],e=L(e),0,[0],e))}function ee(e,t,n,r,o,i,s,a,c){for(var l=0,u=0,d=s,p=0,h=0,v=0,w=1,x=1,S=1,k=0,E="",C=o,T=i,I=r,O=E;x;)switch(v=k,k=R()){case 40:if(108!=v&&58==y(O,d-1)){-1!=g(O+=m(F(k),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:O+=F(k);break;case 9:case 10:case 13:case 32:O+=$(v);break;case 92:O+=z(D()-1,7);continue;case 47:switch(A()){case 42:case 47:_(ne(H(R(),D()),t,n),c);break;default:O+="/"}break;case 123*w:a[l++]=b(O)*S;case 125*w:case 59:case 0:switch(k){case 0:case 125:x=0;case 59+u:-1==S&&(O=m(O,/\f/g,"")),h>0&&b(O)-d&&_(h>32?re(O+";",r,n,d-1):re(m(O," ","")+";",r,n,d-2),c);break;case 59:O+=";";default:if(_(I=te(O,t,n,l,u,o,a,E,C=[],T=[],d),i),123===k)if(0===u)ee(O,t,I,I,C,i,d,a,T);else switch(99===p&&110===y(O,3)?100:p){case 100:case 108:case 109:case 115:ee(e,I,I,r&&_(te(e,I,I,0,0,o,a,E,o,C=[],d),T),o,T,d,a,r?C:T);break;default:ee(O,I,I,I,[""],T,0,a,T)}}l=u=h=0,w=S=1,E=O="",d=s;break;case 58:d=1+b(O),h=v;default:if(w<1)if(123==k)--w;else if(125==k&&0==w++&&125==M())continue;switch(O+=f(k),k*w){case 38:S=u>0?1:(O+="\f",-1);break;case 44:a[l++]=(b(O)-1)*S,S=1;break;case 64:45===A()&&(O+=F(R())),p=A(),u=d=b(E=O+=U(D())),k++;break;case 45:45===v&&2==b(O)&&(w=0)}}return i}function te(e,t,n,r,o,i,s,a,c,l,u){for(var f=o-1,p=0===o?i:[""],g=w(p),y=0,b=0,_=0;y<r;++y)for(var x=0,S=v(e,f+1,f=d(b=s[y])),k=e;x<g;++x)(k=h(b>0?p[x]+" "+S:m(S,/&\f/g,p[x])))&&(c[_++]=k);return I(e,t,n,0===o?G:a,c,l,u)}function ne(e,t,n){return I(e,t,n,X,f(C),v(e,2,-2),0)}function re(e,t,n,r){return I(e,t,n,Y,v(e,0,r),v(e,r+1,-1),r)}var oe=function(e,t,n){for(var r=0,o=0;r=o,o=A(),38===r&&12===o&&(t[n]=1),!P(o);)R();return N(e,E)},ie=new WeakMap,se=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ie.get(n))&&!r){ie.set(e,!0);for(var o=[],i=function(e,t){return j(function(e,t){var n=-1,r=44;do{switch(P(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=oe(E-1,t,n);break;case 2:e[n]+=F(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=f(r)}}while(r=R());return e}(L(e),t))}(t,o),s=n.props,a=0,c=0;a<i.length;a++)for(var l=0;l<s.length;l++,c++)e.props[c]=o[a]?i[a].replace(/&\f/g,s[l]):s[l]+" "+i[a]}}},ae=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ce(e,t){switch(function(e,t){return 45^y(e,0)?(((t<<2^y(e,0))<<2^y(e,1))<<2^y(e,2))<<2^y(e,3):0}(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+q+e+W+e+e;case 6828:case 4268:return V+e+W+e+e;case 6165:return V+e+W+"flex-"+e+e;case 5187:return V+e+m(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+W+"flex-$1$2")+e;case 5443:return V+e+W+"flex-item-"+m(e,/flex-|-self/,"")+e;case 4675:return V+e+W+"flex-line-pack"+m(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+W+m(e,"shrink","negative")+e;case 5292:return V+e+W+m(e,"basis","preferred-size")+e;case 6060:return V+"box-"+m(e,"-grow","")+V+e+W+m(e,"grow","positive")+e;case 4554:return V+m(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return m(m(m(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return m(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return m(m(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+W+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return m(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(b(e)-1-t>6)switch(y(e,t+1)){case 109:if(45!==y(e,t+4))break;case 102:return m(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+q+(108==y(e,t+3)?"$3":"$2-$3"))+e;case 115:return~g(e,"stretch")?ce(m(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==y(e,t+1))break;case 6444:switch(y(e,b(e)-3-(~g(e,"!important")&&10))){case 107:return m(e,":",":"+V)+e;case 101:return m(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(45===y(e,14)?"inline-":"")+"box$3$1"+V+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(y(e,t+11)){case 114:return V+e+W+m(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+W+m(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+W+m(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+W+e+e}return e}var le=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Y:e.return=ce(e.value,e.length);break;case K:return J([O(e,{value:m(e.value,"@","@"+V)})],r);case G:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return J([O(e,{props:[m(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return J([O(e,{props:[m(t,/:(plac\w+)/,":"+V+"input-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[m(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""}))}}],ue=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||le,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var c,l,d,f,p=[Q,(f=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],h=(l=[se,ae].concat(i,p),d=w(l),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=l[i](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,J(Z(e?e+"{"+t.styles+"}":t.styles),h),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new u({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return m.sheet.hydrate(a),m};function de(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var fe=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},pe=function(e,t,n){fe(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},he={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function me(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ge=/[A-Z]|^ms/g,ye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ve=function(e){return 45===e.charCodeAt(1)},be=function(e){return null!=e&&"boolean"!=typeof e},we=me((function(e){return ve(e)?e:e.replace(ge,"-$&").toLowerCase()})),_e=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ye,(function(e,t,n){return Se={name:t,styles:n,next:Se},t}))}return 1===he[e]||ve(e)||"number"!=typeof t||0===t?t:t+"px"};function xe(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Se={name:o.name,styles:o.styles,next:Se},o.name;var i=n;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)Se={name:s.name,styles:s.styles,next:Se},s=s.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=xe(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s){var a=s;null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":be(a)&&(r+=we(i)+":"+_e(i,a)+";")}else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var c=xe(e,t,s);switch(i){case"animation":case"animationName":r+=we(i)+":"+c+";";break;default:r+=i+"{"+c+"}"}}else for(var l=0;l<s.length;l++)be(s[l])&&(r+=we(i)+":"+_e(i,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Se,c=n(e);return Se=a,xe(e,t,c)}}var l=n;if(null==t)return l;var u=t[l];return void 0!==u?u:l}var Se,ke=/label:\s*([^\s;{]+)\s*(;|$)/g;function Ee(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Se=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=xe(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=xe(n,t,e[s]),r&&(o+=i[s]);ke.lastIndex=0;for(var a,c="";null!==(a=ke.exec(o));)c+="-"+a[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:Se}}var Ce,Te,Ie=!!c.useInsertionEffect&&c.useInsertionEffect,Oe=Ie||function(e){return e()},Me=(Ie||c.useLayoutEffect,c.createContext("undefined"!=typeof HTMLElement?ue({key:"css"}):null)),Re=(Me.Provider,function(e){return(0,c.forwardRef)((function(t,n){var r=(0,c.useContext)(Me);return e(t,r,n)}))}),Ae=c.createContext({}),De={}.hasOwnProperty,Ne="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pe=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fe(t,n,r),Oe((function(){return pe(t,n,r)})),null},Le=Re((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Ne],i=[r],s="";"string"==typeof e.className?s=de(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var a=Ee(i,void 0,c.useContext(Ae));s+=t.key+"-"+a.name;var l={};for(var u in e)De.call(e,u)&&"css"!==u&&u!==Ne&&(l[u]=e[u]);return l.className=s,n&&(l.ref=n),c.createElement(c.Fragment,null,c.createElement(Pe,{cache:t,serialized:a,isStringTag:"string"==typeof o}),c.createElement(o,l))})),je=(n(1035),function(e,t){var n=arguments;if(null==t||!De.call(t,"css"))return c.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Le,o[1]=function(e,t){var n={};for(var r in t)De.call(t,r)&&(n[r]=t[r]);return n[Ne]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return c.createElement.apply(null,o)});function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ee(t)}Ce=je||(je={}),Te||(Te=Ce.JSX||(Ce.JSX={}));const $e=window.wp.element;var ze=n(7314),Be=n.n(ze),He=n(6489),Ue=n.n(He);function We(e){return"[object Object]"===Object.prototype.toString.call(e)}function qe(e){var t,n;return!1!==We(e)&&(void 0===(t=e.constructor)||!1!==We(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}window.wp.warning;const Ve=window.ReactJSXRuntime,Xe=(0,$e.createContext)({}),Ge=()=>(0,$e.useContext)(Xe),Ye=(0,$e.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=Ge(),n=(0,$e.useRef)(e);return function(e,t){const n=(0,$e.useRef)(!1);(0,$e.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,$e.useEffect)((()=>()=>{n.current=!1}),[])}((()=>{Ue()(n.current,e)&&n.current}),[e]),(0,$e.useMemo)((()=>Be()(null!=t?t:{},null!=e?e:{},{isMergeableObject:qe})),[t,e])}({value:t});return(0,Ve.jsx)(Xe.Provider,{value:n,children:e})})),Ke="data-wp-component",Je="data-wp-c16t",Qe="__contextSystemKey__";var Ze=function(){return Ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ze.apply(this,arguments)};function et(e){return e.toLowerCase()}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var tt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],nt=/[^A-Z0-9]+/gi;function rt(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function ot(e,t){var n,r,o=0;function i(){var i,s,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(s=0;s<c;s++)if(a.args[s]!==arguments[s]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(i=new Array(c),s=0;s<c;s++)i[s]=arguments[s];return a={args:i,val:e.apply(null,i)},n?(n.prev=a,a.next=n):r=a,o===t.maxSize?(r=r.prev).next=null:o++,n=a,a.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const it=ot((function(e){var t;return`components-${void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?tt:n,o=t.stripRegexp,i=void 0===o?nt:o,s=t.transform,a=void 0===s?et:s,c=t.delimiter,l=void 0===c?" ":c,u=rt(rt(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(a).join(l)}(e,Ze({delimiter:"."},t))}(e,Ze({delimiter:"-"},t))}`}));function st(e,t){return at(e,t,{forwardsRef:!0})}function at(e,t,n){const r=n?.forwardsRef?(0,$e.forwardRef)(e):e;let o=r[Qe]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[Qe]:[...new Set(o)],displayName:t,selector:`.${it(t)}`})}function ct(e){if(!e)return[];let t=[];return e[Qe]&&(t=e[Qe]),e.type&&e.type[Qe]&&(t=e.type[Qe]),t}function lt(){return lt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lt.apply(null,arguments)}var ut=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,dt=me((function(e){return ut.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ft=function(e){return"theme"!==e},pt=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?dt:ft},ht=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},mt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return fe(t,n,r),Oe((function(){return pe(t,n,r)})),null},gt=function e(t,n){var r,o,i=t.__emotion_real===t,s=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var a=ht(t,n,i),l=a||pt(s),u=!l("as");return function(){var d=arguments,f=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&f.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var h=d.length,m=1;m<h;m++)f.push(d[m],p[m])}var g=Re((function(e,t,n){var r=u&&e.as||s,i="",d=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=c.useContext(Ae)}"string"==typeof e.className?i=de(t.registered,d,e.className):null!=e.className&&(i=e.className+" ");var m=Ee(f.concat(d),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var g=u&&void 0===a?pt(r):l,y={};for(var v in e)u&&"as"===v||g(v)&&(y[v]=e[v]);return y.className=i,n&&(y.ref=n),c.createElement(c.Fragment,null,c.createElement(mt,{cache:t,serialized:m,isStringTag:"string"==typeof r}),c.createElement(r,y))}));return g.displayName=void 0!==r?r:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=f,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(t,r){return e(t,lt({},n,r,{shouldForwardProp:ht(g,r,!0)})).apply(void 0,f)},g}};const yt=gt("div",{target:"e19lxcc00"})(""),vt=Object.assign((0,$e.forwardRef)((function({as:e,...t},n){return(0,Ve.jsx)(yt,{as:e,ref:n,...t})})),{selector:".components-view"});function bt(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function wt(e,t,n){var r=[],o=de(e,r,n);return r.length<2?n:o+t(r)}var _t=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},xt=function(){var e=ue({key:"css"});e.sheet.speedy=function(e){this.isSpeedy=e},e.compat=!0;var t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ee(n,e.registered,void 0);return pe(e,o,!1),e.key+"-"+o.name};return{css:t,cx:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wt(e.registered,t,_t(r))},injectGlobal:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ee(n,e.registered);bt(e,o)},keyframes:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=Ee(n,e.registered),i="animation-"+o.name;return bt(e,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(t){t.forEach((function(t){e.inserted[t]=!0}))},flush:function(){e.registered={},e.inserted={},e.sheet.flush()},sheet:e.sheet,cache:e,getRegisteredStyles:de.bind(null,e.registered),merge:wt.bind(null,e.registered,t)}}(),St=(xt.flush,xt.hydrate,xt.cx);xt.merge,xt.getRegisteredStyles,xt.injectGlobal,xt.keyframes,xt.css,xt.sheet,xt.cache;const kt=()=>{const e=(0,c.useContext)(Me),t=(0,$e.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return St(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(pe(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Et(e,t){const n=Ge(),r=n?.[t]||{},o={[Je]:!0,...(i=t,{[Ke]:i})};var i;const{_overrides:s,...a}=r,c=Object.entries(a).length?Object.assign({},a,e):e,l=kt()(it(t),e.className),u="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in s)o[e]=s[e];return void 0!==u&&(o.children=u),o.className=l,o}const Ct={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function Tt(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(4px * ${e})`}const It="#fff",Ot={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Mt={accent:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",accentDarker10:"var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",accentDarker20:"var(--wp-components-color-accent-darker-20, var(--wp-admin-theme-color-darker-20, #183ad6))",accentInverted:`var(--wp-components-color-accent-inverted, ${It})`,background:`var(--wp-components-color-background, ${It})`,foreground:`var(--wp-components-color-foreground, ${Ot[900]})`,foregroundInverted:`var(--wp-components-color-foreground-inverted, ${It})`,gray:{900:`var(--wp-components-color-foreground, ${Ot[900]})`,800:`var(--wp-components-color-gray-800, ${Ot[800]})`,700:`var(--wp-components-color-gray-700, ${Ot[700]})`,600:`var(--wp-components-color-gray-600, ${Ot[600]})`,400:`var(--wp-components-color-gray-400, ${Ot[400]})`,300:`var(--wp-components-color-gray-300, ${Ot[300]})`,200:`var(--wp-components-color-gray-200, ${Ot[200]})`,100:`var(--wp-components-color-gray-100, ${Ot[100]})`}},Rt={background:Mt.background,backgroundDisabled:Mt.gray[100],border:Mt.gray[600],borderHover:Mt.gray[700],borderFocus:Mt.accent,borderDisabled:Mt.gray[400],textDisabled:Mt.gray[600],darkGrayPlaceholder:`color-mix(in srgb, ${Mt.foreground}, transparent 38%)`,lightGrayPlaceholder:`color-mix(in srgb, ${Mt.background}, transparent 35%)`},At=Object.freeze({gray:Ot,white:It,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},theme:Mt,ui:Rt}),Dt="36px",Nt={controlPaddingX:12,controlPaddingXSmall:8,controlPaddingXLarge:12*1.3334,controlBoxShadowFocus:`0 0 0 0.5px ${At.theme.accent}`,controlHeight:Dt,controlHeightXSmall:`calc( ${Dt} * 0.6 )`,controlHeightSmall:`calc( ${Dt} * 0.8 )`,controlHeightLarge:`calc( ${Dt} * 1.2 )`,controlHeightXLarge:`calc( ${Dt} * 1.4 )`},Pt=Object.assign({},Nt,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusXSmall:"1px",radiusSmall:"2px",radiusMedium:"4px",radiusLarge:"8px",radiusFull:"9999px",radiusRound:"50%",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.4",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardPaddingXSmall:`${Tt(2)}`,cardPaddingSmall:`${Tt(4)}`,cardPaddingMedium:`${Tt(4)} ${Tt(6)}`,cardPaddingLarge:`${Tt(6)} ${Tt(8)}`,elevationXSmall:"0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)",elevationSmall:"0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)",elevationMedium:"0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)",elevationLarge:"0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)",surfaceBackgroundColor:At.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:At.white,surfaceColor:At.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});function Lt(e){return null!=e}function jt(e){return`0 ${e}px ${2*e}px 0\n\trgba(0, 0, 0, ${e/20})`}const Ft=st((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:a=0,value:c=0,...l}=Et(e,"Elevation"),u=kt();return{...l,className:(0,$e.useMemo)((()=>{let e=Lt(i)?i:2*c,l=Lt(t)?t:c/2;s||(e=Lt(i)?i:void 0,l=Lt(t)?t:void 0);const d=`box-shadow ${Pt.transitionDuration} ${Pt.transitionTimingFunction}`,f={};return f.Base=Fe({borderRadius:n,bottom:a,boxShadow:jt(c),opacity:Pt.elevationIntensity,left:a,right:a,top:a},Fe("@media not ( prefers-reduced-motion ){transition:",d,";}",""),"",""),Lt(e)&&(f.hover=Fe("*:hover>&{box-shadow:",jt(e),";}","")),Lt(l)&&(f.active=Fe("*:active>&{box-shadow:",jt(l),";}","")),Lt(o)&&(f.focus=Fe("*:focus>&{box-shadow:",jt(o),";}","")),u(Ct,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,u,o,i,s,a,c]),"aria-hidden":!0}}(e);return(0,Ve.jsx)(vt,{...n,ref:t})}),"Elevation"),$t=Ft,zt=`calc(${Pt.radiusLarge} - 1px)`,Bt=Fe("box-shadow:0 0 0 1px ",Pt.surfaceBorderColor,";outline:none;",""),Ht={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},Ut={name:"13udsys",styles:"height:100%"},Wt={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},qt=Fe("&:first-of-type{border-top-left-radius:",zt,";border-top-right-radius:",zt,";}&:last-of-type{border-bottom-left-radius:",zt,";border-bottom-right-radius:",zt,";}",""),Vt=Fe("border-color:",Pt.colorDivider,";",""),Xt={name:"1t90u8d",styles:"box-shadow:none"},Gt={name:"1e1ncky",styles:"border:none"},Yt=Fe("border-radius:",zt,";",""),Kt=Fe("padding:",Pt.cardPaddingXSmall,";",""),Jt={large:Fe("padding:",Pt.cardPaddingLarge,";",""),medium:Fe("padding:",Pt.cardPaddingMedium,";",""),small:Fe("padding:",Pt.cardPaddingSmall,";",""),xSmall:Kt,extraSmall:Kt},Qt=Fe("background-color:",At.ui.backgroundDisabled,";",""),Zt=window.wp.deprecated;var en=n.n(Zt);const tn=Fe("background-color:",Pt.surfaceColor,";color:",At.gray[900],";position:relative;","");function nn({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Pt.surfaceBorderColor}`;return Fe({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}Pt.surfaceBackgroundColor;const rn=Fe("",""),on=Fe("background:",Pt.surfaceBackgroundTintColor,";",""),sn=Fe("background:",Pt.surfaceBackgroundTertiaryColor,";",""),an=e=>[e,e].join(" "),cn=e=>["90deg",[Pt.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),ln=e=>[[Pt.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),un=[`linear-gradient( ${[`${Pt.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Pt.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),dn=(e,t,n)=>{switch(e){case"dotted":return((e,t)=>Fe("background:",(e=>[`linear-gradient( ${cn(e)} ) center`,`linear-gradient( ${ln(e)} ) center`,Pt.surfaceBorderBoldColor].join(","))(t),";background-size:",an(e),";",""))(t,n);case"grid":return(e=>Fe("background:",Pt.surfaceBackgroundColor,";background-image:",un,";background-size:",an(e),";",""))(t);case"primary":return rn;case"secondary":return on;case"tertiary":return sn}};const fn=st((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...a}=function(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Et(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(en()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),a=kt(),c=function(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:a="primary",...c}=Et(e,"Surface"),l=kt();return{...c,className:(0,$e.useMemo)((()=>{const e={borders:nn({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return l(tn,e.borders,dn(a,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,l,a])}}({...s,className:(0,$e.useMemo)((()=>a(Bt,r&&Xt,o&&Yt,t)),[t,a,r,o])});return{...c,elevation:n,isBorderless:r,isRounded:o,size:i}}(e),c=i?Pt.radiusLarge:0,l=kt(),u=(0,$e.useMemo)((()=>l(Fe({borderRadius:c},"",""))),[l,c]),d=(0,$e.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,Ve.jsx)(Ye,{value:d,children:(0,Ve.jsxs)(vt,{...a,ref:t,children:[(0,Ve.jsx)(vt,{className:l(Ut),children:n}),(0,Ve.jsx)($t,{className:u,isInteractive:!1,value:r?1:0}),(0,Ve.jsx)($t,{className:u,isInteractive:!1,value:r})]})})}),"Card"),pn=["40em","52em","64em"],hn={name:"zjik7",styles:"display:flex"},mn={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},gn={name:"82a6rk",styles:"flex:1"},yn={name:"13nosa1",styles:">*{min-height:0;}"},vn={name:"1pwxzk4",styles:">*{min-width:0;}"};function bn(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:a=!1,...c}=Et(function(e){const{isReversed:t,...n}=e;return void 0!==t?(en()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),l=function(e,t={}){const n=((e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>pn.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${pn.length} breakpoints, got index ${t}`);const[n,r]=(0,$e.useState)(t);return(0,$e.useEffect)((()=>{const e=()=>{const e=pn.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n})(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}(Array.isArray(r)?r:[r]),u="string"==typeof l&&!!l.includes("column"),d=kt();return{...c,className:(0,$e.useMemo)((()=>{const e=Fe({alignItems:null!=t?t:u?"normal":"center",flexDirection:l,flexWrap:a?"wrap":void 0,gap:Tt(i),justifyContent:s,height:u&&o?"100%":void 0,width:!u&&o?"100%":void 0},"","");return d(hn,e,u?yn:vn,n)}),[t,n,d,l,o,i,u,s,a]),isColumn:u}}const wn=(0,$e.createContext)({flexItemDisplay:void 0}),xn=st((function(e,t){const{children:n,isColumn:r,...o}=bn(e);return(0,Ve.jsx)(wn.Provider,{value:{flexItemDisplay:r?"block":void 0},children:(0,Ve.jsx)(vt,{...o,ref:t,children:n})})}),"Flex"),Sn=st((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Et(e,"CardHeader"),s=kt();return{...i,className:(0,$e.useMemo)((()=>s(Ht,qt,Vt,Jt[o],n&&Gt,r&&Qt,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,Ve.jsx)(xn,{...n,ref:t})}),"CardHeader"),kn=Fe("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Pt.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Pt.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Pt.colorScrollbarThumbHover,";}}",""),En={name:"13udsys",styles:"height:100%"},Cn={name:"7zq9w",styles:"scroll-behavior:smooth"},Tn={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},In={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},On={name:"umwchj",styles:"overflow-y:auto"},Mn=st((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Et(e,"Scrollable"),i=kt();return{...o,className:(0,$e.useMemo)((()=>i(En,kn,r&&Cn,"x"===n&&Tn,"y"===n&&In,"auto"===n&&On,t)),[t,i,n,r])}}(e);return(0,Ve.jsx)(vt,{...n,ref:t})}),"Scrollable"),Rn=st((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Et(e,"CardBody"),s=kt();return{...i,className:(0,$e.useMemo)((()=>s(Wt,qt,Jt[o],r&&Qt,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,Ve.jsx)(Mn,{...r,ref:t}):(0,Ve.jsx)(vt,{...r,ref:t})}),"CardBody");function An(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=An(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const Dn=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=An(e))&&(r&&(r+=" "),r+=t);return r},Nn=window.wp.compose;var Pn=Object.defineProperty,Ln=Object.defineProperties,jn=Object.getOwnPropertyDescriptors,Fn=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,zn=Object.prototype.propertyIsEnumerable,Bn=(e,t,n)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hn=(e,t)=>{for(var n in t||(t={}))$n.call(t,n)&&Bn(e,n,t[n]);if(Fn)for(var n of Fn(t))zn.call(t,n)&&Bn(e,n,t[n]);return e},Un=(e,t)=>Ln(e,jn(t)),Wn=(e,t)=>{var n={};for(var r in e)$n.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Fn)for(var r of Fn(e))t.indexOf(r)<0&&zn.call(e,r)&&(n[r]=e[r]);return n},qn=Object.defineProperty,Vn=Object.defineProperties,Xn=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,Jn=(e,t,n)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qn=(e,t)=>{for(var n in t||(t={}))Yn.call(t,n)&&Jn(e,n,t[n]);if(Gn)for(var n of Gn(t))Kn.call(t,n)&&Jn(e,n,t[n]);return e},Zn=(e,t)=>Vn(e,Xn(t));function er(...e){}function tr(e,t){return"function"==typeof Object.hasOwn?Object.hasOwn(e,t):Object.prototype.hasOwnProperty.call(e,t)}function nr(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function rr(e){return e}function or(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}function ir(e,...t){const n="function"==typeof e?e(...t):e;return null!=n&&!n}function sr(e){return e.disabled||!0===e["aria-disabled"]||"true"===e["aria-disabled"]}function ar(e){const t={};for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}function cr(...e){for(const t of e)if(void 0!==t)return t}function lr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var ur,dr="undefined"!=typeof window&&!!(null==(ur=window.document)?void 0:ur.createElement);function fr(e){return e?"self"in e?e.document:e.ownerDocument||document:document}function pr(e){return e?"self"in e?e.self:fr(e).defaultView||window:self}function hr(e,t=!1){const{activeElement:n}=fr(e);if(!(null==n?void 0:n.nodeName))return null;if(gr(n)&&n.contentDocument)return hr(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=fr(n).getElementById(e);if(t)return t}}return n}function mr(e,t){return e===t||e.contains(t)}function gr(e){return"IFRAME"===e.tagName}function yr(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==vr.indexOf(e.type)}var vr=["button","color","file","image","reset","submit"];function br(e){if("function"==typeof e.checkVisibility)return e.checkVisibility();const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}function wr(e){return e.target===e.currentTarget}function _r(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!mr(n,r)}function xr(e,t,n,r){const o=(e=>{if(r){const t=setTimeout(e,r);return()=>clearTimeout(t)}const t=requestAnimationFrame(e);return()=>cancelAnimationFrame(t)})((()=>{e.removeEventListener(t,i,!0),n()})),i=()=>{o(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),o}function Sr(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(Sr(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}for(const e of o)e()}}var kr=Hn({},l),Er=kr.useId,Cr=(kr.useDeferredValue,kr.useInsertionEffect),Tr=dr?c.useLayoutEffect:c.useEffect;function Ir(e){const t=(0,c.useRef)(e);return Tr((()=>{t.current=e})),t}function Or(e){const t=(0,c.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Cr?Cr((()=>{t.current=e})):t.current=e,(0,c.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Mr(...e){return(0,c.useMemo)((()=>{if(e.some(Boolean))return t=>{for(const n of e)lr(n,t)}}),e)}function Rr(e){if(Er){const t=Er();return e||t}const[t,n]=(0,c.useState)(e);return Tr((()=>{if(e||t)return;const r=Math.random().toString(36).slice(2,8);n(`id-${r}`)}),[e,t]),e||t}function Ar(e,t){const n=(0,c.useRef)(!1);(0,c.useEffect)((()=>{if(n.current)return e();n.current=!0}),t),(0,c.useEffect)((()=>()=>{n.current=!1}),[])}function Dr(e){return Or("function"==typeof e?e:()=>e)}function Nr(e,t,n=[]){const r=(0,c.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return Un(Hn({},e),{wrapElement:r})}function Pr(e=!1,t){const[n,r]=(0,c.useState)(null);return{portalRef:Mr(r,t),portalNode:n,domReady:!e||n}}function Lr(){return(0,c.useEffect)((()=>{Sr("mousemove",zr,!0),Sr("mousedown",Br,!0),Sr("mouseup",Br,!0),Sr("keydown",Br,!0),Sr("scroll",Br,!0)}),[]),Or((()=>jr))}var jr=!1,Fr=0,$r=0;function zr(e){(function(e){const t=e.movementX||e.screenX-Fr,n=e.movementY||e.screenY-$r;return Fr=e.screenX,$r=e.screenY,t||n||!1})(e)&&(jr=!0)}function Br(){jr=!1}function Hr(e,t){const n=e.__unstableInternals;return or(n,"Invalid store"),n[t]}function Ur(e,...t){let n=e,r=n,o=Symbol(),i=er;const s=new Set,a=new Set,c=new Set,l=new Set,u=new Set,d=new WeakMap,f=new WeakMap,p=(e,t,n=l)=>(n.add(t),f.set(t,e),()=>{var e;null==(e=d.get(t))||e(),d.delete(t),f.delete(t),n.delete(t)}),h=(e,i,s=!1)=>{var c;if(!tr(n,e))return;const p=(h=i,m=n[e],function(e){return"function"==typeof e}(h)?h(function(e){return"function"==typeof e}(m)?m():m):h);var h,m;if(p===n[e])return;if(!s)for(const n of t)null==(c=null==n?void 0:n.setState)||c.call(n,e,p);const g=n;n=Zn(Qn({},n),{[e]:p});const y=Symbol();o=y,a.add(e);const v=(t,r,o)=>{var i;const s=f.get(t);s&&!s.some((t=>o?o.has(t):t===e))||(null==(i=d.get(t))||i(),d.set(t,t(n,r)))};for(const e of l)v(e,g);queueMicrotask((()=>{if(o!==y)return;const e=n;for(const e of u)v(e,r,a);r=e,a.clear()}))},m={getState:()=>n,setState:h,__unstableInternals:{setup:e=>(c.add(e),()=>c.delete(e)),init:()=>{const e=s.size,r=Symbol();s.add(r);const o=()=>{s.delete(r),s.size||i()};if(e)return o;const a=(l=n,Object.keys(l)).map((e=>nr(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&tr(r,e))return Xr(t,[e],(t=>{h(e,t[e],!0)}))})))));var l;const u=[];for(const e of c)u.push(e());const d=t.map(qr);return i=nr(...a,...u,...d),o},subscribe:(e,t)=>p(e,t),sync:(e,t)=>(d.set(t,t(n,n)),p(e,t)),batch:(e,t)=>(d.set(t,t(n,r)),p(e,t,u)),pick:e=>Ur(function(e,t){const n={};for(const r of t)tr(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>Ur(function(e,t){const n=Qn({},e);for(const e of t)tr(n,e)&&delete n[e];return n}(n,e),m)}};return m}function Wr(e,...t){if(e)return Hr(e,"setup")(...t)}function qr(e,...t){if(e)return Hr(e,"init")(...t)}function Vr(e,...t){if(e)return Hr(e,"subscribe")(...t)}function Xr(e,...t){if(e)return Hr(e,"sync")(...t)}function Gr(e,...t){if(e)return Hr(e,"omit")(...t)}function Yr(...e){const t=e.reduce(((e,t)=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);return r?Object.assign(e,r):e}),{}),n=Ur(t,...e);return Object.assign({},...e,n)}var Kr=n(9835),{useSyncExternalStore:Jr}=Kr;function Qr(e,t=rr){const n=c.useCallback((t=>e?Vr(e,null,t):()=>{}),[e]),r=()=>{const n="string"==typeof t?t:null,r="function"==typeof t?t:null,o=null==e?void 0:e.getState();return r?r(o):o&&n&&tr(o,n)?o[n]:void 0};return Jr(n,r,r)}function Zr(e,t,n,r){const o=tr(t,n)?t[n]:void 0,i=r?t[r]:void 0,s=Ir({value:o,setValue:i});Tr((()=>Xr(e,[n],((e,t)=>{const{value:r,setValue:o}=s.current;o&&e[n]!==t[n]&&e[n]!==r&&o(e[n])}))),[e,n]),Tr((()=>{if(void 0!==o)return e.setState(n,o),function(e,...t){if(e)return Hr(e,"batch")(...t)}(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))}))}function eo(e,t){const[n,r]=c.useState((()=>e(t)));Tr((()=>qr(n)),[n]);const o=c.useCallback((e=>Qr(n,e)),[n]);return[c.useMemo((()=>Un(Hn({},n),{useState:o})),[n,o]),Or((()=>{r((n=>e(Hn(Hn({},t),n.getState()))))}))]}function to(e={}){const t=Yr(e.store,Gr(e.disclosure,["contentElement","disclosureElement"])),n=null==t?void 0:t.getState(),r=cr(e.open,null==n?void 0:n.open,e.defaultOpen,!1),o=cr(e.animated,null==n?void 0:n.animated,!1),i=Ur({open:r,animated:o,animating:!!o&&r,mounted:r,contentElement:cr(null==n?void 0:n.contentElement,null),disclosureElement:cr(null==n?void 0:n.disclosureElement,null)},t);return Wr(i,(()=>Xr(i,["animated","animating"],(e=>{e.animated||i.setState("animating",!1)})))),Wr(i,(()=>Vr(i,["open"],(()=>{i.getState().animated&&i.setState("animating",!0)})))),Wr(i,(()=>Xr(i,["open","animating"],(e=>{i.setState("mounted",e.open||e.animating)})))),Zn(Qn({},i),{disclosure:e.disclosure,setOpen:e=>i.setState("open",e),show:()=>i.setState("open",!0),hide:()=>i.setState("open",!1),toggle:()=>i.setState("open",(e=>!e)),stopAnimation:()=>i.setState("animating",!1),setContentElement:e=>i.setState("contentElement",e),setDisclosureElement:e=>i.setState("disclosureElement",e)})}function no(e,t,n){return Ar(t,[n.store,n.disclosure]),Zr(e,n,"open","setOpen"),Zr(e,n,"mounted","setMounted"),Zr(e,n,"animated"),Object.assign(e,{disclosure:n.disclosure})}function ro(e={}){return to(e)}function oo(e,t,n){return no(e,t,n)}function io(e,t,n){return Zr(e,n,"timeout"),Zr(e,n,"showTimeout"),Zr(e,n,"hideTimeout"),function(e,t,n){return Ar(t,[n.popover]),Zr(e,n,"placement"),oo(e,t,n)}(e,t,n)}function so(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=function(e={}){var t=e,{popover:n}=t,r=((e,t)=>{var n={};for(var r in e)Yn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Gn)for(var r of Gn(e))t.indexOf(r)<0&&Kn.call(e,r)&&(n[r]=e[r]);return n})(t,["popover"]);const o=Yr(r.store,Gr(n,["arrowElement","anchorElement","contentElement","popoverElement","disclosureElement"])),i=null==o?void 0:o.getState(),s=ro(Zn(Qn({},r),{store:o})),a=cr(r.placement,null==i?void 0:i.placement,"bottom"),c=Ur(Zn(Qn({},s.getState()),{placement:a,currentPlacement:a,anchorElement:cr(null==i?void 0:i.anchorElement,null),popoverElement:cr(null==i?void 0:i.popoverElement,null),arrowElement:cr(null==i?void 0:i.arrowElement,null),rendered:Symbol("rendered")}),s,o);return Zn(Qn(Qn({},s),c),{setAnchorElement:e=>c.setState("anchorElement",e),setPopoverElement:e=>c.setState("popoverElement",e),setArrowElement:e=>c.setState("arrowElement",e),render:()=>c.setState("rendered",Symbol("rendered"))})}(Zn(Qn({},e),{placement:cr(e.placement,null==n?void 0:n.placement,"bottom")})),o=cr(e.timeout,null==n?void 0:n.timeout,500),i=Ur(Zn(Qn({},r.getState()),{timeout:o,showTimeout:cr(e.showTimeout,null==n?void 0:n.showTimeout),hideTimeout:cr(e.hideTimeout,null==n?void 0:n.hideTimeout),autoFocusOnShow:cr(null==n?void 0:n.autoFocusOnShow,!1)}),r,e.store);return Zn(Qn(Qn({},r),i),{setAutoFocusOnShow:e=>i.setState("autoFocusOnShow",e)})}(Zn(Qn({},e),{placement:cr(e.placement,null==n?void 0:n.placement,"top"),hideTimeout:cr(e.hideTimeout,null==n?void 0:n.hideTimeout,0)})),o=Ur(Zn(Qn({},r.getState()),{type:cr(e.type,null==n?void 0:n.type,"description"),skipTimeout:cr(e.skipTimeout,null==n?void 0:n.skipTimeout,300)}),r,e.store);return Qn(Qn({},r),o)}function ao(e){const t=c.forwardRef(((t,n)=>e(Un(Hn({},t),{ref:n}))));return t.displayName=e.displayName||e.name,t}function co(e,t){const n=t,{wrapElement:r,render:o}=n,i=Wn(n,["wrapElement","render"]),s=Mr(t.ref,function(e){return function(e){return!!e&&!!(0,c.isValidElement)(e)&&("ref"in e.props||"ref"in e)}(e)?Hn({},e.props).ref||e.ref:null}(o));let a;if(c.isValidElement(o)){const e=Un(Hn({},o.props),{ref:s});a=c.cloneElement(o,function(e,t){const n=Hn({},e);for(const r in t){if(!tr(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?Hn(Hn({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(i,e))}else a=o?o(i):(0,Ve.jsx)(e,Hn({},i));return r?r(a):a}function lo(e){const t=(t={})=>e(t);return t.displayName=e.name,t}function uo(e=[],t=[]){const n=c.createContext(void 0),r=c.createContext(void 0),o=()=>c.useContext(n),i=t=>e.reduceRight(((e,n)=>(0,Ve.jsx)(n,Un(Hn({},t),{children:e}))),(0,Ve.jsx)(n.Provider,Hn({},t)));return{context:n,scopedContext:r,useContext:o,useScopedContext:(e=!1)=>{const t=c.useContext(r),n=o();return e?t:t||n},useProviderContext:()=>{const e=c.useContext(r),t=o();if(!e||e!==t)return t},ContextProvider:i,ScopedContextProvider:e=>(0,Ve.jsx)(i,Un(Hn({},e),{children:t.reduceRight(((t,n)=>(0,Ve.jsx)(n,Un(Hn({},e),{children:t}))),(0,Ve.jsx)(r.Provider,Hn({},e)))}))}}lo((function(e){return e}));var fo=ao((function(e){return co("div",e)}));Object.assign(fo,["a","button","details","dialog","div","form","h1","h2","h3","h4","h5","h6","header","img","input","label","li","nav","ol","p","section","select","span","summary","textarea","ul","svg"].reduce(((e,t)=>(e[t]=ao((function(e){return co(t,e)})),e)),{}));var po=uo(),ho=(po.useContext,po.useScopedContext,po.useProviderContext),mo=uo([po.ContextProvider],[po.ScopedContextProvider]),go=(mo.useContext,mo.useScopedContext,mo.useProviderContext),yo=mo.ContextProvider,vo=mo.ScopedContextProvider,bo=(0,c.createContext)(void 0),wo=(0,c.createContext)(void 0),_o=uo([yo],[vo]),xo=(_o.useContext,_o.useScopedContext,_o.useProviderContext),So=_o.ContextProvider,ko=_o.ScopedContextProvider,Eo=uo([So],[ko]),Co=(Eo.useContext,Eo.useScopedContext,Eo.useProviderContext),To=Eo.ContextProvider,Io=Eo.ScopedContextProvider,Oo=(0,c.createContext)(!0),Mo="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], summary, iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function Ro(e){return!!e.matches(Mo)&&!!br(e)&&!e.closest("[inert]")}function Ao(e){if(!Ro(e))return!1;if(function(e){return Number.parseInt(e.getAttribute("tabindex")||"0",10)<0}(e))return!1;if(!("form"in e))return!0;if(!e.form)return!0;if(e.checked)return!0;if("radio"!==e.type)return!0;const t=e.form.elements.namedItem(e.name);if(!t)return!0;if(!("length"in t))return!0;const n=hr(e);return!n||n===e||!("form"in n)||n.form!==e.form||n.name!==e.name}function Do(e,t){const n=Array.from(e.querySelectorAll(Mo));t&&n.unshift(e);const r=n.filter(Ro);return r.forEach(((e,t)=>{if(gr(e)&&e.contentDocument){const n=e.contentDocument.body;r.splice(t,1,...Do(n))}})),r}function No(e,t,n){const r=Array.from(e.querySelectorAll(Mo)),o=r.filter(Ao);return t&&Ao(e)&&o.unshift(e),o.forEach(((e,t)=>{if(gr(e)&&e.contentDocument){const r=No(e.contentDocument.body,!1,n);o.splice(t,1,...r)}})),!o.length&&n?r:o}function Po(e,t){return function(e,t,n,r){const o=hr(e),i=Do(e,!1),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ao)||(n?i.find(Ao):null)||(r?a[0]:null)||null}(document.body,0,e,t)}function Lo(e,t){return function(e,t,n,r){const o=hr(e),i=Do(e,!1).reverse(),s=i.indexOf(o),a=i.slice(s+1);return a.find(Ao)||(n?i.find(Ao):null)||(r?a[0]:null)||null}(document.body,0,e,t)}function jo(e){const t=hr(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function Fo(e){const t=hr(e);if(!t)return!1;if(mr(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}function $o(e){!Fo(e)&&Ro(e)&&e.focus()}function zo(e){var t;const n=null!=(t=e.getAttribute("tabindex"))?t:"";e.setAttribute("data-tabindex",n),e.setAttribute("tabindex","-1")}function Bo(){return!!dr&&/mac|iphone|ipad|ipod/i.test(navigator.platform)}function Ho(){return dr&&Bo()&&/apple/i.test(navigator.vendor)}var Uo=Ho(),Wo=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"],qo=Symbol("safariFocusAncestor");function Vo(e,t){e&&(e[qo]=t)}function Xo(e){return!("input"!==e.tagName.toLowerCase()||!e.type||"radio"!==e.type&&"checkbox"!==e.type)}function Go(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function Yo(e,t){return Or((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var Ko=!0;function Jo(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(Ko=!1))}function Qo(e){e.metaKey||e.ctrlKey||e.altKey||(Ko=!0)}var Zo=lo((function(e){var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,s=Wn(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const a=(0,c.useRef)(null);(0,c.useEffect)((()=>{n&&(Sr("mousedown",Jo,!0),Sr("keydown",Qo,!0))}),[n]),Uo&&(0,c.useEffect)((()=>{if(!n)return;const e=a.current;if(!e)return;if(!Xo(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));for(const e of t)e.addEventListener("mouseup",r);return()=>{for(const e of t)e.removeEventListener("mouseup",r)}}),[n]);const l=n&&sr(s),u=!!l&&!r,[d,f]=(0,c.useState)(!1);(0,c.useEffect)((()=>{n&&u&&d&&f(!1)}),[n,u,d]),(0,c.useEffect)((()=>{if(!n)return;if(!d)return;const e=a.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{Ro(e)||f(!1)}));return t.observe(e),()=>t.disconnect()}),[n,d]);const p=Yo(s.onKeyPressCapture,l),h=Yo(s.onMouseDownCapture,l),m=Yo(s.onClickCapture,l),g=s.onMouseDown,y=Or((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!Uo)return;if(function(e){return Boolean(e.currentTarget&&!mr(e.currentTarget,e.target))}(e))return;if(!yr(t)&&!Xo(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0});const i=function(e){for(;e&&!Ro(e);)e=e.closest(Mo);return e||null}(t.parentElement);Vo(i,!0),xr(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),Vo(i,!1),r||$o(t)}))})),v=(e,t)=>{if(t&&(e.currentTarget=t),!n)return;const r=e.currentTarget;r&&jo(r)&&(null==i||i(e),e.defaultPrevented||(r.dataset.focusVisible="true",f(!0)))},b=s.onKeyDownCapture,w=Or((e=>{if(null==b||b(e),e.defaultPrevented)return;if(!n)return;if(d)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!wr(e))return;const t=e.currentTarget;xr(t,"focusout",(()=>v(e,t)))})),_=s.onFocusCapture,x=Or((e=>{if(null==_||_(e),e.defaultPrevented)return;if(!n)return;if(!wr(e))return void f(!1);const t=e.currentTarget;Ko||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable||!("combobox"!==e.getAttribute("role")||!e.dataset.name):Wo.includes(r))}(e.target)?xr(e.target,"focusout",(()=>v(e,t))):f(!1)})),S=s.onBlur,k=Or((e=>{null==S||S(e),n&&_r(e)&&f(!1)})),E=(0,c.useContext)(Oo),C=Or((e=>{n&&o&&e&&E&&queueMicrotask((()=>{jo(e)||Ro(e)&&e.focus()}))})),T=function(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,c.useState)((()=>n(t)));return Tr((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}(a),I=n&&function(e){return!e||"button"===e||"summary"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),O=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=s.style,R=(0,c.useMemo)((()=>u?Hn({pointerEvents:"none"},M):M),[u,M]);return ar(s=Un(Hn({"data-focus-visible":n&&d||void 0,"data-autofocus":o||void 0,"aria-disabled":l||void 0},s),{ref:Mr(a,C,s.ref),style:R,tabIndex:Go(n,u,I,O,s.tabIndex),disabled:!(!O||!u)||void 0,contentEditable:l?void 0:s.contentEditable,onKeyPressCapture:p,onClickCapture:m,onMouseDownCapture:h,onMouseDown:y,onKeyDownCapture:w,onFocusCapture:x,onBlur:k}))})),ei=(ao((function(e){return co("div",Zo(e))})),lo((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Wn(t,["store","showOnHover"]);const i=Co();or(n=n||i,!1);const s=sr(o),a=(0,c.useRef)(0);(0,c.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,c.useEffect)((()=>Sr("mouseleave",(e=>{if(!n)return;const{anchorElement:t}=n.getState();t&&e.target===t&&(window.clearTimeout(a.current),a.current=0)}),!0)),[n]);const l=o.onMouseMove,u=Dr(r),d=Lr(),f=Or((e=>{if(null==l||l(e),s)return;if(!n)return;if(e.defaultPrevented)return;if(a.current)return;if(!d())return;if(!u(e))return;const t=e.currentTarget;n.setAnchorElement(t),n.setDisclosureElement(t);const{showTimeout:r,timeout:o}=n.getState(),i=()=>{a.current=0,d()&&(null==n||n.setAnchorElement(t),null==n||n.show(),queueMicrotask((()=>{null==n||n.setDisclosureElement(t)})))},c=null!=r?r:o;0===c?i():a.current=window.setTimeout(i,c)})),p=o.onClick,h=Or((e=>{null==p||p(e),n&&(window.clearTimeout(a.current),a.current=0)})),m=(0,c.useCallback)((e=>{if(!n)return;const{anchorElement:t}=n.getState();(null==t?void 0:t.isConnected)||n.setAnchorElement(e)}),[n]);return o=Un(Hn({},o),{ref:Mr(m,o.ref),onMouseMove:f,onClick:h}),Zo(o)}))),ti=(ao((function(e){return co("a",ei(e))})),uo([To],[Io])),ni=(ti.useContext,ti.useScopedContext,ti.useProviderContext),ri=(ti.ContextProvider,ti.ScopedContextProvider),oi=Ur({activeStore:null});function ii(e){return()=>{const{activeStore:t}=oi.getState();t===e&&oi.setState("activeStore",null)}}var si=lo((function(e){var t=e,{store:n,showOnHover:r=!0}=t,o=Wn(t,["store","showOnHover"]);const i=ni();or(n=n||i,!1);const s=(0,c.useRef)(!1);(0,c.useEffect)((()=>Xr(n,["mounted"],(e=>{e.mounted||(s.current=!1)}))),[n]),(0,c.useEffect)((()=>{if(n)return nr(ii(n),Xr(n,["mounted","skipTimeout"],(e=>{if(!n)return;if(e.mounted){const{activeStore:e}=oi.getState();return e!==n&&(null==e||e.hide()),oi.setState("activeStore",n)}const t=setTimeout(ii(n),e.skipTimeout);return()=>clearTimeout(t)})))}),[n]);const a=o.onMouseEnter,l=Or((e=>{null==a||a(e),s.current=!0})),u=o.onFocusVisible,d=Or((e=>{null==u||u(e),e.defaultPrevented||(null==n||n.setAnchorElement(e.currentTarget),null==n||n.show())})),f=o.onBlur,p=Or((e=>{if(null==f||f(e),e.defaultPrevented)return;const{activeStore:t}=oi.getState();s.current=!1,t===n&&oi.setState("activeStore",null)})),h=n.useState("type"),m=n.useState((e=>{var t;return null==(t=e.contentElement)?void 0:t.id}));return o=Un(Hn({"aria-labelledby":"label"===h?m:void 0},o),{onMouseEnter:l,onFocusVisible:d,onBlur:p}),ei(Hn({store:n,showOnHover(e){if(!s.current)return!1;if(ir(r,e))return!1;const{activeStore:t}=oi.getState();return!t||(null==n||n.show(),!1)}},o))})),ai=ao((function(e){return co("div",si(e))}));function ci(e){return[e.clientX,e.clientY]}function li(e,t){const[n,r]=e;let o=!1;for(let e=t.length,i=0,s=e-1;i<e;s=i++){const[a,c]=t[i],[l,u]=t[s],[,d]=t[0===s?e-1:s-1]||[0,0],f=(c-u)*(n-a)-(a-l)*(r-c);if(u<c){if(r>=u&&r<c){if(0===f)return!0;f>0&&(r===u?r>d&&(o=!o):o=!o)}}else if(c<u){if(r>c&&r<=u){if(0===f)return!0;f<0&&(r===u?r<d&&(o=!o):o=!o)}}else if(r===c&&(n>=l&&n<=a||n>=a&&n<=l))return!0}return o}function ui(e,t){const n=e.getBoundingClientRect(),{top:r,right:o,bottom:i,left:s}=n,[a,c]=function(e,t){const{top:n,right:r,bottom:o,left:i}=t,[s,a]=e;return[s<i?"left":s>r?"right":null,a<n?"top":a>o?"bottom":null]}(t,n),l=[t];return a?("top"!==c&&l.push(["left"===a?s:o,r]),l.push(["left"===a?o:s,r]),l.push(["left"===a?o:s,i]),"bottom"!==c&&l.push(["left"===a?s:o,i])):"top"===c?(l.push([s,r]),l.push([s,i]),l.push([o,i]),l.push([o,r])):(l.push([s,i]),l.push([s,r]),l.push([o,r]),l.push([o,i])),l}function di(e,...t){if(!e)return!1;const n=e.getAttribute("data-backdrop");return null!=n&&(""===n||"true"===n||!t.length||t.some((e=>n===e)))}var fi=new WeakMap;function pi(e,t,n){fi.has(e)||fi.set(e,new Map);const r=fi.get(e),o=r.get(t);if(!o)return r.set(t,n()),()=>{var e;null==(e=r.get(t))||e(),r.delete(t)};const i=n(),s=()=>{i(),o(),r.delete(t)};return r.set(t,s),()=>{r.get(t)===s&&(i(),r.set(t,o))}}function hi(e,t,n){return pi(e,t,(()=>{const r=e.getAttribute(t);return e.setAttribute(t,n),()=>{null==r?e.removeAttribute(t):e.setAttribute(t,r)}}))}function mi(e,t,n){return pi(e,t,(()=>{const r=t in e,o=e[t];return e[t]=n,()=>{r?e[t]=o:delete e[t]}}))}function gi(e,t){return e?pi(e,"style",(()=>{const n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}})):()=>{}}var yi=["SCRIPT","STYLE"];function vi(e){return`__ariakit-dialog-snapshot-${e}`}function bi(e,t,n){return!yi.includes(t.tagName)&&!!function(e,t){const n=fr(t),r=vi(e);if(!n.body[r])return!0;for(;;){if(t===n.body)return!1;if(t[r])return!0;if(!t.parentElement)return!1;t=t.parentElement}}(e,t)&&!n.some((e=>e&&mr(t,e)))}function wi(e,t,n,r){for(let o of t){if(!(null==o?void 0:o.isConnected))continue;const i=t.some((e=>!!e&&e!==o&&e.contains(o))),s=fr(o),a=o;for(;o.parentElement&&o!==s.body;){if(null==r||r(o.parentElement,a),!i)for(const r of o.parentElement.children)bi(e,r,t)&&n(r,a);o=o.parentElement}}}function _i(e="",t=!1){return`__ariakit-dialog-${t?"ancestor":"outside"}${e?`-${e}`:""}`}function xi(e,t=""){return nr(mi(e,_i("",!0),!0),mi(e,_i(t,!0),!0))}function Si(e,t){if(e[_i(t,!0)])return!0;const n=_i(t);for(;;){if(e[n])return!0;if(!e.parentElement)return!1;e=e.parentElement}}function ki(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return wi(e,t,(t=>{di(t,...r)||n.unshift(function(e,t=""){return nr(mi(e,_i(),!0),mi(e,_i(t),!0))}(t,e))}),((t,r)=>{r.hasAttribute("data-dialog")&&r.id!==e||n.unshift(xi(t,e))})),()=>{for(const e of n)e()}}var Ei=n(5795);function Ci(e,t){const n=setTimeout(t,e);return()=>clearTimeout(n)}function Ti(...e){return e.join(", ").split(", ").reduce(((e,t)=>{const n=t.endsWith("ms")?1:1e3,r=Number.parseFloat(t||"0s")*n;return r>e?r:e}),0)}function Ii(e,t,n){return!(n||!1===t||e&&!t)}var Oi=lo((function(e){var t=e,{store:n,alwaysVisible:r}=t,o=Wn(t,["store","alwaysVisible"]);const i=ho();or(n=n||i,!1);const s=(0,c.useRef)(null),a=Rr(o.id),[l,u]=(0,c.useState)(null),d=n.useState("open"),f=n.useState("mounted"),p=n.useState("animated"),h=n.useState("contentElement"),m=Qr(n.disclosure,"contentElement");Tr((()=>{s.current&&(null==n||n.setContentElement(s.current))}),[n]),Tr((()=>{let e;return null==n||n.setState("animated",(t=>(e=t,!0))),()=>{void 0!==e&&(null==n||n.setState("animated",e))}}),[n]),Tr((()=>{if(p){if(null==h?void 0:h.isConnected)return function(e){let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}((()=>{u(d?"enter":f?"leave":null)}));u(null)}}),[p,h,d,f]),Tr((()=>{if(!n)return;if(!p)return;if(!l)return;if(!h)return;const e=()=>null==n?void 0:n.setState("animating",!1),t=()=>(0,Ei.flushSync)(e);if("leave"===l&&d)return;if("enter"===l&&!d)return;if("number"==typeof p)return Ci(p,t);const{transitionDuration:r,animationDuration:o,transitionDelay:i,animationDelay:s}=getComputedStyle(h),{transitionDuration:a="0",animationDuration:c="0",transitionDelay:u="0",animationDelay:f="0"}=m?getComputedStyle(m):{},g=Ti(i,s,u,f)+Ti(r,o,a,c);return g?Ci(Math.max(g-1e3/60,0),t):("enter"===l&&n.setState("animated",!1),void e())}),[n,p,h,m,d,l]),o=Nr(o,(e=>(0,Ve.jsx)(vo,{value:n,children:e})),[n]);const g=Ii(f,o.hidden,r),y=o.style,v=(0,c.useMemo)((()=>g?Un(Hn({},y),{display:"none"}):y),[g,y]);return ar(o=Un(Hn({id:a,"data-open":d||void 0,"data-enter":"enter"===l||void 0,"data-leave":"leave"===l||void 0,hidden:g},o),{ref:Mr(a?n.setContentElement:null,s,o.ref),style:v}))})),Mi=ao((function(e){return co("div",Oi(e))}));function Ri({store:e,backdrop:t,alwaysVisible:n,hidden:r}){const o=(0,c.useRef)(null),i=function(e={}){const[t,n]=eo(to,e);return no(t,n,e)}({disclosure:e}),s=Qr(e,"contentElement");(0,c.useEffect)((()=>{const e=o.current,t=s;e&&t&&(e.style.zIndex=getComputedStyle(t).zIndex)}),[s]),Tr((()=>{const e=null==s?void 0:s.id;if(!e)return;const t=o.current;return t?xi(t,e):void 0}),[s]);const a=Oi({ref:o,store:i,role:"presentation","data-backdrop":(null==s?void 0:s.id)||"",alwaysVisible:n,hidden:null!=r?r:void 0,style:{position:"fixed",top:0,right:0,bottom:0,left:0}});if(!t)return null;if((0,c.isValidElement)(t))return(0,Ve.jsx)(fo,Un(Hn({},a),{render:t}));const l="boolean"!=typeof t?t:"div";return(0,Ve.jsx)(fo,Un(Hn({},a),{render:(0,Ve.jsx)(l,{})}))}function Ai(){return"inert"in HTMLElement.prototype}function Di(e,t){if(!("style"in e))return er;if(Ai())return mi(e,"inert",!0);const n=No(e,!0).map((e=>{if(null==t?void 0:t.some((t=>t&&mr(t,e))))return er;const n=pi(e,"focus",(()=>(e.focus=er,()=>{delete e.focus})));return nr(hi(e,"tabindex","-1"),n)}));return nr(...n,function(e){return hi(e,"aria-hidden","true")}(e),gi(e,{pointerEvents:"none",userSelect:"none",cursor:"default"}))}function Ni(e,t,n){const r=function({attribute:e,contentId:t,contentElement:n,enabled:r}){const[o,i]=(0,c.useReducer)((()=>[]),[]),s=(0,c.useCallback)((()=>{if(!r)return!1;if(!n)return!1;const{body:o}=fr(n),i=o.getAttribute(e);return!i||i===t}),[o,r,n,e,t]);return(0,c.useEffect)((()=>{if(!r)return;if(!t)return;if(!n)return;const{body:o}=fr(n);if(s())return o.setAttribute(e,t),()=>o.removeAttribute(e);const a=new MutationObserver((()=>(0,Ei.flushSync)(i)));return a.observe(o,{attributeFilter:[e]}),()=>a.disconnect()}),[o,r,t,n,s,e]),s}({attribute:"data-dialog-prevent-body-scroll",contentElement:e,contentId:t,enabled:n});(0,c.useEffect)((()=>{if(!r())return;if(!e)return;const t=fr(e),n=pr(e),{documentElement:o,body:i}=t,s=o.style.getPropertyValue("--scrollbar-width"),a=s?Number.parseInt(s):n.innerWidth-o.clientWidth,c=function(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}(o),l=Bo()&&!(dr&&navigator.platform.startsWith("Mac")&&(!dr||!navigator.maxTouchPoints));return nr((d="--scrollbar-width",f=`${a}px`,(u=o)?pi(u,d,(()=>{const e=u.style.getPropertyValue(d);return u.style.setProperty(d,f),()=>{e?u.style.setProperty(d,e):u.style.removeProperty(d)}})):()=>{}),l?(()=>{var e,t;const{scrollX:r,scrollY:o,visualViewport:s}=n,l=null!=(e=null==s?void 0:s.offsetLeft)?e:0,u=null!=(t=null==s?void 0:s.offsetTop)?t:0,d=gi(i,{position:"fixed",overflow:"hidden",top:-(o-Math.floor(u))+"px",left:-(r-Math.floor(l))+"px",right:"0",[c]:`${a}px`});return()=>{d(),n.scrollTo({left:r,top:o,behavior:"instant"})}})():gi(i,{overflow:"hidden",[c]:`${a}px`}));var u,d,f}),[r,e])}ao((function(e){var t=e,{unmountOnHide:n}=t,r=Wn(t,["unmountOnHide"]);const o=ho();return!1===Qr(r.store||o,(e=>!n||(null==e?void 0:e.mounted)))?null:(0,Ve.jsx)(Mi,Hn({},r))}));var Pi=(0,c.createContext)({});function Li({store:e,type:t,listener:n,capture:r,domReady:o}){const i=Or(n),s=Qr(e,"open"),a=(0,c.useRef)(!1);Tr((()=>{if(!s)return;if(!o)return;const{contentElement:t}=e.getState();if(!t)return;const n=()=>{a.current=!0};return t.addEventListener("focusin",n,!0),()=>t.removeEventListener("focusin",n,!0)}),[e,s,o]),(0,c.useEffect)((()=>{if(s)return Sr(t,(t=>{const{contentElement:n,disclosureElement:r}=e.getState(),o=t.target;var s;n&&(o&&function(e){return"HTML"===e.tagName||mr(fr(e).body,e)}(o)&&(mr(n,o)||function(e,t){if(!e)return!1;if(mr(e,t))return!0;const n=t.getAttribute("aria-activedescendant");if(n){const t=fr(e).getElementById(n);if(t)return mr(e,t)}return!1}(r,o)||o.hasAttribute("data-focus-trap")||function(e,t){if(!("clientY"in e))return!1;const n=t.getBoundingClientRect();return 0!==n.width&&0!==n.height&&n.top<=e.clientY&&e.clientY<=n.top+n.height&&n.left<=e.clientX&&e.clientX<=n.left+n.width}(t,n)||a.current&&!Si(o,n.id)||(s=o)&&s[qo]||i(t)))}),r)}),[s,r])}function ji(e,t){return"function"==typeof e?e(t):!!e}var Fi=lo((function(e){var t=e,{autoFocusOnShow:n=!0}=t,r=Wn(t,["autoFocusOnShow"]);return Nr(r,(e=>(0,Ve.jsx)(Oo.Provider,{value:n,children:e})),[n])})),$i=(ao((function(e){return co("div",Fi(e))})),(0,c.createContext)(0));function zi({level:e,children:t}){const n=(0,c.useContext)($i),r=Math.max(Math.min(e||n+1,6),1);return(0,Ve.jsx)($i.Provider,{value:r,children:t})}var Bi=lo((function(e){return Un(Hn({},e),{style:Hn({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},e.style)})})),Hi=(ao((function(e){return co("span",Bi(e))})),lo((function(e){return e=Un(Hn({"data-focus-trap":"",tabIndex:0,"aria-hidden":!0},e),{style:Hn({position:"fixed",top:0,left:0},e.style)}),Bi(e)}))),Ui=ao((function(e){return co("span",Hi(e))})),Wi=(0,c.createContext)(null);function qi(e){queueMicrotask((()=>{null==e||e.focus()}))}var Vi=lo((function(e){var t=e,{preserveTabOrder:n,preserveTabOrderAnchor:r,portalElement:o,portalRef:i,portal:s=!0}=t,a=Wn(t,["preserveTabOrder","preserveTabOrderAnchor","portalElement","portalRef","portal"]);const l=(0,c.useRef)(null),u=Mr(l,a.ref),d=(0,c.useContext)(Wi),[f,p]=(0,c.useState)(null),[h,m]=(0,c.useState)(null),g=(0,c.useRef)(null),y=(0,c.useRef)(null),v=(0,c.useRef)(null),b=(0,c.useRef)(null);return Tr((()=>{const e=l.current;if(!e||!s)return void p(null);const t=function(e,t){return t?"function"==typeof t?t(e):t:fr(e).createElement("div")}(e,o);if(!t)return void p(null);const n=t.isConnected;if(!n){const n=d||function(e){return fr(e).body}(e);n.appendChild(t)}return t.id||(t.id=e.id?`portal/${e.id}`:function(e="id"){return`${e?`${e}-`:""}${Math.random().toString(36).slice(2,8)}`}()),p(t),lr(i,t),n?void 0:()=>{t.remove(),lr(i,null)}}),[s,o,d,i]),Tr((()=>{if(!s)return;if(!n)return;if(!r)return;const e=fr(r).createElement("span");return e.style.position="fixed",r.insertAdjacentElement("afterend",e),m(e),()=>{e.remove(),m(null)}}),[s,n,r]),(0,c.useEffect)((()=>{if(!f)return;if(!n)return;let e=0;const t=t=>{if(!_r(t))return;const n="focusin"===t.type;if(cancelAnimationFrame(e),n)return function(e){const t=e.querySelectorAll("[data-tabindex]"),n=e=>{const t=e.getAttribute("data-tabindex");e.removeAttribute("data-tabindex"),t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")};e.hasAttribute("data-tabindex")&&n(e);for(const e of t)n(e)}(f);e=requestAnimationFrame((()=>{!function(e){const t=No(e,!0);for(const e of t)zo(e)}(f)}))};return f.addEventListener("focusin",t,!0),f.addEventListener("focusout",t,!0),()=>{cancelAnimationFrame(e),f.removeEventListener("focusin",t,!0),f.removeEventListener("focusout",t,!0)}}),[f,n]),a=Nr(a,(e=>{if(e=(0,Ve.jsx)(Wi.Provider,{value:f||d,children:e}),!s)return e;if(!f)return(0,Ve.jsx)("span",{ref:u,id:a.id,style:{position:"fixed"},hidden:!0});e=(0,Ve.jsxs)(Ve.Fragment,{children:[n&&f&&(0,Ve.jsx)(Ui,{ref:y,"data-focus-trap":a.id,className:"__focus-trap-inner-before",onFocus:e=>{_r(e,f)?qi(Po()):qi(g.current)}}),e,n&&f&&(0,Ve.jsx)(Ui,{ref:v,"data-focus-trap":a.id,className:"__focus-trap-inner-after",onFocus:e=>{_r(e,f)?qi(Lo()):qi(b.current)}})]}),f&&(e=(0,Ei.createPortal)(e,f));let t=(0,Ve.jsxs)(Ve.Fragment,{children:[n&&f&&(0,Ve.jsx)(Ui,{ref:g,"data-focus-trap":a.id,className:"__focus-trap-outer-before",onFocus:e=>{e.relatedTarget!==b.current&&_r(e,f)?qi(y.current):qi(Lo())}}),n&&(0,Ve.jsx)("span",{"aria-owns":null==f?void 0:f.id,style:{position:"fixed"}}),n&&f&&(0,Ve.jsx)(Ui,{ref:b,"data-focus-trap":a.id,className:"__focus-trap-outer-after",onFocus:e=>{if(_r(e,f))qi(v.current);else{const e=Po();if(e===y.current)return void requestAnimationFrame((()=>{var e;return null==(e=Po())?void 0:e.focus()}));qi(e)}}})]});return h&&n&&(t=(0,Ei.createPortal)(t,h)),(0,Ve.jsxs)(Ve.Fragment,{children:[t,e]})}),[f,d,s,a.id,n,h]),a=Un(Hn({},a),{ref:u})})),Xi=(ao((function(e){return co("div",Vi(e))})),Ho());function Gi(e,t=!1){if(!e)return null;const n="current"in e?e.current:e;return n?t?Ro(n)?n:null:n:null}var Yi=lo((function(e){var t=e,{store:n,open:r,onClose:o,focusable:i=!0,modal:s=!0,portal:a=!!s,backdrop:l=!!s,hideOnEscape:u=!0,hideOnInteractOutside:d=!0,getPersistentElements:f,preventBodyScroll:p=!!s,autoFocusOnShow:h=!0,autoFocusOnHide:m=!0,initialFocus:g,finalFocus:y,unmountOnHide:v,unstable_treeSnapshotKey:b}=t,w=Wn(t,["store","open","onClose","focusable","modal","portal","backdrop","hideOnEscape","hideOnInteractOutside","getPersistentElements","preventBodyScroll","autoFocusOnShow","autoFocusOnHide","initialFocus","finalFocus","unmountOnHide","unstable_treeSnapshotKey"]);const _=go(),x=(0,c.useRef)(null),S=function(e={}){const[t,n]=eo(ro,e);return oo(t,n,e)}({store:n||_,open:r,setOpen(e){if(e)return;const t=x.current;if(!t)return;const n=new Event("close",{bubbles:!1,cancelable:!0});o&&t.addEventListener("close",o,{once:!0}),t.dispatchEvent(n),n.defaultPrevented&&S.setOpen(!0)}}),{portalRef:k,domReady:E}=Pr(a,w.portalRef),C=w.preserveTabOrder,T=Qr(S,(e=>C&&!s&&e.mounted)),I=Rr(w.id),O=Qr(S,"open"),M=Qr(S,"mounted"),R=Qr(S,"contentElement"),A=Ii(M,w.hidden,w.alwaysVisible);Ni(R,I,p&&!A),function(e,t,n){const r=function(e){const t=(0,c.useRef)();return(0,c.useEffect)((()=>{if(e)return Sr("mousedown",(e=>{t.current=e.target}),!0);t.current=null}),[e]),t}(Qr(e,"open")),o={store:e,domReady:n,capture:!0};Li(Un(Hn({},o),{type:"click",listener:n=>{const{contentElement:o}=e.getState(),i=r.current;i&&br(i)&&Si(i,null==o?void 0:o.id)&&ji(t,n)&&e.hide()}})),Li(Un(Hn({},o),{type:"focusin",listener:n=>{const{contentElement:r}=e.getState();r&&n.target!==fr(r)&&ji(t,n)&&e.hide()}})),Li(Un(Hn({},o),{type:"contextmenu",listener:n=>{ji(t,n)&&e.hide()}}))}(S,d,E);const{wrapElement:D,nestedDialogs:N}=function(e){const t=(0,c.useContext)(Pi),[n,r]=(0,c.useState)([]),o=(0,c.useCallback)((e=>{var n;return r((t=>[...t,e])),nr(null==(n=t.add)?void 0:n.call(t,e),(()=>{r((t=>t.filter((t=>t!==e))))}))}),[t]);Tr((()=>Xr(e,["open","contentElement"],(n=>{var r;if(n.open&&n.contentElement)return null==(r=t.add)?void 0:r.call(t,e)}))),[e,t]);const i=(0,c.useMemo)((()=>({store:e,add:o})),[e,o]);return{wrapElement:(0,c.useCallback)((e=>(0,Ve.jsx)(Pi.Provider,{value:i,children:e})),[i]),nestedDialogs:n}}(S);w=Nr(w,D,[D]),Tr((()=>{if(!O)return;const e=x.current,t=hr(e,!0);t&&"BODY"!==t.tagName&&(e&&mr(e,t)||S.setDisclosureElement(t))}),[S,O]),Xi&&(0,c.useEffect)((()=>{if(!M)return;const{disclosureElement:e}=S.getState();if(!e)return;if(!yr(e))return;const t=()=>{let t=!1;const n=()=>{t=!0};e.addEventListener("focusin",n,{capture:!0,once:!0}),xr(e,"mouseup",(()=>{e.removeEventListener("focusin",n,!0),t||$o(e)}))};return e.addEventListener("mousedown",t),()=>{e.removeEventListener("mousedown",t)}}),[S,M]),(0,c.useEffect)((()=>{if(!M)return;if(!E)return;const e=x.current;if(!e)return;const t=pr(e),n=t.visualViewport||t,r=()=>{var n,r;const o=null!=(r=null==(n=t.visualViewport)?void 0:n.height)?r:t.innerHeight;e.style.setProperty("--dialog-viewport-height",`${o}px`)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}}),[M,E]),(0,c.useEffect)((()=>{if(!s)return;if(!M)return;if(!E)return;const e=x.current;return e?e.querySelector("[data-dialog-dismiss]")?void 0:function(e,t){const n=fr(e).createElement("button");return n.type="button",n.tabIndex=-1,n.textContent="Dismiss popup",Object.assign(n.style,{border:"0px",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"}),n.addEventListener("click",t),e.prepend(n),()=>{n.removeEventListener("click",t),n.remove()}}(e,S.hide):void 0}),[S,s,M,E]),Tr((()=>{if(!Ai())return;if(O)return;if(!M)return;if(!E)return;const e=x.current;return e?Di(e):void 0}),[O,M,E]);const P=O&&E;Tr((()=>{if(!I)return;if(!P)return;const e=x.current;return function(e,t){const{body:n}=fr(t[0]),r=[];return wi(e,t,(t=>{r.push(mi(t,vi(e),!0))})),nr(mi(n,vi(e),!0),(()=>{for(const e of r)e()}))}(I,[e])}),[I,P,b]);const L=Or(f);Tr((()=>{if(!I)return;if(!P)return;const{disclosureElement:e}=S.getState(),t=[x.current,...L()||[],...N.map((e=>e.getState().contentElement))];return s?nr(ki(I,t),function(e,t){const n=[],r=t.map((e=>null==e?void 0:e.id));return wi(e,t,(e=>{di(e,...r)||function(e,...t){if(!e)return!1;const n=e.getAttribute("data-focus-trap");return null!=n&&(!t.length||""!==n&&t.some((e=>n===e)))}(e,...r)||n.unshift(Di(e,t))}),(e=>{e.hasAttribute("role")&&(t.some((t=>t&&mr(t,e)))||n.unshift(hi(e,"role","none")))})),()=>{for(const e of n)e()}}(I,t)):ki(I,[e,...t])}),[I,S,P,L,N,s,b]);const j=!!h,F=Dr(h),[$,z]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(!O)return;if(!j)return;if(!E)return;if(!(null==R?void 0:R.isConnected))return;const e=Gi(g,!0)||R.querySelector("[data-autofocus=true],[autofocus]")||function(e,t,n){const[r]=No(e,t,n);return r||null}(R,!0,a&&T)||R,t=Ro(e);F(t?e:null)&&(z(!0),queueMicrotask((()=>{e.focus(),Xi&&e.scrollIntoView({block:"nearest",inline:"nearest"})})))}),[O,j,E,R,g,a,T,F]);const B=!!m,H=Dr(m),[U,W]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(O)return W(!0),()=>W(!1)}),[O]);const q=(0,c.useCallback)(((e,t=!0)=>{const{disclosureElement:n}=S.getState();if(function(e){const t=hr();return!(!t||e&&mr(e,t)||!Ro(t))}(e))return;let r=Gi(y)||n;if(null==r?void 0:r.id){const e=fr(r),t=`[aria-activedescendant="${r.id}"]`,n=e.querySelector(t);n&&(r=n)}if(r&&!Ro(r)){const e=r.closest("[data-dialog]");if(null==e?void 0:e.id){const t=fr(e),n=`[aria-controls~="${e.id}"]`,o=t.querySelector(n);o&&(r=o)}}const o=r&&Ro(r);o||!t?H(o?r:null)&&o&&(null==r||r.focus()):requestAnimationFrame((()=>q(e,!1)))}),[S,y,H]),V=(0,c.useRef)(!1);Tr((()=>{if(O)return;if(!U)return;if(!B)return;const e=x.current;V.current=!0,q(e)}),[O,U,E,B,q]),(0,c.useEffect)((()=>{if(!U)return;if(!B)return;const e=x.current;return()=>{V.current?V.current=!1:q(e)}}),[U,B,q]);const X=Dr(u);(0,c.useEffect)((()=>{if(E&&M)return Sr("keydown",(e=>{if("Escape"!==e.key)return;if(e.defaultPrevented)return;const t=x.current;if(!t)return;if(Si(t))return;const n=e.target;if(!n)return;const{disclosureElement:r}=S.getState();("BODY"===n.tagName||mr(t,n)||!r||mr(r,n))&&X(e)&&S.hide()}),!0)}),[S,E,M,X]);const G=(w=Nr(w,(e=>(0,Ve.jsx)(zi,{level:s?1:void 0,children:e})),[s])).hidden,Y=w.alwaysVisible;w=Nr(w,(e=>l?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ri,{store:S,backdrop:l,hidden:G,alwaysVisible:Y}),e]}):e),[S,l,G,Y]);const[K,J]=(0,c.useState)(),[Q,Z]=(0,c.useState)();return w=Nr(w,(e=>(0,Ve.jsx)(vo,{value:S,children:(0,Ve.jsx)(bo.Provider,{value:J,children:(0,Ve.jsx)(wo.Provider,{value:Z,children:e})})})),[S]),w=Un(Hn({id:I,"data-dialog":"",role:"dialog",tabIndex:i?-1:void 0,"aria-labelledby":K,"aria-describedby":Q},w),{ref:Mr(x,w.ref)}),w=Fi(Un(Hn({},w),{autoFocusOnShow:$})),w=Oi(Hn({store:S},w)),w=Zo(Un(Hn({},w),{focusable:i})),Vi(Un(Hn({portal:a},w),{portalRef:k,preserveTabOrder:T}))}));function Ki(e,t=go){return ao((function(n){const r=t();return Qr(n.store||r,(e=>!n.unmountOnHide||(null==e?void 0:e.mounted)||!!n.open))?(0,Ve.jsx)(e,Hn({},n)):null}))}Ki(ao((function(e){return co("div",Yi(e))})),go);const Ji=Math.min,Qi=Math.max,Zi=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),es={start:"end",end:"start"};function ts(e,t,n){return Qi(e,Ji(t,n))}function ns(e,t){return"function"==typeof e?e(t):e}function rs(e){return e.split("-")[0]}function os(e){return e.split("-")[1]}function is(e){return"x"===e?"y":"x"}function ss(e){return"y"===e?"height":"width"}const as=new Set(["top","bottom"]);function cs(e){return as.has(rs(e))?"y":"x"}function ls(e){return is(cs(e))}function us(e){return e.replace(/start|end/g,(e=>es[e]))}const ds=["left","right"],fs=["right","left"],ps=["top","bottom"],hs=["bottom","top"];function ms(e){return e.replace(/left|right|bottom|top/g,(e=>Zi[e]))}function gs(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ys(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vs(e,t,n){let{reference:r,floating:o}=e;const i=cs(t),s=ls(t),a=ss(s),c=rs(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(os(t)){case"start":p[s]-=f*(n&&l?-1:1);break;case"end":p[s]+=f*(n&&l?-1:1)}return p}async function bs(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ns(t,e),h=gs(p),m=a[f?"floating"===d?"reference":"floating":d],g=ys(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=ys(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}const ws=Math.min,_s=Math.max,xs=Math.round,Ss=Math.floor,ks=e=>({x:e,y:e});function Es(){return"undefined"!=typeof window}function Cs(e){return Os(e)?(e.nodeName||"").toLowerCase():"#document"}function Ts(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Is(e){var t;return null==(t=(Os(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Os(e){return!!Es()&&(e instanceof Node||e instanceof Ts(e).Node)}function Ms(e){return!!Es()&&(e instanceof Element||e instanceof Ts(e).Element)}function Rs(e){return!!Es()&&(e instanceof HTMLElement||e instanceof Ts(e).HTMLElement)}function As(e){return!(!Es()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ts(e).ShadowRoot)}function Ds(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=$s(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ns(e){return["table","td","th"].includes(Cs(e))}function Ps(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function Ls(e){const t=js(),n=Ms(e)?$s(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function js(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fs(e){return["html","body","#document"].includes(Cs(e))}function $s(e){return Ts(e).getComputedStyle(e)}function zs(e){return Ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Bs(e){if("html"===Cs(e))return e;const t=e.assignedSlot||e.parentNode||As(e)&&e.host||Is(e);return As(t)?t.host:t}function Hs(e){const t=Bs(e);return Fs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rs(t)&&Ds(t)?t:Hs(t)}function Us(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Hs(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ts(o);if(i){const e=Ws(s);return t.concat(s,s.visualViewport||[],Ds(o)?o:[],e&&n?Us(e):[])}return t.concat(o,Us(o,[],n))}function Ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qs(e){const t=$s(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Rs(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=xs(n)!==i||xs(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Vs(e){return Ms(e)?e:e.contextElement}function Xs(e){const t=Vs(e);if(!Rs(t))return ks(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qs(t);let s=(i?xs(n.width):n.width)/r,a=(i?xs(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Gs=ks(0);function Ys(e){const t=Ts(e);return js()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Gs}function Ks(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Vs(e);let s=ks(1);t&&(r?Ms(r)&&(s=Xs(r)):s=Xs(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Ts(e))&&t}(i,n,r)?Ys(i):ks(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const e=Ts(i),t=r&&Ms(r)?Ts(r):r;let n=e,o=Ws(n);for(;o&&r&&t!==n;){const e=Xs(o),t=o.getBoundingClientRect(),r=$s(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=s,n=Ts(o),o=Ws(n)}}return ys({width:u,height:d,x:c,y:l})}function Js(e,t){const n=zs(e).scrollLeft;return t?t.left+n:Ks(Is(e)).left+n}function Qs(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Js(e,r)),y:r.top+t.scrollTop}}function Zs(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Ts(e),r=Is(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const e=js();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=Is(e),n=zs(e),r=e.ownerDocument.body,o=_s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=_s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Js(e);const a=-n.scrollTop;return"rtl"===$s(r).direction&&(s+=_s(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}(Is(e));else if(Ms(t))r=function(e,t){const n=Ks(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Rs(e)?Xs(e):ks(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ys(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ys(r)}function ea(e,t){const n=Bs(e);return!(n===t||!Ms(n)||Fs(n))&&("fixed"===$s(n).position||ea(n,t))}function ta(e,t,n){const r=Rs(t),o=Is(t),i="fixed"===n,s=Ks(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=ks(0);if(r||!r&&!i)if(("body"!==Cs(t)||Ds(o))&&(a=zs(t)),r){const e=Ks(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=Js(o));const l=!o||r||i?ks(0):Qs(o,a);return{x:s.left+a.scrollLeft-c.x-l.x,y:s.top+a.scrollTop-c.y-l.y,width:s.width,height:s.height}}function na(e){return"static"===$s(e).position}function ra(e,t){if(!Rs(e)||"fixed"===$s(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Is(e)===n&&(n=n.ownerDocument.body),n}function oa(e,t){const n=Ts(e);if(Ps(e))return n;if(!Rs(e)){let t=Bs(e);for(;t&&!Fs(t);){if(Ms(t)&&!na(t))return t;t=Bs(t)}return n}let r=ra(e,t);for(;r&&Ns(r)&&na(r);)r=ra(r,t);return r&&Fs(r)&&na(r)&&!Ls(r)?n:r||function(e){let t=Bs(e);for(;Rs(t)&&!Fs(t);){if(Ls(t))return t;if(Ps(t))return null;t=Bs(t)}return null}(e)||n}const ia={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Is(r),a=!!t&&Ps(t.floating);if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ks(1);const u=ks(0),d=Rs(r);if((d||!d&&!i)&&(("body"!==Cs(r)||Ds(s))&&(c=zs(r)),Rs(r))){const e=Ks(r);l=Xs(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!s||d||i?ks(0):Qs(s,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:Is,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?Ps(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Us(e,[],!1).filter((e=>Ms(e)&&"body"!==Cs(e))),o=null;const i="fixed"===$s(e).position;let s=i?Bs(e):e;for(;Ms(s)&&!Fs(s);){const t=$s(s),n=Ls(s);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Ds(s)&&!n&&ea(e,s))?r=r.filter((e=>e!==s)):o=t,s=Bs(s)}return t.set(e,r),r}(t,this._c):[].concat(n),s=[...i,r],a=s[0],c=s.reduce(((e,n)=>{const r=Zs(t,n,o);return e.top=_s(r.top,e.top),e.right=ws(r.right,e.right),e.bottom=ws(r.bottom,e.bottom),e.left=_s(r.left,e.left),e}),Zs(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:oa,getElementRects:async function(e){const t=this.getOffsetParent||oa,n=this.getDimensions,r=await n(e.floating);return{reference:ta(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=qs(e);return{width:t,height:n}},getScale:Xs,isElement:Ms,isRTL:function(e){return"rtl"===$s(e).direction}};function sa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}const aa=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=ns(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=rs(o),v=cs(a),b=rs(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(l.floating)),_=f||(b||!m?[ms(a)]:function(e){const t=ms(e);return[us(e),t,us(t)]}(a)),x="none"!==h;!f&&x&&_.push(...function(e,t,n,r){const o=os(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?fs:ds:t?ds:fs;case"left":case"right":return t?ps:hs;default:return[]}}(rs(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(us)))),i}(a,m,h,w));const S=[a,..._],k=await bs(t,g),E=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(k[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=os(e),o=ls(e),i=ss(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ms(s)),[s,ms(s)]}(o,s,w);E.push(k[e[0]],k[e[1]])}if(C=[...C,{placement:o,overflows:E}],!E.every((e=>e<=0))){var T,I;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=S[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=C.filter((e=>{if(x){const t=cs(e.placement);return t===v||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},ca=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=ns(e,t),u={x:n,y:r},d=cs(o),f=is(d);let p=u[f],h=u[d];const m=ns(a,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+g.mainAxis,n=i.reference[f]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var y,v;const e="y"===f?"width":"height",t=["top","left"].includes(rs(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(y=s.offset)?void 0:y[d])||0)+(t?0:g.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(v=s.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}};function la(e=0,t=0,n=0,r=0){if("function"==typeof DOMRect)return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return Un(Hn({},o),{toJSON:()=>o})}function ua(e){return/^(?:top|bottom|left|right)(?:-(?:start|end))?$/.test(e)}function da(e){const t=window.devicePixelRatio||1;return Math.round(e*t)/t}function fa(e,t){return function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=rs(n),a=os(n),c="y"===cs(n),l=["left","top"].includes(s)?-1:1,u=i&&c?-1:1,d=ns(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}}((({placement:n})=>{var r;const o=((null==e?void 0:e.clientHeight)||0)/2,i="number"==typeof t.gutter?t.gutter+o:null!=(r=t.gutter)?r:o;return{crossAxis:n.split("-")[1]?void 0:t.shift,mainAxis:i,alignmentAxis:t.shift}}))}function pa(e){if(!1===e.flip)return;const t="string"==typeof e.flip?e.flip.split(" "):void 0;return or(!t||t.every(ua),!1),aa({padding:e.overflowPadding,fallbackPlacements:t})}function ha(e){if(e.slide||e.overlap)return function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ns(e,t),l={x:n,y:r},u=await bs(t,c),d=cs(rs(o)),f=is(d);let p=l[f],h=l[d];if(i){const e="y"===f?"bottom":"right";p=ts(p+u["y"===f?"top":"left"],p,p-u[e])}if(s){const e="y"===d?"bottom":"right";h=ts(h+u["y"===d?"top":"left"],h,h-u[e])}const m=a.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:s}}}}}}({mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:ca()})}function ma(e){return function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=ns(e,t),u=await bs(t,l),d=rs(o),f=os(o),p="y"===cs(o),{width:h,height:m}=i.floating;let g,y;"top"===d||"bottom"===d?(g=d,y=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g="end"===f?"top":"bottom");const v=m-u.top-u.bottom,b=h-u.left-u.right,w=Ji(m-u[g],v),_=Ji(h-u[y],b),x=!t.middlewareData.shift;let S=w,k=_;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(S=v),x&&!f){const e=Qi(u.left,0),t=Qi(u.right,0),n=Qi(u.top,0),r=Qi(u.bottom,0);p?k=h-2*(0!==e||0!==t?e+t:Qi(u.left,u.right)):S=m-2*(0!==n||0!==r?n+r:Qi(u.top,u.bottom))}await c({...t,availableWidth:k,availableHeight:S});const E=await s.getDimensions(a.floating);return h!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}}({padding:e.overflowPadding,apply({elements:t,availableWidth:n,availableHeight:r,rects:o}){const i=t.floating,s=Math.round(o.reference.width);n=Math.floor(n),r=Math.floor(r),i.style.setProperty("--popover-anchor-width",`${s}px`),i.style.setProperty("--popover-available-width",`${n}px`),i.style.setProperty("--popover-available-height",`${r}px`),e.sameWidth&&(i.style.width=`${s}px`),e.fitViewport&&(i.style.maxWidth=`${n}px`,i.style.maxHeight=`${r}px`)}})}function ga(e,t){if(e)return(e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=ns(e,t)||{};if(null==l)return{};const d=gs(u),f={x:n,y:r},p=ls(o),h=ss(p),m=await s.getDimensions(l),g="y"===p,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-f[p]-i.floating[h],_=f[p]-i.reference[p],x=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let S=x?x[b]:0;S&&await(null==s.isElement?void 0:s.isElement(x))||(S=a.floating[b]||i.floating[h]);const k=w/2-_/2,E=S/2-m[h]/2-1,C=Ji(d[y],E),T=Ji(d[v],E),I=C,O=S-m[h]-T,M=S/2-m[h]/2+k,R=ts(I,M,O),A=!c.arrow&&null!=os(o)&&M!==R&&i.reference[h]/2-(M<I?C:T)-m[h]/2<0,D=A?M<I?M-I:M-O:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:M-R-D,...A&&{alignmentOffset:D}},reset:A}}}))({element:e,padding:t.arrowPadding})}var ya=lo((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,preserveTabOrder:i=!0,autoFocusOnShow:s=!0,wrapperProps:a,fixed:l=!1,flip:u=!0,shift:d=0,slide:f=!0,overlap:p=!1,sameWidth:h=!1,fitViewport:m=!1,gutter:g,arrowPadding:y=4,overflowPadding:v=8,getAnchorRect:b,updatePosition:w}=t,_=Wn(t,["store","modal","portal","preserveTabOrder","autoFocusOnShow","wrapperProps","fixed","flip","shift","slide","overlap","sameWidth","fitViewport","gutter","arrowPadding","overflowPadding","getAnchorRect","updatePosition"]);const x=xo();or(n=n||x,!1);const S=n.useState("arrowElement"),k=n.useState("anchorElement"),E=n.useState("disclosureElement"),C=n.useState("popoverElement"),T=n.useState("contentElement"),I=n.useState("placement"),O=n.useState("mounted"),M=n.useState("rendered"),R=(0,c.useRef)(null),[A,D]=(0,c.useState)(!1),{portalRef:N,domReady:P}=Pr(o,_.portalRef),L=Or(b),j=Or(w),F=!!w;Tr((()=>{if(!(null==C?void 0:C.isConnected))return;C.style.setProperty("--popover-overflow-padding",`${v}px`);const e=function(e,t){return{contextElement:e||void 0,getBoundingClientRect:()=>{const n=e,r=null==t?void 0:t(n);return r||!n?function(e){if(!e)return la();const{x:t,y:n,width:r,height:o}=e;return la(t,n,r,o)}(r):n.getBoundingClientRect()}}}(k,L),t=async()=>{if(!O)return;S||(R.current=R.current||document.createElement("div"));const t=S||R.current,r=[fa(t,{gutter:g,shift:d}),pa({flip:u,overflowPadding:v}),ha({slide:f,shift:d,overlap:p,overflowPadding:v}),ga(t,{arrowPadding:y}),ma({sameWidth:h,fitViewport:m,overflowPadding:v})],o=await((e,t,n)=>{const r=new Map,o={platform:ia,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=vs(l,r,c),f=r,p={},h=0;for(let n=0;n<a.length;n++){const{name:i,fn:m}=a[n],{x:g,y,data:v,reset:b}=await m({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[i]:{...p[i],...v}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(l=!0===b.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=vs(l,f,c))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})})(e,C,{placement:I,strategy:l?"fixed":"absolute",middleware:r});null==n||n.setState("currentPlacement",o.placement),D(!0);const i=da(o.x),s=da(o.y);if(Object.assign(C.style,{top:"0",left:"0",transform:`translate3d(${i}px,${s}px,0)`}),t&&o.middlewareData.arrow){const{x:e,y:n}=o.middlewareData.arrow,r=o.placement.split("-")[0],i=t.clientWidth/2,s=t.clientHeight/2,a=null!=e?e+i:-i,c=null!=n?n+s:-s;C.style.setProperty("--popover-transform-origin",{top:`${a}px calc(100% + ${s}px)`,bottom:`${a}px ${-s}px`,left:`calc(100% + ${i}px) ${c}px`,right:`${-i}px ${c}px`}[r]),Object.assign(t.style,{left:null!=e?`${e}px`:"",top:null!=n?`${n}px`:"",[r]:"100%"})}},r=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=Vs(e),u=o||i?[...l?Us(l):[],...Us(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=l&&a?function(e,t){let n,r=null;const o=Is(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(a||t(),!f||!p)return;const h={rootMargin:-Ss(d)+"px "+-Ss(o.clientWidth-(u+f))+"px "+-Ss(o.clientHeight-(d+p))+"px "+-Ss(u)+"px",threshold:_s(0,ws(1,c))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==c){if(!m)return s();r?s(!1,r):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==r||sa(l,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),i}(l,n):null;let f,p=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),l&&!c&&h.observe(l),h.observe(t));let m=c?Ks(e):null;return c&&function t(){const r=Ks(e);m&&!sa(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(f)}}(e,C,(async()=>{F?(await j({updatePosition:t}),D(!0)):await t()}),{elementResize:"function"==typeof ResizeObserver});return()=>{D(!1),r()}}),[n,M,C,S,k,C,I,O,P,l,u,d,f,p,h,m,g,y,v,L,F,j]),Tr((()=>{if(!O)return;if(!P)return;if(!(null==C?void 0:C.isConnected))return;if(!(null==T?void 0:T.isConnected))return;const e=()=>{C.style.zIndex=getComputedStyle(T).zIndex};e();let t=requestAnimationFrame((()=>{t=requestAnimationFrame(e)}));return()=>cancelAnimationFrame(t)}),[O,P,C,T]);const $=l?"fixed":"absolute";return _=Nr(_,(e=>(0,Ve.jsx)("div",Un(Hn({},a),{style:Hn({position:$,top:0,left:0,width:"max-content"},null==a?void 0:a.style),ref:null==n?void 0:n.setPopoverElement,children:e}))),[n,$,a]),_=Nr(_,(e=>(0,Ve.jsx)(ko,{value:n,children:e})),[n]),_=Un(Hn({"data-placing":!A||void 0},_),{style:Hn({position:"relative"},_.style)}),Yi(Un(Hn({store:n,modal:r,portal:o,preserveTabOrder:i,preserveTabOrderAnchor:E||k,autoFocusOnShow:A&&s},_),{portalRef:N}))}));function va(e,t,n,r){return!!(Fo(t)||e&&(mr(t,e)||n&&mr(n,e)||(null==r?void 0:r.some((t=>va(e,t,n))))))}Ki(ao((function(e){return co("div",ya(e))})),xo);var ba=(0,c.createContext)(null),wa=lo((function(e){var t=e,{store:n,modal:r=!1,portal:o=!!r,hideOnEscape:i=!0,hideOnHoverOutside:s=!0,disablePointerEventsOnApproach:a=!!s}=t,l=Wn(t,["store","modal","portal","hideOnEscape","hideOnHoverOutside","disablePointerEventsOnApproach"]);const u=Co();or(n=n||u,!1);const d=(0,c.useRef)(null),[f,p]=(0,c.useState)([]),h=(0,c.useRef)(0),m=(0,c.useRef)(null),{portalRef:g,domReady:y}=Pr(o,l.portalRef),v=Lr(),b=!!s,w=Dr(s),_=!!a,x=Dr(a),S=n.useState("open"),k=n.useState("mounted");(0,c.useEffect)((()=>{if(!y)return;if(!k)return;if(!b&&!_)return;const e=d.current;return e?nr(Sr("mousemove",(t=>{if(!n)return;if(!v())return;const{anchorElement:r,hideTimeout:o,timeout:i}=n.getState(),s=m.current,[a]=t.composedPath(),c=r;if(va(a,e,c,f))return m.current=a&&c&&mr(c,a)?ci(t):null,window.clearTimeout(h.current),void(h.current=0);if(!h.current){if(s){const n=ci(t);if(li(n,ui(e,s))){if(m.current=n,!x(t))return;return t.preventDefault(),void t.stopPropagation()}}w(t)&&(h.current=window.setTimeout((()=>{h.current=0,null==n||n.hide()}),null!=o?o:i))}}),!0),(()=>clearTimeout(h.current))):void 0}),[n,v,y,k,b,_,f,x,w]),(0,c.useEffect)((()=>{if(!y)return;if(!k)return;if(!_)return;const e=e=>{const t=d.current;if(!t)return;const n=m.current;if(!n)return;const r=ui(t,n);if(li(ci(e),r)){if(!x(e))return;e.preventDefault(),e.stopPropagation()}};return nr(Sr("mouseenter",e,!0),Sr("mouseover",e,!0),Sr("mouseout",e,!0),Sr("mouseleave",e,!0))}),[y,k,_,x]),(0,c.useEffect)((()=>{y&&(S||null==n||n.setAutoFocusOnShow(!1))}),[n,y,S]);const E=Ir(S);(0,c.useEffect)((()=>{if(y)return()=>{E.current||null==n||n.setAutoFocusOnShow(!1)}}),[n,y]);const C=(0,c.useContext)(ba);Tr((()=>{if(r)return;if(!o)return;if(!k)return;if(!y)return;const e=d.current;return e?null==C?void 0:C(e):void 0}),[r,o,k,y]);const T=(0,c.useCallback)((e=>{p((t=>[...t,e]));const t=null==C?void 0:C(e);return()=>{p((t=>t.filter((t=>t!==e)))),null==t||t()}}),[C]);l=Nr(l,(e=>(0,Ve.jsx)(Io,{value:n,children:(0,Ve.jsx)(ba.Provider,{value:T,children:e})})),[n,T]),l=Un(Hn({},l),{ref:Mr(d,l.ref)}),l=function(e){var t=e,{store:n}=t,r=Wn(t,["store"]);const[o,i]=(0,c.useState)(!1),s=n.useState("mounted");(0,c.useEffect)((()=>{s||i(!1)}),[s]);const a=r.onFocus,l=Or((e=>{null==a||a(e),e.defaultPrevented||i(!0)})),u=(0,c.useRef)(null);return(0,c.useEffect)((()=>Xr(n,["anchorElement"],(e=>{u.current=e.anchorElement}))),[]),Un(Hn({autoFocusOnHide:o,finalFocus:u},r),{onFocus:l})}(Hn({store:n},l));const I=n.useState((e=>r||e.autoFocusOnShow));return ya(Un(Hn({store:n,modal:r,portal:o,autoFocusOnShow:I},l),{portalRef:g,hideOnEscape:e=>!ir(i,e)&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{null==n||n.hide()}))})),!0)}))})),_a=(Ki(ao((function(e){return co("div",wa(e))})),Co),lo((function(e){var t=e,{store:n,portal:r=!0,gutter:o=8,preserveTabOrder:i=!1,hideOnHoverOutside:s=!0,hideOnInteractOutside:a=!0}=t,c=Wn(t,["store","portal","gutter","preserveTabOrder","hideOnHoverOutside","hideOnInteractOutside"]);const l=ni();or(n=n||l,!1),c=Nr(c,(e=>(0,Ve.jsx)(ri,{value:n,children:e})),[n]);const u=n.useState((e=>"description"===e.type?"tooltip":"none"));return c=Hn({role:u},c),wa(Un(Hn({},c),{store:n,portal:r,gutter:o,preserveTabOrder:i,hideOnHoverOutside(e){if(ir(s,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!("focusVisible"in t.dataset)},hideOnInteractOutside:e=>{if(ir(a,e))return!1;const t=null==n?void 0:n.getState().anchorElement;return!t||!mr(t,e.target)}}))}))),xa=Ki(ao((function(e){return co("div",_a(e))})),ni);const Sa=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,Ve.jsx)("span",{className:n,"aria-label":o,children:r})},ka={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Ea=e=>{var t;return null!==(t=ka[e])&&void 0!==t?t:"bottom"},Ca=(0,$e.createContext)({isNestedInTooltip:!1}),Ta=700,Ia={isNestedInTooltip:!0},Oa=(0,$e.forwardRef)((function(e,t){const{children:n,className:r,delay:o=Ta,hideOnClick:i=!0,placement:s,position:a,shortcut:c,text:l,...u}=e,{isNestedInTooltip:d}=(0,$e.useContext)(Ca),f=(0,Nn.useInstanceId)(Oa,"tooltip"),p=l||c?f:void 0,h=1===$e.Children.count(n);let m;void 0!==s?m=s:void 0!==a&&(m=Ea(a),en()("`position` prop in wp.components.tooltip",{since:"6.4",alternative:"`placement` prop"})),m=m||"bottom";const g=function(e={}){const[t,n]=eo(so,e);return function(e,t,n){return Zr(e,n,"type"),Zr(e,n,"skipTimeout"),io(e,t,n)}(t,n,e)}({placement:m,showTimeout:o}),y=Qr(g,"mounted");return d?h?(0,Ve.jsx)(fo,{...u,render:n}):n:(0,Ve.jsxs)(Ca.Provider,{value:Ia,children:[(0,Ve.jsx)(ai,{onClick:i?g.hide:void 0,store:g,render:h?(v=n,p&&y&&void 0===v.props["aria-describedby"]&&v.props["aria-label"]!==l?(0,$e.cloneElement)(v,{"aria-describedby":p}):v):void 0,ref:t,children:h?void 0:n}),h&&(l||c)&&(0,Ve.jsxs)(xa,{...u,className:Dn("components-tooltip",r),unmountOnHide:!0,gutter:4,id:p,overflowPadding:.5,store:g,children:[l,c&&(0,Ve.jsx)(Sa,{className:l?"components-tooltip__shortcut":"",shortcut:c})]})]});var v})),Ma=Oa,Ra=window.wp.primitives,Aa=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,Ve.jsx)("span",{className:i,style:s,...o})},Da=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,Ve.jsx)(Aa,{icon:e,size:t,...n});if((0,$e.isValidElement)(e)&&Aa===e.type)return(0,$e.cloneElement)(e,{...n});if("function"==typeof e)return(0,$e.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===Ra.SVG)){const r={...e.props,width:t,height:t,...n};return(0,Ve.jsx)(Ra.SVG,{...r})}return(0,$e.isValidElement)(e)?(0,$e.cloneElement)(e,{size:t,...n}):e},Na={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"},Pa=st((function(e,t){const{style:n,...r}=Et(e,"VisuallyHidden");return(0,Ve.jsx)(vt,{ref:t,...r,style:{...Na,...n||{}}})}),"VisuallyHidden"),La=["onMouseDown","onClick"],ja=(0,$e.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,accessibleWhenDisabled:r,isBusy:o,isDestructive:i,className:s,disabled:a,icon:c,iconPosition:l="left",iconSize:u,showTooltip:d,tooltipPosition:f,shortcut:p,label:h,children:m,size:g="default",text:y,variant:v,description:b,...w}=function({__experimentalIsFocusable:e,isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:i,isPressed:s,isSmall:a,size:c,variant:l,describedBy:u,...d}){let f=c,p=l;const h={accessibleWhenDisabled:e,"aria-pressed":s,description:u};var m,g,y,v,b,w;return a&&(null!==(m=f)&&void 0!==m||(f="small")),n&&(null!==(g=p)&&void 0!==g||(p="primary")),o&&(null!==(y=p)&&void 0!==y||(p="tertiary")),r&&(null!==(v=p)&&void 0!==v||(p="secondary")),t&&(en()("wp.components.Button `isDefault` prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(b=p)&&void 0!==b||(p="secondary")),i&&(null!==(w=p)&&void 0!==w||(p="link")),{...h,...d,size:f,variant:p}}(e),{href:_,target:x,"aria-checked":S,"aria-pressed":k,"aria-selected":E,...C}="href"in w?w:{href:void 0,target:void 0,...w},T=(0,Nn.useInstanceId)(ja,"components-button__description"),I="string"==typeof m&&!!m||Array.isArray(m)&&m?.[0]&&null!==m[0]&&"components-tooltip"!==m?.[0]?.props?.className,O=Dn("components-button",s,{"is-next-40px-default-size":n,"is-secondary":"secondary"===v,"is-primary":"primary"===v,"is-small":"small"===g,"is-compact":"compact"===g,"is-tertiary":"tertiary"===v,"is-pressed":[!0,"true","mixed"].includes(k),"is-pressed-mixed":"mixed"===k,"is-busy":o,"is-link":"link"===v,"is-destructive":i,"has-text":!!c&&(I||y),"has-icon":!!c}),M=a&&!r,R=void 0===_||a?"button":"a",A="button"===R?{type:"button",disabled:M,"aria-checked":S,"aria-pressed":k,"aria-selected":E}:{},D="a"===R?{href:_,target:x}:{},N={};if(a&&r){A["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of La)N[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const P=!M&&(d&&!!h||!!p||!!h&&!m?.length&&!1!==d),L=b?T:void 0,j=C["aria-describedby"]||L,F={className:O,"aria-label":C["aria-label"]||h,"aria-describedby":j,ref:t},$=(0,Ve.jsxs)(Ve.Fragment,{children:[c&&"left"===l&&(0,Ve.jsx)(Da,{icon:c,size:u}),y&&(0,Ve.jsx)(Ve.Fragment,{children:y}),m,c&&"right"===l&&(0,Ve.jsx)(Da,{icon:c,size:u})]}),z="a"===R?(0,Ve.jsx)("a",{...D,...C,...N,...F,children:$}):(0,Ve.jsx)("button",{...A,...C,...N,...F,children:$}),B=P?{text:m?.length&&b?b:h,shortcut:p,placement:f&&Ea(f)}:{};return(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)(Ma,{...B,children:z}),b&&(0,Ve.jsx)(Pa,{children:(0,Ve.jsx)("span",{id:L,children:b})})]})})),Fa=ja,$a=(function(){var e=Fe.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}})`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,za=gt("svg",{target:"ea4tfvq2"})("width:",Pt.spinnerSize,"px;height:",Pt.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",At.theme.accent,";overflow:visible;opacity:1;background-color:transparent;"),Ba={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},Ha=gt("circle",{target:"ea4tfvq1"})(Ba,";stroke:",At.gray[300],";"),Ua=gt("path",{target:"ea4tfvq0"})(Ba,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",$a,";"),Wa=(0,$e.forwardRef)((function({className:e,...t},n){return(0,Ve.jsxs)(za,{className:Dn("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n,children:[(0,Ve.jsx)(Ha,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,Ve.jsx)(Ua,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"})]})})),qa=()=>{},Va=(0,$e.forwardRef)((function(e,t){const{className:n,checked:r,id:o,disabled:i,onChange:s=qa,...a}=e,c=Dn("components-form-toggle",n,{"is-checked":r,"is-disabled":i});return(0,Ve.jsxs)("span",{className:c,children:[(0,Ve.jsx)("input",{className:"components-form-toggle__input",id:o,type:"checkbox",checked:r,onChange:s,disabled:i,...a,ref:t}),(0,Ve.jsx)("span",{className:"components-form-toggle__track"}),(0,Ve.jsx)("span",{className:"components-form-toggle__thumb"})]})})),Xa={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Ga(e){var t;return null!==(t=Xa[e])&&void 0!==t?t:""}const Ya={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"},Ka={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"},Ja=gt("div",{target:"ej5x27r4"})("font-family:",Ga("default.fontFamily"),";font-size:",Ga("default.fontSize"),";",Ya,";"),Qa=({__nextHasNoMarginBottom:e=!1})=>!e&&Fe("margin-bottom:",Tt(2),";",""),Za=gt("div",{target:"ej5x27r3"})(Qa," .components-panel__row &{margin-bottom:inherit;}"),ec=Fe(Ka,";display:block;margin-bottom:",Tt(2),";padding:0;",""),tc=gt("label",{target:"ej5x27r2"})(ec,";");var nc={name:"11yad0w",styles:"margin-bottom:revert"};const rc=({__nextHasNoMarginBottom:e=!1})=>!e&&nc,oc=gt("p",{target:"ej5x27r1"})("margin-top:",Tt(2),";margin-bottom:0;font-size:",Ga("helpText.fontSize"),";font-style:normal;color:",At.gray[700],";",rc,";"),ic=gt("span",{target:"ej5x27r0"})(ec,";"),sc=(0,$e.forwardRef)(((e,t)=>{const{className:n,children:r,...o}=e;return(0,Ve.jsx)(ic,{ref:t,...o,className:Dn("components-base-control__label",n),children:r})})),ac=Object.assign(at((e=>{const{__nextHasNoMarginBottom:t=!1,__associatedWPComponentName:n="BaseControl",id:r,label:o,hideLabelFromVision:i=!1,help:s,className:a,children:c}=Et(e,"BaseControl");return t||en()(`Bottom margin styles for wp.components.${n}`,{since:"6.7",version:"7.0",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."}),(0,Ve.jsxs)(Ja,{className:a,children:[(0,Ve.jsxs)(Za,{className:"components-base-control__field",__nextHasNoMarginBottom:t,children:[o&&r&&(i?(0,Ve.jsx)(Pa,{as:"label",htmlFor:r,children:o}):(0,Ve.jsx)(tc,{className:"components-base-control__label",htmlFor:r,children:o})),o&&!r&&(i?(0,Ve.jsx)(Pa,{as:"label",children:o}):(0,Ve.jsx)(sc,{children:o})),c]}),!!s&&(0,Ve.jsx)(oc,{id:r?r+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t,children:s})]})}),"BaseControl"),{VisualLabel:sc}),cc=Fe("box-shadow:0 0 0 transparent;border-radius:",Pt.radiusSmall,";border:",Pt.borderWidth," solid ",At.ui.border,";@media not ( prefers-reduced-motion ){transition:box-shadow 0.1s linear;}",""),lc=Fe("border-color:",At.theme.accent,";box-shadow:0 0 0 calc( ",Pt.borderWidthFocus," - ",Pt.borderWidth," ) ",At.theme.accent,";outline:2px solid transparent;",""),uc=gt("textarea",{target:"e1w5nnrk0"})("width:100%;display:block;font-family:",Ga("default.fontFamily"),";line-height:20px;padding:9px 11px;",cc,";font-size:",Ga("mobileTextMinFontSize"),";","@media (min-width: 600px)","{font-size:",Ga("default.fontSize"),";}&:focus{",lc,";}&::-webkit-input-placeholder{color:",At.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",At.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",At.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",At.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",At.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",At.ui.lightGrayPlaceholder,";}}"),dc=(0,$e.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:a,rows:c=4,className:l,...u}=e,d=`inspector-textarea-control-${(0,Nn.useInstanceId)(dc)}`;return(0,Ve.jsx)(ac,{__nextHasNoMarginBottom:n,__associatedWPComponentName:"TextareaControl",label:r,hideLabelFromVision:o,id:d,help:s,className:l,children:(0,Ve.jsx)(uc,{className:"components-textarea-control__input",id:d,rows:c,onChange:e=>a(e.target.value),"aria-describedby":s?d+"__help":void 0,value:i,ref:t,...u})})})),fc=dc,pc=window.wp.i18n,hc=window.wp.a11y,mc=(0,Ve.jsx)(Ra.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Ve.jsx)(Ra.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),gc=()=>{};function yc(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}function vc(e){switch(e){case"warning":return(0,pc.__)("Warning notice");case"info":return(0,pc.__)("Information notice");case"error":return(0,pc.__)("Error notice");default:return(0,pc.__)("Notice")}}const bc=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=gc,isDismissible:i=!0,actions:s=[],politeness:a=yc(t),__unstableHTML:c,onDismiss:l=gc}){!function(e,t){const n="string"==typeof e?e:(0,$e.renderToString)(e);(0,$e.useEffect)((()=>{n&&(0,hc.speak)(n,t)}),[n,t])}(r,a);const u=Dn(e,"components-notice","is-"+t,{"is-dismissible":i});return c&&"string"==typeof n&&(n=(0,Ve.jsx)($e.RawHTML,{children:n})),(0,Ve.jsxs)("div",{className:u,children:[(0,Ve.jsx)(Pa,{children:vc(t)}),(0,Ve.jsxs)("div",{className:"components-notice__content",children:[n,(0,Ve.jsx)("div",{className:"components-notice__actions",children:s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},a)=>{let c=r;return"primary"===r||o||(c=s?"link":"secondary"),void 0===c&&n&&(c="primary"),(0,Ve.jsx)(Fa,{__next40pxDefaultSize:!0,href:s,variant:c,onClick:s?void 0:i,className:Dn("components-notice__action",e),children:t},a)}))})]}),i&&(0,Ve.jsx)(Fa,{size:"small",className:"components-notice__dismiss",icon:mc,label:(0,pc.__)("Close"),onClick:()=>{l(),o()}})]})},wc=new RegExp(/-left/g),_c=new RegExp(/-right/g),xc=new RegExp(/Left/g),Sc=new RegExp(/Right/g);function kc(e){return"left"===e?"right":"right"===e?"left":wc.test(e)?e.replace(wc,"-right"):_c.test(e)?e.replace(_c,"-left"):xc.test(e)?e.replace(xc,"Right"):Sc.test(e)?e.replace(Sc,"Left"):e}function Ec(e={},t){return()=>t?(0,pc.isRTL)()?Fe(t,"",""):Fe(e,"",""):(0,pc.isRTL)()?Fe(((e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[kc(e),t]))))(e),"",""):Fe(e,"","")}Ec.watch=()=>(0,pc.isRTL)();const Cc=st((function(e,t){const n=function(e){const{className:t,display:n,isBlock:r=!1,...o}=Et(e,"FlexItem"),i={},s=(0,$e.useContext)(wn).flexItemDisplay;return i.Base=Fe({display:n||s},"",""),{...o,className:kt()(mn,i.Base,r&&gn,t)}}(e);return(0,Ve.jsx)(vt,{...n,ref:t})}),"FlexItem"),Tc={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},Ic="…",Oc={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Mc={ellipsis:Ic,ellipsizeMode:Oc.auto,limit:0,numberOfLines:0};var Rc={grad:.9,turn:360,rad:360/(2*Math.PI)},Ac=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Dc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Nc=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Pc=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Lc=function(e){return{r:Nc(e.r,0,255),g:Nc(e.g,0,255),b:Nc(e.b,0,255),a:Nc(e.a)}},jc=function(e){return{r:Dc(e.r),g:Dc(e.g),b:Dc(e.b),a:Dc(e.a,3)}},Fc=/^#([0-9a-f]{3,8})$/i,$c=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},zc=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Bc=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),c=r*(1-(1-t+i)*n),l=i%6;return{r:255*[r,a,s,s,c,r][l],g:255*[c,r,r,a,s,s][l],b:255*[s,s,c,r,r,a][l],a:o}},Hc=function(e){return{h:Pc(e.h),s:Nc(e.s,0,100),l:Nc(e.l,0,100),a:Nc(e.a)}},Uc=function(e){return{h:Dc(e.h),s:Dc(e.s),l:Dc(e.l),a:Dc(e.a,3)}},Wc=function(e){return Bc((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},qc=function(e){return{h:(t=zc(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Vc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kc={string:[[function(e){var t=Fc.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Dc(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Dc(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Gc.exec(e)||Yc.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Lc({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Vc.exec(e)||Xc.exec(e);if(!t)return null;var n,r,o=Hc({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Rc[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Wc(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return Ac(t)&&Ac(n)&&Ac(r)?Lc({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!Ac(t)||!Ac(n)||!Ac(r))return null;var s=Hc({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Wc(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Ac(t)||!Ac(n)||!Ac(r))return null;var s=function(e){return{h:Pc(e.h),s:Nc(e.s,0,100),v:Nc(e.v,0,100),a:Nc(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Bc(s)},"hsv"]]},Jc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Qc=function(e,t){var n=qc(e);return{h:n.h,s:Nc(n.s+100*t,0,100),l:n.l,a:n.a}},Zc=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},el=function(e,t){var n=qc(e);return{h:n.h,s:n.s,l:Nc(n.l+100*t,0,100),a:n.a}},tl=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Jc(e.trim(),Kc.string):"object"==typeof e&&null!==e?Jc(e,Kc.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Dc(Zc(this.rgba),2)},e.prototype.isDark=function(){return Zc(this.rgba)<.5},e.prototype.isLight=function(){return Zc(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=jc(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?$c(Dc(255*o)):"","#"+$c(t)+$c(n)+$c(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return jc(this.rgba)},e.prototype.toRgbString=function(){return t=(e=jc(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Uc(qc(this.rgba))},e.prototype.toHslString=function(){return t=(e=Uc(qc(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=zc(this.rgba),{h:Dc(e.h),s:Dc(e.s),v:Dc(e.v),a:Dc(e.a,3)};var e},e.prototype.invert=function(){return nl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),nl(Qc(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),nl(Qc(this.rgba,-e))},e.prototype.grayscale=function(){return nl(Qc(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),nl(el(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),nl(el(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?nl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Dc(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=qc(this.rgba);return"number"==typeof e?nl({h:e,s:t.s,l:t.l,a:t.a}):Dc(t.h)},e.prototype.isEqual=function(e){return this.toHex()===nl(e).toHex()},e}(),nl=function(e){return e instanceof tl?e:new tl(e)},rl=[];let ol;!function(e){e.forEach((function(e){rl.indexOf(e)<0&&(e(tl,Kc),rl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,s,a=r[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=c,s=i[f],Math.pow(o.r-s.r,2)+Math.pow(o.g-s.g,2)+Math.pow(o.b-s.b,2));p<l&&(l=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}]);const il=ot((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&nl(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!ol){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),ol=e}return ol}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));const sl=Fe("color:",At.theme.foreground,";line-height:",Pt.fontLineHeightBase,";margin:0;text-wrap:balance;text-wrap:pretty;",""),al={name:"4zleql",styles:"display:block"},cl=Fe("color:",At.alert.green,";",""),ll=Fe("color:",At.alert.red,";",""),ul=Fe("color:",At.gray[700],";",""),dl=Fe("mark{background:",At.alert.yellow,";border-radius:",Pt.radiusSmall,";box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),fl={name:"50zrmy",styles:"text-transform:uppercase"};var pl=n(4406);const hl=ot((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t})),ml={body:13,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function gl(e=13){if(e in ml)return gl(ml[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / 13) * ${Pt.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var yl={name:"50zrmy",styles:"text-transform:uppercase"};function vl(e){const{adjustLineHeightForInnerControls:t,align:n,children:o,className:i,color:s,ellipsizeMode:a,isDestructive:c=!1,display:l,highlightEscape:u=!1,highlightCaseSensitive:d=!1,highlightWords:f,highlightSanitize:p,isBlock:h=!1,letterSpacing:m,lineHeight:g,optimizeReadabilityFor:y,size:v,truncate:b=!1,upperCase:w=!1,variant:_,weight:x=Pt.fontWeight,...S}=Et(e,"Text");let k=o;const E=Array.isArray(f),C="caption"===v;if(E){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");k=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:a="",highlightStyle:c={},highlightTag:l="mark",sanitize:u,searchWords:d=[],unhighlightClassName:f="",unhighlightStyle:p}){if(!i)return null;if("string"!=typeof i)return i;const h=i,m=(0,pl.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:u,searchWords:d,textToHighlight:h}),g=l;let y,v=-1,b="";return m.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;v++,r="object"==typeof a?o?a[s]:(a=hl(a))[s.toLowerCase()]:a;const l=v===+t;b=`${r} ${l?e:""}`,y=!0===l&&null!==n?Object.assign({},c,n):c;const u={children:s,className:b,key:i,style:y};return"string"!=typeof g&&(u.highlightIndex=v),(0,$e.createElement)(g,u)}return(0,$e.createElement)("span",{children:s,className:f,key:i,style:p})}))}({autoEscape:u,children:o,caseSensitive:d,searchWords:f,sanitize:p})}const T=kt();let I;!0===b&&(I="auto"),!1===b&&(I="none");const O=function(e){const{className:t,children:n,ellipsis:r=Ic,ellipsizeMode:o=Oc.auto,limit:i=0,numberOfLines:s=0,...a}=Et(e,"Truncate"),c=kt();let l;"string"==typeof n?l=n:"number"==typeof n&&(l=n.toString());const u=l?function(e="",t){const n={...Mc,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===Oc.none)return e;let s,a;switch(o){case Oc.head:s=0,a=i;break;case Oc.middle:s=Math.floor(i/2),a=Math.floor(i/2);break;default:s=i,a=0}const c=o!==Oc.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,s=~~n,a=Lt(r)?r:Ic;return 0===i&&0===s||i>=o||s>=o||i+s>=o?e:0===s?e.slice(0,i)+a:e.slice(0,i)+a+e.slice(o-s)}(e,s,a,r):e;return c}(l,{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}):n,d=!!l&&o===Oc.auto;return{...a,className:(0,$e.useMemo)((()=>c(d&&!s&&Tc,d&&!!s&&Fe(1===s?"word-break: break-all;":""," -webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}({...S,className:(0,$e.useMemo)((()=>{const e={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Pt.controlHeight} + ${Tt(2)})`;switch(e){case"large":n=`calc(${Pt.controlHeightLarge} + ${Tt(2)})`;break;case"small":n=`calc(${Pt.controlHeightSmall} + ${Tt(2)})`;break;case"xSmall":n=`calc(${Pt.controlHeightXSmall} + ${Tt(2)})`}return n}(t,g);if(e.Base=Fe({color:s,display:l,fontSize:gl(v),fontWeight:x,lineHeight:o,letterSpacing:m,textAlign:n},"",""),e.upperCase=yl,e.optimalTextColor=null,y){const t="dark"==("#000000"===function(e){const t=il(e);return nl(t).isLight()?"#000000":"#ffffff"}(y)?"dark":"light");e.optimalTextColor=Fe(t?{color:At.gray[900]}:{color:At.white},"","")}return T(sl,e.Base,e.optimalTextColor,c&&ll,!!E&&dl,h&&al,C&&ul,_&&r[_],w&&e.upperCase,i)}),[t,n,i,s,T,l,h,C,c,E,m,g,y,v,w,_,x]),children:o,ellipsizeMode:a||I});return!b&&Array.isArray(o)&&(k=$e.Children.map(o,(e=>{return"object"==typeof e&&null!==e&&"props"in e?(n=["Link"],(t=e)&&("string"==typeof n?ct(t).includes(n):Array.isArray(n)&&n.some((e=>ct(t).includes(e))))?(0,$e.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,n}))),{...O,children:b?O.children:k}}const bl=st((function(e,t){const n=vl(e);return(0,Ve.jsx)(vt,{as:"span",...n,ref:t})}),"Text"),wl=gt("span",{target:"em5sgkm8"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),_l=gt("span",{target:"em5sgkm7"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),xl=({disabled:e,isBorderless:t})=>t?"transparent":e?At.ui.borderDisabled:At.ui.border,Sl=gt("div",{target:"em5sgkm6"})("&&&{box-sizing:border-box;border-color:",xl,";border-radius:inherit;border-style:solid;border-width:1px;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",Ec({paddingLeft:2}),";}"),kl=gt(xn,{target:"em5sgkm5"})("box-sizing:border-box;position:relative;border-radius:",Pt.radiusSmall,";padding-top:0;&:focus-within:not( :has( :is( ",wl,", ",_l," ):focus-within ) ){",Sl,"{border-color:",At.ui.borderFocus,";box-shadow:",Pt.controlBoxShadowFocus,";outline:2px solid transparent;outline-offset:-2px;}}"),El=({disabled:e})=>Fe({backgroundColor:e?At.ui.backgroundDisabled:At.ui.background},"","");var Cl={name:"1d3w5wq",styles:"width:100%"};const Tl=({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Fe("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):Cl,Il=gt("div",{target:"em5sgkm4"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",El," ",Tl,";"),Ol=({inputSize:e})=>{const t={default:"13px",small:"11px",compact:"13px","__unstable-large":"13px"},n=t[e]||t.default;return n?Fe("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""},Ml=({inputSize:e,__next40pxDefaultSize:t})=>{const n={default:{height:40,lineHeight:1,minHeight:40,paddingLeft:Pt.controlPaddingX,paddingRight:Pt.controlPaddingX},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Pt.controlPaddingXSmall,paddingRight:Pt.controlPaddingXSmall},compact:{height:32,lineHeight:1,minHeight:32,paddingLeft:Pt.controlPaddingXSmall,paddingRight:Pt.controlPaddingXSmall},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Pt.controlPaddingX,paddingRight:Pt.controlPaddingX}};return t||(n.default=n.compact),n[e]||n.default},Rl=(At.theme.foreground,gt(bl,{target:"em5sgkm2"})("&&&{",Ka,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}")),Al=e=>(0,Ve.jsx)(Rl,{...e,as:"label"}),Dl=gt(Cc,{target:"em5sgkm1"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Nl=({variant:e="default",size:t,__next40pxDefaultSize:n,isPrefix:r})=>{const{paddingLeft:o}=Ml({inputSize:t,__next40pxDefaultSize:n}),i=r?"paddingInlineStart":"paddingInlineEnd";return Fe("default"===e?{[i]:o}:{display:"flex",[i]:o-4},"","")},Pl=gt("div",{target:"em5sgkm0"})(Nl,";"),Ll=st((function(e,t){const n=Et(e,"InputControlSuffixWrapper");return(0,Ve.jsx)(Pl,{...n,ref:t})}),"InputControlSuffixWrapper"),jl=(0,$e.memo)((function({disabled:e=!1,isBorderless:t=!1}){return(0,Ve.jsx)(Sl,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isBorderless:t})}));function Fl({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,Ve.jsx)(Pa,{as:"label",htmlFor:n,children:e}):(0,Ve.jsx)(Dl,{children:(0,Ve.jsx)(Al,{htmlFor:n,...r,children:e})}):null}function $l(e){const{__next36pxDefaultSize:t,__next40pxDefaultSize:n,...r}=e;return{...r,__next40pxDefaultSize:null!=n?n:t}}function zl(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}const Bl=st((function e(t,n){const{__next40pxDefaultSize:r,__unstableInputWidth:o,children:i,className:s,disabled:a=!1,hideLabelFromVision:c=!1,labelPosition:l,id:u,isBorderless:d=!1,label:f,prefix:p,size:h="default",suffix:m,...g}=$l(Et(t,"InputBase")),y=function(t){const n=(0,Nn.useInstanceId)(e);return t||`input-base-control-${n}`}(u),v=c||!f,b=(0,$e.useMemo)((()=>({InputControlPrefixWrapper:{__next40pxDefaultSize:r,size:h},InputControlSuffixWrapper:{__next40pxDefaultSize:r,size:h}})),[r,h]);return(0,Ve.jsxs)(kl,{...g,...zl(l),className:s,gap:2,ref:n,children:[(0,Ve.jsx)(Fl,{className:"components-input-control__label",hideLabelFromVision:c,labelPosition:l,htmlFor:y,children:f}),(0,Ve.jsxs)(Il,{__unstableInputWidth:o,className:"components-input-control__container",disabled:a,hideLabel:v,labelPosition:l,children:[(0,Ve.jsxs)(Ye,{value:b,children:[p&&(0,Ve.jsx)(wl,{className:"components-input-control__prefix",children:p}),i,m&&(0,Ve.jsx)(_l,{className:"components-input-control__suffix",children:m})]}),(0,Ve.jsx)(jl,{disabled:a,isBorderless:d})]})]})}),"InputBase"),Hl=({disabled:e})=>e?Fe("color:",At.ui.textDisabled,";cursor:default;",""):"";var Ul={name:"1lv1yo7",styles:"display:inline-flex"};const Wl=({variant:e})=>"minimal"===e?Ul:"",ql=gt(Bl,{target:"e1mv6sxx3"})("color:",At.theme.foreground,";cursor:pointer;",Hl," ",Wl,";"),Vl=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:40,minHeight:40,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},compact:{height:32,minHeight:32,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};return e||(r.default=r.compact),Fe(r[n]||r.default,"","")},Xl=({__next40pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:Pt.controlPaddingX,small:Pt.controlPaddingXSmall,compact:Pt.controlPaddingXSmall,"__unstable-large":Pt.controlPaddingX};e||(r.default=r.compact);const o=r[n]||r.default;return Ec({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})},Gl=({multiple:e})=>({overflow:e?"auto":"hidden"});var Yl={name:"n1jncc",styles:"field-sizing:content"};const Kl=({variant:e})=>"minimal"===e?Yl:"",Jl=gt("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:currentColor;cursor:inherit;display:block;font-family:inherit;margin:0;width:100%;max-width:none;white-space:nowrap;text-overflow:ellipsis;",Ol,";",Vl,";",Xl,";",Gl," ",Kl,";}"),Ql=gt("div",{target:"e1mv6sxx1"})("margin-inline-end:",Tt(-1),";line-height:0;path{fill:currentColor;}"),Zl=gt(Ll,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",Ec({right:0}),";"),eu=(0,$e.forwardRef)((function({icon:e,size:t=24,...n},r){return(0,$e.cloneElement)(e,{width:t,height:t,...n,ref:r})})),tu=(0,Ve.jsx)(Ra.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Ve.jsx)(Ra.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),nu=()=>(0,Ve.jsx)(Zl,{children:(0,Ve.jsx)(Ql,{children:(0,Ve.jsx)(eu,{icon:tu,size:18})})});function ru({options:e}){return e.map((({id:e,label:t,value:n,...r},o)=>{const i=e||`${t}-${n}-${o}`;return(0,Ve.jsx)("option",{value:n,...r,children:t},i)}))}const ou=(0,$e.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:a,multiple:c=!1,onChange:l,options:u=[],size:d="default",value:f,labelPosition:p="top",children:h,prefix:m,suffix:g,variant:y="default",__next40pxDefaultSize:v=!1,__nextHasNoMarginBottom:b=!1,__shouldNotWarnDeprecated36pxSize:w,..._}=$l(e),x=function(e){const t=(0,Nn.useInstanceId)(ou);return e||`inspector-select-control-${t}`}(s),S=o?`${x}__help`:void 0;if(!u?.length&&!h)return null;const k=Dn("components-select-control",n);return function({componentName:e,__next40pxDefaultSize:t,size:n,__shouldNotWarnDeprecated36pxSize:r}){r||t||void 0!==n&&"default"!==n||en()(`36px default size for wp.components.${e}`,{since:"6.8",version:"7.1",hint:"Set the `__next40pxDefaultSize` prop to true to start opting into the new default size, which will become the default in a future version."})}({componentName:"SelectControl",__next40pxDefaultSize:v,size:d,__shouldNotWarnDeprecated36pxSize:w}),(0,Ve.jsx)(ac,{help:o,id:x,__nextHasNoMarginBottom:b,__associatedWPComponentName:"SelectControl",children:(0,Ve.jsx)(ql,{className:k,disabled:r,hideLabelFromVision:i,id:x,isBorderless:"minimal"===y,label:a,size:d,suffix:g||!c&&(0,Ve.jsx)(nu,{}),prefix:m,labelPosition:p,__unstableInputWidth:"minimal"===y?"auto":void 0,variant:y,__next40pxDefaultSize:v,children:(0,Ve.jsx)(Jl,{..._,__next40pxDefaultSize:v,"aria-describedby":S,className:"components-select-control__input",disabled:r,id:x,multiple:c,onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},ref:t,selectSize:d,value:f,variant:y,children:h||(0,Ve.jsx)(ru,{options:u})})})})})),iu=ou;function su(e){return null!=e}const au=st((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:s,marginX:a,marginY:c,padding:l,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:h,paddingY:m,...g}=Et(e,"Spacer");return{...g,className:kt()(su(n)&&Fe("margin:",Tt(n),";",""),su(c)&&Fe("margin-bottom:",Tt(c),";margin-top:",Tt(c),";",""),su(a)&&Fe("margin-left:",Tt(a),";margin-right:",Tt(a),";",""),su(s)&&Fe("margin-top:",Tt(s),";",""),su(r)&&Fe("margin-bottom:",Tt(r),";",""),su(o)&&Ec({marginLeft:Tt(o)})(),su(i)&&Ec({marginRight:Tt(i)})(),su(l)&&Fe("padding:",Tt(l),";",""),su(m)&&Fe("padding-bottom:",Tt(m),";padding-top:",Tt(m),";",""),su(h)&&Fe("padding-left:",Tt(h),";padding-right:",Tt(h),";",""),su(p)&&Fe("padding-top:",Tt(p),";",""),su(u)&&Fe("padding-bottom:",Tt(u),";",""),su(d)&&Ec({paddingLeft:Tt(d)})(),su(f)&&Ec({paddingRight:Tt(f)})(),t)}}(e);return(0,Ve.jsx)(vt,{...n,ref:t})}),"Spacer"),cu=e=>e.isSuccessful?(0,Ve.jsx)(Da,{icon:"yes",className:"health-status-card__icon--success"}):(0,Ve.jsx)(Da,{icon:"no",className:"health-status-card__icon--error"}),lu=e=>(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("h3",{children:e.name}),(0,Ve.jsx)(cu,{isSuccessful:e.isSuccessful}),e.message]}),uu=window.wp.data,du="wcshipping",fu="/wcshipping/v1",pu=e=>[...["US","CA","MX","DO"].includes(e.toUpperCase())?[]:[{key:"a4",name:(0,pc.__)("A4","woocommerce-shipping"),size:(0,pc.__)("210x297mm","woocommerce-shipping")}],{key:"label",name:(0,pc.__)('Label (4"x6")',"woocommerce-shipping"),size:(0,pc.__)('4"x6"',"woocommerce-shipping")},{key:"letter",name:(0,pc.__)('Letter (8.5"x11")',"woocommerce-shipping"),size:(0,pc.__)('8.5"x11"',"woocommerce-shipping")}],hu=window.lodash,mu=e=>{try{return new ActiveXObject(e)}catch{}},gu=(0,hu.memoize)((()=>(0,hu.get)(window,"navigator.msSaveOrOpenBlob")?"ie":/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent)&&!window.MSStream?"addon":(0,hu.includes)(navigator.userAgent,"Firefox")?parseFloat(navigator.userAgent.split("Firefox/")[1])>=94?"native_ff":"addon":(0,hu.includes)(navigator.userAgent,"Safari")&&!(0,hu.includes)(navigator.userAgent,"Chrome")?"addon":navigator.mimeTypes?.["application/pdf"]||navigator.pdfViewerEnabled?"native":!(!mu("AcroPDF.PDF")&&!mu("PDF.PdfCtrl"))&&"addon"));class yu extends Error{constructor(){super("Unable to open label PDF in new tab"),this.name="PopupBlockedError",Object.setPrototypeOf(this,new.target.prototype)}}let vu=null;const bu=e=>new Promise(((t,n)=>{vu&&document.body.removeChild(vu),vu=document.createElement("iframe"),vu.src=e,vu.style.position="fixed",vu.style.left="-999px",vu.onload=()=>{t()},vu.onerror=e=>{n(e)},document.body.appendChild(vu)})),wu=window.wp.url,_u=e=>Array.isArray(e)&&e.length>0&&e.every((e=>"object"==typeof e&&null!==e&&"number"==typeof e.label_id&&"number"==typeof e.fulfillment_id)),xu=(e,t,n)=>((e,t,n,r)=>{const o=((e,t="US")=>pu(t).find((({key:t})=>t===e)))(e,r);if(!o)throw new Error((0,pc.__)("Selected paper size is no longer available. Please pick another.","woocommerce-shipping"));const i=(e=>_u(e)?e.map((e=>e.label_id)):Array.isArray(e)?e:[e])(t),s={paper_size:e,label_id_csv:i.join(","),json:!0};return _u(t)&&Object.assign(s,{fulfillment_id_csv:t.map((e=>e.fulfillment_id)).join(",")}),(0,wu.addQueryArgs)(n,s)})(e,t,`${fu}/label/preview`,n),Su=window.wp.apiFetch;var ku=n.n(Su);const Eu=e=>{const[t,n]=(0,c.useState)(!0),[r,o]=(0,c.useState)(!1),[i,s]=(0,c.useState)(pu("US")[0].key),[a,l]=(0,c.useState)(!1),u=(0,uu.useSelect)((e=>e(du).getWoocommerceHealthItem())),d=(0,uu.useSelect)((e=>e(du).getWPComHealthItem())),f=(0,uu.useSelect)((e=>({...e(du).getWCShippingHealthItem()}))),p=(0,uu.useSelect)((e=>e(du).getLogs())),h=(0,uu.useSelect)((e=>e(du).getLoggingEnabled())),m=(0,uu.useSelect)((e=>e(du).getDebugEnabled()));(0,c.useEffect)((()=>{(async()=>{await(0,uu.dispatch)(du).init({healthItems:e.healthItems,services:e.services,loggingEnabled:e.loggingEnabled,debugEnabled:e.debugEnabled,logs:e.logs}),n(!1)})()}),[e.healthItems,e.services,e.loggingEnabled,e.debugEnabled,e.logs]);const g=async(t,n)=>{await(0,uu.dispatch)(du).toggleDebug({nonce:e.nonce,payload:{debugEnabled:t,loggingEnabled:n}})},y=()=>f.timestamp>0&&new Date(1e3*f.timestamp).toLocaleString();if(t)return(0,Ve.jsx)("div",{children:"Loading..."});const v=!1!==y()?(0,pc.sprintf)(
// translators: %s is last update time.
// translators: %s is last update time.
(0,pc.__)("Last update on %s","woocommerce-shipping"),y()):(0,pc.__)("Cannot retrieve the last update time.","woocommerce-shipping");return(0,Ve.jsxs)("div",{children:[(0,Ve.jsxs)(fn,{children:[(0,Ve.jsx)(Sn,{children:(0,Ve.jsx)("h1",{children:"Health"})}),(0,Ve.jsx)(Rn,{children:(0,Ve.jsx)(lu,{name:"WooCommerce",isSuccessful:"success"===u.state,message:u.message})},"woocommerce"),(0,Ve.jsx)(Rn,{children:(0,Ve.jsx)(lu,{name:"WordPress.com Connection",isSuccessful:"success"===d.state,message:d.message})},"wordpress.com"),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)(lu,{name:"WooCommerce Shipping",isSuccessful:f.has_service_schemas,message:(e=>{let t="";const n=Date.now()/1e3;return t=e.has_service_schemas?e.timestamp?e.timestamp<n-e.error_threshold?(0,pc.__)("Service data was found, but is more than three days old","woocommerce-shipping"):e.timestamp<n-e.warning_threshold?(0,pc.__)("Service data was found, but is more than one day old","woocommerce-shipping"):(0,pc.__)("Service data is up-to-date","woocommerce-shipping"):(0,pc.__)("Service data found, but may be out of date","woocommerce-shipping"):(0,pc.__)("No service data available","woocommerce-shipping"),t})(f)}),(0,Ve.jsxs)("p",{children:[v," ",(0,Ve.jsx)(Fa,{disabled:r,variant:"link",onClick:()=>(async()=>{o(!0),await(0,uu.dispatch)(du).refreshServiceData({nonce:e.nonce}).then((()=>{o(!1)}))})(),children:"Refresh data"}),r&&(0,Ve.jsx)(Wa,{})]})]},"wcshipping")]}),(0,Ve.jsxs)(fn,{children:[(0,Ve.jsx)(Sn,{children:(0,Ve.jsx)("h1",{children:"Debug"})}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:"Debug"}),(0,Ve.jsx)(Va,{checked:m,onChange:()=>{g(!m,h)}})," ",(0,Ve.jsx)("span",{children:m?"Enabled":"Disabled"}),(0,Ve.jsx)("p",{children:(0,Ve.jsx)("em",{children:"Display troubleshooting information on the Cart and Checkout pages."})})]}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:"Logging"}),(0,Ve.jsx)(Va,{checked:h,onChange:()=>{g(m,!h)}})," ",(0,Ve.jsx)("span",{children:h?"Enabled":"Disabled"}),(0,Ve.jsx)("p",{children:(0,Ve.jsx)("em",{children:"Write diagnostic messages to log files. Helpful when contacting support."})})]}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:"Shipping Log"}),(0,Ve.jsx)(fc,{label:"Shipping Log",help:"Last "+p.shipping.count+" entries",value:p.shipping.tail,rows:10,__nextHasNoMarginBottom:!0})]}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:"Other Log"}),(0,Ve.jsx)(fc,{label:(0,pc.__)("Other Log","woocommerce-shipping"),help:(0,pc.sprintf)(
// translators: %d is the number of entries to show.
// translators: %d is the number of entries to show.
(0,pc._n)("Last %d entry","Last %d entries",p.other.count,"woocommerce-shipping"),p.other.count),value:p.other.tail,rows:10,__nextHasNoMarginBottom:!0})]}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:(0,pc.__)("Support","woocommerce-shipping")}),(0,Ve.jsxs)("p",{children:[(0,pc.__)("Our team is here for you. View our","woocommerce-shipping")," ",(0,Ve.jsx)("a",{target:"_blank",href:"https://woocommerce.com/document/woocommerce-shipping/",rel:"noreferrer",children:(0,pc.__)("support docs","woocommerce-shipping")})," ",(0,pc.__)("or","woocommerce-shipping")," ",(0,Ve.jsx)("a",{target:"_blank",href:"https://woocommerce.com/contact-us/",rel:"noreferrer",children:(0,pc.__)("contact support","woocommerce-shipping")}),"."]})]}),(0,Ve.jsxs)(Rn,{children:[(0,Ve.jsx)("h3",{children:(0,pc.__)("Test Label Printing","woocommerce-shipping")}),a&&(0,Ve.jsx)(bc,{status:"error",isDismissible:!1,children:(0,pc.__)("Test label failed to print, please try again later.","woocommerce-shipping")}),(0,Ve.jsxs)("p",{children:[(0,pc.__)("Having trouble configuring your printer? You can run a test print for shipping labels by selecting the paper size, then print.","woocommerce-shipping")," "]}),(0,Ve.jsx)(iu,{label:(0,pc.__)("Label size","woocommerce-shipping"),options:pu(e.storeOptions.origin_country).reduce(((e,t)=>(e.push({label:t.name,value:t.key}),e)),[]),onChange:e=>(e=>{s(e)})(e),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,Ve.jsx)(au,{marginTop:0,marginBottom:3}),(0,Ve.jsx)(Fa,{variant:"primary",onClick:()=>(async()=>{const e="test_1234";try{const t=xu(i,e),n=await ku()({path:t,method:"GET"});await(({b64Content:e,mimeType:t},n)=>{const r=((e,t)=>{const n=atob(e),r=n.length,o=new Uint8Array(new ArrayBuffer(r));for(let e=0;e<r;e++)o[e]=n.charCodeAt(e);return new Blob([o],{type:t})})(e,t),o="ie"!==gu()?URL.createObjectURL(r):null;if(!o)return Promise.reject(new Error((0,pc.__)("Unable to create blob url","woocommerce-shipping")));switch(gu()){case"native":return bu(o).then((()=>{vu?.contentWindow?.print(),URL.revokeObjectURL(o)}));case"native_ff":return bu(o).then((()=>{try{vu?.contentDocument.body.innerText}catch{vu?.contentWindow?.print()}URL.revokeObjectURL(o)}));case"addon":const e=window.open(o);return setTimeout((()=>URL.revokeObjectURL(o)),1e3),e?Promise.resolve():Promise.reject(new yu);case"ie":return navigator.msSaveOrOpenBlob(r,n)?Promise.resolve():Promise.reject(new Error("Unable to download the PDF"));default:return bu(o),setTimeout((()=>URL.revokeObjectURL(o)),0),Promise.resolve()}})(n,((e,t=!1)=>`order-#${e}-label`+(t?"-reprint":"")+".pdf")(e,!1))}catch(e){return l(!0),Promise.reject(e)}})(),children:(0,pc.__)("Print","woocommerce-shipping")})]})]})]})},Cu="STATUS/INIT",Tu="STATUS/SAVE_DEBUG_TOGGLE",Iu="STATUS/REFRESH_SERVICE_DATA",Ou={},Mu=e=>e.pluginStatus?.healthItems?.woocommerce,Ru=e=>e.pluginStatus?.healthItems?.wordpress_com,Au=e=>e.pluginStatus?.healthItems?.wcshipping,Du=e=>e.pluginStatus?.logs,Nu=e=>e.pluginStatus?.loggingEnabled,Pu=e=>e.pluginStatus?.debugEnabled;function Lu(e){return{type:Cu,payload:e}}function*ju({nonce:e,payload:t}){return yield{type:"API_SAVE_DEBUG_TOGGLE",nonce:e,payload:t},{type:Tu,payload:t}}function*Fu({nonce:e}){const t=yield{type:"API_REFRESH_SERVICE_DATA",nonce:e};return{type:Iu,payload:{...t}}}const $u=async e=>await ku()({path:`${fu}/self-help`,headers:{"X-WP-Nonce":e.nonce},method:"POST",data:{wcc_debug_on:e.payload.debugEnabled,wcc_logging_on:e.payload.loggingEnabled}}),zu=async e=>await ku()({path:`${fu}/service-data-refresh`,headers:{"X-WP-Nonce":e.nonce},method:"POST"}),Bu={reducer:(e=Ou,{type:t,...n})=>{switch(t){case Cu:return{...e,...n.payload};case Tu:{const t={...e};return t.loggingEnabled=n.payload.loggingEnabled,t.debugEnabled=n.payload.debugEnabled,{...e,...t}}case Iu:{const t={...e};return t.healthItems.wcshipping.timestamp=n.payload.timestamp,{...e,...t}}}return e},selectors:o,actions:i,controls:s},Hu=(window.wc.wcSettings,window.wp.date,(0,hu.memoize)((e=>(0,hu.groupBy)(e,"serviceId"))),"9.1.0"),Uu=globalThis;function Wu(){return qu(Uu),Uu}function qu(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Hu,t[Hu]=t[Hu]||{}}function Vu(e,t,n=Uu){const r=n.__SENTRY__=n.__SENTRY__||{},o=r[Hu]=r[Hu]||{};return o[e]||(o[e]=t())}const Xu=Object.prototype.toString;function Gu(e){switch(Xu.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return od(e,Error)}}function Yu(e,t){return Xu.call(e)===`[object ${t}]`}function Ku(e){return Yu(e,"ErrorEvent")}function Ju(e){return Yu(e,"DOMError")}function Qu(e){return Yu(e,"String")}function Zu(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ed(e){return null===e||Zu(e)||"object"!=typeof e&&"function"!=typeof e}function td(e){return Yu(e,"Object")}function nd(e){return"undefined"!=typeof Event&&od(e,Event)}function rd(e){return Boolean(e?.then&&"function"==typeof e.then)}function od(e,t){try{return e instanceof t}catch(e){return!1}}function id(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}const sd=Uu;function ad(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,s=0;const a=" > ",c=a.length;let l;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++<r&&(l=cd(n,u),!("html"===l||i>1&&s+o.length*c+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(a)}catch(e){return"<unknown>"}}function cd(e,t){const n=e,r=[];if(!n?.tagName)return"";if(sd.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const o=t?.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(o?.length)o.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else{n.id&&r.push(`#${n.id}`);const e=n.className;if(e&&Qu(e)){const t=e.split(/\s+/);for(const e of t)r.push(`.${e}`)}}const i=["aria-label","type","name","title","alt"];for(const e of i){const t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join("")}function ld(){try{return sd.document.location.href}catch(e){return""}}const ud="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,dd=["debug","info","warn","error","log","assert","trace"],fd={};function pd(e){if(!("console"in Uu))return e();const t=Uu.console,n={},r=Object.keys(fd);r.forEach((e=>{const r=fd[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const hd=Vu("logger",(function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return ud?dd.forEach((n=>{t[n]=(...t)=>{e&&pd((()=>{Uu.console[n](`Sentry Logger [${n}]:`,...t)}))}})):dd.forEach((e=>{t[e]=()=>{}})),t}));function md(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function gd(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const r=e[t];try{id(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function yd(e,t=[],n=!1){return t.some((t=>function(e,t,n=!1){return!!Qu(e)&&(Yu(t,"RegExp")?t.test(e):!!Qu(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}function vd(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"==typeof o&&wd(o,r);try{e[t]=o}catch{ud&&hd.log(`Failed to replace method "${t}" in object`,e)}}function bd(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){ud&&hd.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function wd(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,bd(e,"__sentry_original__",t)}catch(e){}}function _d(e){return e.__sentry_original__}function xd(e){if(Gu(e))return{message:e.message,name:e.name,stack:e.stack,...kd(e)};if(nd(e)){const t={type:e.type,target:Sd(e.target),currentTarget:Sd(e.currentTarget),...kd(e)};return"undefined"!=typeof CustomEvent&&od(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Sd(e){try{return"undefined"!=typeof Element&&od(e,Element)?ad(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function kd(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Ed(e){return Cd(e,new Map)}function Cd(e,t){if(function(e){if(!td(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.getOwnPropertyNames(e))void 0!==e[n]&&(r[n]=Cd(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(Cd(e,t))})),r}return e}function Td(){return Date.now()/1e3}const Id=function(){const{performance:e}=Uu;if(!e?.now)return Td;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let Od;function Md(){const e=Uu,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t?.randomUUID)return t.randomUUID().replace(/-/g,"");t?.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function Rd(e){return e.exception?.values?.[0]}function Ad(e){const{message:t,event_id:n}=e;if(t)return t;const r=Rd(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Dd(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Nd(e,t){const n=Rd(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}function Pd(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{bd(e,"__sentry_captured__",!0)}catch(e){}return!1}function Ld(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||Id(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Md()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jd(){return Md()}function Fd(){return Md().substring(16)}function $d(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=$d(r[e],t[e],n-1));return r}const zd="_sentrySpan";function Bd(e,t){t?bd(e,zd,t):delete e[zd]}function Hd(e){return e[zd]}class Ud{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:jd(),sampleRand:Math.random()}}clone(){const e=new Ud;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Bd(e,Hd(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ld(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,n=t instanceof Ud?t.getScopeData():td(t)?e:void 0,{tags:r,extra:o,user:i,contexts:s,level:a,fingerprint:c=[],propagationContext:l}=n||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...o},this._contexts={...this._contexts,...s},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Bd(this,void 0),this._attachments=[],this.setPropagationContext({traceId:jd(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:Td(),...e};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Hd(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=$d(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t?.event_id||Md();if(!this._client)return hd.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n?.event_id||Md();if(!this._client)return hd.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t?.event_id||Md();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(hd.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}class Wd{constructor(e,t){let n,r;n=e||new Ud,r=t||new Ud,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return rd(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1||!this._stack.pop())}}function qd(){const e=qu(Wu());return e.stack=e.stack||new Wd(Vu("defaultCurrentScope",(()=>new Ud)),Vu("defaultIsolationScope",(()=>new Ud)))}function Vd(e){return qd().withScope(e)}function Xd(e,t){const n=qd();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Gd(e){return qd().withScope((()=>e(qd().getIsolationScope())))}function Yd(e){const t=qu(e);return t.acs?t.acs:{withIsolationScope:Gd,withScope:Vd,withSetScope:Xd,withSetIsolationScope:(e,t)=>Gd(t),getCurrentScope:()=>qd().getScope(),getIsolationScope:()=>qd().getIsolationScope()}}function Kd(){return Yd(Wu()).getCurrentScope()}function Jd(){return Yd(Wu()).getIsolationScope()}function Qd(){return Kd().getClient()}function Zd(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t;return Ed({trace_id:n,span_id:o||Fd(),parent_span_id:r})}const ef="production",tf="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var nf;function rf(e){return new sf((t=>{t(e)}))}function of(e){return new sf(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(nf||(nf={}));class sf{constructor(e){this._state=nf.PENDING,this._handlers=[],this._runExecutor(e)}then(e,t){return new sf(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new sf(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}_executeHandlers(){if(this._state===nf.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===nf.RESOLVED&&e[1](this._value),this._state===nf.REJECTED&&e[2](this._value),e[0]=!0)}))}_runExecutor(e){const t=(e,t)=>{this._state===nf.PENDING&&(rd(t)?t.then(n,r):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(nf.RESOLVED,e)},r=e=>{t(nf.REJECTED,e)};try{e(n,r)}catch(e){r(e)}}}function af(e,t,n,r=0){return new sf(((o,i)=>{const s=e[r];if(null===t||"function"!=typeof s)o(t);else{const a=s({...t},n);tf&&s.id&&null===a&&hd.log(`Event processor "${s.id}" dropped event`),rd(a)?a.then((t=>af(e,t,n,r+1).then(o))).then(null,i):af(e,a,n,r+1).then(o).then(null,i)}}))}let cf,lf,uf;const df="?",ff=/\(error: (.*)\)/,pf=/captureMessage|captureException/;function hf(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0,r=0)=>{const o=[],i=e.split("\n");for(let e=n;e<i.length;e++){const n=i[e];if(n.length>1024)continue;const s=ff.test(n)?n.replace(ff,"$1"):n;if(!s.match(/\S*Error: /)){for(const e of t){const t=e(s);if(t){o.push(t);break}}if(o.length>=50+r)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(mf(t).function||"")&&t.pop(),t.reverse(),pf.test(mf(t).function||"")&&(t.pop(),pf.test(mf(t).function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||mf(t).filename,function:e.function||df})))}(o.slice(r))}}function mf(e){return e[e.length-1]||{}}const gf="<anonymous>";function yf(e){try{return e&&"function"==typeof e&&e.name||gf}catch(e){return gf}}function vf(e){const t=e.exception;if(t){const e=[];try{return t.values.forEach((t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)})),e}catch(e){return}}}function bf(e,t=100,n=1/0){try{return _f("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function wf(e,t=3,n=102400){const r=bf(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?wf(e,t-1,n):r;var o}function _f(e,t,n=1/0,r=1/0,o=function(){const e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){const[i,s]=o;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const a=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof globalThis&&t===globalThis)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(id(t))return"[VueViewModel]";if(td(n=t)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${yf(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const r=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}var n}(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return a.replace("object ","");if(i(t))return"[Circular ~]";const l=t;if(l&&"function"==typeof l.toJSON)try{return _f("",l.toJSON(),c-1,r,o)}catch(e){}const u=Array.isArray(t)?[]:{};let d=0;const f=xd(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]="[MaxProperties ~]";break}const t=f[e];u[e]=_f(e,t,c-1,r,o),d++}return s(t),u}const xf="sentry.source",Sf="sentry.profile_id",kf="sentry.exclusive_time",Ef=/^sentry-/;function Cf(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(t&&n&&(e[t]=n),e)),{})}function Tf(e){return{scope:e._sentryScope,isolationScope:e._sentryIsolationScope}}let If=!1;function Of(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:Af(e).parent_span_id,i=Tf(e).scope;return Ed({parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||Fd():t,trace_id:n})}function Mf(e){return"number"==typeof e?Rf(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Rf(e.getTime()):Id()}function Rf(e){return e>9999999999?e/1e3:e}function Af(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(function(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:a,status:c}=e;return Ed({span_id:t,trace_id:n,data:r,description:i,parent_span_id:a,start_timestamp:Mf(o),timestamp:Mf(s)||void 0,status:Df(c),op:r["sentry.op"],origin:r["sentry.origin"]})}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Df(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function Nf(e){return e._sentryRootSpan||e}function Pf(){const e=Yd(Wu());return e.getActiveSpan?e.getActiveSpan():Hd(Kd())}function Lf(){If||(pd((()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")})),If=!0)}function jf(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o=Ed({environment:n.environment||ef,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",o),o}function Ff(e){const t=Qd();if(!t)return{};const n=Nf(e),r=Af(n),o=r.data,i=n.spanContext().traceState,s=i?.get("sentry.sample_rate")??o["sentry.sample_rate"];function a(e){return"number"!=typeof s&&"string"!=typeof s||(e.sample_rate=`${s}`),e}const c=n._frozenDsc;if(c)return a(c);const l=i?.get("sentry.dsc"),u=l&&function(e){const t=function(e){if(e&&(Qu(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce(((e,t)=>{const n=Cf(t);return Object.entries(n).forEach((([t,n])=>{e[t]=n})),e}),{}):Cf(e)}(e);if(!t)return;const n=Object.entries(t).reduce(((e,[t,n])=>(t.match(Ef)&&(e[t.slice(7)]=n),e)),{});return Object.keys(n).length>0?n:void 0}(l);if(u)return a(u);const d=jf(e.spanContext().traceId,t),f=o[xf],p=r.description;return"url"!==f&&p&&(d.transaction=p),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||Qd()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}()&&(d.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return 1===t}(n)),d.sample_rand=i?.get("sentry.sample_rand")??Tf(n).scope?.getPropagationContext().sampleRand.toString()),a(d),t.emit("createDsc",d,n),d}function $f(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:l,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:h}=t;zf(e,"extra",n),zf(e,"tags",r),zf(e,"user",o),zf(e,"contexts",i),e.sdkProcessingMetadata=$d(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),h&&(e.span=h),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function zf(e,t,n){e[t]=$d(e[t],n,1)}function Bf(e,t,n,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||Md(),timestamp:t.timestamp||Td()},l=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||ef,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o),e.message&&(e.message=md(e.message,i));const s=e.exception?.values?.[0];s?.value&&(s.value=md(s.value,i));const a=e.request;a?.url&&(a.url=md(a.url,i))}(c,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(c,l),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){const n=function(e){const t=Uu._sentryDebugIds;if(!t)return{};const n=Object.keys(t);return uf&&n.length===lf||(lf=n.length,uf=n.reduce(((n,r)=>{cf||(cf={});const o=cf[r];if(o)n[o[0]]=o[1];else{const o=e(r);for(let e=o.length-1;e>=0;e--){const i=o[e],s=i?.filename,a=t[r];if(s&&a){n[s]=a,cf[r]=[s,a];break}}}return n}),{})),uf}(t);e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.filename&&(e.debug_id=n[e.filename])}))}))}(c,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Ud;return n.update(t),n}(r,n.captureContext);n.mechanism&&Nd(c,n.mechanism);const d=o?o.getEventProcessors():[],f=Vu("globalScope",(()=>new Ud)).getScopeData();i&&$f(f,i.getScopeData()),u&&$f(f,u.getScopeData());const p=[...n.attachments||[],...f.attachments];return p.length&&(n.attachments=p),function(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=Ed(n);Object.keys(c).length&&(e.extra={...c,...e.extra});const l=Ed(r);Object.keys(l).length&&(e.tags={...l,...e.tags});const u=Ed(o);Object.keys(u).length&&(e.user={...u,...e.user});const d=Ed(i);Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&"transaction"!==e.type&&(e.transaction=a)}(e,t),r&&function(e,t){e.contexts={trace:Of(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ff(t),...e.sdkProcessingMetadata};const n=Af(Nf(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,i)}(c,f),af([...d,...f.eventProcessors],c,n).then((e=>(e&&function(e){const t={};if(e.exception?.values?.forEach((e=>{e.stacktrace?.frames?.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))})),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach((([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})}))}(e),"number"==typeof s&&s>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:bf(e.data,t,n)}})))},...e.user&&{user:bf(e.user,t,n)},...e.contexts&&{contexts:bf(e.contexts,t,n)},...e.extra&&{extra:bf(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=bf(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>({...e,...e.data&&{data:bf(e.data,t,n)}})))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=bf(e.contexts.flags,3,n)),r}(e,s,a):e)))}const Hf=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Uf(e,t){return Kd().captureException(e,function(e){if(e)return function(e){return e instanceof Ud||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Hf.includes(e)))}(e)?{captureContext:e}:e}(t))}function Wf(e,t){return Kd().captureEvent(e,t)}function qf(e,t){Jd().setContext(e,t)}function Vf(e){const t=Jd(),n=Kd(),{userAgent:r}=Uu.navigator||{},o=function(e){const t=Id(),n={sid:Md(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Ed({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Ld(n,e),n}({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return"ok"===i?.status&&Ld(i,{status:"exited"}),Xf(),t.setSession(o),o}function Xf(){const e=Jd(),t=Kd().getSession()||e.getSession();t&&function(e){let t={};"ok"===e.status&&(t={status:"exited"}),Ld(e,t)}(t),Gf(),e.setSession()}function Gf(){const e=Jd(),t=Qd(),n=e.getSession();n&&t&&t.captureSession(n)}function Yf(e=!1){e?Xf():Gf()}const Kf=[];function Jf(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;if(t.forEach((e=>{e.isDefaultInstance=!0})),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.values(t)}(r)}function Qf(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Zf(e,t,n){if(n[t.name])tf&&hd.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===Kf.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Kf.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}tf&&hd.log(`Integration installed: ${t.name}`)}}function ep(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch(e){}return t}const tp=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],np=(e={})=>({name:"InboundFilters",processEvent(t,n,r){const o=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:tp],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(tf&&hd.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Ad(e)}`),!0):function(e,t){return!(e.type||!t||!t.length)&&ep(e).some((e=>yd(e,t)))}(e,t.ignoreErrors)?(tf&&hd.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Ad(e)}`),!0):function(e){return!e.type&&(!!e.exception?.values?.length&&(!e.message&&!e.exception.values.some((e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))))}(e)?(tf&&hd.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${Ad(e)}`),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&yd(n,t)}(e,t.ignoreTransactions)?(tf&&hd.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Ad(e)}`),!0):function(e,t){if(!t?.length)return!1;const n=rp(e);return!!n&&yd(n,t)}(e,t.denyUrls)?(tf&&hd.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Ad(e)}.\nUrl: ${rp(e)}`),!0):!function(e,t){if(!t?.length)return!0;const n=rp(e);return!n||yd(n,t)}(e,t.allowUrls)&&(tf&&hd.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Ad(e)}.\nUrl: ${rp(e)}`),!0)}(t,i)?null:t}});function rp(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(t){return tf&&hd.error(`Cannot extract url for event ${Ad(e)}`),null}}let op;const ip=new WeakMap,sp=()=>({name:"FunctionToString",setupOnce(){op=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=_d(this),n=ip.has(Qd())&&void 0!==t?t:this;return op.apply(n,e)}}catch{}},setup(e){ip.set(e,!0)}}),ap=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){const n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!lp(e,t)&&!!cp(e,t))))}(e,t)||!!function(e,t){const n=up(t),r=up(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!lp(e,t)&&!!cp(e,t)))}(e,t))}(t,e))return tf&&hd.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function cp(e,t){let n=vf(e),r=vf(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function lp(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function up(e){return e.exception?.values&&e.exception.values[0]}const dp=Uu;function fp(){if(!("fetch"in dp))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function pp(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}const hp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function mp(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function gp(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function yp(e,t=[]){return[e,t]}function vp(e,t){const[n,r]=e;return[n,[...r,t]]}function bp(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function wp(e){const t=qu(Uu);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function _p(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[wp(r),e]:r.push("string"==typeof e?wp(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(bf(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function xp(e){const t="string"==typeof e.data?wp(e.data):e.data;return[Ed({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}const Sp={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security"};function kp(e){return Sp[e]}function Ep(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Cp(e,t,n,r){const o=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:mp(r)},...o&&{trace:Ed({...o})}}}class Tp extends Error{constructor(e,t="warn"){super(e),this.message=e,this.logLevel=t}}function Ip(e){if("boolean"==typeof e)return Number(e);const t="string"==typeof e?parseFloat(e):e;return"number"!=typeof t||isNaN(t)||t<0||t>1?void 0:t}const Op="Not capturing exception because it's already been captured.",Mp="Discarded session because of missing or non-string release";class Rp{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=hp.exec(e);if(!t)return void pd((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i="",s="",a=""]=t.slice(1);let c="",l=a;const u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){const e=l.match(/^\d+/);e&&(l=e[0])}return gp({host:i,pass:o,path:c,projectId:l,port:s,protocol:n,publicKey:r})}(e):gp(e);if(t&&function(e){if(!ud)return!0;const{port:t,projectId:n,protocol:r}=e,o=["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(hd.error(`Invalid Sentry Dsn: ${t} missing`),!0)));return!(o||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(hd.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(hd.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(hd.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):tf&&hd.warn("No DSN provided, client will not send events."),this._dsn){const o=(t=this._dsn,n=e.tunnel,r=e._metadata?e._metadata.sdk:void 0,n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(t)}?${function(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(t,r)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:o})}var t,n,r}captureException(e,t,n){const r=Md();if(Pd(e))return tf&&hd.log(Op),r;const o={event_id:r,...t};return this._process(this.eventFromException(e,o).then((e=>this._captureEvent(e,o,n)))),o.event_id}captureMessage(e,t,n,r){const o={event_id:Md(),...n},i=Zu(e)?e:String(e),s=ed(e)?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(s.then((e=>this._captureEvent(e,o,r)))),o.event_id}captureEvent(e,t,n){const r=Md();if(t?.originalException&&Pd(t.originalException))return tf&&hd.log(Op),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,a=i.capturedSpanIsolationScope;return this._process(this._captureEvent(e,o,s||n,a)),o.event_id}captureSession(e){this.sendSession(e),Ld(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):rf(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.emit("close"),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some((({name:e})=>e.startsWith("Spotlight"))))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){const t=this._integrations[e.name];Zf(this,e,this._integrations),t||Qf(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=Ep(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n?.sdk);const s=Cp(e,o,r,t);return delete e.sdkProcessingMetadata,yp(s,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=vp(n,xp(e));const r=this.sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const{release:t,environment:n=ef}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(tf&&hd.warn(Mp));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(tf&&hd.warn(Mp));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=function(e,t,n,r){const o=Ep(n);return yp({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:mp(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;tf&&hd.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||[];return n.push(t),()=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach((e=>e(...t)))}sendEnvelope(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(e=>(tf&&hd.error("Error while sending envelope:",e),e))):(tf&&hd.error("Transport disabled"),rf({}))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&Zf(e,t,n)})),n}(this,e),Qf(this,e)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(!1===t?.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Ld(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new sf((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i?.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Bf(o,e,t,n,this,r).then((e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:Zd(n),...e.contexts};const r=function(e,t){const n=t.getPropagationContext();return n.dsc||jf(n.traceId,e)}(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e}))}_captureEvent(e,t={},n=Kd(),r=Jd()){return tf&&Ap(e)&&hd.log(`Captured error event \`${ep(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then((e=>e.event_id),(e=>{tf&&(e instanceof Tp&&"log"===e.logLevel?hd.log(e.message):hd.warn(e))}))}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,s=Dp(e),a=Ap(e),c=e.type||"error",l=`before send for type \`${c}\``,u=void 0===i?void 0:Ip(i);if(a&&"number"==typeof u&&Math.random()>u)return this.recordDroppedEvent("sample_rate","error"),of(new Tp(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const d="replay_event"===c?"replay":c;return this._prepareEvent(e,t,n,r).then((e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),new Tp("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return e;const n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;let a=n;if(Ap(a)&&o)return o(a,r);if(Dp(a)){if(s){const e=s(function(e){const{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=e.contexts?.trace??{};return Ed({data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:o,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:s?.[Sf],exclusive_time:s?.[kf],measurements:e.measurements,is_segment:!0})}(a));if(e?a=$d(n,Ed({type:"transaction",timestamp:(c=e).timestamp,start_timestamp:c.start_timestamp,transaction:c.description,contexts:{trace:{trace_id:c.trace_id,span_id:c.span_id,parent_span_id:c.parent_span_id,op:c.op,status:c.status,origin:c.origin,data:{...c.data,...c.profile_id&&{[Sf]:c.profile_id},...c.exclusive_time&&{[kf]:c.exclusive_time}}}},measurements:c.measurements})):Lf(),a.spans){const e=[];for(const t of a.spans){const n=s(t);n?e.push(n):(Lf(),e.push(t))}a.spans=e}}if(i){if(a.spans){const e=a.spans.length;a.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(a,r)}}var c;return a}(0,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(rd(e))return e.then((e=>{if(!td(e)&&null!==e)throw new Tp(n);return e}),(e=>{throw new Tp(`${t} rejected with ${e}`)}));if(!td(e)&&null!==e)throw new Tp(n);return e}(n,l)})).then((o=>{if(null===o){if(this.recordDroppedEvent("before_send",d),s){const t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw new Tp(`${l} returned \`null\`, will not send event.`,"log")}const i=n.getSession()||r.getSession();if(a&&i&&this._updateSessionFromEvent(i,o),s){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(s&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o})).then(null,(e=>{if(e instanceof Tp)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Tp(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map((([e,t])=>{const[n,r]=e.split(":");return{reason:n,category:r,quantity:t}}))}_flushOutcomes(){tf&&hd.log("Flushing outcomes...");const e=this._clearOutcomes();if(0===e.length)return void(tf&&hd.log("No outcomes to send"));if(!this._dsn)return void(tf&&hd.log("No dsn provided, will not send outcomes"));tf&&hd.log("Sending outcomes:",e);const t=(n=e,yp((r=this._options.tunnel&&mp(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:Td(),discarded_events:n}]]));var n,r;this.sendEnvelope(t)}}function Ap(e){return void 0===e.type}function Dp(e){return"transaction"===e.type}function Np(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Hu}))),version:Hu}),e._metadata=o}function Pp(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function Lp(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function jp(e,t){const n=$p(e,t),r={type:Hp(t),value:Up(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function Fp(e,t){return{exception:{values:[jp(e,t)]}}}function $p(e,t){const n=t.stacktrace||t.stack||"",r=function(e){return e&&zp.test(e.message)?1:0}(t),o=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,o)}catch(e){}return[]}const zp=/Minified React error #\d+;/i;function Bp(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Hp(e){const t=e?.name;return!t&&Bp(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function Up(e){const t=e?.message;return Bp(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Wp(e,t,n,r,o){let i;if(Ku(t)&&t.error)return Fp(e,t.error);if(Ju(t)||Yu(t,"DOMException")){const o=t;if("stack"in t)i=Fp(e,t);else{const t=o.name||(Ju(o)?"DOMError":"DOMException"),s=o.message?`${t}: ${o.message}`:t;i=qp(e,s,n,r),Dd(i,s)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Gu(t)?Fp(e,t):td(t)||nd(t)?(i=function(e,t,n,r){const o=Qd(),i=o?.getOptions().normalizeDepth,s=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(t),a={__serialized__:wf(t,i)};if(s)return{exception:{values:[jp(e,s)]},extra:a};const c={exception:{values:[{type:nd(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Vp(t,{isUnhandledRejection:r})}]},extra:a};if(n){const t=$p(e,n);t.length&&(c.exception.values[0].stacktrace={frames:t})}return c}(e,t,n,o),Nd(i,{synthetic:!0}),i):(i=qp(e,t,n,r),Dd(i,`${t}`,void 0),Nd(i,{synthetic:!0}),i)}function qp(e,t,n,r){const o={};if(r&&n){const r=$p(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]}),Nd(o,{synthetic:!0})}if(Zu(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function Vp(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(xd(e));n.sort();const r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return md(r,t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:md(r,t)}return""}(e),r=t?"promise rejection":"exception";return Ku(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:nd(e)?`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}const Xp=Uu;let Gp=0;function Yp(){return Gp>0}function Kp(e,t={}){if(!function(e){return"function"==typeof e}(e))return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if(_d(e))return e}catch(t){return e}const n=function(...n){try{const r=n.map((e=>Kp(e,t)));return e.apply(this,r)}catch(e){throw Gp++,setTimeout((()=>{Gp--})),function(...e){const t=Yd(Wu());if(2===e.length){const[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}t.withScope(e[0])}((r=>{r.addEventProcessor((e=>(t.mechanism&&(Dd(e,void 0,void 0),Nd(e,t.mechanism)),e.extra={...e.extra,arguments:n},e))),Uf(e)})),e}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}wd(n,e),bd(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}class Jp extends Rp{constructor(e){const t={parentSpanIsAlwaysRootSpan:!0,...e};Np(t,"browser",["browser"],Xp.SENTRY_SDK_SOURCE||"npm"),super(t),t.sendClientReports&&Xp.document&&Xp.document.addEventListener("visibilitychange",(()=>{"hidden"===Xp.document.visibilityState&&this._flushOutcomes()})),this._options.sendDefaultPii&&(this.on("postprocessEvent",Pp),this.on("beforeSendSession",Lp))}eventFromException(e,t){return function(e,t,n,r){const o=Wp(e,t,n?.syntheticException||void 0,r);return Nd(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),rf(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=qp(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),rf(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}const Qp="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Zp={},eh={};function th(e,t){Zp[e]=Zp[e]||[],Zp[e].push(t)}function nh(e,t){if(!eh[e]){eh[e]=!0;try{t()}catch(t){ud&&hd.error(`Error while instrumenting ${e}`,t)}}}function rh(e,t){const n=e&&Zp[e];if(n)for(const r of n)try{r(t)}catch(t){ud&&hd.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${yf(r)}\nError:`,t)}}const oh=Uu;let ih,sh,ah;function ch(e){th("dom",e),nh("dom",lh)}function lh(){if(!oh.document)return;const e=rh.bind(null,"dom"),t=uh(e,!0);oh.document.addEventListener("click",t,!1),oh.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=oh,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(vd(r,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=uh(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch(e){}return t.call(this,n,r,o)}})),vd(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}function uh(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(e){return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;bd(n,"_sentryCaptured",!0),r&&!r._sentryId&&bd(r,"_sentryId",Md());const o="keypress"===n.type?"input":n.type;(function(e){if(e.type!==sh)return!1;try{if(!e.target||e.target._sentryId!==ah)return!1}catch(e){}return!0})(n)||(e({event:n,name:o,global:t}),sh=n.type,ah=r?r._sentryId:void 0),clearTimeout(ih),ih=oh.setTimeout((()=>{ah=void 0,sh=void 0}),1e3)}}const dh="__sentry_xhr_v3__";function fh(){if(!oh.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const r=new Error,o=1e3*Id(),i=Qu(n[0])?n[0].toUpperCase():void 0,s=function(e){if(Qu(e))return e;try{return e.toString()}catch{}}(n[1]);if(!i||!s)return e.apply(t,n);t[dh]={method:i,url:s,request_headers:{}},"POST"===i&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const a=()=>{const e=t[dh];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}rh("xhr",{endTimestamp:1e3*Id(),startTimestamp:o,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(a(),e.apply(t,n))}):t.addEventListener("readystatechange",a),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,o]=n,i=t[dh];return i&&Qu(r)&&Qu(o)&&(i.request_headers[r.toLowerCase()]=o),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const r=t[dh];return r?(void 0!==n[0]&&(r.body=n[0]),rh("xhr",{startTimestamp:1e3*Id(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}let ph;function hh(e){const t="history";th(t,e),nh(t,mh)}function mh(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=ph,t=String(n);if(ph=t,e===t)return;rh("history",{from:e,to:t})}return e.apply(this,t)}}oh.addEventListener("popstate",(()=>{const e=oh.location.href,t=ph;ph=e,t!==e&&rh("history",{from:t,to:e})})),"history"in dp&&(vd(oh.history,"pushState",e),vd(oh.history,"replaceState",e))}function gh(){"console"in Uu&&dd.forEach((function(e){e in Uu.console&&vd(Uu.console,e,(function(t){return fd[e]=t,function(...t){rh("console",{args:t,level:e});const n=fd[e];n?.apply(Uu.console,t)}}))}))}function yh(e,t){return!!e&&"object"==typeof e&&!!e[t]}function vh(e){return"string"==typeof e?e:e?yh(e,"url")?e.url:e.toString?e.toString():"":""}const bh=100;function wh(e,t){const n=Qd(),r=Jd();if(!n)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=bh}=n.getOptions();if(i<=0)return;const s={timestamp:Td(),...e},a=o?pd((()=>o(s,t))):s;null!==a&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,i))}function _h(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function xh(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}function Sh(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const kh=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n;t.console&&function(e){const t="console";th(t,e),nh(t,gh)}(function(e){return function(t){if(Qd()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:_h(t.level),message:gd(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${gd(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}wh(n,{input:t.args,level:t.level})}}(e)),t.dom&&ch(function(e,t){return function(n){if(Qd()!==e)return;let r,o,i="object"==typeof t?t.serializeAttribute:void 0,s="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;s&&s>1024&&(Qp&&hd.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${s} was configured. Sentry will use 1024 instead.`),s=1024),"string"==typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=ad(t,{keyAttrs:i,maxStringLength:s}),o=function(e){if(!sd.HTMLElement)return null;let t=e;for(let e=0;e<5;e++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(t)}catch(e){r="<unknown>"}if(0===r.length)return;const a={category:`ui.${n.name}`,message:r};o&&(a.data={"ui.component_name":o}),wh(a,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(n=function(e){return function(t){if(Qd()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr[dh];if(!n||!r||!o)return;const{method:i,url:s,status_code:a,body:c}=o,l={method:i,url:s,status_code:a},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:"xhr",data:l,type:"http",level:xh(a)};e.emit("beforeOutgoingRequestBreadcrumb",d,u),wh(d,u)}}(e),th("xhr",n),nh("xhr",fh)),t.fetch&&function(e){const t="fetch";th(t,e),nh(t,(()=>function(e,t=!1){t&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!fp())return!1;if(pp(dp.fetch))return!0;let e=!1;const t=dp.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=pp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){ud&&hd.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||vd(Uu,"fetch",(function(t){return function(...n){const r=new Error,{method:o,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:vh(t),method:yh(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:vh(t),method:yh(t,"method")?String(t.method).toUpperCase():"GET"}}(n),s={args:n,fetchData:{method:o,url:i},startTimestamp:1e3*Id(),virtualError:r};return e||rh("fetch",{...s}),t.apply(Uu,n).then((async t=>(e?e(t):rh("fetch",{...s,endTimestamp:1e3*Id(),response:t}),t)),(e=>{throw rh("fetch",{...s,endTimestamp:1e3*Id(),error:e}),Gu(e)&&void 0===e.stack&&(e.stack=r.stack,bd(e,"framesToPop",1)),e}))}}))}(void 0,undefined)))}(function(e){return function(t){if(Qd()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.fetchData.method,t.fetchData.url,t.error){const o=t.fetchData,i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},s={category:"fetch",data:o,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,i),wh(s,i)}else{const o=t.response,i={...t.fetchData,status_code:o?.status};t.fetchData.request_body_size,t.fetchData.response_body_size;const s={input:t.args,response:o,startTimestamp:n,endTimestamp:r},a={category:"fetch",data:i,type:"http",level:xh(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",a,s),wh(a,s)}}}(e)),t.history&&hh(function(e){return function(t){if(Qd()!==e)return;let n=t.from,r=t.to;const o=Sh(Xp.location.href);let i=n?Sh(n):void 0;const s=Sh(r);i?.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),wh({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){Qd()===e&&wh({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Ad(t)},{event:t})}}(e))}}},Eh=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ch=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&vd(Xp,"setTimeout",Th),t.setInterval&&vd(Xp,"setInterval",Th),t.requestAnimationFrame&&vd(Xp,"requestAnimationFrame",Ih),t.XMLHttpRequest&&"XMLHttpRequest"in Xp&&vd(XMLHttpRequest.prototype,"send",Oh);const e=t.eventTarget;e&&(Array.isArray(e)?e:Eh).forEach(Mh)}}};function Th(e){return function(...t){const n=t[0];return t[0]=Kp(n,{mechanism:{data:{function:yf(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ih(e){return function(t){return e.apply(this,[Kp(t,{mechanism:{data:{function:"requestAnimationFrame",handler:yf(e)},handled:!1,type:"instrument"}})])}}function Oh(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"==typeof n[e]&&vd(n,e,(function(t){const n={mechanism:{data:{function:e,handler:yf(t)},handled:!1,type:"instrument"}},r=_d(t);return r&&(n.mechanism.data.handler=yf(r)),Kp(t,n)}))})),e.apply(this,t)}}function Mh(e){const t=Xp,n=t[e]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(vd(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=Kp(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:yf(r),target:e},handled:!1,type:"instrument"}}))}catch{}return t.apply(this,[n,Kp(r,{mechanism:{data:{function:"addEventListener",handler:yf(r),target:e},handled:!1,type:"instrument"}}),o])}})),vd(n,"removeEventListener",(function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,n,r)}})))}let Rh=null;function Ah(){Rh=Uu.onerror,Uu.onerror=function(e,t,n,r,o){return rh("error",{column:r,error:o,line:n,msg:e,url:t}),!!Rh&&Rh.apply(this,arguments)},Uu.onerror.__SENTRY_INSTRUMENTED__=!0}let Dh=null;function Nh(){Dh=Uu.onunhandledrejection,Uu.onunhandledrejection=function(e){return rh("unhandledrejection",e),!Dh||Dh.apply(this,arguments)},Uu.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ph=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(function(e){!function(){const t="error";th(t,(t=>{const{stackParser:n,attachStacktrace:r}=jh();if(Qd()!==e||Yp())return;const{msg:o,url:i,line:s,column:a,error:c}=t,l=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],l=r,u=n,d=Qu(t)&&t.length>0?t:ld();return 0===c.length&&c.push({colno:l,filename:d,function:df,in_app:!0,lineno:u}),e}(Wp(n,c||o,void 0,r,!1),i,s,a);l.level="error",Wf(l,{originalException:c,mechanism:{handled:!1,type:"onerror"}})})),nh(t,Ah)}()}(e),Lh("onerror")),t.onunhandledrejection&&(function(e){!function(){const t="unhandledrejection";th(t,(t=>{const{stackParser:n,attachStacktrace:r}=jh();if(Qd()!==e||Yp())return;const o=function(e){if(ed(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),i=ed(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:Wp(n,o,void 0,r,!0);i.level="error",Wf(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})})),nh(t,Nh)}()}(e),Lh("onunhandledrejection"))}}};function Lh(e){Qp&&hd.log(`Global Handler attached: ${e}`)}function jh(){const e=Qd();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function Fh(e,t,n=250,r,o,i,s){if(!i.exception?.values||!s||!od(s.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,l;a&&(i.exception.values=(c=$h(e,t,o,s.originalException,r,i.exception.values,a,0),l=n,c.map((e=>(e.value&&(e.value=md(e.value,l)),e)))))}function $h(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(od(r[o],Error)){zh(s,a);const i=e(t,r[o]),l=c.length;Bh(i,o,l,a),c=$h(e,t,n,r[o],o,[i,...c],i,l)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if(od(r,Error)){zh(s,a);const l=e(t,r),u=c.length;Bh(l,`errors[${i}]`,u,a),c=$h(e,t,n,r,o,[l,...c],l,u)}})),c}function zh(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function Bh(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const Hh=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,o){const i=o.getOptions();Fh(jp,i.stackParser,i.maxValueLength,n,t,e,r)}}};function Uh(e,t,n,r){const o={filename:e,function:"<anonymous>"===t?df:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const Wh=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qh=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Vh=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xh=[30,e=>{const t=Wh.exec(e);if(t){const[,e,n,r]=t;return Uh(e,df,+n,+r)}const n=qh.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){const e=Vh.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}const[e,t]=Qh(n[1]||df,n[2]);return Uh(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],Gh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yh=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kh=[50,e=>{const t=Gh.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Yh.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||df;return[n,e]=Qh(n,e),Uh(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Jh=hf(Xh,Kh),Qh=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:df,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Zh="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,em={};function tm(e){const t=em[e];if(t)return t;let n=oh[e];if(pp(n))return em[e]=n.bind(oh);const r=oh.document;if(r&&"function"==typeof r.createElement)try{const t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);const o=t.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(t)}catch(t){Zh&&hd.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?em[e]=n.bind(oh):n}function nm(e){em[e]=void 0}function rm(...e){return tm("setTimeout")(...e)}function om(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}function im(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n?.["x-sentry-rate-limits"],s=n?.["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n,,,i]=e.split(":",5),s=parseInt(t,10),a=1e3*(isNaN(s)?60:s);if(n)for(const e of n.split(";"))"metric_bucket"===e&&i&&!i.split(";").includes("custom")||(o[e]=r+a);else o.all=r+a}else s?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(s,r):429===t&&(o.all=r+6e4);return o}function sm(e,t=tm("fetch")){let n=0,r=0;return function(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return of(new Tp("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new sf(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{rf(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||64)){let r={};return{send:function(o){const i=[];if(bp(o,((t,n)=>{const o=kp(n);om(r,o)?e.recordDroppedEvent("ratelimit_backoff",o):i.push(t)})),0===i.length)return rf({});const s=yp(o[0],i),a=t=>{bp(s,((n,r)=>{e.recordDroppedEvent(t,kp(r))}))};return n.add((()=>t({body:_p(s)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&tf&&hd.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=im(r,e),e)),(e=>{throw a("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Tp)return tf&&hd.error("Skipped sending event because buffer is full."),a("queue_overflow"),rf({});throw e}))},flush:e=>n.drain(e)}}(e,(function(o){const i=o.body.length;n+=i,r++;const s={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};if(!t)return nm("fetch"),of("No fetch implementation available");try{return t(e.url,s).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return nm("fetch"),n-=i,r--,of(e)}}))}function am(e){const t={};for(const n of Object.getOwnPropertyNames(e)){const r=n;void 0!==e[r]&&(t[r]=e[r])}return t}function cm(e={}){const t=function(e={}){return{defaultIntegrations:[np(),sp(),Ch(),kh(),Ph(),Hh(),ap(),{name:"HttpContext",preprocessEvent(e){if(!Xp.navigator&&!Xp.location&&!Xp.document)return;const t=e.request?.url||ld(),{referrer:n}=Xp.document||{},{userAgent:r}=Xp.navigator||{},o={...e.request?.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}},{name:"BrowserSession",setupOnce(){void 0!==Xp.document?(Vf({ignoreDuration:!0}),Yf(),hh((({from:e,to:t})=>{void 0!==e&&e!==t&&(Vf({ignoreDuration:!0}),Yf())}))):Qp&&hd.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}],release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:Xp.SENTRY_RELEASE?.id,sendClientReports:!0,...am(e)}}(e);if(!t.skipBrowserExtensionCheck&&function(){const e=void 0!==Xp.window&&Xp;if(!e)return!1;const t=e[e.chrome?"chrome":"browser"],n=t?.runtime?.id,r=ld()||"",o=!!n&&Xp===Xp.top&&["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"].some((e=>r.startsWith(`${e}//`))),i=void 0!==e.nw;return!!n&&!o&&!i}())return void(Qp&&pd((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")})));Qp&&!fp()&&hd.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.");const n={...t,stackParser:(r=t.stackParser||Jh,Array.isArray(r)?hf(...r):r),integrations:Jf(t),transport:t.transport||sm};var r;return function(e,t){!0===t.debug&&(tf?hd.enable():pd((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))),Kd().update(t.initialScope);const n=new e(t);return function(e){Kd().setClient(e)}(n),n.init(),n}(Jp,n)}function lm(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function um(){return"undefined"!=typeof window&&(!(("undefined"==typeof __SENTRY_BROWSER_BUNDLE__||!__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0))||function(){const e=Uu.process;return"renderer"===e?.type}())}const dm=(e,t,n,r)=>{let o,i;return s=>{t.value>=0&&(s||r)&&(i=t.value-(o||0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}},fm=(e=!0)=>{const t=oh.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},pm=()=>{const e=fm();return e?.activationStart||0},hm=(e,t)=>{const n=fm();let r="navigate";return n&&(oh.document?.prerendering||pm()>0?r="prerender":oh.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:`v4-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},mm=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{Promise.resolve().then((()=>{t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},gm=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==oh.document?.visibilityState||e(t)};oh.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ym=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let vm=-1;const bm=e=>{"hidden"===oh.document.visibilityState&&vm>-1&&(vm="visibilitychange"===e.type?e.timeStamp:0,wm())},wm=()=>{removeEventListener("visibilitychange",bm,!0),removeEventListener("prerenderingchange",bm,!0)},_m=()=>(oh.document&&vm<0&&(vm="hidden"!==oh.document.visibilityState||oh.document.prerendering?1/0:0,addEventListener("visibilitychange",bm,!0),addEventListener("prerenderingchange",bm,!0)),{get firstHiddenTime(){return vm}}),xm=e=>{oh.document?.prerendering?addEventListener("prerenderingchange",(()=>e()),!0):e()},Sm=[1800,3e3],km=[.1,.25],Em=[100,300];let Cm=0,Tm=1/0,Im=0;const Om=e=>{e.forEach((e=>{e.interactionId&&(Tm=Math.min(Tm,e.interactionId),Im=Math.max(Im,e.interactionId),Cm=Im?(Im-Tm)/7+1:0)}))};let Mm;const Rm=()=>{"interactionCount"in performance||Mm||(Mm=mm("event",Om,{type:"event",buffered:!0,durationThreshold:0}))},Am=[],Dm=new Map,Nm=()=>(Mm?Cm:performance.interactionCount||0)-0,Pm=[],Lm=e=>{if(Pm.forEach((t=>t(e))),!e.interactionId&&"first-input"!==e.entryType)return;const t=Am[Am.length-1],n=Dm.get(e.interactionId);if(n||Am.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0]?.startTime&&n.entries.push(e);else{const t={id:e.interactionId,latency:e.duration,entries:[e]};Dm.set(t.id,t),Am.push(t)}Am.sort(((e,t)=>t.latency-e.latency)),Am.length>10&&Am.splice(10).forEach((e=>Dm.delete(e.id)))}},jm=e=>{const t=oh.requestIdleCallback||oh.setTimeout;let n=-1;return e=ym(e),"hidden"===oh.document?.visibilityState?e():(n=t(e),gm(e)),n},Fm=[200,500],$m=[2500,4e3],zm={},Bm={},Hm={};let Um,Wm,qm,Vm;function Xm(e,t){const n=Bm[e];if(n?.length)for(const r of n)try{r(t)}catch(t){Zh&&hd.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${yf(r)}\nError:`,t)}}function Gm(){return((e,t={})=>{((e,t={})=>{xm((()=>{const n=_m(),r=hm("FCP");let o;const i=mm("paint",(e=>{e.forEach((e=>{"first-contentful-paint"===e.name&&(i.disconnect(),e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-pm(),0),r.entries.push(e),o(!0)))}))}));i&&(o=dm(e,r,Sm,t.reportAllChanges))}))})(ym((()=>{const n=hm("CLS",0);let r,o=0,i=[];const s=e=>{e.forEach((e=>{if(!e.hadRecentInput){const t=i[0],n=i[i.length-1];o&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e])}})),o>n.value&&(n.value=o,n.entries=i,r())},a=mm("layout-shift",s);a&&(r=dm(e,n,km,t.reportAllChanges),gm((()=>{s(a.takeRecords()),r(!0)})),setTimeout(r,0))})))})((e=>{Xm("cls",{metric:e}),Um=e}),{reportAllChanges:!0})}function Ym(){return((e,t={})=>{xm((()=>{const n=_m(),r=hm("FID");let o;const i=e=>{e.startTime<n.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),o(!0))},s=e=>{e.forEach(i)},a=mm("first-input",s);o=dm(e,r,Em,t.reportAllChanges),a&&gm(ym((()=>{s(a.takeRecords()),a.disconnect()})))}))})((e=>{Xm("fid",{metric:e}),Wm=e}))}function Km(){return((e,t={})=>{xm((()=>{const n=_m(),r=hm("LCP");let o;const i=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach((e=>{e.startTime<n.firstHiddenTime&&(r.value=Math.max(e.startTime-pm(),0),r.entries=[e],o())}))},s=mm("largest-contentful-paint",i);if(s){o=dm(e,r,$m,t.reportAllChanges);const n=ym((()=>{zm[r.id]||(i(s.takeRecords()),s.disconnect(),zm[r.id]=!0,o(!0))}));["keydown","click"].forEach((e=>{oh.document&&addEventListener(e,(()=>jm(n)),{once:!0,capture:!0})})),gm(n)}}))})((e=>{Xm("lcp",{metric:e}),qm=e}),{reportAllChanges:!0})}function Jm(){return((e,t={})=>{"PerformanceEventTiming"in oh&&"interactionId"in PerformanceEventTiming.prototype&&xm((()=>{Rm();const n=hm("INP");let r;const o=e=>{jm((()=>{e.forEach(Lm);const t=(()=>{const e=Math.min(Am.length-1,Math.floor(Nm()/50));return Am[e]})();t&&t.latency!==n.value&&(n.value=t.latency,n.entries=t.entries,r())}))},i=mm("event",o,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});r=dm(e,n,Fm,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),gm((()=>{o(i.takeRecords()),r(!0)})))}))})((e=>{Xm("inp",{metric:e}),Vm=e}))}function Qm(e,t,n,r,o=!1){let i;return Zm(e,t),Hm[e]||(i=n(),Hm[e]=!0),r&&t({metric:r}),eg(e,t,o?i:void 0)}function Zm(e,t){Bm[e]=Bm[e]||[],Bm[e].push(t)}function eg(e,t,n){return()=>{n&&n();const r=Bm[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function tg(e){return new URLSearchParams(e).toString()}function ng(e,t=hd){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[tg(e)];if(!e)return[void 0]}catch(n){return Zh&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Zh&&t.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function rg(e=[]){if(2===e.length&&"object"==typeof e[1])return e[1].body}const og=Uu,ig="sentryReplaySession",sg="Unable to send Replay",ag=15e4,cg=5e3,lg=2e7;var ug;function dg(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function fg(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function pg(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,hg).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}var t}function hg(e){let t;if(function(e){return"styleSheet"in e}(e))try{t=pg(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(ug||(ug={}));class mg{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function gg({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function yg({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function vg(e){return e.toLowerCase()}function bg(e){return e.toUpperCase()}const wg="__rrweb_original__";function _g(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?vg(t):null}function xg(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function Sg(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const kg={};function Eg(e){const t=kg[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return kg[e]=r.bind(window)}function Cg(...e){return Eg("setTimeout")(...e)}function Tg(...e){return Eg("clearTimeout")(...e)}function Ig(e){try{return e.contentDocument}catch(e){}}let Og=1;const Mg=new RegExp("[^a-z0-9-_:]");function Rg(){return Og++}let Ag,Dg;const Ng=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Pg=/^(?:[a-z+]+:)?\/\//i,Lg=/^www\..*/i,jg=/^(data:)([^,]*),(.*)/i;function Fg(e,t){return(e||"").replace(Ng,((e,n,r,o,i,s)=>{const a=r||i||s,c=n||o||"";if(!a)return e;if(Pg.test(a)||Lg.test(a))return`url(${c}${a}${c})`;if(jg.test(a))return`url(${c}${a}${c})`;if("/"===a[0])return`url(${c}${function(e){let t="";return t=e.indexOf("//")>-1?e.split("/").slice(0,3).join("/"):e.split("/")[0],t=t.split("?")[0],t}(t)+a}${c})`;const l=t.split("/"),u=a.split("/");l.pop();for(const e of u)"."!==e&&(".."===e?l.pop():l.push(e));return`url(${c}${l.join("/")}${c})`}))}const $g=/^[^ \t\n\r\u000c]+/,zg=/^[, \t\n\r\u000c]+/,Bg=new WeakMap;function Hg(e,t){return t&&""!==t.trim()?Ug(e,t):t}function Ug(e,t){let n=Bg.get(e);if(n||(n=e.createElement("a"),Bg.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Wg(e,t,n,r,o,i){return r?"src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0]?Hg(e,r):"background"!==n||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(zg),!(n>=t.length);){let i=r($g);if(","===i.slice(-1))i=Hg(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=Hg(e,i);let s=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(s)")"===e&&(s=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(s=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r):"style"===n?Fg(r,Ug(e)):"object"===t&&"data"===n?Hg(e,r):"function"==typeof i?i(n,r,o):r:Hg(e,r):r}function qg(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Vg(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Vg(e.parentNode,t,n,r+1):-1}function Xg(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Gg(e,t,n,r,o,i){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===s)return!1;if("INPUT"===s.tagName){const e=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let a=-1,c=-1;if(i){if(c=Vg(s,Xg(r,o)),c<0)return!0;a=Vg(s,Xg(t,n),c>=0?c:1/0)}else{if(a=Vg(s,Xg(t,n)),a<0)return!1;c=Vg(s,Xg(r,o),a>=0?a:1/0)}return a>=0?!(c>=0)||a<=c:!(c>=0||!i)}catch(e){}return!!i}function Yg(e){return null==e?"":e.toLowerCase()}function Kg(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:w=!1,recordCanvas:_=!1,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:k=5e3,onStylesheetLoad:E,stylesheetLoadTimeout:C=5e3,keepIframeSrcFn:T=()=>!1,newlyAddedElement:I=!1}=t;let{preserveWhiteSpace:O=!0}=t;const M=function(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:_=!1}=t,x=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:ug.Document,childNodes:[],compatMode:e.compatMode}:{type:ug.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ug.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskAllText:g,maskTextClass:y,unmaskTextClass:v,maskTextSelector:b,unmaskTextSelector:w}=t,_=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),x=function(e){if(e instanceof HTMLFormElement)return"form";const t=vg(e.tagName);return Mg.test(t)?"div":t}(e);let S={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!qg(x,r.name,r.value)&&(S[r.name]=Wg(n,x,vg(r.name),r.value,e,c))}if("link"===x&&s){const t=Array.from(n.styleSheets).find((t=>t.href===e.href));let r=null;t&&(r=pg(t)),r&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Fg(r,t.href))}if("style"===x&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=pg(e.sheet);t&&(S._cssText=Fg(t,Ug(n)))}if("input"===x||"textarea"===x||"select"===x||"option"===x){const t=e,n=_g(t),r=xg(t,bg(x),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Gg(t,y,b,v,w,gg({type:n,tagName:bg(x),maskInputOptions:a}));S.value=yg({isMasked:e,element:t,value:r,maskInputFn:l})}o&&(S.checked=o)}if("option"===x&&(e.selected&&!a.select?S.selected=!0:delete S.selected),"canvas"===x&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=wg in o?o[wg]:o;if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some((e=>0!==e)))return!1}return!0})(e)||(S.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(S.rr_dataURL=t)}if("img"===x&&d){Ag||(Ag=n.createElement("canvas"),Dg=Ag.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{Ag.width=t.naturalWidth,Ag.height=t.naturalHeight,Dg.drawImage(t,0,0),S.rr_dataURL=Ag.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?S.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}if("audio"!==x&&"video"!==x||(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),_){const{width:t,height:n}=e.getBoundingClientRect();S={class:S.class,rr_width:`${t}px`,rr_height:`${n}px`}}let E;"iframe"!==x||p(S.src)||(_||Ig(e)||(S.rr_src=S.src),delete S.src);try{customElements.get(x)&&(E=!0)}catch(e){}return{type:ug.Element,tagName:x,attributes:S,childNodes:[],isSVG:(C=e,Boolean("svg"===C.tagName||C.ownerSVGElement)||void 0),needBlock:_,rootId:m,isCustom:E};var C}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:_,rootId:x,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=pg(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=Fg(f,Ug(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=Gg(e,r,i,o,s,n);return p||h||m||!f||!g||(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,"*")),"OPTION"===d&&f&&(f=yg({isMasked:Gg(e,r,i,o,s,gg({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:ug.Text,textContent:f||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:x});case e.CDATA_SECTION_NODE:return{type:ug.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:ug.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:w,recordCanvas:_,keepIframeSrcFn:T,newlyAddedElement:I});if(!M)return console.warn(e,"not serialized"),null;let R;R=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===ug.Comment)return!0;if(e.type===ug.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Sg(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Yg(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Yg(e.attributes.name)||"icon"===Yg(e.attributes.rel)||"apple-touch-icon"===Yg(e.attributes.rel)||"shortcut icon"===Yg(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Yg(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Yg(e.attributes.property).match(/^(og|twitter|fb):/)||Yg(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Yg(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Yg(e.attributes.name)||"googlebot"===Yg(e.attributes.name)||"bingbot"===Yg(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Yg(e.attributes.name)||"generator"===Yg(e.attributes.name)||"framework"===Yg(e.attributes.name)||"publisher"===Yg(e.attributes.name)||"progid"===Yg(e.attributes.name)||Yg(e.attributes.property).match(/^article:/)||Yg(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Yg(e.attributes.name)||"yandex-verification"===Yg(e.attributes.name)||"csrf-token"===Yg(e.attributes.name)||"p:domain_verify"===Yg(e.attributes.name)||"verify-v1"===Yg(e.attributes.name)||"verification"===Yg(e.attributes.name)||"shopify-checkout-api-token"===Yg(e.attributes.name)))return!0}}return!1}(M,v)&&(O||M.type!==ug.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?Rg():-2;const A=Object.assign(M,{id:R});if(r.add(e,A),-2===R)return null;x&&x(e);let D=!f;if(A.type===ug.Element){D=D&&!A.needBlock,delete A.needBlock;const t=e.shadowRoot;t&&fg(t)&&(A.isShadowHost=!0)}if((A.type===ug.Document||A.type===ug.Element)&&D){v.headWhitespace&&A.type===ug.Element&&"head"===A.tagName&&(O=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:a,unblockSelector:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:_,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T};for(const n of Array.from(e.childNodes)){const e=Kg(n,t);e&&A.childNodes.push(e)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Kg(n,t);r&&(fg(e.shadowRoot)&&(r.isShadow=!0),A.childNodes.push(r))}}return e.parentNode&&dg(e.parentNode)&&fg(e.parentNode)&&(A.isShadow=!0),A.type===ug.Element&&"iframe"===A.tagName&&function(e,t,n){const r=e.contentWindow;if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=Cg((()=>{i||(t(),i=!0)}),n);return void e.addEventListener("load",(()=>{Tg(r),i=!0,t()}))}const s="about:blank";if(r.location.href!==s||e.src===s||""===e.src)return Cg(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,(()=>{const t=Ig(e);if(t&&S){const n=Kg(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:_,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});n&&S(e,n)}}),k),A.type===ug.Element&&"link"===A.tagName&&"string"==typeof A.attributes.rel&&("stylesheet"===A.attributes.rel||"preload"===A.attributes.rel&&"string"==typeof A.attributes.href&&"css"===Sg(A.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){return}if(r)return;const i=Cg((()=>{o||(t(),o=!0)}),n);e.addEventListener("load",(()=>{Tg(i),o=!0,t()}))}(e,(()=>{if(E){const t=Kg(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:a,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:w,recordCanvas:_,preserveWhiteSpace:O,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:k,onStylesheetLoad:E,stylesheetLoadTimeout:C,keepIframeSrcFn:T});t&&E(e,t)}}),C),A}function Jg(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Qg="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let Zg={map:{},getId:()=>(console.error(Qg),-1),getNode:()=>(console.error(Qg),null),removeNodeFromMap(){console.error(Qg)},has:()=>(console.error(Qg),!1),reset(){console.error(Qg)}};function ey(e,t,n={}){let r=null,o=0;return function(...i){const s=Date.now();o||!1!==n.leading||(o=s);const a=t-(s-o),c=this;a<=0||a>t?(r&&(function(...e){by("clearTimeout")(...e)}(r),r=null),o=s,e.apply(c,i)):r||!1===n.trailing||(r=wy((()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(c,i)}),a))}}function ty(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){wy((()=>{n.set.call(this,e)}),0),i&&i.set&&i.set.call(this,e)}}),()=>ty(e,t,i||{},!0)}function ny(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Zg=new Proxy(Zg,{get:(e,t,n)=>("map"===t&&console.error(Qg),Reflect.get(e,t,n))}));let ry=Date.now;function oy(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function iy(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function sy(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ay(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function cy(e,t,n,r,o){if(!e)return!1;const i=ay(e);if(!i)return!1;const s=Xg(t,n);if(!o){const e=r&&i.matches(r);return s(i)&&!e}const a=Vg(i,s);let c=-1;return!(a<0)&&(r&&(c=Vg(i,Xg(null,r))),a>-1&&c<0||a<c)}function ly(e,t){return-2===t.getId(e)}function uy(e,t){if(dg(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||uy(e.parentNode,t))}function dy(e){return Boolean(e.changedTouches)}function fy(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function py(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hy(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(ry=()=>(new Date).getTime());class my{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,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++}}function gy(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function yy(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=gy(n);)n=t;return n}(e);return t.contains(n)}(e))}const vy={};function by(e){const t=vy[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return vy[e]=r.bind(window)}function wy(...e){return by("setTimeout")(...e)}var _y,xy,Sy=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(Sy||{}),ky=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ky||{}),Ey=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Ey||{}),Cy=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Cy||{});function Ty(e){try{return e.contentDocument}catch(e){}}function Iy(e){return"__ln"in e}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(_y||(_y={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(xy||(xy={}));class Oy{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){const t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Iy(e.previousSibling)){const n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Iy(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const My=(e,t)=>`${e}@${t}`;class Ry{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,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;const e=[],t=new Set,n=new Oy,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!yy(o))return;const i=dg(o.parentNode)?this.mirror.getId(gy(o)):this.mirror.getId(o.parentNode),s=r(o);if(-1===i||-1===s)return n.addNode(o);const a=Kg(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{fy(e,this.mirror)&&!cy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),py(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hy(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{cy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});a&&(e.push({parentId:i,nextId:s,node:a}),t.add(a.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Dy(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)Ny(this.droppedSet,e)||Dy(this.removes,e,this.mirror)?Ny(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(e.value)}const s={texts:this.texts.map((e=>({id:this.mirror.getId(e.node),value:e.value}))).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),attributes:this.attributes.map((e=>{const{attributes:t}=e;if("string"==typeof t.style){const n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}})).filter((e=>!t.has(e.id))).filter((e=>this.mirror.has(e.id))),removes:this.removes,adds:e};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(s))},this.processMutation=e=>{if(!ly(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;cy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Gg(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,ay(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=_g(t),o=t.tagName;r=xg(t,o,n);const i=gg({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=yg({isMasked:Gg(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(cy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Ty(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!qg(t.tagName,n)&&(o.attributes[n]=Wg(this.doc,vg(t.tagName),vg(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}const n=this.unattachedDoc.createElement("span");e.oldValue&&n.setAttribute("style",e.oldValue);for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}for(const e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(cy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach((t=>this.genAdds(t,e.target))),e.removedNodes.forEach((t=>{const n=this.mirror.getId(t),r=dg(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);cy(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ly(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(Ay(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||uy(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[My(n,r)]?Ay(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!dg(e.target)||!fg(e.target))||void 0})),this.mapRemoves.push(t))}))}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!this.addedSet.has(e)&&!this.movedSet.has(e)){if(this.mirror.hasNode(e)){if(ly(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[My(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);cy(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach((e=>this.genAdds(e))),hy(e)&&e.shadowRoot.childNodes.forEach((t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)})))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((t=>{this[t]=e[t]}))}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 Ay(e,t){e.delete(t),t.childNodes.forEach((t=>Ay(e,t)))}function Dy(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some((e=>e.id===t)))return!0;r=r.parentNode}return!1}(e,t,n)}function Ny(e,t){return 0!==e.size&&Py(e,t)}function Py(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Py(e,n))}let Ly;function jy(e){Ly=e}function Fy(){Ly=void 0}const $y=e=>Ly?(...t)=>{try{return e(...t)}catch(e){if(Ly&&!0===Ly(e))return()=>{};throw e}}:e,zy=[];function By(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Hy(e,t){const n=new Ry;zy.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r($y((t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)})));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Uy({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){return Jg("scroll",$y(ey($y((s=>{const a=By(s);if(!a||cy(a,r,o,i,!0))return;const c=n.getId(a);if(a===t&&t.defaultView){const n=oy(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:a.scrollLeft,y:a.scrollTop})})),s.scroll||100)),t)}const Wy=["INPUT","TEXTAREA","SELECT"],qy=new WeakMap;function Vy({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=By(e);const u=e.isTrusted,g=n&&bg(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||Wy.indexOf(g)<0||cy(n,r,o,i,!0))return;const v=n;if(v.classList.contains(s)||a&&v.matches(a))return;const b=_g(n);let w=xg(v,g,b),_=!1;const x=gg({maskInputOptions:c,tagName:g,type:b}),S=Gg(n,f,h,p,m,x);"radio"!==b&&"checkbox"!==b||(_=n.checked),w=yg({isMasked:S,element:n,value:w,maskInputFn:l}),y(n,d?{text:w,isChecked:_,userTriggered:u}:{text:w,isChecked:_});const k=n.name;"radio"===b&&k&&_&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach((e=>{if(e!==n){const t=yg({isMasked:S,element:e,value:xg(e,g,b),maskInputFn:l});y(e,d?{text:t,isChecked:!_,userTriggered:!1}:{text:t,isChecked:!_})}}))}function y(t,r){const o=qy.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){qy.set(t,r);const o=n.getId(t);$y(e)({...r,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map((e=>Jg(e,$y(g),t))),b=t.defaultView;if(!b)return()=>{v.forEach((e=>e()))};const w=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),_=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return w&&w.set&&v.push(..._.map((e=>ty(e[0],e[1],{set(){$y(g)({target:this,isTrusted:!1})}},!1,b)))),$y((()=>{v.forEach((e=>e()))}))}function Xy(e){return function(e,t){if(Jy("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Jy("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Jy("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Jy("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Gy(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Yy({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),$y((()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))):()=>{}}function Ky(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Hy(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let s,a=[];const c=ey($y((t=>{const n=Date.now()-s;e(a.map((e=>(e.timeOffset-=n,e))),t),a=[],s=null})),i),l=$y(ey($y((e=>{const t=By(e),{clientX:n,clientY:o}=dy(e)?e.changedTouches[0]:e;s||(s=ry()),a.push({x:n,y:o,id:r.getId(t),timeOffset:ry()-s}),c("undefined"!=typeof DragEvent&&e instanceof DragEvent?ky.Drag:e instanceof MouseEvent?ky.MouseMove:ky.TouchMove)})),o,{trailing:!1})),u=[Jg("mousemove",l,n),Jg("touchmove",l,n),Jg("drag",l,n)];return $y((()=>{u.forEach((e=>e()))}))}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(!1===s.mouseInteraction)return()=>{};const a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[];let l=null;return Object.keys(Ey).filter((e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e])).forEach((s=>{let a=vg(s);const u=(t=>s=>{const a=By(s);if(cy(a,r,o,i,!0))return;let c=null,u=t;if("pointerType"in s){switch(s.pointerType){case"mouse":c=Cy.Mouse;break;case"touch":c=Cy.Touch;break;case"pen":c=Cy.Pen}c===Cy.Touch?Ey[t]===Ey.MouseDown?u="TouchStart":Ey[t]===Ey.MouseUp&&(u="TouchEnd"):Cy.Pen}else dy(s)&&(c=Cy.Touch);null!==c?(l=c,(u.startsWith("Touch")&&c===Cy.Touch||u.startsWith("Mouse")&&c===Cy.Mouse)&&(c=null)):Ey[t]===Ey.Click&&(c=l,l=null);const d=dy(s)?s.changedTouches[0]:s;if(!d)return;const f=n.getId(a),{clientX:p,clientY:h}=d;$y(e)({type:Ey[u],id:f,x:p,y:h,...null!==c&&{pointerType:c}})})(s);if(window.PointerEvent)switch(Ey[s]){case Ey.MouseDown:case Ey.MouseUp:a=a.replace("mouse","pointer");break;case Ey.TouchStart:case Ey.TouchEnd:return}c.push(Jg(a,u,t))})),$y((()=>{c.forEach((e=>e()))}))}(e),s=Uy(e),a=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Jg("resize",$y(ey($y((()=>{const t=iy(),o=sy();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)})),200)),t)}(e,{win:n}),c=Vy(e),l=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){const a=$y((s=>ey($y((i=>{const a=By(i);if(!a||cy(a,t,n,r,!0))return;const{currentTime:c,volume:l,muted:u,playbackRate:d}=a;e({type:s,id:o.getId(a),currentTime:c,volume:l,muted:u,playbackRate:d})})),i.media||500))),c=[Jg("play",a(0),s),Jg("pause",a(1),s),Jg("seeked",a(2),s),Jg("volumechange",a(3),s),Jg("ratechange",a(4),s)];return $y((()=>{c.forEach((e=>e()))}))}(e);let u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:$y(((r,o,i)=>{const[s,a]=i,{id:c,styleId:l}=Gy(o,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:a}]}),r.apply(o,i)}))});const i=r.CSSStyleSheet.prototype.deleteRule;let s,a;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:$y(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Gy(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:s}]}),r.apply(o,i)}))}),r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:$y(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Gy(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replace:s}),r.apply(o,i)}))})),r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:$y(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Gy(o,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,replaceSync:s}),r.apply(o,i)}))}));const c={};Qy("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Qy("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Qy("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Qy("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const l={};return Object.entries(c).forEach((([r,o])=>{l[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(l[r].insertRule,{apply:$y(((r,o,i)=>{const[s,a]=i,{id:c,styleId:l}=Gy(o.parentStyleSheet,t,n.styleMirror);return(c&&-1!==c||l&&-1!==l)&&e({id:c,styleId:l,adds:[{rule:s,index:[...Xy(o),a||0]}]}),r.apply(o,i)}))}),o.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:$y(((r,o,i)=>{const[s]=i,{id:a,styleId:c}=Gy(o.parentStyleSheet,t,n.styleMirror);return(a&&-1!==a||c&&-1!==c)&&e({id:a,styleId:c,removes:[{index:[...Xy(o),s]}]}),r.apply(o,i)}))})})),$y((()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach((([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule}))}))}(e,{win:n}),d=Yy(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:$y(((o,s,a)=>{const[c,l,u]=a;if(n.has(c))return i.apply(s,[c,l,u]);const{id:d,styleId:f}=Gy(s.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:Xy(s.parentRule)}),o.apply(s,a)}))});const s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:$y(((o,i,a)=>{const[c]=a;if(n.has(c))return s.apply(i,[c]);const{id:l,styleId:u}=Gy(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,remove:{property:c},index:Xy(i.parentRule)}),o.apply(i,a)}))}),$y((()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s}))}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const s=ny(t.fonts,"add",(function(t){return function(n){return wy($y((()=>{const t=o.get(n);t&&(e(t),o.delete(n))})),0),t.apply(this,[n])}}));return r.push((()=>{n.FontFace=i})),r.push(s),$y((()=>{r.forEach((e=>e()))}))}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e;let a=!0;const c=$y((()=>{const e=t.getSelection();if(!e||a&&e?.isCollapsed)return;a=e.isCollapsed||!1;const c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){const s=e.getRangeAt(t),{startContainer:a,startOffset:l,endContainer:u,endOffset:d}=s;cy(a,r,o,i,!0)||cy(u,r,o,i,!0)||c.push({start:n.getId(a),startOffset:l,end:n.getId(u),endOffset:d})}s({ranges:c})}));return c(),Jg("selectionchange",c)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?ny(n.customElements,"define",(function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}})):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return $y((()=>{zy.forEach((e=>e.reset())),r?.disconnect(),o(),i(),s(),a(),c(),l(),u(),d(),f(),p(),h(),m(),g.forEach((e=>e()))}))}function Jy(e){return void 0!==window[e]}function Qy(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Zy{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let s=o.get(t);return s||(s=this.generateIdFn(),o.set(t,s),i.set(s,t)),s}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map((t=>this.getId(e,t,n,r)))}getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;return r.get(t)||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map((t=>this.getRemoteId(e,t,n)))}reset(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class ev{constructor(){this.crossOriginIframeMirror=new Zy(Rg),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class tv{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Zy(Rg),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Zy(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,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.loadListener?.(e);const n=Ty(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Sy.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);const n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Sy.IncrementalSnapshot,data:{source:ky.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Sy.Meta:case Sy.Load:case Sy.DomContentLoaded:return!1;case Sy.Plugin:return t;case Sy.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Sy.IncrementalSnapshot:switch(t.data.source){case ky.Mutation:return t.data.adds.forEach((t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)})),t.data.removes.forEach((t=>{this.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((t=>{this.replaceIds(t,e,["id"])})),t.data.texts.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case ky.Drag:case ky.TouchMove:case ky.MouseMove:return t.data.positions.forEach((t=>{this.replaceIds(t,e,["id"])})),t;case ky.ViewportResize:return!1;case ky.MediaInteraction:case ky.MouseInteraction:case ky.Scroll:case ky.CanvasMutation:case ky.Input:return this.replaceIds(t.data,e,["id"]),t;case ky.StyleSheetRule:case ky.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case ky.Font:return t;case ky.Selection:return t.data.ranges.forEach((t=>{this.replaceIds(t,e,["start","end"])})),t;case ky.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach((t=>{this.replaceStyleIds(t,e,["styleId"])})),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((e=>{this.replaceIdOnNode(e,t)}))}patchRootIdOnNode(e,t){e.type===ug.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((e=>{this.patchRootIdOnNode(e,t)}))}}class nv{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class rv{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!fg(e))return;if(this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);const n=Hy({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push((()=>n.disconnect())),this.restoreHandlers.push(Uy({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),wy((()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Yy({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))}),0)}observeAttachShadow(e){const t=Ty(e),n=function(e){try{return e.contentWindow}catch(e){}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(ny(e.prototype,"attachShadow",(function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&yy(this)&&n.addShadowRoot(this.shadowRoot,t),o}})))}reset(){this.restoreHandlers.forEach((e=>{try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class ov{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class iv{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new my,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,((e,t)=>({rule:hg(e),index:t})))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class sv{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some((e=>e!==t))}add(e,t){this.active||(this.active=!0,function(...e){by("requestAnimationFrame")(...e)}((()=>{this.nodeMap=new WeakMap,this.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let av,cv;try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const lv=new mg;function uv(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,maxCanvasSize:_=null,packFn:x,sampling:S={},dataURLOptions:k={},mousemoveWait:E,recordDOM:C=!0,recordCanvas:T=!1,recordCrossOriginIframes:I=!1,recordAfter:O=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:M=!1,collectFonts:R=!1,inlineImages:A=!1,plugins:D,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:P=new Set([]),errorHandler:L,onMutation:j,getCanvasManager:F}=e;jy(L);const $=!I||window.parent===window;let z=!1;if(!$)try{window.parent.document&&(z=!1)}catch(e){z=!0}if($&&!t)throw new Error("emit function is required");if(!$&&!z)return()=>{};void 0!==E&&void 0===S.mousemove&&(S.mousemove=E),lv.reset();const B=!0===m?{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,radio:!0,checkbox:!0}:void 0!==g?g:{},H=!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===y,headMetaDescKeywords:"all"===y}:y||{};let U;!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let W=0;const q=e=>{for(const t of D||[])t.eventProcessor&&(e=t.eventProcessor(e));return x&&!z&&(e=x(e)),e};av=(e,o)=>{const i=e;if(i.timestamp=ry(),!zy[0]?.isFrozen()||i.type===Sy.FullSnapshot||i.type===Sy.IncrementalSnapshot&&i.data.source===ky.Mutation||zy.forEach((e=>e.unfreeze())),$)t?.(q(i),o);else if(z){const e={type:"rrweb",event:q(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===Sy.FullSnapshot)U=i,W=0;else if(i.type===Sy.IncrementalSnapshot){if(i.data.source===ky.Mutation&&i.data.isAttachIframe)return;W++;const e=r&&W>=r,t=n&&U&&i.timestamp-U.timestamp>n;(e||t)&&ee(!0)}};const V=e=>{av({type:Sy.IncrementalSnapshot,data:{source:ky.Mutation,...e}})},X=e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.Scroll,...e}}),G=e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.CanvasMutation,...e}}),Y=new iv({mutationCb:V,adoptedStyleSheetCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.AdoptedStyleSheet,...e}})}),K="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new ev:new tv({mirror:lv,mutationCb:V,stylesheetManager:Y,recordCrossOriginIframes:I,wrappedEmit:av});for(const e of D||[])e.getMirror&&e.getMirror({nodeMirror:lv,crossOriginIframeMirror:K.crossOriginIframeMirror,crossOriginIframeStyleMirror:K.crossOriginIframeStyleMirror});const J=new sv,Q=function(e,t){try{return e?e(t):new ov}catch{return console.warn("Unable to initialize CanvasManager"),new ov}}(F,{mirror:lv,win:window,mutationCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.CanvasMutation,...e}}),recordCanvas:T,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:_,sampling:S.canvas,dataURLOptions:k,errorHandler:L}),Z="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new nv:new rv({mutationCb:V,scrollCb:X,bypassOptions:{onMutation:j,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:B,dataURLOptions:k,maskAttributeFn:v,maskTextFn:w,maskInputFn:b,recordCanvas:T,inlineImages:A,sampling:S,slimDOMOptions:H,iframeManager:K,stylesheetManager:Y,canvasManager:Q,keepIframeSrcFn:N,processedNodeManager:J},mirror:lv}),ee=(e=!1)=>{if(!C)return;av({type:Sy.Meta,data:{href:window.location.href,width:sy(),height:iy()}},e),Y.reset(),Z.init(),zy.forEach((e=>e.lock()));const t=function(e,t){const{mirror:n=new mg,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:w,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:C=()=>!1}=t;return Kg(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:s,maskTextClass:a,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{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}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:w,onSerialize:_,onIframeLoad:x,iframeLoadTimeout:S,onStylesheetLoad:k,stylesheetLoadTimeout:E,keepIframeSrcFn:C,newlyAddedElement:!1})}(document,{mirror:lv,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:B,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,slimDOM:H,dataURLOptions:k,recordCanvas:T,inlineImages:A,onSerialize:e=>{fy(e,lv)&&K.addIframe(e),py(e,lv)&&Y.trackLinkElement(e),hy(e)&&Z.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{K.attachIframe(e,t),e.contentWindow&&Q.addWindow(e.contentWindow),Z.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Y.attachLinkElement(e,t)},keepIframeSrcFn:N});if(!t)return console.warn("Failed to snapshot the document");av({type:Sy.FullSnapshot,data:{node:t,initialOffset:oy(window)}}),zy.forEach((e=>e.unlock())),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Y.adoptStyleSheets(document.adoptedStyleSheets,lv.getId(document))};cv=ee;try{const e=[],t=e=>$y(Ky)({onMutation:j,mutationCb:V,mousemoveCb:(e,t)=>av({type:Sy.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.MouseInteraction,...e}}),scrollCb:X,viewportResizeCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.ViewportResize,...e}}),inputCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.Input,...e}}),mediaInteractionCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.MediaInteraction,...e}}),styleSheetRuleCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.StyleSheetRule,...e}}),styleDeclarationCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.StyleDeclaration,...e}}),canvasMutationCb:G,fontCb:e=>av({type:Sy.IncrementalSnapshot,data:{source:ky.Font,...e}}),selectionCb:e=>{av({type:Sy.IncrementalSnapshot,data:{source:ky.Selection,...e}})},customElementCb:e=>{av({type:Sy.IncrementalSnapshot,data:{source:ky.CustomElement,...e}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:B,inlineStylesheet:h,sampling:S,recordDOM:C,recordCanvas:T,inlineImages:A,userTriggeredOnInput:M,collectFonts:R,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:w,keepIframeSrcFn:N,blockSelector:i,unblockSelector:s,slimDOMOptions:H,dataURLOptions:k,mirror:lv,iframeManager:K,stylesheetManager:Y,shadowDomManager:Z,processedNodeManager:J,canvasManager:Q,ignoreCSSAttributes:P,plugins:D?.filter((e=>e.observer))?.map((e=>({observer:e.observer,options:e.options,callback:t=>av({type:Sy.Plugin,data:{plugin:e.name,payload:t}})})))||[]},{});K.addLoadListener((n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}}));const n=()=>{ee(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Jg("DOMContentLoaded",(()=>{av({type:Sy.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&n()}))),e.push(Jg("load",(()=>{av({type:Sy.Load,data:{}}),"load"===O&&n()}),window))),()=>{e.forEach((e=>e())),J.destroy(),cv=void 0,Fy()}}catch(e){console.warn(e)}}function dv(e){return e>9999999999?e:1e3*e}function fv(e){return e>9999999999?e/1e3:e}function pv(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate((()=>(e.throttledAddEvent({type:Sy.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:bf(t,10,1e3)}}),"console"===t.category))))}function hv(e){return e.closest("button,a")||e}function mv(e){const t=gv(e);return t&&t instanceof Element?hv(t):t}function gv(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let yv;uv.mirror=lv,uv.takeFullSnapshot=function(e){if(!cv)throw new Error("please take full snapshot after start recording");cv(e)};const vv=new Set([ky.Mutation,ky.StyleSheetRule,ky.StyleDeclaration,ky.AdoptedStyleSheet,ky.CanvasMutation,ky.Selection,ky.MediaInteraction]);class bv{constructor(e,t,n=pv){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=(t=()=>{this._lastMutation=_v()},yv||(yv=[],vd(og,"open",(function(e){return function(...t){if(yv)try{yv.forEach((e=>e()))}catch(e){}return e.apply(og,t)}}))),yv.push(t),()=>{const e=yv?yv.indexOf(t):-1;e>-1&&yv.splice(e,1)});var t;this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(function(e,t){return!wv.includes(e.tagName)||("INPUT"===e.tagName&&!["submit","button"].includes(e.getAttribute("type")||"")||(!("A"!==e.tagName||!(e.hasAttribute("download")||e.hasAttribute("target")&&"_self"!==e.getAttribute("target")))||!(!t||!e.matches(t))))}(t,this._ignoreSelector)||!function(e){return!(!e.data||"number"!=typeof e.data.nodeId||!e.timestamp)}(e))return;const n={timestamp:fv(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some((e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1))||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=fv(e)}registerScroll(e=Date.now()){this._lastScroll=fv(e)}registerClick(e){const t=hv(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach((e=>{e.clickCount++}))}_getClicks(e){return this._clicks.filter((t=>t.node===e))}_checkClicks(){const e=[],t=_v();this._clicks.forEach((n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}));for(const t of e){const e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:s}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:og.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};this._addBreadcrumbEvent(t,o)}else if(i>1){const e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:og.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rm((()=>this._checkClicks()),1e3)}}const wv=["A","BUTTON","INPUT"];function _v(){return Date.now()/1e3}function xv(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Sv;!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(Sv||(Sv={}));const kv=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ev(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(kv.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}function Cv(e,t){const n=uv.mirror.getId(e),r=n&&uv.mirror.getNode(n),o=r&&uv.mirror.getMeta(r),i=o&&function(e){return e.type===Sv.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map((e=>e.type===Sv.Text&&e.textContent)).filter(Boolean).map((e=>e.trim())).join(""),attributes:Ev(i.attributes)}}:{}}}const Tv={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:l}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Mv(i),end:Mv(o),name:r,data:{size:l,statusCode:c,decodedBodySize:s,encodedBodySize:a}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=Mv(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return 0===o?null:{type:`${t}.${m}`,start:Mv(p),end:Mv(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:l,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function Iv(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Ov(e){const t=Tv[e.entryType];return t?t(e):null}function Mv(e){return Od||(Od=function(){const{performance:e}=Uu;if(!e?.now)return[void 0,"none"];const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing?.navigationStart,a="number"==typeof s?Math.abs(s+n-r):t;return i||a<t?o<=a?[e.timeOrigin,"timeOrigin"]:[s,"navigationStart"]:[r,"dateNow"]}()),((Od[0]||og.performance.timeOrigin)+e)/1e3}function Rv(e){const t=e.entries[e.entries.length-1];return Lv(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Av(e){return void 0!==e.sources}function Dv(e){const t=[],n=[];for(const r of e.entries)if(Av(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=uv.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Lv(e,"cumulative-layout-shift",n,t)}function Nv(e){const t=e.entries[e.entries.length-1];return Lv(e,"first-input-delay",t?.target?[t.target]:void 0)}function Pv(e){const t=e.entries[e.entries.length-1];return Lv(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Lv(e,t,n,r){const o=e.value,i=e.rating,s=Mv(o);return{type:"web-vital",name:t,start:s,end:s,data:{value:o,size:o,rating:i,nodeIds:n?n.map((e=>uv.mirror.getId(e))):void 0,attributions:r}}}function jv(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach((e=>{r.push(function(e,t){return Zm(e,t),Hm[e]||(function(e){const t={};"event"===e&&(t.durationThreshold=0),mm(e,(t=>{Xm(e,{entries:t})}),t)}(e),Hm[e]=!0),eg(e,t)}(e,n))})),r.push(function(e,t=!1){return Qm("lcp",e,Km,qm,t)}(Iv(Rv,e)),function(e,t=!1){return Qm("cls",e,Gm,Um,t)}(Iv(Dv,e)),Qm("fid",Iv(Nv,e),Ym,Wm),Qm("inp",Iv(Pv,e),Jm,Vm)),()=>{r.forEach((e=>e()))}}const Fv="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$v=["info","warn","error","log"],zv="[Replay] ";function Bv(e,t="info"){wh({category:"console",data:{logger:"replay"},level:t,message:`${zv}${e}`},{level:t})}const Hv=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Fv?($v.forEach((e=>{n[e]=(...n)=>{hd[e](zv,...n),t&&Bv(n.join(""),_h(e))}})),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),hd.error(zv,r),e?Uf(r):t&&Bv(r,"error")},n.infoTick=(...e)=>{hd.info(zv,...e),t&&setTimeout((()=>Bv(e[0])),0)}):$v.forEach((e=>{n[e]=()=>{}})),n}();class Uv extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Wv{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>lg)throw new Uv;this.events.push(e)}finish(){return new Promise((e=>{const t=this.events;this.clear(),e(JSON.stringify(t))}))}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map((e=>e.timestamp)).sort()[0];return e?dv(e):null}}class qv{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise(((e,t)=>{this._worker.addEventListener("message",(({data:n})=>{n.success?e():t()}),{once:!0}),this._worker.addEventListener("error",(e=>{t(e)}),{once:!0})}))),this._ensureReadyPromise}destroy(){Fv&&Hv.info("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise(((r,o)=>{const i=({data:t})=>{const s=t;if(s.method===e&&s.id===n){if(this._worker.removeEventListener("message",i),!s.success)return Fv&&Hv.error("Error in compression worker: ",s.response),void o(new Error("Error in compression worker"));r(s.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:n,method:e,arg:t})}))}_getAndIncrementId(){return this._id++}}class Vv{constructor(e){this._worker=new qv(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const t=dv(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>lg?Promise.reject(new Uv):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,(e=>{Fv&&Hv.exception(e,'Sending "clear" message to worker failed',e)}))}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){const e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class Xv{constructor(e){this._fallback=new Wv,this._compression=new Vv(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return void(Fv&&Hv.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Fv&&Hv.exception(e,"Failed to add events when switching buffers.")}}}function Gv(){try{return"sessionStorage"in og&&!!og.sessionStorage}catch{return!1}}function Yv(e){return void 0!==e&&Math.random()<e}function Kv(e){const t=Date.now();return{id:e.id||Md(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId}}function Jv(e){if(Gv())try{og.sessionStorage.setItem(ig,JSON.stringify(e))}catch{}}function Qv({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return Yv(e)?"session":!!t&&"buffer"}(e,t),i=Kv({sampled:o,previousSessionId:r});return n&&Jv(i),i}function Zv(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function eb(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Zv(e.started,t,r)||Zv(e.lastActivity,n,r)}function tb(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!eb(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function nb({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!Gv())return null;try{const e=og.sessionStorage.getItem(ig);if(!e)return null;const t=JSON.parse(e);return Fv&&Hv.infoTick("Loading existing session"),Kv(t)}catch{return null}}();return o?tb(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Fv&&Hv.infoTick("Session in sessionStorage is expired, creating new one..."),Qv(r,{previousSessionId:o.id})):o:(Fv&&Hv.infoTick("Creating new session"),Qv(r,{previousSessionId:n}))}function rb(e,t,n){return!!ib(e,t)&&(ob(e,t,n),!0)}async function ob(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===Sy.Custom}(e))return t(e)}catch(e){return Fv&&Hv.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(t){const n=t&&t instanceof Uv,i=n?"addEventSizeExceeded":"addEvent";if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i});const s=Qd();s&&s.recordDroppedEvent("internal_sdk_error","replay")}}function ib(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=dv(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now()||n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration&&(Fv&&Hv.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),1))}function sb(e){return!e.type}function ab(e){return"transaction"===e.type}function cb(e){return"feedback"===e.type}function lb(e){return!!e.category}function ub(){const e=Kd().getPropagationContext().dsc;e&&delete e.replay_id;const t=Pf();t&&delete Ff(t).replay_id}function db(e,t){return t.map((({type:t,start:n,end:r,name:o,data:i})=>{const s=e.throttledAddEvent({type:Sy.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof s?Promise.resolve(null):s}))}function fb(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Fv||!e.getOptions()._experiments.traceInternals)&&function(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return function(e,t){return!!t&&e.includes(t.host)}(e,n)||function(e,t){return!!t&&lm(e)===lm(t)}(e,r)}(t,Qd())}(e,t.name)||e.addUpdate((()=>(db(e,[t]),!0))))}function pb(e){if(!e)return;const t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=tg(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function hb(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function mb(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function gb(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:Ed({method:i,statusCode:s,request:a,response:c})}}function yb(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function vb(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>ag,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,ag);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function bb(e,t){return Object.entries(e).reduce(((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n}),{})}function wb(e,t){const n=function(e,t=og.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(og.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return yd(n,t)}function _b(e,t){const n={};return t.forEach((t=>{e.get(t)&&(n[t]=e.get(t))})),n}function xb(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?_b(n,t):Array.isArray(n)?{}:bb(n,t):{}}function Sb(e){const t=Qd();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",((e,t)=>function(e,t,n){if(t.data)try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(function(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=pb(r),i=n.getResponseHeader("content-length")?hb(n.getResponseHeader("content-length")):function(e,t){try{return pb("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!a||!wb(c,n.networkDetailAllowUrls)||wb(c,n.networkDetailDenyUrls))return{startTimestamp:o,endTimestamp:i,url:c,method:l,statusCode:u,request:yb(d),response:yb(f)};const p=a[dh],h=p?bb(p.request_headers,n.networkRequestHeaders):{},m=bb(function(e){const t=e.getAllResponseHeaders();return t?t.split("\r\n").reduce(((e,t)=>{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e}),{}):{}}(a),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?ng(s,Hv):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Fv&&Hv.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Fv&&Hv.info("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Fv&&Hv.warn("Failed to get xhr response body",...t),[void 0]}(a):[void 0],w=vb(h,d,g),_=vb(m,f,v);return{startTimestamp:o,endTimestamp:i,url:c,method:l,statusCode:u,request:y?mb(w,y):w,response:b?mb(_,b):_}}(e,t,n),o=gb("resource.xhr",r);fb(n.replay,o)}catch(e){Fv&&Hv.exception(e,"Failed to capture xhr breadcrumb")}}(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return e?.response}(n)&&(function(e,t){const{input:n,response:r}=t,o=pb(n?rg(n):void 0),i=r?hb(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),async function(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=wb(s,n.networkDetailAllowUrls)&&!wb(s,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?(s=t,1===(i=n).length&&"string"!=typeof i[0]?xb(i[0],s):2===i.length?xb(i[1],s):{}):{};var i,s;if(!e)return vb(o,r,void 0);const a=rg(n),[c,l]=ng(a,Hv),u=vb(o,r,c);return l?mb(u,l):u}(n,t.input,l):yb(l),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return yb(o);const i=r?_b(r.headers,n):{};if(!r||!t&&void 0!==o)return vb(i,o,void 0);const[s,a]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Fv&&Hv.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{const e=await function(e){return new Promise(((t,n)=>{const r=rm((()=>n(new Error("Timeout while trying to read response body"))),500);(async function(e){return await e.text()})(e).then((e=>t(e)),(e=>n(e))).finally((()=>clearTimeout(r)))}))}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Fv&&Hv.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Fv&&Hv.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),c=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&void 0===n?pb(e):n;return r?vb(o,i,t?e:void 0):yb(i)}catch(e){return Fv&&Hv.exception(e,"Failed to serialize response body"),vb(o,n,void 0)}}(s,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});return a?mb(c,a):c}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:f,response:p}}(e,t,n),o=gb("resource.fetch",r);fb(n.replay,o)}catch(e){Fv&&Hv.exception(e,"Failed to capture fetch breadcrumb")}}(t,n,e))}catch(e){Fv&&Hv.exception(e,"Error when enriching network breadcrumb")}}(a,e,t)))}catch{}}function kb(e,{autoFlushOnFeedback:t}){const n=Qd();ch((e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?mv(e.event):gv(e.event),n=ad(r,{maxStringLength:200})||"<unknown>"}catch(e){n="<unknown>"}return{target:r,message:n}}(e);return xv({category:`ui.${e.name}`,...Cv(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;!(r&&e.clickDetector&&o&&o.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,mv(t.event)),pv(e,n)})(e)),hh(function(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate((()=>(db(e,[n]),!1))))}}(e)),function(e){const t=Qd();t&&t.on("beforeAddBreadcrumb",(t=>function(e,t){if(!e.isEnabled()||!lb(t))return;const n=function(e){return!lb(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:"console"===e.category?function(e){const t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return xv(e);let n=!1;const r=t.map((e=>{if(!e)return e;if("string"==typeof e)return e.length>cg?(n=!0,`${e.slice(0,cg)}…`):e;if("object"==typeof e)try{const t=bf(e,7);return JSON.stringify(t).length>cg?(n=!0,`${JSON.stringify(t,null,2).slice(0,cg)}…`):t}catch{}return e}));return xv({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e):xv(e)}(t);n&&pv(e,n)}(e,t)))}(e),Sb(e);const r=function(e){return Object.assign(((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!sb(t)&&!ab(t)&&!cb(t))return t;if(!e.checkAndHandleExpiredSession())return ub(),t;if(cb(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),function(e,t){e.triggerUserActivity(),e.addUpdate((()=>!t.timestamp||(e.throttledAddEvent({type:Sy.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)))}(e,t),t;if(function(e,t){return!(e.type||!e.exception||!e.exception.values||!e.exception.values.length||!t.originalException?.__rrweb__)}(t,n)&&!e.getOptions()._experiments.captureExceptions)return Fv&&Hv.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==sg&&!(!t.exception||t.type)&&Yv(e.getOptions().errorSampleRate)}(e,t);return(r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t}),{id:"Replay"})}(e);var o;o=r,Jd().addEventProcessor(o),n&&(n.on("beforeSendEvent",function(e){return t=>{e.isEnabled()&&sb(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&pv(e,xv({category:"replay.hydrate-error",data:{url:ld()}}))}(e,t)}}(e)),n.on("afterSendEvent",function(e){return(t,n)=>{if(!e.isEnabled()||!sb(t)&&!ab(t))return;const r=n?.statusCode;!r||r<200||r>=300||(ab(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;const{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&rm((async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}}))}(e,t))}}(e)),n.on("createDsc",(t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)})),n.on("spanStart",(t=>{e.lastActiveSpan=t})),n.on("spanEnd",(t=>{e.lastActiveSpan=t})),n.on("beforeSendFeedback",(async(n,r)=>{const o=e.getSessionId();r?.includeReplay&&e.isEnabled()&&o&&n.contexts?.feedback&&("api"===n.contexts.feedback.source&&t&&await e.flush(),n.contexts.feedback.replay_id=o)})),t&&n.on("openFeedbackWidget",(async()=>{await e.flush()})))}function Eb(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const Cb=Uu.navigator;function Tb(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Fv&&Hv.warn("Received replay event after session expired."));const o=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(vv.has(n)&&e.registerMutation(t.timestamp),n===ky.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===ky.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=uv.mirror.getNode(r);o instanceof HTMLElement&&n===Ey.Click&&e.registerClick(o)}}catch{}}(e.clickDetector,n),e.addUpdate((()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!rb(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){t&&e.session&&0===e.session.segmentId&&rb(e,function(e){const t=e.getOptions();return{type:Sy.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1)}(e,o),"buffer"===e.recordingMode&&t&&e.eventBuffer){const n=e.eventBuffer.getEarliestTimestamp();n&&(Fv&&Hv.info(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Jv(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0}))}}class Ib extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Ob extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Mb(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await async function({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const s=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=Qd(),f=Kd(),p=d?.getTransport(),h=d?.getDsn();if(!(d&&p&&h&&i.sampled))return rf({});const m={type:"replay_event",replay_start_timestamp:u/1e3,timestamp:o/1e3,error_ids:c,trace_ids:l,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},g=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const i=await Bf(e.getOptions(),r,o,t,e,Jd());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const s=e.getSdkMetadata(),{name:a,version:c}=s?.sdk||{};return i.sdk={...i.sdk,name:a||"sentry.javascript.unknown",version:c||"0.0.0"},i}({scope:f,client:d,replayId:t,event:m});if(!g)return d.recordDroppedEvent("event_processor","replay"),Fv&&Hv.info("An event processor returned `null`, will not send event."),rf({});delete g.sdkProcessingMetadata;const y=function(e,t,n,r){return yp(Cp(e,Ep(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(g,s,h,d.getOptions().tunnel);let v;try{v=await p.send(y)}catch(e){const t=new Error(sg);try{t.cause=e}catch{}throw t}if("number"==typeof v.statusCode&&(v.statusCode<200||v.statusCode>=300))throw new Ib(v.statusCode);const b=im({},v);if(om(b,"replay"))throw new Ob(b);return v}(e),!0}catch(n){if(n instanceof Ib||n instanceof Ob)throw n;if(qf("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${sg} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise(((n,r)=>{rm((async()=>{try{await Mb(e,t),n(!0)}catch(e){r(e)}}),t.interval)}))}}const Rb="__THROTTLED";class Ab{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,o,i;const s=n?.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function l(){return o&&clearTimeout(o),o=rm(a,t),s&&void 0===i&&(i=rm(a,s)),r}return l.cancel=c,l.flush=function(){return void 0!==o||void 0!==i?a():r},l}((()=>this._flush()),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){const r=new Map;let o=!1;return(...i)=>{const s=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach(((e,n)=>{n<t&&r.delete(n)}))})(s),[...r.values()].reduce(((e,t)=>e+t),0)>=t){const e=o;return o=!0,e?"__SKIPPED":Rb}o=!1;const a=r.get(s)||0;return r.set(s,a+1),e(...i)}}(((e,t)=>function(e,t,n){return ib(e,t)?ob(e,t,n):Promise.resolve(null)}(this,e,t)),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new bv(this,o)),Fv){const t=e._experiments;Hv.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===og.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=xv({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=xv({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(s)||!i)return null;const a=t||r||o,c=1===i.length;if(!a&&c)return null;const l=ad(s,{maxStringLength:200})||"<unknown>";return xv({category:"ui.keyDown",message:l,data:{...Cv(s,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&pv(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}handleException(e){Fv&&Hv.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Fv&&Hv.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Fv&&Hv.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Fv&&Hv.info("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Fv&&Hv.info("Buffering is in progress, call `flush()` to save the replay"));Fv&&Hv.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=nb({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return void(Fv&&Hv.info("Buffering is in progress, call `flush()` to save the replay"));Fv&&Hv.infoTick("Starting replay in buffer mode");const e=nb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=uv({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Tb(this),.../iPhone|iPad|iPod/i.test(Cb?.userAgent??"")||/Macintosh/i.test(Cb?.userAgent??"")&&Cb?.maxTouchPoints&&Cb?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{Fv&&Hv.info("Stopping Replay"+(t?` triggered by ${t}`:"")),ub(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,n=this,function(){if(Gv())try{og.sessionStorage.removeItem(ig)}catch{}}(),n.session=void 0}catch(e){this.handleException(e)}}var n}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Fv&&Hv.info("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Fv&&Hv.info("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Fv&&Hv.info("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session?.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&Zv(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const e=`${og.location.pathname}${og.location.hash}${og.location.search}`,t=`${og.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){const n=this._throttledAddEvent(e,t);if(n===Rb){const e=xv({category:"replay.throttled"});this.addUpdate((()=>!rb(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}})))}return n}getCurrentRoute(){const e=this.lastActiveSpan||Pf(),t=e&&Nf(e),n=(t&&Af(t).data||{})[xf];if(t&&n&&["route","custom"].includes(n))return Af(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){const e=function(e){try{const t=e||("undefined"!=typeof __SENTRY_EXCLUDE_REPLAY_WORKER__&&__SENTRY_EXCLUDE_REPLAY_WORKER__?"":function(){const e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort((function(t,n){return p[n.s]-p[t.s]||t.f-n.f}));s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){G.prototype.flush.call(this)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),s=i.length;return q(i,n),j(i,s-8,r.d()),j(i,s-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new H,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}());if(!t)return;Fv&&Hv.info("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Xv(n)}catch(e){Fv&&Hv.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Fv&&Hv.info("Using simple buffer"),new Wv}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=nb({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!tb(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{og.document.addEventListener("visibilitychange",this._handleVisibilityChange),og.addEventListener("blur",this._handleWindowBlur),og.addEventListener("focus",this._handleWindowFocus),og.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(kb(this,{autoFlushOnFeedback:this._options._experiments.autoFlushOnFeedback}),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=jv(this)}_removeListeners(){try{og.document.removeEventListener("visibilitychange",this._handleVisibilityChange),og.removeEventListener("blur",this._handleWindowBlur),og.removeEventListener("focus",this._handleWindowFocus),og.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(eb(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){this.session&&(this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Fv&&Hv.info("Document has become active, but session has expired"))}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate((()=>{this.throttledAddEvent({type:Sy.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})}))}_addPerformanceEntries(){let e=(t=this.performanceEntries,t.map(Ov).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter((e=>e.start>=t))}return Promise.all(db(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(db(e,[Eb(og.performance.memory)]))}catch(e){return[]}}(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Mb({replayId:e,recordingData:o,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:"sendReplay"});const t=Qd();if(t){const n=e instanceof Ob?"ratelimit_backoff":"send_error";t.recordDroppedEvent(n,"replay")}}}else Fv&&Hv.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Fv&&Hv.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Fv&&Hv.info(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Fv&&Hv.info("Flushing initial segment without checkout.");const s=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,s&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Jv(this.session)}_onMutationHandler(e){const t=e.length,n=this._options.mutationLimit,r=n&&t>n;if(t>this._options.mutationBreadcrumbLimit||r){const e=xv({category:"replay.mutations",data:{count:t,limit:r}});this._createCustomBreadcrumb(e)}return!r||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Db(e,t){return[...e,...t].join(",")}const Nb='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Pb=["content-length","content-type","accept"];let Lb=!1;function jb(e){return[...Pb,...e.map((e=>e.toLowerCase()))]}window.wp.domReady,window.wc.date,window.wp.dataControls,(()=>{const e=(0,uu.createReduxStore)(du,{reducer:(0,uu.combineReducers)({pluginStatus:Bu.reducer}),actions:{...Bu.actions},selectors:{...Bu.selectors},controls:{...window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__({name:"wcshipping"}):{},...Bu.controls}});(0,uu.register)(e)})();const Fb=document.getElementById("woocommerce-shipping-admin-status"),$b=(0,a.H)(Fb),{nonce:zb,formData:Bb,storeOptions:Hb}=window.WCShipping_Config||{};var Ub,Wb;!function(e){const t={...e};Np(t,"react"),qf("react",{version:c.version}),cm(t)}({dsn:"https://971a8d22e72fade3cc3bc7ee7c0c2093@o248881.ingest.us.sentry.io/4506903329046528",integrations:[new class{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:s,_experiments:a={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:v=[],networkResponseHeaders:b=[],mask:w=[],maskAttributes:_=["title","placeholder"],unmask:x=[],block:S=[],unblock:k=[],ignore:E=[],maskFn:C,beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O}={}){this.name="Replay";const M=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Db(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Db(t,[]),blockSelector:Db(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:Db(r,[]),ignoreSelector:Db(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:x,block:S,unblock:k,ignore:E});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:C,maskInputFn:C,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return r?o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i:i}({maskAttributes:_,maskAllText:c,privacyOptions:M,key:e,value:t,el:n}),...M,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch(e){}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:o,useCompression:i,workerUrl:s,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:jb(v),networkResponseHeaders:jb(b),beforeAddRecordingEvent:T,beforeErrorSampling:I,onError:O,_experiments:a},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Nb}`:Nb),this._isInitialized&&um())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Lb}set _isInitialized(e){Lb=e}afterAllSetup(e){um()&&!this._replay&&(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(this._replay?.isEnabled())return this._replay.getSessionId()}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){const t=function(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...Ed(e)},o=Ip(n.replaysSessionSampleRate),i=Ip(n.replaysOnErrorSampleRate);return null==o&&null==i&&pd((()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")})),null!=o&&(r.sessionSampleRate=o),null!=i&&(r.errorSampleRate=i),r}(this._initialOptions,e);this._replay=new Ab({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}(undefined)],environment:window.wcShippingSettings?.environment,release:"wcshipping@"+window.wcShippingSettings?.version,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.3,allowUrls:[/woocommerce\/assets\//,..."local"===window.wcShippingSettings?.environment?[/\/woocommerce-shipping-/]:[],/woocommerce-shipping\/assets/,/woocommerce-shipping\/dist/,/wp-json\/wcshipping\//]}),Wb=null!==(Ub=window.wc?.wcSettings.WC_VERSION)&&void 0!==Ub?Ub:"unknown version",Jd().setTag("wc_version",Wb),$b.render((0,Ve.jsx)(Eu,{healthItems:Bb.health_items,services:Bb.services,loggingEnabled:Bb.logging_enabled,debugEnabled:Bb.debug_enabled,logs:Bb.logs,nonce:zb,storeOptions:Hb}))},1609(e){"use strict";e.exports=window.React},4406(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,c=void 0===a?r:a,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:s,sanitize:l,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var c=s.index,l=i.lastIndex;l>c&&e.push({highlight:!1,start:c,end:l}),s.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])},5795(e){"use strict";e.exports=window.ReactDOM},5843(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case g:case m:case c:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===m},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=_},5959(e,t,n){"use strict";e.exports=n(5843)},6489(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var s=i[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},7314(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function a(e,n,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||t,c.cloneUnlessOtherwiseSpecified=r;var l=Array.isArray(n);return l===Array.isArray(e)?l?c.arrayMerge(e,n,c):function(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(s(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}(e,n,c):r(n,c)}a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})};var c=a;e.exports=c},8880(e,t,n){"use strict";var r=n(1609),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,c=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a((function(){o.value=n,o.getSnapshot=t,l(o)&&u({inst:o})}),[e,n,t]),s((function(){return l(o)&&u({inst:o}),e((function(){l(o)&&u({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},9576(e,t,n){"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},9835(e,t,n){"use strict";e.exports=n(8880)}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,i),n.exports}i.m=r,e=[],i.O=(t,n,r,o)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,r,o]=e[u],a=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(i.O).every((e=>i.O[e](n[c])))?n.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,r,o]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},n=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var s={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;("object"==typeof a||"function"==typeof a)&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach((t=>s[t]=()=>e[t]));return s.default=()=>e,i.d(o,s),o},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={837:0,462:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[s,a,c]=n,l=0;if(s.some((t=>0!==e[t]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var u=c(i)}for(t&&t(n);l<s.length;l++)o=s[l],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return i.O(u)},n=globalThis.webpackChunkwoocommerce_shipping=globalThis.webpackChunkwoocommerce_shipping||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var s=i.O(void 0,[462],(()=>i(1179)));s=i.O(s)})();
//# sourceMappingURL=woocommerce-shipping-admin-status.js.map
//# debugId=7dfc2252-7b41-5f7c-b27a-93f6e7ded457