@mushi-mushi/web 1.32.1 → 1.32.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- (function(){'use strict';var vu=Object.defineProperty;var qe=(t,e)=>()=>(t&&(e=t(t=0)),e);var jt=(t,e)=>{for(var r in e)vu(t,r,{get:e[r],enumerable:true});};function wu(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function Yi(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function Wt(t,e,r=""){let n=wu(t),i=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,s="",u=n?`length=${i}`:`type=${typeof t}`,d=a+"expected Uint8Array"+s+", got "+u;throw n?new RangeError(d):new TypeError(d)}return t}function Xi(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Yi(t.outputLen),Yi(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function xt(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function yr(t,e){Wt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function je(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function vr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ae(t,e){return t<<32-e|t>>>e}function at(t,e={}){let r=(i,o)=>t(o).update(i).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>t(i),Object.assign(r,e),Object.freeze(r)}var ut,wr=qe(()=>{ut=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Ji(t,e,r){return t&e^~t&r}function Qi(t,e,r){return t&e^t&r^e&r}var Vt,We,Ve,oe,se,Zi=qe(()=>{wr();Vt=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,i){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=vr(this.buffer);}update(e){xt(this),Wt(e);let{view:r,buffer:n,blockLen:i}=this,o=e.length;for(let a=0;a<o;){let s=Math.min(i-this.pos,o-a);if(s===i){let u=vr(e);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;r[a++]=128,je(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let h=a;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let s=vr(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let d=u/4,p=this.get();if(d>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)s.setUint32(4*h,p[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:s}=this;return e.destroyed=a,e.finished=o,e.length=i,e.pos=s,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},We=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ve=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),se=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function Su(t,e=false){return e?{h:Number(t&Sr),l:Number(t>>eo&Sr)}:{h:Number(t>>eo&Sr)|0,l:Number(t&Sr)|0}}function to(t,e=false){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:s}=Su(t[o],e);[n[o],i[o]]=[a,s];}return [n,i]}function De(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var Sr,eo,pn,hn,lt,ct,Kt,zt,ro,no,io,oo,so,ao,uo=qe(()=>{Sr=BigInt(4294967295),eo=BigInt(32);pn=(t,e,r)=>t>>>r,hn=(t,e,r)=>t<<32-r|e>>>r,lt=(t,e,r)=>t>>>r|e<<32-r,ct=(t,e,r)=>t<<32-r|e>>>r,Kt=(t,e,r)=>t<<64-r|e>>>r-32,zt=(t,e,r)=>t>>>r-32|e<<64-r;ro=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),no=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,io=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),oo=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,so=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),ao=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var fn={};jt(fn,{_SHA224:()=>kr,_SHA256:()=>Rr,_SHA384:()=>_r,_SHA512:()=>Cr,_SHA512_224:()=>Tr,_SHA512_256:()=>Ar,sha224:()=>Tu,sha256:()=>_u,sha384:()=>Iu,sha512:()=>Au,sha512_224:()=>Lu,sha512_256:()=>Mu});var Ru,Je,xr,Rr,kr,lo,ku,Cu,Qe,Ze,Rt,Cr,_r,le,ce,Tr,Ar,_u,Tu,Au,Iu,Mu,Lu,mn=qe(()=>{Zi();uo();wr();Ru=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Je=new Uint32Array(64),xr=class extends Vt{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:i,E:o,F:a,G:s,H:u}=this;return [e,r,n,i,o,a,s,u]}set(e,r,n,i,o,a,s,u){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=a|0,this.G=s|0,this.H=u|0;}process(e,r){for(let h=0;h<16;h++,r+=4)Je[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let k=Je[h-15],w=Je[h-2],T=Ae(k,7)^Ae(k,18)^k>>>3,b=Ae(w,17)^Ae(w,19)^w>>>10;Je[h]=b+Je[h-7]+T+Je[h-16]|0;}let{A:n,B:i,C:o,D:a,E:s,F:u,G:d,H:p}=this;for(let h=0;h<64;h++){let k=Ae(s,6)^Ae(s,11)^Ae(s,25),w=p+k+Ji(s,u,d)+Ru[h]+Je[h]|0,b=(Ae(n,2)^Ae(n,13)^Ae(n,22))+Qi(n,i,o)|0;p=d,d=u,u=s,s=a+w|0,a=o,o=i,i=n,n=w+b|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,i,o,a,s,u,d,p);}roundClean(){je(Je);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),je(this.buffer);}},Rr=class extends xr{A=We[0]|0;B=We[1]|0;C=We[2]|0;D=We[3]|0;E=We[4]|0;F=We[5]|0;G=We[6]|0;H=We[7]|0;constructor(){super(32);}},kr=class extends xr{A=Ve[0]|0;B=Ve[1]|0;C=Ve[2]|0;D=Ve[3]|0;E=Ve[4]|0;F=Ve[5]|0;G=Ve[6]|0;H=Ve[7]|0;constructor(){super(28);}},lo=to(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),ku=lo[0],Cu=lo[1],Qe=new Uint32Array(80),Ze=new Uint32Array(80),Rt=class extends Vt{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:s,Dl:u,Eh:d,El:p,Fh:h,Fl:k,Gh:w,Gl:T,Hh:b,Hl:S}=this;return [e,r,n,i,o,a,s,u,d,p,h,k,w,T,b,S]}set(e,r,n,i,o,a,s,u,d,p,h,k,w,T,b,S){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=s|0,this.Dl=u|0,this.Eh=d|0,this.El=p|0,this.Fh=h|0,this.Fl=k|0,this.Gh=w|0,this.Gl=T|0,this.Hh=b|0,this.Hl=S|0;}process(e,r){for(let x=0;x<16;x++,r+=4)Qe[x]=e.getUint32(r),Ze[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){let m=Qe[x-15]|0,E=Ze[x-15]|0,f=lt(m,E,1)^lt(m,E,8)^pn(m,E,7),g=ct(m,E,1)^ct(m,E,8)^hn(m,E,7),_=Qe[x-2]|0,D=Ze[x-2]|0,v=lt(_,D,19)^Kt(_,D,61)^pn(_,D,6),K=ct(_,D,19)^zt(_,D,61)^hn(_,D,6),Y=io(g,K,Ze[x-7],Ze[x-16]),ne=oo(Y,f,v,Qe[x-7],Qe[x-16]);Qe[x]=ne|0,Ze[x]=Y|0;}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:s,Cl:u,Dh:d,Dl:p,Eh:h,El:k,Fh:w,Fl:T,Gh:b,Gl:S,Hh:L,Hl:M}=this;for(let x=0;x<80;x++){let m=lt(h,k,14)^lt(h,k,18)^Kt(h,k,41),E=ct(h,k,14)^ct(h,k,18)^zt(h,k,41),f=h&w^~h&b,g=k&T^~k&S,_=so(M,E,g,Cu[x],Ze[x]),D=ao(_,L,m,f,ku[x],Qe[x]),v=_|0,K=lt(n,i,28)^Kt(n,i,34)^Kt(n,i,39),Y=ct(n,i,28)^zt(n,i,34)^zt(n,i,39),ne=n&o^n&s^o&s,j=i&a^i&u^a&u;L=b|0,M=S|0,b=w|0,S=T|0,w=h|0,T=k|0,{h,l:k}=De(d|0,p|0,D|0,v|0),d=s|0,p=u|0,s=o|0,u=a|0,o=n|0,a=i|0;let ke=ro(v,Y,j);n=no(ke,D,K,ne),i=ke|0;}(({h:n,l:i}=De(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:a}=De(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l:u}=De(this.Ch|0,this.Cl|0,s|0,u|0),{h:d,l:p}=De(this.Dh|0,this.Dl|0,d|0,p|0),{h,l:k}=De(this.Eh|0,this.El|0,h|0,k|0),{h:w,l:T}=De(this.Fh|0,this.Fl|0,w|0,T|0),{h:b,l:S}=De(this.Gh|0,this.Gl|0,b|0,S|0),{h:L,l:M}=De(this.Hh|0,this.Hl|0,L|0,M|0),this.set(n,i,o,a,s,u,d,p,h,k,w,T,b,S,L,M);}roundClean(){je(Qe,Ze);}destroy(){this.destroyed=true,je(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Cr=class extends Rt{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(64);}},_r=class extends Rt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},le=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ce=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Tr=class extends Rt{Ah=le[0]|0;Al=le[1]|0;Bh=le[2]|0;Bl=le[3]|0;Ch=le[4]|0;Cl=le[5]|0;Dh=le[6]|0;Dl=le[7]|0;Eh=le[8]|0;El=le[9]|0;Fh=le[10]|0;Fl=le[11]|0;Gh=le[12]|0;Gl=le[13]|0;Hh=le[14]|0;Hl=le[15]|0;constructor(){super(28);}},Ar=class extends Rt{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(32);}},_u=at(()=>new Rr,ut(1)),Tu=at(()=>new kr,ut(4)),Au=at(()=>new Cr,ut(3)),Iu=at(()=>new _r,ut(2)),Mu=at(()=>new Ar,ut(6)),Lu=at(()=>new Tr,ut(5));});var co={};jt(co,{_HMAC:()=>Gt,hmac:()=>Du});var Gt,Du,po=qe(()=>{wr();Gt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(Xi(e),Wt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),je(i);}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:a,outputLen:s}=this;return e=e,e.finished=i,e.destroyed=o,e.blockLen=a,e.outputLen=s,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Du=(()=>{let t=((e,r,n)=>new Gt(e,r).update(n).digest());return t.create=(e,r)=>new Gt(e,r),t})();});function id(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return Gc.includes(e)?e:"en"}function yt(t="en"){return nd[id(t)]}function ar(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function od(t){return zc.includes(t)}function sd(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function Dt(t,e="en"){let r=yt(e),n=(t.status??"").trim(),i=od(n)?Yc[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&Gs.has(i)&&(i="waiting");let s=sd(t),u=r.status[i],d=r.detail[i];s&&(i==="received"?u=r.idea.received:i==="reviewing"||i==="reviewing_again"?u=r.idea.reviewing:i==="fixing"?u=r.idea.fixing:i==="fixed_version"?u=r.idea.shippedVersion:(i==="fixed_next"||i==="fixed")&&(u=r.idea.shipped));let p=t.closed_reason??null;i==="closed"&&(d=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=t.group_bucket??"none",k=Gs.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:ar(u,{version:o}),tone:Xc[i],detail:ar(d,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:k,hidden:i==="closed"&&p==="spam"}}function ad(t,e={},r="en"){let n=yt(r);if(t==="comment")return e.text??"";if(t==="closed"){let i=e.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return t==="reporter_comment"?e.text??n.timeline.reporter_comment:ar(n.timeline[t],{text:e.text,version:e.version})}function Kn(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function Ys(t,e="en"){return t.custom||!Jc.includes(t.kind)?t.text:ad(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function Xs(t,e="en"){let r=yt(e).ui,n=t.unread_total===1?t.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(t.unread_total))}function Js(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var zc,Gc,Yc,Xc,Jc,Qc,Zc,ed,td,rd,nd,Gs,Vr=qe(()=>{zc=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],Gc=["en","ja","es","th","zh"],Yc={new:"received",pending:"received",submitted:"received",queued:"received",classified:"reviewing",triaged:"reviewing",grouped:"reviewing",reopened:"reviewing_again",fixing:"fixing",in_progress:"fixing",verified:"verified",fixed:"fixed_next",resolved:"fixed",dismissed:"closed"},Xc={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},Jc=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],Qc={status:{received:"Received",reviewing:"Looking into it",reviewing_again:"Looking into it again",fixing:"Fix in progress",verified:"Confirmed fixed",fixed_next:"Fixed \u2014 coming in the next update",fixed_version:"Fixed in v{version}",fixed:"Fixed",closed:"Closed",waiting:"Waiting on you"},detail:{received:"We got it.",reviewing:"The developer has it on their list.",reviewing_again:"Thanks \u2014 we reopened it.",fixing:"A fix is being worked on.",verified:"You confirmed the fix. Thank you!",fixed_next:"It ships in the next release.",fixed_version:"Update to v{version}. Does it work for you now?",fixed:"Does it work for you now?",closed:"Closed.",waiting:"The developer asked a question \u2014 reply below."},idea:{received:"Thanks for the idea",reviewing:"Under consideration",fixing:"Being built",shipped:"Shipped",shippedVersion:"Shipped in v{version}"},closedReason:{duplicate:"Same as an earlier report \u2014 we'll update you there.",not_reproducible:"We couldn't reproduce it. Reply if it happens again.",wont_fix:"We decided not to change this.",working_as_intended:"This is expected behaviour.",none:"Closed."},others:{few:"You and a few others reported this",many:"Many people reported this"},timeline:{received:"You reported this",reviewing:"The developer is looking into it",duplicate_linked:"Same as an existing report \u2014 we'll update you there",info_requested:"The developer asked: {text}",reporter_comment:"You",fix_started:"A fix is in progress",fixed:"Fixed \u2014 coming in the next update",released:"Shipped in v{version} \u2014 update to get it",verified:"You confirmed it's fixed",reopened:"Reopened"},categories:{bug:"Bug",slow:"Slow",visual:"Looks wrong",confusing:"Confusing",idea:"Idea"},ui:{yes:"Yes",notYet:"Not yet",empty:"Nothing yet \u2014 your reports will show up here with updates.",loadError:"Couldn't load updates",retry:"Retry",sending:"Sending\u2026",sent:"Sent",sendFailed:"Failed",noReplies:"No developer replies yet.",you:"You",developer:"Developer",addWords:"Add a few words",developerReplied:"Developer replied: \u201C{text}\u201D",updates:"{n} updates on your reports",receipt:"Sent. We'll let you know here when there's news.",trackIt:"Track it",done:"Done",emailOptIn:"Get updates by email",emailPlaceholder:"you@example.com",emailSubmit:"Email me updates",emailCheckInbox:"Check your inbox and tap the link to confirm.",emailInvalid:"That does not look like an email address.",emailFailed:"Couldn't set up email updates. Try again later.",toastReplied:"The developer replied to your report",toastFixed:"Your bug is fixed",view:"View"}},Zc={status:{received:"\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",reviewing:"\u78BA\u8A8D\u4E2D",reviewing_again:"\u518D\u78BA\u8A8D\u4E2D",fixing:"\u4FEE\u6B63\u4E2D",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u6E08\u307F",fixed_next:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",fixed_version:"v{version} \u3067\u4FEE\u6B63\u6E08\u307F",fixed:"\u4FEE\u6B63\u6E08\u307F",closed:"\u7D42\u4E86",waiting:"\u3042\u306A\u305F\u306E\u8FD4\u4FE1\u5F85\u3061"},detail:{received:"\u5831\u544A\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\u3002",reviewing:"\u958B\u767A\u8005\u304C\u5BFE\u5FDC\u30EA\u30B9\u30C8\u306B\u5165\u308C\u307E\u3057\u305F\u3002",reviewing_again:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\u3002\u518D\u5EA6\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",fixing:"\u4FEE\u6B63\u306B\u53D6\u308A\u7D44\u3093\u3067\u3044\u307E\u3059\u3002",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3044\u305F\u3060\u304D\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01",fixed_next:"\u6B21\u306E\u30EA\u30EA\u30FC\u30B9\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",fixed_version:"v{version} \u306B\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",fixed:"\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",closed:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002",waiting:"\u958B\u767A\u8005\u304B\u3089\u8CEA\u554F\u304C\u3042\u308A\u307E\u3059\u3002\u4E0B\u304B\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},idea:{received:"\u30A2\u30A4\u30C7\u30A2\u3092\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059",reviewing:"\u691C\u8A0E\u4E2D",fixing:"\u958B\u767A\u4E2D",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",shippedVersion:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9\u6E08\u307F"},closedReason:{duplicate:"\u4EE5\u524D\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",not_reproducible:"\u518D\u73FE\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u767A\u3057\u305F\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",wont_fix:"\u3053\u306E\u70B9\u306F\u5909\u66F4\u3057\u306A\u3044\u3053\u3068\u306B\u3057\u307E\u3057\u305F\u3002",working_as_intended:"\u3053\u308C\u306F\u60F3\u5B9A\u3069\u304A\u308A\u306E\u52D5\u4F5C\u3067\u3059\u3002",none:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002"},others:{few:"\u3042\u306A\u305F\u3092\u542B\u3081\u6570\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059",many:"\u591A\u304F\u306E\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059"},timeline:{received:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u307E\u3057\u305F",reviewing:"\u958B\u767A\u8005\u304C\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059",duplicate_linked:"\u65E2\u5B58\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059",info_requested:"\u958B\u767A\u8005\u304B\u3089\u306E\u8CEA\u554F: {text}",reporter_comment:"\u3042\u306A\u305F",fix_started:"\u4FEE\u6B63\u4E2D\u3067\u3059",fixed:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",released:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9 \u2014 \u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F",reopened:"\u518D\u30AA\u30FC\u30D7\u30F3\u3057\u307E\u3057\u305F"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044",visual:"\u8868\u793A\u304C\u304A\u304B\u3057\u3044",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",idea:"\u30A2\u30A4\u30C7\u30A2"},ui:{yes:"\u306F\u3044",notYet:"\u307E\u3060",empty:"\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5831\u544A\u3059\u308B\u3068\u3053\u3053\u306B\u9032\u6357\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",loadError:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",retry:"\u518D\u8A66\u884C",sending:"\u9001\u4FE1\u4E2D\u2026",sent:"\u9001\u4FE1\u3057\u307E\u3057\u305F",sendFailed:"\u9001\u4FE1\u5931\u6557",noReplies:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",you:"\u3042\u306A\u305F",developer:"\u958B\u767A\u8005",addWords:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",developerReplied:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1:\u300C{text}\u300D",updates:"\u3042\u306A\u305F\u306E\u5831\u544A\u306B {n} \u4EF6\u306E\u66F4\u65B0\u304C\u3042\u308A\u307E\u3059",receipt:"\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002\u9032\u5C55\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",trackIt:"\u7D4C\u904E\u3092\u898B\u308B",done:"\u9589\u3058\u308B",emailOptIn:"\u30E1\u30FC\u30EB\u3067\u66F4\u65B0\u3092\u53D7\u3051\u53D6\u308B",emailPlaceholder:"you@example.com",emailSubmit:"\u30E1\u30FC\u30EB\u3067\u53D7\u3051\u53D6\u308B",emailCheckInbox:"\u53D7\u4FE1\u30C8\u30EC\u30A4\u306E\u30E1\u30FC\u30EB\u306E\u30EA\u30F3\u30AF\u3092\u30BF\u30C3\u30D7\u3057\u3066\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",emailInvalid:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",emailFailed:"\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",toastReplied:"\u958B\u767A\u8005\u304C\u3042\u306A\u305F\u306E\u5831\u544A\u306B\u8FD4\u4FE1\u3057\u307E\u3057\u305F",toastFixed:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u305F\u4E0D\u5177\u5408\u304C\u4FEE\u6B63\u3055\u308C\u307E\u3057\u305F",view:"\u898B\u308B"}},ed={status:{received:"Recibido",reviewing:"Lo estamos revisando",reviewing_again:"Lo revisamos de nuevo",fixing:"Correcci\xF3n en curso",verified:"Correcci\xF3n confirmada",fixed_next:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",fixed_version:"Corregido en v{version}",fixed:"Corregido",closed:"Cerrado",waiting:"Esperando tu respuesta"},detail:{received:"Lo recibimos.",reviewing:"El desarrollador lo tiene en su lista.",reviewing_again:"Gracias, lo reabrimos.",fixing:"Se est\xE1 trabajando en una correcci\xF3n.",verified:"Confirmaste la correcci\xF3n. \xA1Gracias!",fixed_next:"Llega en la pr\xF3xima versi\xF3n.",fixed_version:"Actualiza a v{version}. \xBFYa funciona?",fixed:"\xBFYa funciona?",closed:"Cerrado.",waiting:"El desarrollador hizo una pregunta: responde abajo."},idea:{received:"Gracias por la idea",reviewing:"En consideraci\xF3n",fixing:"En desarrollo",shipped:"Publicado",shippedVersion:"Publicado en v{version}"},closedReason:{duplicate:"Es igual a un reporte anterior; te avisaremos all\xED.",not_reproducible:"No pudimos reproducirlo. Responde si vuelve a pasar.",wont_fix:"Decidimos no cambiar esto.",working_as_intended:"Este es el comportamiento esperado.",none:"Cerrado."},others:{few:"T\xFA y algunas personas m\xE1s reportaron esto",many:"Muchas personas reportaron esto"},timeline:{received:"Reportaste esto",reviewing:"El desarrollador lo est\xE1 revisando",duplicate_linked:"Es igual a un reporte existente; te avisaremos all\xED",info_requested:"El desarrollador pregunt\xF3: {text}",reporter_comment:"T\xFA",fix_started:"Hay una correcci\xF3n en curso",fixed:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",released:"Publicado en v{version}: actualiza para tenerlo",verified:"Confirmaste que est\xE1 corregido",reopened:"Reabierto"},categories:{bug:"Error",slow:"Lento",visual:"Se ve mal",confusing:"Confuso",idea:"Idea"},ui:{yes:"S\xED",notYet:"Todav\xEDa no",empty:"Nada todav\xEDa: tus reportes aparecer\xE1n aqu\xED con novedades.",loadError:"No se pudieron cargar las novedades",retry:"Reintentar",sending:"Enviando\u2026",sent:"Enviado",sendFailed:"Error al enviar",noReplies:"El desarrollador a\xFAn no ha respondido.",you:"T\xFA",developer:"Desarrollador",addWords:"Agrega algunas palabras",developerReplied:"El desarrollador respondi\xF3: \u201C{text}\u201D",updates:"{n} novedades en tus reportes",receipt:"Enviado. Te avisaremos aqu\xED cuando haya novedades.",trackIt:"Seguirlo",done:"Listo",emailOptIn:"Recibir novedades por correo",emailPlaceholder:"tu@ejemplo.com",emailSubmit:"Enviarme novedades",emailCheckInbox:"Revisa tu correo y toca el enlace para confirmar.",emailInvalid:"Eso no parece un correo electr\xF3nico.",emailFailed:"No pudimos activar las novedades por correo. Int\xE9ntalo m\xE1s tarde.",toastReplied:"El desarrollador respondi\xF3 a tu reporte",toastFixed:"Tu error est\xE1 corregido",view:"Ver"}},td={status:{received:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",reviewing_again:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",fixed_next:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E23\u0E2D\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13"},detail:{received:"\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E43\u0E2A\u0E48\u0E44\u0E27\u0E49\u0E43\u0E19\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27",reviewing_again:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E40\u0E23\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13!",fixed_next:"\u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E23\u0E38\u0E48\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1B\u0E47\u0E19 v{version} \u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",fixed:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21 \u2014 \u0E15\u0E2D\u0E1A\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07"},idea:{received:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07",shipped:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",shippedVersion:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}"},closedReason:{duplicate:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",not_reproducible:"\u0E40\u0E23\u0E32\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E0B\u0E49\u0E33\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E2B\u0E32\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E35\u0E01",wont_fix:"\u0E40\u0E23\u0E32\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E19\u0E35\u0E49",working_as_intended:"\u0E19\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E43\u0E08\u0E44\u0E27\u0E49",none:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27"},others:{few:"\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",many:"\u0E21\u0E35\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49"},timeline:{received:"\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",duplicate_linked:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",info_requested:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32: {text}",reporter_comment:"\u0E04\u0E38\u0E13",fix_started:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",released:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E43\u0E19 v{version} \u2014 \u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",reopened:"\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},categories:{bug:"\u0E1A\u0E31\u0E4A\u0E01",slow:"\u0E0A\u0E49\u0E32",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",idea:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22"},ui:{yes:"\u0E43\u0E0A\u0E48",notYet:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 \u2014 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",loadError:"\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",sent:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",sendFailed:"\u0E2A\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",noReplies:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",you:"\u0E04\u0E38\u0E13",developer:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",addWords:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22",developerReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E27\u0E48\u0E32: \u201C{text}\u201D",updates:"\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",receipt:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",trackIt:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08",emailOptIn:"\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"you@example.com",emailSubmit:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailCheckInbox:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E25\u0E48\u0E2D\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E30\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",emailInvalid:"\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E08\u0E30\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",emailFailed:"\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08 \u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",toastReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27",toastFixed:"\u0E1A\u0E31\u0E4A\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27",view:"\u0E14\u0E39"}},rd={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},nd={en:Qc,ja:Zc,es:ed,th:td,zh:rd};Gs=new Set(["received","reviewing","reviewing_again","fixing"]);});var ba={};jt(ba,{accountView:()=>Pd,assistantView:()=>Md,crossAppView:()=>Bd,detailView:()=>Id,initViews:()=>Sd,leaderboardView:()=>Dd,pickUpdateToast:()=>xd,renderOptIns:()=>ga,reportsView:()=>_d,roadmapView:()=>Ld});function Sd(t){({esc:C,btn:pe,renderHeader:Be,chipLabel:fa,skeleton:Pt,formatRelativeTime:ur,renderAppIconHtml:ma}=t);}function xd(t,e,r){let n=t.filter(d=>(d.unread_count??0)>0&&!Dt(d,e).hidden),i=n.reduce((d,p)=>d+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:ar(yt(e).ui.updates,{n:i}),reportId:null};let o=n[0],a=Dt(o,e),s=a.key==="fixing"||a.canVerify||!o.last_admin_reply_at&&a.key!=="waiting",u=o.title??o.summary??void 0;return {text:s?a.label:r,reportId:o.id,...u?{detail:u}:{}}}function ga(t){let e=t.locale.panel,r=[];if(t.channels.email&&t.callbacks.onReporterEmailOptIn){let n=t.rc.ui;t.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${C(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${t.emailOptInOpen?" checked":""} /> ${C(n.emailOptIn)}</label>`),t.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${C(n.emailOptIn)}" placeholder="${C(n.emailPlaceholder)}" value="${C(t.channels.emailPrefill)}" />${pe("save-email",C(n.emailSubmit),"mushi-btn",t.emailState==="saving"?' aria-busy="true"':"")}</div>${t.emailState==="invalid"||t.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${C(t.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return t.channels.push&&t.callbacks.onReporterPushSubscribe&&(r.push(t.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${C(e.notifyOn)}</p>`:pe("notify-me",`\u{1F514} ${C(e.notifyMe)}`,"mushi-btn",t.pushState==="asking"?' aria-busy="true"':"")),t.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${C(t.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function Xn(t,e){return `<span class="mushi-pill mushi-tone-${e}">${C(t)}</span>`}function Ea(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function Rd(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":fa(t,r==="feature_request"?"idea":r)}function kd(t){let e=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...t].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||e(n)-e(r))}function Cd(t,e){let r=Dt(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[Rd(t,e.user_category),e.page,r.othersNote].filter(Boolean).map(s=>C(String(s))).join(" \xB7 "),o=e.last_event_preview&&(n||r.key==="waiting")?t.rc.ui.developerReplied.replace("{text}",e.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",a=Ea(e);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${C(e.id)}" aria-label="${C(`${r.label}: ${a}`)}"><span class="mushi-row-top">${Xn(r.label,r.tone)}<span class="mushi-row-title">${C(a)}</span><span class="mushi-row-when">${C(ur(e.last_event_at??e.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${C(o)}</span>`:""}</button>`}function _d(t){let e=t.rc,r=kd(t.reporterReports).map(i=>Cd(t,i)).join(""),n=t.reporterError?`<p class="mushi-error-inline" role="alert">${C(e.ui.loadError)} ${pe("retry-list",C(e.ui.retry),"mushi-link-btn")}</p>${r}`:r||(t.listLoading?Pt(t.locale.flows.reports.loading):`<p class="mushi-empty">${C(e.ui.empty)}</p>`);return {header:Be(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function Td(t,e){let r=t.rc,n=[];if(t.timeline)for(let i of t.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:Kn(i)?i.body??i.text:Ys(i,t.lang),talk:Kn(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {e&&n.push({kind:"received",at:e.created_at,text:r.timeline.received});for(let i of t.reporterComments){let o=i.author_kind==="reporter";n.push({kind:o?"reporter_comment":"comment",at:i.created_at,text:i.body,talk:true,mine:o,who:o?r.ui.you:i.author_name??r.ui.developer});}}n.sort((i,o)=>(Date.parse(i.at)||0)-(Date.parse(o.at)||0));for(let i of t.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Ad(t,e){let r=e.at?`<time datetime="${C(e.at)}">${C(ur(e.at))}</time>`:"";if(!e.talk)return `<li class="mushi-event"><span>${C(e.text)}</span>${r}</li>`;let n=!!e.mine,i=e.pending?e.pending.state==="sending"?`<span class="mushi-bubble-state">${C(t.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${C(t.rc.ui.sendFailed)} \xB7 ${pe("retry-reply",C(t.rc.ui.retry),"mushi-link-btn",` data-value="${e.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${C(e.who??"")}</strong><p>${C(e.text)}</p>${i}</li>`}function Id(t){let e=t.rc,r=t.reporterReports.find(h=>h.id===t.selectedReportId),n=Dt(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?ur(r.created_at):""].filter(Boolean).map(h=>C(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${Xn(n.label,n.tone)}</p><p class="mushi-note">${C(n.detail)}${n.othersNote?` ${C(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${C(r?r.description??Ea(r):`#${(t.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${C(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,a=Td(t,r),s=a.some(h=>h.talk&&!h.mine),u;t.threadLoading&&a.length<=1&&!t.pendingReplies.length?u=Pt(t.locale.flows.thread.loading):u=`${t.threadError?`<p class="mushi-error-inline" role="alert">${C(e.ui.loadError)} ${pe("retry-thread",C(e.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${a.map(h=>Ad(t,h)).join("")}</ol>${!s&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${C(e.ui.noReplies)}</p>`:""}`;let d=t.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${C(n.detail)}">${pe("reporter-confirms",C(e.ui.yes),"mushi-btn",d)}${pe("reporter-not-fixed",C(e.ui.notYet),"mushi-btn",d)}</div>`:"";return {header:Be(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${ga(t)}`,footer:`${p}${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${C(t.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${C(t.locale.flows.thread.replyPlaceholder)}" aria-label="${C(t.locale.flows.thread.replyPlaceholder)}"></textarea>${pe("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${C(t.locale.panel.send)}"`)}</div>`}}function Md(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=d=>d.length?`<div class="mushi-chips">${d.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${C(p)}">${C(p)}</button>`).join("")}</div>`:"",i=(d,p="mushi-link-btn")=>pe("assistant-report",C(d),p),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${C(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(d=>`<div class="mushi-assistant-msg ${d.role==="user"?"mine":"dev"}">${C(d.text)}</div>${n(d.options??[])}${d.offerReport?i(e.fileReportCta,"mushi-btn"):""}`).join(""),a=t.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${C(e.thinking)}</div>`:"",s=t.assistantError?`<p class="mushi-error-inline" role="alert">${C(t.assistantError)} ${i(e.fileReportCta)}</p>`:"",u=t.assistantTurns.length&&!t.assistantSending&&!t.assistantError?i(e.stillStuckCta):"";return {header:Be(t,t.callbacks.assistantLabel||e.defaultLabel,true),lead:"",body:`<div class="mushi-assistant-log">${o}${a}${s}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${C(e.inputPlaceholder)}" aria-label="${C(e.inputPlaceholder)}"${t.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${C(e.sendAriaLabel)}"${t.assistantSending?" disabled":""}>\u2191</button></form>`}}function Ld(t){let e=t.locale.flows.roadmap,r=t.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,a=n.shipped_at?e.shipped:String(n.status_label??n.status??"open");return `<div class="mushi-report-row mushi-roadmap-row"><span class="mushi-row-top"><span class="mushi-row-title">${C(String(n.subject??e.untitled))}</span></span><span class="mushi-row-meta">${C(a)} \xB7 ${C(e.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${t.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${C(i)}" aria-pressed="${o}">${C(o?e.voted:e.vote)}</button>`:""}</div>`}).join("");return {header:Be(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${C(t.reporterError)}</p>`:""}${r||(t.listLoading?Pt(e.loading):`<p class="mushi-empty">${C(e.empty)}</p>`)}`,footer:""}}function Dd(t){let e=t.locale.flows.leaderboard,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:t.leaderboardEntries??[],i=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=n.map((s,u)=>{let d=s.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&s.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${d}</span><span class="mushi-row-title">${C(s.public_handle??s.display_name??e.anon)}</span><span>${(s.points_30d??s.total_points).toLocaleString()} pts</span></li>`}).join(""),a=t.testerReputation?.rank;return {header:Be(t,e.title,true),lead:"",body:`${i?Pt(e.loading):""}${!i&&!n.length?`<p class="mushi-empty">${C(e.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${a?`<p class="mushi-note">${C(e.myRank.replace("{rank}",String(a)))}</p>`:t.testerJwt?"":pe("open-account",C(e.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${C(e.footer)}</p>`,footer:""}}function Pd(t){let e=t.locale.flows.account,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??t.locale.flows.leaderboard.anon,i=t.testerReputation,o=i?e.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:Be(t,e.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${C(n)}</p>${o?`<p class="mushi-note">${C(o)}</p>`:""}</div>${pe("open-cross-app-reports",C(e.crossAppReports),"mushi-menu-item")}${pe("open-global-leaderboard",C(e.viewLeaderboard),"mushi-menu-item")}${pe("sign-out-tester",C(e.signOut),"mushi-link-btn")}`,footer:""}}return t.magicLinkSent?{header:Be(t,e.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${C(e.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>${pe("resend-magic-link",C(e.resendEmail),"mushi-link-btn")}${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${C(t.magicLinkError)}</p>`:""}`,footer:""}:{header:Be(t,e.joinTitle,true),lead:"",body:`<p class="mushi-note">${C(e.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${C(e.emailLabel)}" placeholder="${C(e.emailPlaceholder)}" autocomplete="email" value="${C(t.magicLinkEmail)}" />${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${C(t.magicLinkError)}</p>`:""}`,footer:`<span></span>${pe("send-magic-link",C(t.magicLinkSending?e.sending:e.sendLink),"mushi-submit",t.magicLinkSending?' aria-busy="true"':"")}`}}function Bd(t){let e=t.locale.flows.crossApp,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let i=[...n.entries()].map(([o,a])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${ma({projectId:o,appName:a.name,appSlug:a.slug,appDomain:a.domain})} ${C(a.name)}</h3>${a.reports.map(s=>{let u=Dt(s,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${Xn(u.label,u.tone)}<span class="mushi-row-title">${C(s.title??`#${s.short_id??s.id.slice(0,8)}`)}</span><span class="mushi-row-when">${C(ur(s.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Be(t,e.title,true),lead:"",body:`${t.crossAppLoading?Pt(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${C(e.empty)}</p>`:""}${i}`,footer:""}}var C,pe,Be,fa,Pt,ur,ma,ya=qe(()=>{Vr();});var su={};jt(su,{grabMaskedTabFrame:()=>zp});async function zp(t,e){let r=await t,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(s=>s.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=e.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${i}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${i}) *{visibility:hidden!important}`,document.head.appendChild(o);let a=document.createElement("video");try{a.muted=!0,a.srcObject=r,await a.play(),await new Promise(u=>setTimeout(u,150));let s=document.createElement("canvas");return s.width=a.videoWidth,s.height=a.videoHeight,s.getContext("2d")?.drawImage(a,0,0),s.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(s=>s.stop()),a.srcObject=null,o.remove();}}var au=qe(()=>{});var uu={};jt(uu,{createScreenshotAnnotation:()=>Gp});function Gp(t,e){return new Promise((r,n)=>{let i=new Image;i.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),s=document.createElement("canvas"),u=Math.min(1,720/i.width),d=Math.round(i.width*u),p=Math.round(i.height*u);for(let E of [a,s])E.width=d,E.height=p,E.style.width="100%",E.style.height="auto",E.style.display="block";s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.cursor="crosshair";let h=a.getContext("2d"),k=s.getContext("2d");if(!h||!k){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,d,p),o.appendChild(a),o.appendChild(s),e.appendChild(o);let w="highlight",T=false,b=null,S=[],L=E=>{let f=s.getBoundingClientRect(),g="touches"in E?E.touches[0]??E.changedTouches[0]:null,_=g?g.clientX:E.clientX,D=g?g.clientY:E.clientY;return {x:(_-f.left)/f.width*d,y:(D-f.top)/f.height*p}},M=()=>{k.clearRect(0,0,d,p);for(let E of S)if(E.tool==="highlight"&&E.points.length>=2){let[f,g]=E.points;k.fillStyle="rgba(255, 230, 0, 0.35)",k.fillRect(Math.min(f.x,g.x),Math.min(f.y,g.y),Math.abs(g.x-f.x),Math.abs(g.y-f.y));}else if(E.tool==="arrow"&&E.points.length>=2){let[f,g]=E.points;k.strokeStyle="#ef4444",k.lineWidth=3,k.beginPath(),k.moveTo(f.x,f.y),k.lineTo(g.x,g.y),k.stroke();}},x=E=>{T=true,b=L(E);},m=E=>{if(!T||!b)return;T=false;let f=L(E);if(w==="blur"){let g=Math.min(b.x,f.x),_=Math.min(b.y,f.y),D=Math.abs(f.x-b.x),v=Math.abs(f.y-b.y);D>=1&&v>=1&&(h.filter="blur(8px)",h.drawImage(a,g,_,D,v,g,_,D,v),h.filter="none");}else S.push({tool:w,points:[b,f]});b=null,M();};s.addEventListener("mousedown",x),s.addEventListener("mouseup",m),s.addEventListener("touchstart",x,{passive:true}),s.addEventListener("touchend",m),r({canvas:a,setTool(E){w=E;},getDataUrl(){let E=document.createElement("canvas");E.width=d,E.height=p;let f=E.getContext("2d");return f?(f.drawImage(a,0,0),f.drawImage(s,0,0),E.toDataURL("image/jpeg",.85)):t},destroy(){s.removeEventListener("mousedown",x),s.removeEventListener("mouseup",m),s.removeEventListener("touchstart",x),s.removeEventListener("touchend",m),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var lu=qe(()=>{});var Pu=4194304,Lo=1.5*1024*1024;function Bu(t){try{return JSON.stringify(t)}catch{return null}}function Fu(t,e=Pu){let r=Bu(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${ho(n)} exceeds limit ${ho(e)}`}}function ho(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Do(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Br(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function nr(t){let e=Do();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Br(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(mn(),fn));return Br(r(new TextEncoder().encode(t)))}async function $u(t,e){let r=Do();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),s=await r.sign("HMAC",a,new TextEncoder().encode(e));return Br(new Uint8Array(s))}let{hmac:n}=await Promise.resolve().then(()=>(po(),co)),{sha256:i}=await Promise.resolve().then(()=>(mn(),fn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return Br(o)}var Hu=60*1024;function Ou(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Nu(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Uu(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function qu(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Nu(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(Ou({path:t.path??Uu(t.url),headers:t.headers,body:n}));if(i.length>Hu)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Po=false;function Bo(){Po=true;}function ju(){return Po}var Sn=null;function Fo(){return Sn?qu(Sn):false}var fo=false,Wu="X-Mushi-User-Token",Vu="X-Mushi-Project",Ku="X-Mushi-SDK-Package",zu="X-Mushi-SDK-Version";function Gu(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Vu]:t.projectId};return t.sdkPackage&&(e[Ku]=t.sdkPackage),t.sdkVersion&&(e[zu]=t.sdkVersion),t.userToken&&(e[Wu]=t.userToken),t.internalKind&&(e[Hr]=t.internalKind),e}var Yt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Hr="X-Mushi-Internal",ir="__mushiInternal";function Yu(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??Yt).replace(/\/$/,"")}var Xu=1e4,Ju=2,Qu=4,Zu=3e4,el=1e4;function $o(t){let{projectId:e,apiKey:r,apiEndpoint:n=Yt,tunnel:i,timeout:o=Xu,maxRetries:a=Ju,getUserToken:s,sdkPackage:u,sdkVersion:d,circuitBreaker:p}=t,h=Yu(n,i),k=p?.enabled!==false,w=Math.max(1,p?.threshold??Qu),T=Math.max(1e3,p?.cooldownMs??Zu),b=0,S=0,L=()=>k&&S>Date.now(),M=()=>{b=0,S=0;},x=()=>{k&&(b+=1,b>=w&&(S=Date.now()+T));};async function m(f,g,_,D=a,v,K){let Y=v!=="reporter-poll";if(Y&&L())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let ne=`${h}${g}`,j=new AbortController,ke=setTimeout(()=>j.abort(),o),He=s?.()??null,me={...Gu({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:d,userToken:He,internalKind:v}),...K},J=_?JSON.stringify(_):void 0;J&&f!=="GET"&&v!=="reporter-poll"&&(Sn={url:ne,headers:me,body:J,path:g});try{let F=await fetch(ne,{method:f,headers:me,body:J,keepalive:ju(),signal:j.signal,...v?{[ir]:v}:{}});if(clearTimeout(ke),F.status===307||F.status===308){let Ce=F.headers.get("Location");if(Ce&&D>0){let _e=Ce.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(_e!==h)return h=_e,m(f,g,_,D-1,v,K)}}if(!F.ok){let Ce=await F.json().catch(()=>({}));if((F.status===401||F.status===403)&&!fo){fo=!0;let $=h===Yt?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${F.status}). Check your Project ID and API key scope (must be "report:write"). `+$);}let _e=F.status===429,Le=F.status>=500||_e,A=_e?tl(F.headers.get("Retry-After")):null,R=A===null||A<=el;return Le&&D>0&&R?(await mo(A??go(a-D)),m(f,g,_,D-1,v,K)):(Y&&(Le?x():M()),{ok:!1,error:{code:Ce.error?.code||`HTTP_${F.status}`,message:Ce.error?.message||Ce.message||`HTTP ${F.status} error`,status:F.status}})}let G=await F.json(),re=G&&typeof G=="object"&&"ok"in G&&"data"in G?G.data:G;return Y&&M(),{ok:!0,data:re}}catch(F){return clearTimeout(ke),D>0&&rl(F)?(await mo(go(a-D)),m(f,g,_,D-1,v,K)):(Y&&x(),{ok:false,error:{code:"NETWORK_ERROR",message:F instanceof Error?F.message:"Unknown network error"}})}}async function E(f,g,_,D){try{let v=await nr(_),K=String(Date.now());return await m(f,g,D,a,"reporter-poll",{"X-Reporter-Token-Hash":v,"X-Reporter-Ts":K,"X-Reporter-Hmac":await $u(r,`${e}.${K}.${v}`)})}catch(v){return {ok:false,error:{code:"NETWORK_ERROR",message:v instanceof Error?v.message:"Unknown error"}}}}return {async submitReport(f){let g=Fu(f);return g.ok?m("POST","/v1/reports",f,a,"report-submit"):{ok:false,error:{code:g.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:g.reason??"Report payload exceeds size limit"}}},async getReportStatus(f){return m("GET",`/v1/reports/${f}/status`,void 0,a,"report-status")},async getSdkConfig(){return m("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(f){return m("POST","/v1/sdk/assistant",{message:f.message,threadId:f.threadId??null,context:f.context??null},1,"community")},async getLatestSdkVersion(f){let g=new URLSearchParams({package:f}).toString();return m("GET",`/v1/sdk/latest-version?${g}`,void 0,a,"sdk-config")},async postDiscoveryEvent(f){return m("POST","/v1/sdk/discovery",f,1,"discovery")},async listReporterReports(f){return E("GET","/v1/reporter/reports",f)},reporterRequest:E,async listReporterComments(f,g){return E("GET",`/v1/reporter/reports/${f}/comments`,g)},async replyToReporterReport(f,g,_,D){return E("POST",`/v1/reporter/reports/${f}/reply`,g,{body:_,...D?{feedback_signal:D}:{}})},async reopenReporterReport(f,g,_){return E("POST",`/v1/reporter/reports/${f}/reopen`,g,{note:_??""})},async listNotifications(f,g){let _=new URLSearchParams;g?.since&&_.set("since",g.since),g?.limit&&_.set("limit",String(g.limit));let D=_.size?`?${_.toString()}`:"";return E("GET",`/v1/notifications${D}`,f)},async markNotificationRead(f,g){return E("POST",`/v1/notifications/${f}/read`,g,{})},async listReporterFeatureBoard(f){return E("GET","/v1/reporter/feature-board",f)},async voteReporterFeatureBoard(f,g){return E("POST",`/v1/reporter/feature-board/${f}/vote`,g,{})},async postSessionEvent(f){return m("POST","/v1/sdk/session",f,1,"discovery")},async postProductEvents(f){return m("POST","/v1/sdk/events",f,1,"discovery")},async submitActivity(f,g,_){return m("POST","/v1/sdk/activity",{user_id:f,user_traits:_?.userTraits,opted_in:_?.optedIn,reporter_token_hash:_?.reporterTokenHash,..._?.hostJwt?{host_jwt:_.hostJwt}:{},events:g},1,"discovery")},async getMyPoints(f){return m("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(f)}`,void 0,1,"reporter-poll")},async getMyTier(f){return m("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(f)}`,void 0,1,"reporter-poll")},async getMyHistory(f,g){let _=new URLSearchParams({userId:f,...g?.limit?{limit:String(g.limit)}:{}});return m("GET",`/v1/sdk/me/history?${_}`,void 0,1,"reporter-poll")},async getHallOfFame(f=10){return m("GET",`/v1/sdk/hall-of-fame?limit=${f}`,void 0,1,"reporter-poll")},async sendMagicLink(f){return m("POST","/v1/tester/magic-link",{email:f},1,"community")},async linkReporterToken(f,g){return m("POST","/v1/tester/link-reporter",{reporter_token_hash:f},1,"community",{Authorization:`Bearer ${g}`})},async getCrossAppReports(f,g){let _=new URLSearchParams;g?.limit&&_.set("limit",String(g.limit)),g?.offset&&_.set("offset",String(g.offset));let D=_.size?`?${_.toString()}`:"";return m("GET",`/v1/tester/cross-app-reports${D}`,void 0,1,"community",{Authorization:`Bearer ${f}`})},async getMyReputation(f){return m("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${f}`})},async getPublicLeaderboard(f=20){return m("GET",`/v1/public/tester-leaderboard?limit=${f}`,void 0,1,"reporter-poll")},async getTesterStatus(f){return m("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${f}`})}}}function mo(t){return new Promise(e=>setTimeout(e,t))}function go(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function tl(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let i=Date.parse(r);return Number.isNaN(i)?null:Math.max(i-e,0)}function rl(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function gn(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.test(t))return !0}catch{}}return false}function or(t){if(gn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&gn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!gn(e,t.allowUrls)))}function En(...t){return t.find(e=>e!==void 0&&e!=="")}function Se(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ke(t){try{return t()}catch{return}}function Ln(){let t=En(Se("VITE_MUSHI_PROJECT_ID"),Se("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Se("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Se("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.MUSHI_PROJECT_ID)),e=En(Se("VITE_MUSHI_API_KEY"),Se("NEXT_PUBLIC_MUSHI_API_KEY"),Se("NUXT_PUBLIC_MUSHI_API_KEY"),Se("EXPO_PUBLIC_MUSHI_API_KEY"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.MUSHI_API_KEY)),r=En(Se("VITE_MUSHI_API_ENDPOINT"),Se("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var nl=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],il={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function Ho(){let t=Ln(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let s=undefined;return typeof s=="object"&&s!==null?s:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let s of e)for(let u of nl){let d=`${u}${il[s]}`;r&&r[d]?i.push({field:s,key:d,via:"import.meta.env"}):n&&n[d]&&i.push({field:s,key:d,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let s of i)a.push(`[mushi] Found ${s.key} in ${s.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:i,message:a.join(`
2
- `)}}var Eo=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],ol=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","notifications","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function sl(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function Oo(t){let e=sl(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function al(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function No(t){try{if(al()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!ol.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!Eo.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Eo.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var ul=10,ll=2e3,cl=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],dl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Uo(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=ul,maxDescriptionLength:i=ll}=t;function o(s){if(!e)return {passed:true};let u=s.trim();if(u.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(u.length>i)return {passed:false,reason:`Too long (max ${i} characters)`};if(r){for(let p of cl)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(dl.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(s){let u=s.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:a}}var bo={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},pl={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},be={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},hl={debug:be.dim,info:be.green,warn:be.yellow,error:be.red,fatal:`${be.bgRed}${be.white}${be.bold}`};function fl(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function ml(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function gl(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,a=e.slice(11,23),s=hl[r]??"",u=pl[r]??r.toUpperCase(),d=Object.keys(o).length>0?` ${be.dim}${ml(o)}${be.reset}`:"";return `${be.dim}${a}${be.reset} ${s}${u}${be.reset} ${be.cyan}[${n}]${be.reset} ${i}${d}`}function El(t){return JSON.stringify(t)}function bl(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function qo(t,e,r,n,i){let o=e;function a(s,u,d){if(bo[s]<bo[o])return;let p={ts:new Date().toISOString(),level:s,scope:t,msg:u,...r,...d};i(s,n(p));}return {debug:(s,u)=>a("debug",s,u),info:(s,u)=>a("info",s,u),warn:(s,u)=>a("warn",s,u),error:(s,u)=>a("error",s,u),fatal:(s,u)=>a("fatal",s,u),child(s,u){return qo(`${t}:${s}`,o,{...r,...u},n,i)},setLevel(s){o=s;}}}function Tt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,s=(i==="auto"?fl():i)==="json"?El:gl,u=bl(o);return qo(e,r,n,s,u)}var Dn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Dn,setLevel:()=>{}},yl="mushi-mushi-keyring",dt="keys",jo="offline-queue/v1",Ir=null,Mr=null;function vl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Wo(){return new Promise((t,e)=>{let r=indexedDB.open(yl,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(dt)||n.createObjectStore(dt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(dt)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function wl(){let t=await Wo();return new Promise((e,r)=>{let i=t.transaction(dt,"readonly").objectStore(dt).get(jo);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function Sl(t){let e=await Wo();return new Promise((r,n)=>{let i=e.transaction(dt,"readwrite");i.objectStore(dt).put(t,jo),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function Vo(){if(Ir)return Ir;if(Mr)return Mr;if(!vl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Mr=(async()=>{let t=await wl();if(t)return Ir=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Sl(e),Ir=e,e})(),Mr}function yo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function vo(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function xl(t){let e=await Vo(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:yo(r),ct:yo(i)}}function Rl(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function kl(t){let e=await Vo(),r=vo(t.iv),n=vo(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var xe=Tt({scope:"mushi:queue",level:"warn"}),Cl="mushi-mushi",fe="offline-reports",_l=1,bn="mushi_offline_queue",Tl=10,Al=6e4,Il=3e4,Ml=8,Ll=1440*60*1e3;function Ko(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,a=null,s=null,u=null,d=null;async function p(A){let R=new Date().toISOString();if(!i)return {...A,queuedAt:R};try{let $=await xl(A);return {id:A.id,queuedAt:R,payload:$}}catch($){return xe.warn("Offline queue: encryption failed, storing plaintext",{err:String($)}),{...A,queuedAt:R}}}async function h(A){if(k(A))try{return await kl(A.payload)}catch(R){return xe.warn("Offline queue: decrypt failed, dropping row",{err:String(R),id:A.id}),null}return A}function k(A){return !!A.payload&&Rl(A.payload)}function w(A){let R=A.attempts;return typeof R=="number"&&Number.isFinite(R)?R:0}function T(A,R){let $=A.queuedAt;if(!$)return false;let O=Date.parse($);return Number.isNaN(O)?false:R-O>Ll}function b(){return s||(typeof indexedDB<"u"?s="indexeddb":typeof localStorage<"u"?s="localstorage":s="none",s)}function S(){return new Promise((A,R)=>{let $=indexedDB.open(Cl,_l);$.onupgradeneeded=()=>{try{let O=$.result;if(!O)return;O.objectStoreNames.contains(fe)||O.createObjectStore(fe,{keyPath:"id"});}catch{}},$.onsuccess=()=>{let O=$.result;if(!O||!O.objectStoreNames.contains(fe)){s="localstorage";try{O?.close();}catch{}R(new Error("queue object store unavailable"));return}A(O);},$.onerror=()=>{s="localstorage",R($.error);};})}async function L(A){let R=await S(),$=await p(A);return new Promise((O,U)=>{let X=R.transaction(fe,"readwrite");X.objectStore(fe).put($),X.oncomplete=()=>O(),X.onerror=()=>U(X.error);})}async function M(){let A=await S();return new Promise((R,$)=>{let U=A.transaction(fe,"readonly").objectStore(fe).getAll();U.onsuccess=()=>R(U.result),U.onerror=()=>$(U.error);})}async function x(A){let R=await S();return new Promise(($,O)=>{let U=R.transaction(fe,"readwrite");U.objectStore(fe).delete(A),U.oncomplete=()=>$(),U.onerror=()=>O(U.error);})}async function m(A){let R=await S();return new Promise(($,O)=>{let U=R.transaction(fe,"readwrite");U.objectStore(fe).put(A),U.oncomplete=()=>$(),U.onerror=()=>O(U.error);})}async function E(){let A=await S();return new Promise((R,$)=>{let U=A.transaction(fe,"readonly").objectStore(fe).count();U.onsuccess=()=>R(U.result),U.onerror=()=>$(U.error);})}async function f(){let A=await S();return new Promise((R,$)=>{let O=A.transaction(fe,"readwrite");O.objectStore(fe).clear(),O.oncomplete=()=>R(),O.onerror=()=>$(O.error);})}function g(){try{let A=localStorage.getItem(bn);return A?JSON.parse(A):[]}catch{return []}}function _(A){try{localStorage.setItem(bn,JSON.stringify(A));}catch{}}async function D(A){let R=g(),$=await p(A),O=R.findIndex(U=>U.id===A.id);O>=0?R[O]=$:R.push($),_(R);}function v(A){let R=g().filter($=>$.id!==A);_(R);}function K(A){let R=g(),$=R.findIndex(O=>O.id===A.id);$>=0&&(R[$]=A,_(R));}async function Y(A,R){try{A==="indexeddb"?await x(R):v(R);}catch($){xe.debug("Offline queue: row removal failed (will age out)",{id:R,err:String($)});}}async function ne(A,R){try{return A==="indexeddb"?await m(R):K(R),!0}catch($){return xe.debug("Offline queue: row persist failed",{id:R.id,err:String($)}),false}}async function j(){let A=b();if(A==="none")return {backend:A,rows:[]};if(A==="indexeddb")try{return {backend:A,rows:await M()}}catch{s="localstorage";}return {backend:"localstorage",rows:g()}}async function ke(A){let R=b();if(R==="none")return xe.debug("Offline queue: no storage backend, dropping report",{id:A.id}),R;if(R==="indexeddb")try{return await L(A),R}catch{s="localstorage";}return await D(A),"localstorage"}async function He(A){if(!e)return;if(await re()>=r){xe.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await ke(A);}function me(A){return Math.min(1e3*2**A+Math.random()*500,Al)}function J(A){return new Promise(R=>setTimeout(R,A))}async function F(A){let{backend:R,rows:$}=await j(),O=$,U=Date.now(),X=[];for(let he of O)if(T(he,U)){let ie=he.id;await Y(R,ie),xe.debug("Offline queue: evicting stale report",{id:ie});}else X.push(he);O=X;let Xe=O.slice(0,Tl),Oe=0,it=0;for(let he=0;he<Xe.length;he++){let ie=Xe[he],ge=ie.id,Nt=await h(ie);if(!Nt){await Y(R,ge),it++;continue}let z=await A.submitReport(Nt);if(z.ok){await Y(R,ge),Oe++;continue}if(it++,z.error?.code==="CIRCUIT_OPEN"){xe.debug("Offline queue: circuit open, deferring the rest of the batch",{id:ge,remaining:Xe.length-he});break}let Ut=z.error?.code==="HTTP_400"||z.error?.code==="HTTP_413"||z.error?.code==="HTTP_422"||z.error?.code==="INGEST_ERROR"||z.error?.code==="VALIDATION_ERROR"||z.error?.code==="PAYLOAD_TOO_LARGE"||z.error?.code==="SERIALIZE_FAILED"||typeof z.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(z.error.message),ot=!Ut&&(z.error?.code==="NETWORK_ERROR"||z.error?.code==="HTTP_403"||z.error?.code==="HTTP_429"||z.error?.code==="HTTP_502"||z.error?.code==="HTTP_503"||z.error?.code==="HTTP_504"||typeof z.error?.code=="string"&&z.error.code.startsWith("HTTP_5"));if(Ut)await Y(R,ge);else {let st=w(ie)+1;st>=Ml?(await Y(R,ge),xe.warn("Offline queue: giving up on report after repeated failures",{id:ge,attempts:st,code:z.error?.code})):(ie.attempts=st,await ne(R,ie)?xe.debug("Offline queue: delivery failed, will retry",{id:ge,attempts:st,code:z.error?.code,classified:ot?"transient":"unclassified"}):(await Y(R,ge),xe.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ge,code:z.error?.code})));}he<Xe.length-1&&await J(me(he));}return {sent:Oe,failed:it}}function G(A){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return d||(d=u.catch(()=>{}).then(()=>(d=null,G(A)))),d;let R=F(A).finally(()=>{u===R&&(u=null);});return u=R,R}async function re(){if(b()==="indexeddb")try{return await E()}catch{s="localstorage";}return g().length}async function Ce(){if(b()==="indexeddb")try{await f();}catch{}try{localStorage.removeItem(bn);}catch{}}function _e(A){if(!e||!n||typeof window>"u")return;o&&Le();let R=()=>{navigator.onLine&&G(A).catch($=>{xe.warn("Offline queue auto-flush failed",{err:String($)});});};window.addEventListener("online",R),a=setInterval(()=>{re().then($=>{$>0&&R();});},Il),o=()=>{window.removeEventListener("online",R),a&&(clearInterval(a),a=null);};}function Le(){o?.(),o=null;}return {enqueue:He,flush:G,size:re,clear:Ce,startAutoSync:_e,stopAutoSync:Le}}function Pn(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Pl(t);let i=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,s=!!o?.cordova,u=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",d=a||s||u?{...a?{capacitor:true}:{},...s?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:i?{effectiveType:i.effectiveType,downlink:i.downlink,rtt:i.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Dl(r),userAgentData:Fl(t),screen:$l(n,e),prefersColorScheme:Hl(e),prefersReducedMotion:Re(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Re(e,"(prefers-reduced-data: reduce)"),prefersContrast:Ol(e),forcedColors:Re(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Nl(e),documentTitle:r?.title?.slice(0,200),buildId:Ul(r),pageLoadTiming:ql(e),...d?{native:d}:{}}}function Dl(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var Ie=null,wo=false;function Pl(t){if(wo)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(wo=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ie=r;}).catch(()=>{}));}function Bl(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function Fl(t){let e=t?.userAgentData;if(!e&&!Ie)return;let r=Ie?.fullVersionList,n=Bl(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),Ie?.platformVersion&&(i.osVersion=Ie.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),Ie?.model&&(i.model=Ie.model),Ie?.architecture&&(i.architecture=Ie.architecture),Ie?.bitness&&(i.bitness=Ie.bitness),Object.keys(i).length===0?void 0:i}function $l(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Re(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Hl(t){if(t?.matchMedia)return Re(t,"(prefers-color-scheme: dark)")?"dark":Re(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Ol(t){if(t?.matchMedia)return Re(t,"(prefers-contrast: more)")?"more":Re(t,"(prefers-contrast: less)")?"less":Re(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Nl(t){if(t?.matchMedia){if(Re(t,"(display-mode: fullscreen)"))return "fullscreen";if(Re(t,"(display-mode: standalone)"))return "standalone";if(Re(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Re(t,"(display-mode: browser)"))return "browser"}}function Ul(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function ql(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,i={};return r.domContentLoadedEventEnd>0&&(i.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(i.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(i.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(i.navigationType=r.type),Object.keys(i).length===0?void 0:i}var yn="mushi_reporter_token";function jl(t){return `mushi:reporter-token:${t}`}function So(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function vn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function xo(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function te(t){if(!t){let o=vn(yn);if(o)return o;let a=So();return xo(yn,a),a}let e=jl(t),r=vn(e);if(r)return r;let i=vn(yn)??So();return xo(e,i),i}function Bn(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var Ro="mushi_fingerprint_hash";function Wl(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Vl(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function zo(){if(typeof localStorage<"u"){let n=localStorage.getItem(Ro);if(n)return n}let t=Wl(),e=JSON.stringify(t),r=await Vl(e);if(typeof localStorage<"u")try{localStorage.setItem(Ro,r);}catch{}return r}var ko="mushi_session_id",Lr=null;function Et(){if(Lr)return Lr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(ko);if(e)return Lr=e,e}let t=Kl();if(Lr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(ko,t);}catch{}return t}function Kl(){return `ms_${Date.now().toString(36)}_${zl()}`}function zl(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var Gl=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function Go(t){return "mushi_events_consent_"+t}var xn=new Set;function Yl(){if(typeof navigator>"u")return false;let t=navigator;if(t.globalPrivacyControl===true)return true;let e=typeof window<"u"?window.doNotTrack:void 0,r=t.doNotTrack??t.msDoNotTrack??e;return r==="1"||r==="yes"}function Xl(){return typeof navigator>"u"?false:navigator.webdriver===true?true:Gl.test(navigator.userAgent??"")}function Yo(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&Yl()?"dnt":t?.excludeBots!==false&&Xl()?"automation":null}function Jl(t){if(!t)return null;try{let e=localStorage.getItem(Go(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function Ql(t,e){if(t)try{localStorage.setItem(Go(t),e);}catch{}}function Xo(t,e){let r=Jl(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function Zl(t,e){Ql(t,e);for(let r of [...xn])try{r(e);}catch{}}function Jo(t){return xn.add(t),()=>{xn.delete(t);}}var ec=6e4,Xt=null,Qo,Fn=null,Zo=null,$n=0,Dr=null,Jt=false,Qt=false,Rn=false,kn=null;function tc(){return new Date().toISOString()}function mt(){return typeof window>"u"?"":window.location.pathname}function rc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function nc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Zt(t,e){return {kind:t,session_id:Et(),ts:tc(),page_view_count:$n,reporter_token_hash:Zo,user_id_hash:Fn,user_agent:nc(),sdk_version:Qo,...e}}function er(t){!Xt||!Qt||Xt.postSessionEvent(t).catch(()=>{});}function Cn(t){Qt&&($n+=1,er(Zt("page_view",{route:t})));}function Co(){Qt||!Jt||(Qt=true,Rn||(Rn=true,$n=1,er(Zt("session_start",{route:mt(),referrer:rc()}))),Dr=setInterval(()=>{er(Zt("session_heartbeat",{route:mt()}));},ec));}function es(){Qt=false,Dr!=null&&(clearInterval(Dr),Dr=null);}function ts(t){if(Jt||typeof window>"u"||Yo(t.analytics)!==null)return;Jt=true,Xt=t.client,Qo=t.sdkVersion,Zo=t.reporterToken??t.reporterTokenHash??null,Fn=t.userIdHash??null;let e=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&er(Zt("session_end",{route:mt()}));};typeof document<"u"&&document.addEventListener("visibilitychange",e,{passive:true}),window.addEventListener("pagehide",()=>{er(Zt("session_end",{route:mt()}));},{passive:true}),kn=Jo(r=>{r==="granted"?Co():es();}),Xo(t.projectId??"",t.analytics)==="granted"&&Co();}function Hn(t){!Jt||!Xt||Cn(mt());}function rs(t){Fn=t;}function ns(){es(),kn?.(),kn=null,Jt=false,Rn=false,Xt=null;}var oc=/^[a-z][a-z0-9_]{1,63}$/,pt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},sc="$",ac=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function lc(t){return typeof t=="string"&&oc.test(t)}function To(t,e={}){let r={},n=[];if(!t||typeof t!="object"||Array.isArray(t))return {properties:r,dropped:n};let i=new Set(e.allowlist??[]),o=0;for(let[a,s]of Object.entries(t)){if(o>=pt.maxKeys){n.push(a);continue}let u=a.slice(0,pt.maxKeyLength);if(u.startsWith(sc)&&!e.allowReserved){n.push(u);continue}if(ac.test(u)&&!i.has(u)){n.push(u);continue}let d;if(s===null||typeof s=="boolean")d=s;else if(typeof s=="number")d=Number.isFinite(s)?s:null;else if(typeof s=="string"){let p=s.slice(0,pt.maxValueLength);d=e.scrub?e.scrub(p):p;}else if(s instanceof Date)d=s.toISOString();else {n.push(u);continue}r[u]=d,o+=1;}return {properties:r,dropped:n}}function cc(t){try{return JSON.stringify(t).length<=pt.maxBytes}catch{return false}}var Fr=null,tr="",ht=null,Or=null,On=null,is,et=Nn(),_n,Tn,Pe=[],kt=[],ye="granted",rr=true,Pr=null,gt=false,wn=false,ft=false,An=null,dc=50,os=200,pc=1440*60*1e3;function Nn(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function ss(){return new Date().toISOString()}function $r(){return "mushi_events_spill_"+tr}function hc(t){return t===void 0||t===429||t>=500}function In(){return "mushi_analytics_id_"+tr}function fc(){try{let t=localStorage.getItem(In());if(t)return t}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function mc(){if(ht)try{localStorage.getItem(In())!==ht&&localStorage.setItem(In(),ht);}catch{}}function gc(t){let e=2166136261;for(let r=0;r<t.length;r+=1)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return (e>>>0)/4294967296}function Mn(){try{let t=localStorage.getItem($r());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>pc?(localStorage.removeItem($r()),[]):Array.isArray(e.events)?e.events.slice(0,os):[]}catch{return []}}function Ct(t){try{if(t.length===0){localStorage.removeItem($r());return}localStorage.setItem($r(),JSON.stringify({at:Date.now(),events:t.slice(-os)}));}catch{}}function as(){let t=Mn();return t.length>0&&Ct([]),t}function Ec(t){return {anon_id:ht,user_id:Or,user_traits:On,session_id:Tn?Tn():null,sdk_version:is,surface:et.surface,events:t}}async function tt(){if(!Fr||wn||ye!=="granted"||Pe.length===0&&!ft)return;wn=true,mc();let t=Pe.splice(0,pt.maxServerBatch);ft&&(t.unshift({name:"identify",ts:ss(),properties:{}}),ft=false);try{let e=await Fr.postProductEvents(Ec(t));e.ok?Ct([]):hc(e.error?.status)&&Ct([...Mn(),...t.filter(r=>r.name!=="identify")]);}catch{Ct([...Mn(),...t.filter(e=>e.name!=="identify")]);}finally{wn=false;}Pe.length>=pt.maxClientBatch&&tt();}function bc(t){return ye==="denied"?false:ye==="pending"?kt.length>=dc?false:(kt.push(t),true):(Pe.push(t),Pe.length>=pt.maxClientBatch&&tt(),true)}function yc(t){if(t==="denied"){ye="denied",Pe=[],kt=[],ft=false,Ct([]);return}let e=ye==="pending";ye="granted",e&&(Pe.push(...as(),...kt),kt=[]),(Pe.length>0||ft)&&tt();}function vc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function us(){return !gt||ye==="denied"?null:ht}function ls(t){if(gt||typeof window>"u")return;let e=t.config??{};if(et={...Nn(),...vc(e),propertyAllowlist:e.propertyAllowlist??[]},tr=t.projectId,Yo(e)!==null)return;gt=true,Fr=t.client,ht=t.anonId??fc(),Or=t.userId??null,is=t.sdkVersion,_n=t.scrub,Tn=t.getSessionId;let r=Math.min(1,Math.max(0,et.sampleRate));if(rr=r>=1?true:r<=0?false:gc(ht??"anon")<r,!rr)return;ye=Xo(tr,e),ye==="granted"?Pe.push(...as()):ye==="denied"&&Ct([]),An=Jo(yc);let n=Math.max(1e3,et.flushIntervalMs);Pr=setInterval(()=>{tt();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&tt();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{tt();},{passive:true}),et.autoPageviews&&wc();}function _t(t,e,r){if(!gt||!rr||!lc(t))return false;let{properties:n}=To(e,{allowlist:et.propertyAllowlist,scrub:_n}),i=n;if(r?.reserved){let{properties:o}=To(r.reserved,{allowReserved:true,scrub:_n});i={...n,...o};}return i.$surface=et.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),cc(i)?bc({name:t,ts:r?.ts??ss(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function cs(t){gt||(ye=t),Zl(tr,t);}function ds(t,e){Or=t,On=e??null,!(!gt||!rr||!t||ye==="denied")&&(ft=true,ye==="granted"&&tt());}function ps(){return tt()}function hs(){Pr!=null&&(clearInterval(Pr),Pr=null),An?.(),An=null,gt=false,Fr=null,Pe=[],kt=[],ye="granted",rr=true,ft=false,Or=null,On=null,et=Nn();}var Ao=false;function wc(){if(Ao||typeof history>"u")return;Ao=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return _t("page_view"),r},window.addEventListener("popstate",()=>{_t("page_view");},{passive:true});}var Sc=10,xc=1,Rc=5e3;function fs(t={}){let{maxBurst:e=Sc,refillRate:r=xc,refillIntervalMs:n=Rc}=t,i=e,o=Date.now();function a(){let p=Date.now(),h=p-o,k=Math.floor(h/n);k>0&&(i=Math.min(e,i+k*r),o=p);}function s(){return a(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function d(){return a(),i}return {tryConsume:s,reset:u,availableTokens:d}}var kc={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},ms=kc.patterns,Cc=ms.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),_c=ms.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Un(t={}){let e={..._c,...t},r=Cc.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:s,replacement:u}of r)a=a.replace(new RegExp(s.source,s.flags),u);return a}function i(o,a){let s={...o};for(let u of a)typeof s[u]=="string"&&(s[u]=n(s[u]));return s}return {scrub:n,scrubObject:i}}var Tc=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Ac=/^(?:key|code|sig)$/i;function Ic(t){let e=t;try{e=decodeURIComponent(t);}catch{}return Tc.test(e)||Ac.test(e)}function Mc(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let i=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Ic(i))return `${i}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let s=e(a);return s!==a?`${i}=${encodeURIComponent(s)}`:r}).join("&")}function sr(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Un(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+Mc(o.slice(a+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var Lc=50,Dc=500;function gs(t={}){let e=Math.max(1,t.max??Lc),r=Math.max(50,t.maxMessageLength??Dc),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),a=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,s={timestamp:o,category:i.category,level:i.level??"info",message:a??"",...i.data?{data:i.data}:{}};for(n.push(s);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Io=8*1024,Pc=1e3;function Es(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,Io):void 0,i=t.cause;return {name:e,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,Pc)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Io):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var de={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},Bc={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},qn={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},Nr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},bs="#FAF7F0",ys="#ffffff";var jn={light:"#9A2A1E",dark:"#7A1F15"},Wn={light:"#B52F1F",dark:"#C4321E"},vs={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Vn(t){return t==="dark"?Bc:de}var ws={comfy:12},Ss={control:4},Ur={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace"},At={base:99999,banner:99998,panel:1e5,overlay:2147483647},qr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},xs={instant:120,panel:300};var It={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Mo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Rs(t,e="",r=""){let n=Vn(t),i=Mo(e),o=Mo(r),a=i||n.accent,s=i?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,u=o||n.accentInk;return {accent:a,accentWash:s,accentInk:u}}function Fc(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ks(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Fc(e[1]),n=JSON.parse(r),i=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !i||!o?null:{projectId:i,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var $c=new Set(["kensaur.us","www.kensaur.us"]),Hc={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},Oc={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Nc=["www.google.com","icons.duckduckgo.com","icon.horse"];function Cs(t){try{let e=new URL(t).hostname.toLowerCase();return Nc.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Uc(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function _s(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(jc(t.repo_url)),r(Hc[t.project_slug.toLowerCase()]);let n=t.sdk_origin?qc(t.sdk_origin):null;return n&&!$c.has(n)&&r(n),e}function Ts(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=a=>{!a||r.has(a)||Cs(a)||(r.add(a),n.push(a));},o=Oc[t.project_slug.toLowerCase()];o&&i(o);for(let a of _s(t))for(let s of Uc(a,e))i(s);return n}function qc(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function jc(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(i)||r==="github.com"&&i.endsWith(".github.io")?i:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function As(t){return _s(t)[0]??null}function Is(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let i=e.getContext("2d");if(!i)return !1;i.drawImage(t,0,0);let{data:o}=i.getImageData(0,0,r,n),a=0,s=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],k=o[p+1],w=o[p+2];if(o[p+3]<128)continue;a++;let b=Math.max(h,k,w),S=Math.min(h,k,w),L=b-S;u=Math.max(u,L),s+=L;}return a===0?!0:s/a<14&&u<24}catch{return Cs(t.src)}}function Ms(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function Ls(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&Wc(n))return n}return null}function Wc(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function Ps(t,e=Lo){if(!t.startsWith("data:image/")||Ds(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let a=document.createElement("canvas"),s=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));a.width=s,a.height=u;let d=a.getContext("2d");if(d){d.drawImage(r,0,0,s,u);for(let p of n){let h=a.toDataURL("image/jpeg",p);if(Ds(h)<=e)return h}}}return null}function Ds(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var jr="mushi-assistant-session-v1";function Bs(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(jr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let a of n){if(!a||typeof a!="object")continue;let s=a;if(s.role!=="user"&&s.role!=="assistant"||typeof s.text!="string")continue;let u={role:s.role,text:s.text};if(Array.isArray(s.options)){let d=s.options.filter(p=>typeof p=="string");d.length&&(u.options=d);}s.offerReport===!0&&(u.offerReport=!0),i.push(u);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:i,threadId:o}}catch{return null}}function Fs(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(jr);return}sessionStorage.setItem(jr,JSON.stringify(t));}catch{}}function $s(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(jr);}catch{}}var Hs="Feature request";function Os(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let i=Math.floor(n/60);if(i<60)return `${i}m ago`;let o=Math.floor(i/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let s=Math.floor(a/7);return s<5?`${s}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var Vc="https://kensaur.us/mushi-mushi/",Kc="utm_source=widget&utm_medium=powered-by";function Ns(t){let e=`${Vc}?${Kc}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function Us(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function qs(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function js(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function Ws(t,e,r){if(t==="banner")return true;if(t==="console-only"||t==="off")return false;if(e)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Mt(t,e){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),e);t.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var Lt=15e3,Wr=4e3;function Vs(t,e){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return t.toLocaleString(e,r)}catch{return t.toLocaleString(void 0,r)}}function bt(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Ks(t){let e=t.appDomain??As({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=bt(Ms(t.appName)),n=Ts({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${bt(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${bt(e??t.appName)}">
3
- <img class="mushi-app-icon-img" src="${bt(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1
+ (function(){'use strict';var ku=Object.defineProperty;var qe=(t,e)=>()=>(t&&(e=t(t=0)),e);var Kt=(t,e)=>{for(var r in e)ku(t,r,{get:e[r],enumerable:true});};function Cu(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function Zi(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function zt(t,e,r=""){let n=Cu(t),i=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,s="",u=n?`length=${i}`:`type=${typeof t}`,p=a+"expected Uint8Array"+s+", got "+u;throw n?new RangeError(p):new TypeError(p)}return t}function eo(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(Zi(t.outputLen),Zi(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function xt(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function yr(t,e){zt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function je(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function vr(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ie(t,e){return t<<32-e|t>>>e}function st(t,e={}){let r=(i,o)=>t(o).update(i).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>t(i),Object.assign(r,e),Object.freeze(r)}var at,wr=qe(()=>{at=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function to(t,e,r){return t&e^~t&r}function ro(t,e,r){return t&e^t&r^e&r}var Gt,We,Ve,oe,se,no=qe(()=>{wr();Gt=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(e,r,n,i){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(e),this.view=vr(this.buffer);}update(e){xt(this),zt(e);let{view:r,buffer:n,blockLen:i}=this,o=e.length;for(let a=0;a<o;){let s=Math.min(i-this.pos,o-a);if(s===i){let u=vr(e);for(;i<=o-a;a+=i)this.process(u,a);continue}n.set(e.subarray(a,a+s),this.pos),this.pos+=s,a+=s,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:a}=this;r[a++]=128,je(this.buffer.subarray(a)),this.padOffset>i-a&&(this.process(n,0),a=0);for(let h=a;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let s=vr(e),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let p=u/4,d=this.get();if(p>d.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<p;h++)s.setUint32(4*h,d[h],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:a,pos:s}=this;return e.destroyed=a,e.finished=o,e.length=i,e.pos=s,i%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},We=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ve=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),se=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function _u(t,e=false){return e?{h:Number(t&Sr),l:Number(t>>io&Sr)}:{h:Number(t>>io&Sr)|0,l:Number(t&Sr)|0}}function oo(t,e=false){let r=t.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:s}=_u(t[o],e);[n[o],i[o]]=[a,s];}return [n,i]}function De(t,e,r,n){let i=(e>>>0)+(n>>>0);return {h:t+r+(i/2**32|0)|0,l:i|0}}var Sr,io,gn,En,ut,lt,Yt,Xt,so,ao,uo,lo,co,po,ho=qe(()=>{Sr=BigInt(4294967295),io=BigInt(32);gn=(t,e,r)=>t>>>r,En=(t,e,r)=>t<<32-r|e>>>r,ut=(t,e,r)=>t>>>r|e<<32-r,lt=(t,e,r)=>t<<32-r|e>>>r,Yt=(t,e,r)=>t<<64-r|e>>>r-32,Xt=(t,e,r)=>t>>>r-32|e<<64-r;so=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),ao=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,uo=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),lo=(t,e,r,n,i)=>e+r+n+i+(t/2**32|0)|0,co=(t,e,r,n,i)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(i>>>0),po=(t,e,r,n,i,o)=>e+r+n+i+o+(t/2**32|0)|0;});var bn={};Kt(bn,{_SHA224:()=>kr,_SHA256:()=>Rr,_SHA384:()=>_r,_SHA512:()=>Cr,_SHA512_224:()=>Tr,_SHA512_256:()=>Ar,sha224:()=>Du,sha256:()=>Lu,sha384:()=>Bu,sha512:()=>Pu,sha512_224:()=>$u,sha512_256:()=>Fu});var Au,Je,xr,Rr,kr,fo,Iu,Mu,Qe,Ze,Rt,Cr,_r,le,ce,Tr,Ar,Lu,Du,Pu,Bu,Fu,$u,yn=qe(()=>{no();ho();wr();Au=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Je=new Uint32Array(64),xr=class extends Gt{constructor(e){super(64,e,8,false);}get(){let{A:e,B:r,C:n,D:i,E:o,F:a,G:s,H:u}=this;return [e,r,n,i,o,a,s,u]}set(e,r,n,i,o,a,s,u){this.A=e|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=a|0,this.G=s|0,this.H=u|0;}process(e,r){for(let h=0;h<16;h++,r+=4)Je[h]=e.getUint32(r,false);for(let h=16;h<64;h++){let k=Je[h-15],S=Je[h-2],T=Ie(k,7)^Ie(k,18)^k>>>3,b=Ie(S,17)^Ie(S,19)^S>>>10;Je[h]=b+Je[h-7]+T+Je[h-16]|0;}let{A:n,B:i,C:o,D:a,E:s,F:u,G:p,H:d}=this;for(let h=0;h<64;h++){let k=Ie(s,6)^Ie(s,11)^Ie(s,25),S=d+k+to(s,u,p)+Au[h]+Je[h]|0,b=(Ie(n,2)^Ie(n,13)^Ie(n,22))+ro(n,i,o)|0;d=p,p=u,u=s,s=a+S|0,a=o,o=i,i=n,n=S+b|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,a=a+this.D|0,s=s+this.E|0,u=u+this.F|0,p=p+this.G|0,d=d+this.H|0,this.set(n,i,o,a,s,u,p,d);}roundClean(){je(Je);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),je(this.buffer);}},Rr=class extends xr{A=We[0]|0;B=We[1]|0;C=We[2]|0;D=We[3]|0;E=We[4]|0;F=We[5]|0;G=We[6]|0;H=We[7]|0;constructor(){super(32);}},kr=class extends xr{A=Ve[0]|0;B=Ve[1]|0;C=Ve[2]|0;D=Ve[3]|0;E=Ve[4]|0;F=Ve[5]|0;G=Ve[6]|0;H=Ve[7]|0;constructor(){super(28);}},fo=oo(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Iu=fo[0],Mu=fo[1],Qe=new Uint32Array(80),Ze=new Uint32Array(80),Rt=class extends Gt{constructor(e){super(128,e,16,false);}get(){let{Ah:e,Al:r,Bh:n,Bl:i,Ch:o,Cl:a,Dh:s,Dl:u,Eh:p,El:d,Fh:h,Fl:k,Gh:S,Gl:T,Hh:b,Hl:v}=this;return [e,r,n,i,o,a,s,u,p,d,h,k,S,T,b,v]}set(e,r,n,i,o,a,s,u,p,d,h,k,S,T,b,v){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=a|0,this.Dh=s|0,this.Dl=u|0,this.Eh=p|0,this.El=d|0,this.Fh=h|0,this.Fl=k|0,this.Gh=S|0,this.Gl=T|0,this.Hh=b|0,this.Hl=v|0;}process(e,r){for(let R=0;R<16;R++,r+=4)Qe[R]=e.getUint32(r),Ze[R]=e.getUint32(r+=4);for(let R=16;R<80;R++){let m=Qe[R-15]|0,g=Ze[R-15]|0,f=ut(m,g,1)^ut(m,g,8)^gn(m,g,7),E=lt(m,g,1)^lt(m,g,8)^En(m,g,7),C=Qe[R-2]|0,D=Ze[R-2]|0,w=ut(C,D,19)^Yt(C,D,61)^gn(C,D,6),G=lt(C,D,19)^Xt(C,D,61)^En(C,D,6),Y=uo(E,G,Ze[R-7],Ze[R-16]),ne=lo(Y,f,w,Qe[R-7],Qe[R-16]);Qe[R]=ne|0,Ze[R]=Y|0;}let{Ah:n,Al:i,Bh:o,Bl:a,Ch:s,Cl:u,Dh:p,Dl:d,Eh:h,El:k,Fh:S,Fl:T,Gh:b,Gl:v,Hh:L,Hl:A}=this;for(let R=0;R<80;R++){let m=ut(h,k,14)^ut(h,k,18)^Yt(h,k,41),g=lt(h,k,14)^lt(h,k,18)^Xt(h,k,41),f=h&S^~h&b,E=k&T^~k&v,C=co(A,g,E,Mu[R],Ze[R]),D=po(C,L,m,f,Iu[R],Qe[R]),w=C|0,G=ut(n,i,28)^Yt(n,i,34)^Yt(n,i,39),Y=lt(n,i,28)^Xt(n,i,34)^Xt(n,i,39),ne=n&o^n&s^o&s,W=i&a^i&u^a&u;L=b|0,A=v|0,b=S|0,v=T|0,S=h|0,T=k|0,{h,l:k}=De(p|0,d|0,D|0,w|0),p=s|0,d=u|0,s=o|0,u=a|0,o=n|0,a=i|0;let Te=so(w,Y,W);n=ao(Te,D,G,ne),i=Te|0;}(({h:n,l:i}=De(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:a}=De(this.Bh|0,this.Bl|0,o|0,a|0),{h:s,l:u}=De(this.Ch|0,this.Cl|0,s|0,u|0),{h:p,l:d}=De(this.Dh|0,this.Dl|0,p|0,d|0),{h,l:k}=De(this.Eh|0,this.El|0,h|0,k|0),{h:S,l:T}=De(this.Fh|0,this.Fl|0,S|0,T|0),{h:b,l:v}=De(this.Gh|0,this.Gl|0,b|0,v|0),{h:L,l:A}=De(this.Hh|0,this.Hl|0,L|0,A|0),this.set(n,i,o,a,s,u,p,d,h,k,S,T,b,v,L,A);}roundClean(){je(Qe,Ze);}destroy(){this.destroyed=true,je(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Cr=class extends Rt{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(64);}},_r=class extends Rt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},le=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ce=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Tr=class extends Rt{Ah=le[0]|0;Al=le[1]|0;Bh=le[2]|0;Bl=le[3]|0;Ch=le[4]|0;Cl=le[5]|0;Dh=le[6]|0;Dl=le[7]|0;Eh=le[8]|0;El=le[9]|0;Fh=le[10]|0;Fl=le[11]|0;Gh=le[12]|0;Gl=le[13]|0;Hh=le[14]|0;Hl=le[15]|0;constructor(){super(28);}},Ar=class extends Rt{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(32);}},Lu=st(()=>new Rr,at(1)),Du=st(()=>new kr,at(4)),Pu=st(()=>new Cr,at(3)),Bu=st(()=>new _r,at(2)),Fu=st(()=>new Ar,at(6)),$u=st(()=>new Tr,at(5));});var mo={};Kt(mo,{_HMAC:()=>Jt,hmac:()=>Ou});var Jt,Ou,go=qe(()=>{wr();Jt=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(e,r){if(eo(e),zt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),je(i);}update(e){return xt(this),this.iHash.update(e),this}digestInto(e){xt(this),yr(e,this),this.finished=true;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:a,outputLen:s}=this;return e=e,e.finished=i,e.destroyed=o,e.blockLen=a,e.outputLen=s,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Ou=(()=>{let t=((e,r,n)=>new Jt(e,r).update(n).digest());return t.create=(e,r)=>new Jt(e,r),t})();});function pd(t){let e=(t??"").toLowerCase().split(/[-_]/)[0];return rd.includes(e)?e:"en"}function bt(t="en"){return dd[pd(t)]}function ur(t,e={}){return t.replace(/\{(\w+)\}/g,(r,n)=>{let i=e[n];return i==null?"":String(i)})}function hd(t){return td.includes(t)}function fd(t){let e=(t.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return e==="feature"||e==="feature_request"||e==="idea"}function Ft(t,e="en"){let r=bt(e),n=(t.status??"").trim(),i=hd(n)?nd[n]:"received",o=t.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(t.awaiting_reporter||t.awaiting_reporter_at)&&ea.has(i)&&(i="waiting");let s=fd(t),u=r.status[i],p=r.detail[i];s&&(i==="received"?u=r.idea.received:i==="reviewing"||i==="reviewing_again"?u=r.idea.reviewing:i==="fixing"?u=r.idea.fixing:i==="fixed_version"?u=r.idea.shippedVersion:(i==="fixed_next"||i==="fixed")&&(u=r.idea.shipped));let d=t.closed_reason??null;i==="closed"&&(p=d&&d!=="spam"&&d in r.closedReason?r.closedReason[d]:r.closedReason.none);let h=t.group_bucket??"none",k=ea.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:ur(u,{version:o}),tone:id[i],detail:ur(p,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:k,hidden:i==="closed"&&d==="spam"}}function md(t,e={},r="en"){let n=bt(r);if(t==="comment")return e.text??"";if(t==="closed"){let i=e.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return t==="reporter_comment"?e.text??n.timeline.reporter_comment:ur(n.timeline[t],{text:e.text,version:e.version})}function Xn(t){return t.kind==="comment"||t.kind==="reporter_comment"||t.kind==="info_requested"}function ta(t,e="en"){return t.custom||!od.includes(t.kind)?t.text:md(t.kind,{text:t.body??null,version:t.version??null,closed_reason:t.closed_reason??null},e)}function ra(t,e="en"){let r=bt(e).ui,n=t.unread_total===1?t.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(t.unread_total))}function na(t){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(t.trim())}var td,rd,nd,id,od,sd,ad,ud,ld,cd,dd,ea,Gr=qe(()=>{td=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],rd=["en","ja","es","th","zh"],nd={new:"received",pending:"received",submitted:"received",queued:"received",classified:"reviewing",triaged:"reviewing",grouped:"reviewing",reopened:"reviewing_again",fixing:"fixing",in_progress:"fixing",verified:"verified",fixed:"fixed_next",resolved:"fixed",dismissed:"closed"},id={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},od=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],sd={status:{received:"Received",reviewing:"Looking into it",reviewing_again:"Looking into it again",fixing:"Fix in progress",verified:"Confirmed fixed",fixed_next:"Fixed \u2014 coming in the next update",fixed_version:"Fixed in v{version}",fixed:"Fixed",closed:"Closed",waiting:"Waiting on you"},detail:{received:"We got it.",reviewing:"The developer has it on their list.",reviewing_again:"Thanks \u2014 we reopened it.",fixing:"A fix is being worked on.",verified:"You confirmed the fix. Thank you!",fixed_next:"It ships in the next release.",fixed_version:"Update to v{version}. Does it work for you now?",fixed:"Does it work for you now?",closed:"Closed.",waiting:"The developer asked a question \u2014 reply below."},idea:{received:"Thanks for the idea",reviewing:"Under consideration",fixing:"Being built",shipped:"Shipped",shippedVersion:"Shipped in v{version}"},closedReason:{duplicate:"Same as an earlier report \u2014 we'll update you there.",not_reproducible:"We couldn't reproduce it. Reply if it happens again.",wont_fix:"We decided not to change this.",working_as_intended:"This is expected behaviour.",none:"Closed."},others:{few:"You and a few others reported this",many:"Many people reported this"},timeline:{received:"You reported this",reviewing:"The developer is looking into it",duplicate_linked:"Same as an existing report \u2014 we'll update you there",info_requested:"The developer asked: {text}",reporter_comment:"You",fix_started:"A fix is in progress",fixed:"Fixed \u2014 coming in the next update",released:"Shipped in v{version} \u2014 update to get it",verified:"You confirmed it's fixed",reopened:"Reopened"},categories:{bug:"Bug",slow:"Slow",visual:"Looks wrong",confusing:"Confusing",idea:"Idea"},ui:{yes:"Yes",notYet:"Not yet",empty:"Nothing yet \u2014 your reports will show up here with updates.",loadError:"Couldn't load updates",retry:"Retry",sending:"Sending\u2026",sent:"Sent",sendFailed:"Failed",noReplies:"No developer replies yet.",you:"You",developer:"Developer",addWords:"Add a few words",developerReplied:"Developer replied: \u201C{text}\u201D",updates:"{n} updates on your reports",receipt:"Sent. We'll let you know here when there's news.",trackIt:"Track it",done:"Done",emailOptIn:"Get updates by email",emailPlaceholder:"you@example.com",emailSubmit:"Email me updates",emailCheckInbox:"Check your inbox and tap the link to confirm.",emailInvalid:"That does not look like an email address.",emailFailed:"Couldn't set up email updates. Try again later.",toastReplied:"The developer replied to your report",toastFixed:"Your bug is fixed",view:"View"}},ad={status:{received:"\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",reviewing:"\u78BA\u8A8D\u4E2D",reviewing_again:"\u518D\u78BA\u8A8D\u4E2D",fixing:"\u4FEE\u6B63\u4E2D",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u6E08\u307F",fixed_next:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",fixed_version:"v{version} \u3067\u4FEE\u6B63\u6E08\u307F",fixed:"\u4FEE\u6B63\u6E08\u307F",closed:"\u7D42\u4E86",waiting:"\u3042\u306A\u305F\u306E\u8FD4\u4FE1\u5F85\u3061"},detail:{received:"\u5831\u544A\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\u3002",reviewing:"\u958B\u767A\u8005\u304C\u5BFE\u5FDC\u30EA\u30B9\u30C8\u306B\u5165\u308C\u307E\u3057\u305F\u3002",reviewing_again:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\u3002\u518D\u5EA6\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",fixing:"\u4FEE\u6B63\u306B\u53D6\u308A\u7D44\u3093\u3067\u3044\u307E\u3059\u3002",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3044\u305F\u3060\u304D\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01",fixed_next:"\u6B21\u306E\u30EA\u30EA\u30FC\u30B9\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",fixed_version:"v{version} \u306B\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",fixed:"\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",closed:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002",waiting:"\u958B\u767A\u8005\u304B\u3089\u8CEA\u554F\u304C\u3042\u308A\u307E\u3059\u3002\u4E0B\u304B\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},idea:{received:"\u30A2\u30A4\u30C7\u30A2\u3092\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059",reviewing:"\u691C\u8A0E\u4E2D",fixing:"\u958B\u767A\u4E2D",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",shippedVersion:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9\u6E08\u307F"},closedReason:{duplicate:"\u4EE5\u524D\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",not_reproducible:"\u518D\u73FE\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u767A\u3057\u305F\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",wont_fix:"\u3053\u306E\u70B9\u306F\u5909\u66F4\u3057\u306A\u3044\u3053\u3068\u306B\u3057\u307E\u3057\u305F\u3002",working_as_intended:"\u3053\u308C\u306F\u60F3\u5B9A\u3069\u304A\u308A\u306E\u52D5\u4F5C\u3067\u3059\u3002",none:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002"},others:{few:"\u3042\u306A\u305F\u3092\u542B\u3081\u6570\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059",many:"\u591A\u304F\u306E\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059"},timeline:{received:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u307E\u3057\u305F",reviewing:"\u958B\u767A\u8005\u304C\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059",duplicate_linked:"\u65E2\u5B58\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059",info_requested:"\u958B\u767A\u8005\u304B\u3089\u306E\u8CEA\u554F: {text}",reporter_comment:"\u3042\u306A\u305F",fix_started:"\u4FEE\u6B63\u4E2D\u3067\u3059",fixed:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",released:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9 \u2014 \u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F",reopened:"\u518D\u30AA\u30FC\u30D7\u30F3\u3057\u307E\u3057\u305F"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044",visual:"\u8868\u793A\u304C\u304A\u304B\u3057\u3044",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",idea:"\u30A2\u30A4\u30C7\u30A2"},ui:{yes:"\u306F\u3044",notYet:"\u307E\u3060",empty:"\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5831\u544A\u3059\u308B\u3068\u3053\u3053\u306B\u9032\u6357\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",loadError:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",retry:"\u518D\u8A66\u884C",sending:"\u9001\u4FE1\u4E2D\u2026",sent:"\u9001\u4FE1\u3057\u307E\u3057\u305F",sendFailed:"\u9001\u4FE1\u5931\u6557",noReplies:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",you:"\u3042\u306A\u305F",developer:"\u958B\u767A\u8005",addWords:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",developerReplied:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1:\u300C{text}\u300D",updates:"\u3042\u306A\u305F\u306E\u5831\u544A\u306B {n} \u4EF6\u306E\u66F4\u65B0\u304C\u3042\u308A\u307E\u3059",receipt:"\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002\u9032\u5C55\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",trackIt:"\u7D4C\u904E\u3092\u898B\u308B",done:"\u9589\u3058\u308B",emailOptIn:"\u30E1\u30FC\u30EB\u3067\u66F4\u65B0\u3092\u53D7\u3051\u53D6\u308B",emailPlaceholder:"you@example.com",emailSubmit:"\u30E1\u30FC\u30EB\u3067\u53D7\u3051\u53D6\u308B",emailCheckInbox:"\u53D7\u4FE1\u30C8\u30EC\u30A4\u306E\u30E1\u30FC\u30EB\u306E\u30EA\u30F3\u30AF\u3092\u30BF\u30C3\u30D7\u3057\u3066\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",emailInvalid:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",emailFailed:"\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",toastReplied:"\u958B\u767A\u8005\u304C\u3042\u306A\u305F\u306E\u5831\u544A\u306B\u8FD4\u4FE1\u3057\u307E\u3057\u305F",toastFixed:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u305F\u4E0D\u5177\u5408\u304C\u4FEE\u6B63\u3055\u308C\u307E\u3057\u305F",view:"\u898B\u308B"}},ud={status:{received:"Recibido",reviewing:"Lo estamos revisando",reviewing_again:"Lo revisamos de nuevo",fixing:"Correcci\xF3n en curso",verified:"Correcci\xF3n confirmada",fixed_next:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",fixed_version:"Corregido en v{version}",fixed:"Corregido",closed:"Cerrado",waiting:"Esperando tu respuesta"},detail:{received:"Lo recibimos.",reviewing:"El desarrollador lo tiene en su lista.",reviewing_again:"Gracias, lo reabrimos.",fixing:"Se est\xE1 trabajando en una correcci\xF3n.",verified:"Confirmaste la correcci\xF3n. \xA1Gracias!",fixed_next:"Llega en la pr\xF3xima versi\xF3n.",fixed_version:"Actualiza a v{version}. \xBFYa funciona?",fixed:"\xBFYa funciona?",closed:"Cerrado.",waiting:"El desarrollador hizo una pregunta: responde abajo."},idea:{received:"Gracias por la idea",reviewing:"En consideraci\xF3n",fixing:"En desarrollo",shipped:"Publicado",shippedVersion:"Publicado en v{version}"},closedReason:{duplicate:"Es igual a un reporte anterior; te avisaremos all\xED.",not_reproducible:"No pudimos reproducirlo. Responde si vuelve a pasar.",wont_fix:"Decidimos no cambiar esto.",working_as_intended:"Este es el comportamiento esperado.",none:"Cerrado."},others:{few:"T\xFA y algunas personas m\xE1s reportaron esto",many:"Muchas personas reportaron esto"},timeline:{received:"Reportaste esto",reviewing:"El desarrollador lo est\xE1 revisando",duplicate_linked:"Es igual a un reporte existente; te avisaremos all\xED",info_requested:"El desarrollador pregunt\xF3: {text}",reporter_comment:"T\xFA",fix_started:"Hay una correcci\xF3n en curso",fixed:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",released:"Publicado en v{version}: actualiza para tenerlo",verified:"Confirmaste que est\xE1 corregido",reopened:"Reabierto"},categories:{bug:"Error",slow:"Lento",visual:"Se ve mal",confusing:"Confuso",idea:"Idea"},ui:{yes:"S\xED",notYet:"Todav\xEDa no",empty:"Nada todav\xEDa: tus reportes aparecer\xE1n aqu\xED con novedades.",loadError:"No se pudieron cargar las novedades",retry:"Reintentar",sending:"Enviando\u2026",sent:"Enviado",sendFailed:"Error al enviar",noReplies:"El desarrollador a\xFAn no ha respondido.",you:"T\xFA",developer:"Desarrollador",addWords:"Agrega algunas palabras",developerReplied:"El desarrollador respondi\xF3: \u201C{text}\u201D",updates:"{n} novedades en tus reportes",receipt:"Enviado. Te avisaremos aqu\xED cuando haya novedades.",trackIt:"Seguirlo",done:"Listo",emailOptIn:"Recibir novedades por correo",emailPlaceholder:"tu@ejemplo.com",emailSubmit:"Enviarme novedades",emailCheckInbox:"Revisa tu correo y toca el enlace para confirmar.",emailInvalid:"Eso no parece un correo electr\xF3nico.",emailFailed:"No pudimos activar las novedades por correo. Int\xE9ntalo m\xE1s tarde.",toastReplied:"El desarrollador respondi\xF3 a tu reporte",toastFixed:"Tu error est\xE1 corregido",view:"Ver"}},ld={status:{received:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",reviewing_again:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",fixed_next:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E23\u0E2D\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13"},detail:{received:"\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E43\u0E2A\u0E48\u0E44\u0E27\u0E49\u0E43\u0E19\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27",reviewing_again:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E40\u0E23\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13!",fixed_next:"\u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E23\u0E38\u0E48\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1B\u0E47\u0E19 v{version} \u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",fixed:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21 \u2014 \u0E15\u0E2D\u0E1A\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07"},idea:{received:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07",shipped:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",shippedVersion:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}"},closedReason:{duplicate:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",not_reproducible:"\u0E40\u0E23\u0E32\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E0B\u0E49\u0E33\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E2B\u0E32\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E35\u0E01",wont_fix:"\u0E40\u0E23\u0E32\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E19\u0E35\u0E49",working_as_intended:"\u0E19\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E43\u0E08\u0E44\u0E27\u0E49",none:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27"},others:{few:"\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",many:"\u0E21\u0E35\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49"},timeline:{received:"\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",duplicate_linked:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",info_requested:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32: {text}",reporter_comment:"\u0E04\u0E38\u0E13",fix_started:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",released:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E43\u0E19 v{version} \u2014 \u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",reopened:"\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},categories:{bug:"\u0E1A\u0E31\u0E4A\u0E01",slow:"\u0E0A\u0E49\u0E32",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",idea:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22"},ui:{yes:"\u0E43\u0E0A\u0E48",notYet:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 \u2014 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",loadError:"\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",sent:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",sendFailed:"\u0E2A\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",noReplies:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",you:"\u0E04\u0E38\u0E13",developer:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",addWords:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22",developerReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E27\u0E48\u0E32: \u201C{text}\u201D",updates:"\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",receipt:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",trackIt:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08",emailOptIn:"\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"you@example.com",emailSubmit:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailCheckInbox:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E25\u0E48\u0E2D\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E30\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",emailInvalid:"\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E08\u0E30\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",emailFailed:"\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08 \u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",toastReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27",toastFixed:"\u0E1A\u0E31\u0E4A\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27",view:"\u0E14\u0E39"}},cd={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},dd={en:sd,ja:ad,es:ud,th:ld,zh:cd};ea=new Set(["received","reviewing","reviewing_again","fixing"]);});var Ra={};Kt(Ra,{accountView:()=>jd,assistantView:()=>Nd,crossAppView:()=>Wd,detailView:()=>Hd,initViews:()=>Md,leaderboardView:()=>qd,pickUpdateToast:()=>Ld,renderOptIns:()=>Sa,reportsView:()=>Fd,roadmapView:()=>Ud});function Md(t){({esc:_,btn:pe,renderHeader:Be,chipLabel:va,skeleton:$t,formatRelativeTime:lr,renderAppIconHtml:wa}=t);}function Ld(t,e,r){let n=t.filter(p=>(p.unread_count??0)>0&&!Ft(p,e).hidden),i=n.reduce((p,d)=>p+(d.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:ur(bt(e).ui.updates,{n:i}),reportId:null};let o=n[0],a=Ft(o,e),s=a.key==="fixing"||a.canVerify||!o.last_admin_reply_at&&a.key!=="waiting",u=o.title??o.summary??void 0;return {text:s?a.label:r,reportId:o.id,...u?{detail:u}:{}}}function Sa(t){let e=t.locale.panel,r=[];if(t.channels.email&&t.callbacks.onReporterEmailOptIn){let n=t.rc.ui;t.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${_(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${t.emailOptInOpen?" checked":""} /> ${_(n.emailOptIn)}</label>`),t.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${_(n.emailOptIn)}" placeholder="${_(n.emailPlaceholder)}" value="${_(t.channels.emailPrefill)}" />${pe("save-email",_(n.emailSubmit),"mushi-btn",t.emailState==="saving"?' aria-busy="true"':"")}</div>${t.emailState==="invalid"||t.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${_(t.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return t.channels.push&&t.callbacks.onReporterPushSubscribe&&(r.push(t.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${_(e.notifyOn)}</p>`:pe("notify-me",`\u{1F514} ${_(e.notifyMe)}`,"mushi-btn",t.pushState==="asking"?' aria-busy="true"':"")),t.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${_(t.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function ei(t,e){return `<span class="mushi-pill mushi-tone-${e}">${_(t)}</span>`}function xa(t){return t.title??t.summary??t.description??`#${t.id.slice(0,8)}`}function Dd(t,e){let r=(e??"").toLowerCase();return !r||r==="other"?"":va(t,r==="feature_request"?"idea":r)}function Pd(t){let e=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...t].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||e(n)-e(r))}function Bd(t,e){let r=Ft(e,t.lang);if(r.hidden)return "";let n=(e.unread_count??0)>0,i=[Dd(t,e.user_category),e.page,r.othersNote].filter(Boolean).map(s=>_(String(s))).join(" \xB7 "),o=e.last_event_preview&&(n||r.key==="waiting")?t.rc.ui.developerReplied.replace("{text}",e.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",a=xa(e);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${_(e.id)}" aria-label="${_(`${r.label}: ${a}`)}"><span class="mushi-row-top">${ei(r.label,r.tone)}<span class="mushi-row-title">${_(a)}</span><span class="mushi-row-when">${_(lr(e.last_event_at??e.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${_(o)}</span>`:""}</button>`}function Fd(t){let e=t.rc,r=Pd(t.reporterReports).map(i=>Bd(t,i)).join(""),n=t.reporterError?`<p class="mushi-error-inline" role="alert">${_(e.ui.loadError)} ${pe("retry-list",_(e.ui.retry),"mushi-link-btn")}</p>${r}`:r||(t.listLoading?$t(t.locale.flows.reports.loading):`<p class="mushi-empty">${_(e.ui.empty)}</p>`);return {header:Be(t,t.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function $d(t,e){let r=t.rc,n=[];if(t.timeline)for(let i of t.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:Xn(i)?i.body??i.text:ta(i,t.lang),talk:Xn(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {e&&n.push({kind:"received",at:e.created_at,text:r.timeline.received});for(let i of t.reporterComments){let o=i.author_kind==="reporter";n.push({kind:o?"reporter_comment":"comment",at:i.created_at,text:i.body,talk:true,mine:o,who:o?r.ui.you:i.author_name??r.ui.developer});}}n.sort((i,o)=>(Date.parse(i.at)||0)-(Date.parse(o.at)||0));for(let i of t.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Od(t,e){let r=e.at?`<time datetime="${_(e.at)}">${_(lr(e.at))}</time>`:"";if(!e.talk)return `<li class="mushi-event"><span>${_(e.text)}</span>${r}</li>`;let n=!!e.mine,i=e.pending?e.pending.state==="sending"?`<span class="mushi-bubble-state">${_(t.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${_(t.rc.ui.sendFailed)} \xB7 ${pe("retry-reply",_(t.rc.ui.retry),"mushi-link-btn",` data-value="${e.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${_(e.who??"")}</strong><p>${_(e.text)}</p>${i}</li>`}function Hd(t){let e=t.rc,r=t.reporterReports.find(h=>h.id===t.selectedReportId),n=Ft(r??{status:"new"},t.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?lr(r.created_at):""].filter(Boolean).map(h=>_(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${ei(n.label,n.tone)}</p><p class="mushi-note">${_(n.detail)}${n.othersNote?` ${_(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${_(r?r.description??xa(r):`#${(t.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${_(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,a=$d(t,r),s=a.some(h=>h.talk&&!h.mine),u;t.threadLoading&&a.length<=1&&!t.pendingReplies.length?u=$t(t.locale.flows.thread.loading):u=`${t.threadError?`<p class="mushi-error-inline" role="alert">${_(e.ui.loadError)} ${pe("retry-thread",_(e.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${a.map(h=>Od(t,h)).join("")}</ol>${!s&&!t.threadError&&!t.threadLoading?`<p class="mushi-empty">${_(e.ui.noReplies)}</p>`:""}`;let p=t.actionPending?' disabled aria-busy="true"':"",d=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${_(n.detail)}">${pe("reporter-confirms",_(e.ui.yes),"mushi-btn",p)}${pe("reporter-not-fixed",_(e.ui.notYet),"mushi-btn",p)}</div>`:"";return {header:Be(t,t.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${Sa(t)}`,footer:`${d}${t.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${_(t.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${_(t.locale.flows.thread.replyPlaceholder)}" aria-label="${_(t.locale.flows.thread.replyPlaceholder)}"></textarea>${pe("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${_(t.locale.panel.send)}"`)}</div>`}}function Nd(t){let e=t.locale.assistant,r=t.callbacks.assistantGreeting||e.defaultGreeting,n=p=>p.length?`<div class="mushi-chips">${p.map(d=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${_(d)}">${_(d)}</button>`).join("")}</div>`:"",i=(p,d="mushi-link-btn")=>pe("assistant-report",_(p),d),o=t.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${_(r)}</p>${n(t.callbacks.assistantSuggestions??[])}`:t.assistantTurns.map(p=>`<div class="mushi-assistant-msg ${p.role==="user"?"mine":"dev"}">${_(p.text)}</div>${n(p.options??[])}${p.offerReport?i(e.fileReportCta,"mushi-btn"):""}`).join(""),a=t.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${_(e.thinking)}</div>`:"",s=t.assistantError?`<p class="mushi-error-inline" role="alert">${_(t.assistantError)} ${i(e.fileReportCta)}</p>`:"",u=t.assistantTurns.length&&!t.assistantSending&&!t.assistantError?i(e.stillStuckCta):"";return {header:Be(t,t.callbacks.assistantLabel||e.defaultLabel,true),lead:"",body:`<div class="mushi-assistant-log">${o}${a}${s}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${_(e.inputPlaceholder)}" aria-label="${_(e.inputPlaceholder)}"${t.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${_(e.sendAriaLabel)}"${t.assistantSending?" disabled":""}>\u2191</button></form>`}}function Ud(t){let e=t.locale.flows.roadmap,r=t.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,a=n.shipped_at?e.shipped:String(n.status_label??n.status??"open");return `<div class="mushi-report-row mushi-roadmap-row"><span class="mushi-row-top"><span class="mushi-row-title">${_(String(n.subject??e.untitled))}</span></span><span class="mushi-row-meta">${_(a)} \xB7 ${_(e.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${t.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${_(i)}" aria-pressed="${o}">${_(o?e.voted:e.vote)}</button>`:""}</div>`}).join("");return {header:Be(t,e.title,true),lead:"",body:`${t.reporterError?`<p class="mushi-error-inline" role="alert">${_(t.reporterError)}</p>`:""}${r||(t.listLoading?$t(e.loading):`<p class="mushi-empty">${_(e.empty)}</p>`)}`,footer:""}}function qd(t){let e=t.locale.flows.leaderboard,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:t.leaderboardEntries??[],i=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=n.map((s,u)=>{let p=s.rank||u+1;return `<li class="mushi-lb-row${t.testerReputation&&s.tester_id===t.testerReputation.tester_id?" me":""}"><span>#${p}</span><span class="mushi-row-title">${_(s.public_handle??s.display_name??e.anon)}</span><span>${(s.points_30d??s.total_points).toLocaleString()} pts</span></li>`}).join(""),a=t.testerReputation?.rank;return {header:Be(t,e.title,true),lead:"",body:`${i?$t(e.loading):""}${!i&&!n.length?`<p class="mushi-empty">${_(e.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${a?`<p class="mushi-note">${_(e.myRank.replace("{rank}",String(a)))}</p>`:t.testerJwt?"":pe("open-account",_(e.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${_(e.footer)}</p>`,footer:""}}function jd(t){let e=t.locale.flows.account,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??t.locale.flows.leaderboard.anon,i=t.testerReputation,o=i?e.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:Be(t,e.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${_(n)}</p>${o?`<p class="mushi-note">${_(o)}</p>`:""}</div>${pe("open-cross-app-reports",_(e.crossAppReports),"mushi-menu-item")}${pe("open-global-leaderboard",_(e.viewLeaderboard),"mushi-menu-item")}${pe("sign-out-tester",_(e.signOut),"mushi-link-btn")}`,footer:""}}return t.magicLinkSent?{header:Be(t,e.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${_(e.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>${pe("resend-magic-link",_(e.resendEmail),"mushi-link-btn")}${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${_(t.magicLinkError)}</p>`:""}`,footer:""}:{header:Be(t,e.joinTitle,true),lead:"",body:`<p class="mushi-note">${_(e.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${_(e.emailLabel)}" placeholder="${_(e.emailPlaceholder)}" autocomplete="email" value="${_(t.magicLinkEmail)}" />${t.magicLinkError?`<p class="mushi-error-inline" role="alert">${_(t.magicLinkError)}</p>`:""}`,footer:`<span></span>${pe("send-magic-link",_(t.magicLinkSending?e.sending:e.sendLink),"mushi-submit",t.magicLinkSending?' aria-busy="true"':"")}`}}function Wd(t){let e=t.locale.flows.crossApp,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let i=[...n.entries()].map(([o,a])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${wa({projectId:o,appName:a.name,appSlug:a.slug,appDomain:a.domain})} ${_(a.name)}</h3>${a.reports.map(s=>{let u=Ft(s,t.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${ei(u.label,u.tone)}<span class="mushi-row-title">${_(s.title??`#${s.short_id??s.id.slice(0,8)}`)}</span><span class="mushi-row-when">${_(lr(s.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:Be(t,e.title,true),lead:"",body:`${t.crossAppLoading?$t(e.loading):""}${!t.crossAppLoading&&!r.length?`<p class="mushi-empty">${_(e.empty)}</p>`:""}${i}`,footer:""}}var _,pe,Be,va,$t,lr,wa,ka=qe(()=>{Gr();});var du={};Kt(du,{grabMaskedTabFrame:()=>ih});async function ih(t,e){let r=await t,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(s=>s.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=e.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${i}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${i}) *{visibility:hidden!important}`,document.head.appendChild(o);let a=document.createElement("video");try{a.muted=!0,a.srcObject=r,await a.play(),await new Promise(u=>setTimeout(u,150));let s=document.createElement("canvas");return s.width=a.videoWidth,s.height=a.videoHeight,s.getContext("2d")?.drawImage(a,0,0),s.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(s=>s.stop()),a.srcObject=null,o.remove();}}var pu=qe(()=>{});var hu={};Kt(hu,{createScreenshotAnnotation:()=>oh});function oh(t,e){return new Promise((r,n)=>{let i=new Image;i.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),s=document.createElement("canvas"),u=Math.min(1,720/i.width),p=Math.round(i.width*u),d=Math.round(i.height*u);for(let g of [a,s])g.width=p,g.height=d,g.style.width="100%",g.style.height="auto",g.style.display="block";s.style.position="absolute",s.style.left="0",s.style.top="0",s.style.cursor="crosshair";let h=a.getContext("2d"),k=s.getContext("2d");if(!h||!k){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,p,d),o.appendChild(a),o.appendChild(s),e.appendChild(o);let S="highlight",T=false,b=null,v=[],L=g=>{let f=s.getBoundingClientRect(),E="touches"in g?g.touches[0]??g.changedTouches[0]:null,C=E?E.clientX:g.clientX,D=E?E.clientY:g.clientY;return {x:(C-f.left)/f.width*p,y:(D-f.top)/f.height*d}},A=()=>{k.clearRect(0,0,p,d);for(let g of v)if(g.tool==="highlight"&&g.points.length>=2){let[f,E]=g.points;k.fillStyle="rgba(255, 230, 0, 0.35)",k.fillRect(Math.min(f.x,E.x),Math.min(f.y,E.y),Math.abs(E.x-f.x),Math.abs(E.y-f.y));}else if(g.tool==="arrow"&&g.points.length>=2){let[f,E]=g.points;k.strokeStyle="#ef4444",k.lineWidth=3,k.beginPath(),k.moveTo(f.x,f.y),k.lineTo(E.x,E.y),k.stroke();}},R=g=>{T=true,b=L(g);},m=g=>{if(!T||!b)return;T=false;let f=L(g);if(S==="blur"){let E=Math.min(b.x,f.x),C=Math.min(b.y,f.y),D=Math.abs(f.x-b.x),w=Math.abs(f.y-b.y);D>=1&&w>=1&&(h.filter="blur(8px)",h.drawImage(a,E,C,D,w,E,C,D,w),h.filter="none");}else v.push({tool:S,points:[b,f]});b=null,A();};s.addEventListener("mousedown",R),s.addEventListener("mouseup",m),s.addEventListener("touchstart",R,{passive:true}),s.addEventListener("touchend",m),r({canvas:a,setTool(g){S=g;},getDataUrl(){let g=document.createElement("canvas");g.width=p,g.height=d;let f=g.getContext("2d");return f?(f.drawImage(a,0,0),f.drawImage(s,0,0),g.toDataURL("image/jpeg",.85)):t},destroy(){s.removeEventListener("mousedown",R),s.removeEventListener("mouseup",m),s.removeEventListener("touchstart",R),s.removeEventListener("touchend",m),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=t;})}var fu=qe(()=>{});var Hu=4194304,Fo=1.5*1024*1024;function Nu(t){try{return JSON.stringify(t)}catch{return null}}function Uu(t,e=Hu){let r=Nu(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${Eo(n)} exceeds limit ${Eo(e)}`}}function Eo(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function $o(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Pr(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function It(t){let e=$o();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Pr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(yn(),bn));return Pr(r(new TextEncoder().encode(t)))}async function qu(t,e){let r=$o();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),s=await r.sign("HMAC",a,new TextEncoder().encode(e));return Pr(new Uint8Array(s))}let{hmac:n}=await Promise.resolve().then(()=>(go(),mo)),{sha256:i}=await Promise.resolve().then(()=>(yn(),bn)),o=n(i,new TextEncoder().encode(t),new TextEncoder().encode(e));return Pr(o)}var ju=60*1024;function Wu(t){return {mushiBeacon:true,path:t.path,headers:t.headers,body:t.body}}function Vu(t,e=typeof location<"u"?location.origin:""){if(!t)return false;if(t.startsWith("/"))return true;if(!e)return false;try{return new URL(t,e).origin===e}catch{return false}}function Ku(t){try{let e=t.startsWith("/")?new URL(t,"https://tunnel.local"):new URL(t);return `${e.pathname}${e.search}`}catch{return t}}function zu(t){let e=t.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(e)try{return e(t.url,{method:"POST",headers:{"Content-Type":"application/json",...t.headers},body:t.body,keepalive:!0}),!0}catch{}let r=t.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Vu(t.url))return false;let n=t.body;try{n=JSON.parse(t.body);}catch{n=t.body;}let i=JSON.stringify(Wu({path:t.path??Ku(t.url),headers:t.headers,body:n}));if(i.length>ju)return false;try{return r(t.url,new Blob([i],{type:"application/json"}))}catch{return false}}var Oo=false;function Ho(){Oo=true;}function Gu(){return Oo}var Qt=null;function No(){let t=Qt;return Qt=null,!!t&&zu(t)}var bo=false,Yu="X-Mushi-User-Token",Xu="X-Mushi-Project",Ju="X-Mushi-SDK-Package",Qu="X-Mushi-SDK-Version";function Zu(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Xu]:t.projectId};return t.sdkPackage&&(e[Ju]=t.sdkPackage),t.sdkVersion&&(e[Qu]=t.sdkVersion),t.userToken&&(e[Yu]=t.userToken),t.internalKind&&(e[Or]=t.internalKind),e}var Zt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Or="X-Mushi-Internal",or="__mushiInternal";function el(t,e){let r=e?.trim();return r?r.replace(/\/$/,""):(t??Zt).replace(/\/$/,"")}var tl=1e4,rl=2,nl=4,il=3e4,ol=1e4;function Uo(t){let{projectId:e,apiKey:r,apiEndpoint:n=Zt,tunnel:i,timeout:o=tl,maxRetries:a=rl,getUserToken:s,sdkPackage:u,sdkVersion:p,circuitBreaker:d}=t,h=el(n,i),k=d?.enabled!==false,S=Math.max(1,d?.threshold??nl),T=Math.max(1e3,d?.cooldownMs??il),b=0,v=0,L=()=>k&&v>Date.now(),A=()=>{b=0,v=0;},R=()=>{k&&(b+=1,b>=S&&(v=Date.now()+T));};async function m(f,E,C,D=a,w,G){let Y=w!=="reporter-poll";if(Y&&L())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let ne=`${h}${E}`,W=new AbortController,Te=setTimeout(()=>W.abort(),o),Oe=s?.()??null,me={...Zu({apiKey:r,projectId:e,sdkPackage:u,sdkVersion:p,userToken:Oe,internalKind:w}),...G},J=C?JSON.stringify(C):void 0,N=null;J&&f!=="GET"&&w!=="reporter-poll"&&(N={url:ne,headers:me,body:J,path:E},Qt=N);try{let O=await fetch(ne,{method:f,headers:me,body:J,keepalive:Gu(),signal:W.signal,...w?{[or]:w}:{}});if(clearTimeout(Te),O.status===307||O.status===308){let xe=O.headers.get("Location");if(xe&&D>0){let ve=xe.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(ve!==h)return h=ve,m(f,E,C,D-1,w,G)}}if(!O.ok){let xe=await O.json().catch(()=>({}));if((O.status===401||O.status===403)&&!bo){bo=!0;let H=h===Zt?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${O.status}). Check your Project ID and API key scope (must be "report:write"). `+H);}let ve=O.status===429,I=O.status>=500||ve,x=ve?sl(O.headers.get("Retry-After")):null,F=x===null||x<=ol;return I&&D>0&&F?(await yo(x??vo(a-D)),m(f,E,C,D-1,w,G)):(Y&&(I?R():A()),{ok:!1,error:{code:xe.error?.code||`HTTP_${O.status}`,message:xe.error?.message||xe.message||`HTTP ${O.status} error`,status:O.status}})}let Q=await O.json(),wt=Q&&typeof Q=="object"&&"ok"in Q&&"data"in Q?Q.data:Q;return Y&&A(),{ok:!0,data:wt}}catch(O){return clearTimeout(Te),D>0&&al(O)?(await yo(vo(a-D)),m(f,E,C,D-1,w,G)):(Y&&R(),{ok:false,error:{code:"NETWORK_ERROR",message:O instanceof Error?O.message:"Unknown network error"}})}finally{Qt===N&&(Qt=null);}}async function g(f,E,C,D){try{let w=await It(C),G=String(Date.now());return await m(f,E,D,a,"reporter-poll",{"X-Reporter-Token-Hash":w,"X-Reporter-Ts":G,"X-Reporter-Hmac":await qu(r,`${e}.${G}.${w}`)})}catch(w){return {ok:false,error:{code:"NETWORK_ERROR",message:w instanceof Error?w.message:"Unknown error"}}}}return {async submitReport(f){let E=Uu(f);return E.ok?m("POST","/v1/reports",f,a,"report-submit"):{ok:false,error:{code:E.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:E.reason??"Report payload exceeds size limit"}}},async getReportStatus(f){return m("GET",`/v1/reports/${f}/status`,void 0,a,"report-status")},async getSdkConfig(){return m("GET","/v1/sdk/config",void 0,a,"sdk-config")},async askAssistant(f){return m("POST","/v1/sdk/assistant",{message:f.message,threadId:f.threadId??null,context:f.context??null},1,"community")},async getLatestSdkVersion(f){let E=new URLSearchParams({package:f}).toString();return m("GET",`/v1/sdk/latest-version?${E}`,void 0,a,"sdk-config")},async postDiscoveryEvent(f){return m("POST","/v1/sdk/discovery",f,1,"discovery")},async listReporterReports(f){return g("GET","/v1/reporter/reports",f)},reporterRequest:g,async listReporterComments(f,E){return g("GET",`/v1/reporter/reports/${f}/comments`,E)},async replyToReporterReport(f,E,C,D){return g("POST",`/v1/reporter/reports/${f}/reply`,E,{body:C,...D?{feedback_signal:D}:{}})},async reopenReporterReport(f,E,C){return g("POST",`/v1/reporter/reports/${f}/reopen`,E,{note:C??""})},async listNotifications(f,E){let C=new URLSearchParams;E?.since&&C.set("since",E.since),E?.limit&&C.set("limit",String(E.limit));let D=C.size?`?${C.toString()}`:"";return g("GET",`/v1/notifications${D}`,f)},async markNotificationRead(f,E){return g("POST",`/v1/notifications/${f}/read`,E,{})},async listReporterFeatureBoard(f){return g("GET","/v1/reporter/feature-board",f)},async voteReporterFeatureBoard(f,E){return g("POST",`/v1/reporter/feature-board/${f}/vote`,E,{})},async postSessionEvent(f){return m("POST","/v1/sdk/session",f,1,"discovery")},async postProductEvents(f){return m("POST","/v1/sdk/events",f,1,"discovery")},async submitActivity(f,E,C){return m("POST","/v1/sdk/activity",{user_id:f,user_traits:C?.userTraits,opted_in:C?.optedIn,reporter_token_hash:C?.reporterTokenHash,...C?.hostJwt?{host_jwt:C.hostJwt}:{},events:E},1,"discovery")},async getMyPoints(f){return m("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(f)}`,void 0,1,"reporter-poll")},async getMyTier(f){return m("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(f)}`,void 0,1,"reporter-poll")},async getMyHistory(f,E){let C=new URLSearchParams({userId:f,...E?.limit?{limit:String(E.limit)}:{}});return m("GET",`/v1/sdk/me/history?${C}`,void 0,1,"reporter-poll")},async getHallOfFame(f=10){return m("GET",`/v1/sdk/hall-of-fame?limit=${f}`,void 0,1,"reporter-poll")},async sendMagicLink(f){return m("POST","/v1/tester/magic-link",{email:f},1,"community")},async linkReporterToken(f,E){return m("POST","/v1/tester/link-reporter",{reporter_token_hash:f},1,"community",{Authorization:`Bearer ${E}`})},async getCrossAppReports(f,E){let C=new URLSearchParams;E?.limit&&C.set("limit",String(E.limit)),E?.offset&&C.set("offset",String(E.offset));let D=C.size?`?${C.toString()}`:"";return m("GET",`/v1/tester/cross-app-reports${D}`,void 0,1,"community",{Authorization:`Bearer ${f}`})},async getMyReputation(f){return m("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${f}`})},async getPublicLeaderboard(f=20){return m("GET",`/v1/public/tester-leaderboard?limit=${f}`,void 0,1,"reporter-poll")},async getTesterStatus(f){return m("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${f}`})}}}function yo(t){return new Promise(e=>setTimeout(e,t))}function vo(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function sl(t,e=Date.now()){if(!t)return null;let r=t.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let i=Date.parse(r);return Number.isNaN(i)?null:Math.max(i-e,0)}function al(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function vn(t,e){if(!t||!e||e.length===0)return false;for(let r of e){if(typeof r=="string"){if(t.includes(r))return true;continue}try{if(r.lastIndex=0,r.test(t))return !0}catch{}}return false}function sr(t){if(vn(t.message,t.ignoreErrors))return true;let e=t.filename?.trim()||"";return !!(e&&vn(e,t.denyUrls)||t.allowUrls&&t.allowUrls.length>0&&(!e||!vn(e,t.allowUrls)))}function wn(...t){return t.find(e=>e!==void 0&&e!=="")}function Re(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Ke(t){try{return t()}catch{return}}function Bn(){let t=wn(Re("VITE_MUSHI_PROJECT_ID"),Re("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Re("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Re("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Ke(()=>process.env.MUSHI_PROJECT_ID)),e=wn(Re("VITE_MUSHI_API_KEY"),Re("NEXT_PUBLIC_MUSHI_API_KEY"),Re("NUXT_PUBLIC_MUSHI_API_KEY"),Re("EXPO_PUBLIC_MUSHI_API_KEY"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Ke(()=>process.env.MUSHI_API_KEY)),r=wn(Re("VITE_MUSHI_API_ENDPOINT"),Re("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Re("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Re("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Ke(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Ke(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var ul=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],ll={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function qo(){let t=Bn(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let s=undefined;return typeof s=="object"&&s!==null?s:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let s of e)for(let u of ul){let p=`${u}${ll[s]}`;r&&r[p]?i.push({field:s,key:p,via:"import.meta.env"}):n&&n[p]&&i.push({field:s,key:p,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let s of i)a.push(`[mushi] Found ${s.key} in ${s.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:i,message:a.join(`
2
+ `)}}var wo=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],cl=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","notifications","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function dl(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function jo(t){let e=dl(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function pl(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function Wo(t){try{if(pl()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!cl.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!wo.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${wo.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var hl=10,fl=2e3,ml=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],gl=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Vo(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=hl,maxDescriptionLength:i=fl}=t;function o(s){if(!e)return {passed:true};let u=s.trim();if(u.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(u.length>i)return {passed:false,reason:`Too long (max ${i} characters)`};if(r){for(let d of ml)if(d.test(u))return {passed:false,reason:"Detected as spam"};if(gl.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(d=>d.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(s){let u=s.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:a}}var So={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},El={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},be={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},bl={debug:be.dim,info:be.green,warn:be.yellow,error:be.red,fatal:`${be.bgRed}${be.white}${be.bold}`};function yl(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function vl(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function wl(t){let{ts:e,level:r,scope:n,msg:i,...o}=t,a=e.slice(11,23),s=bl[r]??"",u=El[r]??r.toUpperCase(),p=Object.keys(o).length>0?` ${be.dim}${vl(o)}${be.reset}`:"";return `${be.dim}${a}${be.reset} ${s}${u}${be.reset} ${be.cyan}[${n}]${be.reset} ${i}${p}`}function Sl(t){return JSON.stringify(t)}function xl(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function Ko(t,e,r,n,i){let o=e;function a(s,u,p){if(So[s]<So[o])return;let d={ts:new Date().toISOString(),level:s,scope:t,msg:u,...r,...p};i(s,n(d));}return {debug:(s,u)=>a("debug",s,u),info:(s,u)=>a("info",s,u),warn:(s,u)=>a("warn",s,u),error:(s,u)=>a("error",s,u),fatal:(s,u)=>a("fatal",s,u),child(s,u){return Ko(`${t}:${s}`,o,{...r,...u},n,i)},setLevel(s){o=s;}}}function Mt(t){let{scope:e,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=t,s=(i==="auto"?yl():i)==="json"?Sl:wl,u=xl(o);return Ko(e,r,n,s,u)}var Fn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Fn,setLevel:()=>{}},Rl="mushi-mushi-keyring",ct="keys",zo="offline-queue/v1",Ir=null,Mr=null;function kl(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Go(){return new Promise((t,e)=>{let r=indexedDB.open(Rl,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(ct)||n.createObjectStore(ct);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(ct)){try{n?.close();}catch{}e(new Error("key object store unavailable"));return}t(n);},r.onerror=()=>e(r.error);})}async function Cl(){let t=await Go();return new Promise((e,r)=>{let i=t.transaction(ct,"readonly").objectStore(ct).get(zo);i.onsuccess=()=>e(i.result??null),i.onerror=()=>r(i.error);})}async function _l(t){let e=await Go();return new Promise((r,n)=>{let i=e.transaction(ct,"readwrite");i.objectStore(ct).put(t,zo),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function Yo(){if(Ir)return Ir;if(Mr)return Mr;if(!kl())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Mr=(async()=>{let t=await Cl();if(t)return Ir=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await _l(e),Ir=e,e})(),Mr}function xo(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Ro(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function Tl(t){let e=await Yo(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:xo(r),ct:xo(i)}}function Al(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Il(t){let e=await Yo(),r=Ro(t.iv),n=Ro(t.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(i))}var ke=Mt({scope:"mushi:queue",level:"warn"}),Ml="mushi-mushi",fe="offline-reports",Ll=1,Sn="mushi_offline_queue",Dl=10,Pl=6e4,Bl=3e4,Fl=8,$l=1440*60*1e3;function Xo(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=t,o=null,a=null,s=null,u=null,p=null;async function d(I){let x=new Date().toISOString();if(!i)return {...I,queuedAt:x};try{let F=await Tl(I);return {id:I.id,queuedAt:x,payload:F}}catch(F){return ke.warn("Offline queue: encryption failed, storing plaintext",{err:String(F)}),{...I,queuedAt:x}}}async function h(I){if(k(I))try{return await Il(I.payload)}catch(x){return ke.warn("Offline queue: decrypt failed, dropping row",{err:String(x),id:I.id}),null}return I}function k(I){return !!I.payload&&Al(I.payload)}function S(I){let x=I.attempts;return typeof x=="number"&&Number.isFinite(x)?x:0}function T(I,x){let F=I.queuedAt;if(!F)return false;let H=Date.parse(F);return Number.isNaN(H)?false:x-H>$l}function b(){return s||(typeof indexedDB<"u"?s="indexeddb":typeof localStorage<"u"?s="localstorage":s="none",s)}function v(){return new Promise((I,x)=>{let F=indexedDB.open(Ml,Ll);F.onupgradeneeded=()=>{try{let H=F.result;if(!H)return;H.objectStoreNames.contains(fe)||H.createObjectStore(fe,{keyPath:"id"});}catch{}},F.onsuccess=()=>{let H=F.result;if(!H||!H.objectStoreNames.contains(fe)){s="localstorage";try{H?.close();}catch{}x(new Error("queue object store unavailable"));return}I(H);},F.onerror=()=>{s="localstorage",x(F.error);};})}async function L(I){let x=await v(),F=await d(I);return new Promise((H,q)=>{let X=x.transaction(fe,"readwrite");X.objectStore(fe).put(F),X.oncomplete=()=>H(),X.onerror=()=>q(X.error);})}async function A(){let I=await v();return new Promise((x,F)=>{let q=I.transaction(fe,"readonly").objectStore(fe).getAll();q.onsuccess=()=>x(q.result),q.onerror=()=>F(q.error);})}async function R(I){let x=await v();return new Promise((F,H)=>{let q=x.transaction(fe,"readwrite");q.objectStore(fe).delete(I),q.oncomplete=()=>F(),q.onerror=()=>H(q.error);})}async function m(I){let x=await v();return new Promise((F,H)=>{let q=x.transaction(fe,"readwrite");q.objectStore(fe).put(I),q.oncomplete=()=>F(),q.onerror=()=>H(q.error);})}async function g(){let I=await v();return new Promise((x,F)=>{let q=I.transaction(fe,"readonly").objectStore(fe).count();q.onsuccess=()=>x(q.result),q.onerror=()=>F(q.error);})}async function f(){let I=await v();return new Promise((x,F)=>{let H=I.transaction(fe,"readwrite");H.objectStore(fe).clear(),H.oncomplete=()=>x(),H.onerror=()=>F(H.error);})}function E(){try{let I=localStorage.getItem(Sn);return I?JSON.parse(I):[]}catch{return []}}function C(I){try{localStorage.setItem(Sn,JSON.stringify(I));}catch{}}async function D(I){let x=E(),F=await d(I),H=x.findIndex(q=>q.id===I.id);H>=0?x[H]=F:x.push(F),C(x);}function w(I){let x=E().filter(F=>F.id!==I);C(x);}function G(I){let x=E(),F=x.findIndex(H=>H.id===I.id);F>=0&&(x[F]=I,C(x));}async function Y(I,x){try{I==="indexeddb"?await R(x):w(x);}catch(F){ke.debug("Offline queue: row removal failed (will age out)",{id:x,err:String(F)});}}async function ne(I,x){try{return I==="indexeddb"?await m(x):G(x),!0}catch(F){return ke.debug("Offline queue: row persist failed",{id:x.id,err:String(F)}),false}}async function W(){let I=b();if(I==="none")return {backend:I,rows:[]};if(I==="indexeddb")try{return {backend:I,rows:await A()}}catch{s="localstorage";}return {backend:"localstorage",rows:E()}}async function Te(I){let x=b();if(x==="none")return ke.debug("Offline queue: no storage backend, dropping report",{id:I.id}),x;if(x==="indexeddb")try{return await L(I),x}catch{s="localstorage";}return await D(I),"localstorage"}async function Oe(I){if(!e)return;if(await Q()>=r){ke.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await Te(I);}function me(I){return Math.min(1e3*2**I+Math.random()*500,Pl)}function J(I){return new Promise(x=>setTimeout(x,I))}async function N(I){let{backend:x,rows:F}=await W(),H=F,q=Date.now(),X=[];for(let he of H)if(T(he,q)){let ie=he.id;await Y(x,ie),ke.debug("Offline queue: evicting stale report",{id:ie});}else X.push(he);H=X;let Xe=H.slice(0,Dl),He=0,nt=0;for(let he=0;he<Xe.length;he++){let ie=Xe[he],ge=ie.id,jt=await h(ie);if(!jt){await Y(x,ge),nt++;continue}let V=await I.submitReport(jt);if(V.ok){await Y(x,ge),He++;continue}if(nt++,V.error?.code==="CIRCUIT_OPEN"){ke.debug("Offline queue: circuit open, deferring the rest of the batch",{id:ge,remaining:Xe.length-he});break}let Wt=V.error?.code==="HTTP_400"||V.error?.status===401||V.error?.status===403||V.error?.code==="HTTP_401"||V.error?.code==="HTTP_403"||V.error?.code==="HTTP_413"||V.error?.code==="HTTP_422"||V.error?.code==="INGEST_ERROR"||V.error?.code==="VALIDATION_ERROR"||V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED"||typeof V.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(V.error.message),it=!Wt&&(V.error?.code==="NETWORK_ERROR"||V.error?.code==="HTTP_429"||V.error?.code==="HTTP_502"||V.error?.code==="HTTP_503"||V.error?.code==="HTTP_504"||typeof V.error?.code=="string"&&V.error.code.startsWith("HTTP_5"));if(Wt)await Y(x,ge);else {let ot=S(ie)+1;ot>=Fl?(await Y(x,ge),ke.warn("Offline queue: giving up on report after repeated failures",{id:ge,attempts:ot,code:V.error?.code})):(ie.attempts=ot,await ne(x,ie)?ke.debug("Offline queue: delivery failed, will retry",{id:ge,attempts:ot,code:V.error?.code,classified:it?"transient":"unclassified"}):(await Y(x,ge),ke.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ge,code:V.error?.code})));}he<Xe.length-1&&await J(me(he));}return {sent:He,failed:nt}}function O(I){if(!e)return Promise.resolve({sent:0,failed:0});if(u)return p||(p=u.catch(()=>{}).then(()=>(p=null,O(I)))),p;let x=N(I).finally(()=>{u===x&&(u=null);});return u=x,x}async function Q(){if(b()==="indexeddb")try{return await g()}catch{s="localstorage";}return E().length}async function wt(){if(b()==="indexeddb")try{await f();}catch{}try{localStorage.removeItem(Sn);}catch{}}function xe(I){if(!e||!n||typeof window>"u")return;o&&ve();let x=()=>{navigator.onLine&&O(I).catch(F=>{ke.warn("Offline queue auto-flush failed",{err:String(F)});});};window.addEventListener("online",x),a=setInterval(()=>{Q().then(F=>{F>0&&x();});},Bl),o=()=>{window.removeEventListener("online",x),a&&(clearInterval(a),a=null);};}function ve(){o?.(),o=null;}return {enqueue:Oe,flush:O,size:Q,clear:wt,startAutoSync:xe,stopAutoSync:ve}}function $n(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Hl(t);let i=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,s=!!o?.cordova,u=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",p=a||s||u?{...a?{capacitor:true}:{},...s?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:i?{effectiveType:i.effectiveType,downlink:i.downlink,rtt:i.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Ol(r),userAgentData:Ul(t),screen:ql(n,e),prefersColorScheme:jl(e),prefersReducedMotion:Ce(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Ce(e,"(prefers-reduced-data: reduce)"),prefersContrast:Wl(e),forcedColors:Ce(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Vl(e),documentTitle:r?.title?.slice(0,200),buildId:Kl(r),pageLoadTiming:zl(e),...p?{native:p}:{}}}function Ol(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var Me=null,ko=false;function Hl(t){if(ko)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(ko=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Me=r;}).catch(()=>{}));}function Nl(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function Ul(t){let e=t?.userAgentData;if(!e&&!Me)return;let r=Me?.fullVersionList,n=Nl(r??e?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),e?.platform&&(i.os=e.platform),Me?.platformVersion&&(i.osVersion=Me.platformVersion),typeof e?.mobile=="boolean"&&(i.mobile=e.mobile),Me?.model&&(i.model=Me.model),Me?.architecture&&(i.architecture=Me.architecture),Me?.bitness&&(i.bitness=Me.bitness),Object.keys(i).length===0?void 0:i}function ql(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Ce(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function jl(t){if(t?.matchMedia)return Ce(t,"(prefers-color-scheme: dark)")?"dark":Ce(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Wl(t){if(t?.matchMedia)return Ce(t,"(prefers-contrast: more)")?"more":Ce(t,"(prefers-contrast: less)")?"less":Ce(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Vl(t){if(t?.matchMedia){if(Ce(t,"(display-mode: fullscreen)"))return "fullscreen";if(Ce(t,"(display-mode: standalone)"))return "standalone";if(Ce(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Ce(t,"(display-mode: browser)"))return "browser"}}function Kl(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function zl(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,i={};return r.domContentLoadedEventEnd>0&&(i.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(i.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(i.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(i.navigationType=r.type),Object.keys(i).length===0?void 0:i}var xn="mushi_reporter_token";function Gl(t){return `mushi:reporter-token:${t}`}function Co(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function Rn(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function _o(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function re(t){if(!t){let o=Rn(xn);if(o)return o;let a=Co();return _o(xn,a),a}let e=Gl(t),r=Rn(e);if(r)return r;let i=Rn(xn)??Co();return _o(e,i),i}function On(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var To="mushi_fingerprint_hash";function Yl(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Xl(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function Jo(){if(typeof localStorage<"u"){let n=localStorage.getItem(To);if(n)return n}let t=Yl(),e=JSON.stringify(t),r=await Xl(e);if(typeof localStorage<"u")try{localStorage.setItem(To,r);}catch{}return r}var Ao="mushi_session_id",Lr=null;function gt(){if(Lr)return Lr;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Ao);if(e)return Lr=e,e}let t=Jl();if(Lr=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Ao,t);}catch{}return t}function Jl(){return `ms_${Date.now().toString(36)}_${Ql()}`}function Ql(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return (r%36**6).toString(36).padStart(6,"0")}var Zl=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function Qo(t){return "mushi_events_consent_"+t}var Cn=new Set;function ec(){if(typeof navigator>"u")return false;let t=navigator;if(t.globalPrivacyControl===true)return true;let e=typeof window<"u"?window.doNotTrack:void 0,r=t.doNotTrack??t.msDoNotTrack??e;return r==="1"||r==="yes"}function tc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:Zl.test(navigator.userAgent??"")}function Zo(t){return t?.enabled===false?"disabled":t?.respectDoNotTrack!==false&&ec()?"dnt":t?.excludeBots!==false&&tc()?"automation":null}function rc(t){if(!t)return null;try{let e=localStorage.getItem(Qo(t));return e==="granted"||e==="denied"?e:null}catch{return null}}function nc(t,e){if(t)try{localStorage.setItem(Qo(t),e);}catch{}}function es(t,e){let r=rc(t);return e?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function ic(t,e){nc(t,e);for(let r of [...Cn])try{r(e);}catch{}}function ts(t){return Cn.add(t),()=>{Cn.delete(t);}}var oc=6e4,er=null,rs,Br=null,ns=null,Hn=0,is,_t=null,tr=false,rr=false,ft=false,_n=false,Tn=null;function sc(){return new Date().toISOString()}function Tt(){return typeof window>"u"?"":window.location.pathname}function ac(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function uc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Hr(t,e){return {kind:t,session_id:gt(),ts:sc(),page_view_count:Hn,reporter_token_hash:ns,user_id_hash:Br,user_agent:uc(),sdk_version:rs,...e}}function Nr(t){!er||!ft||(er.postSessionEvent(t).catch(()=>{}),Ur());}function Nn(){clearTimeout(is);}function Ur(){Nn(),!(!ft||globalThis.document?.visibilityState==="hidden")&&(is=setTimeout(()=>{Nr(Hr("session_heartbeat",{route:Tt()}));},oc));}function An(t){ft&&t!==_t&&(_t=t,Hn+=1,Nr(Hr("page_view",{route:t})));}function os(){tr||!ft||(tr=true,Nr(Hr("session_end",{route:Tt()})),Nn());}function Io(){ft||!rr||(ft=true,_n?Ur():(_n=true,Hn=1,_t=Tt(),Nr(Hr("session_start",{route:_t,referrer:ac()}))));}function lc(){document.visibilityState==="hidden"?os():(tr=false,Ur());}function cc(){os();}function dc(t){t.persisted&&(tr=false,Ur());}function ss(){ft=false,Nn();}function as(t){rr||typeof window>"u"||Zo(t.analytics)===null&&(rr=true,er=t.client,rs=t.sdkVersion,ns=t.reporterToken??t.reporterTokenHash??null,Br=t.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",lc,{passive:true}),window.addEventListener("pagehide",cc,{passive:true}),window.addEventListener("pageshow",dc,{passive:true}),Tn=ts(e=>{e==="granted"?Io():ss();}),es(t.projectId??"",t.analytics)==="granted"&&Io());}function Un(t){!rr||!er||An(Tt());}function qn(t){t&&t!==Br&&(_t=null),Br=t;}function us(){ss(),Tn?.(),Tn=null,rr=false,_n=false,_t=null,tr=false,er=null;}var hc=/^[a-z][a-z0-9_]{1,63}$/,dt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},fc="$",mc=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function Ec(t){return typeof t=="string"&&hc.test(t)}function Lo(t,e={}){let r={},n=[];if(!t||typeof t!="object"||Array.isArray(t))return {properties:r,dropped:n};let i=new Set(e.allowlist??[]),o=0;for(let[a,s]of Object.entries(t)){if(o>=dt.maxKeys){n.push(a);continue}let u=a.slice(0,dt.maxKeyLength);if(u.startsWith(fc)&&!e.allowReserved){n.push(u);continue}if(mc.test(u)&&!i.has(u)){n.push(u);continue}let p;if(s===null||typeof s=="boolean")p=s;else if(typeof s=="number")p=Number.isFinite(s)?s:null;else if(typeof s=="string"){let d=s.slice(0,dt.maxValueLength);p=e.scrub?e.scrub(d):d;}else if(s instanceof Date)p=s.toISOString();else {n.push(u);continue}r[u]=p,o+=1;}return {properties:r,dropped:n}}function bc(t){try{return JSON.stringify(t).length<=dt.maxBytes}catch{return false}}var Fr=null,nr="",pt=null,qr=null,jn=null,ls,et=Wn(),In,Mn,Pe=[],kt=[],ye="granted",ir=true,Dr=null,mt=false,kn=false,ht=false,Ln=null,yc=50,cs=200,vc=1440*60*1e3;function Wn(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function ds(){return new Date().toISOString()}function $r(){return "mushi_events_spill_"+nr}function wc(t){return t===void 0||t===429||t>=500}function Dn(){return "mushi_analytics_id_"+nr}function Sc(){try{let t=localStorage.getItem(Dn());if(t)return t}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function xc(){if(pt)try{localStorage.getItem(Dn())!==pt&&localStorage.setItem(Dn(),pt);}catch{}}function Rc(t){let e=2166136261;for(let r=0;r<t.length;r+=1)e^=t.charCodeAt(r),e=Math.imul(e,16777619)>>>0;return (e>>>0)/4294967296}function Pn(){try{let t=localStorage.getItem($r());if(!t)return [];let e=JSON.parse(t);return !e||Date.now()-e.at>vc?(localStorage.removeItem($r()),[]):Array.isArray(e.events)?e.events.slice(0,cs):[]}catch{return []}}function Ct(t){try{if(t.length===0){localStorage.removeItem($r());return}localStorage.setItem($r(),JSON.stringify({at:Date.now(),events:t.slice(-cs)}));}catch{}}function ps(){let t=Pn();return t.length>0&&Ct([]),t}function kc(t){return {anon_id:pt,user_id:qr,user_traits:jn,session_id:Mn?Mn():null,sdk_version:ls,surface:et.surface,events:t}}async function tt(){if(!Fr||kn||ye!=="granted"||Pe.length===0&&!ht)return;kn=true,xc();let t=Pe.splice(0,dt.maxServerBatch);ht&&(t.unshift({name:"identify",ts:ds(),properties:{}}),ht=false);try{let e=await Fr.postProductEvents(kc(t));e.ok?Ct([]):wc(e.error?.status)&&Ct([...Pn(),...t.filter(r=>r.name!=="identify")]);}catch{Ct([...Pn(),...t.filter(e=>e.name!=="identify")]);}finally{kn=false;}Pe.length>=dt.maxClientBatch&&tt();}function Cc(t){return ye==="denied"?false:ye==="pending"?kt.length>=yc?false:(kt.push(t),true):(Pe.push(t),Pe.length>=dt.maxClientBatch&&tt(),true)}function _c(t){if(t==="denied"){ye="denied",Pe=[],kt=[],ht=false,Ct([]);return}let e=ye==="pending";ye="granted",e&&(Pe.push(...ps(),...kt),kt=[]),(Pe.length>0||ht)&&tt();}function Tc(t){let e={};for(let[r,n]of Object.entries(t))n!==void 0&&(e[r]=n);return e}function hs(){return !mt||ye==="denied"?null:pt}function fs(t){if(mt||typeof window>"u")return;let e=t.config??{};if(et={...Wn(),...Tc(e),propertyAllowlist:e.propertyAllowlist??[]},nr=t.projectId,Zo(e)!==null)return;mt=true,Fr=t.client,pt=t.anonId??Sc(),qr=t.userId??null,ls=t.sdkVersion,In=t.scrub,Mn=t.getSessionId;let r=Math.min(1,Math.max(0,et.sampleRate));if(ir=r>=1?true:r<=0?false:Rc(pt??"anon")<r,!ir)return;ye=es(nr,e),ye==="granted"?Pe.push(...ps()):ye==="denied"&&Ct([]),Ln=ts(_c);let n=Math.max(1e3,et.flushIntervalMs);Dr=setInterval(()=>{tt();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&tt();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{tt();},{passive:true}),et.autoPageviews&&Ac();}function At(t,e,r){if(!mt||!ir||!Ec(t))return false;let{properties:n}=Lo(e,{allowlist:et.propertyAllowlist,scrub:In}),i=n;if(r?.reserved){let{properties:o}=Lo(r.reserved,{allowReserved:true,scrub:In});i={...n,...o};}return i.$surface=et.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),bc(i)?Cc({name:t,ts:r?.ts??ds(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function ms(t){mt||(ye=t),ic(nr,t);}function gs(t,e){qr=t,jn=e??null,!(!mt||!ir||!t||ye==="denied")&&(ht=true,ye==="granted"&&tt());}function Es(){return tt()}function bs(){Dr!=null&&(clearInterval(Dr),Dr=null),Ln?.(),Ln=null,mt=false,Fr=null,Pe=[],kt=[],ye="granted",ir=true,ht=false,qr=null,jn=null,et=Wn();}var Do=false;function Ac(){if(Do||typeof history>"u")return;Do=true;let t=history.pushState;history.pushState=function(...e){let r=t.apply(this,e);return At("page_view"),r},window.addEventListener("popstate",()=>{At("page_view");},{passive:true});}var Ic=10,Mc=1,Lc=5e3;function ys(t={}){let{maxBurst:e=Ic,refillRate:r=Mc,refillIntervalMs:n=Lc}=t,i=e,o=Date.now();function a(){let d=Date.now(),h=d-o,k=Math.floor(h/n);k>0&&(i=Math.min(e,i+k*r),o=d);}function s(){return a(),i>0?(i--,true):false}function u(){i=e,o=Date.now();}function p(){return a(),i}return {tryConsume:s,reset:u,availableTokens:p}}var Dc={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},vs=Dc.patterns,Pc=vs.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Bc=vs.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Vn(t={}){let e={...Bc,...t},r=Pc.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:s,replacement:u}of r)a=a.replace(new RegExp(s.source,s.flags),u);return a}function i(o,a){let s={...o};for(let u of a)typeof s[u]=="string"&&(s[u]=n(s[u]));return s}return {scrub:n,scrubObject:i}}var Fc=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,$c=/^(?:key|code|sig)$/i;function Oc(t){let e=t;try{e=decodeURIComponent(t);}catch{}return Fc.test(e)||$c.test(e)}function Hc(t,e){return t.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let i=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Oc(i))return `${i}=[Scrubbed]`;let a=o;try{a=decodeURIComponent(o);}catch{}let s=e(a);return s!==a?`${i}=${encodeURIComponent(s)}`:r}).join("&")}function ar(t,e){if(!t||!t.includes("?")&&!t.includes("#"))return t;let{scrub:r}=Vn(e),n=o=>{let a=o.indexOf("?");return a===-1?o:o.slice(0,a+1)+Hc(o.slice(a+1),r)},i=t.indexOf("#");return i===-1?n(t):n(t.slice(0,i))+n(t.slice(i))}var Nc=50,Uc=500;function ws(t={}){let e=Math.max(1,t.max??Nc),r=Math.max(50,t.maxMessageLength??Uc),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),a=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,s={timestamp:o,category:i.category,level:i.level??"info",message:a??"",...i.data?{data:i.data}:{}};for(n.push(s);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Po=8*1024,qc=1e3;function Ss(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,Po):void 0,i=t.cause;return {name:e,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,qc)}catch{return String(e)}})(),i=typeof e.stack=="string"?e.stack.slice(0,Po):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var de={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},jc={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},Kn={free:de.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:de.accent},jr={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},xs="#FAF7F0",Rs="#ffffff";var zn={light:"#9A2A1E",dark:"#7A1F15"},Gn={light:"#B52F1F",dark:"#C4321E"},ks={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Yn(t){return t==="dark"?jc:de}var Cs={comfy:12},_s={control:4},Wr={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace"},Lt={base:99999,banner:99998,panel:1e5,overlay:2147483647},Vr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},Ts={instant:120,panel:300};var Dt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Bo(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function As(t,e="",r=""){let n=Yn(t),i=Bo(e),o=Bo(r),a=i||n.accent,s=i?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,u=o||n.accentInk;return {accent:a,accentWash:s,accentInk:u}}var Is={bannerLabel:"Feedback"};function Wc(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function Ms(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Wc(e[1]),n=JSON.parse(r),i=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !i||!o?null:{projectId:i,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var Vc=new Set(["kensaur.us","www.kensaur.us"]),Kc={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},zc={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Gc=["www.google.com","icons.duckduckgo.com","icon.horse"];function Ls(t){try{let e=new URL(t).hostname.toLowerCase();return Gc.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Yc(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Ds(t){let e=[],r=i=>{let o=i?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Jc(t.repo_url)),r(Kc[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Xc(t.sdk_origin):null;return n&&!Vc.has(n)&&r(n),e}function Ps(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],i=a=>{!a||r.has(a)||Ls(a)||(r.add(a),n.push(a));},o=zc[t.project_slug.toLowerCase()];o&&i(o);for(let a of Ds(t))for(let s of Yc(a,e))i(s);return n}function Xc(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Jc(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(i)||r==="github.com"&&i.endsWith(".github.io")?i:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function Bs(t){return Ds(t)[0]??null}function Fs(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let i=e.getContext("2d");if(!i)return !1;i.drawImage(t,0,0);let{data:o}=i.getImageData(0,0,r,n),a=0,s=0,u=0;for(let d=0;d<o.length;d+=4){let h=o[d],k=o[d+1],S=o[d+2];if(o[d+3]<128)continue;a++;let b=Math.max(h,k,S),v=Math.min(h,k,S),L=b-v;u=Math.max(u,L),s+=L;}return a===0?!0:s/a<14&&u<24}catch{return Ls(t.src)}}function $s(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function Os(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&Qc(n))return n}return null}function Qc(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function Ns(t,e=Fo){if(!t.startsWith("data:image/")||Hs(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let a=document.createElement("canvas"),s=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));a.width=s,a.height=u;let p=a.getContext("2d");if(p){p.drawImage(r,0,0,s,u);for(let d of n){let h=a.toDataURL("image/jpeg",d);if(Hs(h)<=e)return h}}}return null}function Hs(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var Kr="mushi-assistant-session-v1";function Us(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(Kr);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let a of n){if(!a||typeof a!="object")continue;let s=a;if(s.role!=="user"&&s.role!=="assistant"||typeof s.text!="string")continue;let u={role:s.role,text:s.text};if(Array.isArray(s.options)){let p=s.options.filter(d=>typeof d=="string");p.length&&(u.options=p);}s.offerReport===!0&&(u.offerReport=!0),i.push(u);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:i,threadId:o}}catch{return null}}function qs(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(Kr);return}sessionStorage.setItem(Kr,JSON.stringify(t));}catch{}}function js(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(Kr);}catch{}}var Ws="Feature request";function Vs(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let i=Math.floor(n/60);if(i<60)return `${i}m ago`;let o=Math.floor(i/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let s=Math.floor(a/7);return s<5?`${s}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var Zc="https://kensaur.us/mushi-mushi/",ed="utm_source=widget&utm_medium=powered-by";function Ks(t){let e=`${Zc}?${ed}`;return t&&/^[0-9a-f]{6,64}$/.test(t)?`${e}&ref=${t}`:e}function zs(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function Gs(t){return /Mac|iPhone|iPad|iPod/i.test(t)?"\u2318":"Ctrl"}function Ys(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function Xs(t,e,r){if(t==="banner")return true;if(t==="console-only"||t==="off")return false;if(e)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Pt(t,e){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),e);t.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var Bt=15e3,zr=4e3;function Js(t,e){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return t.toLocaleString(e,r)}catch{return t.toLocaleString(void 0,r)}}function Et(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Qs(t){let e=t.appDomain??Bs({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??""}),r=Et($s(t.appName)),n=Ps({project_id:t.projectId,project_name:t.appName,project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${Et(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${Et(e??t.appName)}">
3
+ <img class="mushi-app-icon-img" src="${Et(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
4
4
  <span class="mushi-app-icon-initials" hidden>${r}</span>
5
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function zs(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(e.dataset.candidates??"[]");}catch{i=[];}let o=0,a=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{Is(r)&&a();};});}Vr();var Kr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Sending\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{moreNav:{communityIdeas:"Community ideas",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"}},step2:{intents:{bug:["Crash","Wrong result","Unresponsive","Data loss","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{descriptionPlaceholder:"What went wrong?",featurePlaceholder:"Describe your idea\u2026",submitHint:"{key} + Enter to send",screenshotButton:"Screenshot",screenshotAttached:"Screenshot attached",screenshotCapturing:"Taking screenshot\u2026",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Point at it",elementSelected:"Element selected",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel"},panel:{title:"Send feedback",more:"More\u2026",pointAt:"Point at it",remove:"Remove",markUp:"Mark up",privacy:"Shown only to the app\u2019s developer. Remove anything private.",send:"Send",yourReports:"Your reports",newCount:"{n} new",moreOptions:"More options",reportTitle:"Your report",notifyMe:"Notify me",notifyOn:"Notifications are on."},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{reports:{title:"Your reports",loading:"Loading reports\u2026"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{loading:"Loading updates\u2026",replyPlaceholder:"Reply to the developer\u2026"},success:{done:"Done",trackReport:"Track it",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We'll let you know here when there's news.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Questions? {email}",teamSees:"The {appName} team will see this",teamSeesGeneric:"The team will see this",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi"}};var Qs={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"}},step2:{intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",submitHint:"{key} + Enter \u3067\u9001\u4FE1",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3082\u3046\u4E00\u5EA6",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u5185\u5BB9\u306E\u305F\u3081\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",timeout:"\u53D6\u5F97\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u3059",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u610F\u898B\u3092\u9001\u308B",more:"\u305D\u306E\u4ED6\u2026",pointAt:"\u5834\u6240\u3092\u6307\u3059",remove:"\u524A\u9664",markUp:"\u66F8\u304D\u8FBC\u3080",privacy:"\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n}",moreOptions:"\u305D\u306E\u4ED6\u306E\u30E1\u30CB\u30E5\u30FC",reportTitle:"\u3042\u306A\u305F\u306E\u5831\u544A",notifyMe:"\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308B",notifyOn:"\u901A\u77E5\u304C\u30AA\u30F3\u306B\u306A\u308A\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u8FFD\u8DE1\u3059\u308B",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u9032\u6357\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067",teamSees:"{appName}\u306E\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",teamSeesGeneric:"\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi \u3067"}};var Zs={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{moreNav:{communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"}},step2:{intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{descriptionPlaceholder:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",screenshotButton:"\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E25\u0E49\u0E27",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01"},panel:{title:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19",more:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u2026",pointAt:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",remove:"\u0E25\u0E1A",markUp:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",privacy:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E41\u0E2D\u0E1B\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27\u0E2D\u0E2D\u0E01",send:"\u0E2A\u0E48\u0E07",yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",newCount:"\u0E43\u0E2B\u0E21\u0E48 {n}",moreOptions:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",reportTitle:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",notifyMe:"\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E09\u0E31\u0E19",notifyOn:"\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E41\u0E25\u0E49\u0E27"},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u2026",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026"},success:{done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21? {email}",teamSees:"\u0E17\u0E35\u0E21 {appName} \u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",teamSeesGeneric:"\u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi"}};var ea={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{moreNav:{communityIdeas:"Ideas de la comunidad",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"}},step2:{intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{descriptionPlaceholder:"\xBFQu\xE9 sali\xF3 mal?",featurePlaceholder:"Describe tu idea\u2026",submitHint:"{key} + Enter para enviar",screenshotButton:"Captura",screenshotAttached:"Captura adjunta",screenshotCapturing:"Tomando captura\u2026",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Se\xF1alarlo",elementSelected:"Elemento seleccionado",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar"},panel:{title:"Enviar comentarios",more:"M\xE1s\u2026",pointAt:"Se\xF1alarlo",remove:"Quitar",markUp:"Marcar",privacy:"Solo lo ve el desarrollador de la app. Quita cualquier dato privado.",send:"Enviar",yourReports:"Tus reportes",newCount:"{n} nuevos",moreOptions:"M\xE1s opciones",reportTitle:"Tu reporte",notifyMe:"Avisarme",notifyOn:"Las notificaciones est\xE1n activadas."},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{reports:{title:"Tus reportes",loading:"Cargando reportes\u2026"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{loading:"Cargando novedades\u2026",replyPlaceholder:"Responder al desarrollador\u2026"},success:{done:"Listo",trackReport:"Seguirlo",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Te avisaremos aqu\xED cuando haya novedades.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"\xBFPreguntas? {email}",teamSees:"El equipo de {appName} lo ver\xE1",teamSeesGeneric:"El equipo lo ver\xE1",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi"}};var ta={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi \u63D0\u4F9B"}};var ud={en:Kr,ja:Qs,th:Zs,es:ea,zh:ta};function zn(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Kr;let r=e.split("-")[0].toLowerCase();return ud[r]??Kr}function ld(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${i},${o}`}function na(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=Vn(i),a=Rs(i,e,r),s=vs[i];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?jn.dark:jn.light,accentRgb:ld(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:bs,inverse:ys,neonBannerBg:Nr.bg,neonBannerFg:Nr.fg,neonBannerBorder:Nr.border,brandBannerBorder:n?Wn.dark:Wn.light,statusSent:s.sent,statusReview:s.review,statusFixing:s.fixing,statusFixed:s.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Ur.fontDisplay,fontBody:Ur.fontBody,fontMono:Ur.fontMono,easeStamp:qr.easeStamp,zBanner:At.banner,zPanel:At.panel,zOverlay:At.overlay,fabSize:It.fabSize,panelWidth:It.panelWidth,panelSheetBreakpoint:It.panelSheetBreakpoint}}function vt(t){let e=t.trim();return !e||e.length>64||!/^[#\w\s(),.%/+-]+$/.test(e)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",e)?"":e}function ra([t,e,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(t)+.7152*n(e)+.0722*n(r)}function Gn(t,e){let r=ra(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(ra(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function ia(t,e="",r=""){let n=na(t),i=vt(e),o=vt(r),{isDark:a,ink:s,ruleStrong:u,widgetAccent:d,shadowInk:p,ok:h,danger:k,inverse:w,neonBannerBg:T,neonBannerFg:b,neonBannerBorder:S,brandBannerBorder:L,statusSent:M,statusReview:x,statusFixing:m,statusFixed:E,fontMono:f,easeStamp:g,zBanner:_,fabSize:D}=n,{durationFast:v}=qr,{instant:K,panel:Y}=xs,{bannerHeight:ne,gutter:j,panelWidth:ke,panelMaxHeight:He,panelSheetBreakpoint:me,edgeTabWidth:J}=It,F=D+ws.comfy,G=Ss.control;return ` :host{all:initial;color-scheme:${a?"dark":"light"};font-family:var(--mushi-font,inherit);font-size:var(--mushi-font-size,14px);line-height:1.45;--_bg:var(--mushi-bg,Canvas);--_fg:var(--mushi-fg,CanvasText);--_muted:var(--mushi-muted,color-mix(in oklab,var(--_fg) 64%,transparent));--_surface:var(--mushi-surface,color-mix(in oklab,var(--_bg) 94%,var(--_fg)));--_border:var(--mushi-border,color-mix(in oklab,var(--_fg) 16%,transparent));--_accent:var(--mushi-accent,${i||"var(--_fg)"});--_accent-fg:var(--mushi-accent-fg,${i?o||"white":"var(--_bg)"});--_ok:var(--mushi-success,${h});--_err:var(--mushi-error,${k});--_radius:var(--mushi-radius,12px);--_shadow:var(--mushi-shadow,0 12px 40px rgb(0 0 0 / .18));color:var(--_fg);-webkit-font-smoothing:antialiased;pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel,.mushi-toast{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${D}px;height:${D}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${G}px;background:var(--_bg);color:var(--_fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 1px 0 var(--_border),0 6px 14px -8px rgba(${p},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${v}ms ${g},opacity ${v}ms ${g};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--_accent);box-shadow:0 0 0 0 var(--_accent);animation:mushi-pulse 2.4s ${g} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${p},0.45),0 0 20px -6px color-mix(in oklab,var(--_accent) 22%,transparent),inset 0 -3px 0 var(--_accent);}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 var(--_border),0 2px 4px -2px rgba(${p},0.35),inset 0 -2px 0 var(--_accent);}.mushi-trigger:focus-visible{outline:2px solid var(--_accent);outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 55%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}70%{box-shadow:0 0 0 16px color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${g} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${j}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${j}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${j}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${j}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${J}px;height:88px;border-radius:${G}px 0 0 ${G}px;writing-mode:vertical-rl;text-orientation:upright;font-size:16px;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45),inset -3px 0 0 var(--_accent);}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:var(--mushi-right,0);}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:var(--mushi-left,0);border-radius:0 ${G}px ${G}px 0;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${p},0.45),inset 3px 0 0 var(--_accent);}.mushi-trigger.shrunk{width:${ne}px;height:${ne}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${At.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${p},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger{transition:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 var(--_accent);opacity:1;}70%{box-shadow:0 0 0 8px transparent;opacity:0.5;}100%{box-shadow:0 0 0 0 transparent;opacity:1;}}.mushi-panel{position:fixed;width:calc(${ke}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${He}px + 160px),calc(100dvh - 96px - var(--mushi-keyboard-inset,0px)));background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);}.mushi-panel.open{animation:mushi-open 180ms cubic-bezier(.2,.8,.2,1) both;}.mushi-panel.closed{display:none;}.mushi-panel.mushi-swap .mushi-scroll,.mushi-panel.mushi-swap .mushi-footer{animation:mushi-fade 120ms ease-out both;}@keyframes mushi-open{from{opacity:0;transform:translateY(8px);}}@keyframes mushi-fade{from{opacity:0;}}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${j}px) + ${F}px));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${j}px) + ${F}px));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${j}px) + ${F}px));right:var(--mushi-right,calc(${j}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${j}px) + ${F}px));left:var(--mushi-left,calc(${j}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${me}px){.mushi-panel{left:0 !important;right:0 !important;top:auto !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 24px - var(--mushi-keyboard-inset,0px));border-radius:var(--_radius) var(--_radius) 0 0;bottom:var(--mushi-keyboard-inset,0px) !important;padding-bottom:env(safe-area-inset-bottom,0px);}}.mushi-panel :focus-visible{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}.mushi-notice:empty,.mushi-lead:empty,.mushi-footer:empty,.mushi-brand:empty{display:none;}.mushi-outdated{margin:8px 12px 0;padding:8px 10px;border-radius:8px;background:var(--_surface);font-size:12px;}.mushi-header{display:flex;align-items:center;gap:8px;min-height:56px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--_border);}.mushi-title{flex:1;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;}.mushi-title:focus{outline:none;}.mushi-header-host-icon{width:20px;height:20px;margin-right:8px;border-radius:4px;object-fit:contain;}.mushi-header .mushi-icon-btn:first-child{margin-left:-10px;}.mushi-header .mushi-icon-btn:last-child{margin-right:-4px;}.mushi-beta-receipt{display:flex;flex-direction:column;gap:2px;align-items:center;}.mushi-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--_muted);font:inherit;font-size:17px;cursor:pointer;}.mushi-icon-btn:hover{background:var(--_surface);color:var(--_fg);}.mushi-pill-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.mushi-pill-btn:hover{background:var(--_surface);}.mushi-badge{padding:1px 7px;border-radius:999px;background:var(--_fg);color:var(--_bg);font-size:11px;font-weight:600;}.mushi-menu-wrap{position:relative;}.mushi-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:2;display:flex;flex-direction:column;min-width:210px;padding:4px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);}.mushi-menu-item{min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--_fg);font:inherit;text-align:left;cursor:pointer;}.mushi-menu-item:hover{background:var(--_surface);}.mushi-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px;scrollbar-width:thin;}.mushi-body{display:flex;flex-direction:column;gap:12px;min-width:0;}.mushi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px 12px 16px;border-top:1px solid var(--_border);}.mushi-footer-hint{flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-brand-footer{padding:6px 12px 8px;text-align:center;font-size:11px;color:var(--_muted);}.mushi-brand-link{color:inherit;text-decoration:none;}.mushi-brand-link:hover{text-decoration:underline;}.mushi-textarea,.mushi-input{width:100%;border:1px solid var(--_border);border-radius:10px;background:var(--_bg);color:var(--_fg);font:inherit;}.mushi-textarea{display:block;min-height:88px;max-height:40vh;padding:12px;font-size:15px;line-height:1.45;resize:vertical;}.mushi-input{flex:1;min-width:0;min-height:44px;padding:10px 12px;resize:none;}.mushi-textarea:focus,.mushi-input:focus{outline:2px solid var(--_accent);outline-offset:1px;border-color:transparent;}.mushi-textarea::placeholder,.mushi-input::placeholder{color:var(--_muted);opacity:1;}.mushi-chips{display:flex;flex-wrap:wrap;gap:6px;}.mushi-chip-group{display:contents;}.mushi-chip{min-height:44px;padding:0 14px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-chip:hover{background:var(--_surface);}.mushi-chip[aria-checked="true"]{background:var(--_fg);border-color:var(--_fg);color:var(--_bg);}.mushi-chip-more{border-style:dashed;color:var(--_muted);}.mushi-chip-sm{padding:0 12px;font-size:12px;}.mushi-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-attach-btn:hover{border-color:var(--_muted);}.mushi-attach-btn.active{border-color:var(--_ok);}.mushi-attach-btn.error{border-color:var(--_err);color:var(--_err);}.mushi-attach-btn[disabled]{cursor:progress;opacity:.75;}.mushi-screenshot-preview{display:flex;align-items:flex-start;gap:10px;width:100%;margin:0;}.mushi-screenshot-preview.open{flex-direction:column;}.mushi-thumb{flex:none;padding:0;border:1px solid var(--_border);border-radius:8px;background:var(--_surface);line-height:0;overflow:hidden;cursor:zoom-in;}.mushi-thumb img{display:block;width:72px;height:54px;object-fit:cover;}.mushi-screenshot-preview.open .mushi-thumb{cursor:zoom-out;}.mushi-screenshot-preview.open .mushi-thumb img{width:100%;height:auto;max-height:40vh;object-fit:contain;}.mushi-screenshot-preview figcaption{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;}.mushi-screenshot-hint{font-size:12px;color:var(--_muted);}.mushi-attach-actions{display:flex;gap:14px;}.mushi-annotate-host{width:100%;}.mushi-annotate-host:empty{display:none;}.mushi-note{margin:0;font-size:12px;line-height:1.45;color:var(--_muted);}.mushi-error-inline,.mushi-warn{color:var(--_err);}.mushi-empty{margin:0;padding:24px 8px;text-align:center;color:var(--_muted);}.mushi-link-btn{min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.mushi-btn,.mushi-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}.mushi-btn{border:1px solid var(--_border);background:none;color:var(--_fg);}.mushi-btn:hover{background:var(--_surface);}.mushi-submit{min-width:88px;padding:0 20px;border:0;background:var(--_accent);color:var(--_accent-fg);font-weight:600;}.mushi-submit:hover{filter:brightness(1.08);}.mushi-submit[aria-disabled="true"]{opacity:.45;cursor:not-allowed;}.mushi-submit[aria-busy="true"],.mushi-btn[aria-busy="true"]{cursor:progress;opacity:.75;}.mushi-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;}.mushi-check input{width:18px;height:18px;margin:0;accent-color:var(--_fg);}.mushi-inline-form{display:flex;gap:8px;width:100%;}.mushi-optins{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:4px;text-align:left;}.mushi-beta-strip{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:var(--_surface);font-size:13px;}.mushi-beta-strip p{margin:0;}.mushi-beta-tag{padding:0 6px;border-radius:4px;background:var(--_fg);color:var(--_bg);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}.mushi-beta-perks,.mushi-changelog ul{margin:0;padding-left:18px;font-size:12px;}.mushi-changelog summary{font-size:12px;color:var(--_muted);cursor:pointer;}.mushi-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:mushi-spin .8s linear infinite;}@keyframes mushi-spin{to{transform:rotate(360deg);}}.mushi-success{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 4px;text-align:center;}.mushi-success-stamp{position:relative;display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:var(--_accent);}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:none;stroke:currentColor;stroke-width:3;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-ring 600ms ease-out 60ms forwards;}.mushi-success-stamp-label{font-size:24px;font-weight:600;opacity:0;transform:rotate(-6deg);animation:mushi-press 300ms ease-out 450ms forwards;}@keyframes mushi-ring{to{stroke-dashoffset:0;}}@keyframes mushi-press{from{opacity:0;transform:rotate(-6deg) scale(1.3);}to{opacity:1;transform:rotate(-6deg) scale(1);}}.mushi-success-meta{font-size:12px;color:var(--_muted);}.mushi-success-receipt{display:flex;flex-direction:column;align-items:center;gap:6px;}.mushi-success-sla{margin:0;font-size:15px;}.mushi-success-receipt-id{min-height:24px;padding:2px 6px;border:1px dashed var(--_border);border-radius:6px;background:none;color:inherit;font-family:ui-monospace,monospace;font-size:12px;cursor:pointer;}.mushi-success-rewards{width:100%;}.mushi-success-pts-award{font-size:20px;font-weight:700;}.mushi-tier-bar-track{height:4px;margin:6px 0;border-radius:2px;background:var(--_surface);overflow:hidden;}.mushi-tier-bar-fill{height:100%;background:var(--_fg);transform-origin:left;transform:scaleX(var(--mushi-tier-pct,0));}.mushi-report-list,.mushi-thread,.mushi-assistant-log{display:flex;flex-direction:column;gap:8px;}.mushi-report-row{display:flex;flex-direction:column;gap:4px;width:100%;min-height:56px;padding:10px 12px;border:1px solid var(--_border);border-radius:10px;background:none;color:var(--_fg);font:inherit;text-align:left;}button.mushi-report-row{cursor:pointer;}button.mushi-report-row:hover{background:var(--_surface);}.mushi-report-row.unread{box-shadow:inset 3px 0 0 var(--_fg);}.mushi-row-top{display:flex;align-items:center;gap:8px;min-width:0;}.mushi-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.mushi-row-when,.mushi-row-meta,.mushi-event time,.mushi-bubble time{font-size:12px;color:var(--_muted);}.mushi-row-when{flex:none;}.mushi-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.mushi-row-news{font-size:13px;}.unread .mushi-row-title,.unread .mushi-row-news{font-weight:600;}.mushi-roadmap-row .mushi-btn{align-self:flex-start;}.mushi-pill{flex:none;display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;}.mushi-tone-neutral,.mushi-tone-muted{background:var(--_surface);color:var(--_muted);}.mushi-tone-info{background:${M.bg};color:color-mix(in oklab,${M.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${x.bg};color:color-mix(in oklab,${x.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${m.bg};color:color-mix(in oklab,${m.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${E.bg};color:color-mix(in oklab,${E.fg} 85%,var(--_fg));}.mushi-skeleton{display:flex;flex-direction:column;gap:8px;}.mushi-skeleton span{height:14px;border-radius:6px;background:var(--_surface);animation:mushi-shimmer 1.2s ease-in-out infinite alternate;}.mushi-skeleton span:nth-child(2){width:82%;}.mushi-skeleton span:nth-child(3){width:58%;}@keyframes mushi-shimmer{to{opacity:.45;}}.mushi-thread-summary{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:var(--_surface);}.mushi-card-status,.mushi-summary-text{margin:0;}.mushi-summary-text{font-size:14px;white-space:pre-wrap;word-break:break-word;}.mushi-card-thumb{align-self:flex-start;max-width:100%;max-height:160px;border-radius:8px;object-fit:contain;}.mushi-timeline{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;}.mushi-event{display:flex;justify-content:space-between;gap:8px;padding-left:10px;border-left:2px solid var(--_border);font-size:12px;color:var(--_muted);}.mushi-event time,.mushi-bubble time{flex:none;}.mushi-bubble,.mushi-assistant-msg{display:flex;flex-direction:column;gap:2px;max-width:88%;padding:8px 12px;border-radius:12px;background:var(--_surface);white-space:pre-wrap;word-break:break-word;}.mushi-bubble.dev,.mushi-assistant-msg.dev{align-self:flex-start;border:1px solid var(--_border);border-bottom-left-radius:4px;background:none;}.mushi-bubble.mine,.mushi-assistant-msg.mine{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in oklab,var(--_fg) 9%,var(--_bg));}.mushi-bubble strong{font-size:12px;}.mushi-bubble p{margin:0;font-size:14px;}.mushi-bubble-state{font-size:11px;color:var(--_muted);}.mushi-verify{display:flex;gap:8px;width:100%;}.mushi-verify .mushi-btn{flex:1;}.mushi-thread-composer{display:flex;align-items:flex-end;gap:8px;width:100%;}.mushi-reply{max-height:104px;overflow-y:auto;}.mushi-send{min-width:44px;padding:0;font-size:18px;}.mushi-thread-action-error{width:100%;margin:0;font-size:12px;}.mushi-assistant-greeting{margin:0;color:var(--_muted);}.mushi-lb{margin:0;padding:0;list-style:none;}.mushi-lb-row{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--_border);font-size:13px;}.mushi-lb-row.me{font-weight:600;}.mushi-xapp-group{display:flex;flex-direction:column;gap:6px;}.mushi-xapp-app-name{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:var(--_muted);}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);overflow:hidden;}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain;}.mushi-app-icon-initials{font-size:9px;font-weight:700;line-height:1;color:var(--_muted);}.mushi-toast{position:fixed;display:flex;align-items:center;gap:6px;max-width:min(380px,calc(100vw - 32px));padding:6px 6px 6px 14px;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:12px;box-shadow:var(--_shadow);font-size:14px;animation:mushi-open 180ms ease-out both;}.mushi-toast span{display:flex;flex-direction:column;flex:1;min-width:0;}.mushi-toast strong{font-weight:600;}.mushi-toast small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--_muted);}.mushi-toast .mushi-btn{padding:0 12px;}.mushi-toast.bottom-right,.mushi-toast.bottom-left{bottom:calc(var(--mushi-bottom,${j}px) + ${F}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${j}px) + ${F}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${j}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${j}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ne}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${_});animation:mushi-banner-slide-in ${Y}ms ${g} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${T};color:${b};border-bottom:1.5px solid ${S};}.mushi-banner.neon.bottom{border-top:1.5px solid ${S};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${b};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${d};color:${w};border-bottom:1.5px solid ${L};}.mushi-banner.brand.bottom{border-top:1.5px solid ${L};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${w};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${a?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${s};border-bottom:1px solid ${u};}.mushi-banner.subtle.bottom{border-top:1px solid ${u};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${s};border:1px solid ${u};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${a?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${ne}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${u};background:${a?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${me}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${K}ms ${g};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${K}ms ${g};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${d};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${K}ms ${g};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${K}ms ${g};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle{stroke-dashoffset:0;}.mushi-success-stamp-label{opacity:1;}}`}Vr();var P=bt,cd=["bug","slow","visual","confusing"];function ae(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function oa(t){if(t.step==="report")return md(t);if(t.step==="success")return vd(t);let e=t.views;if(!e)return dd(t);switch(t.step){case "reports":return e.reportsView(t);case "report-detail":return e.detailView(t);case "assistant":return e.assistantView(t);case "roadmap":return e.roadmapView(t);case "leaderboard":return e.leaderboardView(t);case "account":return e.accountView(t);case "cross-app-reports":return e.crossAppView(t)}}var sa=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function dd(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:zr(t,r,true),lead:"",body:pa(e.reports.loading),footer:""}}var aa={esc:bt,btn:ae,renderHeader:zr,chipLabel:Yn,skeleton:pa,formatRelativeTime:Os,renderAppIconHtml:Ks};function pd(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(ae("assistant",P(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(ae("roadmap",P(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(ae("open-leaderboard",P(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(ae("open-account",P(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function zr(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,a=i&&t.callbacks.onReporterReportsRequest?ae("reports",`${P(n.yourReports)}${o?` <span class="mushi-badge">${P(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",s=i?pd(t):[],u=s.length?`<div class="mushi-menu-wrap">${ae("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${t.showMoreNav}" aria-label="${P(n.moreOptions)}"`)}${t.showMoreNav?`<div class="mushi-menu" role="menu">${s.join("")}</div>`:""}</div>`:"";return `${r?ae("back","\u2190","mushi-icon-btn",` aria-label="${P(t.locale.widget.back)}"`):t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${P(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${P(e)}</h2>${a}${u}${ae("close","\u2715","mushi-icon-btn",` aria-label="${P(t.locale.widget.close)}"`)}`}function ua(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:i}=t.sdkFreshness;return !e&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${P(r)}</strong> ${e?`latest is ${P(e)}.`:"needs attention."}${i?` <span>${P(i)}</span>`:""}</div>`}function la(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${P(Ns(t.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${P(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function Yn(t,e){if(e==="idea"||e==="feature")return t.config.featureRequestLabel||t.rc.categories.idea;let r=t.resolveCustomCategory(e);return r?r.label:t.rc.categories[e]??""}function hd(t,e,r,n){let i=n===e;return `<button type="button" class="mushi-chip" role="radio" aria-checked="${i}" tabindex="${i||n===null&&r===0?"0":"-1"}" data-action="chip" data-category="${P(e)}">${P(Yn(t,e))}</button>`}function fd(t){let e=t.chip;if(!e||e==="idea")return [];let r=t.resolveCustomCategory(e);return r?r.intents??[]:(t.locale.step2.intents[e]??[]).slice(0,-1).slice(0,4)}function md(t){let e=t.locale,r=e.panel,n=e.step3,i=[...cd];t.config.featureRequestCard!==false&&i.push("idea");let o=t.config.categories??[];t.showAllCategories&&i.push(...o.map(x=>x.id));let a=i.map((x,m)=>hd(t,x,m,i.includes(t.chip??"")?t.chip:null)).join(""),s=o.length&&!t.showAllCategories?ae("show-all-categories",P(r.more),"mushi-chip mushi-chip-more"):"",u=fd(t),d=u.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${P(Yn(t,t.chip))}">${u.map((x,m)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===x}" tabindex="${t.intent===x||!t.intent&&m===0?"0":"-1"}" data-action="intent" data-intent="${P(x)}">${P(x)}</button>`).join("")}</div>`:"",p=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,h=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,k='<span class="mushi-spinner" aria-hidden="true"></span>',w=t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview${t.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${t.previewOpen}"><img src="${P(t.screenshotPreview)}" alt="${P(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${P(n.screenshotAttached)}</span>${t.screenshotHint?`<span class="mushi-screenshot-hint">${P(t.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${t.callbacks.onScreenshotAnnotateRequest?ae("annotate-screenshot",P(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?ae("remove-screenshot",P(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?ae("screenshot",`${t.screenshotCapturing?k:'<span aria-hidden="true">\u{1F4F7}</span>'}${P(p)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${P(p)}"`):"",T=t.elementAvailable?ae("element",`${t.elementCapturing?k:'<span aria-hidden="true">\u2316</span>'}${P(h)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${P(h)}"`):"",b=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${P(n.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` ${ae("screenshot-share-tab",P(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",S=t.identifiedUser?.name??t.identifiedUser?.email,L=t.chip==="idea",M=t.canSend?P(n.submitHint.replace("{key}",qs(js()))):P(t.rc.ui.addWords);return {header:zr(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${Wr}" placeholder="${P(L?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${P(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?bd(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${P(r.title)}">${a}</div>${s}</div>${d}<div class="mushi-attachments">${w}${T}</div>${b}<p class="mushi-note">\u{1F512} ${P(r.privacy)}</p>${S?`<p class="mushi-note">\u{1F464} ${P(S)}</p>`:""}${t.draftLength>Wr-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${Wr}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${M}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!t.canSend||t.submitting}"${t.submitting?' aria-busy="true"':""}>${P(t.submitting?e.widget.submitting:r.send)}</button>`}}function ca(t){let e=t.config.betaMode?.contactEmail?.trim();if(!e||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(e))return "";let r=`<a class="mushi-link-btn" href="mailto:${P(encodeURIComponent(e).replace(/%40/g,"@"))}">${P(e)}</a>`;return `<p class="mushi-note mushi-beta-contact">${P(t.locale.flows.betaStrip.contactHint).replace(P("{email}"),r)}</p>`}function gd(t){let e=t.config.betaMode;if(!e?.enabled)return "";let r=t.locale.flows.betaStrip,n=e.appName?r.teamSees.replace("{appName}",e.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${P(n)}</p>${ca(t)}</div>`}function Ed(t){let e=t.config.betaMode?.changelogItems?.[0];if(!e)return "";let r=P(t.locale.flows.changelog.whatsNew.replace("{version}",e.version));return `<details class="mushi-changelog"><summary>${e.date?`${r} \xB7 ${P(e.date)}`:r}</summary><ul>${e.items.map(n=>`<li>${P(n)}</li>`).join("")}</ul></details>`}function bd(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=P(e.appName??"This app"),i=e.message?P(e.message):P(r.defaultMessage).replace("{appName}",n),o=e.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${P(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${ca(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(a=>`<li>${P(a)}</li>`).join("")}</ul>`:""}${Ed(t)}</div>`}function da(t){let e=t.locale.flows.success;switch(t.lastSubmitFailureKind){case "rate_limited":return e.rateLimited;case "quota":return e.quotaBlocked;case "permanent":return e.permanentFailed;case "retrying":return e.retrying}return t.lastSubmitQueuedOffline?e.queuedOffline:null}function yd(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(da(t)){let a=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${P(a)}</p>`}let n=P((t.config.responseSlaLabel??"").trim()||e.slaDefault);if(!t.lastReportId)return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note"><span class="mushi-spinner" aria-hidden="true"></span> ${P(e.delivering)}</p></div>`;let i=P(t.lastReportId),o=(t.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note">${P(e.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${P(t.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${P(`${o}/reports/${encodeURIComponent(t.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${P(e.trackOnMushi)} \u2197</a>`:""}</p>${t.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${P(e.screenshotDropped)}</p>`:""}</div>`}function pa(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${P(t)}">${"<span></span>".repeat(e)}</div>`}function vd(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=da(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:zr(t,n??t.rc.ui.sent),lead:"",body:`<div class="mushi-success"><div class="mushi-success-stamp" aria-hidden="true"><svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="44"/></svg><span class="mushi-success-stamp-label">\u53D7</span></div><time class="mushi-success-meta" datetime="${r.toISOString()}">${P(Vs(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${yd(t)}${n?"":gd(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?wd(t):""}</div>`,footer:`${i?ae("track-report",P(e.trackReport),"mushi-btn"):"<span></span>"}${ae("done",P(e.done),"mushi-submit")}`}}function wd(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:i}=t.rewardsState,o=n+i,a=100,s="";if(r){let u=e?.pointsThreshold??0,d=r.pointsThreshold;a=d>u?Math.round(Math.min(1,(o-u)/(d-u))*100):100;let p=Math.max(0,d-o);s=p>0?`${p.toLocaleString()} pts to ${P(r.displayName)}`:`\u{1F389} ${P(r.displayName)}`;}return `<div class="mushi-success-rewards"><div class="mushi-success-pts-award">+${i} pts</div>${r?`<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="${P(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div></div><p class="mushi-note">${s}</p>`:""}</div>`}function ha(t){return yt(t)}function Fd(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var Zn=null,ei=null;function va(){return ei??=Promise.resolve().then(()=>(ya(),ba)).then(t=>(t.initViews(aa),Zn=t,t)),ei}var Jn=["notice","header","lead","body","footer","brand"],Qn=["description","reporter-reply","magic-link-email","optin-email"],$d=["bug","slow","visual","confusing","other"],Hd='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',Yr=class t{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;step="report";styleEl;styleKey="";panel;scroller;regionEls={};regionHtml={};live;renderedStep=null;triggerEl=null;triggerKey="";bannerEl=null;bannerKey="";toastEl=null;opener=null;chip=null;intent=null;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;screenshotByUser=false;previewOpen=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;drafts={};screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];timeline=null;pendingReplies=[];replySeq=0;selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;channels={email:false,push:false,emailPrefill:""};emailOptInOpen=false;emailState="idle";pushState="idle";attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;constructor(e={},r){this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??8,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel??"",featureRequestDescription:e.featureRequestDescription??"",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=zn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=Bs();n?.turns.length&&(this.assistantTurns=n.turns,this.assistantThreadId=n.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"}),this.styleEl=document.createElement("style"),this.panel=document.createElement("div"),this.panel.setAttribute("role","dialog"),this.panel.setAttribute("aria-modal","true"),this.panel.setAttribute("aria-labelledby","mushi-title"),this.scroller=document.createElement("div"),this.scroller.className="mushi-scroll";for(let i of Jn){let o=document.createElement("div");o.className=`mushi-${i}`,o.dataset.region=i,this.regionEls[i]=o;}this.scroller.append(this.regionEls.lead,this.regionEls.body),this.live=document.createElement("div"),this.live.className="mushi-sr",this.live.setAttribute("role","status"),this.live.setAttribute("aria-live","polite"),this.panel.append(this.regionEls.notice,this.regionEls.header,this.scroller,this.regionEls.footer,this.regionEls.brand,this.live),this.shadow.append(this.styleEl,this.panel),this.bindPanelEvents();}resolveCopy(){let e=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(e||"en").split(/[-_]/)[0].toLowerCase(),ha(this.lang)}mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(e).filter(([,s])=>s!==void 0));this.config={...this.config,...i,...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{}},this.locale=zn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",a=JSON.stringify(this.config.bannerConfig??null)!==n;(o||a)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}open(e){if(this.isOpen)return;this.rememberOpener(),this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.step="report";let r=e?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=e?.featureRequest?"idea":n||r&&r!=="other"&&$d.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.render(),this.callbacks.onOpen();}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.restoreOpenerFocus(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.ensureOpen(),this.step="assistant",this.assistantError=null,this.render();}ensureOpen(){this.isOpen||(this.rememberOpener(),this.isOpen=true,this.callbacks.onOpen());}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let i=n.text??"\u2026";this.assistantTurns.push({role:"assistant",text:i,...Fd(i)?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),this.scroller.scrollTop=this.scroller.scrollHeight;}}}persistAssistantSession(){Fs({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,$s(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.triggerEl;e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>e.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let i=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=s=>{s.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>i.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){this.screenshotAvailable=e.screenshot??this.screenshotAvailable,this.elementAvailable=e.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(e,r){this.screenshotError=e,this.screenshotErrorReason=e?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){this.panel.style.display="none";}showPanel(){this.panel.style.display="";}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText="position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483646;background:rgba(17,17,17,.92);color:#fff;font:12px/1.4 system-ui,sans-serif;padding:8px 16px;border-radius:20px;pointer-events:none;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.35)",e.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(e),this.selectorHint=e;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setBrandRef(e){this.brandRef!==e&&(this.brandRef=e,this.isOpen&&this.render());}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(e){this.channels={email:!!e.email,push:!!e.push,emailPrefill:e.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:i,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let i=e.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let e=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);e===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=e,this.bannerEl?.remove(),this.bannerEl=null,this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.renderBanner());}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed||!this.triggerVisible||this.isRouteHidden()||this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"subtle",n=e.position??"top",i=e.message?.trim()??"",o=i.length>0,a=e.bugCta??"\u{1F41B} Report a bug",s=e.featureCta!==false,u=e.featureCtaLabel??"Request feature",d=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(p)),h.setAttribute("role","banner");let k=document.createElement("button");if(k.className="mushi-banner-dismiss",k.textContent="\u2715",k.setAttribute("aria-label","Dismiss feedback banner"),k.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let w=document.createElement("div");w.className="mushi-banner-body";let T=e.label===false?null:e.label??"Beta";if(T){let x=document.createElement("span");x.className="mushi-banner-pill",x.textContent=T,w.appendChild(x);}let b=document.createElement("span");b.className="mushi-banner-message",b.textContent=i,w.appendChild(b),h.appendChild(w);let S=document.createElement("nav");S.className="mushi-banner-actions",S.setAttribute("aria-label","Feedback banner actions");let L=(x=false)=>{let m=document.createElement("span");m.className=`mushi-banner-divider${x?" mushi-banner-extra":""}`,m.setAttribute("aria-hidden","true"),m.textContent="|",S.appendChild(m);},M=(x,m,E=false)=>{let f=document.createElement("button");f.type="button",f.className=`mushi-banner-link${E?" mushi-banner-extra":""}`,f.textContent=x,f.addEventListener("click",m),S.appendChild(f);};M(a,()=>this.open({category:"bug"})),s&&(L(true),M(u,()=>this.open({featureRequest:true}),true));for(let x of e.links??[]){let m=x.label?.trim();if(!m)continue;let E=x.href&&(/^https?:\/\//i.test(x.href)||x.href.startsWith("/"))?x.href:void 0;if(L(true),E){let f=document.createElement("a");f.className="mushi-banner-link mushi-banner-extra",f.href=E,f.textContent=m,f.target="_blank",f.rel="noopener noreferrer",S.appendChild(f);}else M(m,()=>{x.featureRequest?this.open({featureRequest:true}):this.open();},true);}L(true),M(d,()=>this.openReporter(),true),h.appendChild(S),h.appendChild(k);}else {let w=document.createElement("button");if(w.className="mushi-banner-btn",w.textContent=a,w.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(w),s){let b=document.createElement("button");b.className="mushi-banner-btn",b.textContent=u,b.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(b);}let T=document.createElement("button");T.className="mushi-banner-my-reports",T.textContent=d,T.addEventListener("click",()=>this.openReporter()),h.appendChild(T),h.appendChild(k);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}probeRgb(e){let r=this.host.style,n=r.color;r.color=e;let i=(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)/);return r.color=n,i?[+i[1],+i[2],+i[3]]:null}resolveAccent(e){let r=vt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let s=getComputedStyle(document.documentElement);n.push(s.getPropertyValue("--mushi-accent").trim());let u=s.getPropertyValue("accent-color").trim();u&&u!=="auto"&&n.push(u);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=e?[18,18,18]:[255,255,255],o=r;for(let s of n){if(o)break;let u=vt(s),d=u?this.probeRgb(u):null;d&&Gn(d,i).ratio>=3&&(o=u);}if(!o)return {accent:"",accentFg:""};let a=this.probeRgb(o);return {accent:o,accentFg:vt(this.config.accentText??"")||(a?Gn(a).ink:"")}}syncChrome(){let e=this.getTheme(),{accent:r,accentFg:n}=this.resolveAccent(e==="dark"),i=`${e}|${r}|${n}`;i!==this.styleKey&&(this.styleKey=i,this.styleEl.textContent=ia(e,r,n)),this.syncBanner(),this.syncTrigger();}syncTrigger(){let e=this.shouldRenderTrigger(),r=this.config.position,n=e?this.effectiveTrigger():"",i=JSON.stringify([e,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]);(i!==this.triggerKey||e&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=e?this.buildTrigger(n):null),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl));}buildTrigger(e){let r=document.createElement("button");if(r.className=`mushi-trigger ${this.config.position}${e==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,r.textContent=this.config.triggerText,r.setAttribute("aria-label",this.locale.widget.trigger),r.setAttribute("aria-haspopup","dialog"),r.style.zIndex=String(this.config.zIndex),r.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),r.addEventListener("keydown",n=>{let i=this.config.draggable;if(!i)return;let o=8,a=typeof i=="object"?i.axis??"both":"both",s=0,u=0;if(a!=="y"&&(n.key==="ArrowLeft"?s=-o:n.key==="ArrowRight"&&(s=o)),a!=="x"&&(n.key==="ArrowUp"?u=-o:n.key==="ArrowDown"&&(u=o)),s!==0||u!==0){n.preventDefault();let d=this.fabPos??{x:0,y:0};this.moveFab(r,d.x+s,d.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(r),this.shadow.insertBefore(r,this.panel),this.fabPos&&this.config.draggable){let n=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(r,n.x,n.y,false);}return r}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false,this.syncChrome(),this.renderPanel();}renderPanel(){let e=this.panel;if(e.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}`,e.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(e),!this.isOpen){if(this.renderedStep!==null){for(let p of Jn)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!Zn&&(sa.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=oa(r),i={notice:ua(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:la(r)},o=this.renderedStep!==this.step,a=this.renderedStep===null,s=this.shadow.activeElement,u=s?wa(s):null;this.captureFormDrafts();let d=false;for(let p of Jn)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],d=true);this.renderedStep=this.step,d&&(zs(e),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,a||(e.classList.remove("mushi-swap"),e.offsetWidth,e.classList.add("mushi-swap")),this.focusView()):s&&!s.isConnected&&u&&e.querySelector(u)?.focus(),a&&this.attachViewportHandlers(e),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let e=this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");e&&(e.id==="mushi-title"&&(e.tabIndex=-1),e.focus({preventScroll:true}));}captureFormDrafts(){for(let n of Qn){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&Qn.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of Qn){let r=this.panel.querySelector(`[data-role="${e}"]`),n=this.drafts[e];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===e&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let i of r)try{let o=document.querySelector(i);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let i of r)try{let o=document.querySelector(i);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let s=window.innerHeight-a.top+e;s>n&&(n=s);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let s=o[a];s!==void 0&&e.style.setProperty(`--mushi-${a}`,s==="auto"?"auto":`${s}px`);});}e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");let n=r?.top!==void 0||this.config.position?.startsWith("top"),i=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,i){let o=this.config.draggable,a=o&&typeof o=="object"?o.axis??"both":"both",s=window.innerWidth,u=window.innerHeight,d=e.offsetWidth||52,p=e.offsetHeight||52,h=getComputedStyle(document.documentElement),k=Y=>parseInt(h.getPropertyValue(`--sai-${Y}`)||"0")||0,w=k("left"),T=k("right"),b=k("top"),S=k("bottom"),L=8,M=e.getBoundingClientRect(),x=M.left-(this.fabPos?.x??0),m=M.top-(this.fabPos?.y??0),E=w+L-x,f=s-T-L-d-x,g=b+L-m,_=u-S-L-p-m,D=a==="x"?0:Math.max(g,Math.min(_,n)),v=a==="y"?0:Math.max(E,Math.min(f,r));if(i&&(o===true||typeof o=="object"&&(o.snapToEdge??true))&&a!=="y"&&(v=M.left+d/2<s/2?w+L-x:s-T-L-d-x),this.fabPos={x:v,y:D},e.style.setProperty("--mushi-drag-x",`${v}px`),e.style.setProperty("--mushi-drag-y",`${D}px`),e.style.setProperty("--mushi-drag-active","1"),o===true||typeof o=="object"&&(o.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,i=0,o=0,a=false,s=false,u=6;e.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;e.setPointerCapture(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,a=true,s=false;}),e.addEventListener("pointermove",p=>{if(!a)return;let h=p.clientX-r,k=p.clientY-n;!s&&Math.hypot(h,k)>u&&(s=true,e.classList.add("dragging")),s&&(p.preventDefault(),this.moveFab(e,i+h,o+k,false));});let d=p=>{if(a){if(a=false,e.classList.remove("dragging"),s){this.moveFab(e,i+p.clientX-r,o+p.clientY-n,true);let h=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",h,{capture:true});};e.addEventListener("click",h,{capture:true});}s=false;}};e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=typeof window<"u"?window.visualViewport:null;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open")):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);e.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(e/2)):e}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:Zn,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,elementSelected:this.elementSelected,elementCapturing:this.elementCapturing,elementError:this.elementError,allowScreenshotRemove:this.allowScreenshotRemove,identifiedUser:this.identifiedUser,lastReportId:this.lastReportId,submittedAt:this.submittedAt,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,channels:this.channels,emailOptInOpen:this.emailOptInOpen,emailState:this.emailState,pushState:this.pushState,reporterReports:this.reporterReports,listLoading:this.listLoading,reporterError:this.reporterError,selectedReportId:this.selectedReportId,reporterComments:this.reporterComments,timeline:this.timeline,pendingReplies:this.pendingReplies,threadLoading:this.threadLoading,threadError:this.threadError,actionPending:this.actionPending,actionError:this.actionError,unreadCount:this.unreadCount(),showMoreNav:this.showMoreNav,pageFaviconHref:Ls(),sdkFreshness:this.sdkFreshness,brandRef:this.brandRef,rewardsState:this.rewardsState,testerReputation:this.testerReputation,testerInfo:this.testerInfo,testerJwt:this.testerJwt,magicLinkError:this.magicLinkError,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,magicLinkSent:this.magicLinkSent,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,crossAppLoading:this.crossAppLoading,crossAppReports:this.crossAppReports,featureBoard:this.featureBoard,assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,tierColor:e=>qn[e]??qn.default,resolveCustomCategory:e=>this.resolveCustomCategory(e)}}bindPanelEvents(){let e=this.panel;e.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),e.addEventListener("click",r=>{let n=r.target;if(n.closest('[data-role="annotate-host"]'))return;let i=n.closest("[data-action],[data-report-id],[data-vote-id]");if(!i||i.tagName==="FORM")return;if(i.dataset.voteId){this.voteFeatureBoard(i.dataset.voteId);return}let o=i.dataset.action;if(!o&&i.dataset.reportId){this.openThread(i.dataset.reportId);return}o&&this.handleAction(o,i);}),e.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;i&&(this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&Sa(n),i==="description"&&this.render());}),e.addEventListener("submit",r=>{r.preventDefault();let n=e.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),e.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(e){let r=e.target;if(e.key==="Escape"){if(e.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(Us(e)||e.key==="Enter"&&!e.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(e.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(e.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(e.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(e.key==="Tab"){this.trapTab(e);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(e.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(e.key)?1:-1)+n.length)%n.length];if(!o)return;e.preventDefault(),o.click(),this.panel.querySelector(wa(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(Hd)).filter(a=>!a.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;e.shiftKey&&(o===n||!this.panel.contains(o))?(e.preventDefault(),i.focus()):!e.shiftKey&&o===i&&(e.preventDefault(),n.focus());}handleAction(e,r){let n=r.dataset.value??"";switch(e){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "toggle-more-nav":this.showMoreNav=!this.showMoreNav,this.render();return;case "show-all-categories":this.showAllCategories=true,this.render();return;case "chip":{let i=r.dataset.category??"";this.chip=this.chip===i?null:i,this.intent=null,this.render();return}case "intent":{let i=r.dataset.intent??null;this.intent=this.intent===i?null:i,this.render();return}case "screenshot":this.screenshotByUser=true,this.callbacks.onScreenshotRequest();return;case "screenshot-share-tab":this.screenshotByUser=true,this.callbacks.onScreenshotShareTabRequest?.();return;case "remove-screenshot":this.callbacks.onScreenshotRemove?.();return;case "toggle-preview":this.previewOpen=!this.previewOpen,this.render();return;case "annotate-screenshot":{let i=this.panel.querySelector('[data-role="annotate-host"]');this.screenshotByUser=true,i&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(i);return}case "element":this.callbacks.onElementSelectorRequest?.();return;case "submit":this.submitReport();return;case "done":this.close();return;case "track-report":this.lastReportId&&this.openTrackedReport(this.lastReportId);return;case "copy-report-id":Od(r);return;case "reports":this.showMoreNav=false,this.loadReporterReports();return;case "retry-list":this.loadReporterReports();return;case "retry-thread":this.selectedReportId&&this.openThread(this.selectedReportId);return;case "reporter-reply":this.submitReporterReply();return;case "retry-reply":this.sendPendingReply(Number(n));return;case "reporter-confirms":this.submitReporterFeedback("confirms");return;case "reporter-not-fixed":this.submitReporterReopen();return;case "email-optin":this.emailOptInOpen=r.checked,this.render();return;case "save-email":this.saveEmailOptIn();return;case "notify-me":this.subscribePush();return;case "assistant":this.showMoreNav=false,this.openAssistantTab();return;case "assistant-suggest":this.sendAssistantMessage(n);return;case "assistant-report":this.step="report",this.render();return;case "roadmap":this.showMoreNav=false,this.loadFeatureBoard();return;case "open-leaderboard":this.showMoreNav=false,this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();return;case "open-account":this.showMoreNav=false,this.step="account",this.render();return;case "open-cross-app-reports":this.step="cross-app-reports",this.crossAppReports=this.callbacks.onCrossAppReportsOpen?null:[],this.crossAppLoading=!!this.callbacks.onCrossAppReportsOpen,this.render(),this.callbacks.onCrossAppReportsOpen?.();return;case "open-global-leaderboard":this.step="leaderboard",this.globalLeaderboard=this.callbacks.onGlobalLeaderboardOpen?null:[],this.globalLeaderboardLoading=!!this.callbacks.onGlobalLeaderboardOpen,this.render(),this.callbacks.onGlobalLeaderboardOpen?.();return;case "send-magic-link":this.handleMagicLinkSend();return;case "resend-magic-link":this.magicLinkSent=false,this.magicLinkError="",this.render();return;case "sign-out-tester":this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="report",this.callbacks.onTesterSignOut?.(),this.render();return}}goBack(){let e={"report-detail":"reports","cross-app-reports":"account"};this.step=e[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}submitReport(){if(this.submitting)return;let e=this.panel.querySelector('[data-role="description"]');if(e&&(this.drafts.description=e.value),!this.canSend()){this.announce(this.rc.ui.addWords),e?.focus();return}let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,a=n==="idea",s=a||!n?"other":i?i.baseCategory??"other":n,u=i?n:a?"feature":o&&n?n:void 0,d=a?Hs:this.intent??void 0;this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let p=(async()=>{try{let h=this.callbacks.onSubmit({category:s,...u?{userCategory:u}:{},description:r,...d?{intent:d}:{}});return h&&typeof h.then=="function"?await h??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),p.then(h=>{this.step!=="success"||!h||(this.lastReportId=h.reportId??null,this.lastSubmitQueuedOffline=!!h.queuedOffline,this.lastSubmitFailureKind=h.failureKind,this.lastSubmitScreenshotDropped=!!h.screenshotDropped,this.render());});},500);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(e,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.openThread(n,!0),!0}catch(i){return this.actionError=i instanceof Error?i.message:e,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async e=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me");});}async submitReporterFeedback(e){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,e)));}async refreshReporterInboxQuiet(){try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Mt(e,Lt):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Mt(e,Lt):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(e){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(e);}async openThread(e,r=false){this.selectedReportId!==e&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=e,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(e));try{let n=this.callbacks.onReporterReportRequest?.(e),i=n?await Mt(n,Lt):null;if(i)this.selectedReportId===e&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===e?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(e),a=o?await Mt(o,Lt):[];this.selectedReportId===e&&(this.reporterComments=a);}}catch{this.selectedReportId===e&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(e){let r=this.reporterReports.find(n=>n.id===e);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(e)).catch(()=>{}));}submitReporterReply(){let e=this.panel.querySelector('[data-role="reporter-reply"]'),r=(e?.value??"").trim();if(!r||!this.selectedReportId)return;let n=++this.replySeq;this.pendingReplies.push({id:n,body:r,state:"sending"}),delete this.drafts["reporter-reply"],e&&(e.value="",Sa(e)),this.sendPendingReply(n);}async sendPendingReply(e){let r=this.pendingReplies.find(i=>i.id===e),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Mt(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Lt),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==e),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let e=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!Js(e)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(e),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let e=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await e,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(e){let r=(await va()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await va();}catch{ei=null;}}showUpdatesFeedToast(e,r){if(!(e.unread_total>0))return false;let n=new Set(e.latest.map(s=>s.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(s=>s.id===i):void 0,a=o?.title??o?.summary??(i?e.latest[0]?.preview:void 0);return this.showUpdateToast({text:Xs(e,this.lang),reportId:i,...a?{detail:a}:{}})}showUpdateToast(e){if(this.isOpen||!this.triggerVisible||this.triggerHiddenByScroll||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;this.removeToast();let r=document.createElement("div");r.className=`mushi-toast ${this.config.trigger==="banner"?`banner-${this.config.bannerConfig?.position??"top"}`:this.config.position}`,r.setAttribute("role","status"),r.style.zIndex=String(this.config.zIndex+1);let n=document.createElement("span"),i=document.createElement("strong");if(i.textContent=e.text,n.append(i),e.detail){let s=document.createElement("small");s.textContent=e.detail,n.append(s);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let s=e.reportId;s?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(s);}):this.openReporter();});let a=document.createElement("button");return a.type="button",a.className="mushi-icon-btn",a.textContent="\u2715",a.setAttribute("aria-label",this.locale.widget.close),a.addEventListener("click",()=>this.removeToast()),r.append(n,o,a),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let e=document.activeElement;this.opener=e===this.host?this.shadow.activeElement:e;}restoreOpenerFocus(){let e=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,e&&e!==document.body&&e.focus({preventScroll:true});}announce(e){this.live.textContent="",setTimeout(()=>{this.live.textContent=e;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let e=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!e||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=e,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(e),this.magicLinkSent=!0;}catch(r){this.magicLinkError=r instanceof Error?r.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}openReporter(){this.loadReporterReports();}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector("#mushi-title")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:0}}getRecorderTrigger(){return this.triggerEl}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(e){this.isOpen||this.open(),this.step="report",this.chip=e,this.intent=null,this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="report"||(this.intent=e,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function wa(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${Gr(e.category)}"]`:e.intent?`[data-intent="${Gr(e.intent)}"]`:e.reportId?`[data-report-id="${Gr(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${Gr(e.value)}"]`:""}`:null}function Gr(t){return t.replace(/["\\]/g,"\\$&")}function Sa(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function Od(t){let e=t.dataset.copyId;if(!e)return;let r=t.textContent,n=()=>{t.textContent="Copied \u2713",window.setTimeout(()=>{t.isConnected&&(t.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(n,n):n();}catch{n();}}function ti(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function ri(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function ni(t){ri("localStorage",`mushi_has_reports_${t}`,"1");}function ii(t){return ti("localStorage",`mushi_has_reports_${t}`)==="1"}function xa(t,e=Date.now()){if(ti("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(ti("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function Ra(t,e=Date.now()){ri("sessionStorage",`mushi_toast_${t}`,"1"),ri("localStorage",`mushi_toast_at_${t}`,String(e));}function ka(t){let e=t.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>e("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>e("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>e("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>e("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>e("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>e("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>e("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>e("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function Ca(t,e,r,n){try{if(!r||typeof Notification>"u"||!navigator.serviceWorker)return {ok:!1,reason:"unsupported"};if(!n)return {ok:!1,reason:"not_available"};if(await Notification.requestPermission()!=="granted")return {ok:!1,reason:"denied"};let i=await navigator.serviceWorker.register(r),o=n.replace(/-/g,"+").replace(/_/g,"/"),a=atob(o+"=".repeat((4-o.length%4)%4)),s=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(a,d=>d.charCodeAt(0))}),u=await t.subscribePush(e,s.toJSON());return u.ok?{ok:!0}:{ok:!1,reason:u.error?.code??"error"}}catch(i){return {ok:false,reason:i instanceof Error&&i.name||"error"}}}function Nd(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}var Ud=["brandFooter"],qd=["manual","attach"];function _a(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,a=r.widget?.trigger,s=i??e.widget?.trigger,u=a!==void 0&&qd.includes(a)&&s!=="hidden",p=u?void 0:(u||s==="auto"&&o&&o!=="auto"?void 0:s)??(n==="none"||n==="shake"?"manual":void 0),h=i==="hidden"||e.widget?.trigger==="hidden",k=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,w=e.widget,T=w?.bannerVariant,b=w?.bannerPosition,S=w?.bannerMessage,L=w?.bannerLabel,M=w?.bannerBugCta,x=w?.bannerFeatureCta,m=T||b||S!=null||L!=null||M!=null||x!=null?{...t.widget?.bannerConfig??{},...T?{variant:T}:{},...b?{position:b}:{},...S!=null?{message:S}:{},...L!=null?{label:L===""?false:L}:{},...M!=null?{bugCta:M??void 0}:{},...x!=null?{featureCta:x}:{}}:void 0,E={};if(e.widget)for(let[f,g]of Object.entries(e.widget))f==="trigger"||f==="launcher"||g!=null&&(Ud.includes(f)&&r.widget?.[f]!==void 0||(E[f]=g));return {...t,widget:{...t.widget,...E,...k?{trigger:k}:{},...m?{bannerConfig:m}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Nd(t.capture,e.capture),privacy:{...t.privacy}}}function Xr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Ta(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Xr(t.getRecorderTrigger()),getCategoryCenter:r=>Xr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Xr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Xr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var oi=null,si=null,lr=null,cr=null,dr=null,pr=null,hr=null,Jr=false,wt=new Set;function jd(){for(let t of wt)try{t.onPush?.();}catch{}}function Wd(){for(let t of wt)try{t.onReplace?.();}catch{}}function Vd(){for(let t of wt)try{t.onPop?.();}catch{}}function Kd(){Jr||typeof window>"u"||(lr=History.prototype.pushState,cr=History.prototype.replaceState,oi=lr.bind(history),si=cr.bind(history),dr=function(...e){let n=(oi??History.prototype.pushState.bind(history))(...e);return jd(),n},pr=function(...e){let n=(si??History.prototype.replaceState.bind(history))(...e);return Wd(),n},history.pushState=dr,history.replaceState=pr,hr=()=>Vd(),window.addEventListener("popstate",hr),Jr=true);}function Aa(){!Jr||typeof window>"u"||(hr&&(window.removeEventListener("popstate",hr),hr=null),dr&&history.pushState===dr&&lr&&(history.pushState=lr),pr&&history.replaceState===pr&&cr&&(history.replaceState=cr),dr=null,pr=null,oi=null,si=null,lr=null,cr=null,Jr=false);}function Me(t){return Kd(),wt.add(t),()=>{wt.delete(t),wt.size===0&&Aa();}}function Ia(){wt.clear(),Aa();}var zd=3e4,Gd=3e5,Yd=6e4,Xd=60,Da="mushi_session_min_day_",Bt=[],Ft=null,$t=null,Ge=null,Pa=null,ai=null,Ht=null,rt=false,mr=null,Ba=0,Jd=300*1e3,ci=0,Qd=900*1e3;function di(){return Date.now()<ci}function pi(t){t?.startsWith("HTTP_4")&&(ci=Date.now()+Qd);}var Ma=new Set;function ui(t){return `mushi_rewards_consent_${t}`}function Zd(t){try{return localStorage.getItem(ui(t))==="1"}catch{return false}}function li(t,e){try{e?localStorage.setItem(ui(t),"1"):localStorage.removeItem(ui(t)),rt=e;}catch{}}function Fa(){return new Date().toISOString().slice(0,10)}function $a(t){try{let e=sessionStorage.getItem(`${Da}${t}_${Fa()}`);return e?parseInt(e,10):0}catch{return 0}}function ep(t){let e=Fa(),r=`${Da}${t}_${e}`;try{let n=$a(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ha(t){Ht=t.client,Ge=t.userId,Pa=t.traits??null,ai=t.reporterToken??null;let{projectId:e}=t,r=Math.max(zd,t.config.flushIntervalMs??Gd);t.config.consentMode==="auto"?(rt=true,li(e,true)):rt=Zd(e),t.config.trackActivity&&rp(e),Ft&&clearInterval(Ft),Ft=setInterval(()=>tp(t),r),$t&&clearInterval($t),$t=setInterval(()=>{if(!rt||!Ge)return;let n=$a(e);n<Xd&&(ep(e),Ot({action:"session_minute",metadata:{minutes_today:n+1}}));},Yd),t.config.showInWidget&&hi(Ge).then(n=>{n&&ja(n,t.config);}),t.config.consentMode!=="auto"&&!rt&&ip(e,t.config);}function Ot(t){!rt||!Ge||Bt.push({...t,queuedAt:Date.now()});}async function tp(t){if(!rt||!Ge||Bt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(di())return;let r=Bt.splice(0,100);try{let n=ai?await nr(ai):void 0,i=await t.client.submitActivity(Ge,r,{userTraits:Pa??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(pi(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Bt.unshift(...r.slice(0,50)));}catch{Bt.unshift(...r.slice(0,50));}}async function Oa(t){let e=Date.now();return mr&&e-Ba<Jd?mr:hi(t)}async function hi(t){if(!Ht||di())return null;let e=await Ht.getMyTier(t);return e.ok&&e.data?(mr=e.data,Ba=Date.now(),mr):(pi(e.error?.code),null)}async function Na(t=10){if(!Ht||di())return null;try{let e=await Ht.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(pi(e.error?.code),null)}catch{return null}}function Ua(){Ft&&(clearInterval(Ft),Ft=null),$t&&(clearInterval($t),$t=null),qa(),np(),ve&&(ve.remove(),ve=null),Bt=[],Ge=null,Ht=null,rt=false,mr=null,ci=0;}var Zr=null,fr=null,en=null,La="",Qr=false;function rp(t){if(Qr&&en)return;Qr&&qa(),Qr=true;let e=()=>{let n=location.pathname;if(n===La)return;La=n,!Ma.has(`${t}:${n}`)&&(Ma.add(`${t}:${n}`),Ot({action:"screen_view_unique_per_day",metadata:{route:n}}));};en=Me({onPush:e,onPop:e}),e(),Zr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;Zr.observe(r,{childList:true,subtree:false}),fr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Ot({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",fr,{capture:true,passive:true});}function qa(){Qr=false,en?.(),en=null,Zr?.disconnect(),Zr=null,fr&&(document.removeEventListener("click",fr,{capture:true}),fr=null);}var ze=null;function ja(t,e){if(!e.showInWidget)return;ze&&ze.remove(),ze=document.createElement("div"),ze.id="mushi-tier-badge",Object.assign(ze.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=ze.attachShadow({mode:"closed"});r.innerHTML=`
5
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Zs(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(e.dataset.candidates??"[]");}catch{i=[];}let o=0,a=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{Fs(r)&&a();};});}Gr();var Yr={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Sending\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{moreNav:{communityIdeas:"Community ideas",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"}},step2:{intents:{bug:["Crash","Wrong result","Unresponsive","Data loss","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{descriptionPlaceholder:"What went wrong?",featurePlaceholder:"Describe your idea\u2026",submitHint:"{key} + Enter to send",screenshotButton:"Screenshot",screenshotAttached:"Screenshot attached",screenshotCapturing:"Taking screenshot\u2026",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Point at it",elementSelected:"Element selected",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel"},panel:{title:"Send feedback",more:"More\u2026",pointAt:"Point at it",remove:"Remove",markUp:"Mark up",privacy:"Shown only to the app\u2019s developer. Remove anything private.",send:"Send",yourReports:"Your reports",newCount:"{n} new",moreOptions:"More options",reportTitle:"Your report",notifyMe:"Notify me",notifyOn:"Notifications are on."},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{reports:{title:"Your reports",loading:"Loading reports\u2026"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{loading:"Loading updates\u2026",replyPlaceholder:"Reply to the developer\u2026"},success:{done:"Done",trackReport:"Track it",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We'll let you know here when there's news.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Questions? {email}",teamSees:"The {appName} team will see this",teamSeesGeneric:"The team will see this",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi"}};var ia={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"}},step2:{intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",submitHint:"{key} + Enter \u3067\u9001\u4FE1",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3082\u3046\u4E00\u5EA6",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u307E\u3057\u305F\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u5185\u5BB9\u306E\u305F\u3081\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u3002",timeout:"\u53D6\u5F97\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u3059",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u610F\u898B\u3092\u9001\u308B",more:"\u305D\u306E\u4ED6\u2026",pointAt:"\u5834\u6240\u3092\u6307\u3059",remove:"\u524A\u9664",markUp:"\u66F8\u304D\u8FBC\u3080",privacy:"\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n}",moreOptions:"\u305D\u306E\u4ED6\u306E\u30E1\u30CB\u30E5\u30FC",reportTitle:"\u3042\u306A\u305F\u306E\u5831\u544A",notifyMe:"\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308B",notifyOn:"\u901A\u77E5\u304C\u30AA\u30F3\u306B\u306A\u308A\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u8FFD\u8DE1\u3059\u308B",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u9032\u6357\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8"},betaStrip:{defaultMessage:"{appName}\u306F\u958B\u767A\u521D\u671F\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067",teamSees:"{appName}\u306E\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",teamSeesGeneric:"\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi \u3067"}};var oa={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{moreNav:{communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"}},step2:{intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{descriptionPlaceholder:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",screenshotButton:"\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E25\u0E49\u0E27",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01"},panel:{title:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19",more:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u2026",pointAt:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",remove:"\u0E25\u0E1A",markUp:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",privacy:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E41\u0E2D\u0E1B\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27\u0E2D\u0E2D\u0E01",send:"\u0E2A\u0E48\u0E07",yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",newCount:"\u0E43\u0E2B\u0E21\u0E48 {n}",moreOptions:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",reportTitle:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",notifyMe:"\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E09\u0E31\u0E19",notifyOn:"\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E41\u0E25\u0E49\u0E27"},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u2026",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026"},success:{done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21? {email}",teamSees:"\u0E17\u0E35\u0E21 {appName} \u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",teamSeesGeneric:"\u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi"}};var sa={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{moreNav:{communityIdeas:"Ideas de la comunidad",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"}},step2:{intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{descriptionPlaceholder:"\xBFQu\xE9 sali\xF3 mal?",featurePlaceholder:"Describe tu idea\u2026",submitHint:"{key} + Enter para enviar",screenshotButton:"Captura",screenshotAttached:"Captura adjunta",screenshotCapturing:"Tomando captura\u2026",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Se\xF1alarlo",elementSelected:"Elemento seleccionado",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar"},panel:{title:"Enviar comentarios",more:"M\xE1s\u2026",pointAt:"Se\xF1alarlo",remove:"Quitar",markUp:"Marcar",privacy:"Solo lo ve el desarrollador de la app. Quita cualquier dato privado.",send:"Enviar",yourReports:"Tus reportes",newCount:"{n} nuevos",moreOptions:"M\xE1s opciones",reportTitle:"Tu reporte",notifyMe:"Avisarme",notifyOn:"Las notificaciones est\xE1n activadas."},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{reports:{title:"Tus reportes",loading:"Cargando reportes\u2026"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{loading:"Cargando novedades\u2026",replyPlaceholder:"Responder al desarrollador\u2026"},success:{done:"Listo",trackReport:"Seguirlo",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Te avisaremos aqu\xED cuando haya novedades.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"\xBFPreguntas? {email}",teamSees:"El equipo de {appName} lo ver\xE1",teamSeesGeneric:"El equipo lo ver\xE1",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi"}};var aa={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi \u63D0\u4F9B"}};var gd={en:Yr,ja:ia,th:oa,es:sa,zh:aa};function Jn(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Yr;let r=e.split("-")[0].toLowerCase();return gd[r]??Yr}function Ed(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${i},${o}`}function la(t,e="",r=""){let n=t==="dark",i=n?"dark":"light",o=Yn(i),a=As(i,e,r),s=ks[i];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?zn.dark:zn.light,accentRgb:Ed(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:xs,inverse:Rs,neonBannerBg:jr.bg,neonBannerFg:jr.fg,neonBannerBorder:jr.border,brandBannerBorder:n?Gn.dark:Gn.light,statusSent:s.sent,statusReview:s.review,statusFixing:s.fixing,statusFixed:s.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Wr.fontDisplay,fontBody:Wr.fontBody,fontMono:Wr.fontMono,easeStamp:Vr.easeStamp,zBanner:Lt.banner,zPanel:Lt.panel,zOverlay:Lt.overlay,fabSize:Dt.fabSize,panelWidth:Dt.panelWidth,panelSheetBreakpoint:Dt.panelSheetBreakpoint}}function yt(t){let e=t.trim();return !e||e.length>64||!/^[#\w\s(),.%/+-]+$/.test(e)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",e)?"":e}function ua([t,e,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(t)+.7152*n(e)+.0722*n(r)}function Qn(t,e){let r=ua(t),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return e?{ink:"",ratio:n(ua(e))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function ca(t,e="",r=""){let n=la(t),i=yt(e),o=yt(r),{isDark:a,ink:s,ruleStrong:u,widgetAccent:p,shadowInk:d,ok:h,danger:k,inverse:S,neonBannerBg:T,neonBannerFg:b,neonBannerBorder:v,brandBannerBorder:L,statusSent:A,statusReview:R,statusFixing:m,statusFixed:g,fontMono:f,easeStamp:E,zBanner:C,fabSize:D}=n,{durationFast:w}=Vr,{instant:G,panel:Y}=Ts,{bannerHeight:ne,gutter:W,panelWidth:Te,panelMaxHeight:Oe,panelSheetBreakpoint:me,edgeTabWidth:J}=Dt,N=D+Cs.comfy,O=_s.control;return ` :host{all:initial;color-scheme:${a?"dark":"light"};font-family:var(--mushi-font,inherit);font-size:var(--mushi-font-size,14px);line-height:1.45;--_bg:var(--mushi-bg,Canvas);--_fg:var(--mushi-fg,CanvasText);--_muted:var(--mushi-muted,color-mix(in oklab,var(--_fg) 64%,transparent));--_surface:var(--mushi-surface,color-mix(in oklab,var(--_bg) 94%,var(--_fg)));--_border:var(--mushi-border,color-mix(in oklab,var(--_fg) 16%,transparent));--_accent:var(--mushi-accent,${i||"var(--_fg)"});--_accent-fg:var(--mushi-accent-fg,${i?o||"white":"var(--_bg)"});--_ok:var(--mushi-success,${h});--_err:var(--mushi-error,${k});--_radius:var(--mushi-radius,12px);--_shadow:var(--mushi-shadow,0 12px 40px rgb(0 0 0 / .18));color:var(--_fg);-webkit-font-smoothing:antialiased;pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel,.mushi-toast{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${D}px;height:${D}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${O}px;background:var(--_bg);color:var(--_fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 1px 0 var(--_border),0 6px 14px -8px rgba(${d},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${w}ms ${E},opacity ${w}ms ${E};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--_accent);box-shadow:0 0 0 0 var(--_accent);animation:mushi-pulse 2.4s ${E} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${d},0.45),0 0 20px -6px color-mix(in oklab,var(--_accent) 22%,transparent),inset 0 -3px 0 var(--_accent);}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 var(--_border),0 2px 4px -2px rgba(${d},0.35),inset 0 -2px 0 var(--_accent);}.mushi-trigger:focus-visible{outline:2px solid var(--_accent);outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 55%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${d},0.45);}70%{box-shadow:0 0 0 16px color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${d},0.45);}100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${d},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${E} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${W}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${W}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${W}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${W}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${W}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${W}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${W}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${W}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${J}px;height:88px;border-radius:${O}px 0 0 ${O}px;writing-mode:vertical-rl;text-orientation:upright;font-size:16px;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${d},0.45),inset -3px 0 0 var(--_accent);}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:var(--mushi-right,0);}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:var(--mushi-left,0);border-radius:0 ${O}px ${O}px 0;box-shadow:0 1px 0 var(--_border),0 10px 24px -14px rgba(${d},0.45),inset 3px 0 0 var(--_accent);}.mushi-trigger.shrunk{width:${ne}px;height:${ne}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${Lt.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${d},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger{transition:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 var(--_accent);opacity:1;}70%{box-shadow:0 0 0 8px transparent;opacity:0.5;}100%{box-shadow:0 0 0 0 transparent;opacity:1;}}.mushi-panel{position:fixed;width:calc(${Te}px + 40px);max-width:calc(100vw - 32px);max-height:min(calc(${Oe}px + 160px),calc(100dvh - 96px - var(--mushi-keyboard-inset,0px)));background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);}.mushi-panel.open{animation:mushi-open 180ms cubic-bezier(.2,.8,.2,1) both;}.mushi-panel.closed{display:none;}.mushi-panel.mushi-swap .mushi-scroll,.mushi-panel.mushi-swap .mushi-footer{animation:mushi-fade 120ms ease-out both;}@keyframes mushi-open{from{opacity:0;transform:translateY(8px);}}@keyframes mushi-fade{from{opacity:0;}}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${W}px) + ${N}px));right:var(--mushi-right,calc(${W}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${W}px) + ${N}px));left:var(--mushi-left,calc(${W}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${W}px) + ${N}px));right:var(--mushi-right,calc(${W}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${W}px) + ${N}px));left:var(--mushi-left,calc(${W}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${me}px){.mushi-panel{left:0 !important;right:0 !important;top:auto !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 24px - var(--mushi-keyboard-inset,0px));border-radius:var(--_radius) var(--_radius) 0 0;bottom:var(--mushi-keyboard-inset,0px) !important;padding-bottom:env(safe-area-inset-bottom,0px);}}.mushi-panel :focus-visible{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}.mushi-notice:empty,.mushi-lead:empty,.mushi-footer:empty,.mushi-brand:empty{display:none;}.mushi-outdated{margin:8px 12px 0;padding:8px 10px;border-radius:8px;background:var(--_surface);font-size:12px;}.mushi-header{display:flex;align-items:center;gap:8px;min-height:56px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--_border);}.mushi-title{flex:1;min-width:0;margin:0;font-size:16px;font-weight:600;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;}.mushi-title:focus{outline:none;}.mushi-header-host-icon{width:20px;height:20px;margin-right:8px;border-radius:4px;object-fit:contain;}.mushi-header .mushi-icon-btn:first-child{margin-left:-10px;}.mushi-header .mushi-icon-btn:last-child{margin-right:-4px;}.mushi-beta-receipt{display:flex;flex-direction:column;gap:2px;align-items:center;}.mushi-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--_muted);font:inherit;font-size:17px;cursor:pointer;}.mushi-icon-btn:hover{background:var(--_surface);color:var(--_fg);}.mushi-pill-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.mushi-pill-btn:hover{background:var(--_surface);}.mushi-badge{padding:1px 7px;border-radius:999px;background:var(--_fg);color:var(--_bg);font-size:11px;font-weight:600;}.mushi-menu-wrap{position:relative;}.mushi-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:2;display:flex;flex-direction:column;min-width:210px;padding:4px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);}.mushi-menu-item{min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--_fg);font:inherit;text-align:left;cursor:pointer;}.mushi-menu-item:hover{background:var(--_surface);}.mushi-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px;scrollbar-width:thin;}.mushi-body{display:flex;flex-direction:column;gap:12px;min-width:0;}.mushi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px 12px 16px;border-top:1px solid var(--_border);}.mushi-footer-hint{flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-brand-footer{padding:6px 12px 8px;text-align:center;font-size:11px;color:var(--_muted);}.mushi-brand-link{color:inherit;text-decoration:none;}.mushi-brand-link:hover{text-decoration:underline;}.mushi-textarea,.mushi-input{width:100%;border:1px solid var(--_border);border-radius:10px;background:var(--_bg);color:var(--_fg);font:inherit;}.mushi-textarea{display:block;min-height:88px;max-height:40vh;padding:12px;font-size:15px;line-height:1.45;resize:vertical;}.mushi-input{flex:1;min-width:0;min-height:44px;padding:10px 12px;resize:none;}.mushi-textarea:focus,.mushi-input:focus{outline:2px solid var(--_accent);outline-offset:1px;border-color:transparent;}.mushi-textarea::placeholder,.mushi-input::placeholder{color:var(--_muted);opacity:1;}.mushi-chips{display:flex;flex-wrap:wrap;gap:6px;}.mushi-chip-group{display:contents;}.mushi-chip{min-height:44px;padding:0 14px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-chip:hover{background:var(--_surface);}.mushi-chip[aria-checked="true"]{background:var(--_fg);border-color:var(--_fg);color:var(--_bg);}.mushi-chip-more{border-style:dashed;color:var(--_muted);}.mushi-chip-sm{padding:0 12px;font-size:12px;}.mushi-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-attach-btn:hover{border-color:var(--_muted);}.mushi-attach-btn.active{border-color:var(--_ok);}.mushi-attach-btn.error{border-color:var(--_err);color:var(--_err);}.mushi-attach-btn[disabled]{cursor:progress;opacity:.75;}.mushi-screenshot-preview{display:flex;align-items:flex-start;gap:10px;width:100%;margin:0;}.mushi-screenshot-preview.open{flex-direction:column;}.mushi-thumb{flex:none;padding:0;border:1px solid var(--_border);border-radius:8px;background:var(--_surface);line-height:0;overflow:hidden;cursor:zoom-in;}.mushi-thumb img{display:block;width:72px;height:54px;object-fit:cover;}.mushi-screenshot-preview.open .mushi-thumb{cursor:zoom-out;}.mushi-screenshot-preview.open .mushi-thumb img{width:100%;height:auto;max-height:40vh;object-fit:contain;}.mushi-screenshot-preview figcaption{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;}.mushi-screenshot-hint{font-size:12px;color:var(--_muted);}.mushi-attach-actions{display:flex;gap:14px;}.mushi-annotate-host{width:100%;}.mushi-annotate-host:empty{display:none;}.mushi-note{margin:0;font-size:12px;line-height:1.45;color:var(--_muted);}.mushi-error-inline,.mushi-warn{color:var(--_err);}.mushi-empty{margin:0;padding:24px 8px;text-align:center;color:var(--_muted);}.mushi-link-btn{min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.mushi-btn,.mushi-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}.mushi-btn{border:1px solid var(--_border);background:none;color:var(--_fg);}.mushi-btn:hover{background:var(--_surface);}.mushi-submit{min-width:88px;padding:0 20px;border:0;background:var(--_accent);color:var(--_accent-fg);font-weight:600;}.mushi-submit:hover{filter:brightness(1.08);}.mushi-submit[aria-disabled="true"]{opacity:.45;cursor:not-allowed;}.mushi-submit[aria-busy="true"],.mushi-btn[aria-busy="true"]{cursor:progress;opacity:.75;}.mushi-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;}.mushi-check input{width:18px;height:18px;margin:0;accent-color:var(--_fg);}.mushi-inline-form{display:flex;gap:8px;width:100%;}.mushi-optins{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:4px;text-align:left;}.mushi-beta-strip{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:var(--_surface);font-size:13px;}.mushi-beta-strip p{margin:0;}.mushi-beta-tag{padding:0 6px;border-radius:4px;background:var(--_fg);color:var(--_bg);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}.mushi-beta-perks,.mushi-changelog ul{margin:0;padding-left:18px;font-size:12px;}.mushi-changelog summary{font-size:12px;color:var(--_muted);cursor:pointer;}.mushi-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:mushi-spin .8s linear infinite;}@keyframes mushi-spin{to{transform:rotate(360deg);}}.mushi-success{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 4px;text-align:center;}.mushi-success-stamp{position:relative;display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:var(--_accent);}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:none;stroke:currentColor;stroke-width:3;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-ring 600ms ease-out 60ms forwards;}.mushi-success-stamp-label{font-size:24px;font-weight:600;opacity:0;transform:rotate(-6deg);animation:mushi-press 300ms ease-out 450ms forwards;}@keyframes mushi-ring{to{stroke-dashoffset:0;}}@keyframes mushi-press{from{opacity:0;transform:rotate(-6deg) scale(1.3);}to{opacity:1;transform:rotate(-6deg) scale(1);}}.mushi-success-meta{font-size:12px;color:var(--_muted);}.mushi-success-receipt{display:flex;flex-direction:column;align-items:center;gap:6px;}.mushi-success-sla{margin:0;font-size:15px;}.mushi-success-receipt-id{min-height:24px;padding:2px 6px;border:1px dashed var(--_border);border-radius:6px;background:none;color:inherit;font-family:ui-monospace,monospace;font-size:12px;cursor:pointer;}.mushi-success-rewards{width:100%;}.mushi-success-pts-award{font-size:20px;font-weight:700;}.mushi-tier-bar-track{height:4px;margin:6px 0;border-radius:2px;background:var(--_surface);overflow:hidden;}.mushi-tier-bar-fill{height:100%;background:var(--_fg);transform-origin:left;transform:scaleX(var(--mushi-tier-pct,0));}.mushi-report-list,.mushi-thread,.mushi-assistant-log{display:flex;flex-direction:column;gap:8px;}.mushi-report-row{display:flex;flex-direction:column;gap:4px;width:100%;min-height:56px;padding:10px 12px;border:1px solid var(--_border);border-radius:10px;background:none;color:var(--_fg);font:inherit;text-align:left;}button.mushi-report-row{cursor:pointer;}button.mushi-report-row:hover{background:var(--_surface);}.mushi-report-row.unread{box-shadow:inset 3px 0 0 var(--_fg);}.mushi-row-top{display:flex;align-items:center;gap:8px;min-width:0;}.mushi-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.mushi-row-when,.mushi-row-meta,.mushi-event time,.mushi-bubble time{font-size:12px;color:var(--_muted);}.mushi-row-when{flex:none;}.mushi-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.mushi-row-news{font-size:13px;}.unread .mushi-row-title,.unread .mushi-row-news{font-weight:600;}.mushi-roadmap-row .mushi-btn{align-self:flex-start;}.mushi-pill{flex:none;display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;}.mushi-tone-neutral,.mushi-tone-muted{background:var(--_surface);color:var(--_muted);}.mushi-tone-info{background:${A.bg};color:color-mix(in oklab,${A.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${R.bg};color:color-mix(in oklab,${R.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${m.bg};color:color-mix(in oklab,${m.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${g.bg};color:color-mix(in oklab,${g.fg} 85%,var(--_fg));}.mushi-skeleton{display:flex;flex-direction:column;gap:8px;}.mushi-skeleton span{height:14px;border-radius:6px;background:var(--_surface);animation:mushi-shimmer 1.2s ease-in-out infinite alternate;}.mushi-skeleton span:nth-child(2){width:82%;}.mushi-skeleton span:nth-child(3){width:58%;}@keyframes mushi-shimmer{to{opacity:.45;}}.mushi-thread-summary{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:var(--_surface);}.mushi-card-status,.mushi-summary-text{margin:0;}.mushi-summary-text{font-size:14px;white-space:pre-wrap;word-break:break-word;}.mushi-card-thumb{align-self:flex-start;max-width:100%;max-height:160px;border-radius:8px;object-fit:contain;}.mushi-timeline{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;}.mushi-event{display:flex;justify-content:space-between;gap:8px;padding-left:10px;border-left:2px solid var(--_border);font-size:12px;color:var(--_muted);}.mushi-event time,.mushi-bubble time{flex:none;}.mushi-bubble,.mushi-assistant-msg{display:flex;flex-direction:column;gap:2px;max-width:88%;padding:8px 12px;border-radius:12px;background:var(--_surface);white-space:pre-wrap;word-break:break-word;}.mushi-bubble.dev,.mushi-assistant-msg.dev{align-self:flex-start;border:1px solid var(--_border);border-bottom-left-radius:4px;background:none;}.mushi-bubble.mine,.mushi-assistant-msg.mine{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in oklab,var(--_fg) 9%,var(--_bg));}.mushi-bubble strong{font-size:12px;}.mushi-bubble p{margin:0;font-size:14px;}.mushi-bubble-state{font-size:11px;color:var(--_muted);}.mushi-verify{display:flex;gap:8px;width:100%;}.mushi-verify .mushi-btn{flex:1;}.mushi-thread-composer{display:flex;align-items:flex-end;gap:8px;width:100%;}.mushi-reply{max-height:104px;overflow-y:auto;}.mushi-send{min-width:44px;padding:0;font-size:18px;}.mushi-thread-action-error{width:100%;margin:0;font-size:12px;}.mushi-assistant-greeting{margin:0;color:var(--_muted);}.mushi-lb{margin:0;padding:0;list-style:none;}.mushi-lb-row{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--_border);font-size:13px;}.mushi-lb-row.me{font-weight:600;}.mushi-xapp-group{display:flex;flex-direction:column;gap:6px;}.mushi-xapp-app-name{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:var(--_muted);}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);overflow:hidden;}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain;}.mushi-app-icon-initials{font-size:9px;font-weight:700;line-height:1;color:var(--_muted);}.mushi-toast{position:fixed;display:flex;align-items:center;gap:6px;max-width:min(380px,calc(100vw - 32px));padding:6px 6px 6px 14px;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:12px;box-shadow:var(--_shadow);font-size:14px;animation:mushi-open 180ms ease-out both;}.mushi-toast span{display:flex;flex-direction:column;flex:1;min-width:0;}.mushi-toast strong{font-weight:600;}.mushi-toast small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--_muted);}.mushi-toast .mushi-btn{padding:0 12px;}.mushi-toast.bottom-right,.mushi-toast.bottom-left{bottom:calc(var(--mushi-bottom,${W}px) + ${N}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${W}px) + ${N}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${W}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${W}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ne}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${C});animation:mushi-banner-slide-in ${Y}ms ${E} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${T};color:${b};border-bottom:1.5px solid ${v};}.mushi-banner.neon.bottom{border-top:1.5px solid ${v};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${b};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${p};color:${S};border-bottom:1.5px solid ${L};}.mushi-banner.brand.bottom{border-top:1.5px solid ${L};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${S};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${a?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${s};border-bottom:1px solid ${u};}.mushi-banner.subtle.bottom{border-top:1px solid ${u};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${s};border:1px solid ${u};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${a?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${ne}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${u};background:${a?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${me}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${G}ms ${E};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${p};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${G}ms ${E};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${p};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${G}ms ${E};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${G}ms ${E};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle{stroke-dashoffset:0;}.mushi-success-stamp-label{opacity:1;}}`}Gr();var P=Et,bd=["bug","slow","visual","confusing"];function ae(t,e,r="",n=""){return `<button type="button" class="${r}" data-action="${t}"${n}>${e}</button>`}function da(t){if(t.step==="report")return Rd(t);if(t.step==="success")return Ad(t);let e=t.views;if(!e)return yd(t);switch(t.step){case "reports":return e.reportsView(t);case "report-detail":return e.detailView(t);case "assistant":return e.assistantView(t);case "roadmap":return e.roadmapView(t);case "leaderboard":return e.leaderboardView(t);case "account":return e.accountView(t);case "cross-app-reports":return e.crossAppView(t)}}var pa=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function yd(t){let e=t.locale.flows,r=t.step==="report-detail"?t.locale.panel.reportTitle:t.step==="reports"?e.reports.title:"";return {header:Xr(t,r,true),lead:"",body:ba(e.reports.loading),footer:""}}var ha={esc:Et,btn:ae,renderHeader:Xr,chipLabel:Zn,skeleton:ba,formatRelativeTime:Vs,renderAppIconHtml:Qs};function vd(t){let e=t.locale.step1.moreNav,r=[];return t.callbacks.assistantEnabled&&r.push(ae("assistant",P(t.callbacks.assistantLabel||t.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),t.callbacks.onFeatureBoardRequest&&r.push(ae("roadmap",P(e.communityIdeas),"mushi-menu-item",' role="menuitem"')),t.rewardsState&&r.push(ae("open-leaderboard",P(e.leaderboard),"mushi-menu-item",' role="menuitem"')),(t.rewardsState||t.testerInfo)&&r.push(ae("open-account",P(t.testerInfo?t.testerInfo.public_handle??t.testerInfo.display_name??e.myAccount:e.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function Xr(t,e,r=false){let n=t.locale.panel,i=t.step==="report"||t.step==="success",o=t.unreadCount,a=i&&t.callbacks.onReporterReportsRequest?ae("reports",`${P(n.yourReports)}${o?` <span class="mushi-badge">${P(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",s=i?vd(t):[],u=s.length?`<div class="mushi-menu-wrap">${ae("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${t.showMoreNav}" aria-label="${P(n.moreOptions)}"`)}${t.showMoreNav?`<div class="mushi-menu" role="menu">${s.join("")}</div>`:""}</div>`:"";return `${r?ae("back","\u2190","mushi-icon-btn",` aria-label="${P(t.locale.widget.back)}"`):t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${P(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""}<h2 id="mushi-title" class="mushi-title">${P(e)}</h2>${a}${u}${ae("close","\u2715","mushi-icon-btn",` aria-label="${P(t.locale.widget.close)}"`)}`}function fa(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:i}=t.sdkFreshness;return !e&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${P(r)}</strong> ${e?`latest is ${P(e)}.`:"needs attention."}${i?` <span>${P(i)}</span>`:""}</div>`}function ma(t){return t.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${P(Ks(t.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${P(t.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function Zn(t,e){if(e==="idea"||e==="feature")return t.config.featureRequestLabel||t.rc.categories.idea;let r=t.resolveCustomCategory(e);return r?r.label:t.rc.categories[e]??""}function wd(t,e,r,n){let i=n===e;return `<button type="button" class="mushi-chip" role="radio" aria-checked="${i}" tabindex="${i||n===null&&r===0?"0":"-1"}" data-action="chip" data-category="${P(e)}">${P(Zn(t,e))}</button>`}function Sd(t){let e=t.chip;if(!e||e==="idea")return [];let r=t.resolveCustomCategory(e);return r?r.intents??[]:(t.locale.step2.intents[e]??[]).slice(0,-1).slice(0,4)}function xd(t){let e=[...bd];t.featureRequestCard!==false&&e.push("idea");let r=new Set(e),n=[];for(let{id:i}of t.categories??[])r.has(i)||(r.add(i),n.push(i));return {primary:e,more:n}}function Rd(t){let e=t.locale,r=e.panel,n=e.step3,{primary:i,more:o}=xd(t.config),a=t.showAllCategories?[...i,...o]:i,s=a.map((m,g)=>wd(t,m,g,a.includes(t.chip??"")?t.chip:null)).join(""),u=o.length&&!t.showAllCategories?ae("show-all-categories",P(r.more),"mushi-chip mushi-chip-more"):"",p=Sd(t),d=p.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${P(Zn(t,t.chip))}">${p.map((m,g)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${t.intent===m}" tabindex="${t.intent===m||!t.intent&&g===0?"0":"-1"}" data-action="intent" data-intent="${P(m)}">${P(m)}</button>`).join("")}</div>`:"",h=t.screenshotCapturing?n.screenshotCapturing:t.screenshotError?n.screenshotRetry:n.screenshotButton,k=t.elementCapturing?n.elementCapturing:t.elementError?n.elementFailed:t.elementSelected?n.elementSelected:r.pointAt,S='<span class="mushi-spinner" aria-hidden="true"></span>',T=t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview${t.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${t.previewOpen}"><img src="${P(t.screenshotPreview)}" alt="${P(n.screenshotPreviewAlt)}" /></button><figcaption><span class="mushi-attach-name">${P(n.screenshotAttached)}</span>${t.screenshotHint?`<span class="mushi-screenshot-hint">${P(t.screenshotHint)}</span>`:""}<span class="mushi-attach-actions">${t.callbacks.onScreenshotAnnotateRequest?ae("annotate-screenshot",P(r.markUp),"mushi-link-btn"):""}${t.allowScreenshotRemove?ae("remove-screenshot",P(r.remove),"mushi-link-btn"):""}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:t.screenshotAvailable?ae("screenshot",`${t.screenshotCapturing?S:'<span aria-hidden="true">\u{1F4F7}</span>'}${P(h)}`,`mushi-attach-btn${t.screenshotError?" error":""}`,`${t.screenshotCapturing?" disabled":""} aria-label="${P(h)}"`):"",b=t.elementAvailable?ae("element",`${t.elementCapturing?S:'<span aria-hidden="true">\u2316</span>'}${P(k)}`,`mushi-attach-btn${t.elementSelected?" active":""}${t.elementError?" error":""}`,`${t.elementCapturing?" disabled":""} aria-label="${P(k)}"`):"",v=t.screenshotError&&t.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${P(n.screenshotErrors[t.screenshotErrorReason])}${t.callbacks.onScreenshotShareTabRequest?` ${ae("screenshot-share-tab",P(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",L=t.identifiedUser?.name??t.identifiedUser?.email,A=t.chip==="idea",R=t.canSend?P(n.submitHint.replace("{key}",Gs(Ys()))):P(t.rc.ui.addWords);return {header:Xr(t,t.config.expandedTitle||r.title),lead:`<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${zr}" placeholder="${P(A?n.featurePlaceholder:n.descriptionPlaceholder)}" aria-label="${P(r.title)}" aria-describedby="mushi-hint"></textarea>`,body:`${t.config.betaMode?.enabled?_d(t):""}<div class="mushi-chips"><div class="mushi-chip-group" role="radiogroup" aria-label="${P(r.title)}">${s}</div>${u}</div>${d}<div class="mushi-attachments">${T}${b}</div>${v}<p class="mushi-note">\u{1F512} ${P(r.privacy)}</p>${L?`<p class="mushi-note">\u{1F464} ${P(L)}</p>`:""}${t.draftLength>zr-400?`<p class="mushi-note" aria-live="polite">${t.draftLength}/${zr}</p>`:""}`,footer:`<span class="mushi-footer-hint" id="mushi-hint" data-role="hint">${R}</span><button type="button" class="mushi-submit" data-action="submit" aria-disabled="${!t.canSend||t.submitting}"${t.submitting?' aria-busy="true"':""}>${P(t.submitting?e.widget.submitting:r.send)}</button>`}}function ga(t){let e=t.config.betaMode?.contactEmail?.trim();if(!e||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(e))return "";let r=`<a class="mushi-link-btn" href="mailto:${P(encodeURIComponent(e).replace(/%40/g,"@"))}">${P(e)}</a>`;return `<p class="mushi-note mushi-beta-contact">${P(t.locale.flows.betaStrip.contactHint).replace(P("{email}"),r)}</p>`}function kd(t){let e=t.config.betaMode;if(!e?.enabled)return "";let r=t.locale.flows.betaStrip,n=e.appName?r.teamSees.replace("{appName}",e.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${P(n)}</p>${ga(t)}</div>`}function Cd(t){let e=t.config.betaMode?.changelogItems?.[0];if(!e)return "";let r=P(t.locale.flows.changelog.whatsNew.replace("{version}",e.version));return `<details class="mushi-changelog"><summary>${e.date?`${r} \xB7 ${P(e.date)}`:r}</summary><ul>${e.items.map(n=>`<li>${P(n)}</li>`).join("")}</ul></details>`}function _d(t){let e=t.config.betaMode,r=t.locale.flows.betaStrip,n=P(e.appName??"This app"),i=e.message?P(e.message):P(r.defaultMessage).replace("{appName}",n),o=e.perks??[];return `<div class="mushi-beta-strip" role="note" aria-label="${P(r.ariaLabel)}"><p><span class="mushi-beta-tag">Beta</span> ${i}</p>${ga(t)}${o.length?`<ul class="mushi-beta-perks">${o.map(a=>`<li>${P(a)}</li>`).join("")}</ul>`:""}${Cd(t)}</div>`}function Ea(t){let e=t.locale.flows.success;switch(t.lastSubmitFailureKind){case "rate_limited":return e.rateLimited;case "quota":return e.quotaBlocked;case "permanent":return e.permanentFailed;case "retrying":return e.retrying}return t.lastSubmitQueuedOffline?e.queuedOffline:null}function Td(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(Ea(t)){let a=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${P(a)}</p>`}let n=P((t.config.responseSlaLabel??"").trim()||e.slaDefault);if(!t.lastReportId)return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note"><span class="mushi-spinner" aria-hidden="true"></span> ${P(e.delivering)}</p></div>`;let i=P(t.lastReportId),o=(t.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${n}</p><p class="mushi-note">${P(e.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${P(t.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${P(`${o}/reports/${encodeURIComponent(t.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${P(e.trackOnMushi)} \u2197</a>`:""}</p>${t.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${P(e.screenshotDropped)}</p>`:""}</div>`}function ba(t,e=3){return `<div class="mushi-skeleton" role="status" aria-label="${P(t)}">${"<span></span>".repeat(e)}</div>`}function Ad(t){let e=t.locale.flows.success,r=t.submittedAt??new Date,n=Ea(t),i=!n&&t.lastReportId&&t.callbacks.onReporterReportsRequest;return {header:Xr(t,n??t.rc.ui.sent),lead:"",body:`<div class="mushi-success"><div class="mushi-success-stamp" aria-hidden="true"><svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="44"/></svg><span class="mushi-success-stamp-label">\u53D7</span></div><time class="mushi-success-meta" datetime="${r.toISOString()}">${P(Js(r,t.config.locale==="auto"?void 0:t.config.locale))}</time>${Td(t)}${n?"":kd(t)+(t.views?.renderOptIns(t)??"")}${t.rewardsState?Id(t):""}</div>`,footer:`${i?ae("track-report",P(e.trackReport),"mushi-btn"):"<span></span>"}${ae("done",P(e.done),"mushi-submit")}`}}function Id(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:i}=t.rewardsState,o=n+i,a=100,s="";if(r){let u=e?.pointsThreshold??0,p=r.pointsThreshold;a=p>u?Math.round(Math.min(1,(o-u)/(p-u))*100):100;let d=Math.max(0,p-o);s=d>0?`${d.toLocaleString()} pts to ${P(r.displayName)}`:`\u{1F389} ${P(r.displayName)}`;}return `<div class="mushi-success-rewards"><div class="mushi-success-pts-award">+${i} pts</div>${r?`<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="${P(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div></div><p class="mushi-note">${s}</p>`:""}</div>`}function ya(t){return bt(t)}function Vd(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var ni=null,ii=null;function Ca(){return ii??=Promise.resolve().then(()=>(ka(),Ra)).then(t=>(t.initViews(ha),ni=t,t)),ii}var ti=["notice","header","lead","body","footer","brand"],ri=["description","reporter-reply","magic-link-email","optin-email"],Kd=["bug","slow","visual","confusing","other"],zd='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',Qr=class t{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;step="report";styleEl;styleKey="";panel;scroller;regionEls={};regionHtml={};live;renderedStep=null;triggerEl=null;triggerKey="";bannerEl=null;bannerKey="";toastEl=null;opener=null;chip=null;intent=null;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;screenshotByUser=false;previewOpen=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;drafts={};screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];timeline=null;pendingReplies=[];replySeq=0;selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;channels={email:false,push:false,emailPrefill:""};emailOptInOpen=false;emailState="idle";pushState="idle";attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;constructor(e={},r){this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??8,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel??"",featureRequestDescription:e.featureRequestDescription??"",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=Jn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=Us();n?.turns.length&&(this.assistantTurns=n.turns,this.assistantThreadId=n.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"}),this.styleEl=document.createElement("style"),this.panel=document.createElement("div"),this.panel.setAttribute("role","dialog"),this.panel.setAttribute("aria-modal","true"),this.panel.setAttribute("aria-labelledby","mushi-title"),this.scroller=document.createElement("div"),this.scroller.className="mushi-scroll";for(let i of ti){let o=document.createElement("div");o.className=`mushi-${i}`,o.dataset.region=i,this.regionEls[i]=o;}this.scroller.append(this.regionEls.lead,this.regionEls.body),this.live=document.createElement("div"),this.live.className="mushi-sr",this.live.setAttribute("role","status"),this.live.setAttribute("aria-live","polite"),this.panel.append(this.regionEls.notice,this.regionEls.header,this.scroller,this.regionEls.footer,this.regionEls.brand,this.live),this.shadow.append(this.styleEl,this.panel),this.bindPanelEvents();}resolveCopy(){let e=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(e||"en").split(/[-_]/)[0].toLowerCase(),ya(this.lang)}mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),this.render());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(e).filter(([,s])=>s!==void 0));this.config={...this.config,...i,...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{}},this.locale=Jn(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",a=JSON.stringify(this.config.bannerConfig??null)!==n;(o||a)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}open(e){if(this.isOpen)return;this.rememberOpener(),this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.step="report";let r=e?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=e?.featureRequest?"idea":n||r&&r!=="other"&&Kd.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.render(),this.callbacks.onOpen();}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.restoreOpenerFocus(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.ensureOpen(),this.step="assistant",this.assistantError=null,this.render();}ensureOpen(){this.isOpen||(this.rememberOpener(),this.isOpen=true,this.callbacks.onOpen());}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let i=n.text??"\u2026";this.assistantTurns.push({role:"assistant",text:i,...Vd(i)?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),this.scroller.scrollTop=this.scroller.scrollHeight;}}}persistAssistantSession(){qs({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,js(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let e=this.triggerEl;e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>e.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let i=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=s=>{s.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>i.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){this.screenshotAvailable=e.screenshot??this.screenshotAvailable,this.elementAvailable=e.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(e,r){this.screenshotError=e,this.screenshotErrorReason=e?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){this.panel.style.display="none";}showPanel(){this.panel.style.display="";}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText="position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483646;background:rgba(17,17,17,.92);color:#fff;font:12px/1.4 system-ui,sans-serif;padding:8px 16px;border-radius:20px;pointer-events:none;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.35)",e.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(e),this.selectorHint=e;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setBrandRef(e){this.brandRef!==e&&(this.brandRef=e,this.isOpen&&this.render());}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(e){this.channels={email:!!e.email,push:!!e.push,emailPrefill:e.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","absolute"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index","auto"),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:i,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let i=e.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let e=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);e===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=e,this.bannerEl?.remove(),this.bannerEl=null,this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.renderBanner());}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed||!this.triggerVisible||this.isRouteHidden()||this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"subtle",n=e.position??"top",i=e.message?.trim()??"",o=i.length>0,a=e.bugCta??"\u{1F41B} Report a bug",s=e.featureCta!==false,u=e.featureCtaLabel??"Request feature",p=`\u{1F4EC} ${this.locale.panel.yourReports}`,d=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(d)),h.setAttribute("role","banner");let k=document.createElement("button");if(k.className="mushi-banner-dismiss",k.textContent="\u2715",k.setAttribute("aria-label","Dismiss feedback banner"),k.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let S=document.createElement("div");S.className="mushi-banner-body";let T=e.label===false?null:e.label??Is.bannerLabel;if(T){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=T,S.appendChild(R);}let b=document.createElement("span");b.className="mushi-banner-message",b.textContent=i,S.appendChild(b),h.appendChild(S);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let L=(R=false)=>{let m=document.createElement("span");m.className=`mushi-banner-divider${R?" mushi-banner-extra":""}`,m.setAttribute("aria-hidden","true"),m.textContent="|",v.appendChild(m);},A=(R,m,g=false)=>{let f=document.createElement("button");f.type="button",f.className=`mushi-banner-link${g?" mushi-banner-extra":""}`,f.textContent=R,f.addEventListener("click",m),v.appendChild(f);};A(a,()=>this.open({category:"bug"})),s&&(L(true),A(u,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let m=R.label?.trim();if(!m)continue;let g=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(L(true),g){let f=document.createElement("a");f.className="mushi-banner-link mushi-banner-extra",f.href=g,f.textContent=m,f.target="_blank",f.rel="noopener noreferrer",v.appendChild(f);}else A(m,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}L(true),A(p,()=>this.openReporter(),true),h.appendChild(v),h.appendChild(k);}else {let S=document.createElement("button");if(S.className="mushi-banner-btn",S.textContent=a,S.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(S),s){let b=document.createElement("button");b.className="mushi-banner-btn",b.textContent=u,b.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(b);}let T=document.createElement("button");T.className="mushi-banner-my-reports",T.textContent=p,T.addEventListener("click",()=>this.openReporter()),h.appendChild(T),h.appendChild(k);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}probeRgb(e){let r=this.host.style,n=r.color;r.color=e;let i=(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)[ ,]+(\d+(?:\.\d+)?)/);return r.color=n,i?[+i[1],+i[2],+i[3]]:null}resolveAccent(e){let r=yt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let s=getComputedStyle(document.documentElement);n.push(s.getPropertyValue("--mushi-accent").trim());let u=s.getPropertyValue("accent-color").trim();u&&u!=="auto"&&n.push(u);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=e?[18,18,18]:[255,255,255],o=r;for(let s of n){if(o)break;let u=yt(s),p=u?this.probeRgb(u):null;p&&Qn(p,i).ratio>=3&&(o=u);}if(!o)return {accent:"",accentFg:""};let a=this.probeRgb(o);return {accent:o,accentFg:yt(this.config.accentText??"")||(a?Qn(a).ink:"")}}syncChrome(){let e=this.getTheme(),{accent:r,accentFg:n}=this.resolveAccent(e==="dark"),i=`${e}|${r}|${n}`;i!==this.styleKey&&(this.styleKey=i,this.styleEl.textContent=ca(e,r,n)),this.syncBanner(),this.syncTrigger();}syncTrigger(){let e=this.shouldRenderTrigger(),r=this.config.position,n=e?this.effectiveTrigger():"",i=JSON.stringify([e,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]);(i!==this.triggerKey||e&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=e?this.buildTrigger(n):null),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl));}buildTrigger(e){let r=document.createElement("button");if(r.className=`mushi-trigger ${this.config.position}${e==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,r.textContent=this.config.triggerText,r.setAttribute("aria-label",this.locale.widget.trigger),r.setAttribute("aria-haspopup","dialog"),r.style.zIndex=String(this.config.zIndex),r.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),r.addEventListener("keydown",n=>{let i=this.config.draggable;if(!i)return;let o=8,a=typeof i=="object"?i.axis??"both":"both",s=0,u=0;if(a!=="y"&&(n.key==="ArrowLeft"?s=-o:n.key==="ArrowRight"&&(s=o)),a!=="x"&&(n.key==="ArrowUp"?u=-o:n.key==="ArrowDown"&&(u=o)),s!==0||u!==0){n.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(r,p.x+s,p.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(r),this.shadow.insertBefore(r,this.panel),this.fabPos&&this.config.draggable){let n=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(r,n.x,n.y,false);}return r}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false,this.syncChrome(),this.renderPanel();}renderPanel(){let e=this.panel;if(e.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}`,e.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(e),!this.isOpen){if(this.renderedStep!==null){for(let d of ti)this.regionEls[d].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!ni&&(pa.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=da(r),i={notice:fa(r),header:n.header,lead:n.lead,body:n.body,footer:n.footer,brand:ma(r)},o=this.renderedStep!==this.step,a=this.renderedStep===null,s=this.shadow.activeElement,u=s?_a(s):null;this.captureFormDrafts();let p=false;for(let d of ti)this.regionHtml[d]!==i[d]&&(this.regionHtml[d]=i[d],this.regionEls[d].innerHTML=i[d],p=true);this.renderedStep=this.step,p&&(Zs(e),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,a||(e.classList.remove("mushi-swap"),e.offsetWidth,e.classList.add("mushi-swap")),this.focusView()):s&&!s.isConnected&&u&&e.querySelector(u)?.focus(),a&&this.attachViewportHandlers(e),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let e=this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");e&&(e.id==="mushi-title"&&(e.tabIndex=-1),e.focus({preventScroll:true}));}captureFormDrafts(){for(let n of ri){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let e=this.shadow.activeElement,r=e?.dataset?.role;r&&ri.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${e.selectionStart??0},${e.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let e of ri){let r=this.panel.querySelector(`[data-role="${e}"]`),n=this.drafts[e];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===e&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let a=document.querySelector(o);if(!a)continue;let s=a.getBoundingClientRect();if((s.top+s.bottom)/2>=n)continue;s.bottom>i&&s.width>0&&s.height>0&&(i=s.bottom);}catch{}return i>0?Math.ceil(i)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let a=document.querySelector(o);if(!a)continue;let s=a.getBoundingClientRect();if((s.top+s.bottom)/2<=n)continue;if(s.width>0&&s.height>0){let u=window.innerHeight-s.top+e;u>i&&(i=u);}}catch{}return i>0?Math.ceil(i):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let s=o[a];s!==void 0&&e.style.setProperty(`--mushi-${a}`,s==="auto"?"auto":`${s}px`);});}e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");let n=r?.top!==void 0||this.config.position?.startsWith("top"),i=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,i){let o=this.config.draggable,a=o&&typeof o=="object"?o.axis??"both":"both",s=window.innerWidth,u=window.innerHeight,p=e.offsetWidth||52,d=e.offsetHeight||52,h=getComputedStyle(document.documentElement),k=Y=>parseInt(h.getPropertyValue(`--sai-${Y}`)||"0")||0,S=k("left"),T=k("right"),b=k("top"),v=k("bottom"),L=8,A=e.getBoundingClientRect(),R=A.left-(this.fabPos?.x??0),m=A.top-(this.fabPos?.y??0),g=S+L-R,f=s-T-L-p-R,E=b+L-m,C=u-v-L-d-m,D=a==="x"?0:Math.max(E,Math.min(C,n)),w=a==="y"?0:Math.max(g,Math.min(f,r));if(i&&(o===true||typeof o=="object"&&(o.snapToEdge??true))&&a!=="y"&&(w=A.left+p/2<s/2?S+L-R:s-T-L-p-R),this.fabPos={x:w,y:D},e.style.setProperty("--mushi-drag-x",`${w}px`),e.style.setProperty("--mushi-drag-y",`${D}px`),e.style.setProperty("--mushi-drag-active","1"),o===true||typeof o=="object"&&(o.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,i=0,o=0,a=false,s=false,u=6;e.addEventListener("pointerdown",d=>{if(d.button!==0&&d.pointerType!=="touch")return;e.setPointerCapture(d.pointerId),r=d.clientX,n=d.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,a=true,s=false;}),e.addEventListener("pointermove",d=>{if(!a)return;let h=d.clientX-r,k=d.clientY-n;!s&&Math.hypot(h,k)>u&&(s=true,e.classList.add("dragging")),s&&(d.preventDefault(),this.moveFab(e,i+h,o+k,false));});let p=d=>{if(a){if(a=false,e.classList.remove("dragging"),s){this.moveFab(e,i+d.clientX-r,o+d.clientY-n,true);let h=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",h,{capture:true});};e.addEventListener("click",h,{capture:true});}s=false;}};e.addEventListener("pointerup",p),e.addEventListener("pointercancel",p);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=typeof window<"u"?window.visualViewport:null;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open")):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);e.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(e/2)):e}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:ni,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,elementSelected:this.elementSelected,elementCapturing:this.elementCapturing,elementError:this.elementError,allowScreenshotRemove:this.allowScreenshotRemove,identifiedUser:this.identifiedUser,lastReportId:this.lastReportId,submittedAt:this.submittedAt,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,channels:this.channels,emailOptInOpen:this.emailOptInOpen,emailState:this.emailState,pushState:this.pushState,reporterReports:this.reporterReports,listLoading:this.listLoading,reporterError:this.reporterError,selectedReportId:this.selectedReportId,reporterComments:this.reporterComments,timeline:this.timeline,pendingReplies:this.pendingReplies,threadLoading:this.threadLoading,threadError:this.threadError,actionPending:this.actionPending,actionError:this.actionError,unreadCount:this.unreadCount(),showMoreNav:this.showMoreNav,pageFaviconHref:Os(),sdkFreshness:this.sdkFreshness,brandRef:this.brandRef,rewardsState:this.rewardsState,testerReputation:this.testerReputation,testerInfo:this.testerInfo,testerJwt:this.testerJwt,magicLinkError:this.magicLinkError,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,magicLinkSent:this.magicLinkSent,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,crossAppLoading:this.crossAppLoading,crossAppReports:this.crossAppReports,featureBoard:this.featureBoard,assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,tierColor:e=>Kn[e]??Kn.default,resolveCustomCategory:e=>this.resolveCustomCategory(e)}}bindPanelEvents(){let e=this.panel;e.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),e.addEventListener("click",r=>{let n=r.target;if(n.closest('[data-role="annotate-host"]'))return;let i=n.closest("[data-action],[data-report-id],[data-vote-id]");if(!i||i.tagName==="FORM")return;if(i.dataset.voteId){this.voteFeatureBoard(i.dataset.voteId);return}let o=i.dataset.action;if(!o&&i.dataset.reportId){this.openThread(i.dataset.reportId);return}o&&this.handleAction(o,i);}),e.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;i&&(this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&Ta(n),i==="description"&&this.render());}),e.addEventListener("submit",r=>{r.preventDefault();let n=e.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),e.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(e){let r=e.target;if(e.key==="Escape"){if(e.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(zs(e)||e.key==="Enter"&&!e.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(e.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(e.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(e.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(e.key==="Tab"){this.trapTab(e);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(e.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(e.key)?1:-1)+n.length)%n.length];if(!o)return;e.preventDefault(),o.click(),this.panel.querySelector(_a(o)??"")?.focus();}}trapTab(e){let r=Array.from(this.panel.querySelectorAll(zd)).filter(a=>!a.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;e.shiftKey&&(o===n||!this.panel.contains(o))?(e.preventDefault(),i.focus()):!e.shiftKey&&o===i&&(e.preventDefault(),n.focus());}handleAction(e,r){let n=r.dataset.value??"";switch(e){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "toggle-more-nav":this.showMoreNav=!this.showMoreNav,this.render();return;case "show-all-categories":this.showAllCategories=true,this.render();return;case "chip":{let i=r.dataset.category??"";this.chip=this.chip===i?null:i,this.intent=null,this.render();return}case "intent":{let i=r.dataset.intent??null;this.intent=this.intent===i?null:i,this.render();return}case "screenshot":this.screenshotByUser=true,this.callbacks.onScreenshotRequest();return;case "screenshot-share-tab":this.screenshotByUser=true,this.callbacks.onScreenshotShareTabRequest?.();return;case "remove-screenshot":this.callbacks.onScreenshotRemove?.();return;case "toggle-preview":this.previewOpen=!this.previewOpen,this.render();return;case "annotate-screenshot":{let i=this.panel.querySelector('[data-role="annotate-host"]');this.screenshotByUser=true,i&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(i);return}case "element":this.callbacks.onElementSelectorRequest?.();return;case "submit":this.submitReport();return;case "done":this.close();return;case "track-report":this.lastReportId&&this.openTrackedReport(this.lastReportId);return;case "copy-report-id":Gd(r);return;case "reports":this.showMoreNav=false,this.loadReporterReports();return;case "retry-list":this.loadReporterReports();return;case "retry-thread":this.selectedReportId&&this.openThread(this.selectedReportId);return;case "reporter-reply":this.submitReporterReply();return;case "retry-reply":this.sendPendingReply(Number(n));return;case "reporter-confirms":this.submitReporterFeedback("confirms");return;case "reporter-not-fixed":this.submitReporterReopen();return;case "email-optin":this.emailOptInOpen=r.checked,this.render();return;case "save-email":this.saveEmailOptIn();return;case "notify-me":this.subscribePush();return;case "assistant":this.showMoreNav=false,this.openAssistantTab();return;case "assistant-suggest":this.sendAssistantMessage(n);return;case "assistant-report":this.step="report",this.render();return;case "roadmap":this.showMoreNav=false,this.loadFeatureBoard();return;case "open-leaderboard":this.showMoreNav=false,this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();return;case "open-account":this.showMoreNav=false,this.step="account",this.render();return;case "open-cross-app-reports":this.step="cross-app-reports",this.crossAppReports=this.callbacks.onCrossAppReportsOpen?null:[],this.crossAppLoading=!!this.callbacks.onCrossAppReportsOpen,this.render(),this.callbacks.onCrossAppReportsOpen?.();return;case "open-global-leaderboard":this.step="leaderboard",this.globalLeaderboard=this.callbacks.onGlobalLeaderboardOpen?null:[],this.globalLeaderboardLoading=!!this.callbacks.onGlobalLeaderboardOpen,this.render(),this.callbacks.onGlobalLeaderboardOpen?.();return;case "send-magic-link":this.handleMagicLinkSend();return;case "resend-magic-link":this.magicLinkSent=false,this.magicLinkError="",this.render();return;case "sign-out-tester":this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="report",this.callbacks.onTesterSignOut?.(),this.render();return}}goBack(){let e={"report-detail":"reports","cross-app-reports":"account"};this.step=e[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}submitReport(){if(this.submitting)return;let e=this.panel.querySelector('[data-role="description"]');if(e&&(this.drafts.description=e.value),!this.canSend()){this.announce(this.rc.ui.addWords),e?.focus();return}let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,a=n==="idea",s=a||!n?"other":i?i.baseCategory??"other":n,u=i?n:a?"feature":o&&n?n:void 0,p=a?Ws:this.intent??void 0;this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let d=(async()=>{try{let h=this.callbacks.onSubmit({category:s,...u?{userCategory:u}:{},description:r,...p?{intent:p}:{}});return h&&typeof h.then=="function"?await h??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),d.then(h=>{this.step!=="success"||!h||(this.lastReportId=h.reportId??null,this.lastSubmitQueuedOffline=!!h.queuedOffline,this.lastSubmitFailureKind=h.failureKind,this.lastSubmitScreenshotDropped=!!h.screenshotDropped,this.render());});},500);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(e,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.openThread(n,!0),!0}catch(i){return this.actionError=i instanceof Error?i.message:e,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async e=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me");});}async submitReporterFeedback(e){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,e)));}async refreshReporterInboxQuiet(){try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Pt(e,Bt):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let e=this.callbacks.onReporterReportsRequest?.();this.reporterReports=e?await Pt(e,Bt):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(e){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(e);}async openThread(e,r=false){this.selectedReportId!==e&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=e,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(e));try{let n=this.callbacks.onReporterReportRequest?.(e),i=n?await Pt(n,Bt):null;if(i)this.selectedReportId===e&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===e?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(e),a=o?await Pt(o,Bt):[];this.selectedReportId===e&&(this.reporterComments=a);}}catch{this.selectedReportId===e&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(e){let r=this.reporterReports.find(n=>n.id===e);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(e)).catch(()=>{}));}submitReporterReply(){let e=this.panel.querySelector('[data-role="reporter-reply"]'),r=(e?.value??"").trim();if(!r||!this.selectedReportId)return;let n=++this.replySeq;this.pendingReplies.push({id:n,body:r,state:"sending"}),delete this.drafts["reporter-reply"],e&&(e.value="",Ta(e)),this.sendPendingReply(n);}async sendPendingReply(e){let r=this.pendingReplies.find(i=>i.id===e),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Pt(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Bt),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==e),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let e=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!na(e)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(e),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let e=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await e,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(e){let r=(await Ca()).pickUpdateToast(e,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await Ca();}catch{ii=null;}}showUpdatesFeedToast(e,r){if(!(e.unread_total>0))return false;let n=new Set(e.latest.map(s=>s.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(s=>s.id===i):void 0,a=o?.title??o?.summary??(i?e.latest[0]?.preview:void 0);return this.showUpdateToast({text:ra(e,this.lang),reportId:i,...a?{detail:a}:{}})}showUpdateToast(e){if(this.isOpen||!this.triggerVisible||this.triggerHiddenByScroll||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;this.removeToast();let r=document.createElement("div");r.className=`mushi-toast ${this.config.trigger==="banner"?`banner-${this.config.bannerConfig?.position??"top"}`:this.config.position}`,r.setAttribute("role","status"),r.style.zIndex=String(this.config.zIndex+1);let n=document.createElement("span"),i=document.createElement("strong");if(i.textContent=e.text,n.append(i),e.detail){let s=document.createElement("small");s.textContent=e.detail,n.append(s);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let s=e.reportId;s?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(s);}):this.openReporter();});let a=document.createElement("button");return a.type="button",a.className="mushi-icon-btn",a.textContent="\u2715",a.setAttribute("aria-label",this.locale.widget.close),a.addEventListener("click",()=>this.removeToast()),r.append(n,o,a),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let e=document.activeElement;this.opener=e===this.host?this.shadow.activeElement:e;}restoreOpenerFocus(){let e=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,e&&e!==document.body&&e.focus({preventScroll:true});}announce(e){this.live.textContent="",setTimeout(()=>{this.live.textContent=e;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let e=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!e||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=e,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(e),this.magicLinkSent=!0;}catch(r){this.magicLinkError=r instanceof Error?r.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}openReporter(){this.loadReporterReports();}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector("#mushi-title")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:0}}getRecorderTrigger(){return this.triggerEl}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(e){this.isOpen||this.open(),this.step="report",this.chip=e,this.intent=null,this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="report"||(this.intent=e,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function _a(t){let e=t.dataset;return e.role?`[data-role="${e.role}"]`:e.category?`[data-category="${Jr(e.category)}"]`:e.intent?`[data-intent="${Jr(e.intent)}"]`:e.reportId?`[data-report-id="${Jr(e.reportId)}"]`:e.action?`[data-action="${e.action}"]${e.value?`[data-value="${Jr(e.value)}"]`:""}`:null}function Jr(t){return t.replace(/["\\]/g,"\\$&")}function Ta(t){t.style.height="auto",t.style.height=`${Math.min(t.scrollHeight,104)}px`;}function Gd(t){let e=t.dataset.copyId;if(!e)return;let r=t.textContent,n=()=>{t.textContent="Copied \u2713",window.setTimeout(()=>{t.isConnected&&(t.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(n,n):n();}catch{n();}}function oi(t,e){try{return globalThis[t]?.getItem(e)??null}catch{return null}}function si(t,e,r){try{globalThis[t]?.setItem(e,r);}catch{}}function ai(t){si("localStorage",`mushi_has_reports_${t}`,"1");}function ui(t){return oi("localStorage",`mushi_has_reports_${t}`)==="1"}function Aa(t,e=Date.now()){if(oi("sessionStorage",`mushi_toast_${t}`))return false;let r=Number(oi("localStorage",`mushi_toast_at_${t}`)??0);return !(r&&e-r<864e5)}function Ia(t,e=Date.now()){si("sessionStorage",`mushi_toast_${t}`,"1"),si("localStorage",`mushi_toast_at_${t}`,String(e));}function Ma(t){let e=t.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>e("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>e("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>e("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>e("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>e("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>e("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>e("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>e("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function La(t,e,r,n){try{if(!r||typeof Notification>"u"||!navigator.serviceWorker)return {ok:!1,reason:"unsupported"};if(!n)return {ok:!1,reason:"not_available"};if(await Notification.requestPermission()!=="granted")return {ok:!1,reason:"denied"};let i=await navigator.serviceWorker.register(r),o=n.replace(/-/g,"+").replace(/_/g,"/"),a=atob(o+"=".repeat((4-o.length%4)%4)),s=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(a,p=>p.charCodeAt(0))}),u=await t.subscribePush(e,s.toJSON());return u.ok?{ok:!0}:{ok:!1,reason:u.error?.code??"error"}}catch(i){return {ok:false,reason:i instanceof Error&&i.name||"error"}}}function Yd(t,e){let r={...t};if(e)for(let[n,i]of Object.entries(e))i!==void 0&&(r[n]=i);return r}var Xd=["brandFooter"],Jd=["manual","attach"];function Da(t,e,r=t){let n=e.native?.triggerMode,i=e.widget?.launcher,o=t.widget?.trigger,a=r.widget?.trigger,s=i??e.widget?.trigger,u=a!==void 0&&Jd.includes(a)&&s!=="hidden",d=u?void 0:(u||s==="auto"&&o&&o!=="auto"?void 0:s)??(n==="none"||n==="shake"?"manual":void 0),h=i==="hidden"||e.widget?.trigger==="hidden",k=d==="hidden"&&!h&&o&&o!=="hidden"?o:d,S=e.widget,T=S?.bannerVariant,b=S?.bannerPosition,v=S?.bannerMessage,L=S?.bannerLabel,A=S?.bannerBugCta,R=S?.bannerFeatureCta,m=T||b||v!=null||L!=null||A!=null||R!=null?{...t.widget?.bannerConfig??{},...T?{variant:T}:{},...b?{position:b}:{},...v!=null?{message:v}:{},...L!=null?{label:L===""?false:L}:{},...A!=null?{bugCta:A??void 0}:{},...R!=null?{featureCta:R}:{}}:void 0,g={};if(e.widget)for(let[f,E]of Object.entries(e.widget))f==="trigger"||f==="launcher"||E!=null&&(Xd.includes(f)&&r.widget?.[f]!==void 0||(g[f]=E));return {...t,widget:{...t.widget,...g,...k?{trigger:k}:{},...m?{bannerConfig:m}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Yd(t.capture,e.capture),privacy:{...t.privacy}}}function Zr(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Pa(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Zr(t.getRecorderTrigger()),getCategoryCenter:r=>Zr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Zr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Zr(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var en=null,tn=null,cr=null,dr=null,pr=null,hr=false,vt=new Set;function Qd(){for(let t of vt)try{t.onPush?.();}catch{}}function Zd(){for(let t of vt)try{t.onReplace?.();}catch{}}function ep(){for(let t of vt)try{t.onPop?.();}catch{}}function tp(){if(hr||typeof window>"u")return;let t=history.pushState,e=history.replaceState;en=t,tn=e;let r=function(...o){let a=t.apply(history,o);return cr===r&&Qd(),a},n=function(...o){let a=e.apply(history,o);return dr===n&&Zd(),a};cr=r,dr=n,history.pushState=r,history.replaceState=n,pr=()=>ep(),window.addEventListener("popstate",pr),hr=true;}function Ba(){!hr||typeof window>"u"||(pr&&(window.removeEventListener("popstate",pr),pr=null),cr&&history.pushState===cr&&en&&(history.pushState=en),dr&&history.replaceState===dr&&tn&&(history.replaceState=tn),cr=null,dr=null,en=null,tn=null,hr=false);}function Le(t){return tp(),hr?(vt.add(t),()=>{vt.delete(t),vt.size===0&&Ba();}):()=>{}}function Fa(){vt.clear(),Ba();}var rp=3e4,np=3e5,ip=6e4,op=60,Ha="mushi_session_min_day_",Ot=[],Ht=null,Nt=null,Ge=null,Na=null,li=null,Ut=null,rt=false,mr=null,Ua=0,sp=300*1e3,hi=0,ap=900*1e3;function fi(){return Date.now()<hi}function mi(t){t?.startsWith("HTTP_4")&&(hi=Date.now()+ap);}var $a=new Set;function ci(t){return `mushi_rewards_consent_${t}`}function up(t){try{return localStorage.getItem(ci(t))==="1"}catch{return false}}function di(t,e){try{e?localStorage.setItem(ci(t),"1"):localStorage.removeItem(ci(t)),rt=e;}catch{}}function qa(){return new Date().toISOString().slice(0,10)}function ja(t){try{let e=sessionStorage.getItem(`${Ha}${t}_${qa()}`);return e?parseInt(e,10):0}catch{return 0}}function lp(t){let e=qa(),r=`${Ha}${t}_${e}`;try{let n=ja(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Wa(t){Ut=t.client,Ge=t.userId,Na=t.traits??null,li=t.reporterToken??null;let{projectId:e}=t,r=Math.max(rp,t.config.flushIntervalMs??np);t.config.consentMode==="auto"?(rt=true,di(e,true)):rt=up(e),t.config.trackActivity&&dp(e),Ht&&clearInterval(Ht),Ht=setInterval(()=>cp(t),r),Nt&&clearInterval(Nt),Nt=setInterval(()=>{if(!rt||!Ge)return;let n=ja(e);n<op&&(lp(e),qt({action:"session_minute",metadata:{minutes_today:n+1}}));},ip),t.config.showInWidget&&gi(Ge).then(n=>{n&&Ga(n,t.config);}),t.config.consentMode!=="auto"&&!rt&&fp(e,t.config);}function qt(t){!rt||!Ge||Ot.push({...t,queuedAt:Date.now()});}async function cp(t){if(!rt||!Ge||Ot.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(fi())return;let r=Ot.splice(0,100);try{let n=li?await It(li):void 0,i=await t.client.submitActivity(Ge,r,{userTraits:Na??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});i.ok||(mi(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Ot.unshift(...r.slice(0,50)));}catch{Ot.unshift(...r.slice(0,50));}}async function Va(t){let e=Date.now();return mr&&e-Ua<sp?mr:gi(t)}async function gi(t){if(!Ut||fi())return null;let e=await Ut.getMyTier(t);return e.ok&&e.data?(mr=e.data,Ua=Date.now(),mr):(mi(e.error?.code),null)}async function Ka(t=10){if(!Ut||fi())return null;try{let e=await Ut.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(mi(e.error?.code),null)}catch{return null}}function za(){Ht&&(clearInterval(Ht),Ht=null),Nt&&(clearInterval(Nt),Nt=null),pi(),hp(),we&&(we.remove(),we=null),Ot=[],Ge=null,Ut=null,rt=false,mr=null,hi=0;}var nn=null,fr=null,on=null,Oa="",rn=false;function dp(t){if(!(rn&&on)){rn&&pi(),rn=true;try{pp(t);}catch(e){throw pi(),e}}}function pp(t){let e=()=>{let n=location.pathname;if(n===Oa)return;Oa=n,!$a.has(`${t}:${n}`)&&($a.add(`${t}:${n}`),qt({action:"screen_view_unique_per_day",metadata:{route:n}}));};on=Le({onPush:e,onPop:e}),e(),nn=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;nn.observe(r,{childList:true,subtree:false}),fr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&qt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",fr,{capture:true,passive:true});}function pi(){rn=false,on?.(),on=null,nn?.disconnect(),nn=null,fr&&(document.removeEventListener("click",fr,{capture:true}),fr=null);}var ze=null;function Ga(t,e){if(!e.showInWidget)return;ze&&ze.remove(),ze=document.createElement("div"),ze.id="mushi-tier-badge",Object.assign(ze.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=ze.attachShadow({mode:"closed"});r.innerHTML=`
6
6
  <style>
7
7
  :host { display: block; }
8
8
  .badge {
@@ -32,7 +32,7 @@
32
32
  <span class="dot"></span>
33
33
  <span>${t.displayName}</span>
34
34
  </div>
35
- `,document.body.appendChild(ze);}function np(){ze?.remove(),ze=null;}var ve=null;function ip(t,e){if(ve)return;ve=document.createElement("div"),ve.id="mushi-consent-banner",Object.assign(ve.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=ve.attachShadow({mode:"closed"});r.innerHTML=`
35
+ `,document.body.appendChild(ze);}function hp(){ze?.remove(),ze=null;}var we=null;function fp(t,e){if(we)return;we=document.createElement("div"),we.id="mushi-consent-banner",Object.assign(we.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=we.attachShadow({mode:"closed"});r.innerHTML=`
36
36
  <style>
37
37
  :host { display: block; }
38
38
  .banner {
@@ -67,7 +67,7 @@
67
67
  <button class="decline" id="decline">No thanks</button>
68
68
  </div>
69
69
  </div>
70
- `,r.getElementById("accept")?.addEventListener("click",()=>{li(t,true),ve?.remove(),ve=null,e.showInWidget&&Ge&&hi(Ge).then(n=>{n&&ja(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{li(t,false),ve?.remove(),ve=null;}),document.body.appendChild(ve);}var op=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function tn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function rn(t,e){let r=e?.[ir];if(r)return r;let n=up(e?.headers,Hr);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(Hr);if(i)return i}return null}function gr(t,e={}){if([...op,...e.ignoreUrls??[]].some(i=>sp(t,i)))return true;let n=ap(e.apiEndpoint);return n?fi(t).startsWith(n):false}function sp(t,e){return typeof e=="string"?fi(t).includes(e):(e.lastIndex=0,e.test(t))}function ap(t){if(!t)return null;let e=fi(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function fi(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function up(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([i])=>i.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var lp=30,cp="00";function Wa(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),i=r(e);return {traceparent:`${cp}-${n}-${i}-01`,traceId:n,spanId:i}}function Va(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var nt=[];function za(){return nt[nt.length-1]}function Ka(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function gi(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,s=t,u=async function(T,b){let S=Date.now(),L=b?.method?.toUpperCase()??"GET",M=tn(T),m=!rn(T,b)&&!gr(M,s),E=m?Ka():void 0,f,g=b,_=s.tracePropagation;if(m&&_?.enabled&&_.corsUrls?.length&&Va(M,_.corsUrls)){let{traceparent:D,traceId:v}=Wa();f=v;let K=b?.headers?new Headers(b.headers):new Headers;K.set("traceparent",D),s.sessionId&&K.set("x-mushi-session",s.sessionId),g={...b,headers:K};}E&&nt.push(E);try{let D=await r.call(globalThis,T,g);return m&&k({method:L,url:mi(M),status:D.status,duration:Date.now()-S,timestamp:S,captureMethod:"fetch",...f?{traceId:f}:{},...E?{correlationId:E}:{}}),D}catch(D){throw m&&k({method:L,url:mi(M),status:0,duration:Date.now()-S,timestamp:S,error:D instanceof Error?D.message:"Network error",captureMethod:"fetch",...f?{traceId:f}:{},...E?{correlationId:E}:{}}),D}finally{if(E){let D=nt.lastIndexOf(E);D!==-1&&nt.splice(D,1);}}};globalThis.fetch=u;let d=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&a&&d){let w=i;XMLHttpRequest.prototype.open=function(...b){let[S,L]=b,M=typeof L=="string"?L:String(L),x=!gr(M,s),m=x?Ka():void 0,E,f,g=s.tracePropagation;if(x&&g?.enabled&&g.corsUrls?.length&&Va(M,g.corsUrls)){let D=Wa();E=D.traceId,f=D.traceparent;}let _=d.get(this);_?._listener&&this.removeEventListener("readystatechange",_._listener),d.set(this,{method:String(S).toUpperCase(),url:mi(M),startTime:0,shouldRecord:x,...E?{traceId:E}:{},...m?{correlationId:m}:{},...f?{_traceparent:f}:{}}),w.apply(this,b);},XMLHttpRequest.prototype.send=function(b){let S=d.get(this);if(S){S.startTime=Date.now();let L=S._traceparent;L&&(a.call(this,"traceparent",L),s.sessionId&&a.call(this,"x-mushi-session",s.sessionId)),S.correlationId&&nt.push(S.correlationId);let M=()=>{if(this.readyState===4){if(S.shouldRecord){let x=Date.now()-S.startTime,m={method:S.method,url:S.url,status:this.status,duration:x,timestamp:S.startTime,captureMethod:"xhr",...S.traceId?{traceId:S.traceId}:{},...S.correlationId?{correlationId:S.correlationId}:{}};this.status===0&&(m.error="XHR network error or aborted"),k(m);}if(S.correlationId){let x=nt.lastIndexOf(S.correlationId);x!==-1&&nt.splice(x,1);}}};S._listener=M,this.addEventListener("readystatechange",M);}o.call(this,b);};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function k(w){e.push(w),e.length>lp&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(w){s=w;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(p&&XMLHttpRequest.prototype.open===p&&(XMLHttpRequest.prototype.open=i),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function mi(t){let e=sr(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var dp=50,pp=500;function Ei(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let i of n){let o=console[i];e[i]=o;let a=(...s)=>{let u=s.map(h=>{try{return typeof h=="string"?h:JSON.stringify(h)}catch{return String(h)}}).join(" ").slice(0,pp),d=za(),p={level:i,message:u,timestamp:Date.now(),...d?{correlationId:d}:{}};i==="error"&&s[0]instanceof Error&&(p.stack=s[0].stack?.slice(0,1e3)),t.push(p),t.length>dp&&t.shift(),o.call(console,...s);};r[i]=a,console[i]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let i of n)e[i]&&console[i]===r[i]&&(console[i]=e[i]);}}}function wi(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),i=n.getContext("2d",{willReadFrequently:!0});if(!i)return e.onFailed?.("unsupported"),bi("unsupported"),null;let o=window.innerWidth,a=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);n.width=o*s,n.height=a*s,i.scale(s,s);let u=fp(e.privacy),d=`
70
+ `,r.getElementById("accept")?.addEventListener("click",()=>{di(t,true),we?.remove(),we=null,e.showInWidget&&Ge&&gi(Ge).then(n=>{n&&Ga(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{di(t,false),we?.remove(),we=null;}),document.body.appendChild(we);}var mp=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function sn(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function an(t,e){let r=e?.[or];if(r)return r;let n=bp(e?.headers,Or);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let i=t.headers.get(Or);if(i)return i}return null}function gr(t,e={}){if([...mp,...e.ignoreUrls??[]].some(i=>gp(t,i)))return true;let n=Ep(e.apiEndpoint);return n?Ei(t).startsWith(n):false}function gp(t,e){return typeof e=="string"?Ei(t).includes(e):(e.lastIndex=0,e.test(t))}function Ep(t){if(!t)return null;let e=Ei(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Ei(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function bp(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([i])=>i.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var yp=30,vp="00";function Ya(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),i=r(e);return {traceparent:`${vp}-${n}-${i}-01`,traceId:n,spanId:i}}function Xa(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}var _e=[];function Qa(){return _e[_e.length-1]}function Ja(){let t=crypto.getRandomValues(new Uint8Array(4));return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}function yi(t={}){let e=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,a=n?XMLHttpRequest.prototype.setRequestHeader:null,s=t,u=async function(T,b){let v=Date.now(),L=b?.method?.toUpperCase()??"GET",A=sn(T),m=!an(T,b)&&!gr(A,s),g=m?Ja():void 0,f,E=b,C=s.tracePropagation;if(m&&C?.enabled&&C.corsUrls?.length&&Xa(A,C.corsUrls)){let{traceparent:D,traceId:w}=Ya();f=w;let G=b?.headers?new Headers(b.headers):new Headers;G.set("traceparent",D),s.sessionId&&G.set("x-mushi-session",s.sessionId),E={...b,headers:G};}g&&_e.push(g);try{let D=await r.call(globalThis,T,E);return m&&k({method:L,url:bi(A),status:D.status,duration:Date.now()-v,timestamp:v,captureMethod:"fetch",...f?{traceId:f}:{},...g?{correlationId:g}:{}}),D}catch(D){throw m&&k({method:L,url:bi(A),status:0,duration:Date.now()-v,timestamp:v,error:D instanceof Error?D.message:"Network error",captureMethod:"fetch",...f?{traceId:f}:{},...g?{correlationId:g}:{}}),D}finally{if(g){let D=_e.lastIndexOf(g);D!==-1&&_e.splice(D,1);}}};globalThis.fetch=u;let p=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&a&&p){let S=i;XMLHttpRequest.prototype.open=function(...b){let[v,L]=b,A=typeof L=="string"?L:String(L),R=!gr(A,s),m=R?Ja():void 0,g,f,E=s.tracePropagation;if(R&&E?.enabled&&E.corsUrls?.length&&Xa(A,E.corsUrls)){let D=Ya();g=D.traceId,f=D.traceparent;}let C=p.get(this);if(C?._listener&&(this.removeEventListener("readystatechange",C._listener),C.correlationId)){let D=_e.lastIndexOf(C.correlationId);D!==-1&&_e.splice(D,1);}p.set(this,{method:String(v).toUpperCase(),url:bi(A),startTime:0,shouldRecord:R,...g?{traceId:g}:{},...m?{correlationId:m}:{},...f?{_traceparent:f}:{}}),S.apply(this,b);},XMLHttpRequest.prototype.send=function(b){let v=p.get(this);if(v){v.startTime=Date.now();let L=v._traceparent;L&&(a.call(this,"traceparent",L),s.sessionId&&a.call(this,"x-mushi-session",s.sessionId)),v.correlationId&&_e.push(v.correlationId);let A=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",A),v._listener=void 0,v.shouldRecord){let R=Date.now()-v.startTime,m={method:v.method,url:v.url,status:this.status,duration:R,timestamp:v.startTime,captureMethod:"xhr",...v.traceId?{traceId:v.traceId}:{},...v.correlationId?{correlationId:v.correlationId}:{}};this.status===0&&(m.error="XHR network error or aborted"),k(m);}if(v.correlationId){let R=_e.lastIndexOf(v.correlationId);R!==-1&&_e.splice(R,1);}}};v._listener=A,this.addEventListener("readystatechange",A);}try{o.call(this,b);}catch(L){if(v?.correlationId){let A=_e.lastIndexOf(v.correlationId);A!==-1&&_e.splice(A,1);}throw v?._listener&&(this.removeEventListener("readystatechange",v._listener),v._listener=void 0),L}};}let d=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function k(S){e.push(S),e.length>yp&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(S){s=S;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(d&&XMLHttpRequest.prototype.open===d&&(XMLHttpRequest.prototype.open=i),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function bi(t){let e=ar(t);try{let r=new URL(e),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return e.slice(0,200)}}var wp=50,Sp=500;function vi(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let i of n){let o=console[i];e[i]=o;let a=(...s)=>{let u=s.map(h=>{try{return typeof h=="string"?h:JSON.stringify(h)}catch{return String(h)}}).join(" ").slice(0,Sp),p=Qa(),d={level:i,message:u,timestamp:Date.now(),...p?{correlationId:p}:{}};i==="error"&&s[0]instanceof Error&&(d.stack=s[0].stack?.slice(0,1e3)),t.push(d),t.length>wp&&t.shift(),o.call(console,...s);};r[i]=a,console[i]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let i of n)e[i]&&console[i]===r[i]&&(console[i]=e[i]);}}}function Ri(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),i=n.getContext("2d",{willReadFrequently:!0});if(!i)return e.onFailed?.("unsupported"),wi("unsupported"),null;let o=window.innerWidth,a=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);n.width=o*s,n.height=a*s,i.scale(s,s);let u=Rp(e.privacy),p=`
71
71
  <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
72
72
  <foreignObject width="100%" height="100%">
73
73
  <div xmlns="http://www.w3.org/1999/xhtml">
@@ -75,9 +75,9 @@
75
75
  </div>
76
76
  </foreignObject>
77
77
  </svg>
78
- `,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,k=!1,w=T=>{let b=T;/^img-src|^default-src/.test(b.violatedDirective??"")&&/^data/.test(b.blockedURI??"")&&(k=!0);};return document.addEventListener("securitypolicyviolation",w),new Promise(T=>{let b=!1,S=(M,x)=>{b||(b=!0,clearTimeout(L),document.removeEventListener("securitypolicyviolation",w),x&&(e.onFailed?.(x),bi(x)),T(M));},L=setTimeout(()=>S(null,"timeout"),5e3);p.onload=()=>{try{if(i.drawImage(p,0,0,o,a),wp(i,o,a)){S(null,"unsupported");return}S(n.toDataURL("image/jpeg",.7));}catch{S(null,"taint");}},p.onerror=()=>setTimeout(()=>S(null,k?"csp":"error"),0),p.src=h;})}catch{return e.onFailed?.("error"),bi("error"),null}}return {take:r,updateOptions(n){e=n;}}}function bi(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var Si='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]',hp=["[data-mushi-redact]"];function fp(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),gp(e),Ep(e),vp(e),yp(e);let r=[Si,...t?.redactSelectors??hp];for(let n of r)for(let i of yi(e,n))mp(i);for(let n of t?.blockSelectors??[])for(let i of yi(e,n))i.remove();for(let n of t?.maskSelectors??[])for(let i of yi(e,n))xp(i);return e}function yi(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function mp(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function gp(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=vi(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=vi(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script"))r.remove();}function vi(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Sp(o,e)?"none":r})}function Ep(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let s=a.ownerNode;s instanceof Element&&s.tagName==="STYLE"||r.push(Ga(a));}let i=vi(r.filter(Boolean).join(`
79
- `),e);if(!i)return;let o=document.createElement("style");o.textContent=i,(t.querySelector("head")??t).appendChild(o);}var bp="*,*::before,*::after{animation:none!important;transition:none!important}";function yp(t){let e=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;e(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=t;n.style.setProperty("background-color",e(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function vp(t){let e=document.createElement("style");e.textContent=bp,(t.querySelector("head")??t).appendChild(e);}function Ga(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=Ga(n.styleSheet));continue}r+=`${n.cssText}
80
- `;}return r}function wp(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Sp(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function xp(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function Rp(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",i=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${i}`}function xi(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(t.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(t.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let a=o.interactionId;if(!a)continue;let s=r.get(a)??0;if(o.duration>s&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let u=o.processingStart-o.startTime,d=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:Rp(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,d),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())t.fid===void 0&&(t.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function Ri(){let t=false,e=null,r=null,n=null,i=null;function o(m){let E=m,f=0;for(;E&&f<20;){let g=E.getAttribute?.("data-testid");if(g)return g;E=E.parentElement,f++;}return null}function a(m){let E=[],f=m;for(;f&&f!==document.body;){let g=1,_=f.previousElementSibling;for(;_;)_.tagName===f.tagName&&g++,_=_.previousElementSibling;let D=f.tagName.toLowerCase();E.unshift(g>1?`${D}[${g}]`:D),f=f.parentElement;}return "//"+E.join("/")}function s(m){let E=m.getBoundingClientRect(),f=typeof m.className=="string"?m.className:m.getAttribute("class")??"";return {tagName:m.tagName.toLowerCase(),id:m.id||void 0,className:f||void 0,textContent:m.textContent?.trim().slice(0,200)||void 0,xpath:a(m),rect:{x:Math.round(E.x),y:Math.round(E.y),width:Math.round(E.width),height:Math.round(E.height)},nearestTestid:o(m)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function u(){let m=document.createElement("div");return m.style.cssText=`
78
+ `,d=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`,k=!1,S=T=>{let b=T;/^img-src|^default-src/.test(b.violatedDirective??"")&&/^data/.test(b.blockedURI??"")&&(k=!0);};return document.addEventListener("securitypolicyviolation",S),new Promise(T=>{let b=!1,v=(A,R)=>{b||(b=!0,clearTimeout(L),document.removeEventListener("securitypolicyviolation",S),R&&(e.onFailed?.(R),wi(R)),T(A));},L=setTimeout(()=>v(null,"timeout"),5e3);d.onload=()=>{try{if(i.drawImage(d,0,0,o,a),Mp(i,o,a)){v(null,"unsupported");return}v(n.toDataURL("image/jpeg",.7));}catch{v(null,"taint");}},d.onerror=()=>setTimeout(()=>v(null,k?"csp":"error"),0),d.src=h;})}catch{return e.onFailed?.("error"),wi("error"),null}}return {take:r,updateOptions(n){e=n;}}}function wi(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var ki='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]',xp=["[data-mushi-redact]"];function Rp(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),Cp(e),_p(e),Ip(e),Ap(e);let r=[ki,...t?.redactSelectors??xp];for(let n of r)for(let i of Si(e,n))kp(i);for(let n of t?.blockSelectors??[])for(let i of Si(e,n))i.remove();for(let n of t?.maskSelectors??[])for(let i of Si(e,n))Dp(i);return e}function Si(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function kp(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function Cp(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=xi(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=xi(n,e);i!==n&&r.setAttribute("style",i);}for(let r of t.querySelectorAll("script"))r.remove();}function xi(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Lp(o,e)?"none":r})}function _p(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let s=a.ownerNode;s instanceof Element&&s.tagName==="STYLE"||r.push(Za(a));}let i=xi(r.filter(Boolean).join(`
79
+ `),e);if(!i)return;let o=document.createElement("style");o.textContent=i,(t.querySelector("head")??t).appendChild(o);}var Tp="*,*::before,*::after{animation:none!important;transition:none!important}";function Ap(t){let e=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;e(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=t;n.style.setProperty("background-color",e(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function Ip(t){let e=document.createElement("style");e.textContent=Tp,(t.querySelector("head")??t).appendChild(e);}function Za(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=Za(n.styleSheet));continue}r+=`${n.cssText}
80
+ `;}return r}function Mp(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let a=0;a<e;a+=n)if(t.getImageData(a,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Lp(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function Dp(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function Pp(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",i=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${i}`}function Ci(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(t.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(t.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let a=o.interactionId;if(!a)continue;let s=r.get(a)??0;if(o.duration>s&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let u=o.processingStart-o.startTime,p=o.processingEnd-o.processingStart,d=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:Pp(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,p),presentationDelay:Math.max(0,d)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())t.fid===void 0&&(t.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function _i(){let t=false,e=null,r=null,n=null,i=null;function o(m){let g=m,f=0;for(;g&&f<20;){let E=g.getAttribute?.("data-testid");if(E)return E;g=g.parentElement,f++;}return null}function a(m){let g=[],f=m;for(;f&&f!==document.body;){let E=1,C=f.previousElementSibling;for(;C;)C.tagName===f.tagName&&E++,C=C.previousElementSibling;let D=f.tagName.toLowerCase();g.unshift(E>1?`${D}[${E}]`:D),f=f.parentElement;}return "//"+g.join("/")}function s(m){let g=m.getBoundingClientRect(),f=typeof m.className=="string"?m.className:m.getAttribute("class")??"";return {tagName:m.tagName.toLowerCase(),id:m.id||void 0,className:f||void 0,textContent:m.textContent?.trim().slice(0,200)||void 0,xpath:a(m),rect:{x:Math.round(g.x),y:Math.round(g.y),width:Math.round(g.width),height:Math.round(g.height)},nearestTestid:o(m)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function u(){let m=document.createElement("div");return m.style.cssText=`
81
81
  position: fixed;
82
82
  pointer-events: none;
83
83
  z-index: 2147483647;
@@ -86,11 +86,12 @@
86
86
  border-radius: 4px;
87
87
  transition: all 0.1s ease;
88
88
  display: none;
89
- `,document.body.appendChild(m),m}function d(){let m=document.createElement("div");return m.style.cssText=`
89
+ `,document.body.appendChild(m),m}function p(){let m=document.createElement("div");return m.style.cssText=`
90
90
  position: fixed;
91
91
  inset: 0;
92
92
  z-index: 2147483647;
93
93
  cursor: crosshair;
94
94
  background: transparent;
95
- `,document.body.appendChild(m),m}function p(m,E){let f=document.elementsFromPoint(m,E),g=null;for(let D of f)if(!(D===r||D===e)){if(D.id==="mushi-mushi-widget"||D.closest("#mushi-mushi-widget"))return null;g=D;break}let _=0;for(;g?.shadowRoot&&_<20;){let D=g.shadowRoot.elementFromPoint(m,E);if(!D||D===g)break;g=D,_++;}return g}function h(m){if(!e)return;let E=m.getBoundingClientRect();e.style.left=`${E.left}px`,e.style.top=`${E.top}px`,e.style.width=`${E.width}px`,e.style.height=`${E.height}px`,e.style.display="block";}function k(m){let E=p(m.clientX,m.clientY);if(!E){n=null,e&&(e.style.display="none");return}n=E,h(E);}function w(m){m.preventDefault(),m.stopPropagation();}function T(m){m.preventDefault(),m.stopPropagation();let E=p(m.clientX,m.clientY);E&&L(s(E));}function b(m){m.key==="Escape"&&L(null);}function S(){n?.isConnected&&h(n);}function L(m){x(),i?.(m),i=null;}function M(){return t&&x(),new Promise(m=>{i=m,t=true,e=u(),r=d(),r.addEventListener("mousemove",k),r.addEventListener("click",T),r.addEventListener("pointerdown",w),r.addEventListener("mousedown",w),r.addEventListener("mouseup",w),document.addEventListener("keydown",b,true),window.addEventListener("scroll",S,{capture:true,passive:true});})}function x(){t&&(t=false,n=null,document.removeEventListener("keydown",b,true),window.removeEventListener("scroll",S,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:M,deactivate:x,isActive:()=>t}}var Ya=120;function ki(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>Ya&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:sr(`${location.pathname}${location.search}${location.hash}`),href:sr(location.href)}});}function i(a){let s=a.target instanceof Element?a.target:null;if(!s)return;let u=s.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??s;r({ts:Date.now(),kind:"click",payload:{tag:u.tagName.toLowerCase(),id:u.id||void 0,text:kp(u)}});}let o=Me({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",i,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(u=>({ts:u.timestamp,kind:"log",payload:{level:u.level,message:u.message}})),...(a.networkLogs??[]).map(u=>({ts:u.timestamp,kind:"request",payload:{method:u.method,url:u.url,status:u.status,duration:u.duration,error:u.error}}))].sort((u,d)=>u.ts-d.ts).slice(-Ya)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",i,true);}}}function kp(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var Cp=6e4,_p=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Tp=/^[0-9a-f]{20,}$/i,Ap=/^\d+$/,Ip=/^[a-z0-9]{16,}$/i;function Xa(t){return t.length===0?t:_p.test(t)||Tp.test(t)||Ap.test(t)||Ip.test(t)&&/\d/.test(t)?"[id]":t}function Mp(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),a=r?.map(s=>s.startsWith("/#/")?s.slice(2):s);return "/#"+Ci(o,a)}return Ci(t,r)}function Ci(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Lp(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Xa).join("/")}function Lp(t,e){let r=t.split("/").filter(i=>i.length>0),n=[...e].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(s=>s.length>0);if(o.length!==r.length)continue;let a=true;for(let s=0;s<o.length;s++){let u=o[s],d=r[s];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==d){a=false;break}}if(a)return "/"+o.join("/")}return null}function Dp(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function Pp(){if(typeof window>"u")return [];try{let t=new Set,e=i=>{new URLSearchParams(i).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function Bp(){if(typeof document>"u")return null;let t=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function Fp(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),i="";for(let o=0;o<n.length;o++)i+=n[o].toString(16).padStart(2,"0");return i}catch{return null}}function _i(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,a=e.throttleMs??Cp,s=e.captureDomSummary!==false,u=e.userIdSource??"auto",d=new Map,p=null,h=null;async function k(){if(typeof window>"u")return;let L=Mp(window.location.pathname,window.location.hash,e.routeTemplates),M=Date.now(),x=d.get(L)??0;if(M-x<a)return;d.set(L,M);let m=null;u==="auto"?m=n()??i():u==="session-only"&&(m=i());let E={route:L,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:s?Bp():null,testids:Dp(),network_paths:r().slice(-50),query_param_keys:Pp(),user_id_hash:await Fp(m),observed_at:new Date().toISOString()};o(E);}function w(){h||(h=setTimeout(()=>{h=null,k();},100));}function T(){if(typeof window>"u")return;let L=window.location.hash.startsWith("#/")?window.location.hash:"",M=window.location.pathname+window.location.search+L;M!==p&&(p=M,w());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let b=()=>T(),S=Me({onPush:b,onReplace:b,onPop:b});return window.addEventListener("hashchange",b),w(),{destroy(){S(),window.removeEventListener("hashchange",b),h&&(clearTimeout(h),h=null),d.clear();},flushNow(){d.clear(),k();}}}var $p=3e4,Ai=400,Hp=4,Op=2;function Ja(t,e,r){let n=u=>u.timestamp,i=u=>u.type===Op,o=u=>u.type===Hp,a=Date.now()-e,s=0;for(let u=0;u<t.length;u++){let d=n(t[u]);if(typeof d=="number"&&d>=a)break;i(t[u])&&(s=o(t[u-1])?u-1:u);}if(t.length-s>r){for(let u=s+1;u<t.length;u++)if(i(t[u])&&t.length-u<=r){s=o(t[u-1])?u-1:u;break}}s>0&&t.splice(0,s);}function Qa(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,s=a?.tagName?.toLowerCase()??"unknown",u=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:s,testId:u}}),e.length>Ai&&e.shift();},i=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:i,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){i(),e.length=0;}}}var Np=['input[type="password"]',"[data-mushi-redact]"],Up="rrweb",Fe=null,Za=false;function Ti(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.record=="function"?e:e.default&&typeof e.default.record=="function"?e.default:null}async function qp(t){if(Fe)return Fe;if(typeof t=="function")try{if(Fe=Ti(await t()),Fe)return Fe}catch{}if(Fe=Ti(globalThis.rrweb),Fe)return Fe;try{let e=globalThis.__MUSHI_RRWEB_SPECIFIER__||Up;return Fe=Ti(await import(e)),Fe}catch{return null}}async function eu(t){let e=t.maxDurationMs??$p;if(t.mode==="lite")return Qa(e);let r=await qp(t.loadRrweb);if(!r?.record)return Za||(Za=true,Tt({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),Qa(e);let n=r.record,i=[],o=null,a=false,s=[...new Set([...Np,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(d){i.push(d),Ja(i,e,Ai);},maskAllInputs:true,maskTextSelector:"*",blockSelector:s.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Ja(i,e,Ai),[...i]},destroy(){u(),i.length=0;}}}function tu(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function jp(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Wp(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Ii(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=tu();if(!i)return n;n.sdk=Wp();try{let s=i;if(typeof s.lastEventId=="function")n.eventId=s.lastEventId()??void 0;else {let d=i.getCurrentHub?.()?.getScope?.();n.eventId=d?.getLastEventId?.()??void 0;}}catch{}let o;try{let s=i;typeof s.getCurrentScope=="function"?o=s.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let s=o.getUser?.();s&&(n.user={id:typeof s.id=="string"?s.id:void 0,email:typeof s.email=="string"?s.email:void 0,username:typeof s.username=="string"?s.username:void 0,ip_address:typeof s.ip_address=="string"?s.ip_address:void 0});}catch{}try{let s=o.getTags?.();if(s&&typeof s=="object"){let u={};for(let[d,p]of Object.entries(s))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[d]=p);Object.keys(u).length>0&&(n.tags=u);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let s=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(s)&&s.length>0){let u=s.slice(-r);n.breadcrumbs=u.map(d=>{let p=d;return {timestamp:typeof p.timestamp=="number"?p.timestamp<1e12?Math.round(p.timestamp*1e3):p.timestamp:void 0,category:typeof p.category=="string"?p.category:void 0,level:typeof p.level=="string"?p.level:void 0,message:typeof p.message=="string"?p.message:void 0,type:typeof p.type=="string"?p.type:void 0,data:p.data&&typeof p.data=="object"?p.data:void 0}});}}catch{}}try{let s=i,u;if(typeof s.getActiveSpan=="function"?u=s.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let d=u.spanContext?.();n.traceId=d?.traceId??u.traceId??void 0,n.spanId=d?.spanId??u.spanId??void 0;}}catch{}let a;try{let s=i;typeof s.getClient=="function"?a=s.getClient():a=i.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let s=a.getOptions?.();s?.release&&(n.release=s.release),s?.environment&&(n.environment=s.environment);}catch{}try{let s=a.getDsn?.();if(s?.host&&s?.projectId&&n.eventId){let u=s.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??jp();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Mi(t,e={}){let r=tu();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",t),e.reportUrl&&i.setTag?.("mushi.report_url",e.reportUrl),i.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Vp=["/login","/logout","/signup","/sso/*","/auth/*"];function nu(t,e={}){let r=[];if(e.rageClick!==false){let b=function(S){let L=Date.now();if(S.target===T){if(w.push(L),w=w.filter(M=>L-M<500),w.length>=3){let M=S.target;t.onTrigger("rage_click",{element:M.tagName,id:M.id,text:M.textContent?.slice(0,50)}),w=[];}}else T=S.target,w=[L];};let w=[],T=null;document.addEventListener("click",b,true),r.push(()=>document.removeEventListener("click",b,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let w=new PerformanceObserver(T=>{for(let b of T.getEntries())b.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(b.duration),startTime:Math.round(b.startTime)});});w.observe({entryTypes:["longtask"]}),r.push(()=>w.disconnect());}catch{}let n=Kp(e.apiCascade);if(n.enabled){let w=[],T=globalThis.fetch;globalThis.fetch=async function(...b){let[S,L]=b,M=tn(S),x=!!rn(S,L)||gr(M,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let m=await T.apply(this,b);return !x&&!m.ok&&m.status>=400&&ru(w,t),m}catch(m){throw x||ru(w,t),m}},r.push(()=>{globalThis.fetch=T;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let M=function(g){return b.some(_=>_.endsWith("/*")?g.startsWith(_.slice(0,-2)):g===_||g.startsWith(_+"/"))},x=function(){let g=window.location?.pathname??"";M(g)||t.onTrigger("page_dwell",{thresholdMs:T,path:g});},m=function(){S&&clearTimeout(S);let g=window.location?.pathname??"";M(g)||(S=setTimeout(x,T));},E=function(){let g=window.location?.pathname??"";g!==L&&(L=g,m());};let w=typeof e.pageDwell=="object"?e.pageDwell??{}:{},T=w.thresholdMs||300*1e3,b=w.excludeRoutes!==void 0?w.excludeRoutes:Vp,S=null,L=window.location?.pathname??"";m();let f=Me({onPush:E,onReplace:E,onPop:E});r.push(()=>{S&&clearTimeout(S),f();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let w=typeof e.firstSession=="object"?e.firstSession??{}:{},T=w.delayMs??45*1e3,b=w.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),S=false;try{S=window.localStorage?.getItem(b)==="1";}catch{}if(!S){let L=setTimeout(()=>{try{window.localStorage?.setItem(b,"1");}catch{}t.onTrigger("first_session",{delayMs:T});},T);r.push(()=>clearTimeout(L));}}if(e.errorBoundary){let w=function(b){or({message:b.message,filename:b.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:b.message,filename:b.filename,lineno:b.lineno,colno:b.colno});},T=function(b){let S=b.reason instanceof Error?b.reason.message:String(b.reason);or({message:S,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:S,type:"unhandled_rejection"});};window.addEventListener("error",w),window.addEventListener("unhandledrejection",T),r.push(()=>{window.removeEventListener("error",w),window.removeEventListener("unhandledrejection",T);});}return {destroy(){r.forEach(w=>w());}}}function Kp(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function ru(t,e){let r=Date.now();t.push(r);let n=t.filter(i=>r-i<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var iu="mushi:lastDismiss",nn="mushi:consecDismiss",Li="mushi:lastShown";function on(t){try{return localStorage.getItem(t)}catch{return null}}function sn(t,e){try{localStorage.setItem(t,e);}catch{}}function ou(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,i=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function s(h){let k=Date.now();if(parseInt(on(nn)??"0",10)>=n)return false;let T=on(iu);if(T&&k-parseInt(T,10)<r*60*60*1e3)return false;if(i>0&&o===0){let b=on(Li);if(b&&k-parseInt(b,10)<i)return false}return o>=e||a.has(h)?false:(a.add(h),o++,sn(Li,String(k)),true)}function u(){sn(iu,String(Date.now()));let h=parseInt(on(nn)??"0",10);sn(nn,String(h+1));}function d(){sn(nn,"0");}function p(){o=0,a.clear();try{localStorage.removeItem(Li);}catch{}}return {shouldShow:s,recordDismissal:u,recordSubmission:d,reset:p}}var Ye="@mushi-mushi/web",we="1.32.1";function cu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var $e=null,an=class{constructor(){}static init(e){if($e)return Tt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),$e;if(typeof document>"u"||typeof window>"u")return pu();let r={...Ln(),...e};if(!r.projectId||!r.apiKey){let n=Ho();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?pu():($e=Yp(r),$e)}static getInstance(){return $e}static destroy(){$e?.destroy(),$e=null;}static diagnose(){return $e?.diagnose()??Pi()}};function Yp(t){No(t);let e=Oo(t),r=e.projectId,n=()=>te(r),i=e,o=t.debug??false?Tt({scope:"mushi",level:"debug",format:"pretty"}):Dn,a=null,s=null,u=$o({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:Ye,sdkVersion:we}),d=null;if(e.trackSessions!==false){ts({client:u,sdkVersion:we,reporterToken:te(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{d=Me({onPush:()=>Hn(),onPop:()=>Hn()});}catch{}}let p=Uo(e.preFilter),h=Ko(e.offline),k=fs({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),w=Un();ls({client:u,projectId:e.projectId,sdkVersion:we,config:e.analytics,scrub:l=>w.scrub(l),getSessionId:Et});function T(l){return l.map(c=>{let y={...c};if(typeof c.message=="string"&&(y.message=w.scrub(c.message)),c.data&&typeof c.data=="object"){let I={};for(let[B,N]of Object.entries(c.data))I[B]=typeof N=="string"?w.scrub(N):N;y.data=I;}return y})}function b(l){return l&&l.map(c=>({...c,message:w.scrub(c.message),...c.stack?{stack:w.scrub(c.stack)}:{}}))}function S(l){if(!l)return;let c={};for(let[y,I]of Object.entries(l))c[y]=typeof I=="string"?w.scrub(I):I;return c}let L=null,M=null,x=null,m=null,E=null,f=null,g=ki(),_=null,D=0,v,K=`mushi:tester-jwt:${e.projectId}`;function Y(){try{return typeof localStorage<"u"?localStorage.getItem(K):null}catch{return null}}function j(){try{typeof localStorage<"u"&&localStorage.removeItem(K);}catch{}}async function ke(l){let c=await u.getTesterStatus(l);if(!c.ok||!c.data){j();return}let y=c.data;if(!y.is_tester||!y.tester_id){j();return}v.setTesterSession(l,{id:y.tester_id,public_handle:y.public_handle??null,display_name:y.display_name??null});let I=await u.getMyReputation(l);if(I.ok&&I.data){let B=I.data;B.reputation&&v.setTesterReputation(B.reputation);}}function He(){if(i.capture?.console!==false?L??=Ei():(L?.destroy(),L=null),i.capture?.network!==false){let H={apiEndpoint:Di(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:Et()};M?M.updateOptions(H):M=gi(H);}else M?.destroy(),M=null;if(i.capture?.performance!==false?x??=xi():(x?.destroy(),x=null),i.capture?.screenshot!=="off"){let H={privacy:i.privacy,onFailed:Z=>v.setScreenshotError(true,Z)};i.capture?.screenshotProvider?m=null:m?m.updateOptions(H):m=wi(H);}else m=null;!m&&!i.capture?.screenshotProvider&&(F=null),v.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?E??=Ri():(E?.deactivate(),E=null,G=null),v.setCaptureAvailability({screenshot:(!!m||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!E});let l=i.capture?.discoverInventory,c=l===true?{}:l&&typeof l=="object"?l:null;c!=null&&c.enabled!==false?(f?.destroy(),f=_i({config:c,getRecentNetworkPaths:()=>M?M.getEntries().map(H=>{try{let Z=new URL(H.url,typeof window<"u"?window.location.href:"http://localhost");return Z.host&&typeof window<"u"&&Z.host!==window.location.host?null:Z.pathname}catch{return null}}).filter(H=>H!=null&&H.length>0&&H.length<200):[],getUserId:()=>R?.id??null,getSessionId:Et,onEvent:H=>{u.postDiscoveryEvent({...H,sdk_version:we}).catch(Z=>{o.debug("discovery emit failed",{err:String(Z)});});}})):(f?.destroy(),f=null);let I=i.capture?.replay??"off",B=i.replaySampleRate??1,N=B>=1||Math.random()<B,Q=i.replaysOnErrorSampleRate??0,ue=!N&&Q>0&&Math.random()<Q;if((I==="rrweb"||I==="lite")&&(N||ue)){let H=++D;eu({mode:I,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(Z=>{if(H!==D){Z.destroy();return}_?.destroy(),_=Z,_.start();});}else D++,_?.destroy(),_=null;}let me=new Map;function J(l,c){me.get(l)?.forEach(y=>y({type:l,data:c}));}let F=null,G=null,re=null,Ce=false,_e=true,Le=null,A=null,R=null,$=null,O={},U={},X=gs({max:50});X.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:we}});let Xe=null;Xe=oh(X);let Oe=false,it=false,he=new Set,ie=ka(u);async function ge(){let l=await ie.getUpdates(n()),c=l.ok?l.data??null:null;if(c)for(let y of he)try{y(c);}catch{}return c}function Nt(){v.refreshReporterInboxQuiet(),he.size&&ge();}function z(){Le&&clearInterval(Le),Le=null,A&&typeof document<"u"&&document.removeEventListener("visibilitychange",A),A=null;}function Ut(){if(z(),!_e)return;let l=5*6e4,c=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ii(r)&&Nt();};Le=setInterval(c,l),typeof document<"u"&&(A=()=>{document.visibilityState==="visible"&&c();},document.addEventListener("visibilitychange",A)),c();}let ot=null;function st(){let l=i.notifications??e.notifications;v.setReporterChannels({email:!!ot?.emailEnabled&&l?.email!==false,push:!!(ot?.pushEnabled&&ot.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?R?.email??"":""});}let St=[];function mu(){if(!ii(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{v.preloadViews();},{timeout:8e3}):setTimeout(()=>{v.preloadViews();},3e3),e.notifications?.toast===false||!xa(r))return;let c=async()=>{let I=await ge(),B=I&&typeof I.unread_total=="number"&&Array.isArray(I.latest)?I:null;if(B&&!B.unread_total)return;await v.refreshReporterInboxQuiet(),(B?v.showUpdatesFeedToast(B,St):await v.showUpdatesToast(St))&&Ra(r);},y=globalThis.requestIdleCallback;y?y(()=>{c();},{timeout:5e3}):setTimeout(()=>{c();},2e3);}async function gu(l){let c=te(r),y=await ie.markReportRead(l,c);if(y.ok)return y.data?.unread_total??null;let I=await u.listNotifications(c,{limit:50});if(!I.ok)return null;let B=(I.data?.notifications??[]).filter(N=>{let Q=N.payload??{};return !N.read_at&&(Q.reportId===l||N.report_id===l)});return await Promise.all(B.map(N=>u.markNotificationRead(String(N.id),c))),null}function Fi(l,c){if(!i.rewards?.enabled)return;let y={client:u,config:i.rewards,projectId:r,userId:l,traits:c,reporterToken:n()};Ha(y),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(I=>{if(!I.ok)return;let B=I.data;v.setRewardsState({tier:B.tier?{slug:B.tier.slug??"free",displayName:B.tier.display_name??"Free",pointsThreshold:B.tier.points_threshold??0}:null,nextTier:B.next_tier?{displayName:B.next_tier.display_name??"",pointsThreshold:B.next_tier.points_threshold??0}:null,totalPoints:B.total_points??0,pointsForReport:B.report_submit_pts??50});}).catch(()=>{});}async function $i(){if(Oe)return null;it=false;let l=i.capture?.screenshotProvider;if(l){Oe=true;try{let B=await l();if(B)return B}catch(B){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:B instanceof Error?B.message:String(B)}),it=B instanceof Error&&(B.name==="NotAllowedError"||B.name==="SecurityError"||/permission|denied/i.test(B.message));}finally{Oe=false;}}if(!m)return null;Oe=true;let c=v.getIsOpen();c&&v.hidePanel();let y=document.getElementById("mushi-mushi-widget"),I=y?.style.visibility??"";y&&(y.style.visibility="hidden"),await new Promise(B=>{requestAnimationFrame(()=>requestAnimationFrame(()=>B()));});try{return await m.take()}finally{Oe=false,y&&(y.style.visibility=I),c&&v.showPanel();}}async function Hi(l){let c=i.capture?.screenshot;!(m||i.capture?.screenshotProvider)||c==="off"||F||l==="open"&&c!=="auto"||l==="submit"&&c!=="on-report"&&c!=="auto"||(o.debug("Auto-capturing screenshot",{when:l,mode:c}),F=await $i(),v.setScreenshotAttached(F!==null),v.setScreenshotPreview(F));}let un=nr(r).then(l=>l.slice(0,12)).catch(()=>null);v=new Yr(e.widget,{onSubmit:async({category:l,userCategory:c,description:y,intent:I})=>(o.info("Report submitted",{category:l,userCategory:c,intent:I}),qt?.recordSubmission(),await Hi("submit"),await bu(l,y,I,c)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),Hi("open"),_?.start(),J("widget:opened");},onBrandFooterImpression:()=>{un.then(l=>{_t("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{un.then(l=>(_t("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),ps()));},onClose:()=>{o.debug("Widget closed"),re&&(qt?.recordDismissal(),J("proactive:dismissed",{type:re})),F=null,G=null,re=null,J("widget:closed");},onScreenshotRequest:async()=>{if(!(!!m||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),v.setScreenshotError(true,"unsupported");return}if(!Oe){o.debug("Taking screenshot"),v.setScreenshotCapturing(true);try{F=await $i();}catch(c){o.warn("Screenshot capture threw",{error:c instanceof Error?c.message:String(c)}),F=null;}v.setScreenshotAttached(F!==null),v.setScreenshotPreview(F),F===null&&v.setScreenshotError(true,it?"permission":void 0);}},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let l=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});l.catch(()=>{}),v.setScreenshotCapturing(true);let c=document.getElementById("mushi-mushi-widget");c&&(c.style.visibility="hidden");let y=i.privacy;Promise.resolve().then(()=>(au(),su)).then(I=>I.grabMaskedTabFrame(l,[Si,"[data-mushi-redact]",...y?.redactSelectors??[],...y?.maskSelectors??[],...y?.blockSelectors??[]]),I=>{throw l.then(B=>B.getTracks().forEach(N=>N.stop()),()=>{}),I}).then(I=>{F=I,v.setScreenshotAttached(true),v.setScreenshotPreview(I);}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),v.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{c&&(c.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),F=null,v.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!F||l.childElementCount>0)return;let c;try{let{createScreenshotAnnotation:Q}=await Promise.resolve().then(()=>(lu(),uu));c=await Q(F,l);}catch(Q){o.warn("Screenshot annotation failed",{error:Q instanceof Error?Q.message:String(Q)});return}let y=document.createElement("div");y.className="mushi-annotate-toolbar";let I=Q=>{(F=c.getDataUrl(),v.setScreenshotAttached(true),v.setScreenshotPreview(F)),c.destroy(),y.remove();},B=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let Q of B){let ue=document.createElement("button");ue.type="button",ue.className="mushi-attach-btn",ue.dataset.tool=Q.id,ue.textContent=Q.label,ue.addEventListener("click",()=>{c.setTool(Q.id),y.querySelectorAll("button[data-tool]").forEach(H=>H.classList.remove("active")),ue.classList.add("active");}),y.appendChild(ue);}y.querySelector('button[data-tool="highlight"]')?.classList.add("active");let N=document.createElement("button");N.type="button",N.className="mushi-attach-btn",N.textContent="\u2713 Done",N.addEventListener("click",()=>I()),y.appendChild(N),l.insertBefore(y,l.firstChild);},onElementSelectorRequest:async()=>{if(!E||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),v.setElementError(true);return}o.debug("Element selector activated"),v.setElementCapturing(true),v.hidePanel();try{let l=await E.activate();l?(G=l,v.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):v.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),v.setElementError(true);}finally{v.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return St=l.data?.reports??[],St.length&&ni(r),St},onReporterMarkRead:l=>gu(l),async onReporterReportRequest(l){let c=await ie.getReport(l,te(r));return c.ok&&c.data?{report:c.data.report,timeline:c.data.timeline}:null},async onReporterEmailOptIn(l){let c=await ie.setPrefs(te(r),{email:l,channels:{email:true}});if(!c.ok)throw new Error(c.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await cn.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let c=await u.listReporterComments(l,te(r));if(!c.ok)throw new Error(c.error?.message??"Could not load thread");return c.data?.comments??[]},async onReporterReply(l,c){let y=await u.replyToReporterReport(l,te(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not send reply")},async onReporterFeedback(l,c,y){let I=await u.replyToReporterReport(l,te(r),y??"",c);if(!I.ok)throw new Error(I.error?.message??"Could not send feedback");return I.data?.feedback??null},async onReporterReopen(l,c){let y=await u.reopenReporterReport(l,te(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not reopen report");return y.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load community ideas");return l.data?.tickets??[]},async onFeatureBoardVote(l){let c=await u.voteReporterFeatureBoard(l,te(r));if(!c.ok)throw new Error(c.error?.message??"Could not vote");return c.data??{voted:true,action:"added"}},onLeaderboardOpen(){v.setLeaderboard(null,true),Na(10).then(l=>{v.setLeaderboard(l,false);});},async onMushiSignIn(l){let c=await u.sendMagicLink(l);if(!c.ok)throw new Error(c.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){v.setGlobalLeaderboard(null,true);try{let l=Y(),c=await u.getPublicLeaderboard(50),I=(c.ok?c.data?.leaderboard??[]:[]).map(B=>({tester_id:B.tester_id,rank:B.rank,public_handle:B.public_handle,display_name:B.display_name,points_30d:B.points_30d,total_points:B.total_points??0,badge:B.badge_slug}));if(v.setGlobalLeaderboard(I,!1),l){let B=await u.getMyReputation(l);if(B.ok&&B.data){let N=B.data;N.reputation&&v.setTesterReputation(N.reputation);}}}catch{v.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=Y();if(!l){v.setCrossAppReports([],false);return}try{let c=await u.getCrossAppReports(l),y=c.ok?c.data?.reports??[]:[];v.setCrossAppReports(y,!1);}catch{v.setCrossAppReports([],false);}},onTesterSignOut(){j();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(l,c){let y=await u.askAssistant({message:l,threadId:c,context:s});return y.ok?y.data??null:null}}),un.then(l=>v.setBrandRef(l)),He(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>v.mount()):v.mount());let Oi=Y();Oi&&ke(Oi).catch(()=>j());let Ni=null,qt=null,ee=i.proactive;ee&&(ee.rageClick!==false||ee.longTask!==false||ee.apiCascade!==false||ee.errorBoundary===true||ee.pageDwell||ee.firstSession)&&typeof document<"u"&&(qt=ou(ee?.cooldown),Ni=nu({onTrigger:(l,c)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!qt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:c}),re=l,J("proactive:triggered",{type:l,context:c}),l==="first_session"?v.pulseTrigger?.():v.open();}},{rageClick:ee?.rageClick,longTask:ee?.longTask,apiCascade:ee?.apiCascade,apiEndpoint:Di(i),errorBoundary:ee?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:ee?.pageDwell,firstSession:ee?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:ee?.rageClick!==false,longTask:ee?.longTask!==false,apiCascade:ee?.apiCascade!==false,errorBoundary:ee?.errorBoundary===true,pageDwell:!!ee?.pageDwell,firstSession:!!ee?.firstSession})),h.startAutoSync(u),h.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function ln(l){if(Ce=true,_e=l.reporterNotificationsEnabled!==false,ot=l.enabled===false?null:l.reporter??null,st(),l.enabled===false){i=e,th(t.projectId),He(),v.updateConfig(i.widget),z(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=_a(i,l,e),He(),l.widget&&v.updateConfig(i.widget),_e?Ut():z(),o.debug("Applied runtime SDK config",{version:l.version});}if(Xp(t)){let l=Zp(t.projectId);l&&ln(l),u.getSdkConfig().then(c=>{c.ok&&c.data?(eh(t.projectId,c.data),ln(c.data)):c.error&&o.debug("Runtime SDK config unavailable",c.error);}).catch(c=>{o.debug("Runtime SDK config fetch failed",{error:c instanceof Error?c.message:String(c)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");Eu(),Ut(),mu(),o.info("Initialized",{projectId:t.projectId});async function Eu(){if(i.widget?.outdatedBanner==="off")return;let l=rh(Ye);l&&Ui(l);let c=await u.getLatestSdkVersion(Ye);!c.ok||!c.data||(nh(Ye,c.data),Ui(c.data));}function Ui(l){let c=l.latest,y=!!(c&&ih(we,c));if(!y&&!l.deprecated)return;let I=l.deprecationMessage??(y?`Update ${Ye} to ${c}.`:null);o.warn("Mushi SDK is outdated",{package:Ye,current:we,latest:c,deprecated:l.deprecated,message:I}),Ws(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&v.setSdkFreshness({latest:c,current:we,deprecated:l.deprecated,message:I});}async function bu(l,c,y,I){let B=p.check(c);if(!B.passed){o.info("Report blocked by pre-filter",{reason:B.reason});return}let N=t.preFilter?.wasmClassifier;if(N)try{let q=await N.classify({description:c,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:F!==null,hasSelectedElement:G!==null,hasNetworkErrors:M?.getEntries()?.some(Ee=>Ee.status>=400||!!Ee.error)??!1,hasConsoleErrors:L?.getEntries()?.some(Ee=>Ee.level==="error")??!1,proactiveTrigger:re??void 0});if(q.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:q.modelId,confidence:q.confidence,reason:q.reason});return}o.debug("On-device classifier verdict",{...q});}catch(q){o.warn("On-device classifier threw \u2014 falling through to server",{error:q instanceof Error?q.message:String(q)});}if(re!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:re});return}if(!k.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let ue=w.scrub(p.truncate(c)),H=t.sentry?Ii(t.sentry):void 0,Z=await zo().catch(()=>null),Ne=i.capture?.console===false?void 0:b(L?.getEntries()),Ue=i.capture?.network===false?void 0:M?.getEntries(),Er=T(X.getAll()),Wi=S(Object.keys(U).length>0?{...U}:void 0),Vi=H?{...H,...H.breadcrumbs?{breadcrumbs:T(H.breadcrumbs)}:{},...H.tags?{tags:S(H.tags)}:{}}:void 0,Ki=F?await Ps(F).catch(()=>null):null,br=false;F&&!Ki&&(br=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let zi=Pn(),Te={id:Bn(),projectId:t.projectId,category:l,...I?{userCategory:I}:{},description:ue,userIntent:y,environment:zi,consoleLogs:Ne,networkLogs:Ue,performanceMetrics:i.capture?.performance===false?void 0:x?.getMetrics(),timeline:g.getEntries({consoleLogs:Ne,networkLogs:Ue}),screenshotDataUrl:Ki??void 0,selectedElement:G??void 0,..._?{replayEvents:_.flush()}:{},metadata:{...O,...R?{user:R}:{},...H?.release?{sentryRelease:H.release}:{}},sessionId:Et(),reporterToken:te(r),...Z?{fingerprintHash:Z}:{},appVersion:cu(i,zi),sdkPackage:Ye,sdkVersion:we,proactiveTrigger:re??void 0,...Er.length>0?{breadcrumbs:Er}:{},...Wi?{tags:Wi}:{},...Vi?{sentryContext:Vi}:{},sentryEventId:H?.eventId,sentryReplayId:H?.replayId,createdAt:new Date().toISOString()};if(X.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Te.id,category:l}}),t.integrations?.custom){let q={addMetadata(Ee,dn){Te.metadata[Ee]=dn;},setCategory(Ee){Te.category=Ee;},setDescription(Ee){Te.description=Ee;}};t.integrations.custom(q);}let W=Te,Gi=t.beforeSend??t.beforeSendFeedback;if(Gi)try{let q=await Promise.race([Promise.resolve(Gi(Te)),new Promise(Ee=>setTimeout(()=>Ee(Te),2e3))]);if(q===null){o.info("Report dropped by beforeSend hook",{reportId:Te.id});return}W=q;}catch(q){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:q instanceof Error?q.message:String(q)});}if(J("report:submitted",{reportId:W.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(W),o.info("Offline \u2014 report queued",{reportId:W.id}),J("report:queued",{reportId:W.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let V=await u.submitReport(W);if(!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(W.replayEvents)&&W.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:W.id}),W={...W,replayEvents:void 0},V=await u.submitReport(W)),!V.ok&&V.error?.code==="PAYLOAD_TOO_LARGE"&&W.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:W.id}),br=true,W={...W,screenshotDataUrl:void 0},V=await u.submitReport(W))),V.ok){if(o.info("Report sent",{reportId:V.data?.reportId}),J("report:sent",{reportId:V.data?.reportId}),ni(r),Nt(),V.data?.cursorAgentId){let q=V.data;J("report:dispatched",{reportId:q.reportId,agentId:q.cursorAgentId,fixId:q.fixId});}X.add({category:"lifecycle",level:"info",message:`Mushi report sent (${V.data?.reportId??Te.id})`}),Ot({action:"report_submit",metadata:{category:l,reportId:V.data?.reportId??Te.id}});try{t.sentry&&V.data?.reportId&&Mi(V.data.reportId);}catch{}}else {if(V.error?.code==="PAYLOAD_TOO_LARGE"||V.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:W.id,error:V.error}),J("report:failed",{reportId:W.id,error:V.error}),X.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${W.id})`}),F=null,G=null,re=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:br};{let q=V.error?.code??"",Ee=q==="HTTP_429"||q.includes("RATE_LIMIT"),dn=q==="HTTP_401"||q.includes("UNAUTHORIZED")||q.includes("INVALID_API_KEY")||q.includes("MISSING_API_KEY"),yu=q==="HTTP_403"||q.includes("QUOTA")||q.includes("FORBIDDEN")||q==="feature_not_in_plan";if(dn||yu)return o.warn("Report rejected \u2014 credentials/quota",{reportId:W.id,error:V.error}),J("report:failed",{reportId:W.id,error:V.error}),F=null,G=null,re=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(Ee)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:W.id,error:V.error}),await h.enqueue(W),J("report:failed",{reportId:W.id,error:V.error}),F=null,G=null,re=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:W.id,error:V.error}),await h.enqueue(W),J("report:failed",{reportId:W.id,error:V.error}),X.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${W.id})`});}}return F=null,G=null,re=null,V?.ok?{reportId:V.data?.reportId??Te.id,queuedOffline:false,screenshotDropped:br}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let cn={report(l){v.open(l);},on(l,c){return me.has(l)||me.set(l,new Set),me.get(l).add(c),()=>me.get(l)?.delete(c)},setUser(l){R=l;},setMetadata(l,c){O[l]=c;},setScreen(l){g.setScreen(l);},isOpen(){return v.getIsOpen()},open(){v.open();},openWith(l){v.open({category:l});},show(){v.showTrigger();},hide(){v.hideTrigger();},attachTo(l,c){return v.attachTo(l,c)},setTrigger(l){v.setTrigger(l);},openReporter(){v.openReporter();},close(){v.close();},updateConfig(l){ln(l);},diagnose(){return Jp({apiEndpoint:Di(i),widgetMounted:v.getIsMounted(),runtimeConfigLoaded:Ce,captureScreenshotAvailable:m!==null,captureNetworkIntercepting:M!==null,widgetDiagnostics:v.getWidgetDiagnostics()})},destroy(){Ni?.destroy(),qt?.reset(),hs(),v.destroy(),L?.destroy(),M?.destroy(),x?.destroy(),E?.deactivate(),Ua(),Xe?.(),Xe=null,f?.destroy(),f=null,g.destroy(),Ia(),_?.destroy(),_=null,h.stopAutoSync(),z(),d?.(),d=null,ns(),X.clear(),me.clear(),$e=null,o.debug("Destroyed");},async captureEvent(l){if(!k.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let c=w.scrub(p.truncate(l.description)),y=l.category??"bug",I=t.sentry?Ii(t.sentry):void 0,B=T(X.getAll()),N=S(Object.keys(U).length===0&&!l.tags?void 0:{...U,...l.tags??{}}),Q=I?{...I,...I.breadcrumbs?{breadcrumbs:T(I.breadcrumbs)}:{},...I.tags?{tags:S(I.tags)}:{}}:void 0,ue=Pn(),H={id:Bn(),projectId:t.projectId,category:y,description:c,environment:ue,timeline:g.getEntries(),metadata:{...l.metadata??{},...R?{user:R}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...B.length>0?{breadcrumbs:B}:{},...N&&Object.keys(N).length>0?{tags:N}:{},...Q?{sentryContext:Q}:{},sessionId:Et(),reporterToken:te(r),appVersion:cu(i,ue),sdkPackage:Ye,sdkVersion:we,sentryEventId:I?.eventId,sentryReplayId:I?.replayId,createdAt:new Date().toISOString()},Z=H;if(i.beforeSendFeedback)try{let Ue=await Promise.race([Promise.resolve(i.beforeSendFeedback(H)),new Promise(Er=>setTimeout(()=>Er(H),2e3))]);if(Ue===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:H.id}),null;Z=Ue;}catch(Ue){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ue instanceof Error?Ue.message:String(Ue)});}if(J("report:submitted",{reportId:Z.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(Z),J("report:queued",{reportId:Z.id}),null;let Ne=await u.submitReport(Z);if(Ne.ok){J("report:sent",{reportId:Ne.data?.reportId});try{t.sentry&&Ne.data?.reportId&&Mi(Ne.data.reportId);}catch{}return Ne.data?.reportId??null}return await h.enqueue(Z),J("report:failed",{reportId:Z.id,error:Ne.error}),null},async captureException(l,c){let y=Es(l),I=typeof c?.metadata?.filename=="string"?c.metadata.filename:void 0;if(or({message:y.message,filename:I,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;X.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${y.name}): ${y.message}`,...y.stack?{data:{stack:y.stack.slice(0,500)}}:{}});let B=c?.description?.trim()||`${y.name}: ${y.message}`||"Uncaught exception";return cn.captureEvent({description:B,category:c?.category??"bug",severity:c?.severity??"high",...c?.component?{component:c.component}:{},...c?.tags?{tags:c.tags}:{},source:c?.source??"captureException",error:{name:y.name,message:y.message,...y.stack?{stack:y.stack}:{}},metadata:{...c?.metadata??{},...y.cause?{cause:y.cause}:{}}})},identify(l,c){let y=`${l}::${c?JSON.stringify(c):""}`;if(y!==$){if($=y,R={id:l,...c?.email?{email:c.email}:{},...c?.name?{name:c.name}:{}},v.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),st(),c)for(let[I,B]of Object.entries(c))I!=="email"&&I!=="name"&&(O[`user.${I}`]=B);X.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),ds(l,c??null),Fi(l,c?{email:c.email,name:c.name,provider:c.provider}:void 0);}},identifyWithToken(l){if(a=l&&typeof l=="string"?l:null,a){let c=ks(a);if(c?.sub){if(R?.id===c.sub){X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}rs(c.sub),R={id:c.sub,...c.email?{email:c.email}:{},...c.name?{name:c.name}:{}},v.setIdentifiedUser(R.name||R.email?{name:R.name,email:R.email}:null),Fi(R.id,{email:R.email,name:R.name});}X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else R=null,$=null,v.setIdentifiedUser(null),X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){s=l&&l.route?l:null;},openAssistant(){v.openAssistantTab();},addBreadcrumb(l){X.add(l);},getBreadcrumbs(){return X.getAll()},setTag(l,c){typeof l!="string"||l.length===0||(U[l]=c);},setTags(l){if(!(!l||typeof l!="object"))for(let[c,y]of Object.entries(l))typeof c=="string"&&c.length>0&&(U[c]=y);},clearTag(l){if(typeof l=="string"&&l.length>0){delete U[l];return}for(let c of Object.keys(U))delete U[c];},async getReputation(){if(!R?.id)return null;let l=await u.getMyPoints(R.id);return l.ok?{totalPoints:l.data.total_points??0,points30d:l.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return R?.id?Oa(R.id):null},recordActivity(l,c){i.rewards?.enabled&&Ot({action:l,metadata:c});},track(l,c){return _t(l,c)},setConsent(l){cs(l);},getAnonymousId(){return us()},pulseTrigger(){v.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(te(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let c=await u.listReporterComments(l,te(r));return c.ok?c.data?.comments??[]:[]},async replyToReport(l,c){let y=await u.replyToReporterReport(l,te(r),c);return y.ok?y.data?.comment??null:null},async submitFeedbackSignal(l,c,y){let I=await u.replyToReporterReport(l,te(r),y??"",c);return I.ok?I.data?.feedback??null:null},async reopenReport(l,c){let y=await u.reopenReporterReport(l,te(r),c);return y.ok?y.data?.outcome??null:null},openMyReports(){v.recorderOpenMyReports();},getReporterUpdates:ge,async markReportRead(l){let c=await ie.markReportRead(l,n());return c.ok?c.data?.unread_total??0:null},onReporterUpdate(l){return he.add(l),ge(),()=>{he.delete(l);}},async getNotificationPrefs(){let l=await ie.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>ie.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,c=ot?.vapidPublicKey??null;if(l&&!c){let y=await u.getSdkConfig();c=y.ok?y.data?.reporter?.vapidPublicKey??null:null;}return Ca(ie,n(),l?l.serviceWorkerPath:null,c)},async getHallOfFame(l=20){let c=await u.getHallOfFame(l);return c.ok?c.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Ta(v),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",c=null;try{let y=localStorage.getItem(l);c=y===null?null:y==="unfinished",localStorage.setItem(l,"unfinished");}catch{c=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}Bo(),Fo();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(c);}catch(y){o.warn("onCrashedLastRun hook threw",{error:y instanceof Error?y.message:String(y)});}}let qi={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},ji=(l,c)=>{let y=c instanceof Error?c.message:String(c);o.debug(`Mushi.${l}() failed (swallowed)`,{error:y});try{X.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:y}});}catch{}};return (l=>new Proxy(l,{get(c,y,I){let B=Reflect.get(c,y,I);if(typeof B!="function")return B;let N=String(y),Q=()=>N==="diagnose"?Pi():N in qi?qi[N]:void 0;return (...ue)=>{try{let H=B.apply(c,ue);return H&&typeof H.then=="function"?H.catch(Z=>(ji(N,Z),Q())):H}catch(H){return ji(N,H),Q()}}}}))(cn)}function Di(t){return t.apiEndpoint??Yt}function Xp(t){return t.runtimeConfig!==false}async function Jp(t){let e=await Qp(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:we,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Pi(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:we,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Qp(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[ir]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Bi(t){return `mushi:sdk-config:${t}`}function fu(t){return `mushi:sdk-version:${t}`}function Zp(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Bi(t));return e?JSON.parse(e).config??null:null}catch{return null}}function eh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Bi(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function th(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Bi(t));}catch{}}function rh(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(fu(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function nh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(fu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function ih(t,e){let r=du(t),n=du(e);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,a=n[i]??0;if(o<a)return true;if(o>a)return false}return false}function du(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function pu(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Pi,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{$e=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[],getReporterUpdates:async()=>null,markReportRead:async()=>null,onReporterUpdate:()=>()=>{},getNotificationPrefs:async()=>null,setNotificationPrefs:async()=>({ok:false}),subscribeReporterPush:async()=>({ok:false,reason:"off"})}}function oh(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=i=>{t.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=Me({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...a){try{t.add({category:"console",level:"error",message:a.map(hu).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(hu).join(" ")});}catch{}return n.apply(this,a)};console.error=i,console.warn=o,e.push(()=>{console.error===i&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let i=n.target;if(!(i instanceof Element))return;let o=i,a=0;for(;o&&a<10;){let s=o.getAttribute("data-testid");if(s){let u=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${s}${u?` \u2014 ${u}`:""}`,data:{testid:s,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function hu(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function sh(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function ah(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let i=t.bannerVariant,o=t.bannerPosition;(i||o)&&(n.bannerConfig={...i?{variant:i}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function uh(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=sh();if(!e)return;let r=ah(e.dataset);if(r){t.__mushiLoaderInit=true;try{an.init(r);}catch{}}}uh();
95
+ `,document.body.appendChild(m),m}function d(m,g){let f=document.elementsFromPoint(m,g),E=null;for(let D of f)if(!(D===r||D===e)){if(D.id==="mushi-mushi-widget"||D.closest("#mushi-mushi-widget"))return null;E=D;break}let C=0;for(;E?.shadowRoot&&C<20;){let D=E.shadowRoot.elementFromPoint(m,g);if(!D||D===E)break;E=D,C++;}return E}function h(m){if(!e)return;let g=m.getBoundingClientRect();e.style.left=`${g.left}px`,e.style.top=`${g.top}px`,e.style.width=`${g.width}px`,e.style.height=`${g.height}px`,e.style.display="block";}function k(m){let g=d(m.clientX,m.clientY);if(!g){n=null,e&&(e.style.display="none");return}n=g,h(g);}function S(m){m.preventDefault(),m.stopPropagation();}function T(m){m.preventDefault(),m.stopPropagation();let g=d(m.clientX,m.clientY);g&&L(s(g));}function b(m){m.key==="Escape"&&L(null);}function v(){n?.isConnected&&h(n);}function L(m){R(),i?.(m),i=null;}function A(){return t&&R(),new Promise(m=>{i=m,t=true,e=u(),r=p(),r.addEventListener("mousemove",k),r.addEventListener("click",T),r.addEventListener("pointerdown",S),r.addEventListener("mousedown",S),r.addEventListener("mouseup",S),document.addEventListener("keydown",b,true),window.addEventListener("scroll",v,{capture:true,passive:true});})}function R(){t&&(t=false,n=null,document.removeEventListener("keydown",b,true),window.removeEventListener("scroll",v,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:A,deactivate:R,isActive:()=>t}}var eu=120;function Ti(){let t=[],e=()=>n("hashchange");n("initial");function r(u){t.push(u),t.length>eu&&t.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:ar(`${location.pathname}${location.search}${location.hash}`),href:ar(location.href)}});}function i(u){let p=u.target instanceof Element?u.target:null;if(!p)return;let d=p.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??p;r({ts:Date.now(),kind:"click",payload:{tag:d.tagName.toLowerCase(),id:d.id||void 0,text:Bp(d)}});}let o=Le({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),a=typeof window<"u",s=typeof document<"u";return a&&window.addEventListener("hashchange",e),s&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...t,...(u.consoleLogs??[]).map(d=>({ts:d.timestamp,kind:"log",payload:{level:d.level,message:d.message}})),...(u.networkLogs??[]).map(d=>({ts:d.timestamp,kind:"request",payload:{method:d.method,url:d.url,status:d.status,duration:d.duration,error:d.error}}))].sort((d,h)=>d.ts-h.ts).slice(-eu)},clear(){t.length=0;},destroy(){o(),a&&window.removeEventListener("hashchange",e),s&&document.removeEventListener("click",i,true);}}}function Bp(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var Fp=6e4,$p=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Op=/^[0-9a-f]{20,}$/i,Hp=/^\d+$/,Np=/^[a-z0-9]{16,}$/i;function tu(t){return t.length===0?t:$p.test(t)||Op.test(t)||Hp.test(t)||Np.test(t)&&/\d/.test(t)?"[id]":t}function Up(t,e,r){if(e.startsWith("#/")){let n=e.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),a=r?.map(s=>s.startsWith("/#/")?s.slice(2):s);return "/#"+Ai(o,a)}return Ai(t,r)}function Ai(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=qp(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(tu).join("/")}function qp(t,e){let r=t.split("/").filter(i=>i.length>0),n=[...e].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(s=>s.length>0);if(o.length!==r.length)continue;let a=true;for(let s=0;s<o.length;s++){let u=o[s],p=r[s];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==p){a=false;break}}if(a)return "/"+o.join("/")}return null}function jp(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function Wp(){if(typeof window>"u")return [];try{let t=new Set,e=i=>{new URLSearchParams(i).forEach((o,a)=>t.add(a));};e(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&e(r.slice(n+1)),Array.from(t).sort()}catch{return []}}function Vp(){if(typeof document>"u")return null;let t=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function Kp(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),i="";for(let o=0;o<n.length;o++)i+=n[o].toString(16).padStart(2,"0");return i}catch{return null}}function Ii(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=t,a=e.throttleMs??Fp,s=e.captureDomSummary!==false,u=e.userIdSource??"auto",p=new Map,d=null,h=null;async function k(){if(typeof window>"u")return;let L=Up(window.location.pathname,window.location.hash,e.routeTemplates),A=Date.now(),R=p.get(L)??0;if(A-R<a)return;p.set(L,A);let m=null;u==="auto"?m=n()??i():u==="session-only"&&(m=i());let g={route:L,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:s?Vp():null,testids:jp(),network_paths:r().slice(-50),query_param_keys:Wp(),user_id_hash:await Kp(m),observed_at:new Date().toISOString()};o(g);}function S(){h||(h=setTimeout(()=>{h=null,k();},100));}function T(){if(typeof window>"u")return;let L=window.location.hash.startsWith("#/")?window.location.hash:"",A=window.location.pathname+window.location.search+L;A!==d&&(d=A,S());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let b=()=>T(),v=Le({onPush:b,onReplace:b,onPop:b});return window.addEventListener("hashchange",b),S(),{destroy(){v(),window.removeEventListener("hashchange",b),h&&(clearTimeout(h),h=null),p.clear();},flushNow(){p.clear(),k();}}}var zp=3e4,Li=400,Gp=4,Yp=2;function ru(t,e,r){let n=u=>u.timestamp,i=u=>u.type===Yp,o=u=>u.type===Gp,a=Date.now()-e,s=0;for(let u=0;u<t.length;u++){let p=n(t[u]);if(typeof p=="number"&&p>=a)break;i(t[u])&&(s=o(t[u-1])?u-1:u);}if(t.length-s>r){for(let u=s+1;u<t.length;u++)if(i(t[u])&&t.length-u<=r){s=o(t[u-1])?u-1:u;break}}s>0&&t.splice(0,s);}function nu(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,s=a?.tagName?.toLowerCase()??"unknown",u=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:s,testId:u}}),e.length>Li&&e.shift();},i=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:i,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){i(),e.length=0;}}}var Xp=['input[type="password"]',"[data-mushi-redact]"],Jp="rrweb",Fe=null,iu=false;function Mi(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.record=="function"?e:e.default&&typeof e.default.record=="function"?e.default:null}async function Qp(t){if(Fe)return Fe;if(typeof t=="function")try{if(Fe=Mi(await t()),Fe)return Fe}catch{}if(Fe=Mi(globalThis.rrweb),Fe)return Fe;try{let e=globalThis.__MUSHI_RRWEB_SPECIFIER__||Jp;return Fe=Mi(await import(e)),Fe}catch{return null}}async function ou(t){let e=t.maxDurationMs??zp;if(t.mode==="lite")return nu(e);let r=await Qp(t.loadRrweb);if(!r?.record)return iu||(iu=true,Mt({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),nu(e);let n=r.record,i=[],o=null,a=false,s=[...new Set([...Xp,...t.redactSelectors??[]])],u=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(p){i.push(p),ru(i,e,Li);},maskAllInputs:true,maskTextSelector:"*",blockSelector:s.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return ru(i,e,Li),[...i]},destroy(){u(),i.length=0;}}}function su(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Zp(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function eh(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Di(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},i=su();if(!i)return n;n.sdk=eh();try{let s=i;if(typeof s.lastEventId=="function")n.eventId=s.lastEventId()??void 0;else {let p=i.getCurrentHub?.()?.getScope?.();n.eventId=p?.getLastEventId?.()??void 0;}}catch{}let o;try{let s=i;typeof s.getCurrentScope=="function"?o=s.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let s=o.getUser?.();s&&(n.user={id:typeof s.id=="string"?s.id:void 0,email:typeof s.email=="string"?s.email:void 0,username:typeof s.username=="string"?s.username:void 0,ip_address:typeof s.ip_address=="string"?s.ip_address:void 0});}catch{}try{let s=o.getTags?.();if(s&&typeof s=="object"){let u={};for(let[p,d]of Object.entries(s))(typeof d=="string"||typeof d=="number"||typeof d=="boolean")&&(u[p]=d);Object.keys(u).length>0&&(n.tags=u);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let s=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(s)&&s.length>0){let u=s.slice(-r);n.breadcrumbs=u.map(p=>{let d=p;return {timestamp:typeof d.timestamp=="number"?d.timestamp<1e12?Math.round(d.timestamp*1e3):d.timestamp:void 0,category:typeof d.category=="string"?d.category:void 0,level:typeof d.level=="string"?d.level:void 0,message:typeof d.message=="string"?d.message:void 0,type:typeof d.type=="string"?d.type:void 0,data:d.data&&typeof d.data=="object"?d.data:void 0}});}}catch{}}try{let s=i,u;if(typeof s.getActiveSpan=="function"?u=s.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let p=u.spanContext?.();n.traceId=p?.traceId??u.traceId??void 0,n.spanId=p?.spanId??u.spanId??void 0;}}catch{}let a;try{let s=i;typeof s.getClient=="function"?a=s.getClient():a=i.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let s=a.getOptions?.();s?.release&&(n.release=s.release),s?.environment&&(n.environment=s.environment);}catch{}try{let s=a.getDsn?.();if(s?.host&&s?.projectId&&n.eventId){let u=s.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??Zp();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Pi(t,e={}){let r=su();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",t),e.reportUrl&&i.setTag?.("mushi.report_url",e.reportUrl),i.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var th=["/login","/logout","/signup","/sso/*","/auth/*"],rh=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Bi(t){if(!(typeof t!="string"||t.length===0))for(let e of t.split(`
96
+ `)){let r=rh.exec(e);if(r)return r[1]}}function uu(t,e={}){let r=[];if(e.rageClick!==false){let b=function(v){let L=Date.now();if(v.target===T){if(S.push(L),S=S.filter(A=>L-A<500),S.length>=3){let A=v.target;t.onTrigger("rage_click",{element:A.tagName,id:A.id,text:A.textContent?.slice(0,50)}),S=[];}}else T=v.target,S=[L];};let S=[],T=null;document.addEventListener("click",b,true),r.push(()=>document.removeEventListener("click",b,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let S=new PerformanceObserver(T=>{for(let b of T.getEntries())b.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(b.duration),startTime:Math.round(b.startTime)});});S.observe({entryTypes:["longtask"]}),r.push(()=>S.disconnect());}catch{}let n=nh(e.apiCascade);if(n.enabled){let S=[],T=globalThis.fetch;globalThis.fetch=async function(...b){let[v,L]=b,A=sn(v),R=!!an(v,L)||gr(A,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let m=await T.apply(this,b);return !R&&!m.ok&&m.status>=400&&au(S,t),m}catch(m){throw R||au(S,t),m}},r.push(()=>{globalThis.fetch=T;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let A=function(E){return b.some(C=>C.endsWith("/*")?E.startsWith(C.slice(0,-2)):E===C||E.startsWith(C+"/"))},R=function(){let E=window.location?.pathname??"";A(E)||t.onTrigger("page_dwell",{thresholdMs:T,path:E});},m=function(){v&&clearTimeout(v);let E=window.location?.pathname??"";A(E)||(v=setTimeout(R,T));},g=function(){let E=window.location?.pathname??"";E!==L&&(L=E,m());};let S=typeof e.pageDwell=="object"?e.pageDwell??{}:{},T=S.thresholdMs||300*1e3,b=S.excludeRoutes!==void 0?S.excludeRoutes:th,v=null,L=window.location?.pathname??"";m();let f=Le({onPush:g,onReplace:g,onPop:g});r.push(()=>{v&&clearTimeout(v),f();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let S=typeof e.firstSession=="object"?e.firstSession??{}:{},T=S.delayMs??45*1e3,b=S.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),v=false;try{v=window.localStorage?.getItem(b)==="1";}catch{}if(!v){let L=setTimeout(()=>{try{window.localStorage?.setItem(b,"1");}catch{}t.onTrigger("first_session",{delayMs:T});},T);r.push(()=>clearTimeout(L));}}if(e.errorBoundary){let S=function(b){sr({message:b.message,filename:b.filename,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:b.message,filename:b.filename,lineno:b.lineno,colno:b.colno});},T=function(b){let v=b.reason instanceof Error?b.reason.message:String(b.reason);sr({message:v,filename:b.reason instanceof Error?Bi(b.reason.stack):void 0,ignoreErrors:e.ignoreErrors,denyUrls:e.denyUrls,allowUrls:e.allowUrls})||t.onTrigger("error_boundary",{message:v,type:"unhandled_rejection"});};window.addEventListener("error",S),window.addEventListener("unhandledrejection",T),r.push(()=>{window.removeEventListener("error",S),window.removeEventListener("unhandledrejection",T);});}return {destroy(){r.forEach(S=>S());}}}function nh(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function au(t,e){let r=Date.now();t.push(r);let n=t.filter(i=>r-i<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var lu="mushi:lastDismiss",un="mushi:consecDismiss",Fi="mushi:lastShown";function ln(t){try{return localStorage.getItem(t)}catch{return null}}function cn(t,e){try{localStorage.setItem(t,e);}catch{}}function cu(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,i=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function s(h){let k=Date.now();if(parseInt(ln(un)??"0",10)>=n)return false;let T=ln(lu);if(T&&k-parseInt(T,10)<r*60*60*1e3)return false;if(i>0&&o===0){let b=ln(Fi);if(b&&k-parseInt(b,10)<i)return false}return o>=e||a.has(h)?false:(a.add(h),o++,cn(Fi,String(k)),true)}function u(){cn(lu,String(Date.now()));let h=parseInt(ln(un)??"0",10);cn(un,String(h+1));}function p(){cn(un,"0");}function d(){o=0,a.clear();try{localStorage.removeItem(Fi);}catch{}}return {shouldShow:s,recordDismissal:u,recordSubmission:p,reset:d}}var Ye="@mushi-mushi/web",Se="1.32.3";function mu(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var $e=null,dn=class{constructor(){}static init(e={}){if($e)return Mt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),$e;if(typeof document>"u"||typeof window>"u")return Eu();let r={...Bn(),...e};if(!r.projectId||!r.apiKey){let n=qo();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?Eu():($e=sh(r),$e)}static getInstance(){return $e}static destroy(){$e?.destroy(),$e=null;}static diagnose(){return $e?.diagnose()??Oi()}};function sh(t){Wo(t);let e=jo(t),r=e.projectId,n=()=>re(r),i=e,o=t.debug??false?Mt({scope:"mushi",level:"debug",format:"pretty"}):Fn,a=null,s=null,u=Uo({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},...e.tunnel?{tunnel:e.tunnel}:{},getUserToken:()=>a,sdkPackage:Ye,sdkVersion:Se}),p=null;if(e.trackSessions!==false){as({client:u,sdkVersion:Se,reporterToken:re(e.projectId)??null,projectId:e.projectId,analytics:e.analytics});try{p=Le({onPush:()=>Un(),onPop:()=>Un()});}catch{}}let d=Vo(e.preFilter),h=Xo(e.offline),k=ys({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),S=Vn();fs({client:u,projectId:e.projectId,sdkVersion:Se,config:e.analytics,scrub:l=>S.scrub(l),getSessionId:gt});function T(l){return l.map(c=>{let y={...c};if(typeof c.message=="string"&&(y.message=S.scrub(c.message)),c.data&&typeof c.data=="object"){let M={};for(let[B,U]of Object.entries(c.data))M[B]=typeof U=="string"?S.scrub(U):U;y.data=M;}return y})}function b(l){return l&&l.map(c=>({...c,message:S.scrub(c.message),...c.stack?{stack:S.scrub(c.stack)}:{}}))}function v(l){if(!l)return;let c={};for(let[y,M]of Object.entries(l))c[y]=typeof M=="string"?S.scrub(M):M;return c}let L=null,A=null,R=null,m=null,g=null,f=null,E=Ti(),C=null,D=0,w,G=`mushi:tester-jwt:${e.projectId}`;function Y(){try{return typeof localStorage<"u"?localStorage.getItem(G):null}catch{return null}}function W(){try{typeof localStorage<"u"&&localStorage.removeItem(G);}catch{}}async function Te(l){let c=await u.getTesterStatus(l);if(!c.ok||!c.data){W();return}let y=c.data;if(!y.is_tester||!y.tester_id){W();return}w.setTesterSession(l,{id:y.tester_id,public_handle:y.public_handle??null,display_name:y.display_name??null});let M=await u.getMyReputation(l);if(M.ok&&M.data){let B=M.data;B.reputation&&w.setTesterReputation(B.reputation);}}function Oe(){if(i.capture?.console!==false?L??=vi():(L?.destroy(),L=null),i.capture?.network!==false){let $={apiEndpoint:$i(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:gt()};A?A.updateOptions($):A=yi($);}else A?.destroy(),A=null;if(i.capture?.performance!==false?R??=Ci():(R?.destroy(),R=null),i.capture?.screenshot!=="off"){let $={privacy:i.privacy,onFailed:ee=>w.setScreenshotError(true,ee)};i.capture?.screenshotProvider?m=null:m?m.updateOptions($):m=Ri($);}else m=null;!m&&!i.capture?.screenshotProvider&&(N=null),w.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?g??=_i():(g?.deactivate(),g=null,O=null),w.setCaptureAvailability({screenshot:(!!m||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!g});let l=i.capture?.discoverInventory,c=l===true?{}:l&&typeof l=="object"?l:null;c!=null&&c.enabled!==false?(f?.destroy(),f=Ii({config:c,getRecentNetworkPaths:()=>A?A.getEntries().map($=>{try{let ee=new URL($.url,typeof window<"u"?window.location.href:"http://localhost");return ee.host&&typeof window<"u"&&ee.host!==window.location.host?null:ee.pathname}catch{return null}}).filter($=>$!=null&&$.length>0&&$.length<200):[],getUserId:()=>x?.id??null,getSessionId:gt,onEvent:$=>{u.postDiscoveryEvent({...$,sdk_version:Se}).catch(ee=>{o.debug("discovery emit failed",{err:String(ee)});});}})):(f?.destroy(),f=null);let M=i.capture?.replay??"off",B=i.replaySampleRate??1,U=B>=1||Math.random()<B,Z=i.replaysOnErrorSampleRate??0,ue=!U&&Z>0&&Math.random()<Z;if((M==="rrweb"||M==="lite")&&(U||ue)){let $=++D;ou({mode:M,loadRrweb:e.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(ee=>{if($!==D){ee.destroy();return}C?.destroy(),C=ee,C.start();});}else D++,C?.destroy(),C=null;}let me=new Map;function J(l,c){me.get(l)?.forEach(y=>y({type:l,data:c}));}let N=null,O=null,Q=null,wt=false,xe=true,ve=null,I=null,x=null,F=null,H={},q={},X=ws({max:50});X.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:Se}});let Xe=null;Xe=gh(X);let He=false,nt=false,he=new Set,ie=Ma(u);async function ge(){let l=await ie.getUpdates(n()),c=l.ok?l.data??null:null;if(c)for(let y of he)try{y(c);}catch{}return c}function jt(){w.refreshReporterInboxQuiet(),he.size&&ge();}function V(){ve&&clearInterval(ve),ve=null,I&&typeof document<"u"&&document.removeEventListener("visibilitychange",I),I=null;}function Wt(){if(V(),!xe)return;let l=5*6e4,c=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ui(r)&&jt();};ve=setInterval(c,l),typeof document<"u"&&(I=()=>{document.visibilityState==="visible"&&c();},document.addEventListener("visibilitychange",I)),c();}let it=null;function ot(){let l=i.notifications??e.notifications;w.setReporterChannels({email:!!it?.emailEnabled&&l?.email!==false,push:!!(it?.pushEnabled&&it.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?x?.email??"":""});}let St=[];function vu(){if(!ui(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{w.preloadViews();},{timeout:8e3}):setTimeout(()=>{w.preloadViews();},3e3),e.notifications?.toast===false||!Aa(r))return;let c=async()=>{let M=await ge(),B=M&&typeof M.unread_total=="number"&&Array.isArray(M.latest)?M:null;if(B&&!B.unread_total)return;await w.refreshReporterInboxQuiet(),(B?w.showUpdatesFeedToast(B,St):await w.showUpdatesToast(St))&&Ia(r);},y=globalThis.requestIdleCallback;y?y(()=>{c();},{timeout:5e3}):setTimeout(()=>{c();},2e3);}async function wu(l){let c=re(r),y=await ie.markReportRead(l,c);if(y.ok)return y.data?.unread_total??null;let M=await u.listNotifications(c,{limit:50});if(!M.ok)return null;let B=(M.data?.notifications??[]).filter(U=>{let Z=U.payload??{};return !U.read_at&&(Z.reportId===l||U.report_id===l)});return await Promise.all(B.map(U=>u.markNotificationRead(String(U.id),c))),null}function Ni(l,c){if(!i.rewards?.enabled)return;let y={client:u,config:i.rewards,projectId:r,userId:l,traits:c,reporterToken:n()};Wa(y),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(M=>{if(!M.ok)return;let B=M.data;w.setRewardsState({tier:B.tier?{slug:B.tier.slug??"free",displayName:B.tier.display_name??"Free",pointsThreshold:B.tier.points_threshold??0}:null,nextTier:B.next_tier?{displayName:B.next_tier.display_name??"",pointsThreshold:B.next_tier.points_threshold??0}:null,totalPoints:B.total_points??0,pointsForReport:B.report_submit_pts??50});}).catch(()=>{});}async function Ui(){if(He)return null;nt=false;let l=i.capture?.screenshotProvider;if(l){He=true;try{let B=await l();if(B?.startsWith("data:image/"))return B;B&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:B.slice(0,16)});}catch(B){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:B instanceof Error?B.message:String(B)}),nt=B instanceof Error&&(B.name==="NotAllowedError"||B.name==="SecurityError"||/permission|denied/i.test(B.message));}finally{He=false;}}if(!m)return null;He=true;let c=w.getIsOpen();c&&w.hidePanel();let y=document.getElementById("mushi-mushi-widget"),M=y?.style.visibility??"";y&&(y.style.visibility="hidden"),await new Promise(B=>{requestAnimationFrame(()=>requestAnimationFrame(()=>B()));});try{return await m.take()}finally{He=false,y&&(y.style.visibility=M),c&&w.showPanel();}}async function qi(l){let c=i.capture?.screenshot;!(m||i.capture?.screenshotProvider)||c==="off"||N||l==="open"&&c!=="auto"||l==="submit"&&c!=="on-report"&&c!=="auto"||(o.debug("Auto-capturing screenshot",{when:l,mode:c}),N=await Ui(),w.setScreenshotAttached(N!==null),w.setScreenshotPreview(N));}let pn=It(r).then(l=>l.slice(0,12)).catch(()=>null);w=new Qr(e.widget,{onSubmit:async({category:l,userCategory:c,description:y,intent:M})=>(o.info("Report submitted",{category:l,userCategory:c,intent:M}),Q&&Vt?.recordSubmission(),await qi("submit"),await xu(l,y,M,c)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),qi("open"),C?.start(),J("widget:opened");},onBrandFooterImpression:()=>{pn.then(l=>{At("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{pn.then(l=>(At("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Es()));},onClose:()=>{o.debug("Widget closed"),Q&&(Vt?.recordDismissal(),J("proactive:dismissed",{type:Q})),N=null,O=null,Q=null,J("widget:closed");},onScreenshotRequest:async()=>{if(!(!!m||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),w.setScreenshotError(true,"unsupported");return}if(!He){o.debug("Taking screenshot"),w.setScreenshotCapturing(true);try{N=await Ui();}catch(c){o.warn("Screenshot capture threw",{error:c instanceof Error?c.message:String(c)}),N=null;}w.setScreenshotAttached(N!==null),w.setScreenshotPreview(N),N===null&&w.setScreenshotError(true,nt?"permission":void 0);}},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let l=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});l.catch(()=>{}),w.setScreenshotCapturing(true);let c=document.getElementById("mushi-mushi-widget");c&&(c.style.visibility="hidden");let y=i.privacy;Promise.resolve().then(()=>(pu(),du)).then(M=>M.grabMaskedTabFrame(l,[ki,"[data-mushi-redact]",...y?.redactSelectors??[],...y?.maskSelectors??[],...y?.blockSelectors??[]]),M=>{throw l.then(B=>B.getTracks().forEach(U=>U.stop()),()=>{}),M}).then(M=>{N=M,w.setScreenshotAttached(true),w.setScreenshotPreview(M);}).catch(M=>{o.warn("Tab capture failed",{error:M instanceof Error?M.name:String(M)}),w.setScreenshotError(true,M instanceof Error&&M.name==="NotAllowedError"?"permission":"error");}).finally(()=>{c&&(c.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),N=null,w.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!N||l.childElementCount>0)return;let c;try{let{createScreenshotAnnotation:Z}=await Promise.resolve().then(()=>(fu(),hu));c=await Z(N,l);}catch(Z){o.warn("Screenshot annotation failed",{error:Z instanceof Error?Z.message:String(Z)});return}let y=document.createElement("div");y.className="mushi-annotate-toolbar";let M=Z=>{(N=c.getDataUrl(),w.setScreenshotAttached(true),w.setScreenshotPreview(N)),c.destroy(),y.remove();},B=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let Z of B){let ue=document.createElement("button");ue.type="button",ue.className="mushi-attach-btn",ue.dataset.tool=Z.id,ue.textContent=Z.label,ue.addEventListener("click",()=>{c.setTool(Z.id),y.querySelectorAll("button[data-tool]").forEach($=>$.classList.remove("active")),ue.classList.add("active");}),y.appendChild(ue);}y.querySelector('button[data-tool="highlight"]')?.classList.add("active");let U=document.createElement("button");U.type="button",U.className="mushi-attach-btn",U.textContent="\u2713 Done",U.addEventListener("click",()=>M()),y.appendChild(U),l.insertBefore(y,l.firstChild);},onElementSelectorRequest:async()=>{if(!g||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),w.setElementError(true);return}o.debug("Element selector activated"),w.setElementCapturing(true),w.hidePanel();try{let l=await g.activate();l?(O=l,w.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):w.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),w.setElementError(true);}finally{w.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return St=l.data?.reports??[],St.length&&ai(r),St},onReporterMarkRead:l=>wu(l),async onReporterReportRequest(l){let c=await ie.getReport(l,re(r));return c.ok&&c.data?{report:c.data.report,timeline:c.data.timeline}:null},async onReporterEmailOptIn(l){let c=await ie.setPrefs(re(r),{email:l,channels:{email:true}});if(!c.ok)throw new Error(c.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await fn.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let c=await u.listReporterComments(l,re(r));if(!c.ok)throw new Error(c.error?.message??"Could not load thread");return c.data?.comments??[]},async onReporterReply(l,c){let y=await u.replyToReporterReport(l,re(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not send reply")},async onReporterFeedback(l,c,y){let M=await u.replyToReporterReport(l,re(r),y??"",c);if(!M.ok)throw new Error(M.error?.message??"Could not send feedback");return M.data?.feedback??null},async onReporterReopen(l,c){let y=await u.reopenReporterReport(l,re(r),c);if(!y.ok)throw new Error(y.error?.message??"Could not reopen report");return y.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load community ideas");return l.data?.tickets??[]},async onFeatureBoardVote(l){let c=await u.voteReporterFeatureBoard(l,re(r));if(!c.ok)throw new Error(c.error?.message??"Could not vote");return c.data??{voted:true,action:"added"}},onLeaderboardOpen(){w.setLeaderboard(null,true),Ka(10).then(l=>{w.setLeaderboard(l,false);});},async onMushiSignIn(l){let c=await u.sendMagicLink(l);if(!c.ok)throw new Error(c.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){w.setGlobalLeaderboard(null,true);try{let l=Y(),c=await u.getPublicLeaderboard(50),M=(c.ok?c.data?.leaderboard??[]:[]).map(B=>({tester_id:B.tester_id,rank:B.rank,public_handle:B.public_handle,display_name:B.display_name,points_30d:B.points_30d,total_points:B.total_points??0,badge:B.badge_slug}));if(w.setGlobalLeaderboard(M,!1),l){let B=await u.getMyReputation(l);if(B.ok&&B.data){let U=B.data;U.reputation&&w.setTesterReputation(U.reputation);}}}catch{w.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=Y();if(!l){w.setCrossAppReports([],false);return}try{let c=await u.getCrossAppReports(l),y=c.ok?c.data?.reports??[]:[];w.setCrossAppReports(y,!1);}catch{w.setCrossAppReports([],false);}},onTesterSignOut(){W();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(l,c){let y=await u.askAssistant({message:l,threadId:c,context:s});return y.ok?y.data??null:null}}),pn.then(l=>w.setBrandRef(l)),Oe(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>w.mount()):w.mount());let ji=Y();ji&&Te(ji).catch(()=>W());let Wi=null,Vt=null,te=i.proactive;te&&(te.rageClick!==false||te.longTask!==false||te.apiCascade!==false||te.errorBoundary===true||te.pageDwell||te.firstSession)&&typeof document<"u"&&(Vt=cu(te?.cooldown),Wi=uu({onTrigger:(l,c)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!Vt.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:c}),Q=l,J("proactive:triggered",{type:l,context:c}),l==="first_session"?w.pulseTrigger?.():w.open();}},{rageClick:te?.rageClick,longTask:te?.longTask,apiCascade:te?.apiCascade,apiEndpoint:$i(i),errorBoundary:te?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:te?.pageDwell,firstSession:te?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:te?.rageClick!==false,longTask:te?.longTask!==false,apiCascade:te?.apiCascade!==false,errorBoundary:te?.errorBoundary===true,pageDwell:!!te?.pageDwell,firstSession:!!te?.firstSession})),h.startAutoSync(u),h.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function hn(l){if(wt=true,xe=l.reporterNotificationsEnabled!==false,it=l.enabled===false?null:l.reporter??null,ot(),l.enabled===false){i=e,ph(t.projectId),Oe(),w.updateConfig(i.widget),V(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=Da(i,l,e),Oe(),l.widget&&w.updateConfig(i.widget),xe?Wt():V(),o.debug("Applied runtime SDK config",{version:l.version});}if(ah(t)){let l=ch(t.projectId);l&&hn(l),u.getSdkConfig().then(c=>{c.ok&&c.data?(dh(t.projectId,c.data),hn(c.data)):c.error&&o.debug("Runtime SDK config unavailable",c.error);}).catch(c=>{o.debug("Runtime SDK config fetch failed",{error:c instanceof Error?c.message:String(c)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");Su(),Wt(),vu(),o.info("Initialized",{projectId:t.projectId});async function Su(){if(i.widget?.outdatedBanner==="off")return;let l=hh(Ye);l&&Vi(l);let c=await u.getLatestSdkVersion(Ye);!c.ok||!c.data||(fh(Ye,c.data),Vi(c.data));}function Vi(l){let c=l.latest,y=!!(c&&mh(Se,c));if(!y&&!l.deprecated)return;let M=l.deprecationMessage??(y?`Update ${Ye} to ${c}.`:null);o.warn("Mushi SDK is outdated",{package:Ye,current:Se,latest:c,deprecated:l.deprecated,message:M}),Xs(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&w.setSdkFreshness({latest:c,current:Se,deprecated:l.deprecated,message:M});}async function xu(l,c,y,M){let B=d.check(c);if(!B.passed){o.info("Report blocked by pre-filter",{reason:B.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let j=await U.classify({description:c,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:N!==null,hasSelectedElement:O!==null,hasNetworkErrors:A?.getEntries()?.some(Ee=>Ee.status>=400||!!Ee.error)??!1,hasConsoleErrors:L?.getEntries()?.some(Ee=>Ee.level==="error")??!1,proactiveTrigger:Q??void 0});if(j.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:j.modelId,confidence:j.confidence,reason:j.reason});return}o.debug("On-device classifier verdict",{...j});}catch(j){o.warn("On-device classifier threw \u2014 falling through to server",{error:j instanceof Error?j.message:String(j)});}if(Q!==null&&t.sampleRate!==void 0&&t.sampleRate<1&&(t.sampleRate<=0||Math.random()>t.sampleRate)){o.debug("Report dropped by sampleRate",{sampleRate:t.sampleRate,trigger:Q});return}if(!k.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let ue=S.scrub(d.truncate(c)),$=t.sentry?Di(t.sentry):void 0,ee=await Jo().catch(()=>null),Ne=i.capture?.console===false?void 0:b(L?.getEntries()),Ue=i.capture?.network===false?void 0:A?.getEntries(),Er=T(X.getAll()),Gi=v(Object.keys(q).length>0?{...q}:void 0),Yi=$?{...$,...$.breadcrumbs?{breadcrumbs:T($.breadcrumbs)}:{},...$.tags?{tags:v($.tags)}:{}}:void 0,Xi=N?await Ns(N).catch(()=>null):null,br=false;N&&!Xi&&(br=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let Ji=$n(),Ae={id:On(),projectId:t.projectId,category:l,...M?{userCategory:M}:{},description:ue,userIntent:y,environment:Ji,consoleLogs:Ne,networkLogs:Ue,performanceMetrics:i.capture?.performance===false?void 0:R?.getMetrics(),timeline:E.getEntries({consoleLogs:Ne,networkLogs:Ue}),screenshotDataUrl:Xi??void 0,selectedElement:O??void 0,...C?{replayEvents:C.flush()}:{},metadata:{...H,...x?{user:x}:{},...$?.release?{sentryRelease:$.release}:{}},sessionId:gt(),reporterToken:re(r),...ee?{fingerprintHash:ee}:{},appVersion:mu(i,Ji),sdkPackage:Ye,sdkVersion:Se,proactiveTrigger:Q??void 0,...Er.length>0?{breadcrumbs:Er}:{},...Gi?{tags:Gi}:{},...Yi?{sentryContext:Yi}:{},sentryEventId:$?.eventId,sentryReplayId:$?.replayId,createdAt:new Date().toISOString()};if(X.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Ae.id,category:l}}),t.integrations?.custom){let j={addMetadata(Ee,mn){Ae.metadata[Ee]=mn;},setCategory(Ee){Ae.category=Ee;},setDescription(Ee){Ae.description=Ee;}};t.integrations.custom(j);}let K=Ae,Qi=t.beforeSend??t.beforeSendFeedback;if(Qi)try{let j=await Promise.race([Promise.resolve(Qi(Ae)),new Promise(Ee=>setTimeout(()=>Ee(Ae),2e3))]);if(j===null){o.info("Report dropped by beforeSend hook",{reportId:Ae.id});return}K=j;}catch(j){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:j instanceof Error?j.message:String(j)});}if(J("report:submitted",{reportId:K.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(K),o.info("Offline \u2014 report queued",{reportId:K.id}),J("report:queued",{reportId:K.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let z=await u.submitReport(K);if(!z.ok&&z.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(K.replayEvents)&&K.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:K.id}),K={...K,replayEvents:void 0},z=await u.submitReport(K)),!z.ok&&z.error?.code==="PAYLOAD_TOO_LARGE"&&K.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:K.id}),br=true,K={...K,screenshotDataUrl:void 0},z=await u.submitReport(K))),z.ok){if(o.info("Report sent",{reportId:z.data?.reportId}),J("report:sent",{reportId:z.data?.reportId}),ai(r),jt(),z.data?.cursorAgentId){let j=z.data;J("report:dispatched",{reportId:j.reportId,agentId:j.cursorAgentId,fixId:j.fixId});}X.add({category:"lifecycle",level:"info",message:`Mushi report sent (${z.data?.reportId??Ae.id})`}),qt({action:"report_submit",metadata:{category:l,reportId:z.data?.reportId??Ae.id}});try{t.sentry&&z.data?.reportId&&Pi(z.data.reportId);}catch{}}else {if(z.error?.code==="PAYLOAD_TOO_LARGE"||z.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:K.id,error:z.error}),J("report:failed",{reportId:K.id,error:z.error}),X.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${K.id})`}),N=null,O=null,Q=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:br};{let j=z.error?.code??"",Ee=j==="HTTP_429"||j.includes("RATE_LIMIT"),mn=j==="HTTP_401"||j.includes("UNAUTHORIZED")||j.includes("INVALID_API_KEY")||j.includes("MISSING_API_KEY"),Ru=j==="HTTP_403"||j.includes("QUOTA")||j.includes("FORBIDDEN")||j==="feature_not_in_plan";if(mn||Ru)return o.warn("Report rejected \u2014 credentials/quota",{reportId:K.id,error:z.error}),J("report:failed",{reportId:K.id,error:z.error}),N=null,O=null,Q=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(Ee)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:K.id,error:z.error}),await h.enqueue(K),J("report:failed",{reportId:K.id,error:z.error}),N=null,O=null,Q=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:K.id,error:z.error}),await h.enqueue(K),J("report:failed",{reportId:K.id,error:z.error}),X.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${K.id})`});}}return N=null,O=null,Q=null,z?.ok?{reportId:z.data?.reportId??Ae.id,queuedOffline:false,screenshotDropped:br}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let fn={report(l){w.open(l);},on(l,c){return me.has(l)||me.set(l,new Set),me.get(l).add(c),()=>me.get(l)?.delete(c)},setUser(l){x=l;},setMetadata(l,c){H[l]=c;},setScreen(l){E.setScreen(l);},isOpen(){return w.getIsOpen()},open(){w.open();},openWith(l){w.open({category:l});},show(){w.showTrigger();},hide(){w.hideTrigger();},attachTo(l,c){return w.attachTo(l,c)},setTrigger(l){w.setTrigger(l);},openReporter(){w.openReporter();},close(){w.close();},updateConfig(l){hn(l);},diagnose(){return uh({apiEndpoint:$i(i),widgetMounted:w.getIsMounted(),runtimeConfigLoaded:wt,captureScreenshotAvailable:m!==null,captureNetworkIntercepting:A!==null,widgetDiagnostics:w.getWidgetDiagnostics()})},destroy(){Wi?.destroy(),Vt?.reset(),bs(),w.destroy(),L?.destroy(),A?.destroy(),R?.destroy(),g?.deactivate(),za(),Xe?.(),Xe=null,f?.destroy(),f=null,E.destroy(),Fa(),C?.destroy(),C=null,h.stopAutoSync(),V(),p?.(),p=null,us(),X.clear(),me.clear(),$e=null,o.debug("Destroyed");},async captureEvent(l){if(!k.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let c=S.scrub(d.truncate(l.description)),y=l.category??"bug",M=t.sentry?Di(t.sentry):void 0,B=T(X.getAll()),U=v(Object.keys(q).length===0&&!l.tags?void 0:{...q,...l.tags??{}}),Z=M?{...M,...M.breadcrumbs?{breadcrumbs:T(M.breadcrumbs)}:{},...M.tags?{tags:v(M.tags)}:{}}:void 0,ue=$n(),$={id:On(),projectId:t.projectId,category:y,description:c,environment:ue,timeline:E.getEntries(),metadata:{...l.metadata??{},...x?{user:x}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...B.length>0?{breadcrumbs:B}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...Z?{sentryContext:Z}:{},sessionId:gt(),reporterToken:re(r),appVersion:mu(i,ue),sdkPackage:Ye,sdkVersion:Se,sentryEventId:M?.eventId,sentryReplayId:M?.replayId,createdAt:new Date().toISOString()},ee=$;if(i.beforeSendFeedback)try{let Ue=await Promise.race([Promise.resolve(i.beforeSendFeedback($)),new Promise(Er=>setTimeout(()=>Er($),2e3))]);if(Ue===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:$.id}),null;ee=Ue;}catch(Ue){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ue instanceof Error?Ue.message:String(Ue)});}if(J("report:submitted",{reportId:ee.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(ee),J("report:queued",{reportId:ee.id}),null;let Ne=await u.submitReport(ee);if(Ne.ok){J("report:sent",{reportId:Ne.data?.reportId});try{t.sentry&&Ne.data?.reportId&&Pi(Ne.data.reportId);}catch{}return Ne.data?.reportId??null}return await h.enqueue(ee),J("report:failed",{reportId:ee.id,error:Ne.error}),null},async captureException(l,c){let y=Ss(l),M=typeof c?.metadata?.filename=="string"?c.metadata.filename:Bi(y.stack);if(sr({message:y.message,filename:M,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;X.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${y.name}): ${y.message}`,...y.stack?{data:{stack:y.stack.slice(0,500)}}:{}});let B=c?.description?.trim()||`${y.name}: ${y.message}`||"Uncaught exception";return fn.captureEvent({description:B,category:c?.category??"bug",severity:c?.severity??"high",...c?.component?{component:c.component}:{},...c?.tags?{tags:c.tags}:{},source:c?.source??"captureException",error:{name:y.name,message:y.message,...y.stack?{stack:y.stack}:{}},metadata:{...c?.metadata??{},...y.cause?{cause:y.cause}:{}}})},identify(l,c){let y=`${l}::${c?JSON.stringify(c):""}`;if(y!==F){if(F=y,x={id:l,...c?.email?{email:c.email}:{},...c?.name?{name:c.name}:{}},w.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),ot(),c)for(let[M,B]of Object.entries(c))M!=="email"&&M!=="name"&&(H[`user.${M}`]=B);X.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),gs(l,c??null),Ni(l,c?{email:c.email,name:c.name,provider:c.provider}:void 0);}},identifyWithToken(l){if(a=l&&typeof l=="string"?l:null,a){let c=Ms(a);if(c?.sub){if(x?.id===c.sub){X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let y=c.sub;It(y).then(M=>{x?.id===y&&qn(M);}).catch(()=>{}),x={id:c.sub,...c.email?{email:c.email}:{},...c.name?{name:c.name}:{}},w.setIdentifiedUser(x.name||x.email?{name:x.name,email:x.email}:null),Ni(x.id,{email:x.email,name:x.name});}X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else x=null,F=null,qn(null),w.setIdentifiedUser(null),X.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){s=l&&l.route?l:null;},openAssistant(){w.openAssistantTab();},addBreadcrumb(l){X.add(l);},getBreadcrumbs(){return X.getAll()},setTag(l,c){typeof l!="string"||l.length===0||(q[l]=c);},setTags(l){if(!(!l||typeof l!="object"))for(let[c,y]of Object.entries(l))typeof c=="string"&&c.length>0&&(q[c]=y);},clearTag(l){if(typeof l=="string"&&l.length>0){delete q[l];return}for(let c of Object.keys(q))delete q[c];},async getReputation(){if(!x?.id)return null;let l=await u.getMyPoints(x.id);return l.ok?{totalPoints:l.data.total_points??0,points30d:l.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return x?.id?Va(x.id):null},recordActivity(l,c){i.rewards?.enabled&&qt({action:l,metadata:c});},track(l,c){return At(l,c)},setConsent(l){ms(l);},getAnonymousId(){return hs()},pulseTrigger(){w.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(re(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let c=await u.listReporterComments(l,re(r));return c.ok?c.data?.comments??[]:[]},async replyToReport(l,c){let y=await u.replyToReporterReport(l,re(r),c);return y.ok?y.data?.comment??null:null},async submitFeedbackSignal(l,c,y){let M=await u.replyToReporterReport(l,re(r),y??"",c);return M.ok?M.data?.feedback??null:null},async reopenReport(l,c){let y=await u.reopenReporterReport(l,re(r),c);return y.ok?y.data?.outcome??null:null},openMyReports(){w.recorderOpenMyReports();},getReporterUpdates:ge,async markReportRead(l){let c=await ie.markReportRead(l,n());return c.ok?c.data?.unread_total??0:null},onReporterUpdate(l){return he.add(l),ge(),()=>{he.delete(l);}},async getNotificationPrefs(){let l=await ie.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>ie.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,c=it?.vapidPublicKey??null;if(l&&!c){let y=await u.getSdkConfig();c=y.ok?y.data?.reporter?.vapidPublicKey??null:null;}return La(ie,n(),l?l.serviceWorkerPath:null,c)},async getHallOfFame(l=20){let c=await u.getHallOfFame(l);return c.ok?c.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Pa(w),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",c=null;try{let y=localStorage.getItem(l);c=y===null?null:y==="unfinished",localStorage.setItem(l,"unfinished");}catch{c=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}Ho(),No();});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(c);}catch(y){o.warn("onCrashedLastRun hook threw",{error:y instanceof Error?y.message:String(y)});}}let Ki={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},zi=(l,c)=>{let y=c instanceof Error?c.message:String(c);o.debug(`Mushi.${l}() failed (swallowed)`,{error:y});try{X.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:y}});}catch{}};return (l=>new Proxy(l,{get(c,y,M){let B=Reflect.get(c,y,M);if(typeof B!="function")return B;let U=String(y),Z=()=>U==="diagnose"?Oi():U in Ki?Ki[U]:void 0;return (...ue)=>{try{let $=B.apply(c,ue);return $&&typeof $.then=="function"?$.catch(ee=>(zi(U,ee),Z())):$}catch($){return zi(U,$),Z()}}}}))(fn)}function $i(t){return t.apiEndpoint??Zt}function ah(t){return t.runtimeConfig!==false}async function uh(t){let e=await lh(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:Se,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Oi(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:Se,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function lh(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[or]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Hi(t){return `mushi:sdk-config:${t}`}function yu(t){return `mushi:sdk-version:${t}`}function ch(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Hi(t));return e?JSON.parse(e).config??null:null}catch{return null}}function dh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Hi(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function ph(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Hi(t));}catch{}}function hh(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(yu(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function fh(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(yu(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function mh(t,e){let r=gu(t),n=gu(e);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,a=n[i]??0;if(o<a)return true;if(o>a)return false}return false}function gu(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Eu(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Oi,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{$e=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[],getReporterUpdates:async()=>null,markReportRead:async()=>null,onReporterUpdate:()=>()=>{},getNotificationPrefs:async()=>null,setNotificationPrefs:async()=>({ok:false}),subscribeReporterPush:async()=>({ok:false,reason:"off"})}}function gh(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=i=>{t.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=Le({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...a){try{t.add({category:"console",level:"error",message:a.map(bu).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(bu).join(" ")});}catch{}return n.apply(this,a)};console.error=i,console.warn=o,e.push(()=>{console.error===i&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let i=n.target;if(!(i instanceof Element))return;let o=i,a=0;for(;o&&a<10;){let s=o.getAttribute("data-testid");if(s){let u=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${s}${u?` \u2014 ${u}`:""}`,data:{testid:s,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function bu(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Eh(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function bh(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let i=t.bannerVariant,o=t.bannerPosition;(i||o)&&(n.bannerConfig={...i?{variant:i}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function yh(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Eh();if(!e)return;let r=bh(e.dataset);if(r){t.__mushiLoaderInit=true;try{dn.init(r);}catch{}}}yh();
96
97
  })();