@mushi-mushi/web 1.22.1 → 1.22.2

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,14 +1,14 @@
1
- (function(){'use strict';var lo=Object.defineProperty;var st=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var Qr=(t,e)=>{for(var r in e)lo(t,r,{get:e[r],enumerable:true});};function co(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function en(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 ot(t,e,r=""){let n=co(t),s=t?.length,o=e!==void 0;if(!n||o){let l=r&&`"${r}" `,i="",a=n?`length=${s}`:`type=${typeof t}`,h=l+"expected Uint8Array"+i+", got "+a;throw n?new RangeError(h):new TypeError(h)}return t}function tn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(en(t.outputLen),en(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Ge(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 gt(t,e){ot(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 Ie(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function bt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Se(t,e){return t<<32-e|t>>>e}function qe(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var je,yt=st(()=>{"use strict";je=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function rn(t,e,r){return t&e^~t&r}function nn(t,e,r){return t&e^t&r^e&r}var it,Ae,_e,ne,se,sn=st(()=>{"use strict";yt();it=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=bt(this.buffer);}update(e){Ge(this),ot(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let l=0;l<o;){let i=Math.min(s-this.pos,o-l);if(i===s){let a=bt(e);for(;s<=o-l;l+=s)this.process(a,l);continue}n.set(e.subarray(l,l+i),this.pos),this.pos+=i,l+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ge(this),gt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:l}=this;r[l++]=128,Ie(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(n,0),l=0);for(let m=l;m<s;m++)r[m]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=bt(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let h=a/4,u=this.get();if(h>u.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<h;m++)i.setUint32(4*m,u[m],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:s,finished:o,destroyed:l,pos:i}=this;return e.destroyed=l,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Ae=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_e=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ne=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 uo(t,e=false){return e?{h:Number(t&vt),l:Number(t>>on&vt)}:{h:Number(t>>on&vt)|0,l:Number(t&vt)|0}}function an(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:l,l:i}=uo(t[o],e);[n[o],s[o]]=[l,i];}return [n,s]}function Ee(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var vt,on,Qt,er,ze,We,at,lt,ln,cn,un,dn,pn,hn,mn=st(()=>{"use strict";vt=BigInt(4294967295),on=BigInt(32);Qt=(t,e,r)=>t>>>r,er=(t,e,r)=>t<<32-r|e>>>r,ze=(t,e,r)=>t>>>r|e<<32-r,We=(t,e,r)=>t<<32-r|e>>>r,at=(t,e,r)=>t<<64-r|e>>>r-32,lt=(t,e,r)=>t>>>r-32|e<<64-r;ln=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),cn=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,un=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),dn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,pn=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),hn=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var tr={};Qr(tr,{_SHA224:()=>St,_SHA256:()=>wt,_SHA384:()=>Et,_SHA512:()=>kt,_SHA512_224:()=>Rt,_SHA512_256:()=>Ct,sha224:()=>bo,sha256:()=>go,sha384:()=>vo,sha512:()=>yo,sha512_224:()=>wo,sha512_256:()=>xo});var ho,Oe,xt,wt,St,fn,mo,fo,Be,Ne,Ye,kt,Et,le,ce,Rt,Ct,go,bo,yo,vo,xo,wo,rr=st(()=>{"use strict";sn();mn();yt();ho=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]),Oe=new Uint32Array(64),xt=class extends it{constructor(e){super(64,e,8,!1);}get(){let{A:e,B:r,C:n,D:s,E:o,F:l,G:i,H:a}=this;return [e,r,n,s,o,l,i,a]}set(e,r,n,s,o,l,i,a){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=l|0,this.G=i|0,this.H=a|0;}process(e,r){for(let m=0;m<16;m++,r+=4)Oe[m]=e.getUint32(r,!1);for(let m=16;m<64;m++){let b=Oe[m-15],d=Oe[m-2],g=Se(b,7)^Se(b,18)^b>>>3,v=Se(d,17)^Se(d,19)^d>>>10;Oe[m]=v+Oe[m-7]+g+Oe[m-16]|0;}let{A:n,B:s,C:o,D:l,E:i,F:a,G:h,H:u}=this;for(let m=0;m<64;m++){let b=Se(i,6)^Se(i,11)^Se(i,25),d=u+b+rn(i,a,h)+ho[m]+Oe[m]|0,v=(Se(n,2)^Se(n,13)^Se(n,22))+nn(n,s,o)|0;u=h,h=a,a=i,i=l+d|0,l=o,o=s,s=n,n=d+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,l=l+this.D|0,i=i+this.E|0,a=a+this.F|0,h=h+this.G|0,u=u+this.H|0,this.set(n,s,o,l,i,a,h,u);}roundClean(){Ie(Oe);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ie(this.buffer);}},wt=class extends xt{A=Ae[0]|0;B=Ae[1]|0;C=Ae[2]|0;D=Ae[3]|0;E=Ae[4]|0;F=Ae[5]|0;G=Ae[6]|0;H=Ae[7]|0;constructor(){super(32);}},St=class extends xt{A=_e[0]|0;B=_e[1]|0;C=_e[2]|0;D=_e[3]|0;E=_e[4]|0;F=_e[5]|0;G=_e[6]|0;H=_e[7]|0;constructor(){super(28);}},fn=an(["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))),mo=fn[0],fo=fn[1],Be=new Uint32Array(80),Ne=new Uint32Array(80),Ye=class extends it{constructor(e){super(128,e,16,!1);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:l,Dh:i,Dl:a,Eh:h,El:u,Fh:m,Fl:b,Gh:d,Gl:g,Hh:v,Hl:E}=this;return [e,r,n,s,o,l,i,a,h,u,m,b,d,g,v,E]}set(e,r,n,s,o,l,i,a,h,u,m,b,d,g,v,E){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=l|0,this.Dh=i|0,this.Dl=a|0,this.Eh=h|0,this.El=u|0,this.Fh=m|0,this.Fl=b|0,this.Gh=d|0,this.Gl=g|0,this.Hh=v|0,this.Hl=E|0;}process(e,r){for(let k=0;k<16;k++,r+=4)Be[k]=e.getUint32(r),Ne[k]=e.getUint32(r+=4);for(let k=16;k<80;k++){let I=Be[k-15]|0,y=Ne[k-15]|0,w=ze(I,y,1)^ze(I,y,8)^Qt(I,y,7),C=We(I,y,1)^We(I,y,8)^er(I,y,7),x=Be[k-2]|0,N=Ne[k-2]|0,O=ze(x,N,19)^at(x,N,61)^Qt(x,N,6),j=We(x,N,19)^lt(x,N,61)^er(x,N,6),J=un(C,j,Ne[k-7],Ne[k-16]),z=dn(J,w,O,Be[k-7],Be[k-16]);Be[k]=z|0,Ne[k]=J|0;}let{Ah:n,Al:s,Bh:o,Bl:l,Ch:i,Cl:a,Dh:h,Dl:u,Eh:m,El:b,Fh:d,Fl:g,Gh:v,Gl:E,Hh:D,Hl:R}=this;for(let k=0;k<80;k++){let I=ze(m,b,14)^ze(m,b,18)^at(m,b,41),y=We(m,b,14)^We(m,b,18)^lt(m,b,41),w=m&d^~m&v,C=b&g^~b&E,x=pn(R,y,C,fo[k],Ne[k]),N=hn(x,D,I,w,mo[k],Be[k]),O=x|0,j=ze(n,s,28)^at(n,s,34)^at(n,s,39),J=We(n,s,28)^lt(n,s,34)^lt(n,s,39),z=n&o^n&i^o&i,K=s&l^s&a^l&a;D=v|0,R=E|0,v=d|0,E=g|0,d=m|0,g=b|0,{h:m,l:b}=Ee(h|0,u|0,N|0,O|0),h=i|0,u=a|0,i=o|0,a=l|0,o=n|0,l=s|0;let B=ln(O,J,K);n=cn(B,N,j,z),s=B|0;}(({h:n,l:s}=Ee(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l}=Ee(this.Bh|0,this.Bl|0,o|0,l|0),{h:i,l:a}=Ee(this.Ch|0,this.Cl|0,i|0,a|0),{h,l:u}=Ee(this.Dh|0,this.Dl|0,h|0,u|0),{h:m,l:b}=Ee(this.Eh|0,this.El|0,m|0,b|0),{h:d,l:g}=Ee(this.Fh|0,this.Fl|0,d|0,g|0),{h:v,l:E}=Ee(this.Gh|0,this.Gl|0,v|0,E|0),{h:D,l:R}=Ee(this.Hh|0,this.Hl|0,D|0,R|0),this.set(n,s,o,l,i,a,h,u,m,b,d,g,v,E,D,R);}roundClean(){Ie(Be,Ne);}destroy(){this.destroyed=!0,Ie(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},kt=class extends Ye{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);}},Et=class extends Ye{Ah=ne[0]|0;Al=ne[1]|0;Bh=ne[2]|0;Bl=ne[3]|0;Ch=ne[4]|0;Cl=ne[5]|0;Dh=ne[6]|0;Dl=ne[7]|0;Eh=ne[8]|0;El=ne[9]|0;Fh=ne[10]|0;Fl=ne[11]|0;Gh=ne[12]|0;Gl=ne[13]|0;Hh=ne[14]|0;Hl=ne[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]),Rt=class extends Ye{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);}},Ct=class extends Ye{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);}},go=qe(()=>new wt,je(1)),bo=qe(()=>new St,je(4)),yo=qe(()=>new kt,je(3)),vo=qe(()=>new Et,je(2)),xo=qe(()=>new Ct,je(6)),wo=qe(()=>new Rt,je(5));});var gn={};Qr(gn,{_HMAC:()=>ct,hmac:()=>So});var ct,So,bn=st(()=>{"use strict";yt();ct=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(tn(e),ot(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,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),Ie(s);}update(e){return Ge(this),this.iHash.update(e),this}digestInto(e){Ge(this),gt(e,this),this.finished=!0;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:s,destroyed:o,blockLen:l,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=l,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy();}},So=(()=>{let t=((e,r,n)=>new ct(e,r).update(n).digest());return t.create=(e,r)=>new ct(e,r),t})();});var ko=4194304,An=1.5*1024*1024;function Eo(t){try{return JSON.stringify(t)}catch{return null}}function Ro(t,e=ko){let r=Eo(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 ${yn(n)} exceeds limit ${yn(e)}`}}function yn(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function _n(){try{let e=globalThis.crypto;if(e?.subtle)return e.subtle}catch{}return null}function Lt(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function ar(t){let e=_n();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Lt(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(rr(),tr));return Lt(r(new TextEncoder().encode(t)))}async function Co(t,e){let r=_n();if(r){let l=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",l,new TextEncoder().encode(e));return Lt(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(bn(),gn)),{sha256:s}=await Promise.resolve().then(()=>(rr(),tr)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Lt(o)}var vn=false,To="X-Mushi-User-Token",Mo="X-Mushi-Project",Pn="X-Mushi-SDK-Package",Dn="X-Mushi-SDK-Version";function $o(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Mo]:t.projectId};return t.sdkPackage&&(e[Pn]=t.sdkPackage),t.sdkVersion&&(e[Dn]=t.sdkVersion),t.userToken&&(e[To]=t.userToken),t.internalKind&&(e[ut]=t.internalKind),e}var It="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",ut="X-Mushi-Internal",Xe="__mushiInternal",Lo=1e4,Io=2,Ao=4,_o=3e4;function Hn(t){let{projectId:e,apiKey:r,apiEndpoint:n=It,timeout:s=Lo,maxRetries:o=Io,getUserToken:l,sdkPackage:i,sdkVersion:a,circuitBreaker:h}=t,u=n.replace(/\/$/,""),m=h?.enabled!==false,b=Math.max(1,h?.threshold??Ao),d=Math.max(1e3,h?.cooldownMs??_o),g=0,v=0,E=()=>m&&v>Date.now(),D=()=>{g=0,v=0;},R=()=>{m&&(g+=1,g>=b&&(v=Date.now()+d));};async function k(y,w,C,x=o,N,O){if(E())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let j=`${u}${w}`,J=new AbortController,z=setTimeout(()=>J.abort(),s),K=l?.()??null;try{let B=await fetch(j,{method:y,headers:{...$o({apiKey:r,projectId:e,sdkPackage:i,sdkVersion:a,userToken:K,internalKind:N}),...O},body:C?JSON.stringify(C):void 0,signal:J.signal,...N?{[Xe]:N}:{}});if(clearTimeout(z),B.status===307||B.status===308){let ee=B.headers.get("Location");if(ee&&x>0){let Q=ee.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Q!==u)return u=Q,k(y,w,C,x-1,N,O)}}if(!B.ok){let ee=await B.json().catch(()=>({}));if((B.status===401||B.status===403)&&!vn){vn=!0;let Q=u===It?"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 ${B.status}). Check your Project ID and API key scope (must be "report:write"). `+Q);}return B.status>=500&&x>0?(await xn(wn(o-x)),k(y,w,C,x-1,N,O)):(B.status>=500?R():D(),{ok:!1,error:{code:ee.error?.code||`HTTP_${B.status}`,message:ee.error?.message||ee.message||`HTTP ${B.status} error`}})}let _=await B.json(),$=_&&typeof _=="object"&&"ok"in _&&"data"in _?_.data:_;return D(),{ok:!0,data:$}}catch(B){return clearTimeout(z),x>0&&Po(B)?(await xn(wn(o-x)),k(y,w,C,x-1,N)):(R(),{ok:false,error:{code:"NETWORK_ERROR",message:B instanceof Error?B.message:"Unknown network error"}})}}async function I(y,w,C,x){let N=await ar(C),O=String(Date.now()),j=await Co(r,`${e}.${O}.${N}`),J=`${u}${w}`,z=await fetch(J,{method:y,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...i?{[Pn]:i}:{},...a?{[Dn]:a}:{},[ut]:"reporter-poll","X-Reporter-Token-Hash":N,"X-Reporter-Ts":O,"X-Reporter-Hmac":j},body:x?JSON.stringify(x):void 0,[Xe]:"reporter-poll"});if(!z.ok){let B=await z.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${z.status}`,message:B.error?.message??B.message??`HTTP ${z.status} error`}}}let K=await z.json();return {ok:true,data:K.data??K}}return {async submitReport(y){let w=Ro(y);return w.ok?k("POST","/v1/reports",y,o,"report-submit"):{ok:false,error:{code:w.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:w.reason??"Report payload exceeds size limit"}}},async getReportStatus(y){return k("GET",`/v1/reports/${y}/status`,void 0,o,"report-status")},async getSdkConfig(){return k("GET","/v1/sdk/config",void 0,o,"sdk-config")},async askAssistant(y){return k("POST","/v1/sdk/assistant",{message:y.message,threadId:y.threadId??null,context:y.context??null},1,"community")},async getLatestSdkVersion(y){let w=new URLSearchParams({package:y}).toString();return k("GET",`/v1/sdk/latest-version?${w}`,void 0,o,"sdk-config")},async postDiscoveryEvent(y){return k("POST","/v1/sdk/discovery",y,1,"discovery")},async listReporterReports(y){return I("GET","/v1/reporter/reports",y)},async listReporterComments(y,w){return I("GET",`/v1/reporter/reports/${y}/comments`,w)},async replyToReporterReport(y,w,C,x){return I("POST",`/v1/reporter/reports/${y}/reply`,w,{body:C,...x?{feedback_signal:x}:{}})},async reopenReporterReport(y,w,C){return I("POST",`/v1/reporter/reports/${y}/reopen`,w,{note:C??""})},async listNotifications(y,w){let C=new URLSearchParams;w?.since&&C.set("since",w.since),w?.limit&&C.set("limit",String(w.limit));let x=C.size?`?${C.toString()}`:"";return I("GET",`/v1/notifications${x}`,y)},async markNotificationRead(y,w){return I("POST",`/v1/notifications/${y}/read`,w,{})},async listReporterFeatureBoard(y){return I("GET","/v1/reporter/feature-board",y)},async voteReporterFeatureBoard(y,w){return I("POST",`/v1/reporter/feature-board/${y}/vote`,w,{})},async submitActivity(y,w,C){return k("POST","/v1/sdk/activity",{user_id:y,user_traits:C?.userTraits,opted_in:C?.optedIn,reporter_token_hash:C?.reporterTokenHash,...C?.hostJwt?{host_jwt:C.hostJwt}:{},events:w},1,"discovery")},async getMyPoints(y){return k("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyTier(y){return k("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyHistory(y,w){let C=new URLSearchParams({userId:y,...w?.limit?{limit:String(w.limit)}:{}});return k("GET",`/v1/sdk/me/history?${C}`,void 0,1,"reporter-poll")},async getHallOfFame(y=10){return k("GET",`/v1/sdk/hall-of-fame?limit=${y}`,void 0,1,"reporter-poll")},async sendMagicLink(y){return k("POST","/v1/tester/magic-link",{email:y},1,"community")},async linkReporterToken(y,w){return k("POST","/v1/tester/link-reporter",{reporter_token_hash:y},1,"community",{Authorization:`Bearer ${w}`})},async getCrossAppReports(y,w){let C=new URLSearchParams;w?.limit&&C.set("limit",String(w.limit)),w?.offset&&C.set("offset",String(w.offset));let x=C.size?`?${C.toString()}`:"";return k("GET",`/v1/tester/cross-app-reports${x}`,void 0,1,"community",{Authorization:`Bearer ${y}`})},async getMyReputation(y){return k("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${y}`})},async getPublicLeaderboard(y=20){return k("GET",`/v1/public/tester-leaderboard?limit=${y}`,void 0,1,"reporter-poll")},async getTesterStatus(y){return k("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${y}`})}}}function xn(t){return new Promise(e=>setTimeout(e,t))}function wn(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Po(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function nr(...t){return t.find(e=>e!==void 0&&e!=="")}function ve(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Pe(t){try{return t()}catch{return}}function On(){let t=nr(ve("VITE_MUSHI_PROJECT_ID"),ve("NEXT_PUBLIC_MUSHI_PROJECT_ID"),ve("NUXT_PUBLIC_MUSHI_PROJECT_ID"),ve("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Pe(()=>process.env.MUSHI_PROJECT_ID)),e=nr(ve("VITE_MUSHI_API_KEY"),ve("NEXT_PUBLIC_MUSHI_API_KEY"),ve("NUXT_PUBLIC_MUSHI_API_KEY"),ve("EXPO_PUBLIC_MUSHI_API_KEY"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Pe(()=>process.env.MUSHI_API_KEY)),r=nr(ve("VITE_MUSHI_API_ENDPOINT"),ve("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),ve("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),ve("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Pe(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Do=10,Ho=2e3,Oo=[/^(.)\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],Bo=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Bn(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Do,maxDescriptionLength:s=Ho}=t;function o(i){if(!e)return {passed:true};let a=i.trim();if(a.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(a.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let u of Oo)if(u.test(a))return {passed:false,reason:"Detected as spam"};if(Bo.test(a))return {passed:false,reason:"Detected as gibberish"};if(a.split(/\s+/).filter(u=>u.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function l(i){let a=i.trim();return a.length<=s?a:a.slice(0,s)+"..."}return {check:o,truncate:l}}var Sn={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},No={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},me={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"},Uo={debug:me.dim,info:me.green,warn:me.yellow,error:me.red,fatal:`${me.bgRed}${me.white}${me.bold}`};function Fo(){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 qo(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 jo(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,l=e.slice(11,23),i=Uo[r]??"",a=No[r]??r.toUpperCase(),h=Object.keys(o).length>0?` ${me.dim}${qo(o)}${me.reset}`:"";return `${me.dim}${l}${me.reset} ${i}${a}${me.reset} ${me.cyan}[${n}]${me.reset} ${s}${h}`}function zo(t){return JSON.stringify(t)}function Wo(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 Nn(t,e,r,n,s){let o=e;function l(i,a,h){if(Sn[i]<Sn[o])return;let u={ts:new Date().toISOString(),level:i,scope:t,msg:a,...r,...h};s(i,n(u));}return {debug:(i,a)=>l("debug",i,a),info:(i,a)=>l("info",i,a),warn:(i,a)=>l("warn",i,a),error:(i,a)=>l("error",i,a),fatal:(i,a)=>l("fatal",i,a),child(i,a){return Nn(`${t}:${i}`,o,{...r,...a},n,s)},setLevel(i){o=i;}}}function At(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?Fo():s)==="json"?zo:jo,a=Wo(o);return Nn(e,r,n,i,a)}var lr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>lr,setLevel:()=>{}},Vo="mushi-mushi-keyring",Je="keys",Un="offline-queue/v1",Tt=null,Mt=null;function Ko(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Fn(){return new Promise((t,e)=>{let r=indexedDB.open(Vo,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(Je)||n.createObjectStore(Je);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function Go(){let t=await Fn();return new Promise((e,r)=>{let s=t.transaction(Je,"readonly").objectStore(Je).get(Un);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function Yo(t){let e=await Fn();return new Promise((r,n)=>{let s=e.transaction(Je,"readwrite");s.objectStore(Je).put(t,Un),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function qn(){if(Tt)return Tt;if(Mt)return Mt;if(!Ko())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Mt=(async()=>{let t=await Go();if(t)return Tt=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Yo(e),Tt=e,e})(),Mt}function kn(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function En(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 Xo(t){let e=await qn(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:kn(r),ct:kn(s)}}function Jo(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Zo(t){let e=await qn(),r=En(t.iv),n=En(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Re=At({scope:"mushi:queue",level:"warn"}),Qo="mushi-mushi",he="offline-reports",ei=1,sr="mushi_offline_queue",ti=10,ri=6e4,ni=3e4,si=8,oi=1440*60*1e3;function jn(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,l=null,i=null;async function a(L){let A=new Date().toISOString();if(!s)return {...L,queuedAt:A};try{let P=await Xo(L);return {id:L.id,queuedAt:A,payload:P}}catch(P){return Re.warn("Offline queue: encryption failed, storing plaintext",{err:String(P)}),{...L,queuedAt:A}}}async function h(L){if(u(L))try{return await Zo(L.payload)}catch(A){return Re.warn("Offline queue: decrypt failed, dropping row",{err:String(A),id:L.id}),null}return L}function u(L){return !!L.payload&&Jo(L.payload)}function m(L){let A=L.attempts;return typeof A=="number"&&Number.isFinite(A)?A:0}function b(L,A){let P=L.queuedAt;if(!P)return false;let F=Date.parse(P);return Number.isNaN(F)?false:A-F>oi}function d(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function g(){return new Promise((L,A)=>{let P=indexedDB.open(Qo,ei);P.onupgradeneeded=()=>{let F=P.result;F.objectStoreNames.contains(he)||F.createObjectStore(he,{keyPath:"id"});},P.onsuccess=()=>L(P.result),P.onerror=()=>{i="localstorage",A(P.error);};})}async function v(L){let A=await g(),P=await a(L);return new Promise((F,T)=>{let pe=A.transaction(he,"readwrite");pe.objectStore(he).put(P),pe.oncomplete=()=>F(),pe.onerror=()=>T(pe.error);})}async function E(){let L=await g();return new Promise((A,P)=>{let T=L.transaction(he,"readonly").objectStore(he).getAll();T.onsuccess=()=>A(T.result),T.onerror=()=>P(T.error);})}async function D(L){let A=await g();return new Promise((P,F)=>{let T=A.transaction(he,"readwrite");T.objectStore(he).delete(L),T.oncomplete=()=>P(),T.onerror=()=>F(T.error);})}async function R(L){let A=await g();return new Promise((P,F)=>{let T=A.transaction(he,"readwrite");T.objectStore(he).put(L),T.oncomplete=()=>P(),T.onerror=()=>F(T.error);})}async function k(){let L=await g();return new Promise((A,P)=>{let T=L.transaction(he,"readonly").objectStore(he).count();T.onsuccess=()=>A(T.result),T.onerror=()=>P(T.error);})}async function I(){let L=await g();return new Promise((A,P)=>{let F=L.transaction(he,"readwrite");F.objectStore(he).clear(),F.oncomplete=()=>A(),F.onerror=()=>P(F.error);})}function y(){try{let L=localStorage.getItem(sr);return L?JSON.parse(L):[]}catch{return []}}function w(L){try{localStorage.setItem(sr,JSON.stringify(L));}catch{}}async function C(L){let A=y();A.push(await a(L)),w(A);}function x(L){let A=y().filter(P=>P.id!==L);w(A);}function N(L){let A=y(),P=A.findIndex(F=>F.id===L.id);P>=0&&(A[P]=L,w(A));}async function O(L,A){try{L==="indexeddb"?await D(A):x(A);}catch(P){Re.debug("Offline queue: row removal failed (will age out)",{id:A,err:String(P)});}}async function j(L,A){try{return L==="indexeddb"?await R(A):N(A),!0}catch(P){return Re.debug("Offline queue: row persist failed",{id:A.id,err:String(P)}),false}}async function J(L){if(!e)return;if(await _()>=r){Re.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let P=d();if(P==="indexeddb")try{await v(L);return}catch{i="localstorage";}if(P==="localstorage"||i==="localstorage"){await C(L);return}}function z(L){return Math.min(1e3*2**L+Math.random()*500,ri)}function K(L){return new Promise(A=>setTimeout(A,L))}async function B(L){if(!e)return {sent:0,failed:0};let A,P=d();if(P==="indexeddb")try{A=await E();}catch{A=y();}else A=y();let F=Date.now(),T=[];for(let q of A)if(b(q,F)){let te=q.id;await O(P,te),Re.debug("Offline queue: evicting stale report",{id:te});}else T.push(q);A=T;let pe=A.slice(0,ti),He=0,oe=0;for(let q=0;q<pe.length;q++){let te=pe[q],ie=te.id,Me=await h(te);if(!Me){await O(P,ie),oe++;continue}let W=await L.submitReport(Me);if(W.ok)await O(P,ie),He++;else {let rt=W.error?.code==="HTTP_400"||W.error?.code==="HTTP_413"||W.error?.code==="HTTP_422"||W.error?.code==="INGEST_ERROR"||W.error?.code==="VALIDATION_ERROR"||W.error?.code==="PAYLOAD_TOO_LARGE"||W.error?.code==="SERIALIZE_FAILED"||typeof W.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(W.error.message),mt=!rt&&(W.error?.code==="NETWORK_ERROR"||W.error?.code==="HTTP_403"||W.error?.code==="HTTP_429"||W.error?.code==="HTTP_502"||W.error?.code==="HTTP_503"||W.error?.code==="HTTP_504"||typeof W.error?.code=="string"&&W.error.code.startsWith("HTTP_5"));if(rt)await O(P,ie);else if(mt){let Fe=m(te)+1;Fe>=si?(await O(P,ie),Re.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:Fe,code:W.error?.code})):(te.attempts=Fe,await j(P,te)?Re.debug("Offline queue: transient failure, will retry",{id:ie,attempts:Fe,code:W.error?.code}):(await O(P,ie),Re.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:W.error?.code})));}oe++,q<pe.length-1&&await K(z(q));}}return {sent:He,failed:oe}}async function _(){if(d()==="indexeddb")try{return await k()}catch{return y().length}return y().length}async function $(){if(d()==="indexeddb")try{await I();}catch{}try{localStorage.removeItem(sr);}catch{}}function ee(L){if(!e||!n||typeof window>"u")return;let A=()=>{navigator.onLine&&B(L).catch(P=>{Re.warn("Offline queue auto-flush failed",{err:String(P)});});};window.addEventListener("online",A),l=setInterval(()=>{_().then(P=>{P>0&&A();});},ni),o=()=>{window.removeEventListener("online",A),l&&(clearInterval(l),l=null);};}function Q(){o?.(),o=null;}return {enqueue:J,flush:B,size:_,clear:$,startAutoSync:ee,stopAutoSync:Q}}function cr(){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;ai(t);let s=t&&"connection"in t?t.connection:void 0,o=e,l=!!o?.Capacitor,i=!!o?.cordova,a=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",h=l||i||a?{...l?{capacitor:true}:{},...i?{cordova:true}:{},...a?{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:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:ii(r),userAgentData:ci(t),screen:ui(n,e),prefersColorScheme:di(e),prefersReducedMotion:xe(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:xe(e,"(prefers-reduced-data: reduce)"),prefersContrast:pi(e),forcedColors:xe(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:hi(e),documentTitle:r?.title?.slice(0,200),buildId:mi(r),pageLoadTiming:fi(e),...h?{native:h}:{}}}function ii(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 ke=null,Rn=false;function ai(t){if(Rn)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(Rn=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{ke=r;}).catch(()=>{}));}function li(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 ci(t){let e=t?.userAgentData;if(!e&&!ke)return;let r=ke?.fullVersionList,n=li(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),ke?.platformVersion&&(s.osVersion=ke.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),ke?.model&&(s.model=ke.model),ke?.architecture&&(s.architecture=ke.architecture),ke?.bitness&&(s.bitness=ke.bitness),Object.keys(s).length===0?void 0:s}function ui(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 xe(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function di(t){if(t?.matchMedia)return xe(t,"(prefers-color-scheme: dark)")?"dark":xe(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function pi(t){if(t?.matchMedia)return xe(t,"(prefers-contrast: more)")?"more":xe(t,"(prefers-contrast: less)")?"less":xe(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function hi(t){if(t?.matchMedia){if(xe(t,"(display-mode: fullscreen)"))return "fullscreen";if(xe(t,"(display-mode: standalone)"))return "standalone";if(xe(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(xe(t,"(display-mode: browser)"))return "browser"}}function mi(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function fi(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,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var or="mushi_reporter_token";function gi(t){return `mushi:reporter-token:${t}`}function Cn(){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 ir(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function Tn(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function de(t){if(!t){let o=ir(or);if(o)return o;let l=Cn();return Tn(or,l),l}let e=gi(t),r=ir(e);if(r)return r;let s=ir(or)??Cn();return Tn(e,s),s}function ur(){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 Mn="mushi_fingerprint_hash";function bi(){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 yi(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(s=>s.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 zn(){if(typeof localStorage<"u"){let n=localStorage.getItem(Mn);if(n)return n}let t=bi(),e=JSON.stringify(t),r=await yi(e);if(typeof localStorage<"u")try{localStorage.setItem(Mn,r);}catch{}return r}var $n="mushi_session_id",$t=null;function dt(){if($t)return $t;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem($n);if(e)return $t=e,e}let t=vi();if($t=t,typeof sessionStorage<"u")try{sessionStorage.setItem($n,t);}catch{}return t}function vi(){return `ms_${Date.now().toString(36)}_${xi()}`}function xi(){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 wi=10,Si=1,ki=5e3;function Wn(t={}){let{maxBurst:e=wi,refillRate:r=Si,refillIntervalMs:n=ki}=t,s=e,o=Date.now();function l(){let u=Date.now(),m=u-o,b=Math.floor(m/n);b>0&&(s=Math.min(e,s+b*r),o=u);}function i(){return l(),s>0?(s--,true):false}function a(){s=e,o=Date.now();}function h(){return l(),s}return {tryConsume:i,reset:a,availableTokens:h}}var Ei=[{key:"ssns",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[REDACTED_SSN]"},{key:"creditCards",regex:/\b(?:\d[ -]*){12,18}\d\b/g,replacement:"[REDACTED_CC]"},{key:"secretTokens",regex:/\b(?:AKIA|ASIA)[0-9A-Z]{16}\b/g,replacement:"[REDACTED_AWS_KEY]"},{key:"secretTokens",regex:/(?:aws_secret_access_key|secret_access_key)["'\s:=]+[A-Za-z0-9/+=]{40}\b/gi,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{key:"secretTokens",regex:/\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_KEY]"},{key:"secretTokens",regex:/\bpk_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_PK]"},{key:"secretTokens",regex:/\bxox[abpor]-[A-Za-z0-9-]{10,}\b/g,replacement:"[REDACTED_SLACK_TOKEN]"},{key:"secretTokens",regex:/\bghp_[A-Za-z0-9]{36}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bgithub_pat_[A-Za-z0-9_]{80,}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_OPENAI_KEY]"},{key:"secretTokens",regex:/\bsk-ant-[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_ANTHROPIC_KEY]"},{key:"secretTokens",regex:/\bAIza[0-9A-Za-z_-]{35}\b/g,replacement:"[REDACTED_GOOGLE_KEY]"},{key:"secretTokens",regex:/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g,replacement:"[REDACTED_JWT]"},{key:"emails",regex:/\b[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}\b/g,replacement:"[REDACTED_EMAIL]"},{key:"phones",regex:/(?:\+\d{1,3}[\s.-])?\(?\d{2,4}\)?[\s.-]\d{3,4}[\s.-]\d{3,4}\b/g,replacement:"[REDACTED_PHONE]"},{key:"ipAddresses",regex:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,replacement:"[REDACTED_IP]"},{key:"ipv6",regex:/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\b/g,replacement:"[REDACTED_IPV6]"}],Ri={emails:true,phones:true,creditCards:true,ssns:true,ipAddresses:false,secretTokens:true,ipv6:false};function Vn(t={}){let e={...Ri,...t},r=Ei.filter(o=>e[o.key]);function n(o){if(!o)return o;let l=o;for(let{regex:i,replacement:a}of r)l=l.replace(new RegExp(i.source,i.flags),a);return l}function s(o,l){let i={...o};for(let a of l)typeof i[a]=="string"&&(i[a]=n(i[a]));return i}return {scrub:n,scrubObject:s}}var Ci=50,Ti=500;function Kn(t={}){let e=Math.max(1,t.max??Ci),r=Math.max(50,t.maxMessageLength??Ti),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),l=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:l??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Ln=8*1024,Mi=1e3;function Gn(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,Ln):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}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,Mi)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,Ln):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var ue={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:"#16A34A",danger:"#DC2626"},$i={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:"#4ADE80",danger:"#F87171"},dr={free:ue.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ue.accent},_t={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Yn="#FAF7F0",Xn="#ffffff",pr={light:"#9A2A1E",dark:"#7A1F15"},hr={light:"#B52F1F",dark:"#C4321E"},Jn={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 mr(t){return t==="dark"?$i:ue}var Zn={wide:32},Qn={control:4},Ze={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",sizeBody:14,lineBody:1.55},Qe={base:99999,banner:99998,panel:1e5,overlay:2147483647},Pt={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},et={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function In(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function es(t,e="",r=""){let n=mr(t),s=In(e),o=In(r),l=s||n.accent,i=s?t==="dark"?`${l}1F`:`${l}14`:n.accentWash,a=o||n.accentInk;return {accent:l,accentWash:i,accentInk:a}}function Li(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 ts(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Li(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,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 Ii=new Set(["kensaur.us","www.kensaur.us"]),Ai={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"sbc-front.vercel.app","mushi-mushi":"kensaur.us"},_i={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://sbc-front.vercel.app/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png"},Pi=["www.google.com","icons.duckduckgo.com","icon.horse"];function rs(t){try{let e=new URL(t).hostname.toLowerCase();return Pi.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Di(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function ns(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Oi(t.repo_url)),r(Ai[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Hi(t.sdk_origin):null;return n&&!Ii.has(n)&&r(n),e}function ss(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=l=>{!l||r.has(l)||rs(l)||(r.add(l),n.push(l));},o=_i[t.project_slug.toLowerCase()];o&&s(o);for(let l of ns(t))for(let i of Di(l,e))s(i);return n}function Hi(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 Oi(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 s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function os(t){return ns(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 s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),l=0,i=0,a=0;for(let u=0;u<o.length;u+=4){let m=o[u],b=o[u+1],d=o[u+2];if(o[u+3]<128)continue;l++;let v=Math.max(m,b,d),E=Math.min(m,b,d),D=v-E;a=Math.max(a,D),i+=D;}return l===0?!0:i/l<14&&a<24}catch{return rs(t.src)}}function as(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&&Bi(n))return n}return null}function Bi(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 us(t,e=An){if(!t.startsWith("data:image/")||cs(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,l)=>{r.onload=()=>o(),r.onerror=()=>l(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let l=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),a=Math.max(1,Math.round(r.naturalHeight*o));l.width=i,l.height=a;let h=l.getContext("2d");if(h){h.drawImage(r,0,0,i,a);for(let u of n){let m=l.toDataURL("image/jpeg",u);if(cs(m)<=e)return m}}}return null}function cs(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 Dt={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",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"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"}},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","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:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",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:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},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",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},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:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var ds={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:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",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"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"}},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",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:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",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:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},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",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:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},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:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",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",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var ps={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:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",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"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"}},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",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:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",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:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",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",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},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",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:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},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",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},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:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",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",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},poweredBy:"Powered by Mushi v{version}"}};var hs={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:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",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"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"}},step2:{heading:"\xBFQu\xE9 pas\xF3?",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:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",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:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},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",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:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},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:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var Ni={en:Dt,ja:ds,th:ps,es:hs};function fr(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Dt;let r=e.split("-")[0].toLowerCase();return Ni[r]??Dt}function ms(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=mr(s),l=es(s,e,r),i=Jn[s];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:l.accent,widgetAccentWash:l.accentWash,widgetAccentInk:l.accentInk,widgetAccentShadow:n?pr.dark:pr.light,ok:o.ok,danger:o.danger,onAccent:Yn,inverse:Xn,neonBannerBg:_t.bg,neonBannerFg:_t.fg,neonBannerBorder:_t.border,brandBannerBorder:n?hr.dark:hr.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Ze.fontDisplay,fontBody:Ze.fontBody,fontMono:Ze.fontMono,easeStamp:Pt.easeStamp,zBanner:Qe.banner,zPanel:Qe.panel,zOverlay:Qe.overlay,fabSize:et.fabSize,panelWidth:et.panelWidth,panelSheetBreakpoint:et.panelSheetBreakpoint}}function fs(t,e="",r=""){let n=ms(t,e,r),{isDark:s,paper:o,paperRaised:l,ink:i,inkMuted:a,inkFaint:h,inkDim:u,rule:m,ruleStrong:b,widgetAccent:d,widgetAccentWash:g,widgetAccentInk:v,widgetAccentShadow:E,ok:D,danger:R,onAccent:k,inverse:I,neonBannerBg:y,neonBannerFg:w,neonBannerBorder:C,brandBannerBorder:x,statusSent:N,statusReview:O,statusFixing:j,statusFixed:J,statusClosedBg:z,fontDisplay:K,fontBody:B,fontMono:_,easeStamp:$,zBanner:ee,fabSize:Q}=n,{sizeBody:L,lineBody:A}=Ze,{durationFast:P}=Pt,{bannerHeight:F,gutter:T,panelWidth:pe,panelMaxHeight:He,panelSheetBreakpoint:oe,edgeTabWidth:q}=et,te=Q+12,{base:ie}=Qe,Me=Qn.control;return `
1
+ (function(){'use strict';var ho=Object.defineProperty;var ct=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var an=(t,e)=>{for(var r in e)ho(t,r,{get:e[r],enumerable:true});};function mo(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function ln(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 ut(t,e,r=""){let n=mo(t),s=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,i="",l=n?`length=${s}`:`type=${typeof t}`,m=a+"expected Uint8Array"+i+", got "+l;throw n?new RangeError(m):new TypeError(m)}return t}function cn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(ln(t.outputLen),ln(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Ge(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 wt(t,e){ut(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 Ie(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function St(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function ke(t,e){return t<<32-e|t>>>e}function We(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var ze,kt=ct(()=>{"use strict";ze=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function un(t,e,r){return t&e^~t&r}function dn(t,e,r){return t&e^t&r^e&r}var dt,Ae,_e,ne,se,pn=ct(()=>{"use strict";kt();dt=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=St(this.buffer);}update(e){Ge(this),ut(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let a=0;a<o;){let i=Math.min(s-this.pos,o-a);if(i===s){let l=St(e);for(;s<=o-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ge(this),wt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,Ie(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let h=a;h<s;h++)r[h]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=St(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let m=l/4,u=this.get();if(m>u.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<m;h++)i.setUint32(4*h,u[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:s,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},Ae=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),_e=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ne=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 fo(t,e=false){return e?{h:Number(t&Et),l:Number(t>>hn&Et)}:{h:Number(t>>hn&Et)|0,l:Number(t&Et)|0}}function mn(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:i}=fo(t[o],e);[n[o],s[o]]=[a,i];}return [n,s]}function Re(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var Et,hn,ar,lr,Ve,Ke,pt,ht,fn,gn,bn,yn,vn,xn,wn=ct(()=>{"use strict";Et=BigInt(4294967295),hn=BigInt(32);ar=(t,e,r)=>t>>>r,lr=(t,e,r)=>t<<32-r|e>>>r,Ve=(t,e,r)=>t>>>r|e<<32-r,Ke=(t,e,r)=>t<<32-r|e>>>r,pt=(t,e,r)=>t<<64-r|e>>>r-32,ht=(t,e,r)=>t>>>r-32|e<<64-r;fn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),gn=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,bn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),yn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,vn=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),xn=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var cr={};an(cr,{_SHA224:()=>Tt,_SHA256:()=>Ct,_SHA384:()=>$t,_SHA512:()=>Mt,_SHA512_224:()=>Lt,_SHA512_256:()=>It,sha224:()=>wo,sha256:()=>xo,sha384:()=>ko,sha512:()=>So,sha512_224:()=>Ro,sha512_256:()=>Eo});var bo,Ne,Rt,Ct,Tt,Sn,yo,vo,Ue,Fe,Ye,Mt,$t,le,ce,Lt,It,xo,wo,So,ko,Eo,Ro,ur=ct(()=>{"use strict";pn();wn();kt();bo=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]),Ne=new Uint32Array(64),Rt=class extends dt{constructor(e){super(64,e,8,!1);}get(){let{A:e,B:r,C:n,D:s,E:o,F:a,G:i,H:l}=this;return [e,r,n,s,o,a,i,l]}set(e,r,n,s,o,a,i,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=a|0,this.G=i|0,this.H=l|0;}process(e,r){for(let h=0;h<16;h++,r+=4)Ne[h]=e.getUint32(r,!1);for(let h=16;h<64;h++){let f=Ne[h-15],d=Ne[h-2],g=ke(f,7)^ke(f,18)^f>>>3,v=ke(d,17)^ke(d,19)^d>>>10;Ne[h]=v+Ne[h-7]+g+Ne[h-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:m,H:u}=this;for(let h=0;h<64;h++){let f=ke(i,6)^ke(i,11)^ke(i,25),d=u+f+un(i,l,m)+bo[h]+Ne[h]|0,v=(ke(n,2)^ke(n,13)^ke(n,22))+dn(n,s,o)|0;u=m,m=l,l=i,i=a+d|0,a=o,o=s,s=n,n=d+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,m=m+this.G|0,u=u+this.H|0,this.set(n,s,o,a,i,l,m,u);}roundClean(){Ie(Ne);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ie(this.buffer);}},Ct=class extends Rt{A=Ae[0]|0;B=Ae[1]|0;C=Ae[2]|0;D=Ae[3]|0;E=Ae[4]|0;F=Ae[5]|0;G=Ae[6]|0;H=Ae[7]|0;constructor(){super(32);}},Tt=class extends Rt{A=_e[0]|0;B=_e[1]|0;C=_e[2]|0;D=_e[3]|0;E=_e[4]|0;F=_e[5]|0;G=_e[6]|0;H=_e[7]|0;constructor(){super(28);}},Sn=mn(["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))),yo=Sn[0],vo=Sn[1],Ue=new Uint32Array(80),Fe=new Uint32Array(80),Ye=class extends dt{constructor(e){super(128,e,16,!1);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:a,Dh:i,Dl:l,Eh:m,El:u,Fh:h,Fl:f,Gh:d,Gl:g,Hh:v,Hl:E}=this;return [e,r,n,s,o,a,i,l,m,u,h,f,d,g,v,E]}set(e,r,n,s,o,a,i,l,m,u,h,f,d,g,v,E){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=a|0,this.Dh=i|0,this.Dl=l|0,this.Eh=m|0,this.El=u|0,this.Fh=h|0,this.Fl=f|0,this.Gh=d|0,this.Gl=g|0,this.Hh=v|0,this.Hl=E|0;}process(e,r){for(let S=0;S<16;S++,r+=4)Ue[S]=e.getUint32(r),Fe[S]=e.getUint32(r+=4);for(let S=16;S<80;S++){let I=Ue[S-15]|0,y=Fe[S-15]|0,w=Ve(I,y,1)^Ve(I,y,8)^ar(I,y,7),C=Ke(I,y,1)^Ke(I,y,8)^lr(I,y,7),x=Ue[S-2]|0,N=Fe[S-2]|0,O=Ve(x,N,19)^pt(x,N,61)^ar(x,N,6),j=Ke(x,N,19)^ht(x,N,61)^lr(x,N,6),J=bn(C,j,Fe[S-7],Fe[S-16]),W=yn(J,w,O,Ue[S-7],Ue[S-16]);Ue[S]=W|0,Fe[S]=J|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:m,Dl:u,Eh:h,El:f,Fh:d,Fl:g,Gh:v,Gl:E,Hh:A,Hl:R}=this;for(let S=0;S<80;S++){let I=Ve(h,f,14)^Ve(h,f,18)^pt(h,f,41),y=Ke(h,f,14)^Ke(h,f,18)^ht(h,f,41),w=h&d^~h&v,C=f&g^~f&E,x=vn(R,y,C,vo[S],Fe[S]),N=xn(x,A,I,w,yo[S],Ue[S]),O=x|0,j=Ve(n,s,28)^pt(n,s,34)^pt(n,s,39),J=Ke(n,s,28)^ht(n,s,34)^ht(n,s,39),W=n&o^n&i^o&i,K=s&a^s&l^a&l;A=v|0,R=E|0,v=d|0,E=g|0,d=h|0,g=f|0,{h,l:f}=Re(m|0,u|0,N|0,O|0),m=i|0,u=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let B=fn(O,J,K);n=gn(B,N,j,W),s=B|0;}(({h:n,l:s}=Re(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l:a}=Re(this.Bh|0,this.Bl|0,o|0,a|0),{h:i,l}=Re(this.Ch|0,this.Cl|0,i|0,l|0),{h:m,l:u}=Re(this.Dh|0,this.Dl|0,m|0,u|0),{h,l:f}=Re(this.Eh|0,this.El|0,h|0,f|0),{h:d,l:g}=Re(this.Fh|0,this.Fl|0,d|0,g|0),{h:v,l:E}=Re(this.Gh|0,this.Gl|0,v|0,E|0),{h:A,l:R}=Re(this.Hh|0,this.Hl|0,A|0,R|0),this.set(n,s,o,a,i,l,m,u,h,f,d,g,v,E,A,R);}roundClean(){Ie(Ue,Fe);}destroy(){this.destroyed=!0,Ie(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Mt=class extends Ye{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);}},$t=class extends Ye{Ah=ne[0]|0;Al=ne[1]|0;Bh=ne[2]|0;Bl=ne[3]|0;Ch=ne[4]|0;Cl=ne[5]|0;Dh=ne[6]|0;Dl=ne[7]|0;Eh=ne[8]|0;El=ne[9]|0;Fh=ne[10]|0;Fl=ne[11]|0;Gh=ne[12]|0;Gl=ne[13]|0;Hh=ne[14]|0;Hl=ne[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]),Lt=class extends Ye{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);}},It=class extends Ye{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);}},xo=We(()=>new Ct,ze(1)),wo=We(()=>new Tt,ze(4)),So=We(()=>new Mt,ze(3)),ko=We(()=>new $t,ze(2)),Eo=We(()=>new It,ze(6)),Ro=We(()=>new Lt,ze(5));});var kn={};an(kn,{_HMAC:()=>mt,hmac:()=>Co});var mt,Co,En=ct(()=>{"use strict";kt();mt=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(cn(e),ut(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,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),Ie(s);}update(e){return Ge(this),this.iHash.update(e),this}digestInto(e){Ge(this),wt(e,this),this.finished=!0;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:s,destroyed:o,blockLen:a,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy();}},Co=(()=>{let t=((e,r,n)=>new mt(e,r).update(n).digest());return t.create=(e,r)=>new mt(e,r),t})();});var To=4194304,Nn=1.5*1024*1024;function Mo(t){try{return JSON.stringify(t)}catch{return null}}function $o(t,e=To){let r=Mo(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 ${Rn(n)} exceeds limit ${Rn(e)}`}}function Rn(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Un(){try{let e=globalThis.crypto;if(e?.subtle)return e.subtle}catch{}return null}function Dt(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function fr(t){let e=Un();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Dt(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(ur(),cr));return Dt(r(new TextEncoder().encode(t)))}async function Lo(t,e){let r=Un();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",a,new TextEncoder().encode(e));return Dt(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(En(),kn)),{sha256:s}=await Promise.resolve().then(()=>(ur(),cr)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Dt(o)}var Cn=false,Io="X-Mushi-User-Token",Ao="X-Mushi-Project",Fn="X-Mushi-SDK-Package",qn="X-Mushi-SDK-Version";function _o(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Ao]:t.projectId};return t.sdkPackage&&(e[Fn]=t.sdkPackage),t.sdkVersion&&(e[qn]=t.sdkVersion),t.userToken&&(e[Io]=t.userToken),t.internalKind&&(e[ft]=t.internalKind),e}var Ht="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",ft="X-Mushi-Internal",Xe="__mushiInternal",Po=1e4,Do=2,Ho=4,Oo=3e4;function jn(t){let{projectId:e,apiKey:r,apiEndpoint:n=Ht,timeout:s=Po,maxRetries:o=Do,getUserToken:a,sdkPackage:i,sdkVersion:l,circuitBreaker:m}=t,u=n.replace(/\/$/,""),h=m?.enabled!==false,f=Math.max(1,m?.threshold??Ho),d=Math.max(1e3,m?.cooldownMs??Oo),g=0,v=0,E=()=>h&&v>Date.now(),A=()=>{g=0,v=0;},R=()=>{h&&(g+=1,g>=f&&(v=Date.now()+d));};async function S(y,w,C,x=o,N,O){if(E())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let j=`${u}${w}`,J=new AbortController,W=setTimeout(()=>J.abort(),s),K=a?.()??null;try{let B=await fetch(j,{method:y,headers:{..._o({apiKey:r,projectId:e,sdkPackage:i,sdkVersion:l,userToken:K,internalKind:N}),...O},body:C?JSON.stringify(C):void 0,signal:J.signal,...N?{[Xe]:N}:{}});if(clearTimeout(W),B.status===307||B.status===308){let ee=B.headers.get("Location");if(ee&&x>0){let Q=ee.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Q!==u)return u=Q,S(y,w,C,x-1,N,O)}}if(!B.ok){let ee=await B.json().catch(()=>({}));if((B.status===401||B.status===403)&&!Cn){Cn=!0;let Q=u===Ht?"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 ${B.status}). Check your Project ID and API key scope (must be "report:write"). `+Q);}return B.status>=500&&x>0?(await Tn(Mn(o-x)),S(y,w,C,x-1,N,O)):(B.status>=500?R():A(),{ok:!1,error:{code:ee.error?.code||`HTTP_${B.status}`,message:ee.error?.message||ee.message||`HTTP ${B.status} error`}})}let P=await B.json(),$=P&&typeof P=="object"&&"ok"in P&&"data"in P?P.data:P;return A(),{ok:!0,data:$}}catch(B){return clearTimeout(W),x>0&&Bo(B)?(await Tn(Mn(o-x)),S(y,w,C,x-1,N)):(R(),{ok:false,error:{code:"NETWORK_ERROR",message:B instanceof Error?B.message:"Unknown network error"}})}}async function I(y,w,C,x){let N=await fr(C),O=String(Date.now()),j=await Lo(r,`${e}.${O}.${N}`),J=`${u}${w}`,W=await fetch(J,{method:y,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...i?{[Fn]:i}:{},...l?{[qn]:l}:{},[ft]:"reporter-poll","X-Reporter-Token-Hash":N,"X-Reporter-Ts":O,"X-Reporter-Hmac":j},body:x?JSON.stringify(x):void 0,[Xe]:"reporter-poll"});if(!W.ok){let B=await W.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${W.status}`,message:B.error?.message??B.message??`HTTP ${W.status} error`}}}let K=await W.json();return {ok:true,data:K.data??K}}return {async submitReport(y){let w=$o(y);return w.ok?S("POST","/v1/reports",y,o,"report-submit"):{ok:false,error:{code:w.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:w.reason??"Report payload exceeds size limit"}}},async getReportStatus(y){return S("GET",`/v1/reports/${y}/status`,void 0,o,"report-status")},async getSdkConfig(){return S("GET","/v1/sdk/config",void 0,o,"sdk-config")},async askAssistant(y){return S("POST","/v1/sdk/assistant",{message:y.message,threadId:y.threadId??null,context:y.context??null},1,"community")},async getLatestSdkVersion(y){let w=new URLSearchParams({package:y}).toString();return S("GET",`/v1/sdk/latest-version?${w}`,void 0,o,"sdk-config")},async postDiscoveryEvent(y){return S("POST","/v1/sdk/discovery",y,1,"discovery")},async listReporterReports(y){return I("GET","/v1/reporter/reports",y)},async listReporterComments(y,w){return I("GET",`/v1/reporter/reports/${y}/comments`,w)},async replyToReporterReport(y,w,C,x){return I("POST",`/v1/reporter/reports/${y}/reply`,w,{body:C,...x?{feedback_signal:x}:{}})},async reopenReporterReport(y,w,C){return I("POST",`/v1/reporter/reports/${y}/reopen`,w,{note:C??""})},async listNotifications(y,w){let C=new URLSearchParams;w?.since&&C.set("since",w.since),w?.limit&&C.set("limit",String(w.limit));let x=C.size?`?${C.toString()}`:"";return I("GET",`/v1/notifications${x}`,y)},async markNotificationRead(y,w){return I("POST",`/v1/notifications/${y}/read`,w,{})},async listReporterFeatureBoard(y){return I("GET","/v1/reporter/feature-board",y)},async voteReporterFeatureBoard(y,w){return I("POST",`/v1/reporter/feature-board/${y}/vote`,w,{})},async submitActivity(y,w,C){return S("POST","/v1/sdk/activity",{user_id:y,user_traits:C?.userTraits,opted_in:C?.optedIn,reporter_token_hash:C?.reporterTokenHash,...C?.hostJwt?{host_jwt:C.hostJwt}:{},events:w},1,"discovery")},async getMyPoints(y){return S("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyTier(y){return S("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyHistory(y,w){let C=new URLSearchParams({userId:y,...w?.limit?{limit:String(w.limit)}:{}});return S("GET",`/v1/sdk/me/history?${C}`,void 0,1,"reporter-poll")},async getHallOfFame(y=10){return S("GET",`/v1/sdk/hall-of-fame?limit=${y}`,void 0,1,"reporter-poll")},async sendMagicLink(y){return S("POST","/v1/tester/magic-link",{email:y},1,"community")},async linkReporterToken(y,w){return S("POST","/v1/tester/link-reporter",{reporter_token_hash:y},1,"community",{Authorization:`Bearer ${w}`})},async getCrossAppReports(y,w){let C=new URLSearchParams;w?.limit&&C.set("limit",String(w.limit)),w?.offset&&C.set("offset",String(w.offset));let x=C.size?`?${C.toString()}`:"";return S("GET",`/v1/tester/cross-app-reports${x}`,void 0,1,"community",{Authorization:`Bearer ${y}`})},async getMyReputation(y){return S("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${y}`})},async getPublicLeaderboard(y=20){return S("GET",`/v1/public/tester-leaderboard?limit=${y}`,void 0,1,"reporter-poll")},async getTesterStatus(y){return S("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${y}`})}}}function Tn(t){return new Promise(e=>setTimeout(e,t))}function Mn(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Bo(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function dr(...t){return t.find(e=>e!==void 0&&e!=="")}function xe(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Pe(t){try{return t()}catch{return}}function Wn(){let t=dr(xe("VITE_MUSHI_PROJECT_ID"),xe("NEXT_PUBLIC_MUSHI_PROJECT_ID"),xe("NUXT_PUBLIC_MUSHI_PROJECT_ID"),xe("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Pe(()=>process.env.MUSHI_PROJECT_ID)),e=dr(xe("VITE_MUSHI_API_KEY"),xe("NEXT_PUBLIC_MUSHI_API_KEY"),xe("NUXT_PUBLIC_MUSHI_API_KEY"),xe("EXPO_PUBLIC_MUSHI_API_KEY"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Pe(()=>process.env.MUSHI_API_KEY)),r=dr(xe("VITE_MUSHI_API_ENDPOINT"),xe("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Pe(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Pe(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Pe(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var No=10,Uo=2e3,Fo=[/^(.)\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],qo=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function zn(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=No,maxDescriptionLength:s=Uo}=t;function o(i){if(!e)return {passed:true};let l=i.trim();if(l.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(l.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let u of Fo)if(u.test(l))return {passed:false,reason:"Detected as spam"};if(qo.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(u=>u.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(i){let l=i.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:o,truncate:a}}var $n={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},jo={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},me={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"},Wo={debug:me.dim,info:me.green,warn:me.yellow,error:me.red,fatal:`${me.bgRed}${me.white}${me.bold}`};function zo(){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 Vo(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 Ko(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=Wo[r]??"",l=jo[r]??r.toUpperCase(),m=Object.keys(o).length>0?` ${me.dim}${Vo(o)}${me.reset}`:"";return `${me.dim}${a}${me.reset} ${i}${l}${me.reset} ${me.cyan}[${n}]${me.reset} ${s}${m}`}function Go(t){return JSON.stringify(t)}function Yo(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 Vn(t,e,r,n,s){let o=e;function a(i,l,m){if($n[i]<$n[o])return;let u={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...m};s(i,n(u));}return {debug:(i,l)=>a("debug",i,l),info:(i,l)=>a("info",i,l),warn:(i,l)=>a("warn",i,l),error:(i,l)=>a("error",i,l),fatal:(i,l)=>a("fatal",i,l),child(i,l){return Vn(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function Ot(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?zo():s)==="json"?Go:Ko,l=Yo(o);return Vn(e,r,n,i,l)}var gr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>gr,setLevel:()=>{}},Xo="mushi-mushi-keyring",Je="keys",Kn="offline-queue/v1",At=null,_t=null;function Jo(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Gn(){return new Promise((t,e)=>{let r=indexedDB.open(Xo,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(Je)||n.createObjectStore(Je);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function Zo(){let t=await Gn();return new Promise((e,r)=>{let s=t.transaction(Je,"readonly").objectStore(Je).get(Kn);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function Qo(t){let e=await Gn();return new Promise((r,n)=>{let s=e.transaction(Je,"readwrite");s.objectStore(Je).put(t,Kn),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function Yn(){if(At)return At;if(_t)return _t;if(!Jo())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return _t=(async()=>{let t=await Zo();if(t)return At=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Qo(e),At=e,e})(),_t}function Ln(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function In(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 ei(t){let e=await Yn(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:Ln(r),ct:Ln(s)}}function ti(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function ri(t){let e=await Yn(),r=In(t.iv),n=In(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Ce=Ot({scope:"mushi:queue",level:"warn"}),ni="mushi-mushi",he="offline-reports",si=1,pr="mushi_offline_queue",oi=10,ii=6e4,ai=3e4,li=8,ci=1440*60*1e3;function Xn(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null;async function l(L){let _=new Date().toISOString();if(!s)return {...L,queuedAt:_};try{let D=await ei(L);return {id:L.id,queuedAt:_,payload:D}}catch(D){return Ce.warn("Offline queue: encryption failed, storing plaintext",{err:String(D)}),{...L,queuedAt:_}}}async function m(L){if(u(L))try{return await ri(L.payload)}catch(_){return Ce.warn("Offline queue: decrypt failed, dropping row",{err:String(_),id:L.id}),null}return L}function u(L){return !!L.payload&&ti(L.payload)}function h(L){let _=L.attempts;return typeof _=="number"&&Number.isFinite(_)?_:0}function f(L,_){let D=L.queuedAt;if(!D)return false;let F=Date.parse(D);return Number.isNaN(F)?false:_-F>ci}function d(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function g(){return new Promise((L,_)=>{let D=indexedDB.open(ni,si);D.onupgradeneeded=()=>{let F=D.result;F.objectStoreNames.contains(he)||F.createObjectStore(he,{keyPath:"id"});},D.onsuccess=()=>L(D.result),D.onerror=()=>{i="localstorage",_(D.error);};})}async function v(L){let _=await g(),D=await l(L);return new Promise((F,T)=>{let pe=_.transaction(he,"readwrite");pe.objectStore(he).put(D),pe.oncomplete=()=>F(),pe.onerror=()=>T(pe.error);})}async function E(){let L=await g();return new Promise((_,D)=>{let T=L.transaction(he,"readonly").objectStore(he).getAll();T.onsuccess=()=>_(T.result),T.onerror=()=>D(T.error);})}async function A(L){let _=await g();return new Promise((D,F)=>{let T=_.transaction(he,"readwrite");T.objectStore(he).delete(L),T.oncomplete=()=>D(),T.onerror=()=>F(T.error);})}async function R(L){let _=await g();return new Promise((D,F)=>{let T=_.transaction(he,"readwrite");T.objectStore(he).put(L),T.oncomplete=()=>D(),T.onerror=()=>F(T.error);})}async function S(){let L=await g();return new Promise((_,D)=>{let T=L.transaction(he,"readonly").objectStore(he).count();T.onsuccess=()=>_(T.result),T.onerror=()=>D(T.error);})}async function I(){let L=await g();return new Promise((_,D)=>{let F=L.transaction(he,"readwrite");F.objectStore(he).clear(),F.oncomplete=()=>_(),F.onerror=()=>D(F.error);})}function y(){try{let L=localStorage.getItem(pr);return L?JSON.parse(L):[]}catch{return []}}function w(L){try{localStorage.setItem(pr,JSON.stringify(L));}catch{}}async function C(L){let _=y();_.push(await l(L)),w(_);}function x(L){let _=y().filter(D=>D.id!==L);w(_);}function N(L){let _=y(),D=_.findIndex(F=>F.id===L.id);D>=0&&(_[D]=L,w(_));}async function O(L,_){try{L==="indexeddb"?await A(_):x(_);}catch(D){Ce.debug("Offline queue: row removal failed (will age out)",{id:_,err:String(D)});}}async function j(L,_){try{return L==="indexeddb"?await R(_):N(_),!0}catch(D){return Ce.debug("Offline queue: row persist failed",{id:_.id,err:String(D)}),false}}async function J(L){if(!e)return;if(await P()>=r){Ce.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let D=d();if(D==="indexeddb")try{await v(L);return}catch{i="localstorage";}if(D==="localstorage"||i==="localstorage"){await C(L);return}}function W(L){return Math.min(1e3*2**L+Math.random()*500,ii)}function K(L){return new Promise(_=>setTimeout(_,L))}async function B(L){if(!e)return {sent:0,failed:0};let _,D=d();if(D==="indexeddb")try{_=await E();}catch{_=y();}else _=y();let F=Date.now(),T=[];for(let q of _)if(f(q,F)){let te=q.id;await O(D,te),Ce.debug("Offline queue: evicting stale report",{id:te});}else T.push(q);_=T;let pe=_.slice(0,oi),Be=0,oe=0;for(let q=0;q<pe.length;q++){let te=pe[q],ie=te.id,Me=await m(te);if(!Me){await O(D,ie),oe++;continue}let z=await L.submitReport(Me);if(z.ok)await O(D,ie),Be++;else {let at=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),vt=!at&&(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(at)await O(D,ie);else if(vt){let je=h(te)+1;je>=li?(await O(D,ie),Ce.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:je,code:z.error?.code})):(te.attempts=je,await j(D,te)?Ce.debug("Offline queue: transient failure, will retry",{id:ie,attempts:je,code:z.error?.code}):(await O(D,ie),Ce.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:z.error?.code})));}oe++,q<pe.length-1&&await K(W(q));}}return {sent:Be,failed:oe}}async function P(){if(d()==="indexeddb")try{return await S()}catch{return y().length}return y().length}async function $(){if(d()==="indexeddb")try{await I();}catch{}try{localStorage.removeItem(pr);}catch{}}function ee(L){if(!e||!n||typeof window>"u")return;o&&Q();let _=()=>{navigator.onLine&&B(L).catch(D=>{Ce.warn("Offline queue auto-flush failed",{err:String(D)});});};window.addEventListener("online",_),a=setInterval(()=>{P().then(D=>{D>0&&_();});},ai),o=()=>{window.removeEventListener("online",_),a&&(clearInterval(a),a=null);};}function Q(){o?.(),o=null;}return {enqueue:J,flush:B,size:P,clear:$,startAutoSync:ee,stopAutoSync:Q}}function br(){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;di(t);let s=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,i=!!o?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",m=a||i||l?{...a?{capacitor:true}:{},...i?{cordova:true}:{},...l?{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:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:ui(r),userAgentData:hi(t),screen:mi(n,e),prefersColorScheme:fi(e),prefersReducedMotion:we(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:we(e,"(prefers-reduced-data: reduce)"),prefersContrast:gi(e),forcedColors:we(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:bi(e),documentTitle:r?.title?.slice(0,200),buildId:yi(r),pageLoadTiming:vi(e),...m?{native:m}:{}}}function ui(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 Ee=null,An=false;function di(t){if(An)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(An=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ee=r;}).catch(()=>{}));}function pi(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 hi(t){let e=t?.userAgentData;if(!e&&!Ee)return;let r=Ee?.fullVersionList,n=pi(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),Ee?.platformVersion&&(s.osVersion=Ee.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),Ee?.model&&(s.model=Ee.model),Ee?.architecture&&(s.architecture=Ee.architecture),Ee?.bitness&&(s.bitness=Ee.bitness),Object.keys(s).length===0?void 0:s}function mi(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 we(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function fi(t){if(t?.matchMedia)return we(t,"(prefers-color-scheme: dark)")?"dark":we(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function gi(t){if(t?.matchMedia)return we(t,"(prefers-contrast: more)")?"more":we(t,"(prefers-contrast: less)")?"less":we(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function bi(t){if(t?.matchMedia){if(we(t,"(display-mode: fullscreen)"))return "fullscreen";if(we(t,"(display-mode: standalone)"))return "standalone";if(we(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(we(t,"(display-mode: browser)"))return "browser"}}function yi(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function vi(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,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var hr="mushi_reporter_token";function xi(t){return `mushi:reporter-token:${t}`}function _n(){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 mr(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function Pn(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function de(t){if(!t){let o=mr(hr);if(o)return o;let a=_n();return Pn(hr,a),a}let e=xi(t),r=mr(e);if(r)return r;let s=mr(hr)??_n();return Pn(e,s),s}function yr(){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 Dn="mushi_fingerprint_hash";function wi(){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 Si(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(s=>s.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 Jn(){if(typeof localStorage<"u"){let n=localStorage.getItem(Dn);if(n)return n}let t=wi(),e=JSON.stringify(t),r=await Si(e);if(typeof localStorage<"u")try{localStorage.setItem(Dn,r);}catch{}return r}var Hn="mushi_session_id",Pt=null;function gt(){if(Pt)return Pt;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Hn);if(e)return Pt=e,e}let t=ki();if(Pt=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Hn,t);}catch{}return t}function ki(){return `ms_${Date.now().toString(36)}_${Ei()}`}function Ei(){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 Ri=10,Ci=1,Ti=5e3;function Zn(t={}){let{maxBurst:e=Ri,refillRate:r=Ci,refillIntervalMs:n=Ti}=t,s=e,o=Date.now();function a(){let u=Date.now(),h=u-o,f=Math.floor(h/n);f>0&&(s=Math.min(e,s+f*r),o=u);}function i(){return a(),s>0?(s--,true):false}function l(){s=e,o=Date.now();}function m(){return a(),s}return {tryConsume:i,reset:l,availableTokens:m}}var Mi=[{key:"ssns",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[REDACTED_SSN]"},{key:"creditCards",regex:/\b(?:\d[ -]*){12,18}\d\b/g,replacement:"[REDACTED_CC]"},{key:"secretTokens",regex:/\b(?:AKIA|ASIA)[0-9A-Z]{16}\b/g,replacement:"[REDACTED_AWS_KEY]"},{key:"secretTokens",regex:/(?:aws_secret_access_key|secret_access_key)["'\s:=]+[A-Za-z0-9/+=]{40}\b/gi,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{key:"secretTokens",regex:/\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_KEY]"},{key:"secretTokens",regex:/\bpk_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_PK]"},{key:"secretTokens",regex:/\bxox[abpor]-[A-Za-z0-9-]{10,}\b/g,replacement:"[REDACTED_SLACK_TOKEN]"},{key:"secretTokens",regex:/\bghp_[A-Za-z0-9]{36}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bgithub_pat_[A-Za-z0-9_]{80,}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_OPENAI_KEY]"},{key:"secretTokens",regex:/\bsk-ant-[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_ANTHROPIC_KEY]"},{key:"secretTokens",regex:/\bAIza[0-9A-Za-z_-]{35}\b/g,replacement:"[REDACTED_GOOGLE_KEY]"},{key:"secretTokens",regex:/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g,replacement:"[REDACTED_JWT]"},{key:"emails",regex:/\b[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}\b/g,replacement:"[REDACTED_EMAIL]"},{key:"phones",regex:/(?:\+\d{1,3}[\s.-])?\(?\d{2,4}\)?[\s.-]\d{3,4}[\s.-]\d{3,4}\b/g,replacement:"[REDACTED_PHONE]"},{key:"ipAddresses",regex:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,replacement:"[REDACTED_IP]"},{key:"ipv6",regex:/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\b/g,replacement:"[REDACTED_IPV6]"}],$i={emails:true,phones:true,creditCards:true,ssns:true,ipAddresses:false,secretTokens:true,ipv6:false};function Qn(t={}){let e={...$i,...t},r=Mi.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:i,replacement:l}of r)a=a.replace(new RegExp(i.source,i.flags),l);return a}function s(o,a){let i={...o};for(let l of a)typeof i[l]=="string"&&(i[l]=n(i[l]));return i}return {scrub:n,scrubObject:s}}var Li=50,Ii=500;function es(t={}){let e=Math.max(1,t.max??Li),r=Math.max(50,t.maxMessageLength??Ii),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),a=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var On=8*1024,Ai=1e3;function ts(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,On):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}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,Ai)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,On):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var ue={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:"#16A34A",danger:"#DC2626"},_i={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:"#4ADE80",danger:"#F87171"},vr={free:ue.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ue.accent},Bt={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},rs="#FAF7F0",ns="#ffffff",xr={light:"#9A2A1E",dark:"#7A1F15"},wr={light:"#B52F1F",dark:"#C4321E"},ss={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 Sr(t){return t==="dark"?_i:ue}var os={wide:32},is={control:4},Ze={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",sizeBody:14,lineBody:1.55},Qe={base:99999,banner:99998,panel:1e5,overlay:2147483647},Nt={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},et={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Bn(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function as(t,e="",r=""){let n=Sr(t),s=Bn(e),o=Bn(r),a=s||n.accent,i=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=o||n.accentInk;return {accent:a,accentWash:i,accentInk:l}}function Pi(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 ls(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Pi(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,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 Di=new Set(["kensaur.us","www.kensaur.us"]),Hi={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"sbc-front.vercel.app","mushi-mushi":"kensaur.us"},Oi={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://sbc-front.vercel.app/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png"},Bi=["www.google.com","icons.duckduckgo.com","icon.horse"];function cs(t){try{let e=new URL(t).hostname.toLowerCase();return Bi.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Ni(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function us(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Fi(t.repo_url)),r(Hi[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Ui(t.sdk_origin):null;return n&&!Di.has(n)&&r(n),e}function ds(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||cs(a)||(r.add(a),n.push(a));},o=Oi[t.project_slug.toLowerCase()];o&&s(o);for(let a of us(t))for(let i of Ni(a,e))s(i);return n}function Ui(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 Fi(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 s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function ps(t){return us(t)[0]??null}function hs(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 s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),a=0,i=0,l=0;for(let u=0;u<o.length;u+=4){let h=o[u],f=o[u+1],d=o[u+2];if(o[u+3]<128)continue;a++;let v=Math.max(h,f,d),E=Math.min(h,f,d),A=v-E;l=Math.max(l,A),i+=A;}return a===0?!0:i/a<14&&l<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 fs(){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&&qi(n))return n}return null}function qi(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 bs(t,e=Nn){if(!t.startsWith("data:image/")||gs(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],s=[1,.85,.7,.55,.4];for(let o of s){let a=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),l=Math.max(1,Math.round(r.naturalHeight*o));a.width=i,a.height=l;let m=a.getContext("2d");if(m){m.drawImage(r,0,0,i,l);for(let u of n){let h=a.toDataURL("image/jpeg",u);if(gs(h)<=e)return h}}}return null}function gs(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 Ut={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",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"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"}},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","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:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",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:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},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",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},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:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var ys={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:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",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"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"}},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",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:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",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:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},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",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:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},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:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",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",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var vs={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:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",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"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"}},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",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:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",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:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",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",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},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",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:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},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",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},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:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",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",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},poweredBy:"Powered by Mushi v{version}"}};var xs={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:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",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"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"}},step2:{heading:"\xBFQu\xE9 pas\xF3?",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:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",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:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},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",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:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},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:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var ji={en:Ut,ja:ys,th:vs,es:xs};function kr(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Ut;let r=e.split("-")[0].toLowerCase();return ji[r]??Ut}function ws(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=Sr(s),a=as(s,e,r),i=ss[s];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?xr.dark:xr.light,ok:o.ok,danger:o.danger,onAccent:rs,inverse:ns,neonBannerBg:Bt.bg,neonBannerFg:Bt.fg,neonBannerBorder:Bt.border,brandBannerBorder:n?wr.dark:wr.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:Ze.fontDisplay,fontBody:Ze.fontBody,fontMono:Ze.fontMono,easeStamp:Nt.easeStamp,zBanner:Qe.banner,zPanel:Qe.panel,zOverlay:Qe.overlay,fabSize:et.fabSize,panelWidth:et.panelWidth,panelSheetBreakpoint:et.panelSheetBreakpoint}}function Ss(t,e="",r=""){let n=ws(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:m,inkDim:u,rule:h,ruleStrong:f,widgetAccent:d,widgetAccentWash:g,widgetAccentInk:v,widgetAccentShadow:E,ok:A,danger:R,onAccent:S,inverse:I,neonBannerBg:y,neonBannerFg:w,neonBannerBorder:C,brandBannerBorder:x,statusSent:N,statusReview:O,statusFixing:j,statusFixed:J,statusClosedBg:W,fontDisplay:K,fontBody:B,fontMono:P,easeStamp:$,zBanner:ee,fabSize:Q}=n,{sizeBody:L,lineBody:_}=Ze,{durationFast:D}=Nt,{bannerHeight:F,gutter:T,panelWidth:pe,panelMaxHeight:Be,panelSheetBreakpoint:oe,edgeTabWidth:q}=et,te=Q+12,{base:ie}=Qe,Me=is.control;return `
2
2
  :host {
3
3
  all: initial;
4
4
  font-family: ${B};
5
5
  font-size: ${L}px;
6
- line-height: ${A};
6
+ line-height: ${_};
7
7
  color: ${i};
8
8
  -webkit-font-smoothing: antialiased;
9
9
  -moz-osx-font-smoothing: grayscale;
10
10
  font-feature-settings: 'ss01', 'cv11'; /* nicer system-ui glyphs where supported */
11
- --mushi-ok: ${D};
11
+ --mushi-ok: ${A};
12
12
  /* SDK contract: the host element is always pass-through. Only the
13
13
  interactive surfaces (.mushi-trigger, .mushi-banner, .mushi-panel)
14
14
  opt back into pointer events so the widget never creates an
@@ -28,7 +28,7 @@
28
28
  position: fixed;
29
29
  width: ${Q}px;
30
30
  height: ${Q}px;
31
- border: 1px solid ${b};
31
+ border: 1px solid ${f};
32
32
  border-radius: ${Me}px;
33
33
  background: ${o};
34
34
  color: ${i};
@@ -40,10 +40,10 @@
40
40
  font-size: 22px;
41
41
  line-height: 1;
42
42
  box-shadow:
43
- 0 1px 0 ${m},
43
+ 0 1px 0 ${h},
44
44
  0 6px 14px -8px rgba(14,13,11,0.35),
45
45
  inset 0 -3px 0 ${d};
46
- transition: transform ${P}ms ${$}, box-shadow ${P}ms ${$};
46
+ transition: transform ${D}ms ${$}, box-shadow ${D}ms ${$};
47
47
  overflow: visible;
48
48
  isolation: isolate;
49
49
  }
@@ -62,14 +62,14 @@
62
62
  .mushi-trigger:hover {
63
63
  transform: translateY(-2px) rotate(-1.5deg);
64
64
  box-shadow:
65
- 0 1px 0 ${m},
65
+ 0 1px 0 ${h},
66
66
  0 14px 24px -10px rgba(14,13,11,0.45),
67
67
  inset 0 -3px 0 ${d};
68
68
  }
69
69
  .mushi-trigger:active {
70
70
  transform: translateY(0) rotate(0);
71
71
  box-shadow:
72
- 0 1px 0 ${m},
72
+ 0 1px 0 ${h},
73
73
  0 2px 4px -2px rgba(14,13,11,0.35),
74
74
  inset 0 -2px 0 ${d};
75
75
  }
@@ -82,9 +82,9 @@
82
82
  can compose with the hover transform without fighting it. Respects
83
83
  prefers-reduced-motion. */
84
84
  @keyframes mushi-trigger-pulse {
85
- 0% { box-shadow: 0 0 0 0 rgba(212, 67, 50, 0.55), 0 1px 0 ${m}, 0 10px 24px -14px rgba(14,13,11,0.45); }
86
- 70% { box-shadow: 0 0 0 16px rgba(212, 67, 50, 0), 0 1px 0 ${m}, 0 10px 24px -14px rgba(14,13,11,0.45); }
87
- 100% { box-shadow: 0 0 0 0 rgba(212, 67, 50, 0), 0 1px 0 ${m}, 0 10px 24px -14px rgba(14,13,11,0.45); }
85
+ 0% { box-shadow: 0 0 0 0 rgba(212, 67, 50, 0.55), 0 1px 0 ${h}, 0 10px 24px -14px rgba(14,13,11,0.45); }
86
+ 70% { box-shadow: 0 0 0 16px rgba(212, 67, 50, 0), 0 1px 0 ${h}, 0 10px 24px -14px rgba(14,13,11,0.45); }
87
+ 100% { box-shadow: 0 0 0 0 rgba(212, 67, 50, 0), 0 1px 0 ${h}, 0 10px 24px -14px rgba(14,13,11,0.45); }
88
88
  }
89
89
  .mushi-trigger-pulse {
90
90
  animation: mushi-trigger-pulse 800ms ${$} 3;
@@ -116,7 +116,7 @@
116
116
  text-orientation: upright;
117
117
  font-size: 16px;
118
118
  box-shadow:
119
- 0 1px 0 ${m},
119
+ 0 1px 0 ${h},
120
120
  0 10px 24px -14px rgba(14,13,11,0.45),
121
121
  inset -3px 0 0 ${d};
122
122
  }
@@ -129,7 +129,7 @@
129
129
  left: var(--mushi-left, 0);
130
130
  border-radius: 0 4px 4px 0;
131
131
  box-shadow:
132
- 0 1px 0 ${m},
132
+ 0 1px 0 ${h},
133
133
  0 10px 24px -14px rgba(14,13,11,0.45),
134
134
  inset 3px 0 0 ${d};
135
135
  }
@@ -158,7 +158,7 @@
158
158
  z-index: calc(var(--z, ${ie}) + 2);
159
159
  transition: none !important;
160
160
  box-shadow:
161
- 0 1px 0 ${m},
161
+ 0 1px 0 ${h},
162
162
  0 20px 40px -12px rgba(14,13,11,0.55),
163
163
  inset 0 -3px 0 ${d};
164
164
  opacity: 0.92;
@@ -176,13 +176,13 @@
176
176
  .mushi-panel {
177
177
  position: fixed;
178
178
  width: ${pe}px;
179
- max-width: calc(100vw - ${Zn.wide}px);
180
- max-height: min(${He}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
179
+ max-width: calc(100vw - ${os.wide}px);
180
+ max-height: min(${Be}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
181
181
  background: ${o};
182
- border: 1px solid ${b};
182
+ border: 1px solid ${f};
183
183
  border-radius: 6px;
184
184
  box-shadow:
185
- 0 1px 0 ${m},
185
+ 0 1px 0 ${h},
186
186
  0 24px 56px -20px rgba(14,13,11,0.30),
187
187
  0 8px 16px -8px rgba(14,13,11,0.20);
188
188
  overflow: hidden;
@@ -244,7 +244,7 @@
244
244
  }
245
245
  .mushi-outdated strong {
246
246
  display: block;
247
- font-family: ${_};
247
+ font-family: ${P};
248
248
  font-size: 10px;
249
249
  letter-spacing: 0.12em;
250
250
  text-transform: uppercase;
@@ -253,7 +253,7 @@
253
253
  .mushi-outdated span {
254
254
  display: block;
255
255
  margin-top: 3px;
256
- color: ${a};
256
+ color: ${l};
257
257
  }
258
258
 
259
259
  @keyframes mushi-stamp-in {
@@ -264,7 +264,7 @@
264
264
 
265
265
  .mushi-header {
266
266
  padding: 13px 18px 10px;
267
- border-bottom: 1px solid ${m};
267
+ border-bottom: 1px solid ${h};
268
268
  display: grid;
269
269
  grid-template-columns: auto 1fr auto;
270
270
  align-items: end;
@@ -278,7 +278,7 @@
278
278
  height: 22px;
279
279
  border-radius: 3px;
280
280
  background: ${d};
281
- color: ${k};
281
+ color: ${S};
282
282
  font-family: ${K};
283
283
  font-size: 14px;
284
284
  font-weight: 600;
@@ -294,11 +294,11 @@
294
294
  gap: 2px;
295
295
  }
296
296
  .mushi-header-eyebrow {
297
- font-family: ${_};
297
+ font-family: ${P};
298
298
  font-size: 10px;
299
299
  letter-spacing: 0.18em;
300
300
  text-transform: uppercase;
301
- color: ${a};
301
+ color: ${l};
302
302
  }
303
303
  .mushi-header h3 {
304
304
  font-family: ${K};
@@ -315,9 +315,9 @@
315
315
  gap: 6px;
316
316
  }
317
317
  .mushi-step-counter {
318
- font-family: ${_};
318
+ font-family: ${P};
319
319
  font-size: 11px;
320
- color: ${a};
320
+ color: ${l};
321
321
  letter-spacing: 0.06em;
322
322
  tab-size: 2ch;
323
323
  padding-top: 2px;
@@ -331,7 +331,7 @@
331
331
  border: none;
332
332
  cursor: pointer;
333
333
  padding: 2px 4px;
334
- color: ${a};
334
+ color: ${l};
335
335
  font-family: ${B};
336
336
  font-size: 16px;
337
337
  line-height: 1;
@@ -346,8 +346,8 @@
346
346
  padding: 3px 0;
347
347
  margin: 0 0 2px;
348
348
  min-height: 22px;
349
- color: ${a};
350
- font-family: ${_};
349
+ color: ${l};
350
+ font-family: ${P};
351
351
  font-size: 11px;
352
352
  font-weight: 500;
353
353
  letter-spacing: 0.06em;
@@ -382,10 +382,10 @@
382
382
  overflow-y: auto;
383
383
  flex: 1;
384
384
  scrollbar-width: thin;
385
- scrollbar-color: ${h} transparent;
385
+ scrollbar-color: ${m} transparent;
386
386
  }
387
387
  .mushi-body::-webkit-scrollbar { width: 6px; }
388
- .mushi-body::-webkit-scrollbar-thumb { background: ${h}; border-radius: 3px; }
388
+ .mushi-body::-webkit-scrollbar-thumb { background: ${m}; border-radius: 3px; }
389
389
 
390
390
  .mushi-option-btn {
391
391
  display: grid;
@@ -395,7 +395,7 @@
395
395
  width: 100%;
396
396
  padding: 11px 0;
397
397
  border: none;
398
- border-bottom: 1px solid ${m};
398
+ border-bottom: 1px solid ${h};
399
399
  background: transparent;
400
400
  cursor: pointer;
401
401
  color: inherit;
@@ -427,13 +427,13 @@
427
427
  }
428
428
  .mushi-option-desc {
429
429
  font-size: 12px;
430
- color: ${a};
430
+ color: ${l};
431
431
  letter-spacing: 0.005em;
432
432
  }
433
433
  .mushi-option-arrow {
434
- font-family: ${_};
434
+ font-family: ${P};
435
435
  font-size: 14px;
436
- color: ${h};
436
+ color: ${m};
437
437
  opacity: 0;
438
438
  transform: translateX(-4px);
439
439
  transition: opacity 220ms ${$}, transform 220ms ${$}, color 220ms ${$};
@@ -446,7 +446,7 @@
446
446
  .mushi-feature-entry,
447
447
  .mushi-reports-entry {
448
448
  padding-left: 10px;
449
- border-left: 2px solid ${h};
449
+ border-left: 2px solid ${m};
450
450
  transition: padding 220ms ${$}, color 220ms ${$}, border-color 220ms ${$};
451
451
  }
452
452
  .mushi-feature-entry:hover,
@@ -465,7 +465,7 @@
465
465
  align-items: center;
466
466
  padding: 12px 4px 12px 0;
467
467
  border: 0;
468
- border-bottom: 1px solid ${m};
468
+ border-bottom: 1px solid ${h};
469
469
  background: transparent;
470
470
  color: ${i};
471
471
  cursor: pointer;
@@ -499,7 +499,7 @@
499
499
  .mushi-report-status {
500
500
  display: inline-flex;
501
501
  align-items: center;
502
- font-family: ${_};
502
+ font-family: ${P};
503
503
  font-size: 10px;
504
504
  font-weight: 600;
505
505
  letter-spacing: 0.04em;
@@ -530,14 +530,14 @@
530
530
  }
531
531
  .mushi-status-closed,
532
532
  .mushi-status-unknown {
533
- color: ${a};
534
- background: ${z};
535
- border-color: ${b};
533
+ color: ${l};
534
+ background: ${W};
535
+ border-color: ${f};
536
536
  }
537
537
  .mushi-report-when {
538
- font-family: ${_};
538
+ font-family: ${P};
539
539
  font-size: 10px;
540
- color: ${h};
540
+ color: ${m};
541
541
  }
542
542
  .mushi-unread-badge {
543
543
  display: inline-flex;
@@ -547,7 +547,7 @@
547
547
  height: 18px;
548
548
  padding: 0 5px;
549
549
  border-radius: 999px;
550
- font-family: ${_};
550
+ font-family: ${P};
551
551
  font-size: 10px;
552
552
  font-weight: 700;
553
553
  color: ${v};
@@ -556,7 +556,7 @@
556
556
  .mushi-report-chevron {
557
557
  font-size: 18px;
558
558
  line-height: 1;
559
- color: ${h};
559
+ color: ${m};
560
560
  transition: color 180ms ${$}, transform 180ms ${$};
561
561
  }
562
562
  .mushi-report-row:hover .mushi-report-chevron,
@@ -565,7 +565,7 @@
565
565
  transform: translateX(2px);
566
566
  }
567
567
  .mushi-thread-summary {
568
- border-bottom: 1px solid ${m};
568
+ border-bottom: 1px solid ${h};
569
569
  padding-bottom: 10px;
570
570
  margin-bottom: 10px;
571
571
  }
@@ -585,7 +585,7 @@
585
585
  }
586
586
  .mushi-thread-comment {
587
587
  padding: 8px 10px;
588
- border: 1px solid ${m};
588
+ border: 1px solid ${h};
589
589
  background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
590
590
  }
591
591
  .mushi-thread-comment.reporter {
@@ -594,7 +594,7 @@
594
594
  }
595
595
  .mushi-thread-comment strong {
596
596
  display: block;
597
- font-family: ${_};
597
+ font-family: ${P};
598
598
  font-size: 10px;
599
599
  letter-spacing: 0.04em;
600
600
  margin-bottom: 3px;
@@ -603,7 +603,7 @@
603
603
  .mushi-muted,
604
604
  .mushi-error-inline {
605
605
  font-size: 12px;
606
- color: ${a};
606
+ color: ${l};
607
607
  line-height: 1.45;
608
608
  }
609
609
  .mushi-error-inline { color: ${d}; }
@@ -640,10 +640,10 @@
640
640
  }
641
641
  .mushi-example-chip {
642
642
  padding: 4px 10px;
643
- border: 1px solid ${m};
643
+ border: 1px solid ${h};
644
644
  border-radius: 12px;
645
645
  background: transparent;
646
- color: ${a};
646
+ color: ${l};
647
647
  font-family: ${B};
648
648
  font-size: 11px;
649
649
  cursor: pointer;
@@ -652,7 +652,7 @@
652
652
  }
653
653
  .mushi-example-chip:hover {
654
654
  color: ${i};
655
- border-color: ${a};
655
+ border-color: ${l};
656
656
  background: ${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};
657
657
  }
658
658
  .mushi-example-chip:focus-visible {
@@ -668,10 +668,10 @@
668
668
  position: absolute;
669
669
  bottom: 4px;
670
670
  right: 0;
671
- font-family: ${_};
671
+ font-family: ${P};
672
672
  font-size: 10px;
673
673
  letter-spacing: 0.04em;
674
- color: ${h};
674
+ color: ${m};
675
675
  pointer-events: none;
676
676
  transition: color 200ms ${$};
677
677
  }
@@ -681,7 +681,7 @@
681
681
  min-height: 96px;
682
682
  padding: 8px 0 10px;
683
683
  border: none;
684
- border-bottom: 1px solid ${b};
684
+ border-bottom: 1px solid ${f};
685
685
  background: transparent;
686
686
  color: ${i};
687
687
  font-family: ${B};
@@ -692,7 +692,7 @@
692
692
  transition: border-color 200ms ${$};
693
693
  }
694
694
  .mushi-textarea::placeholder {
695
- color: ${h};
695
+ color: ${m};
696
696
  font-style: italic;
697
697
  }
698
698
  .mushi-textarea:focus { border-bottom-color: ${d}; }
@@ -708,11 +708,11 @@
708
708
  align-items: center;
709
709
  gap: 6px;
710
710
  padding: 5px 10px;
711
- border: 1px solid ${b};
711
+ border: 1px solid ${f};
712
712
  border-radius: 3px;
713
713
  background: transparent;
714
- color: ${a};
715
- font-family: ${_};
714
+ color: ${l};
715
+ font-family: ${P};
716
716
  font-size: 11px;
717
717
  letter-spacing: 0.04em;
718
718
  text-transform: uppercase;
@@ -768,15 +768,15 @@
768
768
  max-width: 100%;
769
769
  max-height: 160px;
770
770
  width: auto;
771
- border: 1px solid ${b};
771
+ border: 1px solid ${f};
772
772
  border-radius: 3px;
773
773
  object-fit: contain;
774
774
  align-self: flex-start;
775
775
  }
776
776
  .mushi-screenshot-hint {
777
777
  margin: 0;
778
- color: ${a};
779
- font-family: ${_};
778
+ color: ${l};
779
+ font-family: ${P};
780
780
  font-size: 10.5px;
781
781
  line-height: 1.4;
782
782
  letter-spacing: 0.02em;
@@ -784,7 +784,7 @@
784
784
  .mushi-identified-user {
785
785
  margin: 8px 0 0;
786
786
  font-size: 11.5px;
787
- color: ${a};
787
+ color: ${l};
788
788
  line-height: 1.4;
789
789
  }
790
790
  .mushi-identified-user strong {
@@ -816,18 +816,18 @@
816
816
 
817
817
  .mushi-footer {
818
818
  padding: 14px 22px 16px;
819
- border-top: 1px solid ${m};
819
+ border-top: 1px solid ${h};
820
820
  display: flex;
821
821
  align-items: center;
822
822
  justify-content: space-between;
823
823
  gap: 12px;
824
824
  }
825
825
  .mushi-footer-hint {
826
- font-family: ${_};
826
+ font-family: ${P};
827
827
  font-size: 10px;
828
828
  letter-spacing: 0.10em;
829
829
  text-transform: uppercase;
830
- color: ${h};
830
+ color: ${m};
831
831
  }
832
832
  .mushi-submit {
833
833
  position: relative;
@@ -838,8 +838,8 @@
838
838
  border: 1px solid ${d};
839
839
  border-radius: 3px;
840
840
  background: ${d};
841
- color: ${k};
842
- font-family: ${_};
841
+ color: ${S};
842
+ font-family: ${P};
843
843
  font-size: 11px;
844
844
  letter-spacing: 0.16em;
845
845
  text-transform: uppercase;
@@ -880,9 +880,9 @@
880
880
 
881
881
  .mushi-brand-footer {
882
882
  padding: 9px 14px 11px;
883
- border-top: 1px solid ${m};
884
- color: ${h};
885
- font-family: ${_};
883
+ border-top: 1px solid ${h};
884
+ color: ${m};
885
+ font-family: ${P};
886
886
  font-size: 9px;
887
887
  letter-spacing: 0.16em;
888
888
  text-align: center;
@@ -895,8 +895,8 @@
895
895
  justify-content: center;
896
896
  gap: 8px;
897
897
  padding: 10px 22px 14px;
898
- color: ${h};
899
- font-family: ${_};
898
+ color: ${m};
899
+ font-family: ${P};
900
900
  font-size: 11px;
901
901
  letter-spacing: 0.10em;
902
902
  }
@@ -906,7 +906,7 @@
906
906
  gap: 4px;
907
907
  transition: color 200ms ${$};
908
908
  }
909
- .mushi-step-num.done { color: ${a}; text-decoration: line-through; text-decoration-color: ${h}; }
909
+ .mushi-step-num.done { color: ${l}; text-decoration: line-through; text-decoration-color: ${m}; }
910
910
  .mushi-step-num.active {
911
911
  color: ${d};
912
912
  font-family: ${K};
@@ -914,7 +914,7 @@
914
914
  font-weight: 600;
915
915
  letter-spacing: 0;
916
916
  }
917
- .mushi-step-sep { width: 14px; height: 1px; background: ${m}; }
917
+ .mushi-step-sep { width: 14px; height: 1px; background: ${h}; }
918
918
 
919
919
  .mushi-success {
920
920
  text-align: center;
@@ -963,11 +963,11 @@
963
963
  margin-bottom: 4px;
964
964
  }
965
965
  .mushi-success-meta {
966
- font-family: ${_};
966
+ font-family: ${P};
967
967
  font-size: 11px;
968
968
  letter-spacing: 0.10em;
969
969
  text-transform: uppercase;
970
- color: ${a};
970
+ color: ${l};
971
971
  }
972
972
 
973
973
  /* \u2500\u2500 Two-way receipt (success step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@@ -989,15 +989,15 @@
989
989
  align-items: center;
990
990
  justify-content: center;
991
991
  gap: 8px;
992
- font-family: ${_};
992
+ font-family: ${P};
993
993
  font-size: 11px;
994
994
  letter-spacing: 0.05em;
995
- color: ${a};
995
+ color: ${l};
996
996
  }
997
997
  .mushi-success-receipt-label {
998
998
  text-transform: uppercase;
999
999
  letter-spacing: 0.10em;
1000
- color: ${a};
1000
+ color: ${l};
1001
1001
  }
1002
1002
  .mushi-success-receipt-id {
1003
1003
  display: inline-flex;
@@ -1006,9 +1006,9 @@
1006
1006
  padding: 3px 8px;
1007
1007
  border-radius: 4px;
1008
1008
  background: transparent;
1009
- border: 1px dashed ${m};
1009
+ border: 1px dashed ${h};
1010
1010
  color: inherit;
1011
- font-family: ${_};
1011
+ font-family: ${P};
1012
1012
  font-size: 12px;
1013
1013
  letter-spacing: 0.02em;
1014
1014
  cursor: pointer;
@@ -1034,7 +1034,7 @@
1034
1034
  border-radius: 4px;
1035
1035
  background: ${d};
1036
1036
  color: ${I};
1037
- font-family: ${_};
1037
+ font-family: ${P};
1038
1038
  font-size: 11px;
1039
1039
  letter-spacing: 0.10em;
1040
1040
  text-transform: uppercase;
@@ -1050,7 +1050,7 @@
1050
1050
  width: 11px;
1051
1051
  height: 11px;
1052
1052
  border-radius: 50%;
1053
- border: 1.5px solid ${m};
1053
+ border: 1.5px solid ${h};
1054
1054
  border-top-color: ${d};
1055
1055
  animation: mushi-receipt-spin 0.8s linear infinite;
1056
1056
  }
@@ -1058,7 +1058,7 @@
1058
1058
  to { transform: rotate(360deg); }
1059
1059
  }
1060
1060
  .mushi-success-receipt-hint {
1061
- color: ${a};
1061
+ color: ${l};
1062
1062
  font-style: italic;
1063
1063
  }
1064
1064
  .mushi-success-receipt-warn {
@@ -1068,7 +1068,7 @@
1068
1068
  display: block;
1069
1069
  margin: 12px auto 0;
1070
1070
  font-size: 12px;
1071
- font-family: ${_};
1071
+ font-family: ${P};
1072
1072
  color: ${d};
1073
1073
  text-decoration: underline;
1074
1074
  text-underline-offset: 2px;
@@ -1084,7 +1084,7 @@
1084
1084
  font-size: 12px;
1085
1085
  line-height: 1.45;
1086
1086
  text-align: center;
1087
- color: ${a};
1087
+ color: ${l};
1088
1088
  max-width: 260px;
1089
1089
  }
1090
1090
  .mushi-success-sla-default {
@@ -1106,13 +1106,13 @@
1106
1106
  border-left: 2px solid ${d};
1107
1107
  color: ${d};
1108
1108
  font-size: 12px;
1109
- font-family: ${_};
1109
+ font-family: ${P};
1110
1110
  letter-spacing: 0.02em;
1111
1111
  }
1112
1112
 
1113
1113
  /* \u2500\u2500 Rewards nudge (category step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1114
1114
  .mushi-rewards-nudge {
1115
- border-top: 1px solid ${m};
1115
+ border-top: 1px solid ${h};
1116
1116
  padding: 10px 0 4px;
1117
1117
  margin-top: 6px;
1118
1118
  }
@@ -1129,20 +1129,20 @@
1129
1129
  flex-shrink: 0;
1130
1130
  }
1131
1131
  .mushi-rewards-tier-name {
1132
- font-family: ${_};
1132
+ font-family: ${P};
1133
1133
  font-size: 11px;
1134
1134
  letter-spacing: 0.08em;
1135
1135
  text-transform: uppercase;
1136
1136
  color: ${i};
1137
1137
  }
1138
1138
  .mushi-rewards-pts-count {
1139
- font-family: ${_};
1139
+ font-family: ${P};
1140
1140
  font-size: 11px;
1141
- color: ${a};
1141
+ color: ${l};
1142
1142
  margin-right: auto;
1143
1143
  }
1144
1144
  .mushi-rewards-pts-earn {
1145
- font-family: ${_};
1145
+ font-family: ${P};
1146
1146
  font-size: 10px;
1147
1147
  color: ${d};
1148
1148
  letter-spacing: 0.04em;
@@ -1150,7 +1150,7 @@
1150
1150
  }
1151
1151
  .mushi-tier-bar-track {
1152
1152
  height: 3px;
1153
- background: ${b};
1153
+ background: ${f};
1154
1154
  border-radius: 2px;
1155
1155
  overflow: hidden;
1156
1156
  margin-bottom: 5px;
@@ -1162,9 +1162,9 @@
1162
1162
  transition: width 600ms ${$};
1163
1163
  }
1164
1164
  .mushi-rewards-next-label {
1165
- font-family: ${_};
1165
+ font-family: ${P};
1166
1166
  font-size: 10px;
1167
- color: ${a};
1167
+ color: ${l};
1168
1168
  text-align: right;
1169
1169
  letter-spacing: 0.02em;
1170
1170
  }
@@ -1173,11 +1173,11 @@
1173
1173
  .mushi-success-rewards {
1174
1174
  margin-top: 14px;
1175
1175
  padding-top: 12px;
1176
- border-top: 1px solid ${m};
1176
+ border-top: 1px solid ${h};
1177
1177
  width: 100%;
1178
1178
  }
1179
1179
  .mushi-success-pts-award {
1180
- font-family: ${_};
1180
+ font-family: ${P};
1181
1181
  font-size: 22px;
1182
1182
  font-weight: 700;
1183
1183
  color: ${d};
@@ -1223,8 +1223,8 @@
1223
1223
  padding: 1px 6px;
1224
1224
  border-radius: 3px;
1225
1225
  background: ${d};
1226
- color: ${k};
1227
- font-family: ${_};
1226
+ color: ${S};
1227
+ font-family: ${P};
1228
1228
  font-size: 9px;
1229
1229
  font-weight: 700;
1230
1230
  letter-spacing: 0.14em;
@@ -1236,14 +1236,14 @@
1236
1236
 
1237
1237
  .mushi-beta-msg {
1238
1238
  font-size: 11px;
1239
- color: ${a};
1239
+ color: ${l};
1240
1240
  line-height: 1.45;
1241
1241
  }
1242
1242
 
1243
1243
  .mushi-beta-contact-hint {
1244
1244
  font-size: 10px;
1245
- color: ${h};
1246
- font-family: ${_};
1245
+ color: ${m};
1246
+ font-family: ${P};
1247
1247
  letter-spacing: 0.06em;
1248
1248
  }
1249
1249
 
@@ -1348,7 +1348,7 @@
1348
1348
  justify-content: center;
1349
1349
  gap: 10px;
1350
1350
  padding: 0 calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
1351
- font-family: ${_};
1351
+ font-family: ${P};
1352
1352
  font-size: 12px;
1353
1353
  letter-spacing: 0.04em;
1354
1354
  white-space: nowrap;
@@ -1408,16 +1408,16 @@
1408
1408
  backdrop-filter: blur(14px);
1409
1409
  -webkit-backdrop-filter: blur(14px);
1410
1410
  color: ${i};
1411
- border-bottom: 1px solid ${b};
1411
+ border-bottom: 1px solid ${f};
1412
1412
  }
1413
1413
  .mushi-banner.subtle.bottom {
1414
- border-top: 1px solid ${b};
1414
+ border-top: 1px solid ${f};
1415
1415
  border-bottom: none;
1416
1416
  }
1417
1417
  .mushi-banner.subtle .mushi-banner-btn {
1418
1418
  background: ${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};
1419
1419
  color: ${i};
1420
- border: 1px solid ${b};
1420
+ border: 1px solid ${f};
1421
1421
  }
1422
1422
  .mushi-banner.subtle .mushi-banner-btn:hover {
1423
1423
  background: ${s?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};
@@ -1469,7 +1469,7 @@
1469
1469
  background: rgba(255,255,255,0.14);
1470
1470
  }
1471
1471
  .mushi-banner.subtle .mushi-banner-pill {
1472
- border-color: ${b};
1472
+ border-color: ${f};
1473
1473
  background: ${s?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};
1474
1474
  }
1475
1475
  .mushi-banner-message {
@@ -1575,7 +1575,7 @@
1575
1575
  border: none;
1576
1576
  cursor: pointer;
1577
1577
  font-size: 11px;
1578
- font-family: ${_};
1578
+ font-family: ${P};
1579
1579
  opacity: 0.75;
1580
1580
  color: inherit;
1581
1581
  padding: 2px 6px;
@@ -1620,14 +1620,14 @@
1620
1620
  .mushi-community-btn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1621
1621
  .mushi-section-label{
1622
1622
  margin:0 0 6px;
1623
- font-family:${_};
1623
+ font-family:${P};
1624
1624
  font-size:11px;
1625
1625
  letter-spacing:0.06em;
1626
1626
  text-transform:uppercase;
1627
- color:${h};
1627
+ color:${m};
1628
1628
  }
1629
1629
  .mushi-more-nav{margin-top:4px}
1630
- .mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${m};padding-top:2px}
1630
+ .mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${h};padding-top:2px}
1631
1631
  .mushi-more-nav-link{align-self:flex-start;margin:6px 0 2px;padding:0}
1632
1632
  /* \u2500\u2500 "More issue types \u2192" toggle (progressive disclosure) \u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1633
1633
  .mushi-more-toggle {
@@ -1637,10 +1637,10 @@
1637
1637
  width: 100%;
1638
1638
  padding: 11px 0;
1639
1639
  border: none;
1640
- border-top: 1px dashed ${m};
1640
+ border-top: 1px dashed ${h};
1641
1641
  background: transparent;
1642
1642
  cursor: pointer;
1643
- color: ${a};
1643
+ color: ${l};
1644
1644
  font-family: ${B};
1645
1645
  font-size: 13px;
1646
1646
  text-align: left;
@@ -1650,11 +1650,11 @@
1650
1650
  .mushi-more-toggle:hover .mushi-more-toggle-arrow { transform: translateX(3px); }
1651
1651
  .mushi-more-toggle-text { flex: 1; }
1652
1652
  .mushi-more-toggle-count {
1653
- font-family: ${_};
1653
+ font-family: ${P};
1654
1654
  font-size: 10px;
1655
1655
  letter-spacing: 0.08em;
1656
1656
  text-transform: uppercase;
1657
- color: ${h};
1657
+ color: ${m};
1658
1658
  background: ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"};
1659
1659
  padding: 2px 6px;
1660
1660
  border-radius: 10px;
@@ -1679,7 +1679,7 @@
1679
1679
  .mushi-categories-expanded {
1680
1680
  animation: mushi-step-in 180ms ease both;
1681
1681
  }
1682
- .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${d};font-size:12px;font-family:${_};text-decoration:underline;text-underline-offset:2px}
1682
+ .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${d};font-size:12px;font-family:${P};text-decoration:underline;text-underline-offset:2px}
1683
1683
  .mushi-link-btn:hover{opacity:0.8}
1684
1684
  .mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${d};outline-offset:2px;border-radius:2px}
1685
1685
  .mushi-nav-item{display:block;width:100%;text-align:left;background:${s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"};border:1px solid ${s?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"};border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;font-size:13px;color:${i};transition:background .15s,border-color .15s}
@@ -1688,11 +1688,11 @@
1688
1688
  .mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${g};color:${v};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
1689
1689
  .mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}
1690
1690
  .mushi-account-info strong{font:700 14px/1.3 inherit;color:${i}}
1691
- .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${u};font-family:${_}}
1691
+ .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${u};font-family:${P}}
1692
1692
  .mushi-account-rank{display:block}
1693
1693
  .mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}
1694
1694
  .mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}
1695
- .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${l};overflow:hidden;flex-shrink:0}
1695
+ .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${a};overflow:hidden;flex-shrink:0}
1696
1696
  .mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}
1697
1697
  .mushi-app-icon-initials{font-size:9px;font-weight:700;color:${u};line-height:1}
1698
1698
  .mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}
@@ -1703,9 +1703,9 @@
1703
1703
  /* \u2500\u2500 Assistant tab (P5) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1704
1704
  .mushi-assistant{display:flex;flex-direction:column;height:100%;min-height:0;max-height:60vh}
1705
1705
  .mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}
1706
- .mushi-assistant-greeting{font:400 14px/1.5 ${B};color:${a};padding:6px 2px}
1706
+ .mushi-assistant-greeting{font:400 14px/1.5 ${B};color:${l};padding:6px 2px}
1707
1707
  .mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
1708
- .mushi-assistant-chip{background:${g};color:${v};border:1px solid ${b};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${B};transition:background .15s}
1708
+ .mushi-assistant-chip{background:${g};color:${v};border:1px solid ${f};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${B};transition:background .15s}
1709
1709
  .mushi-assistant-chip:hover{background:${s?"rgba(255,90,71,0.22)":"rgba(224,60,44,0.14)"}}
1710
1710
  .mushi-assistant-chip:focus-visible{outline:2px solid ${d};outline-offset:2px}
1711
1711
  .mushi-assistant-msg{max-width:85%;padding:8px 12px;border-radius:12px;font:400 14px/1.45 ${B};white-space:pre-wrap;word-break:break-word}
@@ -1713,81 +1713,81 @@
1713
1713
  .mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${i};border-bottom-left-radius:4px}
1714
1714
  .mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}
1715
1715
  .mushi-assistant-error{align-self:flex-start;color:${R};font-size:12px;padding:4px 2px}
1716
- .mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${m};padding-top:8px}
1717
- .mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${b};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${B};background:${o};color:${i}}
1716
+ .mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${h};padding-top:8px}
1717
+ .mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${f};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${B};background:${o};color:${i}}
1718
1718
  .mushi-assistant-input:focus-visible{outline:2px solid ${d};outline-offset:1px}
1719
1719
  .mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${d};color:${I};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
1720
1720
  .mushi-assistant-submit:hover{transform:translateY(-1px)}
1721
1721
  .mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}
1722
1722
  .mushi-assistant-submit:focus-visible{outline:2px solid ${d};outline-offset:2px}
1723
- `}var De="@mushi-mushi/web",fe="1.22.1";var Ht={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},gr="Feature request";function br(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function gs(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function Ot(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function Bt(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 s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let l=Math.floor(o/24);if(l<7)return `${l}d ago`;let i=Math.floor(l/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function yr(t){return t<10?`0${t}`:String(t)}var vr=3,Nt={category:1,intent:2,details:3};function bs(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function f(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function ys(t){let e=t.appDomain??os({project_slug:t.appSlug??""}),r=f(as(t.appName)),n=ss({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="${f(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${f(e??t.appName)}">
1724
- <img class="mushi-app-icon-img" src="${f(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1723
+ `}var De="@mushi-mushi/web",fe="1.22.2";var Ft={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Er="Feature request";function Rr(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function ks(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function qt(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function jt(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 s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let i=Math.floor(a/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Cr(t){return t<10?`0${t}`:String(t)}var Tr=3,Wt={category:1,intent:2,details:3};function Es(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function b(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Rs(t){let e=t.appDomain??ps({project_slug:t.appSlug??""}),r=b(ms(t.appName)),n=ds({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="${b(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${b(e??t.appName)}">
1724
+ <img class="mushi-app-icon-img" src="${b(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1725
1725
  <span class="mushi-app-icon-initials" hidden>${r}</span>
1726
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function vs(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 s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,l=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=l,r.onload=()=>{is(r)&&l();};});}function ws(t){switch(t.step){case "category":return ji(t);case "intent":return Qi(t);case "details":return ea(t);case "success":return ta(t);case "reports":return Ki(t);case "report-detail":return Zi(t);case "leaderboard":return Yi(t);case "roadmap":return Gi(t);case "account":return Xi(t);case "cross-app-reports":return Ji(t);case "assistant":return Ui(t)}}function Ui(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],l=t.assistantTurns.length===0?`<div class="mushi-assistant-greeting">${f(n)}</div>
1727
- ${s.length?`<div class="mushi-assistant-suggestions">${s.map(h=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${f(h)}">${f(h)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(h=>{let u=h.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",m=h.options&&h.options.length?`<div class="mushi-assistant-suggestions">${h.options.map(b=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${f(b)}">${f(b)}</button>`).join("")}</div>`:"";return `<div class="mushi-assistant-msg ${u}">${f(h.text)}</div>${m}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${f(e.assistant.thinking)}</div>`:"",a=t.assistantError?`<div class="mushi-assistant-error" role="alert">${f(t.assistantError)}</div>`:"";return `
1726
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Cs(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 s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,a=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{hs(r)&&a();};});}function Ms(t){switch(t.step){case "category":return Ki(t);case "intent":return na(t);case "details":return sa(t);case "success":return oa(t);case "reports":return Ji(t);case "report-detail":return ra(t);case "leaderboard":return Qi(t);case "roadmap":return Zi(t);case "account":return ea(t);case "cross-app-reports":return ta(t);case "assistant":return Wi(t)}}function Wi(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],a=t.assistantTurns.length===0?`<div class="mushi-assistant-greeting">${b(n)}</div>
1727
+ ${s.length?`<div class="mushi-assistant-suggestions">${s.map(m=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${b(m)}">${b(m)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(m=>{let u=m.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",h=m.options&&m.options.length?`<div class="mushi-assistant-suggestions">${m.options.map(f=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${b(f)}">${b(f)}</button>`).join("")}</div>`:"";return `<div class="mushi-assistant-msg ${u}">${b(m.text)}</div>${h}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${b(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${b(t.assistantError)}</div>`:"";return `
1728
1728
  ${ge(t,{title:r,showBack:true})}
1729
1729
  <div class="mushi-assistant">
1730
1730
  <div class="mushi-assistant-log">
1731
- ${l}
1732
- ${i}
1733
1731
  ${a}
1732
+ ${i}
1733
+ ${l}
1734
1734
  </div>
1735
1735
  <form class="mushi-assistant-form" data-action="assistant-send">
1736
1736
  <textarea
1737
1737
  class="mushi-assistant-input"
1738
1738
  rows="1"
1739
- placeholder="${f(e.assistant.inputPlaceholder)}"
1739
+ placeholder="${b(e.assistant.inputPlaceholder)}"
1740
1740
  ${t.assistantSending?"disabled":""}
1741
1741
  ></textarea>
1742
- <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${f(e.assistant.sendAriaLabel)}">\u2191</button>
1742
+ <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${b(e.assistant.sendAriaLabel)}">\u2191</button>
1743
1743
  </form>
1744
1744
  </div>
1745
- `}function Ss(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1745
+ `}function $s(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1746
1746
  <div class="mushi-outdated" role="status">
1747
- <strong>Mushi SDK ${f(r)}</strong>
1748
- ${e?`latest is ${f(e)}.`:"needs attention."}
1749
- ${s?`<span>${f(s)}</span>`:""}
1747
+ <strong>Mushi SDK ${b(r)}</strong>
1748
+ ${e?`latest is ${b(e)}.`:"needs attention."}
1749
+ ${s?`<span>${b(s)}</span>`:""}
1750
1750
  </div>
1751
- `}function ks(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${f(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function ge(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:l}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${f(r.widget.back)}">\u2190 ${f(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${f(l??"Mushi \xB7 Report")}</span>`,a=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${vr}"><b>${yr(o)}</b> / ${yr(vr)}</span>`:"";return `
1751
+ `}function Ls(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${b(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function ge(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:a}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${b(r.widget.back)}">\u2190 ${b(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${b(a??"Mushi \xB7 Report")}</span>`,l=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${Tr}"><b>${Cr(o)}</b> / ${Cr(Tr)}</span>`:"";return `
1752
1752
  <div class="mushi-header">
1753
- <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${f(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
1753
+ <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${b(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
1754
1754
  <div class="mushi-header-titles">
1755
1755
  ${i}
1756
1756
  <h3>${n}</h3>
1757
1757
  </div>
1758
1758
  <div class="mushi-header-meta">
1759
- ${a}
1760
- <button type="button" class="mushi-close" data-action="close" aria-label="${f(r.widget.close)}">\u2715</button>
1759
+ ${l}
1760
+ <button type="button" class="mushi-close" data-action="close" aria-label="${b(r.widget.close)}">\u2715</button>
1761
1761
  </div>
1762
1762
  </div>
1763
- `}function Fi(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function qi(t){let e=t.locale,r=e.step1.moreNav,n=Fi(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),l=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1763
+ `}function zi(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function Vi(t){let e=t.locale,r=e.step1.moreNav,n=zi(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),a=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1764
1764
  <span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
1765
1765
  <div class="mushi-option-text">
1766
- <span class="mushi-option-label">${f(l)}</span>
1767
- <span class="mushi-option-desc">${f(r.yourReportsDesc)}</span>
1766
+ <span class="mushi-option-label">${b(a)}</span>
1767
+ <span class="mushi-option-desc">${b(r.yourReportsDesc)}</span>
1768
1768
  </div>
1769
1769
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1770
1770
  </button>`];t.callbacks.onFeatureBoardRequest&&i.push(`
1771
1771
  <button type="button" class="mushi-option-btn" data-action="roadmap">
1772
1772
  <span class="mushi-option-icon" aria-hidden="true">\u{1F5F3}\uFE0F</span>
1773
1773
  <div class="mushi-option-text">
1774
- <span class="mushi-option-label">${f(r.communityIdeas)}</span>
1775
- <span class="mushi-option-desc">${f(r.communityIdeasDesc)}</span>
1774
+ <span class="mushi-option-label">${b(r.communityIdeas)}</span>
1775
+ <span class="mushi-option-desc">${b(r.communityIdeasDesc)}</span>
1776
1776
  </div>
1777
1777
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1778
1778
  </button>`),t.callbacks.assistantEnabled&&i.push(`
1779
1779
  <button type="button" class="mushi-option-btn" data-action="assistant">
1780
1780
  <span class="mushi-option-icon" aria-hidden="true">\u{1F4AC}</span>
1781
1781
  <div class="mushi-option-text">
1782
- <span class="mushi-option-label">${f(t.callbacks.assistantLabel||e.assistant.defaultLabel)}</span>
1783
- <span class="mushi-option-desc">${f(e.assistant.hubDescription)}</span>
1782
+ <span class="mushi-option-label">${b(t.callbacks.assistantLabel||e.assistant.defaultLabel)}</span>
1783
+ <span class="mushi-option-desc">${b(e.assistant.hubDescription)}</span>
1784
1784
  </div>
1785
1785
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1786
1786
  </button>`),t.rewardsState&&i.push(`
1787
- <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${f(r.leaderboard)}</button>`),i.push(`
1787
+ <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${b(r.leaderboard)}</button>`),i.push(`
1788
1788
  <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
1789
- ${t.testerInfo?`\u{1F464} ${f(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${f(r.joinCommunity)}`}
1790
- </button>`);let a=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1789
+ ${t.testerInfo?`\u{1F464} ${b(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${b(r.joinCommunity)}`}
1790
+ </button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1791
1791
  <div class="mushi-more-nav">
1792
1792
  <button
1793
1793
  type="button"
@@ -1795,55 +1795,55 @@
1795
1795
  data-action="toggle-more-nav"
1796
1796
  aria-expanded="${t.showMoreNav?"true":"false"}"
1797
1797
  >
1798
- <span class="mushi-more-toggle-text">${f(s)}</span>
1798
+ <span class="mushi-more-toggle-text">${b(s)}</span>
1799
1799
  <span class="mushi-more-toggle-arrow" aria-hidden="true">${t.showMoreNav?"\u25BE":"\u25B8"}</span>
1800
1800
  </button>
1801
- ${a}
1801
+ ${l}
1802
1802
  </div>
1803
- `}function ji(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(b=>({id:b.id,icon:b.icon??"\u{1F4AC}",label:b.label,desc:b.description??""})):["bug","slow","visual","confusing","other"].map(b=>({id:b,icon:Ht[b],label:e.step1.categories[b],desc:e.step1.categoryDescriptions[b]})),n=({id:b,icon:d,label:g,desc:v})=>`
1804
- <button type="button" class="mushi-option-btn" data-category="${f(b)}" role="radio" aria-checked="false">
1805
- <span class="mushi-option-icon" aria-hidden="true">${f(d)}</span>
1803
+ `}function Ki(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(f=>({id:f.id,icon:f.icon??"\u{1F4AC}",label:f.label,desc:f.description??""})):["bug","slow","visual","confusing","other"].map(f=>({id:f,icon:Ft[f],label:e.step1.categories[f],desc:e.step1.categoryDescriptions[f]})),n=({id:f,icon:d,label:g,desc:v})=>`
1804
+ <button type="button" class="mushi-option-btn" data-category="${b(f)}" role="radio" aria-checked="false">
1805
+ <span class="mushi-option-icon" aria-hidden="true">${b(d)}</span>
1806
1806
  <div class="mushi-option-text">
1807
- <span class="mushi-option-label">${f(g)}</span>
1808
- ${v?`<span class="mushi-option-desc">${f(v)}</span>`:""}
1807
+ <span class="mushi-option-label">${b(g)}</span>
1808
+ ${v?`<span class="mushi-option-desc">${b(v)}</span>`:""}
1809
1809
  </div>
1810
1810
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1811
1811
  </button>
1812
- `,s=t.config.categories&&t.config.categories.length>0,o=1,l=s?r:r.slice(0,o),i=s?[]:r.slice(o),a=i.length>0,h=l.map(n).join(""),u=i.map(n).join(""),m=a?t.showAllCategories?`<div class="mushi-categories-expanded">${u}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1812
+ `,s=t.config.categories&&t.config.categories.length>0,o=1,a=s?r:r.slice(0,o),i=s?[]:r.slice(o),l=i.length>0,m=a.map(n).join(""),u=i.map(n).join(""),h=l?t.showAllCategories?`<div class="mushi-categories-expanded">${u}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1813
1813
  <span class="mushi-more-toggle-text">More issue types</span>
1814
1814
  <span class="mushi-more-toggle-count">${i.length} more</span>
1815
1815
  <span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
1816
1816
  </button>`:"";return `
1817
- ${ge(t,{title:e.step1.heading,step:Nt.category})}
1818
- ${t.config.betaMode?.enabled?Vi(t):""}
1819
- <div class="mushi-body" role="radiogroup" aria-label="${f(e.step1.heading)}">
1820
- <p class="mushi-section-label">${f(e.step1.reportSectionLabel)}</p>
1821
- ${zi(t)}
1822
- ${h}
1817
+ ${ge(t,{title:e.step1.heading,step:Wt.category})}
1818
+ ${t.config.betaMode?.enabled?Xi(t):""}
1819
+ <div class="mushi-body" role="radiogroup" aria-label="${b(e.step1.heading)}">
1820
+ <p class="mushi-section-label">${b(e.step1.reportSectionLabel)}</p>
1821
+ ${Gi(t)}
1823
1822
  ${m}
1824
- ${t.rewardsState?sa(t):""}
1825
- ${qi(t)}
1823
+ ${h}
1824
+ ${t.rewardsState?la(t):""}
1825
+ ${Vi(t)}
1826
1826
  </div>
1827
- `}function zi(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1827
+ `}function Gi(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1828
1828
  <button
1829
1829
  type="button"
1830
1830
  class="mushi-option-btn mushi-feature-entry"
1831
1831
  data-action="feature-request"
1832
- aria-label="${f(n)}"
1832
+ aria-label="${b(n)}"
1833
1833
  >
1834
1834
  <span class="mushi-option-icon" aria-hidden="true">\u2728</span>
1835
1835
  <div class="mushi-option-text">
1836
- <span class="mushi-option-label">${f(n)}</span>
1837
- <span class="mushi-option-desc">${f(s)}</span>
1836
+ <span class="mushi-option-label">${b(n)}</span>
1837
+ <span class="mushi-option-desc">${b(s)}</span>
1838
1838
  </div>
1839
1839
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1840
1840
  </button>
1841
- `}function Wi(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(o=>`<li>\u2022 ${f(o)}</li>`).join("");return `
1841
+ `}function Yi(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(o=>`<li>\u2022 ${b(o)}</li>`).join("");return `
1842
1842
  <details class="mushi-changelog">
1843
- <summary class="mushi-changelog-summary">${r.date?`What\u2019s new in ${f(r.version)} \xB7 ${f(r.date)}`:`What\u2019s new in ${f(r.version)}`}</summary>
1843
+ <summary class="mushi-changelog-summary">${r.date?`What\u2019s new in ${b(r.version)} \xB7 ${b(r.date)}`:`What\u2019s new in ${b(r.version)}`}</summary>
1844
1844
  <ul class="mushi-changelog-list">${n}</ul>
1845
1845
  </details>
1846
- `}function Vi(t){let e=t.config.betaMode,r=f(e.appName??"This app"),n=e.message?f(e.message):`${r} is in early development`,s=e.contactEmail?f(e.contactEmail):null,o=e.perks??[];return `
1846
+ `}function Xi(t){let e=t.config.betaMode,r=b(e.appName??"This app"),n=e.message?b(e.message):`${r} is in early development`,s=e.contactEmail?b(e.contactEmail):null,o=e.perks??[];return `
1847
1847
  <div class="mushi-beta-strip" role="note" aria-label="Beta status">
1848
1848
  <div class="mushi-beta-strip-row">
1849
1849
  <span class="mushi-beta-tag" aria-hidden="true">BETA</span>
@@ -1852,153 +1852,153 @@
1852
1852
  ${s?`<div class="mushi-beta-contact-hint">Reports go to ${s} \xB7 reviewed by the team</div>`:""}
1853
1853
  ${o.length>0?`
1854
1854
  <ul class="mushi-beta-perks" aria-label="Beta tester perks">
1855
- ${o.map(l=>`<li>\u2713 ${f(l)}</li>`).join("")}
1855
+ ${o.map(a=>`<li>\u2713 ${b(a)}</li>`).join("")}
1856
1856
  </ul>
1857
1857
  `:""}
1858
- ${Wi(t)}
1858
+ ${Yi(t)}
1859
1859
  </div>
1860
- `}function Ki(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,l=Ot(s.status),i=Bt(s.created_at),a=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1861
- <button type="button" class="mushi-report-row" data-report-id="${f(s.id)}" aria-label="View report: ${f(o)}">
1860
+ `}function Ji(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=qt(s.status),i=jt(s.created_at),l=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1861
+ <button type="button" class="mushi-report-row" data-report-id="${b(s.id)}" aria-label="View report: ${b(o)}">
1862
1862
  <div class="mushi-report-main">
1863
- <span class="mushi-report-title">${f(o)}</span>
1863
+ <span class="mushi-report-title">${b(o)}</span>
1864
1864
  <span class="mushi-report-meta">
1865
- <span class="mushi-report-status mushi-status-${l}">${f(br(s.status))}</span>
1866
- ${i?`<span class="mushi-report-when">${f(i)}</span>`:""}
1867
- ${a}
1865
+ <span class="mushi-report-status mushi-status-${a}">${b(Rr(s.status))}</span>
1866
+ ${i?`<span class="mushi-report-when">${b(i)}</span>`:""}
1867
+ ${l}
1868
1868
  </span>
1869
1869
  </div>
1870
1870
  <span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
1871
- </button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${f(e.reports.leaderboardLink)}</button>`:"";return `
1871
+ </button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${b(e.reports.leaderboardLink)}</button>`:"";return `
1872
1872
  ${ge(t,{title:e.reports.title,showBack:true,eyebrow:e.eyebrows.inbox})}
1873
1873
  <div class="mushi-body">
1874
- ${t.reporterLoading?`<p class="mushi-muted">${f(e.reports.loading)}</p>`:""}
1875
- ${t.reporterError?`<p class="mushi-error-inline">${f(t.reporterError)}</p>`:""}
1876
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${f(e.reports.empty)}</p>`)}
1874
+ ${t.reporterLoading?`<p class="mushi-muted">${b(e.reports.loading)}</p>`:""}
1875
+ ${t.reporterError?`<p class="mushi-error-inline">${b(t.reporterError)}</p>`:""}
1876
+ ${r||(t.reporterLoading?"":`<p class="mushi-muted">${b(e.reports.empty)}</p>`)}
1877
1877
  ${n}
1878
1878
  </div>
1879
- `}function Gi(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=f(String(n.subject??e.roadmap.untitled)),l=Number(n.vote_count??0),i=!!n.shipped_at,a=!!n.my_vote,h=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),u=e.roadmap.voteCount.replace("{n}",String(l));return `
1879
+ `}function Zi(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=b(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),i=!!n.shipped_at,l=!!n.my_vote,m=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),u=e.roadmap.voteCount.replace("{n}",String(a));return `
1880
1880
  <div class="mushi-report-row mushi-roadmap-row">
1881
1881
  <div class="mushi-report-main">
1882
1882
  <span class="mushi-report-title">${o}</span>
1883
1883
  <span class="mushi-report-meta">
1884
- <span class="mushi-report-status">${f(h)}</span>
1885
- <span class="mushi-report-when">${f(u)}</span>
1884
+ <span class="mushi-report-status">${b(m)}</span>
1885
+ <span class="mushi-report-when">${b(u)}</span>
1886
1886
  </span>
1887
1887
  </div>
1888
1888
  ${t.callbacks.onFeatureBoardVote?`
1889
- <button type="button" class="mushi-vote-btn" data-vote-id="${f(s)}" aria-pressed="${a}">
1890
- ${a?f(e.roadmap.voted):f(e.roadmap.vote)}
1889
+ <button type="button" class="mushi-vote-btn" data-vote-id="${b(s)}" aria-pressed="${l}">
1890
+ ${l?b(e.roadmap.voted):b(e.roadmap.vote)}
1891
1891
  </button>`:""}
1892
1892
  </div>`}).join("");return `
1893
1893
  ${ge(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
1894
1894
  <div class="mushi-body">
1895
- ${t.reporterLoading?`<p class="mushi-muted">${f(e.roadmap.loading)}</p>`:""}
1896
- ${t.reporterError?`<p class="mushi-error-inline">${f(t.reporterError)}</p>`:""}
1897
- ${r||(t.reporterLoading?"":`<p class="mushi-muted">${f(e.roadmap.empty)}</p>`)}
1895
+ ${t.reporterLoading?`<p class="mushi-muted">${b(e.roadmap.loading)}</p>`:""}
1896
+ ${t.reporterError?`<p class="mushi-error-inline">${b(t.reporterError)}</p>`:""}
1897
+ ${r||(t.reporterLoading?"":`<p class="mushi-muted">${b(e.roadmap.empty)}</p>`)}
1898
1898
  </div>
1899
- `}function Yi(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(a=>({tester_id:"",public_handle:null,display_name:a.display_name,rank:0,points_30d:a.points_30d,total_points:a.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,l=n.map((a,h)=>{let u=a.rank||h+1,m=t.testerReputation&&a.tester_id===t.testerReputation.tester_id;return `
1900
- <div class="mushi-lb-row ${u===1?"mushi-lb-top":""}${m?" mushi-lb-me":""}">
1899
+ `}function Qi(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(l=>({tester_id:"",public_handle:null,display_name:l.display_name,rank:0,points_30d:l.points_30d,total_points:l.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,a=n.map((l,m)=>{let u=l.rank||m+1,h=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
1900
+ <div class="mushi-lb-row ${u===1?"mushi-lb-top":""}${h?" mushi-lb-me":""}">
1901
1901
  <span class="mushi-lb-rank">#${u}</span>
1902
- <span class="mushi-lb-name">${f(a.public_handle??a.display_name??e.leaderboard.anon)}</span>
1903
- <span class="mushi-lb-pts">${(a.points_30d??a.total_points).toLocaleString()} pts</span>
1902
+ <span class="mushi-lb-name">${b(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
1903
+ <span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
1904
1904
  </div>
1905
- `}).join(""),i=o?`<div class="mushi-lb-myrank">${f(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${f(e.leaderboard.signInPrompt)}</button>`;return `
1905
+ `}).join(""),i=o?`<div class="mushi-lb-myrank">${b(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${b(e.leaderboard.signInPrompt)}</button>`;return `
1906
1906
  ${ge(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
1907
1907
  <div class="mushi-body">
1908
- ${s?`<p class="mushi-muted">${f(e.leaderboard.loading)}</p>`:""}
1909
- ${!s&&!n.length?`<p class="mushi-muted">${f(e.leaderboard.empty)}</p>`:""}
1910
- <div class="mushi-lb-list">${l}</div>
1908
+ ${s?`<p class="mushi-muted">${b(e.leaderboard.loading)}</p>`:""}
1909
+ ${!s&&!n.length?`<p class="mushi-muted">${b(e.leaderboard.empty)}</p>`:""}
1910
+ <div class="mushi-lb-list">${a}</div>
1911
1911
  ${i}
1912
- <p class="mushi-lb-note">${f(e.leaderboard.footer)}</p>
1912
+ <p class="mushi-lb-note">${b(e.leaderboard.footer)}</p>
1913
1913
  </div>
1914
- `}function Xi(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1914
+ `}function ea(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1915
1915
  ${ge(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
1916
1916
  <div class="mushi-body">
1917
1917
  <div class="mushi-account-card">
1918
- <div class="mushi-account-avatar">${f(n.charAt(0).toUpperCase())}</div>
1918
+ <div class="mushi-account-avatar">${b(n.charAt(0).toUpperCase())}</div>
1919
1919
  <div class="mushi-account-info">
1920
- <strong>${f(n)}</strong>
1921
- ${s?`<span class="mushi-account-rank">${f(o)}</span>`:""}
1920
+ <strong>${b(n)}</strong>
1921
+ ${s?`<span class="mushi-account-rank">${b(o)}</span>`:""}
1922
1922
  </div>
1923
1923
  </div>
1924
1924
  <button type="button" class="mushi-nav-item" data-action="open-cross-app-reports">
1925
- ${f(e.account.crossAppReports)}
1925
+ ${b(e.account.crossAppReports)}
1926
1926
  </button>
1927
1927
  <button type="button" class="mushi-nav-item" data-action="open-global-leaderboard">
1928
- ${f(e.account.viewLeaderboard)}
1928
+ ${b(e.account.viewLeaderboard)}
1929
1929
  </button>
1930
- <button type="button" class="mushi-link-btn" data-action="sign-out-tester">${f(e.account.signOut)}</button>
1930
+ <button type="button" class="mushi-link-btn" data-action="sign-out-tester">${b(e.account.signOut)}</button>
1931
1931
  </div>
1932
1932
  `}return t.magicLinkSent?`
1933
1933
  ${ge(t,{title:e.account.checkEmailTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
1934
1934
  <div class="mushi-body">
1935
- <p class="mushi-muted">${f(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
1936
- <button type="button" class="mushi-link-btn" data-action="resend-magic-link">${f(e.account.resendEmail)}</button>
1937
- ${t.magicLinkError?`<p class="mushi-error">${f(t.magicLinkError)}</p>`:""}
1935
+ <p class="mushi-muted">${b(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
1936
+ <button type="button" class="mushi-link-btn" data-action="resend-magic-link">${b(e.account.resendEmail)}</button>
1937
+ ${t.magicLinkError?`<p class="mushi-error">${b(t.magicLinkError)}</p>`:""}
1938
1938
  </div>
1939
1939
  `:`
1940
1940
  ${ge(t,{title:e.account.joinTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
1941
1941
  <div class="mushi-body">
1942
- <p class="mushi-muted">${f(e.account.signInPrompt)}</p>
1943
- <label class="mushi-label" for="mushi-email-input">${f(e.account.emailLabel)}</label>
1942
+ <p class="mushi-muted">${b(e.account.signInPrompt)}</p>
1943
+ <label class="mushi-label" for="mushi-email-input">${b(e.account.emailLabel)}</label>
1944
1944
  <input
1945
1945
  id="mushi-email-input"
1946
1946
  type="email"
1947
1947
  class="mushi-textarea"
1948
1948
  data-role="magic-link-email"
1949
- placeholder="${f(e.account.emailPlaceholder)}"
1949
+ placeholder="${b(e.account.emailPlaceholder)}"
1950
1950
  autocomplete="email"
1951
- value="${f(t.magicLinkEmail)}"
1951
+ value="${b(t.magicLinkEmail)}"
1952
1952
  style="padding: 10px 12px; height: auto; resize: none;"
1953
1953
  />
1954
- ${t.magicLinkError?`<p class="mushi-error">${f(t.magicLinkError)}</p>`:""}
1954
+ ${t.magicLinkError?`<p class="mushi-error">${b(t.magicLinkError)}</p>`:""}
1955
1955
  <button type="button" class="mushi-submit" data-action="send-magic-link"${t.magicLinkSending?' disabled aria-disabled="true"':""}>
1956
- <span>${t.magicLinkSending?f(e.account.sending):f(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
1956
+ <span>${t.magicLinkSending?b(e.account.sending):b(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
1957
1957
  </button>
1958
1958
  </div>
1959
- `}function Ji(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let l=o.project_id??"unknown";n.has(l)||n.set(l,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(l).reports.push(o);}let s=[...n.entries()].map(([o,l])=>`
1959
+ `}function ta(t){let e=t.locale.flows,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.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let s=[...n.entries()].map(([o,a])=>`
1960
1960
  <div class="mushi-xapp-group">
1961
1961
  <div class="mushi-xapp-app-head">
1962
- ${ys({appName:l.name,appSlug:l.slug,appDomain:l.domain})}
1963
- <h4 class="mushi-xapp-app-name">${f(l.name)}</h4>
1962
+ ${Rs({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
1963
+ <h4 class="mushi-xapp-app-name">${b(a.name)}</h4>
1964
1964
  </div>
1965
- ${l.reports.map(a=>{let h=Ot(a.status);return `
1966
- <div class="mushi-report-row" data-report-id="${f(a.id)}" tabindex="0" role="button">
1967
- <span class="mushi-report-status mushi-status-${h}">${f(br(a.status))}</span>
1968
- <span class="mushi-report-title">${f(a.title??a.category)}</span>
1969
- <span class="mushi-report-when">${f(Bt(a.created_at))}</span>
1965
+ ${a.reports.map(l=>{let m=qt(l.status);return `
1966
+ <div class="mushi-report-row" data-report-id="${b(l.id)}" tabindex="0" role="button">
1967
+ <span class="mushi-report-status mushi-status-${m}">${b(Rr(l.status))}</span>
1968
+ <span class="mushi-report-title">${b(l.title??l.category)}</span>
1969
+ <span class="mushi-report-when">${b(jt(l.created_at))}</span>
1970
1970
  </div>
1971
1971
  `}).join("")}
1972
1972
  </div>
1973
1973
  `).join("");return `
1974
1974
  ${ge(t,{title:e.crossApp.title,showBack:true,eyebrow:e.eyebrows.allApps})}
1975
1975
  <div class="mushi-body">
1976
- ${t.crossAppLoading?`<p class="mushi-muted">${f(e.crossApp.loading)}</p>`:""}
1977
- ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${f(e.crossApp.empty)}</p>`:""}
1976
+ ${t.crossAppLoading?`<p class="mushi-muted">${b(e.crossApp.loading)}</p>`:""}
1977
+ ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${b(e.crossApp.empty)}</p>`:""}
1978
1978
  ${s}
1979
1979
  </div>
1980
- `}function Zi(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=Ot(n),o=r?.created_at?Bt(r.created_at):"",l=t.reporterComments.map(i=>`
1980
+ `}function ra(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=qt(n),o=r?.created_at?jt(r.created_at):"",a=t.reporterComments.map(i=>`
1981
1981
  <div class="mushi-thread-comment ${i.author_kind}">
1982
- <strong>${f(i.author_kind==="reporter"?"You":i.author_name??"Developer")}</strong>
1983
- <p>${f(i.body)}</p>
1982
+ <strong>${b(i.author_kind==="reporter"?"You":i.author_name??"Developer")}</strong>
1983
+ <p>${b(i.body)}</p>
1984
1984
  </div>
1985
1985
  `).join("");return `
1986
1986
  ${ge(t,{title:e.thread.title,showBack:true,eyebrow:e.eyebrows.thread})}
1987
1987
  <div class="mushi-body">
1988
1988
  <div class="mushi-thread-summary">
1989
1989
  <div class="mushi-thread-summary-meta">
1990
- <span class="mushi-report-status mushi-status-${s}">${f(gs(n))}</span>
1991
- ${o?`<span class="mushi-report-when">Reported ${f(o)}</span>`:""}
1990
+ <span class="mushi-report-status mushi-status-${s}">${b(ks(n))}</span>
1991
+ ${o?`<span class="mushi-report-when">Reported ${b(o)}</span>`:""}
1992
1992
  </div>
1993
- <p>${f(r?.summary??r?.description??"Report details")}</p>
1993
+ <p>${b(r?.summary??r?.description??"Report details")}</p>
1994
1994
  </div>
1995
1995
  <div class="mushi-thread">
1996
- ${t.reporterLoading?`<p class="mushi-muted">${f(e.thread.loading)}</p>`:l||`<p class="mushi-muted">${f(e.thread.empty)}</p>`}
1996
+ ${t.reporterLoading?`<p class="mushi-muted">${b(e.thread.loading)}</p>`:a||`<p class="mushi-muted">${b(e.thread.empty)}</p>`}
1997
1997
  </div>
1998
1998
  ${["fixed","resolved","verified"].includes(n)?`
1999
1999
  <div class="mushi-verify-actions" role="group" aria-label="Fix verification">
2000
- <button type="button" class="mushi-option-btn" data-action="reporter-confirms">${f(e.thread.confirmFixed)}</button>
2001
- <button type="button" class="mushi-option-btn" data-action="reporter-not-fixed">${f(e.thread.notFixed)}</button>
2000
+ <button type="button" class="mushi-option-btn" data-action="reporter-confirms">${b(e.thread.confirmFixed)}</button>
2001
+ <button type="button" class="mushi-option-btn" data-action="reporter-not-fixed">${b(e.thread.notFixed)}</button>
2002
2002
  </div>
2003
2003
  `:""}
2004
2004
  <textarea class="mushi-textarea" data-role="reporter-reply" rows="3" placeholder="Reply to the developer\u2026"></textarea>
@@ -2006,32 +2006,32 @@
2006
2006
  <span>Reply</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2007
2007
  </button>
2008
2008
  </div>
2009
- `}function Qi(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(a=>`
2010
- <button type="button" class="mushi-option-btn" data-intent="${f(a)}">
2011
- <span class="mushi-option-text"><span class="mushi-option-label">${f(a)}</span></span>
2009
+ `}function na(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
2010
+ <button type="button" class="mushi-option-btn" data-intent="${b(l)}">
2011
+ <span class="mushi-option-text"><span class="mushi-option-label">${b(l)}</span></span>
2012
2012
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
2013
2013
  </button>
2014
- `).join(""),l=t.categoryIcon(r),i=t.categoryLabel(r);return `
2015
- ${ge(t,{title:e.step2.heading,showBack:true,step:Nt.intent})}
2014
+ `).join(""),a=t.categoryIcon(r),i=t.categoryLabel(r);return `
2015
+ ${ge(t,{title:e.step2.heading,showBack:true,step:Wt.intent})}
2016
2016
  <div class="mushi-body">
2017
2017
  <div class="mushi-selected-category">
2018
- <span aria-hidden="true">${f(l)}</span>
2019
- <span>${f(i)}</span>
2018
+ <span aria-hidden="true">${b(a)}</span>
2019
+ <span>${b(i)}</span>
2020
2020
  </div>
2021
2021
  <div class="mushi-intents">
2022
2022
  ${o}
2023
2023
  </div>
2024
2024
  </div>
2025
- `}function ea(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,l=["mushi-attach-btn",t.elementSelected?"active":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(a=>`<button type="button" class="mushi-example-chip" data-example="${f(a)}">${f(a)}</button>`).join("");return `
2026
- ${ge(t,{title:e.step3.heading,showBack:true,step:Nt.details})}
2025
+ `}function sa(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(l=>`<button type="button" class="mushi-example-chip" data-example="${b(l)}">${b(l)}</button>`).join("");return `
2026
+ ${ge(t,{title:e.step3.heading,showBack:true,step:Wt.details})}
2027
2027
  <div class="mushi-body">
2028
2028
  <div class="mushi-example-chips" aria-label="Example prompts">${i}</div>
2029
2029
  <div class="mushi-textarea-wrap">
2030
2030
  <textarea
2031
2031
  class="mushi-textarea"
2032
- placeholder="${f(e.step3.descriptionPlaceholder)}"
2032
+ placeholder="${b(e.step3.descriptionPlaceholder)}"
2033
2033
  rows="4"
2034
- aria-label="${f(e.step3.heading)}"
2034
+ aria-label="${b(e.step3.heading)}"
2035
2035
  autofocus
2036
2036
  ></textarea>
2037
2037
  <div class="mushi-char-counter" data-role="char-counter" aria-hidden="true">
@@ -2042,28 +2042,28 @@
2042
2042
  <button type="button" class="${s}"
2043
2043
  data-action="screenshot"
2044
2044
  ${t.screenshotCapturing?"disabled":""}
2045
- aria-label="${f(n)}"
2045
+ aria-label="${b(n)}"
2046
2046
  >
2047
2047
  ${t.screenshotCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F4F8}"}
2048
- ${f(n)}
2048
+ ${b(n)}
2049
2049
  </button>
2050
2050
  ${t.screenshotAttached&&t.allowScreenshotRemove?'<button type="button" class="mushi-attach-btn danger" data-action="remove-screenshot" aria-label="Remove screenshot">\u2715 Remove</button>':""}
2051
2051
  ${t.screenshotAttached?'<button type="button" class="mushi-attach-btn" data-action="annotate-screenshot" aria-label="Mark up screenshot">\u270F Mark up</button><div class="mushi-annotate-host" data-role="annotate-host"></div>':""}
2052
- <button type="button" class="${l}"
2052
+ <button type="button" class="${a}"
2053
2053
  data-action="element"
2054
2054
  ${t.elementCapturing?"disabled":""}
2055
- aria-label="${f(o)}"
2055
+ aria-label="${b(o)}"
2056
2056
  >
2057
2057
  ${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
2058
- ${f(o)}
2058
+ ${b(o)}
2059
2059
  </button>
2060
2060
  </div>
2061
2061
  ${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
2062
- <img src="${f(t.screenshotPreview)}" alt="${f(e.step3.screenshotPreviewAlt)}" />
2063
- ${t.screenshotHint?`<figcaption class="mushi-screenshot-hint">\u26A0 ${f(t.screenshotHint)}</figcaption>`:""}
2062
+ <img src="${b(t.screenshotPreview)}" alt="${b(e.step3.screenshotPreviewAlt)}" />
2063
+ ${t.screenshotHint?`<figcaption class="mushi-screenshot-hint">\u26A0 ${b(t.screenshotHint)}</figcaption>`:""}
2064
2064
  </figure>`:""}
2065
2065
  <div class="mushi-error" style="display:none" role="alert"></div>
2066
- ${t.identifiedUser?`<p class="mushi-identified-user" aria-label="Reporting as ${f(t.identifiedUser.name??t.identifiedUser.email??"")}">\u{1F464} Reporting as <strong>${f(t.identifiedUser.name??t.identifiedUser.email??"you")}</strong></p>`:""}
2066
+ ${t.identifiedUser?`<p class="mushi-identified-user" aria-label="Reporting as ${b(t.identifiedUser.name??t.identifiedUser.email??"")}">\u{1F464} Reporting as <strong>${b(t.identifiedUser.name??t.identifiedUser.email??"you")}</strong></p>`:""}
2067
2067
  </div>
2068
2068
  <div class="mushi-footer">
2069
2069
  <span class="mushi-footer-hint" aria-hidden="true">\u2318 + ENTER \u2192 send</span>
@@ -2072,7 +2072,7 @@
2072
2072
  <span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2073
2073
  </button>
2074
2074
  </div>
2075
- `}function ta(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2075
+ `}function oa(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2076
2076
  ${ge(t,{title:e.widget.title,showBack:true,eyebrow:"Mushi \xB7 Receipt"})}
2077
2077
  <div class="mushi-body">
2078
2078
  <div class="mushi-success">
@@ -2082,82 +2082,82 @@
2082
2082
  </div>
2083
2083
  <div class="mushi-success-headline">${e.widget.submitted}</div>
2084
2084
  <div class="mushi-success-meta">REPORT \xB7 ${n}</div>
2085
- ${ra(t)}
2086
- ${t.rewardsState?oa(t):""}
2087
- ${t.config.betaMode?.enabled?na(t):""}
2085
+ ${ia(t)}
2086
+ ${t.rewardsState?ca(t):""}
2087
+ ${t.config.betaMode?.enabled?aa(t):""}
2088
2088
  <button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="view-my-reports">
2089
- ${f(t.locale.flows.success.trackReport)}
2089
+ ${b(t.locale.flows.success.trackReport)}
2090
2090
  </button>
2091
2091
  </div>
2092
2092
  </div>
2093
- `}function ra(t){let e=t.locale.flows.success;if(t.lastSubmitQueuedOffline)return `
2093
+ `}function ia(t){let e=t.locale.flows.success;if(t.lastSubmitQueuedOffline)return `
2094
2094
  <div class="mushi-success-receipt" role="status">
2095
2095
  <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2096
- <span class="mushi-success-receipt-label">${f(e.queuedOffline)}</span>
2097
- <span class="mushi-success-receipt-hint">${f(e.queuedHint)}</span>
2096
+ <span class="mushi-success-receipt-label">${b(e.queuedOffline)}</span>
2097
+ <span class="mushi-success-receipt-hint">${b(e.queuedHint)}</span>
2098
2098
  </div>
2099
2099
  </div>
2100
2100
  `;if(!t.lastReportId)return `
2101
2101
  <div class="mushi-success-receipt" role="status">
2102
2102
  <div class="mushi-success-receipt-row">
2103
2103
  <span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
2104
- <span class="mushi-success-receipt-hint">${f(e.delivering)}</span>
2104
+ <span class="mushi-success-receipt-hint">${b(e.delivering)}</span>
2105
2105
  </div>
2106
- ${xs(t)}
2106
+ ${Ts(t)}
2107
2107
  </div>
2108
2108
  `;let r=`#${t.lastReportId.slice(0,8)}`,n=(t.config.dashboardUrl??"").replace(/\/$/,""),s=n?`${n}/reports/${encodeURIComponent(t.lastReportId)}`:"";return `
2109
2109
  <div class="mushi-success-receipt" role="status">
2110
2110
  <div class="mushi-success-receipt-row">
2111
- <span class="mushi-success-receipt-label">${f(e.receipt)}</span>
2111
+ <span class="mushi-success-receipt-label">${b(e.receipt)}</span>
2112
2112
  <button
2113
2113
  type="button"
2114
2114
  class="mushi-success-receipt-id"
2115
2115
  data-action="copy-report-id"
2116
- data-copy-id="${f(t.lastReportId)}"
2117
- title="Copy report id ${f(t.lastReportId)}"
2118
- aria-label="Copy report id ${f(t.lastReportId)}"
2119
- >${f(r)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
2116
+ data-copy-id="${b(t.lastReportId)}"
2117
+ title="Copy report id ${b(t.lastReportId)}"
2118
+ aria-label="Copy report id ${b(t.lastReportId)}"
2119
+ >${b(r)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
2120
2120
  </div>
2121
2121
  ${s?`
2122
2122
  <a
2123
2123
  class="mushi-success-receipt-track"
2124
- href="${f(s)}"
2124
+ href="${b(s)}"
2125
2125
  target="_blank"
2126
2126
  rel="noopener noreferrer"
2127
- >${f(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
2127
+ >${b(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
2128
2128
  `:""}
2129
- ${xs(t)}
2129
+ ${Ts(t)}
2130
2130
  </div>
2131
- `}function xs(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${f(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${f(t.locale.flows.success.slaDefault)}</div>`}function na(t){let e=t.config.betaMode,r=e.contactEmail?f(e.contactEmail):null,n=f(e.appName??"the team");return `
2131
+ `}function Ts(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${b(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${b(t.locale.flows.success.slaDefault)}</div>`}function aa(t){let e=t.config.betaMode,r=e.contactEmail?b(e.contactEmail):null,n=b(e.appName??"the team");return `
2132
2132
  <div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
2133
2133
  ${r?`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${r}</div>`:`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${n}</div>`}
2134
2134
  </div>
2135
- `}function sa(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",l=e?.slug??"free",i=t.tierColor(l),a=100,h="";if(r){let u=e?.pointsThreshold??0,m=r.pointsThreshold;a=m>u?Math.round(Math.min(1,(n-u)/(m-u))*100):100,h=`${Math.max(0,m-n).toLocaleString()} pts to ${f(r.displayName)}`;}return `
2135
+ `}function la(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",a=e?.slug??"free",i=t.tierColor(a),l=100,m="";if(r){let u=e?.pointsThreshold??0,h=r.pointsThreshold;l=h>u?Math.round(Math.min(1,(n-u)/(h-u))*100):100,m=`${Math.max(0,h-n).toLocaleString()} pts to ${b(r.displayName)}`;}return `
2136
2136
  <div class="mushi-rewards-nudge" aria-label="Rewards progress">
2137
2137
  <div class="mushi-rewards-row">
2138
2138
  <span class="mushi-tier-pip" style="background:${i}" aria-hidden="true"></span>
2139
- <span class="mushi-rewards-tier-name">${f(o)}</span>
2139
+ <span class="mushi-rewards-tier-name">${b(o)}</span>
2140
2140
  <span class="mushi-rewards-pts-count">${n.toLocaleString()} pts</span>
2141
2141
  <span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
2142
2142
  </div>
2143
2143
  ${r?`
2144
- <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${f(r.displayName)}">
2145
- <div class="mushi-tier-bar-fill" style="width:${a}%"></div>
2144
+ <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${b(r.displayName)}">
2145
+ <div class="mushi-tier-bar-fill" style="width:${l}%"></div>
2146
2146
  </div>
2147
- <div class="mushi-rewards-next-label">${h}</div>
2147
+ <div class="mushi-rewards-next-label">${m}</div>
2148
2148
  `:""}
2149
2149
  </div>
2150
- `}function oa(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,l=100,i="";if(r){let a=e?.pointsThreshold??0,h=r.pointsThreshold;l=h>a?Math.round(Math.min(1,(o-a)/(h-a))*100):100;let u=Math.max(0,h-o);i=u>0?`${u.toLocaleString()} pts to ${f(r.displayName)}`:`\u{1F389} ${f(r.displayName)} reached!`;}return `
2150
+ `}function ca(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,a=100,i="";if(r){let l=e?.pointsThreshold??0,m=r.pointsThreshold;a=m>l?Math.round(Math.min(1,(o-l)/(m-l))*100):100;let u=Math.max(0,m-o);i=u>0?`${u.toLocaleString()} pts to ${b(r.displayName)}`:`\u{1F389} ${b(r.displayName)} reached!`;}return `
2151
2151
  <div class="mushi-success-rewards">
2152
2152
  <div class="mushi-success-pts-award">+${s} pts</div>
2153
2153
  ${r?`
2154
- <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${f(r.displayName)}">
2155
- <div class="mushi-tier-bar-fill" style="width:${l}%"></div>
2154
+ <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${b(r.displayName)}">
2155
+ <div class="mushi-tier-bar-fill" style="width:${a}%"></div>
2156
2156
  </div>
2157
2157
  <div class="mushi-rewards-next-label">${i}</div>
2158
2158
  `:""}
2159
2159
  </div>
2160
- `}var Ut=class t{constructor(e={},r,n=fe){this.sdkVersion=n;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??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=fr(this.config.locale==="auto"?void 0:this.config.locale),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotPreview=null;elementSelected=false;elementCapturing=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=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;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=fr(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(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)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Ht[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.viaFeatureRequest=false,e?.featureRequest)this.selectedCategory="other",this.selectedIntent=gr,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}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.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);n?(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}:{}}):this.assistantTurns.push({role:"assistant",text:n.text??"\u2026"})):this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");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 s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let l=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",l),()=>o.removeEventListener("click",l)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,e||(this.screenshotPreview=null),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();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?this.showSelectorHint():this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.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=`
2160
+ `}var zt=class t{constructor(e={},r,n=fe){this.sdkVersion=n;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??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=kr(this.config.locale==="auto"?void 0:this.config.locale),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotPreview=null;elementSelected=false;elementCapturing=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=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;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=kr(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(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)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Ft[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.viaFeatureRequest=false,e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Er,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}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.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);n?(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}:{}}):this.assistantTurns.push({role:"assistant",text:n.text??"\u2026"})):this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");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 s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,e||(this.screenshotPreview=null),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();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?this.showSelectorHint():this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.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=`
2161
2161
  position: fixed;
2162
2162
  bottom: 24px;
2163
2163
  left: 50%;
@@ -2190,7 +2190,7 @@
2190
2190
  backdrop-filter: blur(4px);
2191
2191
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
2192
2192
  animation: mushi-fade-in 0.15s ease forwards;
2193
- `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=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.step==="leaderboard"&&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.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}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,s=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:s,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 s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};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);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,l=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,a=e.featureCtaLabel??"Request feature",h=e.zIndex??(this.config.zIndex??99999)-1,u=document.createElement("div");u.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,u.style.setProperty("--mushi-banner-z",String(h)),u.setAttribute("role","banner");let m=document.createElement("button");if(m.className="mushi-banner-dismiss",m.textContent="\u2715",m.setAttribute("aria-label","Dismiss feedback banner"),m.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let b=document.createElement("div");b.className="mushi-banner-body";let d=e.label===false?null:e.label??"Beta";if(d){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=d,b.appendChild(R);}let g=document.createElement("span");g.className="mushi-banner-message",g.textContent=s,b.appendChild(g),u.appendChild(b);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let E=(R=false)=>{let k=document.createElement("span");k.className=`mushi-banner-divider${R?" mushi-banner-extra":""}`,k.setAttribute("aria-hidden","true"),k.textContent="|",v.appendChild(k);},D=(R,k,I=false)=>{let y=document.createElement("button");y.type="button",y.className=`mushi-banner-link${I?" mushi-banner-extra":""}`,y.textContent=R,y.addEventListener("click",k),v.appendChild(y);};D(l,()=>this.open()),i&&(E(true),D(a,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let k=R.label?.trim();if(!k)continue;let I=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(E(true),I){let y=document.createElement("a");y.className="mushi-banner-link mushi-banner-extra",y.href=I,y.textContent=k,y.target="_blank",y.rel="noopener noreferrer",v.appendChild(y);}else D(k,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}E(true),D("\u{1F4EC} My reports",()=>this.openReporter(),true),u.appendChild(v),u.appendChild(m);}else {let b=document.createElement("button");if(b.className="mushi-banner-btn",b.textContent=l,b.addEventListener("click",()=>this.open()),u.appendChild(b),i){let g=document.createElement("button");g.className="mushi-banner-btn",g.textContent=a,g.addEventListener("click",()=>this.open({featureRequest:true})),u.appendChild(g);}let d=document.createElement("button");d.className="mushi-banner-my-reports",d.textContent="\u{1F4EC} My reports",d.setAttribute("aria-label","View my submitted reports"),d.addEventListener("click",()=>this.openReporter()),u.appendChild(d),u.appendChild(m);}this.shadow.appendChild(u),this.applyBodyNudge(n),this.trackBannerHeight(u,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"}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=fs(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let l=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${l==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let a=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&a>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",a=>{let h=this.config.draggable;if(!h)return;let u=8,m=typeof h=="object"?h.axis??"both":"both",b=0,d=0;if(m!=="y"&&(a.key==="ArrowLeft"?b=-u:a.key==="ArrowRight"&&(b=u)),m!=="x"&&(a.key==="ArrowUp"?d=-u:a.key==="ArrowDown"&&(d=u)),b!==0||d!==0){a.preventDefault();let g=this.fabPos??{x:0,y:0};this.moveFab(i,g.x+b,g.y+d,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let a=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,a.x,a.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let l=this.renderCtx();o.innerHTML=`${Ss(l)}${ws(l)}${ks(l)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let l=o.getBoundingClientRect();l.bottom>n&&l.width>0&&l.height>0&&(n=l.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 s of r)try{let o=document.querySelector(s);if(!o)continue;let l=o.getBoundingClientRect();if(l.width>0&&l.height>0){let i=window.innerHeight-l.top+e;i>n&&(n=i);}}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 l=r[o];l!==void 0&&e.style.setProperty(`--mushi-${o}`,l);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(l=>{o[l]===void 0&&e.style.setProperty(`--mushi-${l}`,"24px");}),["top","right","bottom","left"].forEach(l=>{let i=o[l];i!==void 0&&e.style.setProperty(`--mushi-${l}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=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(s){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,s){let o=(()=>{let z=this.config.draggable;return z&&typeof z=="object"?z.axis??"both":"both"})(),l=window.innerWidth,i=window.innerHeight,a=e.offsetWidth||52,h=e.offsetHeight||52,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,m=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,b=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,g=8,v=e.getBoundingClientRect(),E=this.fabPos?.x??0,D=this.fabPos?.y??0,R=v.left-E,k=v.top-D,I=u+g-R,y=l-m-g-a-R,w=b+g-k,C=i-d-g-h-k,x=o==="y"?0:Math.max(I,Math.min(y,r)),N=o==="x"?0:Math.max(w,Math.min(C,n)),O=x;if(s){let z=this.config.draggable;(z===true||typeof z=="object"&&(z.snapToEdge??true))&&o!=="y"&&(O=v.left+a/2<l/2?u+g-R:l-m-g-a-R);}this.fabPos={x:O,y:N},e.style.setProperty("--mushi-drag-x",`${O}px`),e.style.setProperty("--mushi-drag-y",`${N}px`),e.style.setProperty("--mushi-drag-active","1");let j=this.config.draggable;if(j===true||typeof j=="object"&&(j.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 s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,l=false,i=false,a=b=>{if(b.button!==0&&b.pointerType!=="touch")return;e.setPointerCapture(b.pointerId),r=b.clientX,n=b.clientY;let d=this.fabPos??{x:0,y:0};s=d.x,o=d.y,l=true,i=false;},h=6,u=b=>{if(!l)return;let d=b.clientX-r,g=b.clientY-n;!i&&Math.hypot(d,g)>h&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(b.preventDefault(),this.moveFab(e,s+d,o+g,false));},m=b=>{if(l){if(l=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let d=b.clientX-r,g=b.clientY-n;this.moveFab(e,s+d,o+g,true);let v=E=>{E.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",a),e.addEventListener("pointermove",u),e.addEventListener("pointerup",m),e.addEventListener("pointercancel",m);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;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.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(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 s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return dr[e]??dr.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:ls()}}attachHandlers(e){let r=this.locale;vs(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.value;i&&this.sendAssistantMessage(i);});});{let l=e.querySelector('[data-action="assistant-send"]');if(l){let i=l.querySelector(".mushi-assistant-input");l.addEventListener("submit",a=>{a.preventDefault();let h=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(h);}),i?.addEventListener("keydown",a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),l.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=gr,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",l=>{let i=l.currentTarget,a=i.dataset.copyId;if(!a)return;let h=i.innerHTML,u=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=h);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(a).then(u).catch(()=>u()):u();}catch{u();}}),e.querySelectorAll("[data-category]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.category??"other";this.selectedCategory=i;let a=this.resolveCustomCategory(i);this.step=a&&(!a.intents||a.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(l=>{l.addEventListener("click",()=>{this.selectedIntent=l.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let l=this.effectiveMinLength(),i=()=>{let a=n.value.trim().length;s.textContent=String(a);let h=e.querySelector('[data-role="char-counter"]');h&&(h.style.color=a>=l?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let l=e.querySelector('[data-role="annotate-host"]');l&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(l);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let l=e.querySelector(".mushi-textarea"),i=l?.value?.trim()??"",a=e.querySelector(".mushi-error"),h=this.effectiveMinLength();if(i.length<h){if(a){let m=`${r.step3.tooShort} (${i.length}/${h})`;a.textContent=m,a.style.display="block",l?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.render();let u=(async()=>{try{let m=this.selectedCategory,b=this.resolveBaseCategory(m),d=this.config.categories&&this.config.categories.length>0,g=this.callbacks.onSubmit({category:b,...d?{userCategory:m}:{},description:i,intent:this.selectedIntent??void 0});return g&&typeof g.then=="function"?await g??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),u.then(m=>{if(this.step!=="success")return;m&&(this.lastReportId=m.reportId??null,this.lastSubmitQueuedOffline=!!m.queuedOffline,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let b=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},b);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",l=>{if(l.key==="Escape"){this.close();return}this.step==="details"&&bs(l)&&(l.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=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.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=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.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),await this.loadReporterComments(r);}catch(l){this.reporterError=l instanceof Error?l.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}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();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function Ft(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 Es(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Ft(t.getRecorderTrigger()),getCategoryCenter:r=>Ft(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Ft(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Ft(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 ia=3e4,aa=3e5,la=6e4,ca=60,Is="mushi_session_min_day_",pt=[],xr=null,wr=null,Ue=null,As=null,Sr=null,ht=null,Ke=false,qt=null,_s=0,ua=300*1e3,Ps=0,da=900*1e3;function Rr(){return Date.now()<Ps}function Cr(t){t?.startsWith("HTTP_4")&&(Ps=Date.now()+da);}var Rs=new Set;function kr(t){return `mushi_rewards_consent_${t}`}function pa(t){try{return localStorage.getItem(kr(t))==="1"}catch{return false}}function Er(t,e){try{e?localStorage.setItem(kr(t),"1"):localStorage.removeItem(kr(t)),Ke=e;}catch{}}function Ds(){return new Date().toISOString().slice(0,10)}function Hs(t){try{let e=sessionStorage.getItem(`${Is}${t}_${Ds()}`);return e?parseInt(e,10):0}catch{return 0}}function ha(t){let e=Ds(),r=`${Is}${t}_${e}`;try{let n=Hs(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Os(t){ht=t.client,Ue=t.userId,As=t.traits??null,Sr=t.reporterToken??null;let{projectId:e}=t,r=Math.max(ia,t.config.flushIntervalMs??aa);t.config.consentMode==="auto"?(Ke=true,Er(e,true)):Ke=pa(e),t.config.trackActivity&&ga(e),xr&&clearInterval(xr),xr=setInterval(()=>ma(t),r),wr&&clearInterval(wr),wr=setInterval(()=>{if(!Ke||!Ue)return;let n=Hs(e);n<ca&&(ha(e),tt({action:"session_minute",metadata:{minutes_today:n+1}}));},la),t.config.showInWidget&&Tr(Ue).then(n=>{n&&Us(n,t.config);}),t.config.consentMode!=="auto"&&!Ke&&ba(e,t.config);}function tt(t){!Ke||!Ue||pt.push({...t,queuedAt:Date.now()});}async function ma(t){if(!Ke||!Ue||pt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Rr())return;let r=pt.splice(0,100);try{let n=Sr?await ar(Sr):void 0,s=await t.client.submitActivity(Ue,r,{userTraits:As??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(Cr(s.error?.code),s.error?.code?.startsWith("HTTP_4")||pt.unshift(...r.slice(0,50)));}catch{pt.unshift(...r.slice(0,50));}}async function Bs(t){let e=Date.now();return qt&&e-_s<ua?qt:Tr(t)}async function Tr(t){if(!ht||Rr())return null;let e=await ht.getMyTier(t);return e.ok&&e.data?(qt=e.data,_s=Date.now(),qt):(Cr(e.error?.code),null)}async function Ns(t=10){if(!ht||Rr())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})):(Cr(e.error?.code),null)}catch{return null}}var Cs=null,Ts=null,Ms=null,$s="",Ls=false;function ga(t){if(Ls)return;Ls=true;let e=()=>{let n=location.pathname;if(n===$s)return;$s=n,!Rs.has(`${t}:${n}`)&&(Rs.add(`${t}:${n}`),tt({action:"screen_view_unique_per_day",metadata:{route:n}}));};Ms=history.pushState.bind(history),history.pushState=function(...n){Ms(...n),e();},window.addEventListener("popstate",e),e(),Cs=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;Cs.observe(r,{childList:true,subtree:false}),Ts=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&tt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",Ts,{capture:true,passive:true});}var Ve=null;function Us(t,e){if(!e.showInWidget)return;Ve&&Ve.remove(),Ve=document.createElement("div"),Ve.id="mushi-tier-badge",Object.assign(Ve.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Ve.attachShadow({mode:"closed"});r.innerHTML=`
2193
+ `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=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.step==="leaderboard"&&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.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}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,s=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:s,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 s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};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);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",m=e.zIndex??(this.config.zIndex??99999)-1,u=document.createElement("div");u.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,u.style.setProperty("--mushi-banner-z",String(m)),u.setAttribute("role","banner");let h=document.createElement("button");if(h.className="mushi-banner-dismiss",h.textContent="\u2715",h.setAttribute("aria-label","Dismiss feedback banner"),h.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let f=document.createElement("div");f.className="mushi-banner-body";let d=e.label===false?null:e.label??"Beta";if(d){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=d,f.appendChild(R);}let g=document.createElement("span");g.className="mushi-banner-message",g.textContent=s,f.appendChild(g),u.appendChild(f);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let E=(R=false)=>{let S=document.createElement("span");S.className=`mushi-banner-divider${R?" mushi-banner-extra":""}`,S.setAttribute("aria-hidden","true"),S.textContent="|",v.appendChild(S);},A=(R,S,I=false)=>{let y=document.createElement("button");y.type="button",y.className=`mushi-banner-link${I?" mushi-banner-extra":""}`,y.textContent=R,y.addEventListener("click",S),v.appendChild(y);};A(a,()=>this.open()),i&&(E(true),A(l,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let S=R.label?.trim();if(!S)continue;let I=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(E(true),I){let y=document.createElement("a");y.className="mushi-banner-link mushi-banner-extra",y.href=I,y.textContent=S,y.target="_blank",y.rel="noopener noreferrer",v.appendChild(y);}else A(S,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}E(true),A("\u{1F4EC} My reports",()=>this.openReporter(),true),u.appendChild(v),u.appendChild(h);}else {let f=document.createElement("button");if(f.className="mushi-banner-btn",f.textContent=a,f.addEventListener("click",()=>this.open()),u.appendChild(f),i){let g=document.createElement("button");g.className="mushi-banner-btn",g.textContent=l,g.addEventListener("click",()=>this.open({featureRequest:true})),u.appendChild(g);}let d=document.createElement("button");d.className="mushi-banner-my-reports",d.textContent="\u{1F4EC} My reports",d.setAttribute("aria-label","View my submitted reports"),d.addEventListener("click",()=>this.openReporter()),u.appendChild(d),u.appendChild(h);}this.shadow.appendChild(u),this.applyBodyNudge(n),this.trackBannerHeight(u,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"}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=Ss(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",l=>{let m=this.config.draggable;if(!m)return;let u=8,h=typeof m=="object"?m.axis??"both":"both",f=0,d=0;if(h!=="y"&&(l.key==="ArrowLeft"?f=-u:l.key==="ArrowRight"&&(f=u)),h!=="x"&&(l.key==="ArrowUp"?d=-u:l.key==="ArrowDown"&&(d=u)),f!==0||d!==0){l.preventDefault();let g=this.fabPos??{x:0,y:0};this.moveFab(i,g.x+f,g.y+d,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,l.x,l.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let a=this.renderCtx();o.innerHTML=`${$s(a)}${Ms(a)}${Ls(a)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);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 s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let i=window.innerHeight-a.top+e;i>n&&(n=i);}}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);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");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 i=o[a];i!==void 0&&e.style.setProperty(`--mushi-${a}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=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(s){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,s){let o=(()=>{let W=this.config.draggable;return W&&typeof W=="object"?W.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,m=e.offsetHeight||52,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,h=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,f=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,g=8,v=e.getBoundingClientRect(),E=this.fabPos?.x??0,A=this.fabPos?.y??0,R=v.left-E,S=v.top-A,I=u+g-R,y=a-h-g-l-R,w=f+g-S,C=i-d-g-m-S,x=o==="y"?0:Math.max(I,Math.min(y,r)),N=o==="x"?0:Math.max(w,Math.min(C,n)),O=x;if(s){let W=this.config.draggable;(W===true||typeof W=="object"&&(W.snapToEdge??true))&&o!=="y"&&(O=v.left+l/2<a/2?u+g-R:a-h-g-l-R);}this.fabPos={x:O,y:N},e.style.setProperty("--mushi-drag-x",`${O}px`),e.style.setProperty("--mushi-drag-y",`${N}px`),e.style.setProperty("--mushi-drag-active","1");let j=this.config.draggable;if(j===true||typeof j=="object"&&(j.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 s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,a=false,i=false,l=f=>{if(f.button!==0&&f.pointerType!=="touch")return;e.setPointerCapture(f.pointerId),r=f.clientX,n=f.clientY;let d=this.fabPos??{x:0,y:0};s=d.x,o=d.y,a=true,i=false;},m=6,u=f=>{if(!a)return;let d=f.clientX-r,g=f.clientY-n;!i&&Math.hypot(d,g)>m&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(f.preventDefault(),this.moveFab(e,s+d,o+g,false));},h=f=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let d=f.clientX-r,g=f.clientY-n;this.moveFab(e,s+d,o+g,true);let v=E=>{E.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",u),e.addEventListener("pointerup",h),e.addEventListener("pointercancel",h);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;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.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(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 s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return vr[e]??vr.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:fs()}}attachHandlers(e){let r=this.locale;Cs(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.value;i&&this.sendAssistantMessage(i);});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let i=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let m=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(m);}),i?.addEventListener("keydown",l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),a.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Er,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",a=>{let i=a.currentTarget,l=i.dataset.copyId;if(!l)return;let m=i.innerHTML,u=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=m);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(u).catch(()=>u()):u();}catch{u();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.category??"other";this.selectedCategory=i;let l=this.resolveCustomCategory(i);this.step=l&&(!l.intents||l.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(a=>{a.addEventListener("click",()=>{this.selectedIntent=a.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let a=this.effectiveMinLength(),i=()=>{let l=n.value.trim().length;s.textContent=String(l);let m=e.querySelector('[data-role="char-counter"]');m&&(m.style.color=l>=a?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let a=e.querySelector('[data-role="annotate-host"]');a&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(a);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let a=e.querySelector(".mushi-textarea"),i=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),m=this.effectiveMinLength();if(i.length<m){if(l){let h=`${r.step3.tooShort} (${i.length}/${m})`;l.textContent=h,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.render();let u=(async()=>{try{let h=this.selectedCategory,f=this.resolveBaseCategory(h),d=this.config.categories&&this.config.categories.length>0,g=this.callbacks.onSubmit({category:f,...d?{userCategory:h}:{},description:i,intent:this.selectedIntent??void 0});return g&&typeof g.then=="function"?await g??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),u.then(h=>{if(this.step!=="success")return;h&&(this.lastReportId=h.reportId??null,this.lastSubmitQueuedOffline=!!h.queuedOffline,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let f=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},f);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&Es(a)&&(a.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=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.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=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.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),await this.loadReporterComments(r);}catch(a){this.reporterError=a instanceof Error?a.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}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();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function Vt(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 Is(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Vt(t.getRecorderTrigger()),getCategoryCenter:r=>Vt(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Vt(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Vt(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 ua=3e4,da=3e5,pa=6e4,ha=60,Ps="mushi_session_min_day_",tt=[],nt=null,st=null,Oe=null,Ds=null,Mr=null,ot=null,qe=false,yt=null,Hs=0,ma=300*1e3,Ir=0,fa=900*1e3;function Ar(){return Date.now()<Ir}function _r(t){t?.startsWith("HTTP_4")&&(Ir=Date.now()+fa);}var As=new Set;function $r(t){return `mushi_rewards_consent_${t}`}function ga(t){try{return localStorage.getItem($r(t))==="1"}catch{return false}}function Lr(t,e){try{e?localStorage.setItem($r(t),"1"):localStorage.removeItem($r(t)),qe=e;}catch{}}function Os(){return new Date().toISOString().slice(0,10)}function Bs(t){try{let e=sessionStorage.getItem(`${Ps}${t}_${Os()}`);return e?parseInt(e,10):0}catch{return 0}}function ba(t){let e=Os(),r=`${Ps}${t}_${e}`;try{let n=Bs(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ns(t){ot=t.client,Oe=t.userId,Ds=t.traits??null,Mr=t.reporterToken??null;let{projectId:e}=t,r=Math.max(ua,t.config.flushIntervalMs??da);t.config.consentMode==="auto"?(qe=true,Lr(e,true)):qe=ga(e),t.config.trackActivity&&va(e),nt&&clearInterval(nt),nt=setInterval(()=>ya(t),r),st&&clearInterval(st),st=setInterval(()=>{if(!qe||!Oe)return;let n=Bs(e);n<ha&&(ba(e),it({action:"session_minute",metadata:{minutes_today:n+1}}));},pa),t.config.showInWidget&&Pr(Oe).then(n=>{n&&Ws(n,t.config);}),t.config.consentMode!=="auto"&&!qe&&wa(e,t.config);}function it(t){!qe||!Oe||tt.push({...t,queuedAt:Date.now()});}async function ya(t){if(!qe||!Oe||tt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Ar())return;let r=tt.splice(0,100);try{let n=Mr?await fr(Mr):void 0,s=await t.client.submitActivity(Oe,r,{userTraits:Ds??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(_r(s.error?.code),s.error?.code?.startsWith("HTTP_4")||tt.unshift(...r.slice(0,50)));}catch{tt.unshift(...r.slice(0,50));}}async function Us(t){let e=Date.now();return yt&&e-Hs<ma?yt:Pr(t)}async function Pr(t){if(!ot||Ar())return null;let e=await ot.getMyTier(t);return e.ok&&e.data?(yt=e.data,Hs=Date.now(),yt):(_r(e.error?.code),null)}async function Fs(t=10){if(!ot||Ar())return null;try{let e=await ot.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})):(_r(e.error?.code),null)}catch{return null}}function qs(){nt&&(clearInterval(nt),nt=null),st&&(clearInterval(st),st=null),js(),xa(),be&&(be.remove(),be=null),tt=[],Oe=null,ot=null,qe=false,yt=null,Ir=0;}var Xt=null,bt=null,Kt=null,Gt=null,rt=null,_s="",Yt=false;function va(t){if(Yt&&rt&&history.pushState===rt)return;Yt&&js(),Yt=true;let e=()=>{let s=location.pathname;if(s===_s)return;_s=s,!As.has(`${t}:${s}`)&&(As.add(`${t}:${s}`),it({action:"screen_view_unique_per_day",metadata:{route:s}}));},r=history.pushState.bind(history);Gt=r,rt=function(...s){r(...s),e();},history.pushState=rt,Kt=e,window.addEventListener("popstate",e),e(),Xt=new MutationObserver(()=>e());let n=document.querySelector("main")??document.body;Xt.observe(n,{childList:true,subtree:false}),bt=s=>{let o=s.target.closest("[data-testid]");if(!o)return;let a=o.dataset.testid;a&&it({action:"element_selected",metadata:{testid:a,route:location.pathname}});},document.addEventListener("click",bt,{capture:true,passive:true});}function js(){Yt=false,Gt&&history.pushState===rt&&(history.pushState=Gt),Gt=null,rt=null,Kt&&(window.removeEventListener("popstate",Kt),Kt=null),Xt?.disconnect(),Xt=null,bt&&(document.removeEventListener("click",bt,{capture:true}),bt=null);}var He=null;function Ws(t,e){if(!e.showInWidget)return;He&&He.remove(),He=document.createElement("div"),He.id="mushi-tier-badge",Object.assign(He.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=He.attachShadow({mode:"closed"});r.innerHTML=`
2194
2194
  <style>
2195
2195
  :host { display: block; }
2196
2196
  .badge {
@@ -2220,7 +2220,7 @@
2220
2220
  <span class="dot"></span>
2221
2221
  <span>${t.displayName}</span>
2222
2222
  </div>
2223
- `,document.body.appendChild(Ve);}var Ce=null;function ba(t,e){if(Ce)return;Ce=document.createElement("div"),Ce.id="mushi-consent-banner",Object.assign(Ce.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=Ce.attachShadow({mode:"closed"});r.innerHTML=`
2223
+ `,document.body.appendChild(He);}function xa(){He?.remove(),He=null;}var be=null;function wa(t,e){if(be)return;be=document.createElement("div"),be.id="mushi-consent-banner",Object.assign(be.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=be.attachShadow({mode:"closed"});r.innerHTML=`
2224
2224
  <style>
2225
2225
  :host { display: block; }
2226
2226
  .banner {
@@ -2255,15 +2255,15 @@
2255
2255
  <button class="decline" id="decline">No thanks</button>
2256
2256
  </div>
2257
2257
  </div>
2258
- `,r.getElementById("accept")?.addEventListener("click",()=>{Er(t,true),Ce?.remove(),Ce=null,e.showInWidget&&Ue&&Tr(Ue).then(n=>{n&&Us(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Er(t,false),Ce?.remove(),Ce=null;}),document.body.appendChild(Ce);}function Mr(){let t=[],e={},r=["log","warn","error","info","debug"];for(let n of r){let s=console[n];e[n]=s,console[n]=(...o)=>{let l=o.map(a=>{try{return typeof a=="string"?a:JSON.stringify(a)}catch{return String(a)}}).join(" ").slice(0,500),i={level:n,message:l,timestamp:Date.now()};n==="error"&&o[0]instanceof Error&&(i.stack=o[0].stack?.slice(0,1e3)),t.push(i),t.length>50&&t.shift(),s.call(console,...o);};}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let n of r)e[n]&&(console[n]=e[n]);}}}var ya=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function jt(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function zt(t,e){let r=e?.[Xe];if(r)return r;let n=wa(e?.headers,ut);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(ut);if(s)return s}return null}function Wt(t,e={}){if([...ya,...e.ignoreUrls??[]].some(s=>va(t,s)))return true;let n=xa(e.apiEndpoint);return n?$r(t).startsWith(n):false}function va(t,e){return typeof e=="string"?$r(t).includes(e):(e.lastIndex=0,e.test(t))}function xa(t){if(!t)return null;let e=$r(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function $r(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function wa(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var Sa=30,ka="00";function Ea(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(l=>l.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${ka}-${n}-${s}-01`,traceId:n,spanId:s}}function Ra(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}function Lr(t={}){let e=[],r=globalThis.fetch,n=t;globalThis.fetch=async function(l,i){let a=Date.now(),h=i?.method?.toUpperCase()??"GET",u=jt(l),b=!zt(l,i)&&!Wt(u,n),d,g=i,v=n.tracePropagation;if(b&&v?.enabled&&v.corsUrls?.length&&Ra(u,v.corsUrls)){let{traceparent:E,traceId:D}=Ea();d=D;let R=i?.headers?new Headers(i.headers):new Headers;R.set("traceparent",E),n.sessionId&&R.set("x-mushi-session",n.sessionId),g={...i,headers:R};}try{let E=await r.call(globalThis,l,g);return b&&s({method:h,url:Fs(u),status:E.status,duration:Date.now()-a,timestamp:a,...d?{traceId:d}:{}}),E}catch(E){throw b&&s({method:h,url:Fs(u),status:0,duration:Date.now()-a,timestamp:a,error:E instanceof Error?E.message:"Network error",...d?{traceId:d}:{}}),E}};function s(o){e.push(o),e.length>Sa&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(o){n=o;},destroy(){globalThis.fetch=r;}}}function Fs(t){try{let e=new URL(t),r=e.pathname+e.search;return r.length>200?e.origin+r.slice(0,200)+"...":e.origin+r}catch{return t.slice(0,200)}}function _r(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,l=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=l*i,s.scale(i,i);let a=Ta(e.privacy),h=`
2259
- <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${l}">
2258
+ `,r.getElementById("accept")?.addEventListener("click",()=>{Lr(t,true),be?.remove(),be=null,e.showInWidget&&Oe&&Pr(Oe).then(n=>{n&&Ws(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Lr(t,false),be?.remove(),be=null;}),document.body.appendChild(be);}function Dr(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let a=(...i)=>{let l=i.map(u=>{try{return typeof u=="string"?u:JSON.stringify(u)}catch{return String(u)}}).join(" ").slice(0,500),m={level:s,message:l,timestamp:Date.now()};s==="error"&&i[0]instanceof Error&&(m.stack=i[0].stack?.slice(0,1e3)),t.push(m),t.length>50&&t.shift(),o.call(console,...i);};r[s]=a,console[s]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}var Sa=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function Jt(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function Zt(t,e){let r=e?.[Xe];if(r)return r;let n=Ra(e?.headers,ft);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(ft);if(s)return s}return null}function Qt(t,e={}){if([...Sa,...e.ignoreUrls??[]].some(s=>ka(t,s)))return true;let n=Ea(e.apiEndpoint);return n?Hr(t).startsWith(n):false}function ka(t,e){return typeof e=="string"?Hr(t).includes(e):(e.lastIndex=0,e.test(t))}function Ea(t){if(!t)return null;let e=Hr(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Hr(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Ra(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var Ca=30,Ta="00";function Ma(){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),s=r(e);return {traceparent:`${Ta}-${n}-${s}-01`,traceId:n,spanId:s}}function $a(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}function Or(t={}){let e=[],r=globalThis.fetch,n=t,s;globalThis.fetch=s=async function(i,l){let m=Date.now(),u=l?.method?.toUpperCase()??"GET",h=Jt(i),d=!Zt(i,l)&&!Qt(h,n),g,v=l,E=n.tracePropagation;if(d&&E?.enabled&&E.corsUrls?.length&&$a(h,E.corsUrls)){let{traceparent:A,traceId:R}=Ma();g=R;let S=l?.headers?new Headers(l.headers):new Headers;S.set("traceparent",A),n.sessionId&&S.set("x-mushi-session",n.sessionId),v={...l,headers:S};}try{let A=await r.call(globalThis,i,v);return d&&o({method:u,url:zs(h),status:A.status,duration:Date.now()-m,timestamp:m,...g?{traceId:g}:{}}),A}catch(A){throw d&&o({method:u,url:zs(h),status:0,duration:Date.now()-m,timestamp:m,error:A instanceof Error?A.message:"Network error",...g?{traceId:g}:{}}),A}};function o(a){e.push(a),e.length>Ca&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(a){n=a;},destroy(){globalThis.fetch===s&&(globalThis.fetch=r);}}}function zs(t){try{let e=new URL(t),r=e.pathname+e.search;return r.length>200?e.origin+r.slice(0,200)+"...":e.origin+r}catch{return t.slice(0,200)}}function Ur(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,a=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=a*i,s.scale(i,i);let l=Ia(e.privacy),m=`
2259
+ <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
2260
2260
  <foreignObject width="100%" height="100%">
2261
2261
  <div xmlns="http://www.w3.org/1999/xhtml">
2262
- ${new XMLSerializer().serializeToString(a)}
2262
+ ${new XMLSerializer().serializeToString(l)}
2263
2263
  </div>
2264
2264
  </foreignObject>
2265
2265
  </svg>
2266
- `,u=new Image,m=new Blob([h],{type:"image/svg+xml;charset=utf-8"}),b=URL.createObjectURL(m);return new Promise(d=>{u.onload=()=>{try{s.drawImage(u,0,0,o,l),URL.revokeObjectURL(b);let g=n.toDataURL("image/jpeg",.7);d(g);}catch{URL.revokeObjectURL(b),e.onFailed?.("taint"),Ir("taint"),d(null);}},u.onerror=()=>{URL.revokeObjectURL(b),e.onFailed?.("error"),Ir("error"),d(null);},u.src=b;})}catch{return e.onFailed?.("error"),Ir("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Ir(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var Ca=['input[type="password"]',"[data-mushi-redact]"];function Ta(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),$a(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:Ca;for(let n of r)for(let s of Ar(e,n))Ma(s);for(let n of t?.blockSelectors??[])for(let s of Ar(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of Ar(e,n))La(s);return e}function Ar(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Ma(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 $a(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"]')){let n=r.getAttribute("href");(!n||js(n,e))&&r.remove();}for(let r of t.querySelectorAll("style")){let n=qs(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 s=qs(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function qs(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:js(o,e)?"none":r})}function js(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 La(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 Ia(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function Pr(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.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(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let l=o.interactionId;if(!l)continue;let i=r.get(l)??0;if(o.duration>i&&r.set(l,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let a=o.processingStart-o.startTime,h=o.processingEnd-o.processingStart,u=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:Ia(o.target),inputDelay:Math.max(0,a),processingDuration:Math.max(0,h),presentationDelay:Math.max(0,u)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.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 Dr(){let t=false,e=null,r=null;function n(g){let v=g,E=0;for(;v&&E<20;){let D=v.getAttribute?.("data-testid");if(D)return D;v=v.parentElement,E++;}return null}function s(g){let v=[],E=g;for(;E&&E!==document.body;){let D=1,R=E.previousElementSibling;for(;R;)R.tagName===E.tagName&&D++,R=R.previousElementSibling;let k=E.tagName.toLowerCase();v.unshift(D>1?`${k}[${D}]`:k),E=E.parentElement;}return "//"+v.join("/")}function o(g){let v=g.getBoundingClientRect();return {tagName:g.tagName.toLowerCase(),id:g.id||void 0,className:g.className||void 0,textContent:g.textContent?.trim().slice(0,200)||void 0,xpath:s(g),rect:{x:Math.round(v.x),y:Math.round(v.y),width:Math.round(v.width),height:Math.round(v.height)},nearestTestid:n(g)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let g=document.createElement("div");return g.style.cssText=`
2266
+ `,u=new Image,h=new Blob([m],{type:"image/svg+xml;charset=utf-8"}),f=URL.createObjectURL(h);return new Promise(d=>{u.onload=()=>{try{s.drawImage(u,0,0,o,a),URL.revokeObjectURL(f);let g=n.toDataURL("image/jpeg",.7);d(g);}catch{URL.revokeObjectURL(f),e.onFailed?.("taint"),Br("taint"),d(null);}},u.onerror=()=>{URL.revokeObjectURL(f),e.onFailed?.("error"),Br("error"),d(null);},u.src=f;})}catch{return e.onFailed?.("error"),Br("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Br(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var La=['input[type="password"]',"[data-mushi-redact]"];function Ia(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),_a(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:La;for(let n of r)for(let s of Nr(e,n))Aa(s);for(let n of t?.blockSelectors??[])for(let s of Nr(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of Nr(e,n))Pa(s);return e}function Nr(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Aa(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 _a(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"]')){let n=r.getAttribute("href");(!n||Ks(n,e))&&r.remove();}for(let r of t.querySelectorAll("style")){let n=Vs(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 s=Vs(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function Vs(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Ks(o,e)?"none":r})}function Ks(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 Pa(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 Da(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function Fr(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.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(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let a=o.interactionId;if(!a)continue;let i=r.get(a)??0;if(o.duration>i&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let l=o.processingStart-o.startTime,m=o.processingEnd-o.processingStart,u=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:Da(o.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,m),presentationDelay:Math.max(0,u)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.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 qr(){let t=false,e=null,r=null;function n(g){let v=g,E=0;for(;v&&E<20;){let A=v.getAttribute?.("data-testid");if(A)return A;v=v.parentElement,E++;}return null}function s(g){let v=[],E=g;for(;E&&E!==document.body;){let A=1,R=E.previousElementSibling;for(;R;)R.tagName===E.tagName&&A++,R=R.previousElementSibling;let S=E.tagName.toLowerCase();v.unshift(A>1?`${S}[${A}]`:S),E=E.parentElement;}return "//"+v.join("/")}function o(g){let v=g.getBoundingClientRect();return {tagName:g.tagName.toLowerCase(),id:g.id||void 0,className:g.className||void 0,textContent:g.textContent?.trim().slice(0,200)||void 0,xpath:s(g),rect:{x:Math.round(v.x),y:Math.round(v.y),width:Math.round(v.width),height:Math.round(v.height)},nearestTestid:n(g)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function a(){let g=document.createElement("div");return g.style.cssText=`
2267
2267
  position: fixed;
2268
2268
  pointer-events: none;
2269
2269
  z-index: 2147483647;
@@ -2272,6 +2272,6 @@
2272
2272
  border-radius: 4px;
2273
2273
  transition: all 0.1s ease;
2274
2274
  display: none;
2275
- `,document.body.appendChild(g),g}function i(g){if(!e)return;let v=g.getBoundingClientRect();e.style.left=`${v.left}px`,e.style.top=`${v.top}px`,e.style.width=`${v.width}px`,e.style.height=`${v.height}px`,e.style.display="block";}function a(g){let v=g.target;v!==e&&i(v);}function h(g){g.preventDefault(),g.stopPropagation();let v=g.target;if(v===e||(g.composedPath?g.composedPath():[]).some(k=>k instanceof Element&&k.id==="mushi-mushi-widget"))return;let R=o(v);m(R);}function u(g){g.key==="Escape"&&m(null);}function m(g){d(),r?.(g),r=null;}function b(){return t&&d(),new Promise(g=>{r=g,t=true,e=l(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",a,true),document.addEventListener("click",h,true),document.addEventListener("keydown",u,true);})}function d(){t&&(t=false,document.body.style.cursor="",document.removeEventListener("mousemove",a,true),document.removeEventListener("click",h,true),document.removeEventListener("keydown",u,true),e&&(e.remove(),e=null));}return {activate:b,deactivate:d,isActive:()=>t}}function Hr(){let t=[],e=history.pushState,r=history.replaceState,n=()=>l("popstate"),s=()=>l("hashchange");l("initial");function o(a){t.push(a),t.length>120&&t.shift();}function l(a){typeof location>"u"||o({ts:Date.now(),kind:"route",payload:{source:a,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function i(a){let h=a.target instanceof Element?a.target:null;if(!h)return;let u=h.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??h;o({ts:Date.now(),kind:"click",payload:{tag:u.tagName.toLowerCase(),id:u.id||void 0,text:Aa(u)}});}return history.pushState=function(...h){let u=e.apply(this,h);return l("pushState"),u},history.replaceState=function(...h){let u=r.apply(this,h);return l("replaceState"),u},window.addEventListener("popstate",n),window.addEventListener("hashchange",s),document.addEventListener("click",i,true),{setScreen(a){o({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,m)=>u.ts-m.ts).slice(-120)},clear(){t.length=0;},destroy(){history.pushState=e,history.replaceState=r,window.removeEventListener("popstate",n),window.removeEventListener("hashchange",s),document.removeEventListener("click",i,true);}}}function Aa(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var _a=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Pa=/^[0-9a-f]{20,}$/i,Da=/^\d+$/,Ha=/^[a-z0-9]{16,}$/i;function zs(t){return t.length===0?t:_a.test(t)||Pa.test(t)||Da.test(t)||Ha.test(t)&&/\d/.test(t)?"[id]":t}function Ws(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Oa(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(zs).join("/")}function Oa(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let l=true;for(let i=0;i<o.length;i++){let a=o[i],h=r[i];if(!(a.startsWith("[")&&a.endsWith("]"))&&!a.startsWith(":")&&a!==h){l=false;break}}if(l)return "/"+o.join("/")}return null}function Ba(){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 Na(){if(typeof window>"u")return [];try{let t=new URLSearchParams(window.location.search),e=new Set;return t.forEach((r,n)=>e.add(n)),Array.from(e).sort()}catch{return []}}function Ua(){if(typeof document>"u")return null;let t=s=>(s??"").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 Fa(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),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function Or(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,l=e.throttleMs??6e4,i=e.captureDomSummary!==false,a=e.userIdSource??"auto",h=new Map,u=null,m=null;async function b(){if(typeof window>"u")return;let I=Ws(window.location.pathname,e.routeTemplates),y=Date.now(),w=h.get(I)??0;if(y-w<l)return;h.set(I,y);let C=null;a==="auto"?C=n()??s():a==="session-only"&&(C=s());let x={route:I,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?Ua():null,testids:Ba(),network_paths:r().slice(-50),query_param_keys:Na(),user_id_hash:await Fa(C),observed_at:new Date().toISOString()};o(x);}function d(){m||(m=setTimeout(()=>{m=null,b();},100));}function g(){if(typeof window>"u")return;let I=window.location.pathname+window.location.search;I!==u&&(u=I,d());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=window.history.pushState.bind(window.history),E=window.history.replaceState.bind(window.history),D=function(...y){let w=v(...y);return g(),w},R=function(...y){let w=E(...y);return g(),w};window.history.pushState=D,window.history.replaceState=R;let k=()=>g();return window.addEventListener("popstate",k),d(),{destroy(){window.removeEventListener("popstate",k),window.history.pushState===D&&(window.history.pushState=v),window.history.replaceState===R&&(window.history.replaceState=E),m&&(clearTimeout(m),m=null),h.clear();},flushNow(){h.clear(),b();}}}function Vs(t,e,r){let n=a=>a.timestamp,s=a=>a.type===2,o=a=>a.type===4,l=Date.now()-e,i=0;for(let a=0;a<t.length;a++){let h=n(t[a]);if(typeof h=="number"&&h>=l)break;s(t[a])&&(i=o(t[a-1])?a-1:a);}if(t.length-i>r){for(let a=i+1;a<t.length;a++)if(s(t[a])&&t.length-a<=r){i=o(t[a-1])?a-1:a;break}}i>0&&t.splice(0,i);}function qa(t){let e=[],r=false,n=o=>{if(!r)return;let l=o.target instanceof Element?o.target:null,i=l?.tagName?.toLowerCase()??"unknown",a=l?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:a}}),e.length>400&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(l=>l.timestamp>=o)},destroy(){s(),e.length=0;}}}var Vt=null;async function ja(){if(Vt)return Vt;try{return Vt=await import('rrweb'),Vt}catch{return null}}async function Ks(t){let e=t.maxDurationMs??3e4,r=await ja();if(!r?.record)return qa(e);let n=r.record,s=[],o=null,l=false,i=['input[type="password"]',...t.redactSelectors??[]],a=()=>{o?.(),o=null,l=false;};return {start(){l||(l=true,o=n({emit(h){s.push(h),Vs(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:a,flush(){return Vs(s,e,400),[...s]},destroy(){a(),s.length=0;}}}function Gs(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let l=document.createElement("canvas"),i=document.createElement("canvas"),a=Math.min(1,720/s.width),h=Math.round(s.width*a),u=Math.round(s.height*a);for(let y of [l,i])y.width=h,y.height=u,y.style.width="100%",y.style.height="auto",y.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let m=l.getContext("2d"),b=i.getContext("2d");if(!m||!b){n(new Error("Canvas not supported"));return}m.drawImage(s,0,0,h,u),o.appendChild(l),o.appendChild(i),e.appendChild(o);let d="highlight",g=false,v=null,E=[],D=y=>{let w=i.getBoundingClientRect(),C="touches"in y?y.touches[0]??y.changedTouches[0]:null,x=C?C.clientX:y.clientX,N=C?C.clientY:y.clientY;return {x:(x-w.left)/w.width*h,y:(N-w.top)/w.height*u}},R=()=>{b.clearRect(0,0,h,u);for(let y of E)if(y.tool==="highlight"&&y.points.length>=2){let[w,C]=y.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(w.x,C.x),Math.min(w.y,C.y),Math.abs(C.x-w.x),Math.abs(C.y-w.y));}else if(y.tool==="arrow"&&y.points.length>=2){let[w,C]=y.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(w.x,w.y),b.lineTo(C.x,C.y),b.stroke();}},k=y=>{g=true,v=D(y);},I=y=>{if(!g||!v)return;g=false;let w=D(y);if(d==="blur"){let C=Math.min(v.x,w.x),x=Math.min(v.y,w.y),N=Math.abs(w.x-v.x),O=Math.abs(w.y-v.y);N>=1&&O>=1&&(m.filter="blur(8px)",m.drawImage(l,C,x,N,O,C,x,N,O),m.filter="none");}else E.push({tool:d,points:[v,w]});v=null,R();};i.addEventListener("mousedown",k),i.addEventListener("mouseup",I),i.addEventListener("touchstart",k,{passive:true}),i.addEventListener("touchend",I),r({canvas:l,setTool(y){d=y;},getDataUrl(){let y=document.createElement("canvas");y.width=h,y.height=u;let w=y.getContext("2d");return w?(w.drawImage(l,0,0),w.drawImage(i,0,0),y.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",k),i.removeEventListener("mouseup",I),i.removeEventListener("touchstart",k),i.removeEventListener("touchend",I),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function Ys(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function za(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Wa(){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 Br(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=Ys();if(!s)return n;n.sdk=Wa();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let h=s.getCurrentHub?.()?.getScope?.();n.eventId=h?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let a={};for(let[h,u]of Object.entries(i))(typeof u=="string"||typeof u=="number"||typeof u=="boolean")&&(a[h]=u);Object.keys(a).length>0&&(n.tags=a);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let a=i.slice(-r);n.breadcrumbs=a.map(h=>{let u=h;return {timestamp:typeof u.timestamp=="number"?u.timestamp<1e12?Math.round(u.timestamp*1e3):u.timestamp:void 0,category:typeof u.category=="string"?u.category:void 0,level:typeof u.level=="string"?u.level:void 0,message:typeof u.message=="string"?u.message:void 0,type:typeof u.type=="string"?u.type:void 0,data:u.data&&typeof u.data=="object"?u.data:void 0}});}}catch{}}try{let i=s,a;if(typeof i.getActiveSpan=="function"?a=i.getActiveSpan():o?.getSpan&&(a=o.getSpan()),a){let h=a.spanContext?.();n.traceId=h?.traceId??a.traceId??void 0,n.spanId=h?.spanId??a.spanId??void 0;}}catch{}let l;try{let i=s;typeof i.getClient=="function"?l=i.getClient():l=s.getCurrentHub?.()?.getClient?.();}catch{}if(l){try{let i=l.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=l.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let a=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${a}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let a=s.getReplay?.()??za();n.replayId=a?.getReplayId?.()??void 0;}catch{}return n}function Nr(t,e={}){let r=Ys();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 s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Va=["/login","/logout","/signup","/sso/*","/auth/*"];function Js(t,e={}){let r=[];if(e.rageClick!==false){let v=function(E){let D=Date.now();if(E.target===g){if(d.push(D),d=d.filter(R=>D-R<500),d.length>=3){let R=E.target;t.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),d=[];}}else g=E.target,d=[D];};let d=[],g=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let d=new PerformanceObserver(g=>{for(let v of g.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});d.observe({entryTypes:["longtask"]}),r.push(()=>d.disconnect());}catch{}let n=Ka(e.apiCascade);if(n.enabled){let d=[],g=globalThis.fetch;globalThis.fetch=async function(...v){let[E,D]=v,R=jt(E),k=!!zt(E,D)||Wt(R,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let I=await g.apply(this,v);return !k&&!I.ok&&I.status>=400&&Xs(d,t),I}catch(I){throw k||Xs(d,t),I}},r.push(()=>{globalThis.fetch=g;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let R=function(O){return v.some(j=>j.endsWith("/*")?O.startsWith(j.slice(0,-2)):O===j||O.startsWith(j+"/"))},k=function(){let O=window.location?.pathname??"";R(O)||t.onTrigger("page_dwell",{thresholdMs:g,path:O});},I=function(){E&&clearTimeout(E);let O=window.location?.pathname??"";R(O)||(E=setTimeout(k,g));},y=function(){let O=window.location?.pathname??"";O!==D&&(D=O,I());};let d=typeof e.pageDwell=="object"?e.pageDwell??{}:{},g=d.thresholdMs||300*1e3,v=d.excludeRoutes!==void 0?d.excludeRoutes:Va,E=null,D=window.location?.pathname??"";I();let w=window.history,C=w?.pushState,x=w?.replaceState;w&&C&&x&&(w.pushState=function(...O){let j=C.apply(this,O);return y(),j},w.replaceState=function(...O){let j=x.apply(this,O);return y(),j});let N=()=>y();window.addEventListener("popstate",N),r.push(()=>{E&&clearTimeout(E),window.removeEventListener("popstate",N),w&&C&&(w.pushState=C),w&&x&&(w.replaceState=x);});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let d=typeof e.firstSession=="object"?e.firstSession??{}:{},g=d.delayMs??45*1e3,v=d.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),E=false;try{E=window.localStorage?.getItem(v)==="1";}catch{}if(!E){let D=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:g});},g);r.push(()=>clearTimeout(D));}}if(e.errorBoundary){let d=function(v){t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},g=function(v){t.onTrigger("error_boundary",{message:v.reason instanceof Error?v.reason.message:String(v.reason),type:"unhandled_rejection"});};window.addEventListener("error",d),window.addEventListener("unhandledrejection",g),r.push(()=>{window.removeEventListener("error",d),window.removeEventListener("unhandledrejection",g);});}return {destroy(){r.forEach(d=>d());}}}function Ka(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Xs(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var Zs="mushi:lastDismiss",Kt="mushi:consecDismiss",Ur="mushi:lastShown";function Gt(t){try{return localStorage.getItem(t)}catch{return null}}function Yt(t,e){try{localStorage.setItem(t,e);}catch{}}function Qs(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,l=new Set;function i(m){let b=Date.now();if(parseInt(Gt(Kt)??"0",10)>=n)return false;let g=Gt(Zs);if(g&&b-parseInt(g,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=Gt(Ur);if(v&&b-parseInt(v,10)<s)return false}return o>=e||l.has(m)?false:(l.add(m),o++,Yt(Ur,String(b)),true)}function a(){Yt(Zs,String(Date.now()));let m=parseInt(Gt(Kt)??"0",10);Yt(Kt,String(m+1));}function h(){Yt(Kt,"0");}function u(){o=0,l.clear();try{localStorage.removeItem(Ur);}catch{}}return {shouldShow:i,recordDismissal:a,recordSubmission:h,reset:u}}function eo(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Te=null,Xt=class{constructor(){}static init(e){if(Te)return At({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Te;if(typeof document>"u"||typeof window>"u")return ro();let r={...On(),...e};if(!r.projectId)throw new Error("[mushi] projectId is required \u2014 set NEXT_PUBLIC_MUSHI_PROJECT_ID / VITE_MUSHI_PROJECT_ID / MUSHI_PROJECT_ID or pass it explicitly");if(!r.apiKey)throw new Error("[mushi] apiKey is required \u2014 set NEXT_PUBLIC_MUSHI_API_KEY / VITE_MUSHI_API_KEY / MUSHI_API_KEY or pass it explicitly");return r.enabled===false?ro():(Te=Ga(r),Te)}static getInstance(){return Te}static destroy(){Te?.destroy(),Te=null;}static diagnose(){return Te?.diagnose()??qr()}};function Ga(t){let e=Xa(t),r=e.projectId,n=()=>de(r),s=e,o=t.debug??false?At({scope:"mushi",level:"debug",format:"pretty"}):lr,l=null,i=null,a=Hn({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}:{},getUserToken:()=>l,sdkPackage:De,sdkVersion:fe}),h=Bn(e.preFilter),u=jn(e.offline),m=Wn({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),b=Vn();function d(c){return c.map(p=>{let S={...p};if(typeof p.message=="string"&&(S.message=b.scrub(p.message)),p.data&&typeof p.data=="object"){let H={};for(let[M,U]of Object.entries(p.data))H[M]=typeof U=="string"?b.scrub(U):U;S.data=H;}return S})}function g(c){if(!c)return;let p={};for(let[S,H]of Object.entries(c))p[S]=typeof H=="string"?b.scrub(H):H;return p}let v=null,E=null,D=null,R=null,k=null,I=null,y=Hr(),w=null,C=0,x,N=`mushi:tester-jwt:${e.projectId}`;function O(){try{return typeof localStorage<"u"?localStorage.getItem(N):null}catch{return null}}function J(){try{typeof localStorage<"u"&&localStorage.removeItem(N);}catch{}}async function z(c){let p=await a.getTesterStatus(c);if(!p.ok||!p.data){J();return}let S=p.data;if(!S.is_tester||!S.tester_id){J();return}x.setTesterSession(c,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let H=await a.getMyReputation(c);if(H.ok&&H.data){let M=H.data;M.reputation&&x.setTesterReputation(M.reputation);}}function K(){if(s.capture?.console!==false?v??=Mr():(v?.destroy(),v=null),s.capture?.network!==false){let M={apiEndpoint:Fr(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:dt()};E?E.updateOptions(M):E=Lr(M);}else E?.destroy(),E=null;if(s.capture?.performance!==false?D??=Pr():(D?.destroy(),D=null),s.capture?.screenshot!=="off"){let M={privacy:s.privacy};s.capture?.screenshotProvider?R=null:R?R.updateOptions(M):R=_r(M);}else R=null;!R&&!s.capture?.screenshotProvider&&($=null),x.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?k??=Dr():(k?.deactivate(),k=null,ee=null);let c=s.capture?.discoverInventory,p=c===true?{}:c&&typeof c=="object"?c:null;p!=null&&p.enabled!==false?(I?.destroy(),I=Or({config:p,getRecentNetworkPaths:()=>E?E.getEntries().map(M=>{try{let U=new URL(M.url,typeof window<"u"?window.location.href:"http://localhost");return U.host&&typeof window<"u"&&U.host!==window.location.host?null:U.pathname}catch{return null}}).filter(M=>M!=null&&M.length>0&&M.length<200):[],getUserId:()=>T?.id??null,getSessionId:dt,onEvent:M=>{a.postDiscoveryEvent({...M,sdk_version:fe}).catch(U=>{o.debug("discovery emit failed",{err:String(U)});});}})):(I?.destroy(),I=null);let H=s.capture?.replay??"off";if(H==="rrweb"||H==="lite"){let M=++C;Ks({redactSelectors:s.privacy?.redactSelectors}).then(U=>{if(M!==C){U.destroy();return}w?.destroy(),w=U,w.start();});}else C++,w?.destroy(),w=null;}let B=new Map;function _(c,p){B.get(c)?.forEach(S=>S({type:c,data:p}));}let $=null,ee=null,Q=null,L=false,A=true,P=null,F=null,T=null,pe=null,He={},oe={},q=Kn({max:50});q.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let te=null;te=al(q);let ie=false;function Me(){x.refreshReporterInboxQuiet();}function W(){P&&clearInterval(P),P=null,F&&typeof document<"u"&&document.removeEventListener("visibilitychange",F),F=null;}function rt(){if(W(),!A)return;P=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||Me();},6e4),typeof document<"u"&&(F=()=>{document.visibilityState==="visible"&&Me();},document.addEventListener("visibilitychange",F)),Me();}function mt(c,p){if(!s.rewards?.enabled)return;let S={client:a,config:s.rewards,projectId:r,userId:c,traits:p,reporterToken:n()};Os(S),s.rewards.showInWidget!==false&&a.getMyPoints(c).then(H=>{if(!H.ok)return;let M=H.data;x.setRewardsState({tier:M.tier?{slug:M.tier.slug??"free",displayName:M.tier.display_name??"Free",pointsThreshold:M.tier.points_threshold??0}:null,nextTier:M.next_tier?{displayName:M.next_tier.display_name??"",pointsThreshold:M.next_tier.points_threshold??0}:null,totalPoints:M.total_points??0,pointsForReport:M.report_submit_pts??50});}).catch(()=>{});}async function Fe(){if(ie)return null;let c=s.capture?.screenshotProvider;if(c){ie=true;try{let M=await c();if(M)return M}catch(M){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:M instanceof Error?M.message:String(M)});}finally{ie=false;}}if(!R)return null;ie=true;let p=x.getIsOpen();p&&x.hidePanel();let S=document.getElementById("mushi-mushi-widget"),H=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise(M=>{requestAnimationFrame(()=>requestAnimationFrame(()=>M()));});try{return await R.take()}finally{ie=false,S&&(S.style.visibility=H),p&&x.showPanel();}}async function Jt(c){let p=s.capture?.screenshot;!(R||s.capture?.screenshotProvider)||p==="off"||$||c==="open"&&p!=="auto"||c==="submit"&&p!=="on-report"&&p!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:p}),$=await Fe(),x.setScreenshotAttached($!==null),x.setScreenshotPreview($));}x=new Ut(e.widget,{onSubmit:async({category:c,userCategory:p,description:S,intent:H})=>(o.info("Report submitted",{category:c,userCategory:p,intent:H}),nt?.recordSubmission(),await Jt("submit"),await io(c,S,H,p)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),Jt("open"),w?.start(),_("widget:opened");},onClose:()=>{o.debug("Widget closed"),Q&&(nt?.recordDismissal(),_("proactive:dismissed",{type:Q})),$=null,ee=null,Q=null,_("widget:closed");},onScreenshotRequest:async()=>{!(R||s.capture?.screenshotProvider)||s.capture?.screenshot==="off"||(o.debug("Taking screenshot"),$=await Fe(),x.setScreenshotAttached($!==null),x.setScreenshotPreview($));},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),$=null,x.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!$||c.childElementCount>0)return;let p;try{p=await Gs($,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let S=document.createElement("div");S.className="mushi-annotate-toolbar";let H=re=>{($=p.getDataUrl(),x.setScreenshotAttached(true),x.setScreenshotPreview($)),p.destroy(),S.remove();},M=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of M){let G=document.createElement("button");G.type="button",G.className="mushi-attach-btn",G.dataset.tool=re.id,G.textContent=re.label,G.addEventListener("click",()=>{p.setTool(re.id),S.querySelectorAll("button[data-tool]").forEach(ae=>ae.classList.remove("active")),G.classList.add("active");}),S.appendChild(G);}S.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",()=>H()),S.appendChild(U),c.insertBefore(S,c.firstChild);},onElementSelectorRequest:async()=>{if(!(!k||s.capture?.elementSelector===false)){o.debug("Element selector activated"),x.setElementCapturing(true),x.hidePanel();try{let c=await k.activate();c?(ee=c,x.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):x.setElementCapturing(!1);}finally{x.showPanel();}}},async onReporterReportsRequest(){let c=await a.listReporterReports(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let p=await a.listReporterComments(c,de(r));if(!p.ok)throw new Error(p.error?.message??"Could not load thread");return p.data?.comments??[]},async onReporterReply(c,p){let S=await a.replyToReporterReport(c,de(r),p);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(c,p,S){let H=await a.replyToReporterReport(c,de(r),S??"",p);if(!H.ok)throw new Error(H.error?.message??"Could not send feedback");return H.data?.feedback??null},async onReporterReopen(c,p){let S=await a.reopenReporterReport(c,de(r),p);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.data?.outcome??null},async onFeatureBoardRequest(){let c=await a.listReporterFeatureBoard(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let p=await a.voteReporterFeatureBoard(c,de(r));if(!p.ok)throw new Error(p.error?.message??"Could not vote");return p.data??{voted:true,action:"added"}},onLeaderboardOpen(){x.setLeaderboard(null,true),Ns(10).then(c=>{x.setLeaderboard(c,false);});},async onMushiSignIn(c){let p=await a.sendMagicLink(c);if(!p.ok)throw new Error(p.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){x.setGlobalLeaderboard(null,true);try{let c=O(),p=await a.getPublicLeaderboard(50),H=(p.ok?p.data?.leaderboard??[]:[]).map(M=>({tester_id:M.tester_id,rank:M.rank,public_handle:M.public_handle,display_name:M.display_name,points_30d:M.points_30d,total_points:M.total_points??0,badge:M.badge_slug}));if(x.setGlobalLeaderboard(H,!1),c){let M=await a.getMyReputation(c);if(M.ok&&M.data){let U=M.data;U.reputation&&x.setTesterReputation(U.reputation);}}}catch{x.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=O();if(!c){x.setCrossAppReports([],false);return}try{let p=await a.getCrossAppReports(c),S=p.ok?p.data?.reports??[]:[];x.setCrossAppReports(S,!1);}catch{x.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(c,p){let S=await a.askAssistant({message:c,threadId:p,context:i});return S.ok?S.data??null:null}},fe),K(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>x.mount()):x.mount());let zr=O();zr&&z(zr).catch(()=>J());let Wr=null,nt=null,Z=s.proactive;Z&&(Z.rageClick!==false||Z.longTask!==false||Z.apiCascade!==false||Z.errorBoundary===true||Z.pageDwell||Z.firstSession)&&typeof document<"u"&&(nt=Qs(Z?.cooldown),Wr=Js({onTrigger:(c,p)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!nt.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:p}),Q=c,_("proactive:triggered",{type:c,context:p}),c==="first_session"?x.pulseTrigger?.():x.open();}},{rageClick:Z?.rageClick,longTask:Z?.longTask,apiCascade:Z?.apiCascade,apiEndpoint:Fr(s),errorBoundary:Z?.errorBoundary,pageDwell:Z?.pageDwell,firstSession:Z?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:Z?.rageClick!==false,longTask:Z?.longTask!==false,apiCascade:Z?.apiCascade!==false,errorBoundary:Z?.errorBoundary===true,pageDwell:!!Z?.pageDwell,firstSession:!!Z?.firstSession})),u.startAutoSync(a),u.flush(a).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function Zt(c){if(L=true,A=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,nl(t.projectId),K(),x.updateConfig(s.widget),W(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=Ya(s,c),K(),c.widget&&x.updateConfig(s.widget),A?rt():W(),o.debug("Applied runtime SDK config",{version:c.version});}if(Za(t)){let c=tl(t.projectId);c&&Zt(c),a.getSdkConfig().then(p=>{p.ok&&p.data?(rl(t.projectId,p.data),Zt(p.data)):p.error&&o.debug("Runtime SDK config unavailable",p.error);}).catch(p=>{o.debug("Runtime SDK config fetch failed",{error:p instanceof Error?p.message:String(p)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");oo(),rt(),o.info("Initialized",{projectId:t.projectId});async function oo(){if(s.widget?.outdatedBanner==="off")return;let c=sl(De);c&&Vr(c);let p=await a.getLatestSdkVersion(De);!p.ok||!p.data||(ol(De,p.data),Vr(p.data));}function Vr(c){let p=c.latest,S=!!(p&&il(fe,p));if(!S&&!c.deprecated)return;let H=c.deprecationMessage??(S?`Update ${De} to ${p}.`:null);o.warn("Mushi SDK is outdated",{package:De,current:fe,latest:p,deprecated:c.deprecated,message:H}),s.widget?.outdatedBanner!=="console-only"&&x.setSdkFreshness({latest:p,current:fe,deprecated:c.deprecated,message:H});}async function io(c,p,S,H){let M=h.check(p);if(!M.passed){o.info("Report blocked by pre-filter",{reason:M.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let X=await U.classify({description:p,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:$!==null,hasSelectedElement:ee!==null,hasNetworkErrors:E?.getEntries()?.some(ye=>ye.status>=400||!!ye.error)??!1,hasConsoleErrors:v?.getEntries()?.some(ye=>ye.level==="error")??!1,proactiveTrigger:Q??void 0});if(X.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:X.modelId,confidence:X.confidence,reason:X.reason});return}o.debug("On-device classifier verdict",{...X});}catch(X){o.warn("On-device classifier threw \u2014 falling through to server",{error:X instanceof Error?X.message:String(X)});}if(!m.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let re=b.scrub(h.truncate(p)),G=t.sentry?Br(t.sentry):void 0,ae=await zn().catch(()=>null),be=s.capture?.console===false?void 0:v?.getEntries(),$e=s.capture?.network===false?void 0:E?.getEntries(),Le=d(q.getAll()),ft=g(Object.keys(oe).length>0?{...oe}:void 0),Xr=G?{...G,...G.breadcrumbs?{breadcrumbs:d(G.breadcrumbs)}:{},...G.tags?{tags:g(G.tags)}:{}}:void 0,Jr=$?await us($).catch(()=>null):null;$&&!Jr&&o.warn("Screenshot dropped \u2014 could not compress under wire budget");let Zr=cr(),we={id:ur(),projectId:t.projectId,category:c,...H?{userCategory:H}:{},description:re,userIntent:S,environment:Zr,consoleLogs:be,networkLogs:$e,performanceMetrics:s.capture?.performance===false?void 0:D?.getMetrics(),timeline:y.getEntries({consoleLogs:be,networkLogs:$e}),screenshotDataUrl:Jr??void 0,selectedElement:ee??void 0,...w?{replayEvents:w.flush()}:{},metadata:{...He,...T?{user:T}:{},...G?.release?{sentryRelease:G.release}:{}},sessionId:dt(),reporterToken:de(r),...ae?{fingerprintHash:ae}:{},appVersion:eo(s,Zr),sdkPackage:De,sdkVersion:fe,proactiveTrigger:Q??void 0,...Le.length>0?{breadcrumbs:Le}:{},...ft?{tags:ft}:{},...Xr?{sentryContext:Xr}:{},sentryEventId:G?.eventId,sentryReplayId:G?.replayId,createdAt:new Date().toISOString()};if(q.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:we.id,category:c}}),t.integrations?.custom){let X={addMetadata(ye,ao){we.metadata[ye]=ao;},setCategory(ye){we.category=ye;},setDescription(ye){we.description=ye;}};t.integrations.custom(X);}let V=we;if(t.beforeSendFeedback)try{let X=await Promise.race([Promise.resolve(t.beforeSendFeedback(we)),new Promise(ye=>setTimeout(()=>ye(we),2e3))]);if(X===null){o.info("Report dropped by beforeSendFeedback hook",{reportId:we.id});return}V=X;}catch(X){o.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:X instanceof Error?X.message:String(X)});}if(_("report:submitted",{reportId:V.id}),typeof navigator<"u"&&!navigator.onLine)return await u.enqueue(V),o.info("Offline \u2014 report queued",{reportId:V.id}),_("report:queued",{reportId:V.id}),{reportId:null,queuedOffline:true};let Y=await a.submitReport(V);if(!Y.ok&&Y.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(V.replayEvents)&&V.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:V.id}),V={...V,replayEvents:void 0},Y=await a.submitReport(V)),!Y.ok&&Y.error?.code==="PAYLOAD_TOO_LARGE"&&V.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:V.id}),V={...V,screenshotDataUrl:void 0},Y=await a.submitReport(V))),Y.ok){if(o.info("Report sent",{reportId:Y.data?.reportId}),_("report:sent",{reportId:Y.data?.reportId}),Me(),Y.data?.cursorAgentId){let X=Y.data;_("report:dispatched",{reportId:X.reportId,agentId:X.cursorAgentId,fixId:X.fixId});}q.add({category:"lifecycle",level:"info",message:`Mushi report sent (${Y.data?.reportId??we.id})`}),tt({action:"report_submit",metadata:{category:c,reportId:Y.data?.reportId??we.id}});try{t.sentry&&Y.data?.reportId&&Nr(Y.data.reportId);}catch{}}else Y.error?.code==="PAYLOAD_TOO_LARGE"||Y.error?.code==="SERIALIZE_FAILED"?(o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:V.id,error:Y.error}),_("report:failed",{reportId:V.id,error:Y.error}),q.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${V.id})`})):(o.warn("Report failed, queuing for retry",{reportId:V.id,error:Y.error}),await u.enqueue(V),_("report:failed",{reportId:V.id,error:Y.error}),q.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${V.id})`}));return $=null,ee=null,Q=null,Y?.ok?{reportId:Y.data?.reportId??we.id,queuedOffline:false}:{reportId:null,queuedOffline:true}}let Kr={report(c){x.open(c);},on(c,p){return B.has(c)||B.set(c,new Set),B.get(c).add(p),()=>B.get(c)?.delete(p)},setUser(c){T=c;},setMetadata(c,p){He[c]=p;},setScreen(c){y.setScreen(c);},isOpen(){return x.getIsOpen()},open(){x.open();},openWith(c){x.open({category:c});},show(){x.showTrigger();},hide(){x.hideTrigger();},attachTo(c,p){return x.attachTo(c,p)},setTrigger(c){x.setTrigger(c);},openReporter(){x.openReporter();},close(){x.close();},updateConfig(c){Zt(c);},diagnose(){return Qa({apiEndpoint:Fr(s),widgetMounted:x.getIsMounted(),runtimeConfigLoaded:L,captureScreenshotAvailable:R!==null,captureNetworkIntercepting:E!==null,widgetDiagnostics:x.getWidgetDiagnostics()})},destroy(){Wr?.destroy(),nt?.reset(),x.destroy(),v?.destroy(),E?.destroy(),D?.destroy(),k?.deactivate(),y.destroy(),I?.destroy(),I=null,w?.destroy(),w=null,u.stopAutoSync(),W(),te?.(),te=null,q.clear(),B.clear(),Te=null,o.debug("Destroyed");},async captureEvent(c){if(!m.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let p=b.scrub(h.truncate(c.description)),S=c.category??"bug",H=t.sentry?Br(t.sentry):void 0,M=d(q.getAll()),U=g(Object.keys(oe).length===0&&!c.tags?void 0:{...oe,...c.tags??{}}),re=H?{...H,...H.breadcrumbs?{breadcrumbs:d(H.breadcrumbs)}:{},...H.tags?{tags:g(H.tags)}:{}}:void 0,G=cr(),ae={id:ur(),projectId:t.projectId,category:S,description:p,environment:G,timeline:y.getEntries(),metadata:{...c.metadata??{},...T?{user:T}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...M.length>0?{breadcrumbs:M}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...re?{sentryContext:re}:{},sessionId:dt(),reporterToken:de(r),appVersion:eo(s,G),sdkPackage:De,sdkVersion:fe,sentryEventId:H?.eventId,sentryReplayId:H?.replayId,createdAt:new Date().toISOString()},be=ae;if(s.beforeSendFeedback)try{let Le=await Promise.race([Promise.resolve(s.beforeSendFeedback(ae)),new Promise(ft=>setTimeout(()=>ft(ae),2e3))]);if(Le===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:ae.id}),null;be=Le;}catch(Le){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Le instanceof Error?Le.message:String(Le)});}if(_("report:submitted",{reportId:be.id}),typeof navigator<"u"&&!navigator.onLine)return await u.enqueue(be),_("report:queued",{reportId:be.id}),null;let $e=await a.submitReport(be);if($e.ok){_("report:sent",{reportId:$e.data?.reportId});try{t.sentry&&$e.data?.reportId&&Nr($e.data.reportId);}catch{}return $e.data?.reportId??null}return await u.enqueue(be),_("report:failed",{reportId:be.id,error:$e.error}),null},async captureException(c,p){let S=Gn(c);q.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let H=p?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return Kr.captureEvent({description:H,category:p?.category??"bug",severity:p?.severity??"high",...p?.component?{component:p.component}:{},...p?.tags?{tags:p.tags}:{},source:p?.source??"captureException",error:{name:S.name,message:S.message,...S.stack?{stack:S.stack}:{}},metadata:{...p?.metadata??{},...S.cause?{cause:S.cause}:{}}})},identify(c,p){let S=`${c}::${p?JSON.stringify(p):""}`;if(S!==pe){if(pe=S,T={id:c,...p?.email?{email:p.email}:{},...p?.name?{name:p.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),p)for(let[H,M]of Object.entries(p))H!=="email"&&H!=="name"&&(He[`user.${H}`]=M);q.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),mt(c,p?{email:p.email,name:p.name,provider:p.provider}:void 0);}},identifyWithToken(c){if(l=c&&typeof c=="string"?c:null,l){let p=ts(l);if(p?.sub){if(T?.id===p.sub){q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}T={id:p.sub,...p.email?{email:p.email}:{},...p.name?{name:p.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),mt(T.id,{email:T.email,name:T.name});}q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else T=null,pe=null,x.setIdentifiedUser(null),q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){x.openAssistantTab();},addBreadcrumb(c){q.add(c);},getBreadcrumbs(){return q.getAll()},setTag(c,p){typeof c!="string"||c.length===0||(oe[c]=p);},setTags(c){if(!(!c||typeof c!="object"))for(let[p,S]of Object.entries(c))typeof p=="string"&&p.length>0&&(oe[p]=S);},clearTag(c){if(typeof c=="string"&&c.length>0){delete oe[c];return}for(let p of Object.keys(oe))delete oe[p];},async getReputation(){if(!T?.id)return null;let c=await a.getMyPoints(T.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return T?.id?Bs(T.id):null},recordActivity(c,p){s.rewards?.enabled&&tt({action:c,metadata:p});},pulseTrigger(){x.pulseTrigger?.();},async listMyReports(){let c=await a.listReporterReports(de(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let p=await a.listReporterComments(c,de(r));return p.ok?p.data?.comments??[]:[]},async replyToReport(c,p){let S=await a.replyToReporterReport(c,de(r),p);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(c,p,S){let H=await a.replyToReporterReport(c,de(r),S??"",p);return H.ok?H.data?.feedback??null:null},async reopenReport(c,p){let S=await a.reopenReporterReport(c,de(r),p);return S.ok?S.data?.outcome??null:null},openMyReports(){x.recorderOpenMyReports();},async getHallOfFame(c=20){let p=await a.getHallOfFame(c);return p.ok?p.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Es(x),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",p=null;try{let S=localStorage.getItem(c);p=S===null?null:S==="unfinished",localStorage.setItem(c,"unfinished");}catch{p=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(p);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}let Gr={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},Yr=(c,p)=>{let S=p instanceof Error?p.message:String(p);o.debug(`Mushi.${c}() failed (swallowed)`,{error:S});try{q.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:S}});}catch{}};return (c=>new Proxy(c,{get(p,S,H){let M=Reflect.get(p,S,H);if(typeof M!="function")return M;let U=String(S),re=()=>U==="diagnose"?qr():U in Gr?Gr[U]:void 0;return (...G)=>{try{let ae=M.apply(p,G);return ae&&typeof ae.then=="function"?ae.catch(be=>(Yr(U,be),re())):ae}catch(ae){return Yr(U,ae),re()}}}}))(Kr)}function Ya(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=n??e.widget?.trigger??(r==="none"||r==="shake"?"manual":void 0),o=n==="hidden"||e.widget?.trigger==="hidden",l=t.widget?.trigger,i=s==="hidden"&&!o&&l&&l!=="hidden"?l:s,a=e.widget,h=a?.bannerVariant,u=a?.bannerPosition,m=a?.bannerMessage,b=a?.bannerLabel,d=a?.bannerBugCta,g=a?.bannerFeatureCta,v=h||u||m!=null||b!=null||d!=null||g!=null?{...t.widget?.bannerConfig??{},...h?{variant:h}:{},...u?{position:u}:{},...m!=null?{message:m}:{},...b!=null?{label:b===""?false:b}:{},...d!=null?{bugCta:d??void 0}:{},...g!=null?{featureCta:g}:{}}:void 0;return {...t,widget:{...t.widget,...e.widget,...i?{trigger:i}:{},...v?{bannerConfig:v}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:{...t.capture,...e.capture},privacy:{...t.privacy}}}function Xa(t){if(!t.preset)return t;let e=Ja(t.preset);return {...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}}function Ja(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}}}}function Fr(t){return t.apiEndpoint??It}function Za(t){return t.runtimeConfig!==false}async function Qa(t){let e=await el(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:fe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function qr(){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:fe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function el(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}:{},[Xe]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function jr(t){return `mushi:sdk-config:${t}`}function so(t){return `mushi:sdk-version:${t}`}function tl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(jr(t));return e?JSON.parse(e).config??null:null}catch{return null}}function rl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(jr(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function nl(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(jr(t));}catch{}}function sl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(so(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 ol(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(so(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function il(t,e){let r=to(t),n=to(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,l=n[s]??0;if(o<l)return true;if(o>l)return false}return false}function to(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function ro(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:qr,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Te=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function al(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=l=>{t.add({category:"navigation",level:"info",message:`${l}: ${window.location.pathname}`,data:{url:window.location.href,kind:l}});},n=()=>r("popstate");window.addEventListener("popstate",n,{passive:!0}),e.push(()=>window.removeEventListener("popstate",n));let s=window.history.pushState,o=window.history.replaceState;window.history.pushState=function(...i){let a=s.apply(this,i);try{r("pushState");}catch{}return a},window.history.replaceState=function(...i){let a=o.apply(this,i);try{r("replaceState");}catch{}return a},e.push(()=>{window.history.pushState=s,window.history.replaceState=o;});}catch{}try{let r=console.error,n=console.warn;console.error=function(...s){try{t.add({category:"console",level:"error",message:s.map(no).join(" ")});}catch{}return r.apply(this,s)},console.warn=function(...s){try{t.add({category:"console",level:"warning",message:s.map(no).join(" ")});}catch{}return n.apply(this,s)},e.push(()=>{console.error=r,console.warn=n;});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,l=0;for(;o&&l<10;){let i=o.getAttribute("data-testid");if(i){let a=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${a?` \u2014 ${a}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,l++;}}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 no(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 ll(){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 cl(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 s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let l={projectId:e,apiKey:r};return t.endpoint&&(l.apiEndpoint=t.endpoint),t.debug==="true"&&(l.debug=true),Object.keys(n).length>0&&(l.widget=n),l}function ul(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=ll();if(!e)return;let r=cl(e.dataset);if(r){t.__mushiLoaderInit=true;try{Xt.init(r);}catch{}}}ul();
2275
+ `,document.body.appendChild(g),g}function i(g){if(!e)return;let v=g.getBoundingClientRect();e.style.left=`${v.left}px`,e.style.top=`${v.top}px`,e.style.width=`${v.width}px`,e.style.height=`${v.height}px`,e.style.display="block";}function l(g){let v=g.target;v!==e&&i(v);}function m(g){g.preventDefault(),g.stopPropagation();let v=g.target;if(v===e||(g.composedPath?g.composedPath():[]).some(S=>S instanceof Element&&S.id==="mushi-mushi-widget"))return;let R=o(v);h(R);}function u(g){g.key==="Escape"&&h(null);}function h(g){d(),r?.(g),r=null;}function f(){return t&&d(),new Promise(g=>{r=g,t=true,e=a(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",l,true),document.addEventListener("click",m,true),document.addEventListener("keydown",u,true);})}function d(){t&&(t=false,document.body.style.cursor="",document.removeEventListener("mousemove",l,true),document.removeEventListener("click",m,true),document.removeEventListener("keydown",u,true),e&&(e.remove(),e=null));}return {activate:f,deactivate:d,isActive:()=>t}}function jr(){let t=[],e=history.pushState.bind(history),r=history.replaceState.bind(history),n=()=>a("popstate"),s=()=>a("hashchange");a("initial");function o(u){t.push(u),t.length>120&&t.shift();}function a(u){typeof location>"u"||o({ts:Date.now(),kind:"route",payload:{source:u,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function i(u){let h=u.target instanceof Element?u.target:null;if(!h)return;let f=h.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??h;o({ts:Date.now(),kind:"click",payload:{tag:f.tagName.toLowerCase(),id:f.id||void 0,text:Ha(f)}});}let l=function(...h){let f=e(...h);return a("pushState"),f},m=function(...h){let f=r(...h);return a("replaceState"),f};return history.pushState=l,history.replaceState=m,window.addEventListener("popstate",n),window.addEventListener("hashchange",s),document.addEventListener("click",i,true),{setScreen(u){o({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...t,...(u.consoleLogs??[]).map(f=>({ts:f.timestamp,kind:"log",payload:{level:f.level,message:f.message}})),...(u.networkLogs??[]).map(f=>({ts:f.timestamp,kind:"request",payload:{method:f.method,url:f.url,status:f.status,duration:f.duration,error:f.error}}))].sort((f,d)=>f.ts-d.ts).slice(-120)},clear(){t.length=0;},destroy(){history.pushState===l&&(history.pushState=e),history.replaceState===m&&(history.replaceState=r),window.removeEventListener("popstate",n),window.removeEventListener("hashchange",s),document.removeEventListener("click",i,true);}}}function Ha(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var Oa=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Ba=/^[0-9a-f]{20,}$/i,Na=/^\d+$/,Ua=/^[a-z0-9]{16,}$/i;function Gs(t){return t.length===0?t:Oa.test(t)||Ba.test(t)||Na.test(t)||Ua.test(t)&&/\d/.test(t)?"[id]":t}function Ys(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Fa(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Gs).join("/")}function Fa(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let a=true;for(let i=0;i<o.length;i++){let l=o[i],m=r[i];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==m){a=false;break}}if(a)return "/"+o.join("/")}return null}function qa(){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 ja(){if(typeof window>"u")return [];try{let t=new URLSearchParams(window.location.search),e=new Set;return t.forEach((r,n)=>e.add(n)),Array.from(e).sort()}catch{return []}}function Wa(){if(typeof document>"u")return null;let t=s=>(s??"").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 za(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),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function Wr(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??6e4,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",m=new Map,u=null,h=null;async function f(){if(typeof window>"u")return;let I=Ys(window.location.pathname,e.routeTemplates),y=Date.now(),w=m.get(I)??0;if(y-w<a)return;m.set(I,y);let C=null;l==="auto"?C=n()??s():l==="session-only"&&(C=s());let x={route:I,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?Wa():null,testids:qa(),network_paths:r().slice(-50),query_param_keys:ja(),user_id_hash:await za(C),observed_at:new Date().toISOString()};o(x);}function d(){h||(h=setTimeout(()=>{h=null,f();},100));}function g(){if(typeof window>"u")return;let I=window.location.pathname+window.location.search;I!==u&&(u=I,d());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=window.history.pushState.bind(window.history),E=window.history.replaceState.bind(window.history),A=function(...y){let w=v(...y);return g(),w},R=function(...y){let w=E(...y);return g(),w};window.history.pushState=A,window.history.replaceState=R;let S=()=>g();return window.addEventListener("popstate",S),d(),{destroy(){window.removeEventListener("popstate",S),window.history.pushState===A&&(window.history.pushState=v),window.history.replaceState===R&&(window.history.replaceState=E),h&&(clearTimeout(h),h=null),m.clear();},flushNow(){m.clear(),f();}}}function Xs(t,e,r){let n=l=>l.timestamp,s=l=>l.type===2,o=l=>l.type===4,a=Date.now()-e,i=0;for(let l=0;l<t.length;l++){let m=n(t[l]);if(typeof m=="number"&&m>=a)break;s(t[l])&&(i=o(t[l-1])?l-1:l);}if(t.length-i>r){for(let l=i+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){i=o(t[l-1])?l-1:l;break}}i>0&&t.splice(0,i);}function Va(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,i=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:l}}),e.length>400&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){s(),e.length=0;}}}var er=null;async function Ka(){if(er)return er;try{return er=await import('rrweb'),er}catch{return null}}async function Js(t){let e=t.maxDurationMs??3e4,r=await Ka();if(!r?.record)return Va(e);let n=r.record,s=[],o=null,a=false,i=['input[type="password"]',...t.redactSelectors??[]],l=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(m){s.push(m),Xs(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return Xs(s,e,400),[...s]},destroy(){l(),s.length=0;}}}function Zs(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),i=document.createElement("canvas"),l=Math.min(1,720/s.width),m=Math.round(s.width*l),u=Math.round(s.height*l);for(let y of [a,i])y.width=m,y.height=u,y.style.width="100%",y.style.height="auto",y.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let h=a.getContext("2d"),f=i.getContext("2d");if(!h||!f){n(new Error("Canvas not supported"));return}h.drawImage(s,0,0,m,u),o.appendChild(a),o.appendChild(i),e.appendChild(o);let d="highlight",g=false,v=null,E=[],A=y=>{let w=i.getBoundingClientRect(),C="touches"in y?y.touches[0]??y.changedTouches[0]:null,x=C?C.clientX:y.clientX,N=C?C.clientY:y.clientY;return {x:(x-w.left)/w.width*m,y:(N-w.top)/w.height*u}},R=()=>{f.clearRect(0,0,m,u);for(let y of E)if(y.tool==="highlight"&&y.points.length>=2){let[w,C]=y.points;f.fillStyle="rgba(255, 230, 0, 0.35)",f.fillRect(Math.min(w.x,C.x),Math.min(w.y,C.y),Math.abs(C.x-w.x),Math.abs(C.y-w.y));}else if(y.tool==="arrow"&&y.points.length>=2){let[w,C]=y.points;f.strokeStyle="#ef4444",f.lineWidth=3,f.beginPath(),f.moveTo(w.x,w.y),f.lineTo(C.x,C.y),f.stroke();}},S=y=>{g=true,v=A(y);},I=y=>{if(!g||!v)return;g=false;let w=A(y);if(d==="blur"){let C=Math.min(v.x,w.x),x=Math.min(v.y,w.y),N=Math.abs(w.x-v.x),O=Math.abs(w.y-v.y);N>=1&&O>=1&&(h.filter="blur(8px)",h.drawImage(a,C,x,N,O,C,x,N,O),h.filter="none");}else E.push({tool:d,points:[v,w]});v=null,R();};i.addEventListener("mousedown",S),i.addEventListener("mouseup",I),i.addEventListener("touchstart",S,{passive:true}),i.addEventListener("touchend",I),r({canvas:a,setTool(y){d=y;},getDataUrl(){let y=document.createElement("canvas");y.width=m,y.height=u;let w=y.getContext("2d");return w?(w.drawImage(a,0,0),w.drawImage(i,0,0),y.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",S),i.removeEventListener("mouseup",I),i.removeEventListener("touchstart",S),i.removeEventListener("touchend",I),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function Qs(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Ga(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Ya(){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 zr(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=Qs();if(!s)return n;n.sdk=Ya();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let m=s.getCurrentHub?.()?.getScope?.();n.eventId=m?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let l={};for(let[m,u]of Object.entries(i))(typeof u=="string"||typeof u=="number"||typeof u=="boolean")&&(l[m]=u);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let l=i.slice(-r);n.breadcrumbs=l.map(m=>{let u=m;return {timestamp:typeof u.timestamp=="number"?u.timestamp<1e12?Math.round(u.timestamp*1e3):u.timestamp:void 0,category:typeof u.category=="string"?u.category:void 0,level:typeof u.level=="string"?u.level:void 0,message:typeof u.message=="string"?u.message:void 0,type:typeof u.type=="string"?u.type:void 0,data:u.data&&typeof u.data=="object"?u.data:void 0}});}}catch{}}try{let i=s,l;if(typeof i.getActiveSpan=="function"?l=i.getActiveSpan():o?.getSpan&&(l=o.getSpan()),l){let m=l.spanContext?.();n.traceId=m?.traceId??l.traceId??void 0,n.spanId=m?.spanId??l.spanId??void 0;}}catch{}let a;try{let i=s;typeof i.getClient=="function"?a=i.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let i=a.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=a.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let l=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??Ga();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function Vr(t,e={}){let r=Qs();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 s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Xa=["/login","/logout","/signup","/sso/*","/auth/*"];function to(t,e={}){let r=[];if(e.rageClick!==false){let v=function(E){let A=Date.now();if(E.target===g){if(d.push(A),d=d.filter(R=>A-R<500),d.length>=3){let R=E.target;t.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),d=[];}}else g=E.target,d=[A];};let d=[],g=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let d=new PerformanceObserver(g=>{for(let v of g.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});d.observe({entryTypes:["longtask"]}),r.push(()=>d.disconnect());}catch{}let n=Ja(e.apiCascade);if(n.enabled){let d=[],g=globalThis.fetch;globalThis.fetch=async function(...v){let[E,A]=v,R=Jt(E),S=!!Zt(E,A)||Qt(R,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let I=await g.apply(this,v);return !S&&!I.ok&&I.status>=400&&eo(d,t),I}catch(I){throw S||eo(d,t),I}},r.push(()=>{globalThis.fetch=g;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let R=function(O){return v.some(j=>j.endsWith("/*")?O.startsWith(j.slice(0,-2)):O===j||O.startsWith(j+"/"))},S=function(){let O=window.location?.pathname??"";R(O)||t.onTrigger("page_dwell",{thresholdMs:g,path:O});},I=function(){E&&clearTimeout(E);let O=window.location?.pathname??"";R(O)||(E=setTimeout(S,g));},y=function(){let O=window.location?.pathname??"";O!==A&&(A=O,I());};let d=typeof e.pageDwell=="object"?e.pageDwell??{}:{},g=d.thresholdMs||300*1e3,v=d.excludeRoutes!==void 0?d.excludeRoutes:Xa,E=null,A=window.location?.pathname??"";I();let w=window.history,C=w?.pushState,x=w?.replaceState;w&&C&&x&&(w.pushState=function(...O){let j=C.apply(this,O);return y(),j},w.replaceState=function(...O){let j=x.apply(this,O);return y(),j});let N=()=>y();window.addEventListener("popstate",N),r.push(()=>{E&&clearTimeout(E),window.removeEventListener("popstate",N),w&&C&&(w.pushState=C),w&&x&&(w.replaceState=x);});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let d=typeof e.firstSession=="object"?e.firstSession??{}:{},g=d.delayMs??45*1e3,v=d.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),E=false;try{E=window.localStorage?.getItem(v)==="1";}catch{}if(!E){let A=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:g});},g);r.push(()=>clearTimeout(A));}}if(e.errorBoundary){let d=function(v){t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},g=function(v){t.onTrigger("error_boundary",{message:v.reason instanceof Error?v.reason.message:String(v.reason),type:"unhandled_rejection"});};window.addEventListener("error",d),window.addEventListener("unhandledrejection",g),r.push(()=>{window.removeEventListener("error",d),window.removeEventListener("unhandledrejection",g);});}return {destroy(){r.forEach(d=>d());}}}function Ja(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function eo(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var ro="mushi:lastDismiss",tr="mushi:consecDismiss",Kr="mushi:lastShown";function rr(t){try{return localStorage.getItem(t)}catch{return null}}function nr(t,e){try{localStorage.setItem(t,e);}catch{}}function no(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function i(h){let f=Date.now();if(parseInt(rr(tr)??"0",10)>=n)return false;let g=rr(ro);if(g&&f-parseInt(g,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=rr(Kr);if(v&&f-parseInt(v,10)<s)return false}return o>=e||a.has(h)?false:(a.add(h),o++,nr(Kr,String(f)),true)}function l(){nr(ro,String(Date.now()));let h=parseInt(rr(tr)??"0",10);nr(tr,String(h+1));}function m(){nr(tr,"0");}function u(){o=0,a.clear();try{localStorage.removeItem(Kr);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:m,reset:u}}function so(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Te=null,sr=class{constructor(){}static init(e){if(Te)return Ot({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Te;if(typeof document>"u"||typeof window>"u")return io();let r={...Wn(),...e};if(!r.projectId)throw new Error("[mushi] projectId is required \u2014 set NEXT_PUBLIC_MUSHI_PROJECT_ID / VITE_MUSHI_PROJECT_ID / MUSHI_PROJECT_ID or pass it explicitly");if(!r.apiKey)throw new Error("[mushi] apiKey is required \u2014 set NEXT_PUBLIC_MUSHI_API_KEY / VITE_MUSHI_API_KEY / MUSHI_API_KEY or pass it explicitly");return r.enabled===false?io():(Te=Za(r),Te)}static getInstance(){return Te}static destroy(){Te?.destroy(),Te=null;}static diagnose(){return Te?.diagnose()??Yr()}};function Za(t){let e=el(t),r=e.projectId,n=()=>de(r),s=e,o=t.debug??false?Ot({scope:"mushi",level:"debug",format:"pretty"}):gr,a=null,i=null,l=jn({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}:{},getUserToken:()=>a,sdkPackage:De,sdkVersion:fe}),m=zn(e.preFilter),u=Xn(e.offline),h=Zn({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),f=Qn();function d(c){return c.map(p=>{let k={...p};if(typeof p.message=="string"&&(k.message=f.scrub(p.message)),p.data&&typeof p.data=="object"){let H={};for(let[M,U]of Object.entries(p.data))H[M]=typeof U=="string"?f.scrub(U):U;k.data=H;}return k})}function g(c){if(!c)return;let p={};for(let[k,H]of Object.entries(c))p[k]=typeof H=="string"?f.scrub(H):H;return p}let v=null,E=null,A=null,R=null,S=null,I=null,y=jr(),w=null,C=0,x,N=`mushi:tester-jwt:${e.projectId}`;function O(){try{return typeof localStorage<"u"?localStorage.getItem(N):null}catch{return null}}function J(){try{typeof localStorage<"u"&&localStorage.removeItem(N);}catch{}}async function W(c){let p=await l.getTesterStatus(c);if(!p.ok||!p.data){J();return}let k=p.data;if(!k.is_tester||!k.tester_id){J();return}x.setTesterSession(c,{id:k.tester_id,public_handle:k.public_handle??null,display_name:k.display_name??null});let H=await l.getMyReputation(c);if(H.ok&&H.data){let M=H.data;M.reputation&&x.setTesterReputation(M.reputation);}}function K(){if(s.capture?.console!==false?v??=Dr():(v?.destroy(),v=null),s.capture?.network!==false){let M={apiEndpoint:Gr(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:gt()};E?E.updateOptions(M):E=Or(M);}else E?.destroy(),E=null;if(s.capture?.performance!==false?A??=Fr():(A?.destroy(),A=null),s.capture?.screenshot!=="off"){let M={privacy:s.privacy};s.capture?.screenshotProvider?R=null:R?R.updateOptions(M):R=Ur(M);}else R=null;!R&&!s.capture?.screenshotProvider&&($=null),x.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?S??=qr():(S?.deactivate(),S=null,ee=null);let c=s.capture?.discoverInventory,p=c===true?{}:c&&typeof c=="object"?c:null;p!=null&&p.enabled!==false?(I?.destroy(),I=Wr({config:p,getRecentNetworkPaths:()=>E?E.getEntries().map(M=>{try{let U=new URL(M.url,typeof window<"u"?window.location.href:"http://localhost");return U.host&&typeof window<"u"&&U.host!==window.location.host?null:U.pathname}catch{return null}}).filter(M=>M!=null&&M.length>0&&M.length<200):[],getUserId:()=>T?.id??null,getSessionId:gt,onEvent:M=>{l.postDiscoveryEvent({...M,sdk_version:fe}).catch(U=>{o.debug("discovery emit failed",{err:String(U)});});}})):(I?.destroy(),I=null);let H=s.capture?.replay??"off";if(H==="rrweb"||H==="lite"){let M=++C;Js({redactSelectors:s.privacy?.redactSelectors}).then(U=>{if(M!==C){U.destroy();return}w?.destroy(),w=U,w.start();});}else C++,w?.destroy(),w=null;}let B=new Map;function P(c,p){B.get(c)?.forEach(k=>k({type:c,data:p}));}let $=null,ee=null,Q=null,L=false,_=true,D=null,F=null,T=null,pe=null,Be={},oe={},q=es({max:50});q.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let te=null;te=dl(q);let ie=false;function Me(){x.refreshReporterInboxQuiet();}function z(){D&&clearInterval(D),D=null,F&&typeof document<"u"&&document.removeEventListener("visibilitychange",F),F=null;}function at(){if(z(),!_)return;D=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||Me();},6e4),typeof document<"u"&&(F=()=>{document.visibilityState==="visible"&&Me();},document.addEventListener("visibilitychange",F)),Me();}function vt(c,p){if(!s.rewards?.enabled)return;let k={client:l,config:s.rewards,projectId:r,userId:c,traits:p,reporterToken:n()};Ns(k),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(H=>{if(!H.ok)return;let M=H.data;x.setRewardsState({tier:M.tier?{slug:M.tier.slug??"free",displayName:M.tier.display_name??"Free",pointsThreshold:M.tier.points_threshold??0}:null,nextTier:M.next_tier?{displayName:M.next_tier.display_name??"",pointsThreshold:M.next_tier.points_threshold??0}:null,totalPoints:M.total_points??0,pointsForReport:M.report_submit_pts??50});}).catch(()=>{});}async function je(){if(ie)return null;let c=s.capture?.screenshotProvider;if(c){ie=true;try{let M=await c();if(M)return M}catch(M){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:M instanceof Error?M.message:String(M)});}finally{ie=false;}}if(!R)return null;ie=true;let p=x.getIsOpen();p&&x.hidePanel();let k=document.getElementById("mushi-mushi-widget"),H=k?.style.visibility??"";k&&(k.style.visibility="hidden"),await new Promise(M=>{requestAnimationFrame(()=>requestAnimationFrame(()=>M()));});try{return await R.take()}finally{ie=false,k&&(k.style.visibility=H),p&&x.showPanel();}}async function or(c){let p=s.capture?.screenshot;!(R||s.capture?.screenshotProvider)||p==="off"||$||c==="open"&&p!=="auto"||c==="submit"&&p!=="on-report"&&p!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:p}),$=await je(),x.setScreenshotAttached($!==null),x.setScreenshotPreview($));}x=new zt(e.widget,{onSubmit:async({category:c,userCategory:p,description:k,intent:H})=>(o.info("Report submitted",{category:c,userCategory:p,intent:H}),lt?.recordSubmission(),await or("submit"),await uo(c,k,H,p)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),or("open"),w?.start(),P("widget:opened");},onClose:()=>{o.debug("Widget closed"),Q&&(lt?.recordDismissal(),P("proactive:dismissed",{type:Q})),$=null,ee=null,Q=null,P("widget:closed");},onScreenshotRequest:async()=>{!(R||s.capture?.screenshotProvider)||s.capture?.screenshot==="off"||(o.debug("Taking screenshot"),$=await je(),x.setScreenshotAttached($!==null),x.setScreenshotPreview($));},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),$=null,x.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!$||c.childElementCount>0)return;let p;try{p=await Zs($,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let k=document.createElement("div");k.className="mushi-annotate-toolbar";let H=re=>{($=p.getDataUrl(),x.setScreenshotAttached(true),x.setScreenshotPreview($)),p.destroy(),k.remove();},M=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of M){let G=document.createElement("button");G.type="button",G.className="mushi-attach-btn",G.dataset.tool=re.id,G.textContent=re.label,G.addEventListener("click",()=>{p.setTool(re.id),k.querySelectorAll("button[data-tool]").forEach(ae=>ae.classList.remove("active")),G.classList.add("active");}),k.appendChild(G);}k.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",()=>H()),k.appendChild(U),c.insertBefore(k,c.firstChild);},onElementSelectorRequest:async()=>{if(!(!S||s.capture?.elementSelector===false)){o.debug("Element selector activated"),x.setElementCapturing(true),x.hidePanel();try{let c=await S.activate();c?(ee=c,x.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):x.setElementCapturing(!1);}finally{x.showPanel();}}},async onReporterReportsRequest(){let c=await l.listReporterReports(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let p=await l.listReporterComments(c,de(r));if(!p.ok)throw new Error(p.error?.message??"Could not load thread");return p.data?.comments??[]},async onReporterReply(c,p){let k=await l.replyToReporterReport(c,de(r),p);if(!k.ok)throw new Error(k.error?.message??"Could not send reply")},async onReporterFeedback(c,p,k){let H=await l.replyToReporterReport(c,de(r),k??"",p);if(!H.ok)throw new Error(H.error?.message??"Could not send feedback");return H.data?.feedback??null},async onReporterReopen(c,p){let k=await l.reopenReporterReport(c,de(r),p);if(!k.ok)throw new Error(k.error?.message??"Could not reopen report");return k.data?.outcome??null},async onFeatureBoardRequest(){let c=await l.listReporterFeatureBoard(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let p=await l.voteReporterFeatureBoard(c,de(r));if(!p.ok)throw new Error(p.error?.message??"Could not vote");return p.data??{voted:true,action:"added"}},onLeaderboardOpen(){x.setLeaderboard(null,true),Fs(10).then(c=>{x.setLeaderboard(c,false);});},async onMushiSignIn(c){let p=await l.sendMagicLink(c);if(!p.ok)throw new Error(p.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){x.setGlobalLeaderboard(null,true);try{let c=O(),p=await l.getPublicLeaderboard(50),H=(p.ok?p.data?.leaderboard??[]:[]).map(M=>({tester_id:M.tester_id,rank:M.rank,public_handle:M.public_handle,display_name:M.display_name,points_30d:M.points_30d,total_points:M.total_points??0,badge:M.badge_slug}));if(x.setGlobalLeaderboard(H,!1),c){let M=await l.getMyReputation(c);if(M.ok&&M.data){let U=M.data;U.reputation&&x.setTesterReputation(U.reputation);}}}catch{x.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=O();if(!c){x.setCrossAppReports([],false);return}try{let p=await l.getCrossAppReports(c),k=p.ok?p.data?.reports??[]:[];x.setCrossAppReports(k,!1);}catch{x.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(c,p){let k=await l.askAssistant({message:c,threadId:p,context:i});return k.ok?k.data??null:null}},fe),K(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>x.mount()):x.mount());let Jr=O();Jr&&W(Jr).catch(()=>J());let Zr=null,lt=null,Z=s.proactive;Z&&(Z.rageClick!==false||Z.longTask!==false||Z.apiCascade!==false||Z.errorBoundary===true||Z.pageDwell||Z.firstSession)&&typeof document<"u"&&(lt=no(Z?.cooldown),Zr=to({onTrigger:(c,p)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!lt.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:p}),Q=c,P("proactive:triggered",{type:c,context:p}),c==="first_session"?x.pulseTrigger?.():x.open();}},{rageClick:Z?.rageClick,longTask:Z?.longTask,apiCascade:Z?.apiCascade,apiEndpoint:Gr(s),errorBoundary:Z?.errorBoundary,pageDwell:Z?.pageDwell,firstSession:Z?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:Z?.rageClick!==false,longTask:Z?.longTask!==false,apiCascade:Z?.apiCascade!==false,errorBoundary:Z?.errorBoundary===true,pageDwell:!!Z?.pageDwell,firstSession:!!Z?.firstSession})),u.startAutoSync(l),u.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function ir(c){if(L=true,_=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,al(t.projectId),K(),x.updateConfig(s.widget),z(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=Qa(s,c),K(),c.widget&&x.updateConfig(s.widget),_?at():z(),o.debug("Applied runtime SDK config",{version:c.version});}if(rl(t)){let c=ol(t.projectId);c&&ir(c),l.getSdkConfig().then(p=>{p.ok&&p.data?(il(t.projectId,p.data),ir(p.data)):p.error&&o.debug("Runtime SDK config unavailable",p.error);}).catch(p=>{o.debug("Runtime SDK config fetch failed",{error:p instanceof Error?p.message:String(p)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");co(),at(),o.info("Initialized",{projectId:t.projectId});async function co(){if(s.widget?.outdatedBanner==="off")return;let c=ll(De);c&&Qr(c);let p=await l.getLatestSdkVersion(De);!p.ok||!p.data||(cl(De,p.data),Qr(p.data));}function Qr(c){let p=c.latest,k=!!(p&&ul(fe,p));if(!k&&!c.deprecated)return;let H=c.deprecationMessage??(k?`Update ${De} to ${p}.`:null);o.warn("Mushi SDK is outdated",{package:De,current:fe,latest:p,deprecated:c.deprecated,message:H}),s.widget?.outdatedBanner!=="console-only"&&x.setSdkFreshness({latest:p,current:fe,deprecated:c.deprecated,message:H});}async function uo(c,p,k,H){let M=m.check(p);if(!M.passed){o.info("Report blocked by pre-filter",{reason:M.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let X=await U.classify({description:p,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:$!==null,hasSelectedElement:ee!==null,hasNetworkErrors:E?.getEntries()?.some(ve=>ve.status>=400||!!ve.error)??!1,hasConsoleErrors:v?.getEntries()?.some(ve=>ve.level==="error")??!1,proactiveTrigger:Q??void 0});if(X.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:X.modelId,confidence:X.confidence,reason:X.reason});return}o.debug("On-device classifier verdict",{...X});}catch(X){o.warn("On-device classifier threw \u2014 falling through to server",{error:X instanceof Error?X.message:String(X)});}if(!h.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let re=f.scrub(m.truncate(p)),G=t.sentry?zr(t.sentry):void 0,ae=await Jn().catch(()=>null),ye=s.capture?.console===false?void 0:v?.getEntries(),$e=s.capture?.network===false?void 0:E?.getEntries(),Le=d(q.getAll()),xt=g(Object.keys(oe).length>0?{...oe}:void 0),nn=G?{...G,...G.breadcrumbs?{breadcrumbs:d(G.breadcrumbs)}:{},...G.tags?{tags:g(G.tags)}:{}}:void 0,sn=$?await bs($).catch(()=>null):null;$&&!sn&&o.warn("Screenshot dropped \u2014 could not compress under wire budget");let on=br(),Se={id:yr(),projectId:t.projectId,category:c,...H?{userCategory:H}:{},description:re,userIntent:k,environment:on,consoleLogs:ye,networkLogs:$e,performanceMetrics:s.capture?.performance===false?void 0:A?.getMetrics(),timeline:y.getEntries({consoleLogs:ye,networkLogs:$e}),screenshotDataUrl:sn??void 0,selectedElement:ee??void 0,...w?{replayEvents:w.flush()}:{},metadata:{...Be,...T?{user:T}:{},...G?.release?{sentryRelease:G.release}:{}},sessionId:gt(),reporterToken:de(r),...ae?{fingerprintHash:ae}:{},appVersion:so(s,on),sdkPackage:De,sdkVersion:fe,proactiveTrigger:Q??void 0,...Le.length>0?{breadcrumbs:Le}:{},...xt?{tags:xt}:{},...nn?{sentryContext:nn}:{},sentryEventId:G?.eventId,sentryReplayId:G?.replayId,createdAt:new Date().toISOString()};if(q.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Se.id,category:c}}),t.integrations?.custom){let X={addMetadata(ve,po){Se.metadata[ve]=po;},setCategory(ve){Se.category=ve;},setDescription(ve){Se.description=ve;}};t.integrations.custom(X);}let V=Se;if(t.beforeSendFeedback)try{let X=await Promise.race([Promise.resolve(t.beforeSendFeedback(Se)),new Promise(ve=>setTimeout(()=>ve(Se),2e3))]);if(X===null){o.info("Report dropped by beforeSendFeedback hook",{reportId:Se.id});return}V=X;}catch(X){o.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:X instanceof Error?X.message:String(X)});}if(P("report:submitted",{reportId:V.id}),typeof navigator<"u"&&!navigator.onLine)return await u.enqueue(V),o.info("Offline \u2014 report queued",{reportId:V.id}),P("report:queued",{reportId:V.id}),{reportId:null,queuedOffline:true};let Y=await l.submitReport(V);if(!Y.ok&&Y.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(V.replayEvents)&&V.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:V.id}),V={...V,replayEvents:void 0},Y=await l.submitReport(V)),!Y.ok&&Y.error?.code==="PAYLOAD_TOO_LARGE"&&V.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:V.id}),V={...V,screenshotDataUrl:void 0},Y=await l.submitReport(V))),Y.ok){if(o.info("Report sent",{reportId:Y.data?.reportId}),P("report:sent",{reportId:Y.data?.reportId}),Me(),Y.data?.cursorAgentId){let X=Y.data;P("report:dispatched",{reportId:X.reportId,agentId:X.cursorAgentId,fixId:X.fixId});}q.add({category:"lifecycle",level:"info",message:`Mushi report sent (${Y.data?.reportId??Se.id})`}),it({action:"report_submit",metadata:{category:c,reportId:Y.data?.reportId??Se.id}});try{t.sentry&&Y.data?.reportId&&Vr(Y.data.reportId);}catch{}}else Y.error?.code==="PAYLOAD_TOO_LARGE"||Y.error?.code==="SERIALIZE_FAILED"?(o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:V.id,error:Y.error}),P("report:failed",{reportId:V.id,error:Y.error}),q.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${V.id})`})):(o.warn("Report failed, queuing for retry",{reportId:V.id,error:Y.error}),await u.enqueue(V),P("report:failed",{reportId:V.id,error:Y.error}),q.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${V.id})`}));return $=null,ee=null,Q=null,Y?.ok?{reportId:Y.data?.reportId??Se.id,queuedOffline:false}:{reportId:null,queuedOffline:true}}let en={report(c){x.open(c);},on(c,p){return B.has(c)||B.set(c,new Set),B.get(c).add(p),()=>B.get(c)?.delete(p)},setUser(c){T=c;},setMetadata(c,p){Be[c]=p;},setScreen(c){y.setScreen(c);},isOpen(){return x.getIsOpen()},open(){x.open();},openWith(c){x.open({category:c});},show(){x.showTrigger();},hide(){x.hideTrigger();},attachTo(c,p){return x.attachTo(c,p)},setTrigger(c){x.setTrigger(c);},openReporter(){x.openReporter();},close(){x.close();},updateConfig(c){ir(c);},diagnose(){return nl({apiEndpoint:Gr(s),widgetMounted:x.getIsMounted(),runtimeConfigLoaded:L,captureScreenshotAvailable:R!==null,captureNetworkIntercepting:E!==null,widgetDiagnostics:x.getWidgetDiagnostics()})},destroy(){Zr?.destroy(),lt?.reset(),x.destroy(),v?.destroy(),E?.destroy(),A?.destroy(),S?.deactivate(),te?.(),te=null,y.destroy(),I?.destroy(),I=null,w?.destroy(),w=null,u.stopAutoSync(),z(),qs(),q.clear(),B.clear(),Te=null,o.debug("Destroyed");},async captureEvent(c){if(!h.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let p=f.scrub(m.truncate(c.description)),k=c.category??"bug",H=t.sentry?zr(t.sentry):void 0,M=d(q.getAll()),U=g(Object.keys(oe).length===0&&!c.tags?void 0:{...oe,...c.tags??{}}),re=H?{...H,...H.breadcrumbs?{breadcrumbs:d(H.breadcrumbs)}:{},...H.tags?{tags:g(H.tags)}:{}}:void 0,G=br(),ae={id:yr(),projectId:t.projectId,category:k,description:p,environment:G,timeline:y.getEntries(),metadata:{...c.metadata??{},...T?{user:T}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...M.length>0?{breadcrumbs:M}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...re?{sentryContext:re}:{},sessionId:gt(),reporterToken:de(r),appVersion:so(s,G),sdkPackage:De,sdkVersion:fe,sentryEventId:H?.eventId,sentryReplayId:H?.replayId,createdAt:new Date().toISOString()},ye=ae;if(s.beforeSendFeedback)try{let Le=await Promise.race([Promise.resolve(s.beforeSendFeedback(ae)),new Promise(xt=>setTimeout(()=>xt(ae),2e3))]);if(Le===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:ae.id}),null;ye=Le;}catch(Le){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Le instanceof Error?Le.message:String(Le)});}if(P("report:submitted",{reportId:ye.id}),typeof navigator<"u"&&!navigator.onLine)return await u.enqueue(ye),P("report:queued",{reportId:ye.id}),null;let $e=await l.submitReport(ye);if($e.ok){P("report:sent",{reportId:$e.data?.reportId});try{t.sentry&&$e.data?.reportId&&Vr($e.data.reportId);}catch{}return $e.data?.reportId??null}return await u.enqueue(ye),P("report:failed",{reportId:ye.id,error:$e.error}),null},async captureException(c,p){let k=ts(c);q.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${k.name}): ${k.message}`,...k.stack?{data:{stack:k.stack.slice(0,500)}}:{}});let H=p?.description?.trim()||`${k.name}: ${k.message}`||"Uncaught exception";return en.captureEvent({description:H,category:p?.category??"bug",severity:p?.severity??"high",...p?.component?{component:p.component}:{},...p?.tags?{tags:p.tags}:{},source:p?.source??"captureException",error:{name:k.name,message:k.message,...k.stack?{stack:k.stack}:{}},metadata:{...p?.metadata??{},...k.cause?{cause:k.cause}:{}}})},identify(c,p){let k=`${c}::${p?JSON.stringify(p):""}`;if(k!==pe){if(pe=k,T={id:c,...p?.email?{email:p.email}:{},...p?.name?{name:p.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),p)for(let[H,M]of Object.entries(p))H!=="email"&&H!=="name"&&(Be[`user.${H}`]=M);q.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),vt(c,p?{email:p.email,name:p.name,provider:p.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let p=ls(a);if(p?.sub){if(T?.id===p.sub){q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}T={id:p.sub,...p.email?{email:p.email}:{},...p.name?{name:p.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),vt(T.id,{email:T.email,name:T.name});}q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else T=null,pe=null,x.setIdentifiedUser(null),q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){x.openAssistantTab();},addBreadcrumb(c){q.add(c);},getBreadcrumbs(){return q.getAll()},setTag(c,p){typeof c!="string"||c.length===0||(oe[c]=p);},setTags(c){if(!(!c||typeof c!="object"))for(let[p,k]of Object.entries(c))typeof p=="string"&&p.length>0&&(oe[p]=k);},clearTag(c){if(typeof c=="string"&&c.length>0){delete oe[c];return}for(let p of Object.keys(oe))delete oe[p];},async getReputation(){if(!T?.id)return null;let c=await l.getMyPoints(T.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return T?.id?Us(T.id):null},recordActivity(c,p){s.rewards?.enabled&&it({action:c,metadata:p});},pulseTrigger(){x.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(de(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let p=await l.listReporterComments(c,de(r));return p.ok?p.data?.comments??[]:[]},async replyToReport(c,p){let k=await l.replyToReporterReport(c,de(r),p);return k.ok?k.data?.comment??null:null},async submitFeedbackSignal(c,p,k){let H=await l.replyToReporterReport(c,de(r),k??"",p);return H.ok?H.data?.feedback??null:null},async reopenReport(c,p){let k=await l.reopenReporterReport(c,de(r),p);return k.ok?k.data?.outcome??null:null},openMyReports(){x.recorderOpenMyReports();},async getHallOfFame(c=20){let p=await l.getHallOfFame(c);return p.ok?p.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Is(x),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",p=null;try{let k=localStorage.getItem(c);p=k===null?null:k==="unfinished",localStorage.setItem(c,"unfinished");}catch{p=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(p);}catch(k){o.warn("onCrashedLastRun hook threw",{error:k instanceof Error?k.message:String(k)});}}let tn={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},rn=(c,p)=>{let k=p instanceof Error?p.message:String(p);o.debug(`Mushi.${c}() failed (swallowed)`,{error:k});try{q.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:k}});}catch{}};return (c=>new Proxy(c,{get(p,k,H){let M=Reflect.get(p,k,H);if(typeof M!="function")return M;let U=String(k),re=()=>U==="diagnose"?Yr():U in tn?tn[U]:void 0;return (...G)=>{try{let ae=M.apply(p,G);return ae&&typeof ae.then=="function"?ae.catch(ye=>(rn(U,ye),re())):ae}catch(ae){return rn(U,ae),re()}}}}))(en)}function Qa(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=n??e.widget?.trigger??(r==="none"||r==="shake"?"manual":void 0),o=n==="hidden"||e.widget?.trigger==="hidden",a=t.widget?.trigger,i=s==="hidden"&&!o&&a&&a!=="hidden"?a:s,l=e.widget,m=l?.bannerVariant,u=l?.bannerPosition,h=l?.bannerMessage,f=l?.bannerLabel,d=l?.bannerBugCta,g=l?.bannerFeatureCta,v=m||u||h!=null||f!=null||d!=null||g!=null?{...t.widget?.bannerConfig??{},...m?{variant:m}:{},...u?{position:u}:{},...h!=null?{message:h}:{},...f!=null?{label:f===""?false:f}:{},...d!=null?{bugCta:d??void 0}:{},...g!=null?{featureCta:g}:{}}:void 0;return {...t,widget:{...t.widget,...e.widget,...i?{trigger:i}:{},...v?{bannerConfig:v}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:{...t.capture,...e.capture},privacy:{...t.privacy}}}function el(t){if(!t.preset)return t;let e=tl(t.preset);return {...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}}function tl(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}}}}function Gr(t){return t.apiEndpoint??Ht}function rl(t){return t.runtimeConfig!==false}async function nl(t){let e=await sl(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:fe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function Yr(){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:fe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function sl(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}:{},[Xe]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Xr(t){return `mushi:sdk-config:${t}`}function lo(t){return `mushi:sdk-version:${t}`}function ol(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Xr(t));return e?JSON.parse(e).config??null:null}catch{return null}}function il(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Xr(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function al(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Xr(t));}catch{}}function ll(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(lo(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 cl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(lo(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function ul(t,e){let r=oo(t),n=oo(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,a=n[s]??0;if(o<a)return true;if(o>a)return false}return false}function oo(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function io(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Yr,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Te=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function dl(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=l=>{t.add({category:"navigation",level:"info",message:`${l}: ${window.location.pathname}`,data:{url:window.location.href,kind:l}});},n=()=>r("popstate");window.addEventListener("popstate",n,{passive:!0}),e.push(()=>window.removeEventListener("popstate",n));let s=window.history.pushState.bind(window.history),o=window.history.replaceState.bind(window.history),a=function(...m){let u=s(...m);try{r("pushState");}catch{}return u},i=function(...m){let u=o(...m);try{r("replaceState");}catch{}return u};window.history.pushState=a,window.history.replaceState=i,e.push(()=>{window.history.pushState===a&&(window.history.pushState=s),window.history.replaceState===i&&(window.history.replaceState=o);});}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(ao).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(ao).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,a=0;for(;o&&a<10;){let i=o.getAttribute("data-testid");if(i){let l=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${l?` \u2014 ${l}`:""}`,data:{testid:i,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 ao(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 pl(){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 hl(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 s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...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 ml(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=pl();if(!e)return;let r=hl(e.dataset);if(r){t.__mushiLoaderInit=true;try{sr.init(r);}catch{}}}ml();
2276
2276
  })();//# sourceMappingURL=mushi.loader.global.js.map
2277
2277
  //# sourceMappingURL=mushi.loader.global.js.map