@mushi-mushi/web 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/i18n/index.cjs +40 -0
- package/dist/i18n/index.cjs.map +1 -1
- package/dist/i18n/index.d.cts +12 -0
- package/dist/i18n/index.d.ts +12 -0
- package/dist/i18n/index.js +40 -0
- package/dist/i18n/index.js.map +1 -1
- package/dist/index.cjs +375 -78
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -0
- package/dist/index.d.ts +50 -0
- package/dist/index.js +376 -79
- package/dist/index.js.map +1 -1
- package/dist/mushi.loader.global.js +339 -288
- package/dist/mushi.loader.global.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,15 +1,32 @@
|
|
|
1
|
-
(function(){'use strict';var Lo=Object.defineProperty;var ut=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var bn=(t,e)=>{for(var r in e)Lo(t,r,{get:e[r],enumerable:true});};function Ao(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function yn(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 dt(t,e,r=""){let n=Ao(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 vn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(yn(t.outputLen),yn(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Xe(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 Tt(t,e){dt(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 Ae(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Mt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ee(t,e){return t<<32-e|t>>>e}function ze(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 Ve,$t=ut(()=>{"use strict";Ve=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function xn(t,e,r){return t&e^~t&r}function wn(t,e,r){return t&e^t&r^e&r}var pt,_e,Pe,ne,se,Sn=ut(()=>{"use strict";$t();pt=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=Mt(this.buffer);}update(e){Xe(this),dt(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=Mt(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){Xe(this),Tt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,Ae(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let f=a;f<s;f++)r[f]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=Mt(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let m=l/4,p=this.get();if(m>p.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<m;f++)i.setUint32(4*f,p[f],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()}},_e=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Pe=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 _o(t,e=false){return e?{h:Number(t&It),l:Number(t>>En&It)}:{h:Number(t>>En&It)|0,l:Number(t&It)|0}}function kn(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}=_o(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 It,En,mr,fr,Ke,Ge,ht,mt,Rn,Cn,Tn,Mn,$n,In,Ln=ut(()=>{"use strict";It=BigInt(4294967295),En=BigInt(32);mr=(t,e,r)=>t>>>r,fr=(t,e,r)=>t<<32-r|e>>>r,Ke=(t,e,r)=>t>>>r|e<<32-r,Ge=(t,e,r)=>t<<32-r|e>>>r,ht=(t,e,r)=>t<<64-r|e>>>r-32,mt=(t,e,r)=>t>>>r-32|e<<64-r;Rn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Cn=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Tn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Mn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,$n=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),In=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var gr={};bn(gr,{_SHA224:()=>_t,_SHA256:()=>At,_SHA384:()=>Dt,_SHA512:()=>Pt,_SHA512_224:()=>Ht,_SHA512_256:()=>Ot,sha224:()=>No,sha256:()=>Bo,sha384:()=>Fo,sha512:()=>Uo,sha512_224:()=>jo,sha512_256:()=>qo});var Do,Ue,Lt,At,_t,An,Ho,Oo,Fe,qe,Je,Pt,Dt,le,ce,Ht,Ot,Bo,No,Uo,Fo,qo,jo,br=ut(()=>{"use strict";Sn();Ln();$t();Do=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]),Ue=new Uint32Array(64),Lt=class extends pt{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 f=0;f<16;f++,r+=4)Ue[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let b=Ue[f-15],u=Ue[f-2],v=Ee(b,7)^Ee(b,18)^b>>>3,x=Ee(u,17)^Ee(u,19)^u>>>10;Ue[f]=x+Ue[f-7]+v+Ue[f-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:m,H:p}=this;for(let f=0;f<64;f++){let b=Ee(i,6)^Ee(i,11)^Ee(i,25),u=p+b+xn(i,l,m)+Do[f]+Ue[f]|0,x=(Ee(n,2)^Ee(n,13)^Ee(n,22))+wn(n,s,o)|0;p=m,m=l,l=i,i=a+u|0,a=o,o=s,s=n,n=u+x|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,p=p+this.H|0,this.set(n,s,o,a,i,l,m,p);}roundClean(){Ae(Ue);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ae(this.buffer);}},At=class extends Lt{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(32);}},_t=class extends Lt{A=Pe[0]|0;B=Pe[1]|0;C=Pe[2]|0;D=Pe[3]|0;E=Pe[4]|0;F=Pe[5]|0;G=Pe[6]|0;H=Pe[7]|0;constructor(){super(28);}},An=kn(["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))),Ho=An[0],Oo=An[1],Fe=new Uint32Array(80),qe=new Uint32Array(80),Je=class extends pt{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:p,Fh:f,Fl:b,Gh:u,Gl:v,Hh:x,Hl:C}=this;return [e,r,n,s,o,a,i,l,m,p,f,b,u,v,x,C]}set(e,r,n,s,o,a,i,l,m,p,f,b,u,v,x,C){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=p|0,this.Fh=f|0,this.Fl=b|0,this.Gh=u|0,this.Gl=v|0,this.Hh=x|0,this.Hl=C|0;}process(e,r){for(let E=0;E<16;E++,r+=4)Fe[E]=e.getUint32(r),qe[E]=e.getUint32(r+=4);for(let E=16;E<80;E++){let w=Fe[E-15]|0,h=qe[E-15]|0,S=Ke(w,h,1)^Ke(w,h,8)^mr(w,h,7),R=Ge(w,h,1)^Ge(w,h,8)^fr(w,h,7),y=Fe[E-2]|0,O=qe[E-2]|0,N=Ke(y,O,19)^ht(y,O,61)^mr(y,O,6),Z=Ge(y,O,19)^mt(y,O,61)^fr(y,O,6),X=Tn(R,Z,qe[E-7],qe[E-16]),j=Mn(X,S,N,Fe[E-7],Fe[E-16]);Fe[E]=j|0,qe[E]=X|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:m,Dl:p,Eh:f,El:b,Fh:u,Fl:v,Gh:x,Gl:C,Hh:$,Hl:T}=this;for(let E=0;E<80;E++){let w=Ke(f,b,14)^Ke(f,b,18)^ht(f,b,41),h=Ge(f,b,14)^Ge(f,b,18)^mt(f,b,41),S=f&u^~f&x,R=b&v^~b&C,y=$n(T,h,R,Oo[E],qe[E]),O=In(y,$,w,S,Ho[E],Fe[E]),N=y|0,Z=Ke(n,s,28)^ht(n,s,34)^ht(n,s,39),X=Ge(n,s,28)^mt(n,s,34)^mt(n,s,39),j=n&o^n&i^o&i,V=s&a^s&l^a&l;$=x|0,T=C|0,x=u|0,C=v|0,u=f|0,v=b|0,{h:f,l:b}=Re(m|0,p|0,O|0,N|0),m=i|0,p=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let B=Rn(N,X,V);n=Cn(B,O,Z,j),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:p}=Re(this.Dh|0,this.Dl|0,m|0,p|0),{h:f,l:b}=Re(this.Eh|0,this.El|0,f|0,b|0),{h:u,l:v}=Re(this.Fh|0,this.Fl|0,u|0,v|0),{h:x,l:C}=Re(this.Gh|0,this.Gl|0,x|0,C|0),{h:$,l:T}=Re(this.Hh|0,this.Hl|0,$|0,T|0),this.set(n,s,o,a,i,l,m,p,f,b,u,v,x,C,$,T);}roundClean(){Ae(Fe,qe);}destroy(){this.destroyed=!0,Ae(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Pt=class extends Je{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);}},Dt=class extends Je{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]),Ht=class extends Je{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);}},Ot=class extends Je{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);}},Bo=ze(()=>new At,Ve(1)),No=ze(()=>new _t,Ve(4)),Uo=ze(()=>new Pt,Ve(3)),Fo=ze(()=>new Dt,Ve(2)),qo=ze(()=>new Ot,Ve(6)),jo=ze(()=>new Ht,Ve(5));});var _n={};bn(_n,{_HMAC:()=>ft,hmac:()=>Wo});var ft,Wo,Pn=ut(()=>{"use strict";$t();ft=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(vn(e),dt(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),Ae(s);}update(e){return Xe(this),this.iHash.update(e),this}digestInto(e){Xe(this),Tt(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();}},Wo=(()=>{let t=((e,r,n)=>new ft(e,r).update(n).digest());return t.create=(e,r)=>new ft(e,r),t})();});var zo=4194304,Xn=1.5*1024*1024;function Vo(t){try{return JSON.stringify(t)}catch{return null}}function Ko(t,e=zo){let r=Vo(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 ${Dn(n)} exceeds limit ${Dn(e)}`}}function Dn(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Jn(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Ft(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Sr(t){let e=Jn();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Ft(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(br(),gr));return Ft(r(new TextEncoder().encode(t)))}async function Go(t,e){let r=Jn();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 Ft(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(Pn(),_n)),{sha256:s}=await Promise.resolve().then(()=>(br(),gr)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Ft(o)}var Hn=false,Yo="X-Mushi-User-Token",Xo="X-Mushi-Project",Zn="X-Mushi-SDK-Package",Qn="X-Mushi-SDK-Version";function Jo(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Xo]:t.projectId};return t.sdkPackage&&(e[Zn]=t.sdkPackage),t.sdkVersion&&(e[Qn]=t.sdkVersion),t.userToken&&(e[Yo]=t.userToken),t.internalKind&&(e[gt]=t.internalKind),e}var qt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",gt="X-Mushi-Internal",Ze="__mushiInternal",Zo=1e4,Qo=2,ei=4,ti=3e4;function es(t){let{projectId:e,apiKey:r,apiEndpoint:n=qt,timeout:s=Zo,maxRetries:o=Qo,getUserToken:a,sdkPackage:i,sdkVersion:l,circuitBreaker:m}=t,p=n.replace(/\/$/,""),f=m?.enabled!==false,b=Math.max(1,m?.threshold??ei),u=Math.max(1e3,m?.cooldownMs??ti),v=0,x=0,C=()=>f&&x>Date.now(),$=()=>{v=0,x=0;},T=()=>{f&&(v+=1,v>=b&&(x=Date.now()+u));};async function E(h,S,R,y=o,O,N){if(C())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Z=`${p}${S}`,X=new AbortController,j=setTimeout(()=>X.abort(),s),V=a?.()??null;try{let B=await fetch(Z,{method:h,headers:{...Jo({apiKey:r,projectId:e,sdkPackage:i,sdkVersion:l,userToken:V,internalKind:O}),...N},body:R?JSON.stringify(R):void 0,signal:X.signal,...O?{[Ze]:O}:{}});if(clearTimeout(j),B.status===307||B.status===308){let ee=B.headers.get("Location");if(ee&&y>0){let Q=ee.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Q!==p)return p=Q,E(h,S,R,y-1,O,N)}}if(!B.ok){let ee=await B.json().catch(()=>({}));if((B.status===401||B.status===403)&&!Hn){Hn=!0;let Q=p===qt?"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&&y>0?(await On(Bn(o-y)),E(h,S,R,y-1,O,N)):(B.status>=500?T():$(),{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(),I=P&&typeof P=="object"&&"ok"in P&&"data"in P?P.data:P;return $(),{ok:!0,data:I}}catch(B){return clearTimeout(j),y>0&&ri(B)?(await On(Bn(o-y)),E(h,S,R,y-1,O)):(T(),{ok:false,error:{code:"NETWORK_ERROR",message:B instanceof Error?B.message:"Unknown network error"}})}}async function w(h,S,R,y){let O=await Sr(R),N=String(Date.now()),Z=await Go(r,`${e}.${N}.${O}`),X=`${p}${S}`,j=await fetch(X,{method:h,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...i?{[Zn]:i}:{},...l?{[Qn]:l}:{},[gt]:"reporter-poll","X-Reporter-Token-Hash":O,"X-Reporter-Ts":N,"X-Reporter-Hmac":Z},body:y?JSON.stringify(y):void 0,[Ze]:"reporter-poll"});if(!j.ok){let B=await j.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${j.status}`,message:B.error?.message??B.message??`HTTP ${j.status} error`}}}let V=await j.json();return {ok:true,data:V.data??V}}return {async submitReport(h){let S=Ko(h);return S.ok?E("POST","/v1/reports",h,o,"report-submit"):{ok:false,error:{code:S.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:S.reason??"Report payload exceeds size limit"}}},async getReportStatus(h){return E("GET",`/v1/reports/${h}/status`,void 0,o,"report-status")},async getSdkConfig(){return E("GET","/v1/sdk/config",void 0,o,"sdk-config")},async askAssistant(h){return E("POST","/v1/sdk/assistant",{message:h.message,threadId:h.threadId??null,context:h.context??null},1,"community")},async getLatestSdkVersion(h){let S=new URLSearchParams({package:h}).toString();return E("GET",`/v1/sdk/latest-version?${S}`,void 0,o,"sdk-config")},async postDiscoveryEvent(h){return E("POST","/v1/sdk/discovery",h,1,"discovery")},async listReporterReports(h){return w("GET","/v1/reporter/reports",h)},async listReporterComments(h,S){return w("GET",`/v1/reporter/reports/${h}/comments`,S)},async replyToReporterReport(h,S,R,y){return w("POST",`/v1/reporter/reports/${h}/reply`,S,{body:R,...y?{feedback_signal:y}:{}})},async reopenReporterReport(h,S,R){return w("POST",`/v1/reporter/reports/${h}/reopen`,S,{note:R??""})},async listNotifications(h,S){let R=new URLSearchParams;S?.since&&R.set("since",S.since),S?.limit&&R.set("limit",String(S.limit));let y=R.size?`?${R.toString()}`:"";return w("GET",`/v1/notifications${y}`,h)},async markNotificationRead(h,S){return w("POST",`/v1/notifications/${h}/read`,S,{})},async listReporterFeatureBoard(h){return w("GET","/v1/reporter/feature-board",h)},async voteReporterFeatureBoard(h,S){return w("POST",`/v1/reporter/feature-board/${h}/vote`,S,{})},async submitActivity(h,S,R){return E("POST","/v1/sdk/activity",{user_id:h,user_traits:R?.userTraits,opted_in:R?.optedIn,reporter_token_hash:R?.reporterTokenHash,...R?.hostJwt?{host_jwt:R.hostJwt}:{},events:S},1,"discovery")},async getMyPoints(h){return E("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyTier(h){return E("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyHistory(h,S){let R=new URLSearchParams({userId:h,...S?.limit?{limit:String(S.limit)}:{}});return E("GET",`/v1/sdk/me/history?${R}`,void 0,1,"reporter-poll")},async getHallOfFame(h=10){return E("GET",`/v1/sdk/hall-of-fame?limit=${h}`,void 0,1,"reporter-poll")},async sendMagicLink(h){return E("POST","/v1/tester/magic-link",{email:h},1,"community")},async linkReporterToken(h,S){return E("POST","/v1/tester/link-reporter",{reporter_token_hash:h},1,"community",{Authorization:`Bearer ${S}`})},async getCrossAppReports(h,S){let R=new URLSearchParams;S?.limit&&R.set("limit",String(S.limit)),S?.offset&&R.set("offset",String(S.offset));let y=R.size?`?${R.toString()}`:"";return E("GET",`/v1/tester/cross-app-reports${y}`,void 0,1,"community",{Authorization:`Bearer ${h}`})},async getMyReputation(h){return E("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${h}`})},async getPublicLeaderboard(h=20){return E("GET",`/v1/public/tester-leaderboard?limit=${h}`,void 0,1,"reporter-poll")},async getTesterStatus(h){return E("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${h}`})}}}function On(t){return new Promise(e=>setTimeout(e,t))}function Bn(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function ri(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function yr(...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 De(t){try{return t()}catch{return}}function Er(){let t=yr(xe("VITE_MUSHI_PROJECT_ID"),xe("NEXT_PUBLIC_MUSHI_PROJECT_ID"),xe("NUXT_PUBLIC_MUSHI_PROJECT_ID"),xe("EXPO_PUBLIC_MUSHI_PROJECT_ID"),De(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),De(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),De(()=>process.env.MUSHI_PROJECT_ID)),e=yr(xe("VITE_MUSHI_API_KEY"),xe("NEXT_PUBLIC_MUSHI_API_KEY"),xe("NUXT_PUBLIC_MUSHI_API_KEY"),xe("EXPO_PUBLIC_MUSHI_API_KEY"),De(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),De(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),De(()=>process.env.MUSHI_API_KEY)),r=yr(xe("VITE_MUSHI_API_ENDPOINT"),xe("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),De(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),De(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),De(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var ni=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],si={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function ts(){let t=Er(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let i=undefined;return typeof i=="object"&&i!==null?i:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let i of e)for(let l of ni){let m=`${l}${si[i]}`;r&&r[m]?s.push({field:i,key:m,via:"import.meta.env"}):n&&n[m]&&s.push({field:i,key:m,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let i of s)a.push(`[mushi] Found ${i.key} in ${i.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
|
|
2
|
-
`)}}var Nn=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],oi=["projectId","apiKey","apiEndpoint","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","beforeSendFeedback","onCrashedLastRun"];function ii(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function rs(t){let e=ii(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function ai(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function ns(t){try{if(ai()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!oi.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!Nn.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Nn.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var li=10,ci=2e3,ui=[/^(.)\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],di=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ss(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=li,maxDescriptionLength:s=ci}=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 p of ui)if(p.test(l))return {passed:false,reason:"Detected as spam"};if(di.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(p=>p.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 Un={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},pi={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"},hi={debug:me.dim,info:me.green,warn:me.yellow,error:me.red,fatal:`${me.bgRed}${me.white}${me.bold}`};function mi(){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 fi(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 gi(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=hi[r]??"",l=pi[r]??r.toUpperCase(),m=Object.keys(o).length>0?` ${me.dim}${fi(o)}${me.reset}`:"";return `${me.dim}${a}${me.reset} ${i}${l}${me.reset} ${me.cyan}[${n}]${me.reset} ${s}${m}`}function bi(t){return JSON.stringify(t)}function yi(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 os(t,e,r,n,s){let o=e;function a(i,l,m){if(Un[i]<Un[o])return;let p={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...m};s(i,n(p));}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 os(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function jt(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?mi():s)==="json"?bi:gi,l=yi(o);return os(e,r,n,i,l)}var kr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>kr,setLevel:()=>{}},vi="mushi-mushi-keyring",Qe="keys",is="offline-queue/v1",Bt=null,Nt=null;function xi(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function as(){return new Promise((t,e)=>{let r=indexedDB.open(vi,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(Qe)||n.createObjectStore(Qe);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function wi(){let t=await as();return new Promise((e,r)=>{let s=t.transaction(Qe,"readonly").objectStore(Qe).get(is);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function Si(t){let e=await as();return new Promise((r,n)=>{let s=e.transaction(Qe,"readwrite");s.objectStore(Qe).put(t,is),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function ls(){if(Bt)return Bt;if(Nt)return Nt;if(!xi())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nt=(async()=>{let t=await wi();if(t)return Bt=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Si(e),Bt=e,e})(),Nt}function Fn(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function qn(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 ls(),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:Fn(r),ct:Fn(s)}}function ki(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Ri(t){let e=await ls(),r=qn(t.iv),n=qn(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Ce=jt({scope:"mushi:queue",level:"warn"}),Ci="mushi-mushi",he="offline-reports",Ti=1,vr="mushi_offline_queue",Mi=10,$i=6e4,Ii=3e4,Li=8,Ai=1440*60*1e3;function cs(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null;async function l(A){let _=new Date().toISOString();if(!s)return {...A,queuedAt:_};try{let D=await Ei(A);return {id:A.id,queuedAt:_,payload:D}}catch(D){return Ce.warn("Offline queue: encryption failed, storing plaintext",{err:String(D)}),{...A,queuedAt:_}}}async function m(A){if(p(A))try{return await Ri(A.payload)}catch(_){return Ce.warn("Offline queue: decrypt failed, dropping row",{err:String(_),id:A.id}),null}return A}function p(A){return !!A.payload&&ki(A.payload)}function f(A){let _=A.attempts;return typeof _=="number"&&Number.isFinite(_)?_:0}function b(A,_){let D=A.queuedAt;if(!D)return false;let F=Date.parse(D);return Number.isNaN(F)?false:_-F>Ai}function u(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function v(){return new Promise((A,_)=>{let D=indexedDB.open(Ci,Ti);D.onupgradeneeded=()=>{let F=D.result;F.objectStoreNames.contains(he)||F.createObjectStore(he,{keyPath:"id"});},D.onsuccess=()=>A(D.result),D.onerror=()=>{i="localstorage",_(D.error);};})}async function x(A){let _=await v(),D=await l(A);return new Promise((F,M)=>{let pe=_.transaction(he,"readwrite");pe.objectStore(he).put(D),pe.oncomplete=()=>F(),pe.onerror=()=>M(pe.error);})}async function C(){let A=await v();return new Promise((_,D)=>{let M=A.transaction(he,"readonly").objectStore(he).getAll();M.onsuccess=()=>_(M.result),M.onerror=()=>D(M.error);})}async function $(A){let _=await v();return new Promise((D,F)=>{let M=_.transaction(he,"readwrite");M.objectStore(he).delete(A),M.oncomplete=()=>D(),M.onerror=()=>F(M.error);})}async function T(A){let _=await v();return new Promise((D,F)=>{let M=_.transaction(he,"readwrite");M.objectStore(he).put(A),M.oncomplete=()=>D(),M.onerror=()=>F(M.error);})}async function E(){let A=await v();return new Promise((_,D)=>{let M=A.transaction(he,"readonly").objectStore(he).count();M.onsuccess=()=>_(M.result),M.onerror=()=>D(M.error);})}async function w(){let A=await v();return new Promise((_,D)=>{let F=A.transaction(he,"readwrite");F.objectStore(he).clear(),F.oncomplete=()=>_(),F.onerror=()=>D(F.error);})}function h(){try{let A=localStorage.getItem(vr);return A?JSON.parse(A):[]}catch{return []}}function S(A){try{localStorage.setItem(vr,JSON.stringify(A));}catch{}}async function R(A){let _=h();_.push(await l(A)),S(_);}function y(A){let _=h().filter(D=>D.id!==A);S(_);}function O(A){let _=h(),D=_.findIndex(F=>F.id===A.id);D>=0&&(_[D]=A,S(_));}async function N(A,_){try{A==="indexeddb"?await $(_):y(_);}catch(D){Ce.debug("Offline queue: row removal failed (will age out)",{id:_,err:String(D)});}}async function Z(A,_){try{return A==="indexeddb"?await T(_):O(_),!0}catch(D){return Ce.debug("Offline queue: row persist failed",{id:_.id,err:String(D)}),false}}async function X(A){if(!e)return;if(await P()>=r){Ce.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let D=u();if(D==="indexeddb")try{await x(A);return}catch{i="localstorage";}if(D==="localstorage"||i==="localstorage"){await R(A);return}}function j(A){return Math.min(1e3*2**A+Math.random()*500,$i)}function V(A){return new Promise(_=>setTimeout(_,A))}async function B(A){if(!e)return {sent:0,failed:0};let _,D=u();if(D==="indexeddb")try{_=await C();}catch{_=h();}else _=h();let F=Date.now(),M=[];for(let q of _)if(b(q,F)){let te=q.id;await N(D,te),Ce.debug("Offline queue: evicting stale report",{id:te});}else M.push(q);_=M;let pe=_.slice(0,Mi),Ne=0,oe=0;for(let q=0;q<pe.length;q++){let te=pe[q],ie=te.id,$e=await m(te);if(!$e){await N(D,ie),oe++;continue}let W=await A.submitReport($e);if(W.ok)await N(D,ie),Ne++;else {let lt=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),Rt=!lt&&(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(lt)await N(D,ie);else if(Rt){let We=f(te)+1;We>=Li?(await N(D,ie),Ce.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:We,code:W.error?.code})):(te.attempts=We,await Z(D,te)?Ce.debug("Offline queue: transient failure, will retry",{id:ie,attempts:We,code:W.error?.code}):(await N(D,ie),Ce.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:W.error?.code})));}oe++,q<pe.length-1&&await V(j(q));}}return {sent:Ne,failed:oe}}async function P(){if(u()==="indexeddb")try{return await E()}catch{return h().length}return h().length}async function I(){if(u()==="indexeddb")try{await w();}catch{}try{localStorage.removeItem(vr);}catch{}}function ee(A){if(!e||!n||typeof window>"u")return;o&&Q();let _=()=>{navigator.onLine&&B(A).catch(D=>{Ce.warn("Offline queue auto-flush failed",{err:String(D)});});};window.addEventListener("online",_),a=setInterval(()=>{P().then(D=>{D>0&&_();});},Ii),o=()=>{window.removeEventListener("online",_),a&&(clearInterval(a),a=null);};}function Q(){o?.(),o=null;}return {enqueue:X,flush:B,size:P,clear:I,startAutoSync:ee,stopAutoSync:Q}}function Rr(){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;Pi(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:_i(r),userAgentData:Hi(t),screen:Oi(n,e),prefersColorScheme:Bi(e),prefersReducedMotion:we(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:we(e,"(prefers-reduced-data: reduce)"),prefersContrast:Ni(e),forcedColors:we(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Ui(e),documentTitle:r?.title?.slice(0,200),buildId:Fi(r),pageLoadTiming:qi(e),...m?{native:m}:{}}}function _i(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,jn=false;function Pi(t){if(jn)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(jn=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{ke=r;}).catch(()=>{}));}function Di(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&&!ke)return;let r=ke?.fullVersionList,n=Di(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 Oi(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 Bi(t){if(t?.matchMedia)return we(t,"(prefers-color-scheme: dark)")?"dark":we(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Ni(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 Ui(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 Fi(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function qi(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 xr="mushi_reporter_token";function ji(t){return `mushi:reporter-token:${t}`}function Wn(){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 wr(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function zn(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function de(t){if(!t){let o=wr(xr);if(o)return o;let a=Wn();return zn(xr,a),a}let e=ji(t),r=wr(e);if(r)return r;let s=wr(xr)??Wn();return zn(e,s),s}function Cr(){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 Vn="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 zi(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 us(){if(typeof localStorage<"u"){let n=localStorage.getItem(Vn);if(n)return n}let t=Wi(),e=JSON.stringify(t),r=await zi(e);if(typeof localStorage<"u")try{localStorage.setItem(Vn,r);}catch{}return r}var Kn="mushi_session_id",Ut=null;function bt(){if(Ut)return Ut;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Kn);if(e)return Ut=e,e}let t=Vi();if(Ut=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Kn,t);}catch{}return t}function Vi(){return `ms_${Date.now().toString(36)}_${Ki()}`}function Ki(){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 Gi=10,Yi=1,Xi=5e3;function ds(t={}){let{maxBurst:e=Gi,refillRate:r=Yi,refillIntervalMs:n=Xi}=t,s=e,o=Date.now();function a(){let p=Date.now(),f=p-o,b=Math.floor(f/n);b>0&&(s=Math.min(e,s+b*r),o=p);}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 Ji={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},ps=Ji.patterns,Zi=ps.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Qi=ps.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function hs(t={}){let e={...Qi,...t},r=Zi.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 ea=50,ta=500;function ms(t={}){let e=Math.max(1,t.max??ea),r=Math.max(50,t.maxMessageLength??ta),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 Gn=8*1024,ra=1e3;function fs(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,Gn):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,ra)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,Gn):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"},na={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"},Tr={free:ue.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ue.accent},Wt={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},gs="#FAF7F0",bs="#ffffff",Mr={light:"#9A2A1E",dark:"#7A1F15"},$r={light:"#B52F1F",dark:"#C4321E"},ys={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 Ir(t){return t==="dark"?na:ue}var vs={wide:32},xs={control:4},et={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},tt={base:99999,banner:99998,panel:1e5,overlay:2147483647},zt={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},rt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Yn(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function ws(t,e="",r=""){let n=Ir(t),s=Yn(e),o=Yn(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 sa(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 Ss(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=sa(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 oa=new Set(["kensaur.us","www.kensaur.us"]),ia={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"sbc-front.vercel.app","mushi-mushi":"kensaur.us"},aa={"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"},la=["www.google.com","icons.duckduckgo.com","icon.horse"];function Es(t){try{let e=new URL(t).hostname.toLowerCase();return la.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function ca(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function ks(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(da(t.repo_url)),r(ia[t.project_slug.toLowerCase()]);let n=t.sdk_origin?ua(t.sdk_origin):null;return n&&!oa.has(n)&&r(n),e}function Rs(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||Es(a)||(r.add(a),n.push(a));},o=aa[t.project_slug.toLowerCase()];o&&s(o);for(let a of ks(t))for(let i of ca(a,e))s(i);return n}function ua(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 da(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 Cs(t){return ks(t)[0]??null}function Ts(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 p=0;p<o.length;p+=4){let f=o[p],b=o[p+1],u=o[p+2];if(o[p+3]<128)continue;a++;let x=Math.max(f,b,u),C=Math.min(f,b,u),$=x-C;l=Math.max(l,$),i+=$;}return a===0?!0:i/a<14&&l<24}catch{return Es(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 $s(){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&&pa(n))return n}return null}function pa(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 Ls(t,e=Xn){if(!t.startsWith("data:image/")||Is(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 p of n){let f=a.toDataURL("image/jpeg",p);if(Is(f)<=e)return f}}}return null}function Is(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 Vt={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",elementFailed:"Couldn't select \u2014 describe it instead",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.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var As={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",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",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",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var _s={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",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",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",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",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 Ps={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",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",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.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var ha={en:Vt,ja:As,th:_s,es:Ps};function Lr(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Vt;let r=e.split("-")[0].toLowerCase();return ha[r]??Vt}function Ds(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=Ir(s),a=ws(s,e,r),i=ys[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?Mr.dark:Mr.light,ok:o.ok,danger:o.danger,onAccent:gs,inverse:bs,neonBannerBg:Wt.bg,neonBannerFg:Wt.fg,neonBannerBorder:Wt.border,brandBannerBorder:n?$r.dark:$r.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:et.fontDisplay,fontBody:et.fontBody,fontMono:et.fontMono,easeStamp:zt.easeStamp,zBanner:tt.banner,zPanel:tt.panel,zOverlay:tt.overlay,fabSize:rt.fabSize,panelWidth:rt.panelWidth,panelSheetBreakpoint:rt.panelSheetBreakpoint}}function Hs(t,e="",r=""){let n=Ds(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:m,inkDim:p,rule:f,ruleStrong:b,widgetAccent:u,widgetAccentWash:v,widgetAccentInk:x,widgetAccentShadow:C,ok:$,danger:T,onAccent:E,inverse:w,neonBannerBg:h,neonBannerFg:S,neonBannerBorder:R,brandBannerBorder:y,statusSent:O,statusReview:N,statusFixing:Z,statusFixed:X,statusClosedBg:j,fontDisplay:V,fontBody:B,fontMono:P,easeStamp:I,zBanner:ee,fabSize:Q}=n,{sizeBody:A,lineBody:_}=et,{durationFast:D}=zt,{bannerHeight:F,gutter:M,panelWidth:pe,panelMaxHeight:Ne,panelSheetBreakpoint:oe,edgeTabWidth:q}=rt,te=Q+12,{base:ie}=tt,$e=xs.control;return `
|
|
1
|
+
(function(){'use strict';var Qi=Object.defineProperty;var xt=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var Ln=(t,e)=>{for(var r in e)Qi(t,r,{get:e[r],enumerable:true});};function Zi(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function _n(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function wt(t,e,r=""){let n=Zi(t),s=t?.length,i=e!==void 0;if(!n||i){let a=r&&`"${r}" `,o="",l=n?`length=${s}`:`type=${typeof t}`,m=a+"expected Uint8Array"+o+", got "+l;throw n?new RangeError(m):new TypeError(m)}return t}function Hn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(_n(t.outputLen),_n(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function rt(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 Ft(t,e){wt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Pe(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Ut(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Re(t,e){return t<<32-e|t>>>e}function Ye(t,e={}){let r=(s,i)=>t(i).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 Xe,qt=xt(()=>{"use strict";Xe=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function Pn(t,e,r){return t&e^~t&r}function Dn(t,e,r){return t&e^t&r^e&r}var St,De,Oe,oe,ae,On=xt(()=>{"use strict";qt();St=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=Ut(this.buffer);}update(e){rt(this),wt(e);let{view:r,buffer:n,blockLen:s}=this,i=e.length;for(let a=0;a<i;){let o=Math.min(s-this.pos,i-a);if(o===s){let l=Ut(e);for(;s<=i-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+o),this.pos),this.pos+=o,a+=o,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){rt(this),Ft(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:i}=this,{pos:a}=this;r[a++]=128,Pe(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let f=a;f<s;f++)r[f]=0;n.setBigUint64(s-8,BigInt(this.length*8),i),this.process(n,0);let o=Ut(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let m=l/4,d=this.get();if(m>d.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f<m;f++)o.setUint32(4*f,d[f],i);}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:i,destroyed:a,pos:o}=this;return e.destroyed=a,e.finished=i,e.length=s,e.pos=o,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},De=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Oe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),ae=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function eo(t,e=false){return e?{h:Number(t&jt),l:Number(t>>Bn&jt)}:{h:Number(t>>Bn&jt)|0,l:Number(t&jt)|0}}function Nn(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let i=0;i<r;i++){let{h:a,l:o}=eo(t[i],e);[n[i],s[i]]=[a,o];}return [n,s]}function Te(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var jt,Bn,Ar,Lr,Je,Qe,Et,kt,Fn,Un,qn,jn,Wn,zn,Kn=xt(()=>{"use strict";jt=BigInt(4294967295),Bn=BigInt(32);Ar=(t,e,r)=>t>>>r,Lr=(t,e,r)=>t<<32-r|e>>>r,Je=(t,e,r)=>t>>>r|e<<32-r,Qe=(t,e,r)=>t<<32-r|e>>>r,Et=(t,e,r)=>t<<64-r|e>>>r-32,kt=(t,e,r)=>t>>>r-32|e<<64-r;Fn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Un=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,qn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),jn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Wn=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),zn=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0;});var _r={};Ln(_r,{_SHA224:()=>Kt,_SHA256:()=>zt,_SHA384:()=>Gt,_SHA512:()=>Vt,_SHA512_224:()=>Yt,_SHA512_256:()=>Xt,sha224:()=>oo,sha256:()=>io,sha384:()=>lo,sha512:()=>ao,sha512_224:()=>uo,sha512_256:()=>co});var ro,qe,Wt,zt,Kt,Vn,no,so,je,We,nt,Vt,Gt,de,pe,Yt,Xt,io,oo,ao,lo,co,uo,Hr=xt(()=>{"use strict";On();Kn();qt();ro=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]),qe=new Uint32Array(64),Wt=class extends St{constructor(e){super(64,e,8,!1);}get(){let{A:e,B:r,C:n,D:s,E:i,F:a,G:o,H:l}=this;return [e,r,n,s,i,a,o,l]}set(e,r,n,s,i,a,o,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=a|0,this.G=o|0,this.H=l|0;}process(e,r){for(let f=0;f<16;f++,r+=4)qe[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){let b=qe[f-15],u=qe[f-2],y=Re(b,7)^Re(b,18)^b>>>3,x=Re(u,17)^Re(u,19)^u>>>10;qe[f]=x+qe[f-7]+y+qe[f-16]|0;}let{A:n,B:s,C:i,D:a,E:o,F:l,G:m,H:d}=this;for(let f=0;f<64;f++){let b=Re(o,6)^Re(o,11)^Re(o,25),u=d+b+Pn(o,l,m)+ro[f]+qe[f]|0,x=(Re(n,2)^Re(n,13)^Re(n,22))+Dn(n,s,i)|0;d=m,m=l,l=o,o=a+u|0,a=i,i=s,s=n,n=u+x|0;}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,a=a+this.D|0,o=o+this.E|0,l=l+this.F|0,m=m+this.G|0,d=d+this.H|0,this.set(n,s,i,a,o,l,m,d);}roundClean(){Pe(qe);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Pe(this.buffer);}},zt=class extends Wt{A=De[0]|0;B=De[1]|0;C=De[2]|0;D=De[3]|0;E=De[4]|0;F=De[5]|0;G=De[6]|0;H=De[7]|0;constructor(){super(32);}},Kt=class extends Wt{A=Oe[0]|0;B=Oe[1]|0;C=Oe[2]|0;D=Oe[3]|0;E=Oe[4]|0;F=Oe[5]|0;G=Oe[6]|0;H=Oe[7]|0;constructor(){super(28);}},Vn=Nn(["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))),no=Vn[0],so=Vn[1],je=new Uint32Array(80),We=new Uint32Array(80),nt=class extends St{constructor(e){super(128,e,16,!1);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:a,Dh:o,Dl:l,Eh:m,El:d,Fh:f,Fl:b,Gh:u,Gl:y,Hh:x,Hl:$}=this;return [e,r,n,s,i,a,o,l,m,d,f,b,u,y,x,$]}set(e,r,n,s,i,a,o,l,m,d,f,b,u,y,x,$){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=a|0,this.Dh=o|0,this.Dl=l|0,this.Eh=m|0,this.El=d|0,this.Fh=f|0,this.Fl=b|0,this.Gh=u|0,this.Gl=y|0,this.Hh=x|0,this.Hl=$|0;}process(e,r){for(let E=0;E<16;E++,r+=4)je[E]=e.getUint32(r),We[E]=e.getUint32(r+=4);for(let E=16;E<80;E++){let S=je[E-15]|0,h=We[E-15]|0,w=Je(S,h,1)^Je(S,h,8)^Ar(S,h,7),R=Qe(S,h,1)^Qe(S,h,8)^Lr(S,h,7),v=je[E-2]|0,O=We[E-2]|0,W=Je(v,O,19)^Et(v,O,61)^Ar(v,O,6),re=Qe(v,O,19)^kt(v,O,61)^Lr(v,O,6),te=qn(R,re,We[E-7],We[E-16]),Y=jn(te,w,W,je[E-7],je[E-16]);je[E]=Y|0,We[E]=te|0;}let{Ah:n,Al:s,Bh:i,Bl:a,Ch:o,Cl:l,Dh:m,Dl:d,Eh:f,El:b,Fh:u,Fl:y,Gh:x,Gl:$,Hh:T,Hl:C}=this;for(let E=0;E<80;E++){let S=Je(f,b,14)^Je(f,b,18)^Et(f,b,41),h=Qe(f,b,14)^Qe(f,b,18)^kt(f,b,41),w=f&u^~f&x,R=b&y^~b&$,v=Wn(C,h,R,so[E],We[E]),O=zn(v,T,S,w,no[E],je[E]),W=v|0,re=Je(n,s,28)^Et(n,s,34)^Et(n,s,39),te=Qe(n,s,28)^kt(n,s,34)^kt(n,s,39),Y=n&i^n&o^i&o,se=s&a^s&l^a&l;T=x|0,C=$|0,x=u|0,$=y|0,u=f|0,y=b|0,{h:f,l:b}=Te(m|0,d|0,O|0,W|0),m=o|0,d=l|0,o=i|0,l=a|0,i=n|0,a=s|0;let F=Fn(W,te,se);n=Un(F,O,re,Y),s=F|0;}(({h:n,l:s}=Te(this.Ah|0,this.Al|0,n|0,s|0))),{h:i,l:a}=Te(this.Bh|0,this.Bl|0,i|0,a|0),{h:o,l}=Te(this.Ch|0,this.Cl|0,o|0,l|0),{h:m,l:d}=Te(this.Dh|0,this.Dl|0,m|0,d|0),{h:f,l:b}=Te(this.Eh|0,this.El|0,f|0,b|0),{h:u,l:y}=Te(this.Fh|0,this.Fl|0,u|0,y|0),{h:x,l:$}=Te(this.Gh|0,this.Gl|0,x|0,$|0),{h:T,l:C}=Te(this.Hh|0,this.Hl|0,T|0,C|0),this.set(n,s,i,a,o,l,m,d,f,b,u,y,x,$,T,C);}roundClean(){Pe(je,We);}destroy(){this.destroyed=!0,Pe(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Vt=class extends nt{Ah=ae[0]|0;Al=ae[1]|0;Bh=ae[2]|0;Bl=ae[3]|0;Ch=ae[4]|0;Cl=ae[5]|0;Dh=ae[6]|0;Dl=ae[7]|0;Eh=ae[8]|0;El=ae[9]|0;Fh=ae[10]|0;Fl=ae[11]|0;Gh=ae[12]|0;Gl=ae[13]|0;Hh=ae[14]|0;Hl=ae[15]|0;constructor(){super(64);}},Gt=class extends nt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},de=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),pe=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Yt=class extends nt{Ah=de[0]|0;Al=de[1]|0;Bh=de[2]|0;Bl=de[3]|0;Ch=de[4]|0;Cl=de[5]|0;Dh=de[6]|0;Dl=de[7]|0;Eh=de[8]|0;El=de[9]|0;Fh=de[10]|0;Fl=de[11]|0;Gh=de[12]|0;Gl=de[13]|0;Hh=de[14]|0;Hl=de[15]|0;constructor(){super(28);}},Xt=class extends nt{Ah=pe[0]|0;Al=pe[1]|0;Bh=pe[2]|0;Bl=pe[3]|0;Ch=pe[4]|0;Cl=pe[5]|0;Dh=pe[6]|0;Dl=pe[7]|0;Eh=pe[8]|0;El=pe[9]|0;Fh=pe[10]|0;Fl=pe[11]|0;Gh=pe[12]|0;Gl=pe[13]|0;Hh=pe[14]|0;Hl=pe[15]|0;constructor(){super(32);}},io=Ye(()=>new zt,Xe(1)),oo=Ye(()=>new Kt,Xe(4)),ao=Ye(()=>new Vt,Xe(3)),lo=Ye(()=>new Gt,Xe(2)),co=Ye(()=>new Xt,Xe(6)),uo=Ye(()=>new Yt,Xe(5));});var Gn={};Ln(Gn,{_HMAC:()=>Rt,hmac:()=>po});var Rt,po,Yn=xt(()=>{"use strict";qt();Rt=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(Hn(e),wt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let i=0;i<s.length;i++)s[i]^=54;this.iHash.update(s),this.oHash=e.create();for(let i=0;i<s.length;i++)s[i]^=106;this.oHash.update(s),Pe(s);}update(e){return rt(this),this.iHash.update(e),this}digestInto(e){rt(this),Ft(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:i,blockLen:a,outputLen:o}=this;return e=e,e.finished=s,e.destroyed=i,e.blockLen=a,e.outputLen=o,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();}},po=(()=>{let t=((e,r,n)=>new Rt(e,r).update(n).digest());return t.create=(e,r)=>new Rt(e,r),t})();});var ho=4194304,ps=1.5*1024*1024;function mo(t){try{return JSON.stringify(t)}catch{return null}}function fo(t,e=ho){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 ${Xn(n)} exceeds limit ${Xn(e)}`}}function Xn(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function hs(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function tr(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function Fr(t){let e=hs();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return tr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Hr(),_r));return tr(r(new TextEncoder().encode(t)))}async function go(t,e){let r=hs();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),o=await r.sign("HMAC",a,new TextEncoder().encode(e));return tr(new Uint8Array(o))}let{hmac:n}=await Promise.resolve().then(()=>(Yn(),Gn)),{sha256:s}=await Promise.resolve().then(()=>(Hr(),_r)),i=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return tr(i)}var Jn=false,bo="X-Mushi-User-Token",yo="X-Mushi-Project",ms="X-Mushi-SDK-Package",fs="X-Mushi-SDK-Version";function vo(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[yo]:t.projectId};return t.sdkPackage&&(e[ms]=t.sdkPackage),t.sdkVersion&&(e[fs]=t.sdkVersion),t.userToken&&(e[bo]=t.userToken),t.internalKind&&(e[Ct]=t.internalKind),e}var rr="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Ct="X-Mushi-Internal",at="__mushiInternal",xo=1e4,wo=2,So=4,Eo=3e4;function gs(t){let{projectId:e,apiKey:r,apiEndpoint:n=rr,timeout:s=xo,maxRetries:i=wo,getUserToken:a,sdkPackage:o,sdkVersion:l,circuitBreaker:m}=t,d=n.replace(/\/$/,""),f=m?.enabled!==false,b=Math.max(1,m?.threshold??So),u=Math.max(1e3,m?.cooldownMs??Eo),y=0,x=0,$=()=>f&&x>Date.now(),T=()=>{y=0,x=0;},C=()=>{f&&(y+=1,y>=b&&(x=Date.now()+u));};async function E(h,w,R,v=i,O,W){if($())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let re=`${d}${w}`,te=new AbortController,Y=setTimeout(()=>te.abort(),s),se=a?.()??null;try{let F=await fetch(re,{method:h,headers:{...vo({apiKey:r,projectId:e,sdkPackage:o,sdkVersion:l,userToken:se,internalKind:O}),...W},body:R?JSON.stringify(R):void 0,signal:te.signal,...O?{[at]:O}:{}});if(clearTimeout(Y),F.status===307||F.status===308){let P=F.headers.get("Location");if(P&&v>0){let M=P.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(M!==d)return d=M,E(h,w,R,v-1,O,W)}}if(!F.ok){let P=await F.json().catch(()=>({}));if((F.status===401||F.status===403)&&!Jn){Jn=!0;let M=d===rr?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${F.status}). Check your Project ID and API key scope (must be "report:write"). `+M);}return F.status>=500&&v>0?(await Qn(Zn(i-v)),E(h,w,R,v-1,O,W)):(F.status>=500?C():T(),{ok:!1,error:{code:P.error?.code||`HTTP_${F.status}`,message:P.error?.message||P.message||`HTTP ${F.status} error`}})}let N=await F.json(),B=N&&typeof N=="object"&&"ok"in N&&"data"in N?N.data:N;return T(),{ok:!0,data:B}}catch(F){return clearTimeout(Y),v>0&&ko(F)?(await Qn(Zn(i-v)),E(h,w,R,v-1,O)):(C(),{ok:false,error:{code:"NETWORK_ERROR",message:F instanceof Error?F.message:"Unknown network error"}})}}async function S(h,w,R,v){let O=await Fr(R),W=String(Date.now()),re=await go(r,`${e}.${W}.${O}`),te=`${d}${w}`,Y=await fetch(te,{method:h,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...o?{[ms]:o}:{},...l?{[fs]:l}:{},[Ct]:"reporter-poll","X-Reporter-Token-Hash":O,"X-Reporter-Ts":W,"X-Reporter-Hmac":re},body:v?JSON.stringify(v):void 0,[at]:"reporter-poll"});if(!Y.ok){let F=await Y.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${Y.status}`,message:F.error?.message??F.message??`HTTP ${Y.status} error`}}}let se=await Y.json();return {ok:true,data:se.data??se}}return {async submitReport(h){let w=fo(h);return w.ok?E("POST","/v1/reports",h,i,"report-submit"):{ok:false,error:{code:w.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:w.reason??"Report payload exceeds size limit"}}},async getReportStatus(h){return E("GET",`/v1/reports/${h}/status`,void 0,i,"report-status")},async getSdkConfig(){return E("GET","/v1/sdk/config",void 0,i,"sdk-config")},async askAssistant(h){return E("POST","/v1/sdk/assistant",{message:h.message,threadId:h.threadId??null,context:h.context??null},1,"community")},async getLatestSdkVersion(h){let w=new URLSearchParams({package:h}).toString();return E("GET",`/v1/sdk/latest-version?${w}`,void 0,i,"sdk-config")},async postDiscoveryEvent(h){return E("POST","/v1/sdk/discovery",h,1,"discovery")},async listReporterReports(h){return S("GET","/v1/reporter/reports",h)},async listReporterComments(h,w){return S("GET",`/v1/reporter/reports/${h}/comments`,w)},async replyToReporterReport(h,w,R,v){return S("POST",`/v1/reporter/reports/${h}/reply`,w,{body:R,...v?{feedback_signal:v}:{}})},async reopenReporterReport(h,w,R){return S("POST",`/v1/reporter/reports/${h}/reopen`,w,{note:R??""})},async listNotifications(h,w){let R=new URLSearchParams;w?.since&&R.set("since",w.since),w?.limit&&R.set("limit",String(w.limit));let v=R.size?`?${R.toString()}`:"";return S("GET",`/v1/notifications${v}`,h)},async markNotificationRead(h,w){return S("POST",`/v1/notifications/${h}/read`,w,{})},async listReporterFeatureBoard(h){return S("GET","/v1/reporter/feature-board",h)},async voteReporterFeatureBoard(h,w){return S("POST",`/v1/reporter/feature-board/${h}/vote`,w,{})},async postSessionEvent(h){return E("POST","/v1/sdk/session",h,1,"discovery")},async submitActivity(h,w,R){return E("POST","/v1/sdk/activity",{user_id:h,user_traits:R?.userTraits,opted_in:R?.optedIn,reporter_token_hash:R?.reporterTokenHash,...R?.hostJwt?{host_jwt:R.hostJwt}:{},events:w},1,"discovery")},async getMyPoints(h){return E("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyTier(h){return E("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(h)}`,void 0,1,"reporter-poll")},async getMyHistory(h,w){let R=new URLSearchParams({userId:h,...w?.limit?{limit:String(w.limit)}:{}});return E("GET",`/v1/sdk/me/history?${R}`,void 0,1,"reporter-poll")},async getHallOfFame(h=10){return E("GET",`/v1/sdk/hall-of-fame?limit=${h}`,void 0,1,"reporter-poll")},async sendMagicLink(h){return E("POST","/v1/tester/magic-link",{email:h},1,"community")},async linkReporterToken(h,w){return E("POST","/v1/tester/link-reporter",{reporter_token_hash:h},1,"community",{Authorization:`Bearer ${w}`})},async getCrossAppReports(h,w){let R=new URLSearchParams;w?.limit&&R.set("limit",String(w.limit)),w?.offset&&R.set("offset",String(w.offset));let v=R.size?`?${R.toString()}`:"";return E("GET",`/v1/tester/cross-app-reports${v}`,void 0,1,"community",{Authorization:`Bearer ${h}`})},async getMyReputation(h){return E("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${h}`})},async getPublicLeaderboard(h=20){return E("GET",`/v1/public/tester-leaderboard?limit=${h}`,void 0,1,"reporter-poll")},async getTesterStatus(h){return E("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${h}`})}}}function Qn(t){return new Promise(e=>setTimeout(e,t))}function Zn(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function ko(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function Pr(...t){return t.find(e=>e!==void 0&&e!=="")}function Se(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function Be(t){try{return t()}catch{return}}function Ur(){let t=Pr(Se("VITE_MUSHI_PROJECT_ID"),Se("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Se("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Se("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Be(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Be(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Be(()=>process.env.MUSHI_PROJECT_ID)),e=Pr(Se("VITE_MUSHI_API_KEY"),Se("NEXT_PUBLIC_MUSHI_API_KEY"),Se("NUXT_PUBLIC_MUSHI_API_KEY"),Se("EXPO_PUBLIC_MUSHI_API_KEY"),Be(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Be(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Be(()=>process.env.MUSHI_API_KEY)),r=Pr(Se("VITE_MUSHI_API_ENDPOINT"),Se("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Se("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Be(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Be(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Be(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Ro=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Co={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function bs(){let t=Ur(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let o=undefined;return typeof o=="object"&&o!==null?o:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let o of e)for(let l of Ro){let m=`${l}${Co[o]}`;r&&r[m]?s.push({field:o,key:m,via:"import.meta.env"}):n&&n[m]&&s.push({field:o,key:m,via:"process.env"});}let i=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let o of s)a.push(`[mushi] Found ${o.key} in ${o.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${i}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
|
|
2
|
+
`)}}var es=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],To=["projectId","apiKey","apiEndpoint","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","beforeSendFeedback","onCrashedLastRun"];function $o(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function ys(t){let e=$o(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function Mo(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function vs(t){try{if(Mo()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!To.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!es.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${es.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var Io=10,Ao=2e3,Lo=[/^(.)\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],_o=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function xs(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Io,maxDescriptionLength:s=Ao}=t;function i(o){if(!e)return {passed:true};let l=o.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 d of Lo)if(d.test(l))return {passed:false,reason:"Detected as spam"};if(_o.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(d=>d.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(o){let l=o.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:i,truncate:a}}var ts={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},Ho={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ye={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"},Po={debug:ye.dim,info:ye.green,warn:ye.yellow,error:ye.red,fatal:`${ye.bgRed}${ye.white}${ye.bold}`};function Do(){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 Oo(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 Bo(t){let{ts:e,level:r,scope:n,msg:s,...i}=t,a=e.slice(11,23),o=Po[r]??"",l=Ho[r]??r.toUpperCase(),m=Object.keys(i).length>0?` ${ye.dim}${Oo(i)}${ye.reset}`:"";return `${ye.dim}${a}${ye.reset} ${o}${l}${ye.reset} ${ye.cyan}[${n}]${ye.reset} ${s}${m}`}function No(t){return JSON.stringify(t)}function Fo(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 ws(t,e,r,n,s){let i=e;function a(o,l,m){if(ts[o]<ts[i])return;let d={ts:new Date().toISOString(),level:o,scope:t,msg:l,...r,...m};s(o,n(d));}return {debug:(o,l)=>a("debug",o,l),info:(o,l)=>a("info",o,l),warn:(o,l)=>a("warn",o,l),error:(o,l)=>a("error",o,l),fatal:(o,l)=>a("fatal",o,l),child(o,l){return ws(`${t}:${o}`,i,{...r,...l},n,s)},setLevel(o){i=o;}}}function ir(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:i="stdout"}=t,o=(s==="auto"?Do():s)==="json"?No:Bo,l=Fo(i);return ws(e,r,n,o,l)}var qr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>qr,setLevel:()=>{}},Uo="mushi-mushi-keyring",lt="keys",Ss="offline-queue/v1",Jt=null,Qt=null;function qo(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function Es(){return new Promise((t,e)=>{let r=indexedDB.open(Uo,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(lt)||n.createObjectStore(lt);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function jo(){let t=await Es();return new Promise((e,r)=>{let s=t.transaction(lt,"readonly").objectStore(lt).get(Ss);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function Wo(t){let e=await Es();return new Promise((r,n)=>{let s=e.transaction(lt,"readwrite");s.objectStore(lt).put(t,Ss),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function ks(){if(Jt)return Jt;if(Qt)return Qt;if(!qo())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Qt=(async()=>{let t=await jo();if(t)return Jt=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Wo(e),Jt=e,e})(),Qt}function rs(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function ns(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 zo(t){let e=await ks(),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:rs(r),ct:rs(s)}}function Ko(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function Vo(t){let e=await ks(),r=ns(t.iv),n=ns(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var $e=ir({scope:"mushi:queue",level:"warn"}),Go="mushi-mushi",be="offline-reports",Yo=1,Dr="mushi_offline_queue",Xo=10,Jo=6e4,Qo=3e4,Zo=8,ea=1440*60*1e3;function Rs(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,i=null,a=null,o=null;async function l(A){let L=new Date().toISOString();if(!s)return {...A,queuedAt:L};try{let _=await zo(A);return {id:A.id,queuedAt:L,payload:_}}catch(_){return $e.warn("Offline queue: encryption failed, storing plaintext",{err:String(_)}),{...A,queuedAt:L}}}async function m(A){if(d(A))try{return await Vo(A.payload)}catch(L){return $e.warn("Offline queue: decrypt failed, dropping row",{err:String(L),id:A.id}),null}return A}function d(A){return !!A.payload&&Ko(A.payload)}function f(A){let L=A.attempts;return typeof L=="number"&&Number.isFinite(L)?L:0}function b(A,L){let _=A.queuedAt;if(!_)return false;let K=Date.parse(_);return Number.isNaN(K)?false:L-K>ea}function u(){return o||(typeof indexedDB<"u"?o="indexeddb":typeof localStorage<"u"?o="localstorage":o="none",o)}function y(){return new Promise((A,L)=>{let _=indexedDB.open(Go,Yo);_.onupgradeneeded=()=>{let K=_.result;K.objectStoreNames.contains(be)||K.createObjectStore(be,{keyPath:"id"});},_.onsuccess=()=>A(_.result),_.onerror=()=>{o="localstorage",L(_.error);};})}async function x(A){let L=await y(),_=await l(A);return new Promise((K,D)=>{let me=L.transaction(be,"readwrite");me.objectStore(be).put(_),me.oncomplete=()=>K(),me.onerror=()=>D(me.error);})}async function $(){let A=await y();return new Promise((L,_)=>{let D=A.transaction(be,"readonly").objectStore(be).getAll();D.onsuccess=()=>L(D.result),D.onerror=()=>_(D.error);})}async function T(A){let L=await y();return new Promise((_,K)=>{let D=L.transaction(be,"readwrite");D.objectStore(be).delete(A),D.oncomplete=()=>_(),D.onerror=()=>K(D.error);})}async function C(A){let L=await y();return new Promise((_,K)=>{let D=L.transaction(be,"readwrite");D.objectStore(be).put(A),D.oncomplete=()=>_(),D.onerror=()=>K(D.error);})}async function E(){let A=await y();return new Promise((L,_)=>{let D=A.transaction(be,"readonly").objectStore(be).count();D.onsuccess=()=>L(D.result),D.onerror=()=>_(D.error);})}async function S(){let A=await y();return new Promise((L,_)=>{let K=A.transaction(be,"readwrite");K.objectStore(be).clear(),K.oncomplete=()=>L(),K.onerror=()=>_(K.error);})}function h(){try{let A=localStorage.getItem(Dr);return A?JSON.parse(A):[]}catch{return []}}function w(A){try{localStorage.setItem(Dr,JSON.stringify(A));}catch{}}async function R(A){let L=h();L.push(await l(A)),w(L);}function v(A){let L=h().filter(_=>_.id!==A);w(L);}function O(A){let L=h(),_=L.findIndex(K=>K.id===A.id);_>=0&&(L[_]=A,w(L));}async function W(A,L){try{A==="indexeddb"?await T(L):v(L);}catch(_){$e.debug("Offline queue: row removal failed (will age out)",{id:L,err:String(_)});}}async function re(A,L){try{return A==="indexeddb"?await C(L):O(L),!0}catch(_){return $e.debug("Offline queue: row persist failed",{id:L.id,err:String(_)}),false}}async function te(A){if(!e)return;if(await N()>=r){$e.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let _=u();if(_==="indexeddb")try{await x(A);return}catch{o="localstorage";}if(_==="localstorage"||o==="localstorage"){await R(A);return}}function Y(A){return Math.min(1e3*2**A+Math.random()*500,Jo)}function se(A){return new Promise(L=>setTimeout(L,A))}async function F(A){if(!e)return {sent:0,failed:0};let L,_=u();if(_==="indexeddb")try{L=await $();}catch{L=h();}else L=h();let K=Date.now(),D=[];for(let U of L)if(b(U,K)){let ce=U.id;await W(_,ce),$e.debug("Offline queue: evicting stale report",{id:ce});}else D.push(U);L=D;let me=L.slice(0,Xo),Q=0,V=0;for(let U=0;U<me.length;U++){let ce=me[U],ne=ce.id,Ae=await m(ce);if(!Ae){await W(_,ne),V++;continue}let z=await A.submitReport(Ae);if(z.ok)await W(_,ne),Q++;else {let ee=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),et=!ee&&(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(ee)await W(_,ne);else if(et){let Le=f(ce)+1;Le>=Zo?(await W(_,ne),$e.warn("Offline queue: giving up on report after repeated failures",{id:ne,attempts:Le,code:z.error?.code})):(ce.attempts=Le,await re(_,ce)?$e.debug("Offline queue: transient failure, will retry",{id:ne,attempts:Le,code:z.error?.code}):(await W(_,ne),$e.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ne,code:z.error?.code})));}V++,U<me.length-1&&await se(Y(U));}}return {sent:Q,failed:V}}async function N(){if(u()==="indexeddb")try{return await E()}catch{return h().length}return h().length}async function B(){if(u()==="indexeddb")try{await S();}catch{}try{localStorage.removeItem(Dr);}catch{}}function P(A){if(!e||!n||typeof window>"u")return;i&&M();let L=()=>{navigator.onLine&&F(A).catch(_=>{$e.warn("Offline queue auto-flush failed",{err:String(_)});});};window.addEventListener("online",L),a=setInterval(()=>{N().then(_=>{_>0&&L();});},Qo),i=()=>{window.removeEventListener("online",L),a&&(clearInterval(a),a=null);};}function M(){i?.(),i=null;}return {enqueue:te,flush:F,size:N,clear:B,startAutoSync:P,stopAutoSync:M}}function jr(){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;ra(t);let s=t&&"connection"in t?t.connection:void 0,i=e,a=!!i?.Capacitor,o=!!i?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",m=a||o||l?{...a?{capacitor:true}:{},...o?{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:ta(r),userAgentData:sa(t),screen:ia(n,e),prefersColorScheme:oa(e),prefersReducedMotion:Ee(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:Ee(e,"(prefers-reduced-data: reduce)"),prefersContrast:aa(e),forcedColors:Ee(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:la(e),documentTitle:r?.title?.slice(0,200),buildId:ca(r),pageLoadTiming:ua(e),...m?{native:m}:{}}}function ta(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 Ce=null,ss=false;function ra(t){if(ss)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(ss=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ce=r;}).catch(()=>{}));}function na(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 sa(t){let e=t?.userAgentData;if(!e&&!Ce)return;let r=Ce?.fullVersionList,n=na(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),Ce?.platformVersion&&(s.osVersion=Ce.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),Ce?.model&&(s.model=Ce.model),Ce?.architecture&&(s.architecture=Ce.architecture),Ce?.bitness&&(s.bitness=Ce.bitness),Object.keys(s).length===0?void 0:s}function ia(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 Ee(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function oa(t){if(t?.matchMedia)return Ee(t,"(prefers-color-scheme: dark)")?"dark":Ee(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function aa(t){if(t?.matchMedia)return Ee(t,"(prefers-contrast: more)")?"more":Ee(t,"(prefers-contrast: less)")?"less":Ee(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function la(t){if(t?.matchMedia){if(Ee(t,"(display-mode: fullscreen)"))return "fullscreen";if(Ee(t,"(display-mode: standalone)"))return "standalone";if(Ee(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(Ee(t,"(display-mode: browser)"))return "browser"}}function ca(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function ua(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 da(t){return `mushi:reporter-token:${t}`}function is(){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 Br(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function os(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function le(t){if(!t){let i=Br(Or);if(i)return i;let a=is();return os(Or,a),a}let e=da(t),r=Br(e);if(r)return r;let s=Br(Or)??is();return os(e,s),s}function Wr(){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 as="mushi_fingerprint_hash";function pa(){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 ha(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 Cs(){if(typeof localStorage<"u"){let n=localStorage.getItem(as);if(n)return n}let t=pa(),e=JSON.stringify(t),r=await ha(e);if(typeof localStorage<"u")try{localStorage.setItem(as,r);}catch{}return r}var ls="mushi_session_id",Zt=null;function ct(){if(Zt)return Zt;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(ls);if(e)return Zt=e,e}let t=ma();if(Zt=t,typeof sessionStorage<"u")try{sessionStorage.setItem(ls,t);}catch{}return t}function ma(){return `ms_${Date.now().toString(36)}_${fa()}`}function fa(){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 ga=6e4,nr=null,Ts,zr=null,$s=null,sr=0,er=null,Nr=false;function ba(){return new Date().toISOString()}function st(){return typeof window>"u"?"":window.location.pathname+window.location.search}function ya(){return typeof navigator>"u"?null:navigator.userAgent??null}function it(t,e){return {kind:t,session_id:ct(),ts:ba(),page_view_count:sr,reporter_token_hash:$s,user_id_hash:zr,user_agent:ya(),sdk_version:Ts,...e}}function ot(t){nr&&nr.postSessionEvent(t).catch(()=>{});}function Ms(t){if(Nr||typeof window>"u")return;Nr=true,nr=t.client,Ts=t.sdkVersion,$s=t.reporterTokenHash??null,zr=t.userIdHash??null;let e=st();sr=1,ot(it("session_start",{route:e,referrer:typeof document<"u"?document.referrer??null:null})),er=setInterval(()=>{ot(it("session_heartbeat",{route:st()}));},ga);let r=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&ot(it("session_end",{route:st()}));};typeof document<"u"&&document.addEventListener("visibilitychange",r,{passive:true}),typeof window<"u"&&window.addEventListener("pagehide",()=>{ot(it("session_end",{route:st()}));},{passive:true}),va();}function Is(t){zr=t;}function As(){er!=null&&(clearInterval(er),er=null),Nr=false,nr=null;}var cs=false;function va(){if(cs||typeof history>"u")return;cs=true;let t=e=>function(...r){let n=e.apply(this,r);return e===history.pushState&&(sr+=1,ot(it("page_view",{route:st()}))),n};history.pushState=t(history.pushState),history.replaceState=t(history.replaceState),window.addEventListener("popstate",()=>{sr+=1,ot(it("page_view",{route:st()}));},{passive:true});}var xa=10,wa=1,Sa=5e3;function Ls(t={}){let{maxBurst:e=xa,refillRate:r=wa,refillIntervalMs:n=Sa}=t,s=e,i=Date.now();function a(){let d=Date.now(),f=d-i,b=Math.floor(f/n);b>0&&(s=Math.min(e,s+b*r),i=d);}function o(){return a(),s>0?(s--,true):false}function l(){s=e,i=Date.now();}function m(){return a(),s}return {tryConsume:o,reset:l,availableTokens:m}}var Ea={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},_s=Ea.patterns,ka=_s.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Ra=_s.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function Hs(t={}){let e={...Ra,...t},r=ka.filter(i=>e[i.key]);function n(i){if(!i)return i;let a=i;for(let{regex:o,replacement:l}of r)a=a.replace(new RegExp(o.source,o.flags),l);return a}function s(i,a){let o={...i};for(let l of a)typeof o[l]=="string"&&(o[l]=n(o[l]));return o}return {scrub:n,scrubObject:s}}var Ca=50,Ta=500;function Ps(t={}){let e=Math.max(1,t.max??Ca),r=Math.max(50,t.maxMessageLength??Ta),n=[];return {add(s){let i=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,o={timestamp:i,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(o);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var us=8*1024,$a=1e3;function Ds(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,us):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,$a)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,us):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var he={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#2D7A55",danger:"#B83232"},Ma={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#3A9E6E",danger:"#E05555"},Kr={free:he.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:he.accent},or={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Os="#FAF7F0",Bs="#ffffff";var Vr={light:"#9A2A1E",dark:"#7A1F15"},Gr={light:"#B52F1F",dark:"#C4321E"},Ns={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 Yr(t){return t==="dark"?Ma:he}var ar={tight:4,snug:8,comfy:12,roomy:16,lounge:20,open:24,wide:32},Xr={control:4,card:10},ut={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,sizeLabel:12,lineBody:1.55},dt={base:99999,banner:99998,panel:1e5,overlay:2147483647},lr={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},Fs={instant:120,fast:200,base:220,panel:300,slow:420,ring:700};var pt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function ds(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function Us(t,e="",r=""){let n=Yr(t),s=ds(e),i=ds(r),a=s||n.accent,o=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=i||n.accentInk;return {accent:a,accentWash:o,accentInk:l}}function Ia(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 qs(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=Ia(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,i=typeof n.sub=="string"?n.sub:void 0;return !s||!i?null:{projectId:s,sub:i,...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 Aa=new Set(["kensaur.us","www.kensaur.us"]),La={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us"},_a={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png"},Ha=["www.google.com","icons.duckduckgo.com","icon.horse"];function js(t){try{let e=new URL(t).hostname.toLowerCase();return Ha.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Pa(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Ws(t){let e=[],r=s=>{let i=s?.trim().toLowerCase();!i||e.includes(i)||e.push(i);};r(Oa(t.repo_url)),r(La[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Da(t.sdk_origin):null;return n&&!Aa.has(n)&&r(n),e}function zs(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||js(a)||(r.add(a),n.push(a));},i=_a[t.project_slug.toLowerCase()];i&&s(i);for(let a of Ws(t))for(let o of Pa(a,e))s(o);return n}function Da(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 Oa(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 Ks(t){return Ws(t)[0]??null}function Vs(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:i}=s.getImageData(0,0,r,n),a=0,o=0,l=0;for(let d=0;d<i.length;d+=4){let f=i[d],b=i[d+1],u=i[d+2];if(i[d+3]<128)continue;a++;let x=Math.max(f,b,u),$=Math.min(f,b,u),T=x-$;l=Math.max(l,T),o+=T;}return a===0?!0:o/a<14&&l<24}catch{return js(t.src)}}function Gs(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 Ys(){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&&Ba(n))return n}return null}function Ba(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 Js(t,e=ps){if(!t.startsWith("data:image/")||Xs(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((i,a)=>{r.onload=()=>i(),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 i of s){let a=document.createElement("canvas"),o=Math.max(1,Math.round(r.naturalWidth*i)),l=Math.max(1,Math.round(r.naturalHeight*i));a.width=o,a.height=l;let m=a.getContext("2d");if(m){m.drawImage(r,0,0,o,l);for(let d of n){let f=a.toDataURL("image/jpeg",d);if(Xs(f)<=e)return f}}}return null}function Xs(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 cr={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",elementFailed:"Couldn't select \u2014 describe it instead",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",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{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.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var Qs={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{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",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",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",fileReportCta:"\u4EE3\u308F\u308A\u306B\u30D0\u30B0\u3092\u5831\u544A",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{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",rateLimited:"\u9001\u4FE1\u304C\u65E9\u3059\u304E\u307E\u3059",rateLimitedHint:"\u7D041\u5206\u5F85\u3063\u3066\u304F\u3060\u3055\u3044\u3002\u30EC\u30DD\u30FC\u30C8\u306F\u30AD\u30E5\u30FC\u306B\u5165\u308A\u3001\u81EA\u52D5\u3067\u518D\u9001\u3057\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u67A0\u307E\u305F\u306F\u30D7\u30E9\u30F3\u3067\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u7BA1\u7406\u8005\u306B Billing \u3092\u78BA\u8A8D\u3057\u3066\u3082\u3089\u3063\u3066\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u30EC\u30DD\u30FC\u30C8\u3092\u9001\u308C\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u30DA\u30A4\u30ED\u30FC\u30C9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u77ED\u3044\u6587\u9762\u304B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306A\u3057\u3067\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",retrying:"\u30AD\u30E5\u30FC \u2014 \u518D\u8A66\u884C\u4E2D",retryingHint:"\u3044\u307E\u30B5\u30FC\u30D0\u30FC\u306B\u5C4A\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D0\u30C3\u30AF\u30B0\u30E9\u30A6\u30F3\u30C9\u3067\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u8D85\u904E\u306E\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u305A\u3001\u30EC\u30DD\u30FC\u30C8\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var Zs={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{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",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",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",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{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",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",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 ei={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",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",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",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{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.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var Na={en:cr,ja:Qs,th:Zs,es:ei};function Jr(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return cr;let r=e.split("-")[0].toLowerCase();return Na[r]??cr}function Fa(t){let e=t.replace("#",""),r=e.length===3?e[0]+e[0]+e[1]+e[1]+e[2]+e[2]:e.slice(0,6),n=parseInt(r.slice(0,2),16),s=parseInt(r.slice(2,4),16),i=parseInt(r.slice(4,6),16);return `${n},${s},${i}`}function ti(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",i=Yr(s),a=Us(s,e,r),o=Ns[s];return {isDark:n,paper:i.paper,paperRaised:i.paperRaised,ink:i.ink,inkMuted:i.inkMuted,inkFaint:i.inkFaint,inkDim:i.inkDim,rule:i.rule,ruleStrong:i.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?Vr.dark:Vr.light,accentRgb:Fa(a.accent),shadowInk:n?"0,0,0":"14,13,11",ok:i.ok,danger:i.danger,onAccent:Os,inverse:Bs,neonBannerBg:or.bg,neonBannerFg:or.fg,neonBannerBorder:or.border,brandBannerBorder:n?Gr.dark:Gr.light,statusSent:o.sent,statusReview:o.review,statusFixing:o.fixing,statusFixed:o.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:ut.fontDisplay,fontBody:ut.fontBody,fontMono:ut.fontMono,easeStamp:lr.easeStamp,zBanner:dt.banner,zPanel:dt.panel,zOverlay:dt.overlay,fabSize:pt.fabSize,panelWidth:pt.panelWidth,panelSheetBreakpoint:pt.panelSheetBreakpoint}}function ri(t,e="",r=""){let n=ti(t,e,r),{isDark:s,paper:i,paperRaised:a,ink:o,inkMuted:l,inkFaint:m,inkDim:d,rule:f,ruleStrong:b,widgetAccent:u,widgetAccentWash:y,widgetAccentInk:x,widgetAccentShadow:$,accentRgb:T,shadowInk:C,ok:E,danger:S,onAccent:h,inverse:w,neonBannerBg:R,neonBannerFg:v,neonBannerBorder:O,brandBannerBorder:W,statusSent:re,statusReview:te,statusFixing:Y,statusFixed:se,statusClosedBg:F,fontDisplay:N,fontBody:B,fontMono:P,easeStamp:M,zBanner:A,fabSize:L}=n,{sizeBody:_,sizeLabel:K,lineBody:D}=ut,{durationFast:me}=lr,{instant:Q,fast:V,base:U,panel:ce,slow:ne,ring:Ae}=Fs,{bannerHeight:z,gutter:ee,panelWidth:et,panelMaxHeight:Le,panelSheetBreakpoint:tt,edgeTabWidth:Ht}=pt,Ke=L+ar.comfy,{base:Ve}=dt,X=Xr.control,$n=Xr.card,{tight:yt,snug:Pt,comfy:Ge,roomy:Mr,lounge:vt,open:Dt,wide:Ot}=ar;return `
|
|
3
3
|
:host {
|
|
4
4
|
all: initial;
|
|
5
5
|
font-family: ${B};
|
|
6
|
-
font-size: ${
|
|
7
|
-
line-height: ${
|
|
8
|
-
color: ${
|
|
6
|
+
font-size: ${_}px;
|
|
7
|
+
line-height: ${D};
|
|
8
|
+
color: ${o};
|
|
9
9
|
-webkit-font-smoothing: antialiased;
|
|
10
10
|
-moz-osx-font-smoothing: grayscale;
|
|
11
11
|
font-feature-settings: 'ss01', 'cv11'; /* nicer system-ui glyphs where supported */
|
|
12
|
-
--mushi-ok: ${
|
|
12
|
+
--mushi-ok: ${E};
|
|
13
|
+
/* Spacing + radius scales (MUSHI_SPACING / MUSHI_RADIUS) \u2014 prefer these
|
|
14
|
+
over literal px so web + RN stay aligned with brand.tokens.json. */
|
|
15
|
+
--mushi-space-tight: ${yt}px;
|
|
16
|
+
--mushi-space-snug: ${Pt}px;
|
|
17
|
+
--mushi-space-comfy: ${Ge}px;
|
|
18
|
+
--mushi-space-roomy: ${Mr}px;
|
|
19
|
+
--mushi-space-lounge: ${vt}px;
|
|
20
|
+
--mushi-space-open: ${Dt}px;
|
|
21
|
+
--mushi-space-wide: ${Ot}px;
|
|
22
|
+
--mushi-radius-control: ${X}px;
|
|
23
|
+
--mushi-radius-card: ${$n}px;
|
|
24
|
+
--mushi-touch-min: 44px;
|
|
25
|
+
/* Derived channel vars \u2014 accent RGB triplet + shadow-ink triplet.
|
|
26
|
+
Lets Shadow-DOM CSS compose rgba() values that respect host-accent
|
|
27
|
+
overrides and dark-mode ink without repeating the hex guard. */
|
|
28
|
+
--mushi-accent-rgb: ${T};
|
|
29
|
+
--mushi-shadow-ink: ${C};
|
|
13
30
|
/* SDK contract: the host element is always pass-through. Only the
|
|
14
31
|
interactive surfaces (.mushi-trigger, .mushi-banner, .mushi-panel)
|
|
15
32
|
opt back into pointer events so the widget never creates an
|
|
@@ -27,24 +44,26 @@
|
|
|
27
44
|
|
|
28
45
|
.mushi-trigger {
|
|
29
46
|
position: fixed;
|
|
30
|
-
width: ${
|
|
31
|
-
height: ${
|
|
47
|
+
width: ${L}px;
|
|
48
|
+
height: ${L}px;
|
|
49
|
+
min-width: var(--mushi-touch-min);
|
|
50
|
+
min-height: var(--mushi-touch-min);
|
|
32
51
|
border: 1px solid ${b};
|
|
33
|
-
border-radius: ${
|
|
34
|
-
background: ${
|
|
35
|
-
color: ${
|
|
52
|
+
border-radius: ${X}px;
|
|
53
|
+
background: ${i};
|
|
54
|
+
color: ${o};
|
|
36
55
|
cursor: pointer;
|
|
37
56
|
display: flex;
|
|
38
57
|
align-items: center;
|
|
39
58
|
justify-content: center;
|
|
40
|
-
font-family: ${
|
|
59
|
+
font-family: ${N};
|
|
41
60
|
font-size: 22px;
|
|
42
61
|
line-height: 1;
|
|
43
62
|
box-shadow:
|
|
44
63
|
0 1px 0 ${f},
|
|
45
|
-
0 6px 14px -8px rgba(
|
|
64
|
+
0 6px 14px -8px rgba(${C},0.35),
|
|
46
65
|
inset 0 -3px 0 ${u};
|
|
47
|
-
transition: transform ${
|
|
66
|
+
transition: transform ${me}ms ${M}, opacity ${me}ms ${M};
|
|
48
67
|
overflow: visible;
|
|
49
68
|
isolation: isolate;
|
|
50
69
|
}
|
|
@@ -58,20 +77,21 @@
|
|
|
58
77
|
border-radius: 50%;
|
|
59
78
|
background: ${u};
|
|
60
79
|
box-shadow: 0 0 0 0 ${u};
|
|
61
|
-
animation: mushi-pulse 2.4s ${
|
|
80
|
+
animation: mushi-pulse 2.4s ${M} infinite;
|
|
62
81
|
}
|
|
63
82
|
.mushi-trigger:hover {
|
|
64
83
|
transform: translateY(-2px) rotate(-1.5deg);
|
|
65
84
|
box-shadow:
|
|
66
85
|
0 1px 0 ${f},
|
|
67
|
-
0 14px 24px -10px rgba(
|
|
86
|
+
0 14px 24px -10px rgba(${C},0.45),
|
|
87
|
+
0 0 20px -6px rgba(${T},0.22),
|
|
68
88
|
inset 0 -3px 0 ${u};
|
|
69
89
|
}
|
|
70
90
|
.mushi-trigger:active {
|
|
71
91
|
transform: translateY(0) rotate(0);
|
|
72
92
|
box-shadow:
|
|
73
93
|
0 1px 0 ${f},
|
|
74
|
-
0 2px 4px -2px rgba(
|
|
94
|
+
0 2px 4px -2px rgba(${C},0.35),
|
|
75
95
|
inset 0 -2px 0 ${u};
|
|
76
96
|
}
|
|
77
97
|
.mushi-trigger:focus-visible {
|
|
@@ -83,42 +103,42 @@
|
|
|
83
103
|
can compose with the hover transform without fighting it. Respects
|
|
84
104
|
prefers-reduced-motion. */
|
|
85
105
|
@keyframes mushi-trigger-pulse {
|
|
86
|
-
0% { box-shadow: 0 0 0 0 rgba(
|
|
87
|
-
70% { box-shadow: 0 0 0 16px rgba(
|
|
88
|
-
100% { box-shadow: 0 0 0 0 rgba(
|
|
106
|
+
0% { box-shadow: 0 0 0 0 rgba(${T},0.55), 0 1px 0 ${f}, 0 10px 24px -14px rgba(${C},0.45); }
|
|
107
|
+
70% { box-shadow: 0 0 0 16px rgba(${T},0), 0 1px 0 ${f}, 0 10px 24px -14px rgba(${C},0.45); }
|
|
108
|
+
100% { box-shadow: 0 0 0 0 rgba(${T},0), 0 1px 0 ${f}, 0 10px 24px -14px rgba(${C},0.45); }
|
|
89
109
|
}
|
|
90
110
|
.mushi-trigger-pulse {
|
|
91
|
-
animation: mushi-trigger-pulse 800ms ${
|
|
111
|
+
animation: mushi-trigger-pulse 800ms ${M} 3;
|
|
92
112
|
}
|
|
93
113
|
@media (prefers-reduced-motion: reduce) {
|
|
94
114
|
.mushi-trigger-pulse { animation: none; }
|
|
95
115
|
}
|
|
96
116
|
.mushi-trigger.bottom-right {
|
|
97
|
-
bottom: var(--mushi-bottom, calc(${
|
|
98
|
-
right: var(--mushi-right, calc(${
|
|
117
|
+
bottom: var(--mushi-bottom, calc(${ee}px + env(safe-area-inset-bottom, 0px)));
|
|
118
|
+
right: var(--mushi-right, calc(${ee}px + env(safe-area-inset-right, 0px)));
|
|
99
119
|
}
|
|
100
120
|
.mushi-trigger.bottom-left {
|
|
101
|
-
bottom: var(--mushi-bottom, calc(${
|
|
102
|
-
left: var(--mushi-left, calc(${
|
|
121
|
+
bottom: var(--mushi-bottom, calc(${ee}px + env(safe-area-inset-bottom, 0px)));
|
|
122
|
+
left: var(--mushi-left, calc(${ee}px + env(safe-area-inset-left, 0px)));
|
|
103
123
|
}
|
|
104
124
|
.mushi-trigger.top-right {
|
|
105
|
-
top: var(--mushi-top, calc(${
|
|
106
|
-
right: var(--mushi-right, calc(${
|
|
125
|
+
top: var(--mushi-top, calc(${ee}px + env(safe-area-inset-top, 0px)));
|
|
126
|
+
right: var(--mushi-right, calc(${ee}px + env(safe-area-inset-right, 0px)));
|
|
107
127
|
}
|
|
108
128
|
.mushi-trigger.top-left {
|
|
109
|
-
top: var(--mushi-top, calc(${
|
|
110
|
-
left: var(--mushi-left, calc(${
|
|
129
|
+
top: var(--mushi-top, calc(${ee}px + env(safe-area-inset-top, 0px)));
|
|
130
|
+
left: var(--mushi-left, calc(${ee}px + env(safe-area-inset-left, 0px)));
|
|
111
131
|
}
|
|
112
132
|
.mushi-trigger.edge-tab {
|
|
113
|
-
width: ${
|
|
133
|
+
width: ${Ht}px;
|
|
114
134
|
height: 88px;
|
|
115
|
-
border-radius:
|
|
135
|
+
border-radius: ${X}px 0 0 ${X}px;
|
|
116
136
|
writing-mode: vertical-rl;
|
|
117
137
|
text-orientation: upright;
|
|
118
138
|
font-size: 16px;
|
|
119
139
|
box-shadow:
|
|
120
140
|
0 1px 0 ${f},
|
|
121
|
-
0 10px 24px -14px rgba(
|
|
141
|
+
0 10px 24px -14px rgba(${C},0.45),
|
|
122
142
|
inset -3px 0 0 ${u};
|
|
123
143
|
}
|
|
124
144
|
.mushi-trigger.edge-tab.bottom-right,
|
|
@@ -128,15 +148,15 @@
|
|
|
128
148
|
.mushi-trigger.edge-tab.bottom-left,
|
|
129
149
|
.mushi-trigger.edge-tab.top-left {
|
|
130
150
|
left: var(--mushi-left, 0);
|
|
131
|
-
border-radius: 0
|
|
151
|
+
border-radius: 0 ${X}px ${X}px 0;
|
|
132
152
|
box-shadow:
|
|
133
153
|
0 1px 0 ${f},
|
|
134
|
-
0 10px 24px -14px rgba(
|
|
154
|
+
0 10px 24px -14px rgba(${C},0.45),
|
|
135
155
|
inset 3px 0 0 ${u};
|
|
136
156
|
}
|
|
137
157
|
.mushi-trigger.shrunk {
|
|
138
|
-
width: ${
|
|
139
|
-
height: ${
|
|
158
|
+
width: ${z}px;
|
|
159
|
+
height: ${z}px;
|
|
140
160
|
opacity: 0.82;
|
|
141
161
|
transform: scale(0.92);
|
|
142
162
|
}
|
|
@@ -156,11 +176,11 @@
|
|
|
156
176
|
}
|
|
157
177
|
.mushi-trigger.dragging {
|
|
158
178
|
cursor: grabbing !important;
|
|
159
|
-
z-index: calc(var(--z, ${
|
|
179
|
+
z-index: calc(var(--z, ${Ve}) + 2);
|
|
160
180
|
transition: none !important;
|
|
161
181
|
box-shadow:
|
|
162
182
|
0 1px 0 ${f},
|
|
163
|
-
0 20px 40px -12px rgba(
|
|
183
|
+
0 20px 40px -12px rgba(${C},0.55),
|
|
164
184
|
inset 0 -3px 0 ${u};
|
|
165
185
|
opacity: 0.92;
|
|
166
186
|
}
|
|
@@ -176,28 +196,29 @@
|
|
|
176
196
|
|
|
177
197
|
.mushi-panel {
|
|
178
198
|
position: fixed;
|
|
179
|
-
width: ${
|
|
180
|
-
max-width: calc(100vw - ${
|
|
181
|
-
max-height: min(${
|
|
182
|
-
background: ${
|
|
199
|
+
width: ${et}px;
|
|
200
|
+
max-width: calc(100vw - ${ar.wide}px);
|
|
201
|
+
max-height: min(${Le}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
|
|
202
|
+
background: ${i};
|
|
183
203
|
border: 1px solid ${b};
|
|
184
204
|
border-radius: 6px;
|
|
185
205
|
box-shadow:
|
|
186
206
|
0 1px 0 ${f},
|
|
187
|
-
0 24px 56px -20px rgba(
|
|
188
|
-
0 8px 16px -8px rgba(
|
|
207
|
+
0 24px 56px -20px rgba(${C},0.30),
|
|
208
|
+
0 8px 16px -8px rgba(${C},0.20);
|
|
189
209
|
overflow: hidden;
|
|
190
210
|
display: flex;
|
|
191
211
|
flex-direction: column;
|
|
192
212
|
transform-origin: var(--mushi-origin, bottom right);
|
|
193
|
-
|
|
213
|
+
/* Keyboard inset \u2014 layout exception (IME), not decorative (docs/MOTION.md) */
|
|
214
|
+
transition: bottom ${Q}ms ease, top ${Q}ms ease, max-height ${Q}ms ease;
|
|
194
215
|
}
|
|
195
216
|
/* Keyboard-safe: on narrow viewports lift above the keyboard */
|
|
196
217
|
.mushi-panel.keyboard-open {
|
|
197
218
|
bottom: calc(var(--mushi-keyboard-inset, 0px) + 8px) !important;
|
|
198
219
|
}
|
|
199
220
|
/* On narrow mobile, fill the width as a bottom sheet */
|
|
200
|
-
@media (max-width: ${
|
|
221
|
+
@media (max-width: ${tt}px) {
|
|
201
222
|
.mushi-panel {
|
|
202
223
|
left: 0 !important;
|
|
203
224
|
right: 0 !important;
|
|
@@ -211,33 +232,33 @@
|
|
|
211
232
|
bottom: calc(var(--mushi-keyboard-inset, 0px) + 4px) !important;
|
|
212
233
|
}
|
|
213
234
|
}
|
|
214
|
-
.mushi-panel.open { animation: mushi-stamp-in
|
|
235
|
+
.mushi-panel.open { animation: mushi-stamp-in ${ce}ms ${M} both; }
|
|
215
236
|
.mushi-panel.closed { display: none; }
|
|
216
237
|
.mushi-panel.bottom-right {
|
|
217
|
-
bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${
|
|
218
|
-
right: var(--mushi-right, calc(${
|
|
238
|
+
bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${ee}px) + ${Ke}px));
|
|
239
|
+
right: var(--mushi-right, calc(${ee}px + env(safe-area-inset-right, 0px)));
|
|
219
240
|
--mushi-origin: bottom right;
|
|
220
241
|
}
|
|
221
242
|
.mushi-panel.bottom-left {
|
|
222
|
-
bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${
|
|
223
|
-
left: var(--mushi-left, calc(${
|
|
243
|
+
bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${ee}px) + ${Ke}px));
|
|
244
|
+
left: var(--mushi-left, calc(${ee}px + env(safe-area-inset-left, 0px)));
|
|
224
245
|
--mushi-origin: bottom left;
|
|
225
246
|
}
|
|
226
247
|
.mushi-panel.top-right {
|
|
227
|
-
top: var(--mushi-panel-top, calc(var(--mushi-top, ${
|
|
228
|
-
right: var(--mushi-right, calc(${
|
|
248
|
+
top: var(--mushi-panel-top, calc(var(--mushi-top, ${ee}px) + ${Ke}px));
|
|
249
|
+
right: var(--mushi-right, calc(${ee}px + env(safe-area-inset-right, 0px)));
|
|
229
250
|
--mushi-origin: top right;
|
|
230
251
|
}
|
|
231
252
|
.mushi-panel.top-left {
|
|
232
|
-
top: var(--mushi-panel-top, calc(var(--mushi-top, ${
|
|
233
|
-
left: var(--mushi-left, calc(${
|
|
253
|
+
top: var(--mushi-panel-top, calc(var(--mushi-top, ${ee}px) + ${Ke}px));
|
|
254
|
+
left: var(--mushi-left, calc(${ee}px + env(safe-area-inset-left, 0px)));
|
|
234
255
|
--mushi-origin: top left;
|
|
235
256
|
}
|
|
236
257
|
.mushi-outdated {
|
|
237
258
|
margin: 12px 14px 0;
|
|
238
259
|
padding: 10px 12px;
|
|
239
|
-
border: 1px solid ${
|
|
240
|
-
background: ${
|
|
260
|
+
border: 1px solid ${y};
|
|
261
|
+
background: ${y};
|
|
241
262
|
color: ${x};
|
|
242
263
|
font-family: ${B};
|
|
243
264
|
font-size: 12px;
|
|
@@ -279,8 +300,8 @@
|
|
|
279
300
|
height: 22px;
|
|
280
301
|
border-radius: 3px;
|
|
281
302
|
background: ${u};
|
|
282
|
-
color: ${
|
|
283
|
-
font-family: ${
|
|
303
|
+
color: ${h};
|
|
304
|
+
font-family: ${N};
|
|
284
305
|
font-size: 14px;
|
|
285
306
|
font-weight: 600;
|
|
286
307
|
line-height: 1;
|
|
@@ -302,12 +323,12 @@
|
|
|
302
323
|
color: ${l};
|
|
303
324
|
}
|
|
304
325
|
.mushi-header h3 {
|
|
305
|
-
font-family: ${
|
|
326
|
+
font-family: ${N};
|
|
306
327
|
font-size: 19px;
|
|
307
328
|
font-weight: 500;
|
|
308
329
|
line-height: 1.15;
|
|
309
330
|
letter-spacing: -0.01em;
|
|
310
|
-
color: ${
|
|
331
|
+
color: ${o};
|
|
311
332
|
}
|
|
312
333
|
.mushi-header-meta {
|
|
313
334
|
align-self: start;
|
|
@@ -325,7 +346,7 @@
|
|
|
325
346
|
}
|
|
326
347
|
.mushi-step-counter b {
|
|
327
348
|
font-weight: 600;
|
|
328
|
-
color: ${
|
|
349
|
+
color: ${o};
|
|
329
350
|
}
|
|
330
351
|
.mushi-close {
|
|
331
352
|
background: none;
|
|
@@ -337,7 +358,7 @@
|
|
|
337
358
|
font-size: 16px;
|
|
338
359
|
line-height: 1;
|
|
339
360
|
border-radius: 0;
|
|
340
|
-
transition:
|
|
361
|
+
transition: opacity ${Q}ms ${M};
|
|
341
362
|
}
|
|
342
363
|
.mushi-back {
|
|
343
364
|
align-self: flex-start;
|
|
@@ -358,11 +379,11 @@
|
|
|
358
379
|
display: inline-flex;
|
|
359
380
|
align-items: center;
|
|
360
381
|
gap: 4px;
|
|
361
|
-
transition:
|
|
382
|
+
transition: opacity ${Q}ms ${M};
|
|
362
383
|
white-space: nowrap;
|
|
363
384
|
}
|
|
364
385
|
.mushi-close:hover { color: ${u}; }
|
|
365
|
-
.mushi-back:hover { color: ${
|
|
386
|
+
.mushi-back:hover { color: ${o}; }
|
|
366
387
|
.mushi-close:focus-visible {
|
|
367
388
|
outline: 1.5px solid ${u};
|
|
368
389
|
outline-offset: 2px;
|
|
@@ -392,24 +413,29 @@
|
|
|
392
413
|
display: grid;
|
|
393
414
|
grid-template-columns: auto 1fr auto;
|
|
394
415
|
align-items: center;
|
|
395
|
-
gap:
|
|
416
|
+
gap: ${Ge}px;
|
|
396
417
|
width: 100%;
|
|
397
|
-
|
|
418
|
+
min-height: var(--mushi-touch-min);
|
|
419
|
+
padding: ${Ge}px 0;
|
|
398
420
|
border: none;
|
|
399
421
|
border-bottom: 1px solid ${f};
|
|
400
422
|
background: transparent;
|
|
401
423
|
cursor: pointer;
|
|
402
424
|
color: inherit;
|
|
403
425
|
text-align: left;
|
|
404
|
-
transition:
|
|
426
|
+
transition: transform ${U}ms ${M}, opacity ${U}ms ${M};
|
|
405
427
|
position: relative;
|
|
406
428
|
}
|
|
407
429
|
.mushi-option-btn:last-child { border-bottom: none; }
|
|
408
|
-
.mushi-option-btn:hover {
|
|
430
|
+
.mushi-option-btn:hover {
|
|
431
|
+
transform: translateX(6px);
|
|
432
|
+
color: ${u};
|
|
433
|
+
background: linear-gradient(90deg, rgba(${T},0.07), transparent 55%);
|
|
434
|
+
}
|
|
409
435
|
.mushi-option-btn:hover .mushi-option-arrow { opacity: 1; transform: translateX(0); color: ${u}; }
|
|
410
436
|
.mushi-option-btn:focus-visible {
|
|
411
437
|
outline: none;
|
|
412
|
-
|
|
438
|
+
transform: translateX(6px);
|
|
413
439
|
box-shadow: inset 2px 0 0 ${u};
|
|
414
440
|
}
|
|
415
441
|
.mushi-option-icon {
|
|
@@ -420,7 +446,7 @@
|
|
|
420
446
|
}
|
|
421
447
|
.mushi-option-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
|
|
422
448
|
.mushi-option-label {
|
|
423
|
-
font-family: ${
|
|
449
|
+
font-family: ${N};
|
|
424
450
|
font-size: 16px;
|
|
425
451
|
font-weight: 500;
|
|
426
452
|
letter-spacing: -0.005em;
|
|
@@ -437,7 +463,7 @@
|
|
|
437
463
|
color: ${m};
|
|
438
464
|
opacity: 0;
|
|
439
465
|
transform: translateX(-4px);
|
|
440
|
-
transition: opacity
|
|
466
|
+
transition: opacity ${U}ms ${M}, transform ${U}ms ${M};
|
|
441
467
|
}
|
|
442
468
|
/* Feature-request and Reports-inbox entries sit above the five
|
|
443
469
|
category cards as discoverable shortcuts. We give them a subtle
|
|
@@ -448,7 +474,7 @@
|
|
|
448
474
|
.mushi-reports-entry {
|
|
449
475
|
padding-left: 10px;
|
|
450
476
|
border-left: 2px solid ${m};
|
|
451
|
-
transition:
|
|
477
|
+
transition: opacity ${U}ms ${M}, transform ${U}ms ${M};
|
|
452
478
|
}
|
|
453
479
|
.mushi-feature-entry:hover,
|
|
454
480
|
.mushi-reports-entry:hover {
|
|
@@ -468,10 +494,10 @@
|
|
|
468
494
|
border: 0;
|
|
469
495
|
border-bottom: 1px solid ${f};
|
|
470
496
|
background: transparent;
|
|
471
|
-
color: ${
|
|
497
|
+
color: ${o};
|
|
472
498
|
cursor: pointer;
|
|
473
499
|
text-align: left;
|
|
474
|
-
transition:
|
|
500
|
+
transition: opacity ${V}ms ${M}, transform ${V}ms ${M};
|
|
475
501
|
}
|
|
476
502
|
.mushi-report-row:hover,
|
|
477
503
|
.mushi-report-row:focus-visible {
|
|
@@ -510,29 +536,29 @@
|
|
|
510
536
|
border: 1px solid transparent;
|
|
511
537
|
}
|
|
512
538
|
.mushi-status-sent {
|
|
513
|
-
color: ${
|
|
514
|
-
background: ${
|
|
515
|
-
border-color: ${
|
|
539
|
+
color: ${re.fg};
|
|
540
|
+
background: ${re.bg};
|
|
541
|
+
border-color: ${re.border};
|
|
516
542
|
}
|
|
517
543
|
.mushi-status-review {
|
|
518
|
-
color: ${
|
|
519
|
-
background: ${
|
|
520
|
-
border-color: ${
|
|
544
|
+
color: ${te.fg};
|
|
545
|
+
background: ${te.bg};
|
|
546
|
+
border-color: ${te.border};
|
|
521
547
|
}
|
|
522
548
|
.mushi-status-fixing {
|
|
523
|
-
color: ${
|
|
524
|
-
background: ${
|
|
525
|
-
border-color: ${
|
|
549
|
+
color: ${Y.fg};
|
|
550
|
+
background: ${Y.bg};
|
|
551
|
+
border-color: ${Y.border};
|
|
526
552
|
}
|
|
527
553
|
.mushi-status-fixed {
|
|
528
|
-
color: ${
|
|
529
|
-
background: ${
|
|
530
|
-
border-color: ${
|
|
554
|
+
color: ${se.fg};
|
|
555
|
+
background: ${se.bg};
|
|
556
|
+
border-color: ${se.border};
|
|
531
557
|
}
|
|
532
558
|
.mushi-status-closed,
|
|
533
559
|
.mushi-status-unknown {
|
|
534
560
|
color: ${l};
|
|
535
|
-
background: ${
|
|
561
|
+
background: ${F};
|
|
536
562
|
border-color: ${b};
|
|
537
563
|
}
|
|
538
564
|
.mushi-report-when {
|
|
@@ -558,7 +584,7 @@
|
|
|
558
584
|
font-size: 18px;
|
|
559
585
|
line-height: 1;
|
|
560
586
|
color: ${m};
|
|
561
|
-
transition:
|
|
587
|
+
transition: opacity ${V}ms ${M}, transform ${V}ms ${M};
|
|
562
588
|
}
|
|
563
589
|
.mushi-report-row:hover .mushi-report-chevron,
|
|
564
590
|
.mushi-report-row:focus-visible .mushi-report-chevron {
|
|
@@ -590,8 +616,8 @@
|
|
|
590
616
|
background: ${s?"rgba(242,235,221,0.04)":"rgba(14,13,11,0.03)"};
|
|
591
617
|
}
|
|
592
618
|
.mushi-thread-comment.reporter {
|
|
593
|
-
border-color: ${
|
|
594
|
-
background: ${
|
|
619
|
+
border-color: ${y};
|
|
620
|
+
background: ${y};
|
|
595
621
|
}
|
|
596
622
|
.mushi-thread-comment strong {
|
|
597
623
|
display: block;
|
|
@@ -615,9 +641,9 @@
|
|
|
615
641
|
gap: 8px;
|
|
616
642
|
padding: 6px 10px 6px 12px;
|
|
617
643
|
border-left: 2px solid ${u};
|
|
618
|
-
background: ${
|
|
644
|
+
background: ${y};
|
|
619
645
|
color: ${x};
|
|
620
|
-
font-family: ${
|
|
646
|
+
font-family: ${N};
|
|
621
647
|
font-size: 13px;
|
|
622
648
|
margin: 4px 0 14px;
|
|
623
649
|
border-radius: 0 3px 3px 0;
|
|
@@ -648,11 +674,11 @@
|
|
|
648
674
|
font-family: ${B};
|
|
649
675
|
font-size: 11px;
|
|
650
676
|
cursor: pointer;
|
|
651
|
-
transition:
|
|
677
|
+
transition: opacity ${Q}ms ${M}, transform ${Q}ms ${M};
|
|
652
678
|
white-space: nowrap;
|
|
653
679
|
}
|
|
654
680
|
.mushi-example-chip:hover {
|
|
655
|
-
color: ${
|
|
681
|
+
color: ${o};
|
|
656
682
|
border-color: ${l};
|
|
657
683
|
background: ${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};
|
|
658
684
|
}
|
|
@@ -674,7 +700,7 @@
|
|
|
674
700
|
letter-spacing: 0.04em;
|
|
675
701
|
color: ${m};
|
|
676
702
|
pointer-events: none;
|
|
677
|
-
transition:
|
|
703
|
+
transition: opacity ${V}ms ${M};
|
|
678
704
|
}
|
|
679
705
|
|
|
680
706
|
.mushi-textarea {
|
|
@@ -684,13 +710,13 @@
|
|
|
684
710
|
border: none;
|
|
685
711
|
border-bottom: 1px solid ${b};
|
|
686
712
|
background: transparent;
|
|
687
|
-
color: ${
|
|
713
|
+
color: ${o};
|
|
688
714
|
font-family: ${B};
|
|
689
715
|
font-size: 14px;
|
|
690
716
|
line-height: 1.5;
|
|
691
717
|
resize: vertical;
|
|
692
718
|
outline: none;
|
|
693
|
-
transition:
|
|
719
|
+
transition: opacity ${V}ms ${M}, transform ${V}ms ${M};
|
|
694
720
|
}
|
|
695
721
|
.mushi-textarea::placeholder {
|
|
696
722
|
color: ${m};
|
|
@@ -718,26 +744,26 @@
|
|
|
718
744
|
letter-spacing: 0.04em;
|
|
719
745
|
text-transform: uppercase;
|
|
720
746
|
cursor: pointer;
|
|
721
|
-
transition:
|
|
747
|
+
transition: opacity ${V}ms ${M}, transform ${V}ms ${M};
|
|
722
748
|
}
|
|
723
749
|
.mushi-attach-btn:hover {
|
|
724
|
-
color: ${
|
|
725
|
-
border-color: ${
|
|
750
|
+
color: ${o};
|
|
751
|
+
border-color: ${o};
|
|
726
752
|
}
|
|
727
753
|
.mushi-attach-btn.active {
|
|
728
754
|
color: ${u};
|
|
729
755
|
border-color: ${u};
|
|
730
|
-
background: ${
|
|
756
|
+
background: ${y};
|
|
731
757
|
}
|
|
732
758
|
.mushi-attach-btn.danger {
|
|
733
759
|
color: ${x};
|
|
734
|
-
border-color: ${
|
|
760
|
+
border-color: ${y};
|
|
735
761
|
background: transparent;
|
|
736
762
|
}
|
|
737
763
|
.mushi-attach-btn.danger:hover {
|
|
738
764
|
color: ${u};
|
|
739
765
|
border-color: ${u};
|
|
740
|
-
background: ${
|
|
766
|
+
background: ${y};
|
|
741
767
|
}
|
|
742
768
|
.mushi-attach-btn.loading {
|
|
743
769
|
opacity: 0.7;
|
|
@@ -745,7 +771,7 @@
|
|
|
745
771
|
}
|
|
746
772
|
.mushi-attach-btn.error {
|
|
747
773
|
color: ${u};
|
|
748
|
-
border-color: ${
|
|
774
|
+
border-color: ${y};
|
|
749
775
|
}
|
|
750
776
|
.mushi-attach-btn:focus-visible {
|
|
751
777
|
outline: 2px solid ${u};
|
|
@@ -789,7 +815,7 @@
|
|
|
789
815
|
line-height: 1.4;
|
|
790
816
|
}
|
|
791
817
|
.mushi-identified-user strong {
|
|
792
|
-
color: ${
|
|
818
|
+
color: ${o};
|
|
793
819
|
font-weight: 600;
|
|
794
820
|
}
|
|
795
821
|
.mushi-annotate-toolbar {
|
|
@@ -812,7 +838,7 @@
|
|
|
812
838
|
border: 1.5px solid currentColor;
|
|
813
839
|
border-top-color: transparent;
|
|
814
840
|
border-radius: 50%;
|
|
815
|
-
animation: mushi-spin
|
|
841
|
+
animation: mushi-spin ${Ae}ms linear infinite;
|
|
816
842
|
}
|
|
817
843
|
|
|
818
844
|
.mushi-footer {
|
|
@@ -834,20 +860,21 @@
|
|
|
834
860
|
position: relative;
|
|
835
861
|
display: inline-flex;
|
|
836
862
|
align-items: center;
|
|
837
|
-
gap:
|
|
838
|
-
|
|
863
|
+
gap: ${Pt}px;
|
|
864
|
+
min-height: var(--mushi-touch-min);
|
|
865
|
+
padding: ${Ge}px ${vt}px;
|
|
839
866
|
border: 1px solid ${u};
|
|
840
|
-
border-radius:
|
|
841
|
-
background: ${u};
|
|
842
|
-
color: ${
|
|
867
|
+
border-radius: ${X}px;
|
|
868
|
+
background: linear-gradient(160deg, ${u} 0%, ${$} 100%);
|
|
869
|
+
color: ${h};
|
|
843
870
|
font-family: ${P};
|
|
844
|
-
font-size:
|
|
871
|
+
font-size: ${K}px;
|
|
845
872
|
letter-spacing: 0.16em;
|
|
846
873
|
text-transform: uppercase;
|
|
847
874
|
cursor: pointer;
|
|
848
875
|
overflow: hidden;
|
|
849
|
-
transition: transform
|
|
850
|
-
box-shadow: 0 2px 0 ${
|
|
876
|
+
transition: transform ${V}ms ${M}, opacity ${V}ms ${M};
|
|
877
|
+
box-shadow: 0 2px 0 ${$};
|
|
851
878
|
}
|
|
852
879
|
.mushi-submit::after {
|
|
853
880
|
content: '';
|
|
@@ -856,15 +883,18 @@
|
|
|
856
883
|
background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
|
|
857
884
|
opacity: 0;
|
|
858
885
|
transform: scale(0.4);
|
|
859
|
-
transition: opacity
|
|
886
|
+
transition: opacity ${ce}ms ${M}, transform ${ne}ms ${M};
|
|
860
887
|
pointer-events: none;
|
|
861
888
|
}
|
|
862
889
|
.mushi-submit:hover {
|
|
863
890
|
transform: translateY(-1px);
|
|
864
|
-
box-shadow:
|
|
891
|
+
box-shadow:
|
|
892
|
+
0 3px 0 ${$},
|
|
893
|
+
0 0 0 3px rgba(${T},0.18),
|
|
894
|
+
0 4px 16px -4px rgba(${T},0.35);
|
|
865
895
|
}
|
|
866
896
|
.mushi-submit:hover::after { opacity: 1; transform: scale(1.4); }
|
|
867
|
-
.mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${
|
|
897
|
+
.mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${$}; }
|
|
868
898
|
.mushi-submit:disabled {
|
|
869
899
|
cursor: wait;
|
|
870
900
|
opacity: 0.7;
|
|
@@ -875,7 +905,7 @@
|
|
|
875
905
|
}
|
|
876
906
|
.mushi-submit-arrow {
|
|
877
907
|
display: inline-block;
|
|
878
|
-
transition: transform
|
|
908
|
+
transition: transform ${U}ms ${M};
|
|
879
909
|
}
|
|
880
910
|
.mushi-submit:hover .mushi-submit-arrow { transform: translateX(3px); }
|
|
881
911
|
|
|
@@ -905,12 +935,12 @@
|
|
|
905
935
|
display: inline-flex;
|
|
906
936
|
align-items: baseline;
|
|
907
937
|
gap: 4px;
|
|
908
|
-
transition:
|
|
938
|
+
transition: opacity ${V}ms ${M};
|
|
909
939
|
}
|
|
910
940
|
.mushi-step-num.done { color: ${l}; text-decoration: line-through; text-decoration-color: ${m}; }
|
|
911
941
|
.mushi-step-num.active {
|
|
912
942
|
color: ${u};
|
|
913
|
-
font-family: ${
|
|
943
|
+
font-family: ${N};
|
|
914
944
|
font-size: 14px;
|
|
915
945
|
font-weight: 600;
|
|
916
946
|
letter-spacing: 0;
|
|
@@ -944,23 +974,24 @@
|
|
|
944
974
|
stroke-dashoffset: 280;
|
|
945
975
|
transform: rotate(-90deg);
|
|
946
976
|
transform-origin: center;
|
|
947
|
-
animation: mushi-stamp-ring 700ms ${
|
|
977
|
+
animation: mushi-stamp-ring 700ms ${M} 80ms forwards;
|
|
978
|
+
filter: drop-shadow(0 0 6px rgba(${T},0.5));
|
|
948
979
|
}
|
|
949
980
|
.mushi-success-stamp-label {
|
|
950
|
-
font-family: ${
|
|
981
|
+
font-family: ${N};
|
|
951
982
|
font-size: 18px;
|
|
952
983
|
font-weight: 600;
|
|
953
984
|
color: ${u};
|
|
954
985
|
letter-spacing: 0.04em;
|
|
955
986
|
transform: rotate(-6deg);
|
|
956
987
|
opacity: 0;
|
|
957
|
-
animation: mushi-stamp-press 360ms ${
|
|
988
|
+
animation: mushi-stamp-press 360ms ${M} 600ms forwards;
|
|
958
989
|
}
|
|
959
990
|
.mushi-success-headline {
|
|
960
|
-
font-family: ${
|
|
991
|
+
font-family: ${N};
|
|
961
992
|
font-size: 18px;
|
|
962
993
|
font-weight: 500;
|
|
963
|
-
color: ${
|
|
994
|
+
color: ${o};
|
|
964
995
|
margin-bottom: 4px;
|
|
965
996
|
}
|
|
966
997
|
.mushi-success-meta {
|
|
@@ -1013,11 +1044,11 @@
|
|
|
1013
1044
|
font-size: 12px;
|
|
1014
1045
|
letter-spacing: 0.02em;
|
|
1015
1046
|
cursor: pointer;
|
|
1016
|
-
transition:
|
|
1047
|
+
transition: opacity ${Q}ms ${M};
|
|
1017
1048
|
}
|
|
1018
1049
|
.mushi-success-receipt-id:hover,
|
|
1019
1050
|
.mushi-success-receipt-id:focus-visible {
|
|
1020
|
-
background: rgba(
|
|
1051
|
+
background: rgba(${T},0.06);
|
|
1021
1052
|
border-color: ${u};
|
|
1022
1053
|
color: ${u};
|
|
1023
1054
|
outline: none;
|
|
@@ -1040,7 +1071,7 @@
|
|
|
1040
1071
|
letter-spacing: 0.10em;
|
|
1041
1072
|
text-transform: uppercase;
|
|
1042
1073
|
text-decoration: none;
|
|
1043
|
-
transition: filter
|
|
1074
|
+
transition: filter ${Q}ms ease;
|
|
1044
1075
|
}
|
|
1045
1076
|
.mushi-success-receipt-track:hover,
|
|
1046
1077
|
.mushi-success-receipt-track:focus-visible {
|
|
@@ -1081,7 +1112,7 @@
|
|
|
1081
1112
|
.mushi-success-my-reports:hover { opacity: 0.75; }
|
|
1082
1113
|
.mushi-success-sla {
|
|
1083
1114
|
margin-top: 2px;
|
|
1084
|
-
font-family: ${
|
|
1115
|
+
font-family: ${N};
|
|
1085
1116
|
font-size: 12px;
|
|
1086
1117
|
line-height: 1.45;
|
|
1087
1118
|
text-align: center;
|
|
@@ -1134,7 +1165,7 @@
|
|
|
1134
1165
|
font-size: 11px;
|
|
1135
1166
|
letter-spacing: 0.08em;
|
|
1136
1167
|
text-transform: uppercase;
|
|
1137
|
-
color: ${
|
|
1168
|
+
color: ${o};
|
|
1138
1169
|
}
|
|
1139
1170
|
.mushi-rewards-pts-count {
|
|
1140
1171
|
font-family: ${P};
|
|
@@ -1158,9 +1189,13 @@
|
|
|
1158
1189
|
}
|
|
1159
1190
|
.mushi-tier-bar-fill {
|
|
1160
1191
|
height: 100%;
|
|
1192
|
+
width: 100%;
|
|
1161
1193
|
background: ${u};
|
|
1162
1194
|
border-radius: 2px;
|
|
1163
|
-
|
|
1195
|
+
/* Meter fill \u2014 scaleX keeps compositor-friendly motion (docs/MOTION.md). */
|
|
1196
|
+
transform-origin: left center;
|
|
1197
|
+
transform: scaleX(var(--mushi-tier-pct, 0));
|
|
1198
|
+
transition: transform ${ne}ms ${M};
|
|
1164
1199
|
}
|
|
1165
1200
|
.mushi-rewards-next-label {
|
|
1166
1201
|
font-family: ${P};
|
|
@@ -1186,7 +1221,7 @@
|
|
|
1186
1221
|
letter-spacing: 0.06em;
|
|
1187
1222
|
margin-bottom: 10px;
|
|
1188
1223
|
opacity: 0;
|
|
1189
|
-
animation: mushi-pts-pop
|
|
1224
|
+
animation: mushi-pts-pop ${ne}ms ${M} 900ms forwards;
|
|
1190
1225
|
}
|
|
1191
1226
|
.success-bar { margin: 0 0 5px; }
|
|
1192
1227
|
|
|
@@ -1204,8 +1239,8 @@
|
|
|
1204
1239
|
.mushi-beta-strip {
|
|
1205
1240
|
margin: 0 16px 2px;
|
|
1206
1241
|
padding: 9px 12px;
|
|
1207
|
-
background: ${
|
|
1208
|
-
border: 1px solid ${s?"
|
|
1242
|
+
background: ${y};
|
|
1243
|
+
border: 1px solid rgba(${T},${s?"0.22":"0.16"});
|
|
1209
1244
|
border-radius: 4px;
|
|
1210
1245
|
display: flex;
|
|
1211
1246
|
flex-direction: column;
|
|
@@ -1224,7 +1259,7 @@
|
|
|
1224
1259
|
padding: 1px 6px;
|
|
1225
1260
|
border-radius: 3px;
|
|
1226
1261
|
background: ${u};
|
|
1227
|
-
color: ${
|
|
1262
|
+
color: ${h};
|
|
1228
1263
|
font-family: ${P};
|
|
1229
1264
|
font-size: 9px;
|
|
1230
1265
|
font-weight: 700;
|
|
@@ -1271,7 +1306,7 @@
|
|
|
1271
1306
|
|
|
1272
1307
|
.mushi-changelog-summary {
|
|
1273
1308
|
font-size: 11px;
|
|
1274
|
-
color: ${
|
|
1309
|
+
color: ${d};
|
|
1275
1310
|
cursor: pointer;
|
|
1276
1311
|
list-style: none;
|
|
1277
1312
|
display: flex;
|
|
@@ -1284,7 +1319,7 @@
|
|
|
1284
1319
|
content: '\u25B6';
|
|
1285
1320
|
font-size: 7px;
|
|
1286
1321
|
opacity: 0.6;
|
|
1287
|
-
transition: transform
|
|
1322
|
+
transition: transform ${Q}ms ${M};
|
|
1288
1323
|
}
|
|
1289
1324
|
|
|
1290
1325
|
.mushi-changelog[open] .mushi-changelog-summary::before {
|
|
@@ -1302,7 +1337,7 @@
|
|
|
1302
1337
|
|
|
1303
1338
|
.mushi-changelog-list li {
|
|
1304
1339
|
font-size: 11px;
|
|
1305
|
-
color: ${
|
|
1340
|
+
color: ${d};
|
|
1306
1341
|
line-height: 1.5;
|
|
1307
1342
|
}
|
|
1308
1343
|
|
|
@@ -1311,8 +1346,8 @@
|
|
|
1311
1346
|
.mushi-beta-success-footer {
|
|
1312
1347
|
margin-top: 14px;
|
|
1313
1348
|
padding: 10px 14px;
|
|
1314
|
-
background: ${
|
|
1315
|
-
border: 1px solid ${s?"
|
|
1349
|
+
background: ${y};
|
|
1350
|
+
border: 1px solid rgba(${T},${s?"0.18":"0.14"});
|
|
1316
1351
|
border-radius: 4px;
|
|
1317
1352
|
display: flex;
|
|
1318
1353
|
flex-direction: column;
|
|
@@ -1343,7 +1378,7 @@
|
|
|
1343
1378
|
fix \u2014 Workstream C). Horizontal padding also clears the left/right
|
|
1344
1379
|
insets for landscape notches. */
|
|
1345
1380
|
box-sizing: border-box;
|
|
1346
|
-
min-height: ${
|
|
1381
|
+
min-height: ${z}px;
|
|
1347
1382
|
display: flex;
|
|
1348
1383
|
align-items: center;
|
|
1349
1384
|
justify-content: center;
|
|
@@ -1354,8 +1389,8 @@
|
|
|
1354
1389
|
letter-spacing: 0.04em;
|
|
1355
1390
|
white-space: nowrap;
|
|
1356
1391
|
overflow: hidden;
|
|
1357
|
-
z-index: var(--mushi-banner-z, ${
|
|
1358
|
-
animation: mushi-banner-slide-in
|
|
1392
|
+
z-index: var(--mushi-banner-z, ${A});
|
|
1393
|
+
animation: mushi-banner-slide-in ${ce}ms ${M} both;
|
|
1359
1394
|
}
|
|
1360
1395
|
|
|
1361
1396
|
.mushi-banner.top { top: 0; padding-top: env(safe-area-inset-top, 0px); }
|
|
@@ -1363,17 +1398,17 @@
|
|
|
1363
1398
|
|
|
1364
1399
|
/* --- neon variant (electric lime \u2014 dev / beta tool aesthetic) --- */
|
|
1365
1400
|
.mushi-banner.neon {
|
|
1366
|
-
background: ${
|
|
1367
|
-
color: ${
|
|
1368
|
-
border-bottom: 1.5px solid ${
|
|
1401
|
+
background: ${R};
|
|
1402
|
+
color: ${v};
|
|
1403
|
+
border-bottom: 1.5px solid ${O};
|
|
1369
1404
|
}
|
|
1370
1405
|
.mushi-banner.neon.bottom {
|
|
1371
|
-
border-top: 1.5px solid ${
|
|
1406
|
+
border-top: 1.5px solid ${O};
|
|
1372
1407
|
border-bottom: none;
|
|
1373
1408
|
}
|
|
1374
1409
|
.mushi-banner.neon .mushi-banner-btn {
|
|
1375
1410
|
background: rgba(0,0,0,0.14);
|
|
1376
|
-
color: ${
|
|
1411
|
+
color: ${v};
|
|
1377
1412
|
border: 1px solid rgba(0,0,0,0.22);
|
|
1378
1413
|
}
|
|
1379
1414
|
.mushi-banner.neon .mushi-banner-btn:hover {
|
|
@@ -1384,10 +1419,10 @@
|
|
|
1384
1419
|
.mushi-banner.brand {
|
|
1385
1420
|
background: ${u};
|
|
1386
1421
|
color: ${w};
|
|
1387
|
-
border-bottom: 1.5px solid ${
|
|
1422
|
+
border-bottom: 1.5px solid ${W};
|
|
1388
1423
|
}
|
|
1389
1424
|
.mushi-banner.brand.bottom {
|
|
1390
|
-
border-top: 1.5px solid ${
|
|
1425
|
+
border-top: 1.5px solid ${W};
|
|
1391
1426
|
border-bottom: none;
|
|
1392
1427
|
}
|
|
1393
1428
|
.mushi-banner.brand .mushi-banner-btn {
|
|
@@ -1408,7 +1443,7 @@
|
|
|
1408
1443
|
background: ${s?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};
|
|
1409
1444
|
backdrop-filter: blur(14px);
|
|
1410
1445
|
-webkit-backdrop-filter: blur(14px);
|
|
1411
|
-
color: ${
|
|
1446
|
+
color: ${o};
|
|
1412
1447
|
border-bottom: 1px solid ${b};
|
|
1413
1448
|
}
|
|
1414
1449
|
.mushi-banner.subtle.bottom {
|
|
@@ -1417,7 +1452,7 @@
|
|
|
1417
1452
|
}
|
|
1418
1453
|
.mushi-banner.subtle .mushi-banner-btn {
|
|
1419
1454
|
background: ${s?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};
|
|
1420
|
-
color: ${
|
|
1455
|
+
color: ${o};
|
|
1421
1456
|
border: 1px solid ${b};
|
|
1422
1457
|
}
|
|
1423
1458
|
.mushi-banner.subtle .mushi-banner-btn:hover {
|
|
@@ -1435,7 +1470,7 @@
|
|
|
1435
1470
|
.mushi-banner--rich {
|
|
1436
1471
|
justify-content: space-between;
|
|
1437
1472
|
gap: 12px;
|
|
1438
|
-
min-height: ${
|
|
1473
|
+
min-height: ${z}px;
|
|
1439
1474
|
height: auto;
|
|
1440
1475
|
padding: 4px 12px 4px 16px;
|
|
1441
1476
|
white-space: normal;
|
|
@@ -1496,7 +1531,7 @@
|
|
|
1496
1531
|
font-size: 11px;
|
|
1497
1532
|
}
|
|
1498
1533
|
.mushi-banner-actions::-webkit-scrollbar { display: none; }
|
|
1499
|
-
@media (max-width: ${
|
|
1534
|
+
@media (max-width: ${tt}px) {
|
|
1500
1535
|
/* Phones: keep only the primary bug CTA (+ dismiss outside the nav). */
|
|
1501
1536
|
.mushi-banner-actions .mushi-banner-extra { display: none; }
|
|
1502
1537
|
}
|
|
@@ -1512,7 +1547,7 @@
|
|
|
1512
1547
|
letter-spacing: inherit;
|
|
1513
1548
|
text-decoration: none;
|
|
1514
1549
|
opacity: 0.88;
|
|
1515
|
-
transition: opacity
|
|
1550
|
+
transition: opacity ${Q}ms ${M};
|
|
1516
1551
|
flex-shrink: 0;
|
|
1517
1552
|
}
|
|
1518
1553
|
.mushi-banner-link:hover { opacity: 1; }
|
|
@@ -1540,7 +1575,7 @@
|
|
|
1540
1575
|
cursor: pointer;
|
|
1541
1576
|
font: inherit;
|
|
1542
1577
|
letter-spacing: inherit;
|
|
1543
|
-
transition:
|
|
1578
|
+
transition: opacity ${Q}ms ${M};
|
|
1544
1579
|
flex-shrink: 0;
|
|
1545
1580
|
height: 24px;
|
|
1546
1581
|
line-height: 1;
|
|
@@ -1562,7 +1597,7 @@
|
|
|
1562
1597
|
flex-shrink: 0;
|
|
1563
1598
|
color: inherit;
|
|
1564
1599
|
border-radius: 3px;
|
|
1565
|
-
transition: opacity
|
|
1600
|
+
transition: opacity ${Q}ms ${M};
|
|
1566
1601
|
}
|
|
1567
1602
|
.mushi-banner-dismiss:hover {
|
|
1568
1603
|
opacity: 1;
|
|
@@ -1583,7 +1618,7 @@
|
|
|
1583
1618
|
border-radius: 3px;
|
|
1584
1619
|
white-space: nowrap;
|
|
1585
1620
|
flex-shrink: 0;
|
|
1586
|
-
transition: opacity
|
|
1621
|
+
transition: opacity ${Q}ms ${M};
|
|
1587
1622
|
margin-left: 4px;
|
|
1588
1623
|
}
|
|
1589
1624
|
.mushi-banner-my-reports:hover {
|
|
@@ -1645,7 +1680,7 @@
|
|
|
1645
1680
|
font-family: ${B};
|
|
1646
1681
|
font-size: 13px;
|
|
1647
1682
|
text-align: left;
|
|
1648
|
-
transition:
|
|
1683
|
+
transition: opacity ${V}ms ${M};
|
|
1649
1684
|
}
|
|
1650
1685
|
.mushi-more-toggle:hover { color: ${u}; }
|
|
1651
1686
|
.mushi-more-toggle:hover .mushi-more-toggle-arrow { transform: translateX(3px); }
|
|
@@ -1663,7 +1698,7 @@
|
|
|
1663
1698
|
.mushi-more-toggle-arrow {
|
|
1664
1699
|
font-size: 14px;
|
|
1665
1700
|
opacity: 0.5;
|
|
1666
|
-
transition: transform
|
|
1701
|
+
transition: transform ${V}ms ${M};
|
|
1667
1702
|
}
|
|
1668
1703
|
/* \u2500\u2500 Step slide-in \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\u2500\u2500\u2500\u2500\u2500\u2500 */
|
|
1669
1704
|
@keyframes mushi-step-in {
|
|
@@ -1678,24 +1713,24 @@
|
|
|
1678
1713
|
}
|
|
1679
1714
|
/* Expanded secondary categories animate in */
|
|
1680
1715
|
.mushi-categories-expanded {
|
|
1681
|
-
animation: mushi-step-in
|
|
1716
|
+
animation: mushi-step-in ${V}ms ${M} both;
|
|
1682
1717
|
}
|
|
1683
1718
|
.mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${u};font-size:12px;font-family:${P};text-decoration:underline;text-underline-offset:2px}
|
|
1684
1719
|
.mushi-link-btn:hover{opacity:0.8}
|
|
1685
1720
|
.mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${u};outline-offset:2px;border-radius:2px}
|
|
1686
|
-
.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:${
|
|
1721
|
+
.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:${o};transition:opacity ${Q}ms ${M}}
|
|
1687
1722
|
.mushi-nav-item:hover{background:${s?"rgba(255,255,255,0.09)":"rgba(0,0,0,0.07)"}}
|
|
1688
1723
|
.mushi-account-card{display:flex;align-items:center;gap:12px;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};border-radius:10px;padding:12px 14px;margin-bottom:14px}
|
|
1689
|
-
.mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${
|
|
1724
|
+
.mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${y};color:${x};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
|
|
1690
1725
|
.mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}
|
|
1691
|
-
.mushi-account-info strong{font:700 14px/1.3 inherit;color:${
|
|
1692
|
-
.mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${
|
|
1726
|
+
.mushi-account-info strong{font:700 14px/1.3 inherit;color:${o}}
|
|
1727
|
+
.mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${d};font-family:${P}}
|
|
1693
1728
|
.mushi-account-rank{display:block}
|
|
1694
1729
|
.mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}
|
|
1695
1730
|
.mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}
|
|
1696
1731
|
.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}
|
|
1697
1732
|
.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}
|
|
1698
|
-
.mushi-app-icon-initials{font-size:9px;font-weight:700;color:${
|
|
1733
|
+
.mushi-app-icon-initials{font-size:9px;font-weight:700;color:${d};line-height:1}
|
|
1699
1734
|
.mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}
|
|
1700
1735
|
.mushi-header-host-icon{display:block;width:20px;height:20px;border-radius:4px;object-fit:contain}
|
|
1701
1736
|
.mushi-xapp-group{margin-bottom:14px}
|
|
@@ -1706,32 +1741,47 @@
|
|
|
1706
1741
|
.mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}
|
|
1707
1742
|
.mushi-assistant-greeting{font:400 14px/1.5 ${B};color:${l};padding:6px 2px}
|
|
1708
1743
|
.mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
|
|
1709
|
-
.mushi-assistant-chip{background:${
|
|
1710
|
-
.mushi-assistant-chip:hover{background
|
|
1744
|
+
.mushi-assistant-chip{background:${y};color:${x};border:1px solid ${b};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${B};transition:opacity ${Q}ms ${M},transform ${Q}ms ${M}}
|
|
1745
|
+
.mushi-assistant-chip:hover{background:rgba(${T},${s?"0.22":"0.14"})}
|
|
1711
1746
|
.mushi-assistant-chip:focus-visible{outline:2px solid ${u};outline-offset:2px}
|
|
1712
1747
|
.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
1748
|
.mushi-assistant-msg-user{align-self:flex-end;background:${u};color:${w};border-bottom-right-radius:4px}
|
|
1714
|
-
.mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${
|
|
1749
|
+
.mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${o};border-bottom-left-radius:4px}
|
|
1715
1750
|
.mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}
|
|
1716
|
-
.mushi-assistant-error{align-self:flex-start;color:${
|
|
1751
|
+
.mushi-assistant-error{align-self:flex-start;color:${S};font-size:12px;padding:4px 2px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
|
|
1752
|
+
.mushi-assistant-recovery{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
|
|
1753
|
+
.mushi-assistant-recovery-footer{margin-top:4px;padding-top:4px}
|
|
1754
|
+
.mushi-assistant-report-cta{background:${u};color:${w};border:none;border-radius:999px;padding:6px 14px;font-size:12px;cursor:pointer;font-family:${B};font-weight:600}
|
|
1755
|
+
.mushi-assistant-report-cta:hover{opacity:0.92}
|
|
1756
|
+
.mushi-assistant-report-cta:focus-visible{outline:2px solid ${u};outline-offset:2px}
|
|
1757
|
+
.mushi-assistant-report-link{background:transparent;color:${x};border:none;padding:0;font-size:12px;cursor:pointer;font-family:${B};text-decoration:underline;text-underline-offset:2px}
|
|
1758
|
+
.mushi-assistant-report-link:hover{opacity:0.85}
|
|
1759
|
+
.mushi-assistant-report-link:focus-visible{outline:2px solid ${u};outline-offset:2px}
|
|
1717
1760
|
.mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${f};padding-top:8px}
|
|
1718
|
-
.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:${
|
|
1761
|
+
.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:${i};color:${o}}
|
|
1719
1762
|
.mushi-assistant-input:focus-visible{outline:2px solid ${u};outline-offset:1px}
|
|
1720
1763
|
.mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${u};color:${w};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
|
|
1721
1764
|
.mushi-assistant-submit:hover{transform:translateY(-1px)}
|
|
1722
1765
|
.mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}
|
|
1723
1766
|
.mushi-assistant-submit:focus-visible{outline:2px solid ${u};outline-offset:2px}
|
|
1724
|
-
`}var
|
|
1767
|
+
`}var Ne="@mushi-mushi/web",fe="1.26.0";var ur="mushi-assistant-session-v1";function ni(){try{if(typeof sessionStorage>"u")return null;let t=sessionStorage.getItem(ur);if(!t)return null;let e=JSON.parse(t);if(!e||typeof e!="object")return null;let r=e,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let s=[];for(let a of n){if(!a||typeof a!="object")continue;let o=a;if(o.role!=="user"&&o.role!=="assistant"||typeof o.text!="string")continue;let l={role:o.role,text:o.text};if(Array.isArray(o.options)){let m=o.options.filter(d=>typeof d=="string");m.length&&(l.options=m);}o.offerReport===!0&&(l.offerReport=!0),s.push(l);}let i=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:s,threadId:i}}catch{return null}}function si(t){try{if(typeof sessionStorage>"u")return;if(!t.turns.length&&!t.threadId){sessionStorage.removeItem(ur);return}sessionStorage.setItem(ur,JSON.stringify(t));}catch{}}function ii(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(ur);}catch{}}var dr={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Qr="Feature request";function Zr(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 oi(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 pr(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 hr(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 i=Math.floor(s/60);if(i<24)return `${i}h ago`;let a=Math.floor(i/24);if(a<7)return `${a}d ago`;let o=Math.floor(a/7);return o<5?`${o}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function en(t){return t<10?`0${t}`:String(t)}var tn=3,mr={category:1,intent:2,details:3};function ai(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function g(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function li(t){let e=t.appDomain??Ks({project_slug:t.appSlug??""}),r=g(Gs(t.appName)),n=zs({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="${g(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${g(e??t.appName)}">
|
|
1725
1768
|
<img class="mushi-app-icon-img" src="${g(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
|
|
1726
1769
|
<span class="mushi-app-icon-initials" hidden>${r}</span>
|
|
1727
|
-
</span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function
|
|
1728
|
-
${s.length?`<div class="mushi-assistant-suggestions">${s.map(
|
|
1729
|
-
|
|
1770
|
+
</span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function ci(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 i=0,a=()=>{i+=1,i<s.length?r.src=s[i]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{Vs(r)&&a();};});}function di(t){switch(t.step){case "category":return Wa(t);case "intent":return el(t);case "details":return tl(t);case "success":return rl(t);case "reports":return Ga(t);case "report-detail":return Za(t);case "leaderboard":return Xa(t);case "roadmap":return Ya(t);case "account":return Ja(t);case "cross-app-reports":return Qa(t);case "assistant":return Ua(t)}}function Ua(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],i=t.assistantTurns.length===0,a=i?`<div class="mushi-assistant-greeting">${g(n)}</div>
|
|
1771
|
+
${s.length?`<div class="mushi-assistant-suggestions">${s.map(d=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(d)}">${g(d)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(d=>{let f=d.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",b=d.options&&d.options.length?`<div class="mushi-assistant-suggestions">${d.options.map(y=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(y)}">${g(y)}</button>`).join("")}</div>`:"",u=d.offerReport?`<div class="mushi-assistant-recovery">
|
|
1772
|
+
<button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${g(e.assistant.fileReportCta)}</button>
|
|
1773
|
+
</div>`:"";return `<div class="mushi-assistant-msg ${f}">${g(d.text)}</div>${b}${u}`}).join(""),o=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${g(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${g(t.assistantError)}
|
|
1774
|
+
<button type="button" class="mushi-assistant-report-cta" data-action="assistant-report">${g(e.assistant.fileReportCta)}</button>
|
|
1775
|
+
</div>`:"",m=!i&&!t.assistantSending&&!t.assistantError?`<div class="mushi-assistant-recovery mushi-assistant-recovery-footer">
|
|
1776
|
+
<button type="button" class="mushi-assistant-report-link" data-action="assistant-report">${g(e.assistant.stillStuckCta)}</button>
|
|
1777
|
+
</div>`:"";return `
|
|
1778
|
+
${ve(t,{title:r,showBack:true})}
|
|
1730
1779
|
<div class="mushi-assistant">
|
|
1731
1780
|
<div class="mushi-assistant-log">
|
|
1732
1781
|
${a}
|
|
1733
|
-
${
|
|
1782
|
+
${o}
|
|
1734
1783
|
${l}
|
|
1784
|
+
${m}
|
|
1735
1785
|
</div>
|
|
1736
1786
|
<form class="mushi-assistant-form" data-action="assistant-send">
|
|
1737
1787
|
<textarea
|
|
@@ -1743,17 +1793,17 @@
|
|
|
1743
1793
|
<button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${g(e.assistant.sendAriaLabel)}">\u2191</button>
|
|
1744
1794
|
</form>
|
|
1745
1795
|
</div>
|
|
1746
|
-
`}function
|
|
1796
|
+
`}function pi(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?"":`
|
|
1747
1797
|
<div class="mushi-outdated" role="status">
|
|
1748
1798
|
<strong>Mushi SDK ${g(r)}</strong>
|
|
1749
1799
|
${e?`latest is ${g(e)}.`:"needs attention."}
|
|
1750
1800
|
${s?`<span>${g(s)}</span>`:""}
|
|
1751
1801
|
</div>
|
|
1752
|
-
`}function
|
|
1802
|
+
`}function hi(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${g(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function ve(t,e){let r=t.locale,{title:n,showBack:s=false,step:i,eyebrow:a}=e,o=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${g(r.widget.back)}">\u2190 ${g(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${g(a??"Mushi \xB7 Report")}</span>`,l=i?`<span class="mushi-step-counter" aria-label="Step ${i} of ${tn}"><b>${en(i)}</b> / ${en(tn)}</span>`:"";return `
|
|
1753
1803
|
<div class="mushi-header">
|
|
1754
1804
|
<div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${g(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
|
|
1755
1805
|
<div class="mushi-header-titles">
|
|
1756
|
-
${
|
|
1806
|
+
${o}
|
|
1757
1807
|
<h3>${n}</h3>
|
|
1758
1808
|
</div>
|
|
1759
1809
|
<div class="mushi-header-meta">
|
|
@@ -1761,14 +1811,14 @@
|
|
|
1761
1811
|
<button type="button" class="mushi-close" data-action="close" aria-label="${g(r.widget.close)}">\u2715</button>
|
|
1762
1812
|
</div>
|
|
1763
1813
|
</div>
|
|
1764
|
-
`}function
|
|
1814
|
+
`}function qa(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function ja(t){let e=t.locale,r=e.step1.moreNav,n=qa(t),s=`${e.step1.moreNavLabel} (${n})`,i=t.unreadCount(),a=i?`${r.yourReports} (${i} ${r.unreadNew})`:r.yourReports,o=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
|
|
1765
1815
|
<span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
|
|
1766
1816
|
<div class="mushi-option-text">
|
|
1767
1817
|
<span class="mushi-option-label">${g(a)}</span>
|
|
1768
1818
|
<span class="mushi-option-desc">${g(r.yourReportsDesc)}</span>
|
|
1769
1819
|
</div>
|
|
1770
1820
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
1771
|
-
</button>`];t.callbacks.onFeatureBoardRequest&&
|
|
1821
|
+
</button>`];t.callbacks.onFeatureBoardRequest&&o.push(`
|
|
1772
1822
|
<button type="button" class="mushi-option-btn" data-action="roadmap">
|
|
1773
1823
|
<span class="mushi-option-icon" aria-hidden="true">\u{1F5F3}\uFE0F</span>
|
|
1774
1824
|
<div class="mushi-option-text">
|
|
@@ -1776,7 +1826,7 @@
|
|
|
1776
1826
|
<span class="mushi-option-desc">${g(r.communityIdeasDesc)}</span>
|
|
1777
1827
|
</div>
|
|
1778
1828
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
1779
|
-
</button>`),t.callbacks.assistantEnabled&&
|
|
1829
|
+
</button>`),t.callbacks.assistantEnabled&&o.push(`
|
|
1780
1830
|
<button type="button" class="mushi-option-btn" data-action="assistant">
|
|
1781
1831
|
<span class="mushi-option-icon" aria-hidden="true">\u{1F4AC}</span>
|
|
1782
1832
|
<div class="mushi-option-text">
|
|
@@ -1784,11 +1834,11 @@
|
|
|
1784
1834
|
<span class="mushi-option-desc">${g(e.assistant.hubDescription)}</span>
|
|
1785
1835
|
</div>
|
|
1786
1836
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
1787
|
-
</button>`),t.rewardsState&&
|
|
1788
|
-
<button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${g(r.leaderboard)}</button>`),
|
|
1837
|
+
</button>`),t.rewardsState&&o.push(`
|
|
1838
|
+
<button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${g(r.leaderboard)}</button>`),o.push(`
|
|
1789
1839
|
<button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
|
|
1790
1840
|
${t.testerInfo?`\u{1F464} ${g(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${g(r.joinCommunity)}`}
|
|
1791
|
-
</button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${
|
|
1841
|
+
</button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${o.join("")}</div>`:"";return `
|
|
1792
1842
|
<div class="mushi-more-nav">
|
|
1793
1843
|
<button
|
|
1794
1844
|
type="button"
|
|
@@ -1801,31 +1851,31 @@
|
|
|
1801
1851
|
</button>
|
|
1802
1852
|
${l}
|
|
1803
1853
|
</div>
|
|
1804
|
-
`}function
|
|
1854
|
+
`}function Wa(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:dr[b],label:e.step1.categories[b],desc:e.step1.categoryDescriptions[b]})),n=({id:b,icon:u,label:y,desc:x})=>`
|
|
1805
1855
|
<button type="button" class="mushi-option-btn" data-category="${g(b)}" role="radio" aria-checked="false">
|
|
1806
1856
|
<span class="mushi-option-icon" aria-hidden="true">${g(u)}</span>
|
|
1807
1857
|
<div class="mushi-option-text">
|
|
1808
|
-
<span class="mushi-option-label">${g(
|
|
1858
|
+
<span class="mushi-option-label">${g(y)}</span>
|
|
1809
1859
|
${x?`<span class="mushi-option-desc">${g(x)}</span>`:""}
|
|
1810
1860
|
</div>
|
|
1811
1861
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
1812
1862
|
</button>
|
|
1813
|
-
`,s=t.config.categories&&t.config.categories.length>0,
|
|
1863
|
+
`,s=t.config.categories&&t.config.categories.length>0,i=1,a=s?r:r.slice(0,i),o=s?[]:r.slice(i),l=o.length>0,m=a.map(n).join(""),d=o.map(n).join(""),f=l?t.showAllCategories?`<div class="mushi-categories-expanded">${d}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
|
|
1814
1864
|
<span class="mushi-more-toggle-text">More issue types</span>
|
|
1815
|
-
<span class="mushi-more-toggle-count">${
|
|
1865
|
+
<span class="mushi-more-toggle-count">${o.length} more</span>
|
|
1816
1866
|
<span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
|
|
1817
1867
|
</button>`:"";return `
|
|
1818
|
-
${
|
|
1819
|
-
${t.config.betaMode?.enabled?
|
|
1868
|
+
${ve(t,{title:e.step1.heading,step:mr.category})}
|
|
1869
|
+
${t.config.betaMode?.enabled?Va(t):""}
|
|
1820
1870
|
<div class="mushi-body" role="radiogroup" aria-label="${g(e.step1.heading)}">
|
|
1821
1871
|
<p class="mushi-section-label">${g(e.step1.reportSectionLabel)}</p>
|
|
1822
|
-
${
|
|
1872
|
+
${za(t)}
|
|
1823
1873
|
${m}
|
|
1824
1874
|
${f}
|
|
1825
|
-
${t.rewardsState?
|
|
1826
|
-
${
|
|
1875
|
+
${t.rewardsState?il(t):""}
|
|
1876
|
+
${ja(t)}
|
|
1827
1877
|
</div>
|
|
1828
|
-
`}function
|
|
1878
|
+
`}function za(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 `
|
|
1829
1879
|
<button
|
|
1830
1880
|
type="button"
|
|
1831
1881
|
class="mushi-option-btn mushi-feature-entry"
|
|
@@ -1839,51 +1889,51 @@
|
|
|
1839
1889
|
</div>
|
|
1840
1890
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
1841
1891
|
</button>
|
|
1842
|
-
`}function
|
|
1892
|
+
`}function Ka(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(i=>`<li>\u2022 ${g(i)}</li>`).join("");return `
|
|
1843
1893
|
<details class="mushi-changelog">
|
|
1844
1894
|
<summary class="mushi-changelog-summary">${r.date?`What\u2019s new in ${g(r.version)} \xB7 ${g(r.date)}`:`What\u2019s new in ${g(r.version)}`}</summary>
|
|
1845
1895
|
<ul class="mushi-changelog-list">${n}</ul>
|
|
1846
1896
|
</details>
|
|
1847
|
-
`}function
|
|
1897
|
+
`}function Va(t){let e=t.config.betaMode,r=g(e.appName??"This app"),n=e.message?g(e.message):`${r} is in early development`,s=e.contactEmail?g(e.contactEmail):null,i=e.perks??[];return `
|
|
1848
1898
|
<div class="mushi-beta-strip" role="note" aria-label="Beta status">
|
|
1849
1899
|
<div class="mushi-beta-strip-row">
|
|
1850
1900
|
<span class="mushi-beta-tag" aria-hidden="true">BETA</span>
|
|
1851
1901
|
<span class="mushi-beta-msg">${n}</span>
|
|
1852
1902
|
</div>
|
|
1853
1903
|
${s?`<div class="mushi-beta-contact-hint">Reports go to ${s} \xB7 reviewed by the team</div>`:""}
|
|
1854
|
-
${
|
|
1904
|
+
${i.length>0?`
|
|
1855
1905
|
<ul class="mushi-beta-perks" aria-label="Beta tester perks">
|
|
1856
|
-
${
|
|
1906
|
+
${i.map(a=>`<li>\u2713 ${g(a)}</li>`).join("")}
|
|
1857
1907
|
</ul>
|
|
1858
1908
|
`:""}
|
|
1859
|
-
${
|
|
1909
|
+
${Ka(t)}
|
|
1860
1910
|
</div>
|
|
1861
|
-
`}function
|
|
1862
|
-
<button type="button" class="mushi-report-row" data-report-id="${g(s.id)}" aria-label="View report: ${g(
|
|
1911
|
+
`}function Ga(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let i=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=pr(s.status),o=hr(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 `
|
|
1912
|
+
<button type="button" class="mushi-report-row" data-report-id="${g(s.id)}" aria-label="View report: ${g(i)}">
|
|
1863
1913
|
<div class="mushi-report-main">
|
|
1864
|
-
<span class="mushi-report-title">${g(
|
|
1914
|
+
<span class="mushi-report-title">${g(i)}</span>
|
|
1865
1915
|
<span class="mushi-report-meta">
|
|
1866
|
-
<span class="mushi-report-status mushi-status-${a}">${g(
|
|
1867
|
-
${
|
|
1916
|
+
<span class="mushi-report-status mushi-status-${a}">${g(Zr(s.status))}</span>
|
|
1917
|
+
${o?`<span class="mushi-report-when">${g(o)}</span>`:""}
|
|
1868
1918
|
${l}
|
|
1869
1919
|
</span>
|
|
1870
1920
|
</div>
|
|
1871
1921
|
<span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
|
|
1872
1922
|
</button>`}).join(""),n=t.rewardsState?`<button type="button" class="mushi-leaderboard-link" data-action="open-leaderboard">\u{1F3C6} ${g(e.reports.leaderboardLink)}</button>`:"";return `
|
|
1873
|
-
${
|
|
1923
|
+
${ve(t,{title:e.reports.title,showBack:true,eyebrow:e.eyebrows.inbox})}
|
|
1874
1924
|
<div class="mushi-body">
|
|
1875
1925
|
${t.reporterLoading?`<p class="mushi-muted">${g(e.reports.loading)}</p>`:""}
|
|
1876
1926
|
${t.reporterError?`<p class="mushi-error-inline">${g(t.reporterError)}</p>`:""}
|
|
1877
1927
|
${r||(t.reporterLoading?"":`<p class="mushi-muted">${g(e.reports.empty)}</p>`)}
|
|
1878
1928
|
${n}
|
|
1879
1929
|
</div>
|
|
1880
|
-
`}function
|
|
1930
|
+
`}function Ya(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),i=g(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),o=!!n.shipped_at,l=!!n.my_vote,m=o?e.roadmap.shipped:String(n.status_label??n.status??"open"),d=e.roadmap.voteCount.replace("{n}",String(a));return `
|
|
1881
1931
|
<div class="mushi-report-row mushi-roadmap-row">
|
|
1882
1932
|
<div class="mushi-report-main">
|
|
1883
|
-
<span class="mushi-report-title">${
|
|
1933
|
+
<span class="mushi-report-title">${i}</span>
|
|
1884
1934
|
<span class="mushi-report-meta">
|
|
1885
1935
|
<span class="mushi-report-status">${g(m)}</span>
|
|
1886
|
-
<span class="mushi-report-when">${g(
|
|
1936
|
+
<span class="mushi-report-when">${g(d)}</span>
|
|
1887
1937
|
</span>
|
|
1888
1938
|
</div>
|
|
1889
1939
|
${t.callbacks.onFeatureBoardVote?`
|
|
@@ -1891,35 +1941,35 @@
|
|
|
1891
1941
|
${l?g(e.roadmap.voted):g(e.roadmap.vote)}
|
|
1892
1942
|
</button>`:""}
|
|
1893
1943
|
</div>`}).join("");return `
|
|
1894
|
-
${
|
|
1944
|
+
${ve(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
|
|
1895
1945
|
<div class="mushi-body">
|
|
1896
1946
|
${t.reporterLoading?`<p class="mushi-muted">${g(e.roadmap.loading)}</p>`:""}
|
|
1897
1947
|
${t.reporterError?`<p class="mushi-error-inline">${g(t.reporterError)}</p>`:""}
|
|
1898
1948
|
${r||(t.reporterLoading?"":`<p class="mushi-muted">${g(e.roadmap.empty)}</p>`)}
|
|
1899
1949
|
</div>
|
|
1900
|
-
`}function
|
|
1901
|
-
<div class="mushi-lb-row ${
|
|
1902
|
-
<span class="mushi-lb-rank">#${
|
|
1950
|
+
`}function Xa(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,i=t.testerReputation?.rank??null,a=n.map((l,m)=>{let d=l.rank||m+1,f=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
|
|
1951
|
+
<div class="mushi-lb-row ${d===1?"mushi-lb-top":""}${f?" mushi-lb-me":""}">
|
|
1952
|
+
<span class="mushi-lb-rank">#${d}</span>
|
|
1903
1953
|
<span class="mushi-lb-name">${g(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
|
|
1904
1954
|
<span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
|
|
1905
1955
|
</div>
|
|
1906
|
-
`}).join(""),i
|
|
1907
|
-
${
|
|
1956
|
+
`}).join(""),o=i?`<div class="mushi-lb-myrank">${g(e.leaderboard.myRank.replace("{rank}",String(i)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${g(e.leaderboard.signInPrompt)}</button>`;return `
|
|
1957
|
+
${ve(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
|
|
1908
1958
|
<div class="mushi-body">
|
|
1909
1959
|
${s?`<p class="mushi-muted">${g(e.leaderboard.loading)}</p>`:""}
|
|
1910
1960
|
${!s&&!n.length?`<p class="mushi-muted">${g(e.leaderboard.empty)}</p>`:""}
|
|
1911
1961
|
<div class="mushi-lb-list">${a}</div>
|
|
1912
|
-
${
|
|
1962
|
+
${o}
|
|
1913
1963
|
<p class="mushi-lb-note">${g(e.leaderboard.footer)}</p>
|
|
1914
1964
|
</div>
|
|
1915
|
-
`}function
|
|
1916
|
-
${
|
|
1965
|
+
`}function Ja(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,i=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
|
|
1966
|
+
${ve(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
|
|
1917
1967
|
<div class="mushi-body">
|
|
1918
1968
|
<div class="mushi-account-card">
|
|
1919
1969
|
<div class="mushi-account-avatar">${g(n.charAt(0).toUpperCase())}</div>
|
|
1920
1970
|
<div class="mushi-account-info">
|
|
1921
1971
|
<strong>${g(n)}</strong>
|
|
1922
|
-
${s?`<span class="mushi-account-rank">${g(
|
|
1972
|
+
${s?`<span class="mushi-account-rank">${g(i)}</span>`:""}
|
|
1923
1973
|
</div>
|
|
1924
1974
|
</div>
|
|
1925
1975
|
<button type="button" class="mushi-nav-item" data-action="open-cross-app-reports">
|
|
@@ -1931,14 +1981,14 @@
|
|
|
1931
1981
|
<button type="button" class="mushi-link-btn" data-action="sign-out-tester">${g(e.account.signOut)}</button>
|
|
1932
1982
|
</div>
|
|
1933
1983
|
`}return t.magicLinkSent?`
|
|
1934
|
-
${
|
|
1984
|
+
${ve(t,{title:e.account.checkEmailTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
|
|
1935
1985
|
<div class="mushi-body">
|
|
1936
1986
|
<p class="mushi-muted">${g(e.account.magicLinkSent.replace("{email}",t.magicLinkEmail))}</p>
|
|
1937
1987
|
<button type="button" class="mushi-link-btn" data-action="resend-magic-link">${g(e.account.resendEmail)}</button>
|
|
1938
1988
|
${t.magicLinkError?`<p class="mushi-error">${g(t.magicLinkError)}</p>`:""}
|
|
1939
1989
|
</div>
|
|
1940
1990
|
`:`
|
|
1941
|
-
${
|
|
1991
|
+
${ve(t,{title:e.account.joinTitle,showBack:true,eyebrow:e.eyebrows.signIn})}
|
|
1942
1992
|
<div class="mushi-body">
|
|
1943
1993
|
<p class="mushi-muted">${g(e.account.signInPrompt)}</p>
|
|
1944
1994
|
<label class="mushi-label" for="mushi-email-input">${g(e.account.emailLabel)}</label>
|
|
@@ -1957,39 +2007,39 @@
|
|
|
1957
2007
|
<span>${t.magicLinkSending?g(e.account.sending):g(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
|
|
1958
2008
|
</button>
|
|
1959
2009
|
</div>
|
|
1960
|
-
`}function
|
|
2010
|
+
`}function Qa(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let i of r){let a=i.project_id??"unknown";n.has(a)||n.set(a,{name:i.app_name??e.crossApp.unknownApp,slug:i.app_slug??null,domain:i.app_domain??null,reports:[]}),n.get(a).reports.push(i);}let s=[...n.entries()].map(([i,a])=>`
|
|
1961
2011
|
<div class="mushi-xapp-group">
|
|
1962
2012
|
<div class="mushi-xapp-app-head">
|
|
1963
|
-
${
|
|
2013
|
+
${li({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
|
|
1964
2014
|
<h4 class="mushi-xapp-app-name">${g(a.name)}</h4>
|
|
1965
2015
|
</div>
|
|
1966
|
-
${a.reports.map(l=>{let m=
|
|
2016
|
+
${a.reports.map(l=>{let m=pr(l.status);return `
|
|
1967
2017
|
<div class="mushi-report-row" data-report-id="${g(l.id)}" tabindex="0" role="button">
|
|
1968
|
-
<span class="mushi-report-status mushi-status-${m}">${g(
|
|
2018
|
+
<span class="mushi-report-status mushi-status-${m}">${g(Zr(l.status))}</span>
|
|
1969
2019
|
<span class="mushi-report-title">${g(l.title??l.category)}</span>
|
|
1970
|
-
<span class="mushi-report-when">${g(
|
|
2020
|
+
<span class="mushi-report-when">${g(hr(l.created_at))}</span>
|
|
1971
2021
|
</div>
|
|
1972
2022
|
`}).join("")}
|
|
1973
2023
|
</div>
|
|
1974
2024
|
`).join("");return `
|
|
1975
|
-
${
|
|
2025
|
+
${ve(t,{title:e.crossApp.title,showBack:true,eyebrow:e.eyebrows.allApps})}
|
|
1976
2026
|
<div class="mushi-body">
|
|
1977
2027
|
${t.crossAppLoading?`<p class="mushi-muted">${g(e.crossApp.loading)}</p>`:""}
|
|
1978
2028
|
${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${g(e.crossApp.empty)}</p>`:""}
|
|
1979
2029
|
${s}
|
|
1980
2030
|
</div>
|
|
1981
|
-
`}function
|
|
1982
|
-
<div class="mushi-thread-comment ${
|
|
1983
|
-
<strong>${g(
|
|
1984
|
-
<p>${g(
|
|
2031
|
+
`}function Za(t){let e=t.locale.flows,r=t.reporterReports.find(o=>o.id===t.selectedReportId),n=r?.status??"unknown",s=pr(n),i=r?.created_at?hr(r.created_at):"",a=t.reporterComments.map(o=>`
|
|
2032
|
+
<div class="mushi-thread-comment ${o.author_kind}">
|
|
2033
|
+
<strong>${g(o.author_kind==="reporter"?"You":o.author_name??"Developer")}</strong>
|
|
2034
|
+
<p>${g(o.body)}</p>
|
|
1985
2035
|
</div>
|
|
1986
2036
|
`).join("");return `
|
|
1987
|
-
${
|
|
2037
|
+
${ve(t,{title:e.thread.title,showBack:true,eyebrow:e.eyebrows.thread})}
|
|
1988
2038
|
<div class="mushi-body">
|
|
1989
2039
|
<div class="mushi-thread-summary">
|
|
1990
2040
|
<div class="mushi-thread-summary-meta">
|
|
1991
|
-
<span class="mushi-report-status mushi-status-${s}">${g(
|
|
1992
|
-
${
|
|
2041
|
+
<span class="mushi-report-status mushi-status-${s}">${g(oi(n))}</span>
|
|
2042
|
+
${i?`<span class="mushi-report-when">Reported ${g(i)}</span>`:""}
|
|
1993
2043
|
</div>
|
|
1994
2044
|
<p>${g(r?.summary??r?.description??"Report details")}</p>
|
|
1995
2045
|
</div>
|
|
@@ -2007,31 +2057,32 @@
|
|
|
2007
2057
|
<span>Reply</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
|
|
2008
2058
|
</button>
|
|
2009
2059
|
</div>
|
|
2010
|
-
`}function
|
|
2060
|
+
`}function el(t){let e=t.locale,r=t.selectedCategory,i=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
|
|
2011
2061
|
<button type="button" class="mushi-option-btn" data-intent="${g(l)}">
|
|
2012
2062
|
<span class="mushi-option-text"><span class="mushi-option-label">${g(l)}</span></span>
|
|
2013
2063
|
<span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
|
|
2014
2064
|
</button>
|
|
2015
|
-
`).join(""),a=t.categoryIcon(r),
|
|
2016
|
-
${
|
|
2065
|
+
`).join(""),a=t.categoryIcon(r),o=t.categoryLabel(r);return `
|
|
2066
|
+
${ve(t,{title:e.step2.heading,showBack:true,step:mr.intent})}
|
|
2017
2067
|
<div class="mushi-body">
|
|
2018
2068
|
<div class="mushi-selected-category">
|
|
2019
2069
|
<span aria-hidden="true">${g(a)}</span>
|
|
2020
|
-
<span>${g(
|
|
2070
|
+
<span>${g(o)}</span>
|
|
2021
2071
|
</div>
|
|
2022
2072
|
<div class="mushi-intents">
|
|
2023
|
-
${
|
|
2073
|
+
${i}
|
|
2024
2074
|
</div>
|
|
2025
2075
|
</div>
|
|
2026
|
-
`}function
|
|
2027
|
-
${
|
|
2076
|
+
`}function tl(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(" "),i=t.elementCapturing?e.step3.elementCapturing:t.elementError?e.step3.elementFailed:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementError?"error":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),o=e.step3.examplePrompts.map(l=>`<button type="button" class="mushi-example-chip" data-example="${g(l)}">${g(l)}</button>`).join("");return `
|
|
2077
|
+
${ve(t,{title:e.step3.heading,showBack:true,step:mr.details})}
|
|
2028
2078
|
<div class="mushi-body">
|
|
2029
|
-
<div class="mushi-example-chips" aria-label="Example prompts">${
|
|
2079
|
+
<div class="mushi-example-chips" aria-label="Example prompts">${o}</div>
|
|
2030
2080
|
<div class="mushi-textarea-wrap">
|
|
2031
2081
|
<textarea
|
|
2032
2082
|
class="mushi-textarea"
|
|
2033
2083
|
placeholder="${g(e.step3.descriptionPlaceholder)}"
|
|
2034
2084
|
rows="4"
|
|
2085
|
+
maxlength="4000"
|
|
2035
2086
|
aria-label="${g(e.step3.heading)}"
|
|
2036
2087
|
autofocus
|
|
2037
2088
|
></textarea>
|
|
@@ -2053,10 +2104,10 @@
|
|
|
2053
2104
|
${t.elementAvailable?`<button type="button" class="${a}"
|
|
2054
2105
|
data-action="element"
|
|
2055
2106
|
${t.elementCapturing?"disabled":""}
|
|
2056
|
-
aria-label="${g(
|
|
2107
|
+
aria-label="${g(i)}"
|
|
2057
2108
|
>
|
|
2058
2109
|
${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
|
|
2059
|
-
${g(
|
|
2110
|
+
${g(i)}
|
|
2060
2111
|
</button>`:""}
|
|
2061
2112
|
</div>
|
|
2062
2113
|
${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
|
|
@@ -2073,8 +2124,8 @@
|
|
|
2073
2124
|
<span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
|
|
2074
2125
|
</button>
|
|
2075
2126
|
</div>
|
|
2076
|
-
`}function
|
|
2077
|
-
${
|
|
2127
|
+
`}function rl(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 `
|
|
2128
|
+
${ve(t,{title:e.widget.title,showBack:true,eyebrow:"Mushi \xB7 Receipt"})}
|
|
2078
2129
|
<div class="mushi-body">
|
|
2079
2130
|
<div class="mushi-success">
|
|
2080
2131
|
<div class="mushi-success-stamp" aria-hidden="true">
|
|
@@ -2083,30 +2134,30 @@
|
|
|
2083
2134
|
</div>
|
|
2084
2135
|
<div class="mushi-success-headline">${e.widget.submitted}</div>
|
|
2085
2136
|
<div class="mushi-success-meta">REPORT \xB7 ${n}</div>
|
|
2086
|
-
${
|
|
2087
|
-
${t.rewardsState?
|
|
2088
|
-
${t.config.betaMode?.enabled?
|
|
2137
|
+
${nl(t)}
|
|
2138
|
+
${t.rewardsState?ol(t):""}
|
|
2139
|
+
${t.config.betaMode?.enabled?sl(t):""}
|
|
2089
2140
|
<button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="view-my-reports">
|
|
2090
2141
|
${g(t.locale.flows.success.trackReport)}
|
|
2091
2142
|
</button>
|
|
2092
2143
|
</div>
|
|
2093
2144
|
</div>
|
|
2094
|
-
`}function
|
|
2145
|
+
`}function nl(t){let e=t.locale.flows.success,r=t.lastSubmitFailureKind;if(r==="rate_limited"||r==="quota"||r==="permanent"||r==="retrying"||t.lastSubmitQueuedOffline){let o=r==="rate_limited"?e.rateLimited:r==="quota"?e.quotaBlocked:r==="permanent"?e.permanentFailed:r==="retrying"?e.retrying:e.queuedOffline,l=r==="rate_limited"?e.rateLimitedHint:r==="quota"?e.quotaBlockedHint:r==="permanent"?e.permanentFailedHint:r==="retrying"?e.retryingHint:e.queuedHint;return `
|
|
2095
2146
|
<div class="mushi-success-receipt" role="status">
|
|
2096
2147
|
<div class="mushi-success-receipt-row mushi-success-receipt-warn">
|
|
2097
|
-
<span class="mushi-success-receipt-label">${g(
|
|
2098
|
-
<span class="mushi-success-receipt-hint">${g(
|
|
2148
|
+
<span class="mushi-success-receipt-label">${g(o)}</span>
|
|
2149
|
+
<span class="mushi-success-receipt-hint">${g(l)}</span>
|
|
2099
2150
|
</div>
|
|
2100
2151
|
</div>
|
|
2101
|
-
|
|
2152
|
+
`}if(!t.lastReportId)return `
|
|
2102
2153
|
<div class="mushi-success-receipt" role="status">
|
|
2103
2154
|
<div class="mushi-success-receipt-row">
|
|
2104
2155
|
<span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
|
|
2105
2156
|
<span class="mushi-success-receipt-hint">${g(e.delivering)}</span>
|
|
2106
2157
|
</div>
|
|
2107
|
-
${
|
|
2158
|
+
${ui(t)}
|
|
2108
2159
|
</div>
|
|
2109
|
-
`;let
|
|
2160
|
+
`;let n=`#${t.lastReportId.slice(0,8)}`,s=(t.config.dashboardUrl??"").replace(/\/$/,""),i=s?`${s}/reports/${encodeURIComponent(t.lastReportId)}`:"",a=t.lastSubmitScreenshotDropped?`
|
|
2110
2161
|
<div class="mushi-success-receipt-row mushi-success-receipt-warn">
|
|
2111
2162
|
<span class="mushi-success-receipt-hint">${g(e.screenshotDropped)}</span>
|
|
2112
2163
|
</div>
|
|
@@ -2121,49 +2172,49 @@
|
|
|
2121
2172
|
data-copy-id="${g(t.lastReportId)}"
|
|
2122
2173
|
title="Copy report id ${g(t.lastReportId)}"
|
|
2123
2174
|
aria-label="Copy report id ${g(t.lastReportId)}"
|
|
2124
|
-
>${g(
|
|
2175
|
+
>${g(n)}<span class="mushi-success-receipt-copy" aria-hidden="true">\u2398</span></button>
|
|
2125
2176
|
</div>
|
|
2126
|
-
${
|
|
2177
|
+
${i?`
|
|
2127
2178
|
<a
|
|
2128
2179
|
class="mushi-success-receipt-track"
|
|
2129
|
-
href="${g(
|
|
2180
|
+
href="${g(i)}"
|
|
2130
2181
|
target="_blank"
|
|
2131
2182
|
rel="noopener noreferrer"
|
|
2132
2183
|
>${g(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
|
|
2133
2184
|
`:""}
|
|
2134
|
-
${
|
|
2135
|
-
${
|
|
2185
|
+
${a}
|
|
2186
|
+
${ui(t)}
|
|
2136
2187
|
</div>
|
|
2137
|
-
`}function
|
|
2188
|
+
`}function ui(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${g(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${g(t.locale.flows.success.slaDefault)}</div>`}function sl(t){let e=t.config.betaMode,r=e.contactEmail?g(e.contactEmail):null,n=g(e.appName??"the team");return `
|
|
2138
2189
|
<div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
|
|
2139
2190
|
${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>`}
|
|
2140
2191
|
</div>
|
|
2141
|
-
`}function
|
|
2192
|
+
`}function il(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,i=e?.displayName??"Free",a=e?.slug??"free",o=t.tierColor(a),l=100,m="";if(r){let d=e?.pointsThreshold??0,f=r.pointsThreshold;l=f>d?Math.round(Math.min(1,(n-d)/(f-d))*100):100,m=`${Math.max(0,f-n).toLocaleString()} pts to ${g(r.displayName)}`;}return `
|
|
2142
2193
|
<div class="mushi-rewards-nudge" aria-label="Rewards progress">
|
|
2143
2194
|
<div class="mushi-rewards-row">
|
|
2144
|
-
<span class="mushi-tier-pip" style="background:${
|
|
2145
|
-
<span class="mushi-rewards-tier-name">${g(
|
|
2195
|
+
<span class="mushi-tier-pip" style="background:${o}" aria-hidden="true"></span>
|
|
2196
|
+
<span class="mushi-rewards-tier-name">${g(i)}</span>
|
|
2146
2197
|
<span class="mushi-rewards-pts-count">${n.toLocaleString()} pts</span>
|
|
2147
2198
|
<span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
|
|
2148
2199
|
</div>
|
|
2149
2200
|
${r?`
|
|
2150
2201
|
<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
|
|
2151
|
-
<div class="mushi-tier-bar-fill" style="
|
|
2202
|
+
<div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${l/100}"></div>
|
|
2152
2203
|
</div>
|
|
2153
2204
|
<div class="mushi-rewards-next-label">${m}</div>
|
|
2154
2205
|
`:""}
|
|
2155
2206
|
</div>
|
|
2156
|
-
`}function
|
|
2207
|
+
`}function ol(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,i=n+s,a=100,o="";if(r){let l=e?.pointsThreshold??0,m=r.pointsThreshold;a=m>l?Math.round(Math.min(1,(i-l)/(m-l))*100):100;let d=Math.max(0,m-i);o=d>0?`${d.toLocaleString()} pts to ${g(r.displayName)}`:`\u{1F389} ${g(r.displayName)} reached!`;}return `
|
|
2157
2208
|
<div class="mushi-success-rewards">
|
|
2158
2209
|
<div class="mushi-success-pts-award">+${s} pts</div>
|
|
2159
2210
|
${r?`
|
|
2160
2211
|
<div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
|
|
2161
|
-
<div class="mushi-tier-bar-fill" style="
|
|
2212
|
+
<div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${a/100}"></div>
|
|
2162
2213
|
</div>
|
|
2163
|
-
<div class="mushi-rewards-next-label">${
|
|
2214
|
+
<div class="mushi-rewards-next-label">${o}</div>
|
|
2164
2215
|
`:""}
|
|
2165
2216
|
</div>
|
|
2166
|
-
`}var Jt=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=Lr(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;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=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;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;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=Lr(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:Kt[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.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitScreenshotDropped=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Ar,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,this.screenshotCapturing=false,e&&(this.screenshotError=false),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();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){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=`
|
|
2217
|
+
`}function al(t){let e=t.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(e)||/わかりません|分かりません|不明|報告して/.test(t)}var fr=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=Jr(this.config.locale==="auto"?void 0:this.config.locale);let s=ni();s?.turns.length&&(this.assistantTurns=s.turns,this.assistantThreadId=s.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;colorSchemeMq=null;onColorSchemeChange=null;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;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=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;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.bindColorSchemeListener(),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=Jr(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",i=JSON.stringify(this.config.bannerConfig??null)!==n;(s||i)&&(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:dr[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.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Qr,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.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify")this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{},offerReport:!0});else {let s=n.text??"\u2026",i=al(s);this.assistantTurns.push({role:"assistant",text:s,...i?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}persistAssistantSession(){si({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,ii(),this.step==="assistant"&&this.render();}openReportFromAssistant(){this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false,this.step="category",this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.render();}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(i=>{let a=o=>{o.preventDefault(),this.updateConfig(r),this.open();};return i.addEventListener("click",a),()=>i.removeEventListener("click",a)});return ()=>s.forEach(i=>i())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e&&(this.screenshotError=false),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();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){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=`
|
|
2167
2218
|
position: fixed;
|
|
2168
2219
|
bottom: 24px;
|
|
2169
2220
|
left: 50%;
|
|
@@ -2196,7 +2247,7 @@
|
|
|
2196
2247
|
backdrop-filter: blur(4px);
|
|
2197
2248
|
box-shadow: 0 2px 12px rgba(0,0,0,0.35);
|
|
2198
2249
|
animation: mushi-fade-in 0.15s ease forwards;
|
|
2199
|
-
`,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,p=document.createElement("div");p.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,p.style.setProperty("--mushi-banner-z",String(m)),p.setAttribute("role","banner");let f=document.createElement("button");if(f.className="mushi-banner-dismiss",f.textContent="\u2715",f.setAttribute("aria-label","Dismiss feedback banner"),f.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let b=document.createElement("div");b.className="mushi-banner-body";let u=e.label===false?null:e.label??"Beta";if(u){let T=document.createElement("span");T.className="mushi-banner-pill",T.textContent=u,b.appendChild(T);}let v=document.createElement("span");v.className="mushi-banner-message",v.textContent=s,b.appendChild(v),p.appendChild(b);let x=document.createElement("nav");x.className="mushi-banner-actions",x.setAttribute("aria-label","Feedback banner actions");let C=(T=false)=>{let E=document.createElement("span");E.className=`mushi-banner-divider${T?" mushi-banner-extra":""}`,E.setAttribute("aria-hidden","true"),E.textContent="|",x.appendChild(E);},$=(T,E,w=false)=>{let h=document.createElement("button");h.type="button",h.className=`mushi-banner-link${w?" mushi-banner-extra":""}`,h.textContent=T,h.addEventListener("click",E),x.appendChild(h);};$(a,()=>this.open()),i&&(C(true),$(l,()=>this.open({featureRequest:true}),true));for(let T of e.links??[]){let E=T.label?.trim();if(!E)continue;let w=T.href&&(/^https?:\/\//i.test(T.href)||T.href.startsWith("/"))?T.href:void 0;if(C(true),w){let h=document.createElement("a");h.className="mushi-banner-link mushi-banner-extra",h.href=w,h.textContent=E,h.target="_blank",h.rel="noopener noreferrer",x.appendChild(h);}else $(E,()=>{T.featureRequest?this.open({featureRequest:true}):this.open();},true);}C(true),$("\u{1F4EC} My reports",()=>this.openReporter(),true),p.appendChild(x),p.appendChild(f);}else {let b=document.createElement("button");if(b.className="mushi-banner-btn",b.textContent=a,b.addEventListener("click",()=>this.open()),p.appendChild(b),i){let v=document.createElement("button");v.className="mushi-banner-btn",v.textContent=l,v.addEventListener("click",()=>this.open({featureRequest:true})),p.appendChild(v);}let u=document.createElement("button");u.className="mushi-banner-my-reports",u.textContent="\u{1F4EC} My reports",u.setAttribute("aria-label","View my submitted reports"),u.addEventListener("click",()=>this.openReporter()),p.appendChild(u),p.appendChild(f);}this.shadow.appendChild(p),this.applyBodyNudge(n),this.trackBannerHeight(p,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"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let o=s;this.draftSelStart=o.selectionStart??o.value.length,this.draftSelEnd=o.selectionEnd??o.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let o=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(o):o();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=Hs(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 p=8,f=typeof m=="object"?m.axis??"both":"both",b=0,u=0;if(f!=="y"&&(l.key==="ArrowLeft"?b=-p:l.key==="ArrowRight"&&(b=p)),f!=="x"&&(l.key==="ArrowUp"?u=-p:l.key==="ArrowDown"&&(u=p)),b!==0||u!==0){l.preventDefault();let v=this.fabPos??{x:0,y:0};this.moveFab(i,v.x+b,v.y+u,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=`${js(a)}${qs(a)}${Ws(a)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.restoreFormDrafts(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 j=this.config.draggable;return j&&typeof j=="object"?j.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,m=e.offsetHeight||52,p=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,f=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,b=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,v=8,x=e.getBoundingClientRect(),C=this.fabPos?.x??0,$=this.fabPos?.y??0,T=x.left-C,E=x.top-$,w=p+v-T,h=a-f-v-l-T,S=b+v-E,R=i-u-v-m-E,y=o==="y"?0:Math.max(w,Math.min(h,r)),O=o==="x"?0:Math.max(S,Math.min(R,n)),N=y;if(s){let j=this.config.draggable;(j===true||typeof j=="object"&&(j.snapToEdge??true))&&o!=="y"&&(N=x.left+l/2<a/2?p+v-T:a-f-v-l-T);}this.fabPos={x:N,y:O},e.style.setProperty("--mushi-drag-x",`${N}px`),e.style.setProperty("--mushi-drag-y",`${O}px`),e.style.setProperty("--mushi-drag-active","1");let Z=this.config.draggable;if(Z===true||typeof Z=="object"&&(Z.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=b=>{if(b.button!==0&&b.pointerType!=="touch")return;e.setPointerCapture(b.pointerId),r=b.clientX,n=b.clientY;let u=this.fabPos??{x:0,y:0};s=u.x,o=u.y,a=true,i=false;},m=6,p=b=>{if(!a)return;let u=b.clientX-r,v=b.clientY-n;!i&&Math.hypot(u,v)>m&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(b.preventDefault(),this.moveFab(e,s+u,o+v,false));},f=b=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let u=b.clientX-r,v=b.clientY-n;this.moveFab(e,s+u,o+v,true);let x=C=>{C.stopImmediatePropagation(),e.removeEventListener("click",x,{capture:true});};e.addEventListener("click",x,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",p),e.addEventListener("pointerup",f),e.addEventListener("pointercancel",f);}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 Tr[e]??Tr.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(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,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,elementError:this.elementError,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,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,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:$s()}}attachHandlers(e){let r=this.locale;Us(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=Ar,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,p=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=m);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(p).catch(()=>p()):p();}catch{p();}}),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 f=`${r.step3.tooShort} (${i.length}/${m})`;l.textContent=f,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitScreenshotDropped=false,this.render();let p=(async()=>{try{let f=this.selectedCategory,b=this.resolveBaseCategory(f),u=this.config.categories&&this.config.categories.length>0,v=this.callbacks.onSubmit({category:b,...u?{userCategory:f}:{},description:i,intent:this.selectedIntent??void 0});return v&&typeof v.then=="function"?await v??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",p.then(f=>{if(this.step!=="success")return;f&&(this.lastReportId=f.reportId??null,this.lastSubmitQueuedOffline=!!f.queuedOffline,this.lastSubmitScreenshotDropped=!!f.screenshotDropped,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",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&Bs(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{if(this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}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.draftReply=""),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=""),this.draftReply="",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 Pa(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}function zs(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=t.widget?.trigger,o=n??e.widget?.trigger,i=(o==="auto"&&s&&s!=="auto"?void 0:o)??(r==="none"||r==="shake"?"manual":void 0),l=n==="hidden"||e.widget?.trigger==="hidden",m=i==="hidden"&&!l&&s&&s!=="hidden"?s:i,p=e.widget,f=p?.bannerVariant,b=p?.bannerPosition,u=p?.bannerMessage,v=p?.bannerLabel,x=p?.bannerBugCta,C=p?.bannerFeatureCta,$=f||b||u!=null||v!=null||x!=null||C!=null?{...t.widget?.bannerConfig??{},...f?{variant:f}:{},...b?{position:b}:{},...u!=null?{message:u}:{},...v!=null?{label:v===""?false:v}:{},...x!=null?{bugCta:x??void 0}:{},...C!=null?{featureCta:C}:{}}:void 0,T={};if(e.widget)for(let[E,w]of Object.entries(e.widget))E==="trigger"||E==="launcher"||w!=null&&(T[E]=w);return {...t,widget:{...t.widget,...T,...m?{trigger:m}:{},...$?{bannerConfig:$}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:Pa(t.capture,e.capture),privacy:{...t.privacy}}}function Zt(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 Vs(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Zt(t.getRecorderTrigger()),getCategoryCenter:r=>Zt(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Zt(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Zt(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 Hr=null,Or=null,yt=null,vt=null,xt=null,wt=null,St=null,Qt=false,Ye=new Set;function Da(){for(let t of Ye)try{t.onPush?.();}catch{}}function Ha(){for(let t of Ye)try{t.onReplace?.();}catch{}}function Oa(){for(let t of Ye)try{t.onPop?.();}catch{}}function Ba(){Qt||typeof window>"u"||(yt=History.prototype.pushState,vt=History.prototype.replaceState,Hr=yt.bind(history),Or=vt.bind(history),xt=function(...e){let n=(Hr??History.prototype.pushState.bind(history))(...e);return Da(),n},wt=function(...e){let n=(Or??History.prototype.replaceState.bind(history))(...e);return Ha(),n},history.pushState=xt,history.replaceState=wt,St=()=>Oa(),window.addEventListener("popstate",St),Qt=true);}function Ks(){!Qt||typeof window>"u"||(St&&(window.removeEventListener("popstate",St),St=null),xt&&history.pushState===xt&&yt&&(history.pushState=yt),wt&&history.replaceState===wt&&vt&&(history.replaceState=vt),xt=null,wt=null,Hr=null,Or=null,yt=null,vt=null,Qt=false);}function Te(t){return Ba(),Ye.add(t),()=>{Ye.delete(t),Ye.size===0&&Ks();}}function Gs(){Ye.clear(),Ks();}var Na=3e4,Ua=3e5,Fa=6e4,qa=60,Js="mushi_session_min_day_",nt=[],st=null,ot=null,Be=null,Zs=null,Br=null,it=null,je=false,kt=null,Qs=0,ja=300*1e3,Fr=0,Wa=900*1e3;function qr(){return Date.now()<Fr}function jr(t){t?.startsWith("HTTP_4")&&(Fr=Date.now()+Wa);}var Ys=new Set;function Nr(t){return `mushi_rewards_consent_${t}`}function za(t){try{return localStorage.getItem(Nr(t))==="1"}catch{return false}}function Ur(t,e){try{e?localStorage.setItem(Nr(t),"1"):localStorage.removeItem(Nr(t)),je=e;}catch{}}function eo(){return new Date().toISOString().slice(0,10)}function to(t){try{let e=sessionStorage.getItem(`${Js}${t}_${eo()}`);return e?parseInt(e,10):0}catch{return 0}}function Va(t){let e=eo(),r=`${Js}${t}_${e}`;try{let n=to(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function ro(t){it=t.client,Be=t.userId,Zs=t.traits??null,Br=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Na,t.config.flushIntervalMs??Ua);t.config.consentMode==="auto"?(je=true,Ur(e,true)):je=za(e),t.config.trackActivity&&Ga(e),st&&clearInterval(st),st=setInterval(()=>Ka(t),r),ot&&clearInterval(ot),ot=setInterval(()=>{if(!je||!Be)return;let n=to(e);n<qa&&(Va(e),at({action:"session_minute",metadata:{minutes_today:n+1}}));},Fa),t.config.showInWidget&&Wr(Be).then(n=>{n&&ao(n,t.config);}),t.config.consentMode!=="auto"&&!je&&Xa(e,t.config);}function at(t){!je||!Be||nt.push({...t,queuedAt:Date.now()});}async function Ka(t){if(!je||!Be||nt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(qr())return;let r=nt.splice(0,100);try{let n=Br?await Sr(Br):void 0,s=await t.client.submitActivity(Be,r,{userTraits:Zs??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(jr(s.error?.code),s.error?.code?.startsWith("HTTP_4")||nt.unshift(...r.slice(0,50)));}catch{nt.unshift(...r.slice(0,50));}}async function no(t){let e=Date.now();return kt&&e-Qs<ja?kt:Wr(t)}async function Wr(t){if(!it||qr())return null;let e=await it.getMyTier(t);return e.ok&&e.data?(kt=e.data,Qs=Date.now(),kt):(jr(e.error?.code),null)}async function so(t=10){if(!it||qr())return null;try{let e=await it.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})):(jr(e.error?.code),null)}catch{return null}}function oo(){st&&(clearInterval(st),st=null),ot&&(clearInterval(ot),ot=null),io(),Ya(),be&&(be.remove(),be=null),nt=[],Be=null,it=null,je=false,kt=null,Fr=0;}var tr=null,Et=null,rr=null,Xs="",er=false;function Ga(t){if(er&&rr)return;er&&io(),er=true;let e=()=>{let n=location.pathname;if(n===Xs)return;Xs=n,!Ys.has(`${t}:${n}`)&&(Ys.add(`${t}:${n}`),at({action:"screen_view_unique_per_day",metadata:{route:n}}));};rr=Te({onPush:e,onPop:e}),e(),tr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;tr.observe(r,{childList:true,subtree:false}),Et=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&at({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",Et,{capture:true,passive:true});}function io(){er=false,rr?.(),rr=null,tr?.disconnect(),tr=null,Et&&(document.removeEventListener("click",Et,{capture:true}),Et=null);}var Oe=null;function ao(t,e){if(!e.showInWidget)return;Oe&&Oe.remove(),Oe=document.createElement("div"),Oe.id="mushi-tier-badge",Object.assign(Oe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Oe.attachShadow({mode:"closed"});r.innerHTML=`
|
|
2250
|
+
`,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.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let e=this.config.theme;e!=="auto"&&e!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,i=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:i}}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()??"",i=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",o=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",m=e.zIndex??(this.config.zIndex??99999)-1,d=document.createElement("div");d.className=`mushi-banner ${r} ${n}${i?" mushi-banner--rich":""}`,d.style.setProperty("--mushi-banner-z",String(m)),d.setAttribute("role","banner");let f=document.createElement("button");if(f.className="mushi-banner-dismiss",f.textContent="\u2715",f.setAttribute("aria-label","Dismiss feedback banner"),f.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),i){let b=document.createElement("div");b.className="mushi-banner-body";let u=e.label===false?null:e.label??"Beta";if(u){let C=document.createElement("span");C.className="mushi-banner-pill",C.textContent=u,b.appendChild(C);}let y=document.createElement("span");y.className="mushi-banner-message",y.textContent=s,b.appendChild(y),d.appendChild(b);let x=document.createElement("nav");x.className="mushi-banner-actions",x.setAttribute("aria-label","Feedback banner actions");let $=(C=false)=>{let E=document.createElement("span");E.className=`mushi-banner-divider${C?" mushi-banner-extra":""}`,E.setAttribute("aria-hidden","true"),E.textContent="|",x.appendChild(E);},T=(C,E,S=false)=>{let h=document.createElement("button");h.type="button",h.className=`mushi-banner-link${S?" mushi-banner-extra":""}`,h.textContent=C,h.addEventListener("click",E),x.appendChild(h);};T(a,()=>this.open()),o&&($(true),T(l,()=>this.open({featureRequest:true}),true));for(let C of e.links??[]){let E=C.label?.trim();if(!E)continue;let S=C.href&&(/^https?:\/\//i.test(C.href)||C.href.startsWith("/"))?C.href:void 0;if($(true),S){let h=document.createElement("a");h.className="mushi-banner-link mushi-banner-extra",h.href=S,h.textContent=E,h.target="_blank",h.rel="noopener noreferrer",x.appendChild(h);}else T(E,()=>{C.featureRequest?this.open({featureRequest:true}):this.open();},true);}$(true),T("\u{1F4EC} My reports",()=>this.openReporter(),true),d.appendChild(x),d.appendChild(f);}else {let b=document.createElement("button");if(b.className="mushi-banner-btn",b.textContent=a,b.addEventListener("click",()=>this.open()),d.appendChild(b),o){let y=document.createElement("button");y.className="mushi-banner-btn",y.textContent=l,y.addEventListener("click",()=>this.open({featureRequest:true})),d.appendChild(y);}let u=document.createElement("button");u.className="mushi-banner-my-reports",u.textContent="\u{1F4EC} My reports",u.setAttribute("aria-label","View my submitted reports"),u.addEventListener("click",()=>this.openReporter()),d.appendChild(u),d.appendChild(f);}this.shadow.appendChild(d),this.applyBodyNudge(n),this.trackBannerHeight(d,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 i=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(i)return .299*+i[1]+.587*+i[2]+.114*+i[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let i=s;this.draftSelStart=i.selectionStart??i.value.length,this.draftSelEnd=i.selectionEnd??i.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let i=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(i):i();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=ri(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),o=document.createElement("button");if(o.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,o.textContent=this.config.triggerText,o.setAttribute("aria-label",n.widget.trigger),o.setAttribute("aria-haspopup","dialog"),o.setAttribute("aria-expanded",String(this.isOpen)),o.style.zIndex=String(this.config.zIndex),this.applyInsetVars(o),o.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),o.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),o.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),o.addEventListener("keydown",l=>{let m=this.config.draggable;if(!m)return;let d=8,f=typeof m=="object"?m.axis??"both":"both",b=0,u=0;if(f!=="y"&&(l.key==="ArrowLeft"?b=-d:l.key==="ArrowRight"&&(b=d)),f!=="x"&&(l.key==="ArrowUp"?u=-d:l.key==="ArrowDown"&&(u=d)),b!==0||u!==0){l.preventDefault();let y=this.fabPos??{x:0,y:0};this.moveFab(o,y.x+b,y.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(o),this.shadow.appendChild(o),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(o,l.x,l.y,false);}}let i=document.createElement("div");if(i.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,i.setAttribute("role","dialog"),i.setAttribute("aria-modal","true"),i.setAttribute("aria-label",n.widget.title),i.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(i),this.isOpen){let a=this.renderCtx();i.innerHTML=`${pi(a)}${di(a)}${hi(a)}`,this.shadow.appendChild(i),this.attachHandlers(i),this.trapFocus(i),this.restoreFormDrafts(i),this.attachViewportHandlers(i);}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 i=document.querySelector(s);if(!i)continue;let a=i.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 i=document.querySelector(s);if(!i)continue;let a=i.getBoundingClientRect();if(a.width>0&&a.height>0){let o=window.innerHeight-a.top+e;o>n&&(n=o);}}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(i=>{let a=r[i];a!==void 0&&e.style.setProperty(`--mushi-${i}`,a);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:i}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{i[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let o=i[a];o!==void 0&&e.style.setProperty(`--mushi-${a}`,o==="auto"?"auto":`${o}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 i=this.computeAvoidTopPx();i!==null&&e.style.setProperty("--mushi-top",`${i}px`);}if(s){let i=this.computeAvoidBottomPx();i!==null&&e.style.setProperty("--mushi-bottom",`${i}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let i=(()=>{let Y=this.config.draggable;return Y&&typeof Y=="object"?Y.axis??"both":"both"})(),a=window.innerWidth,o=window.innerHeight,l=e.offsetWidth||52,m=e.offsetHeight||52,d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,f=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,b=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,y=8,x=e.getBoundingClientRect(),$=this.fabPos?.x??0,T=this.fabPos?.y??0,C=x.left-$,E=x.top-T,S=d+y-C,h=a-f-y-l-C,w=b+y-E,R=o-u-y-m-E,v=i==="y"?0:Math.max(S,Math.min(h,r)),O=i==="x"?0:Math.max(w,Math.min(R,n)),W=v;if(s){let Y=this.config.draggable;(Y===true||typeof Y=="object"&&(Y.snapToEdge??true))&&i!=="y"&&(W=x.left+l/2<a/2?d+y-C:a-f-y-l-C);}this.fabPos={x:W,y:O},e.style.setProperty("--mushi-drag-x",`${W}px`),e.style.setProperty("--mushi-drag-y",`${O}px`),e.style.setProperty("--mushi-drag-active","1");let re=this.config.draggable;if(re===true||typeof re=="object"&&(re.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,i=0,a=false,o=false,l=b=>{if(b.button!==0&&b.pointerType!=="touch")return;e.setPointerCapture(b.pointerId),r=b.clientX,n=b.clientY;let u=this.fabPos??{x:0,y:0};s=u.x,i=u.y,a=true,o=false;},m=6,d=b=>{if(!a)return;let u=b.clientX-r,y=b.clientY-n;!o&&Math.hypot(u,y)>m&&(o=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),o&&(b.preventDefault(),this.moveFab(e,s+u,i+y,false));},f=b=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),o){let u=b.clientX-r,y=b.clientY-n;this.moveFab(e,s+u,i+y,true);let x=$=>{$.stopImmediatePropagation(),e.removeEventListener("click",x,{capture:true});};e.addEventListener("click",x,{capture:true});}o=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",d),e.addEventListener("pointerup",f),e.addEventListener("pointercancel",f);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let i=window.innerHeight-r.height-r.offsetTop;i>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(i)}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 Kr[e]??Kr.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(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,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,elementError:this.elementError,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,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,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:Ys()}}attachHandlers(e){let r=this.locale;ci(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 o=a.dataset.value;o&&this.sendAssistantMessage(o);});}),e.querySelectorAll('[data-action="assistant-report"]').forEach(a=>{a.addEventListener("click",()=>{this.openReportFromAssistant();});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let o=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let m=o?.value??"";o&&(o.value=""),this.sendAssistantMessage(m);}),o?.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 o=a.dataset.voteId;o&&this.voteFeatureBoard(o);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Qr,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let o=a.dataset.reportId;o&&this.loadReporterComments(o);});}),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 o=a.currentTarget,l=o.dataset.copyId;if(!l)return;let m=o.innerHTML,d=()=>{o.innerHTML="Copied \u2713",window.setTimeout(()=>{o.isConnected&&(o.innerHTML=m);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(d).catch(()=>d()):d();}catch{d();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let o=a.dataset.category??"other";this.selectedCategory=o;let l=this.resolveCustomCategory(o);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(),o=()=>{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",o);}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let o=a.dataset.example??"";n&&(n.value=o,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 i=()=>{let a=e.querySelector(".mushi-textarea"),o=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),m=this.effectiveMinLength();if(o.length<m){if(l){let f=`${r.step3.tooShort} (${o.length}/${m})`;l.textContent=f,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.render();let d=(async()=>{try{let f=this.selectedCategory,b=this.resolveBaseCategory(f),u=this.config.categories&&this.config.categories.length>0,y=this.callbacks.onSubmit({category:b,...u?{userCategory:f}:{},description:o,intent:this.selectedIntent??void 0});return y&&typeof y.then=="function"?await y??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",d.then(f=>{if(this.step!=="success")return;f&&(this.lastReportId=f.reportId??null,this.lastSubmitQueuedOffline=!!f.queuedOffline,this.lastSubmitFailureKind=f.failureKind,this.lastSubmitScreenshotDropped=!!f.screenshotDropped,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",i),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&ai(a)&&(a.preventDefault(),i());});}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{if(this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}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.draftReply=""),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"]'),i=n?.value.trim()??"";if(!(!r||!i||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,i),n&&(n.value=""),this.draftReply="",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 ll(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}function mi(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=t.widget?.trigger,i=n??e.widget?.trigger,o=(i==="auto"&&s&&s!=="auto"?void 0:i)??(r==="none"||r==="shake"?"manual":void 0),l=n==="hidden"||e.widget?.trigger==="hidden",m=o==="hidden"&&!l&&s&&s!=="hidden"?s:o,d=e.widget,f=d?.bannerVariant,b=d?.bannerPosition,u=d?.bannerMessage,y=d?.bannerLabel,x=d?.bannerBugCta,$=d?.bannerFeatureCta,T=f||b||u!=null||y!=null||x!=null||$!=null?{...t.widget?.bannerConfig??{},...f?{variant:f}:{},...b?{position:b}:{},...u!=null?{message:u}:{},...y!=null?{label:y===""?false:y}:{},...x!=null?{bugCta:x??void 0}:{},...$!=null?{featureCta:$}:{}}:void 0,C={};if(e.widget)for(let[E,S]of Object.entries(e.widget))E==="trigger"||E==="launcher"||S!=null&&(C[E]=S);return {...t,widget:{...t.widget,...C,...m?{trigger:m}:{},...T?{bannerConfig:T}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:ll(t.capture,e.capture),privacy:{...t.privacy}}}function gr(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 fi(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>gr(t.getRecorderTrigger()),getCategoryCenter:r=>gr(t.getRecorderCategoryButton(r)),getIntentCenter:r=>gr(t.getRecorderIntentButton(r)),getSubmitCenter:()=>gr(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 rn=null,nn=null,Tt=null,$t=null,Mt=null,It=null,At=null,br=false,Ze=new Set;function cl(){for(let t of Ze)try{t.onPush?.();}catch{}}function ul(){for(let t of Ze)try{t.onReplace?.();}catch{}}function dl(){for(let t of Ze)try{t.onPop?.();}catch{}}function pl(){br||typeof window>"u"||(Tt=History.prototype.pushState,$t=History.prototype.replaceState,rn=Tt.bind(history),nn=$t.bind(history),Mt=function(...e){let n=(rn??History.prototype.pushState.bind(history))(...e);return cl(),n},It=function(...e){let n=(nn??History.prototype.replaceState.bind(history))(...e);return ul(),n},history.pushState=Mt,history.replaceState=It,At=()=>dl(),window.addEventListener("popstate",At),br=true);}function gi(){!br||typeof window>"u"||(At&&(window.removeEventListener("popstate",At),At=null),Mt&&history.pushState===Mt&&Tt&&(history.pushState=Tt),It&&history.replaceState===It&&$t&&(history.replaceState=$t),Mt=null,It=null,rn=null,nn=null,Tt=null,$t=null,br=false);}function Me(t){return pl(),Ze.add(t),()=>{Ze.delete(t),Ze.size===0&&gi();}}function bi(){Ze.clear(),gi();}var hl=3e4,ml=3e5,fl=6e4,gl=60,xi="mushi_session_min_day_",ht=[],mt=null,ft=null,Ue=null,wi=null,sn=null,gt=null,ze=false,_t=null,Si=0,bl=300*1e3,ln=0,yl=900*1e3;function cn(){return Date.now()<ln}function un(t){t?.startsWith("HTTP_4")&&(ln=Date.now()+yl);}var yi=new Set;function on(t){return `mushi_rewards_consent_${t}`}function vl(t){try{return localStorage.getItem(on(t))==="1"}catch{return false}}function an(t,e){try{e?localStorage.setItem(on(t),"1"):localStorage.removeItem(on(t)),ze=e;}catch{}}function Ei(){return new Date().toISOString().slice(0,10)}function ki(t){try{let e=sessionStorage.getItem(`${xi}${t}_${Ei()}`);return e?parseInt(e,10):0}catch{return 0}}function xl(t){let e=Ei(),r=`${xi}${t}_${e}`;try{let n=ki(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ri(t){gt=t.client,Ue=t.userId,wi=t.traits??null,sn=t.reporterToken??null;let{projectId:e}=t,r=Math.max(hl,t.config.flushIntervalMs??ml);t.config.consentMode==="auto"?(ze=true,an(e,true)):ze=vl(e),t.config.trackActivity&&Sl(e),mt&&clearInterval(mt),mt=setInterval(()=>wl(t),r),ft&&clearInterval(ft),ft=setInterval(()=>{if(!ze||!Ue)return;let n=ki(e);n<gl&&(xl(e),bt({action:"session_minute",metadata:{minutes_today:n+1}}));},fl),t.config.showInWidget&&dn(Ue).then(n=>{n&&Ii(n,t.config);}),t.config.consentMode!=="auto"&&!ze&&kl(e,t.config);}function bt(t){!ze||!Ue||ht.push({...t,queuedAt:Date.now()});}async function wl(t){if(!ze||!Ue||ht.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(cn())return;let r=ht.splice(0,100);try{let n=sn?await Fr(sn):void 0,s=await t.client.submitActivity(Ue,r,{userTraits:wi??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(un(s.error?.code),s.error?.code?.startsWith("HTTP_4")||ht.unshift(...r.slice(0,50)));}catch{ht.unshift(...r.slice(0,50));}}async function Ci(t){let e=Date.now();return _t&&e-Si<bl?_t:dn(t)}async function dn(t){if(!gt||cn())return null;let e=await gt.getMyTier(t);return e.ok&&e.data?(_t=e.data,Si=Date.now(),_t):(un(e.error?.code),null)}async function Ti(t=10){if(!gt||cn())return null;try{let e=await gt.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})):(un(e.error?.code),null)}catch{return null}}function $i(){mt&&(clearInterval(mt),mt=null),ft&&(clearInterval(ft),ft=null),Mi(),El(),xe&&(xe.remove(),xe=null),ht=[],Ue=null,gt=null,ze=false,_t=null,ln=0;}var vr=null,Lt=null,xr=null,vi="",yr=false;function Sl(t){if(yr&&xr)return;yr&&Mi(),yr=true;let e=()=>{let n=location.pathname;if(n===vi)return;vi=n,!yi.has(`${t}:${n}`)&&(yi.add(`${t}:${n}`),bt({action:"screen_view_unique_per_day",metadata:{route:n}}));};xr=Me({onPush:e,onPop:e}),e(),vr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;vr.observe(r,{childList:true,subtree:false}),Lt=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let i=s.dataset.testid;i&&bt({action:"element_selected",metadata:{testid:i,route:location.pathname}});},document.addEventListener("click",Lt,{capture:true,passive:true});}function Mi(){yr=false,xr?.(),xr=null,vr?.disconnect(),vr=null,Lt&&(document.removeEventListener("click",Lt,{capture:true}),Lt=null);}var Fe=null;function Ii(t,e){if(!e.showInWidget)return;Fe&&Fe.remove(),Fe=document.createElement("div"),Fe.id="mushi-tier-badge",Object.assign(Fe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Fe.attachShadow({mode:"closed"});r.innerHTML=`
|
|
2200
2251
|
<style>
|
|
2201
2252
|
:host { display: block; }
|
|
2202
2253
|
.badge {
|
|
@@ -2218,7 +2269,7 @@
|
|
|
2218
2269
|
width: 6px;
|
|
2219
2270
|
height: 6px;
|
|
2220
2271
|
border-radius: 50%;
|
|
2221
|
-
background: ${
|
|
2272
|
+
background: ${he.accent};
|
|
2222
2273
|
flex-shrink: 0;
|
|
2223
2274
|
}
|
|
2224
2275
|
</style>
|
|
@@ -2226,20 +2277,20 @@
|
|
|
2226
2277
|
<span class="dot"></span>
|
|
2227
2278
|
<span>${t.displayName}</span>
|
|
2228
2279
|
</div>
|
|
2229
|
-
`,document.body.appendChild(
|
|
2280
|
+
`,document.body.appendChild(Fe);}function El(){Fe?.remove(),Fe=null;}var xe=null;function kl(t,e){if(xe)return;xe=document.createElement("div"),xe.id="mushi-consent-banner",Object.assign(xe.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=xe.attachShadow({mode:"closed"});r.innerHTML=`
|
|
2230
2281
|
<style>
|
|
2231
2282
|
:host { display: block; }
|
|
2232
2283
|
.banner {
|
|
2233
|
-
background: ${
|
|
2234
|
-
border: 1px solid ${
|
|
2284
|
+
background: ${he.paperRaised};
|
|
2285
|
+
border: 1px solid ${he.ruleStrong};
|
|
2235
2286
|
border-radius: 12px;
|
|
2236
2287
|
box-shadow: 0 8px 24px rgba(0,0,0,0.12);
|
|
2237
2288
|
padding: 14px 16px;
|
|
2238
2289
|
font-size: 13px;
|
|
2239
2290
|
line-height: 1.5;
|
|
2240
|
-
color: ${
|
|
2291
|
+
color: ${he.inkMuted};
|
|
2241
2292
|
}
|
|
2242
|
-
.title { font-weight: 700; margin-bottom: 6px; color: ${
|
|
2293
|
+
.title { font-weight: 700; margin-bottom: 6px; color: ${he.ink}; }
|
|
2243
2294
|
.actions { display: flex; gap: 8px; margin-top: 10px; }
|
|
2244
2295
|
button {
|
|
2245
2296
|
flex: 1;
|
|
@@ -2250,8 +2301,8 @@
|
|
|
2250
2301
|
font-size: 12px;
|
|
2251
2302
|
font-weight: 600;
|
|
2252
2303
|
}
|
|
2253
|
-
.accept { background: ${
|
|
2254
|
-
.decline { background: ${
|
|
2304
|
+
.accept { background: ${he.accent}; color: ${he.paperRaised}; }
|
|
2305
|
+
.decline { background: ${he.paper}; color: ${he.inkMuted}; }
|
|
2255
2306
|
</style>
|
|
2256
2307
|
<div class="banner">
|
|
2257
2308
|
<div class="title">\u{1F3AF} Earn rewards</div>
|
|
@@ -2261,31 +2312,31 @@
|
|
|
2261
2312
|
<button class="decline" id="decline">No thanks</button>
|
|
2262
2313
|
</div>
|
|
2263
2314
|
</div>
|
|
2264
|
-
`,r.getElementById("accept")?.addEventListener("click",()=>{
|
|
2265
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
2315
|
+
`,r.getElementById("accept")?.addEventListener("click",()=>{an(t,true),xe?.remove(),xe=null,e.showInWidget&&Ue&&dn(Ue).then(n=>{n&&Ii(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{an(t,false),xe?.remove(),xe=null;}),document.body.appendChild(xe);}function pn(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let i=console[s];e[s]=i;let a=(...o)=>{let l=o.map(d=>{try{return typeof d=="string"?d:JSON.stringify(d)}catch{return String(d)}}).join(" ").slice(0,500),m={level:s,message:l,timestamp:Date.now()};s==="error"&&o[0]instanceof Error&&(m.stack=o[0].stack?.slice(0,1e3)),t.push(m),t.length>50&&t.shift(),i.call(console,...o);};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 Rl=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function wr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function Sr(t,e){let r=e?.[at];if(r)return r;let n=$l(e?.headers,Ct);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(Ct);if(s)return s}return null}function Er(t,e={}){if([...Rl,...e.ignoreUrls??[]].some(s=>Cl(t,s)))return true;let n=Tl(e.apiEndpoint);return n?hn(t).startsWith(n):false}function Cl(t,e){return typeof e=="string"?hn(t).includes(e):(e.lastIndex=0,e.test(t))}function Tl(t){if(!t)return null;let e=hn(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function hn(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function $l(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 Ml=30,Il="00";function Al(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=i=>Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${Il}-${n}-${s}-01`,traceId:n,spanId:s}}function Ll(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 mn(t={}){let e=[],r=globalThis.fetch,n=t,s;globalThis.fetch=s=async function(o,l){let m=Date.now(),d=l?.method?.toUpperCase()??"GET",f=wr(o),u=!Sr(o,l)&&!Er(f,n),y,x=l,$=n.tracePropagation;if(u&&$?.enabled&&$.corsUrls?.length&&Ll(f,$.corsUrls)){let{traceparent:T,traceId:C}=Al();y=C;let E=l?.headers?new Headers(l.headers):new Headers;E.set("traceparent",T),n.sessionId&&E.set("x-mushi-session",n.sessionId),x={...l,headers:E};}try{let T=await r.call(globalThis,o,x);return u&&i({method:d,url:Ai(f),status:T.status,duration:Date.now()-m,timestamp:m,...y?{traceId:y}:{}}),T}catch(T){throw u&&i({method:d,url:Ai(f),status:0,duration:Date.now()-m,timestamp:m,error:T instanceof Error?T.message:"Network error",...y?{traceId:y}:{}}),T}};function i(a){e.push(a),e.length>Ml&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(a){n=a;},destroy(){globalThis.fetch===s&&(globalThis.fetch=r);}}}function Ai(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 bn(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 i=window.innerWidth,a=window.innerHeight,o=Math.min(window.devicePixelRatio||1,2);n.width=i*o,n.height=a*o,s.scale(o,o);let l=Hl(e.privacy),m=`
|
|
2316
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${a}">
|
|
2266
2317
|
<foreignObject width="100%" height="100%">
|
|
2267
2318
|
<div xmlns="http://www.w3.org/1999/xhtml">
|
|
2268
2319
|
${new XMLSerializer().serializeToString(l)}
|
|
2269
2320
|
</div>
|
|
2270
2321
|
</foreignObject>
|
|
2271
2322
|
</svg>
|
|
2272
|
-
`,
|
|
2273
|
-
`),e);if(!s)return;let
|
|
2274
|
-
`;}return r}function
|
|
2323
|
+
`,d=new Image,f=new Blob([m],{type:"image/svg+xml;charset=utf-8"}),b=URL.createObjectURL(f);return new Promise(u=>{let y=!1,x=(T,C)=>{y||(y=!0,clearTimeout($),URL.revokeObjectURL(b),C&&(e.onFailed?.(C),Li(C)),u(T));},$=setTimeout(()=>x(null,"error"),5e3);d.onload=()=>{try{if(s.drawImage(d,0,0,i,a),Bl(s,i,a)){x(null,"error");return}x(n.toDataURL("image/jpeg",.7));}catch{x(null,"taint");}},d.onerror=()=>x(null,"error"),d.src=b;})}catch{return e.onFailed?.("error"),Li("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Li(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var _l=['input[type="password"]',"[data-mushi-redact]"];function Hl(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),Dl(e),Ol(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:_l;for(let n of r)for(let s of fn(e,n))Pl(s);for(let n of t?.blockSelectors??[])for(let s of fn(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of fn(e,n))Fl(s);return e}function fn(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Pl(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 Dl(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of t.querySelectorAll("style")){let n=gn(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=gn(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function gn(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let i=s.trim();return !i||i.startsWith("data:")||i.startsWith("#")?r:Nl(i,e)?"none":r})}function Ol(t){let e=typeof location<"u"?location.origin:"",r=[],n=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]];for(let a of n){let o=a.ownerNode;o instanceof Element&&o.tagName==="STYLE"||r.push(_i(a));}let s=gn(r.filter(Boolean).join(`
|
|
2324
|
+
`),e);if(!s)return;let i=document.createElement("style");i.textContent=s,(t.querySelector("head")??t).appendChild(i);}function _i(t){let e;try{e=t.cssRules;}catch{return ""}let r="";for(let n of Array.from(e)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=_i(n.styleSheet));continue}r+=`${n.cssText}
|
|
2325
|
+
`;}return r}function Bl(t,e,r){try{let n=Math.max(1,Math.floor(e/8)),s=Math.max(1,Math.floor(r/8));for(let i=0;i<r;i+=s)for(let a=0;a<e;a+=n)if(t.getImageData(a,i,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Nl(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 Fl(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 Ul(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 yn(){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 i of s.getEntries())i.hadRecentInput||(r+=i.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 i of s.getEntries()){let a=i.interactionId;if(!a)continue;let o=r.get(a)??0;if(i.duration>o&&r.set(a,i.duration),i.duration>(t.inp??0)){t.inp=i.duration;let l=i.processingStart-i.startTime,m=i.processingEnd-i.processingStart,d=i.startTime+i.duration-i.processingEnd;t.inpAttribution={eventType:i.name,targetSelector:Ul(i.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,m),presentationDelay:Math.max(0,d)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let 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 vn(){let t=false,e=null,r=null,n=null,s=null;function i(S){let h=S,w=0;for(;h&&w<20;){let R=h.getAttribute?.("data-testid");if(R)return R;h=h.parentElement,w++;}return null}function a(S){let h=[],w=S;for(;w&&w!==document.body;){let R=1,v=w.previousElementSibling;for(;v;)v.tagName===w.tagName&&R++,v=v.previousElementSibling;let O=w.tagName.toLowerCase();h.unshift(R>1?`${O}[${R}]`:O),w=w.parentElement;}return "//"+h.join("/")}function o(S){let h=S.getBoundingClientRect(),w=typeof S.className=="string"?S.className:S.getAttribute("class")??"";return {tagName:S.tagName.toLowerCase(),id:S.id||void 0,className:w||void 0,textContent:S.textContent?.trim().slice(0,200)||void 0,xpath:a(S),rect:{x:Math.round(h.x),y:Math.round(h.y),width:Math.round(h.width),height:Math.round(h.height)},nearestTestid:i(S)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let S=document.createElement("div");return S.style.cssText=`
|
|
2275
2326
|
position: fixed;
|
|
2276
2327
|
pointer-events: none;
|
|
2277
2328
|
z-index: 2147483647;
|
|
2278
|
-
border: 2px solid ${
|
|
2279
|
-
background: ${
|
|
2329
|
+
border: 2px solid ${he.accent};
|
|
2330
|
+
background: ${he.accentWash};
|
|
2280
2331
|
border-radius: 4px;
|
|
2281
2332
|
transition: all 0.1s ease;
|
|
2282
2333
|
display: none;
|
|
2283
|
-
`,document.body.appendChild(
|
|
2334
|
+
`,document.body.appendChild(S),S}function m(){let S=document.createElement("div");return S.style.cssText=`
|
|
2284
2335
|
position: fixed;
|
|
2285
2336
|
inset: 0;
|
|
2286
2337
|
z-index: 2147483647;
|
|
2287
2338
|
cursor: crosshair;
|
|
2288
2339
|
background: transparent;
|
|
2289
|
-
`,document.body.appendChild(w),w}function p(w,h){let S=document.elementsFromPoint(w,h),R=null;for(let O of S)if(!(O===r||O===e)){if(O.id==="mushi-mushi-widget"||O.closest("#mushi-mushi-widget"))return null;R=O;break}let y=0;for(;R?.shadowRoot&&y<20;){let O=R.shadowRoot.elementFromPoint(w,h);if(!O||O===R)break;R=O,y++;}return R}function f(w){if(!e)return;let h=w.getBoundingClientRect();e.style.left=`${h.left}px`,e.style.top=`${h.top}px`,e.style.width=`${h.width}px`,e.style.height=`${h.height}px`,e.style.display="block";}function b(w){let h=p(w.clientX,w.clientY);if(!h){n=null,e&&(e.style.display="none");return}n=h,f(h);}function u(w){w.preventDefault(),w.stopPropagation();}function v(w){w.preventDefault(),w.stopPropagation();let h=p(w.clientX,w.clientY);h&&$(i(h));}function x(w){w.key==="Escape"&&$(null);}function C(){n?.isConnected&&f(n);}function $(w){E(),s?.(w),s=null;}function T(){return t&&E(),new Promise(w=>{s=w,t=true,e=l(),r=m(),r.addEventListener("mousemove",b),r.addEventListener("click",v),r.addEventListener("pointerdown",u),r.addEventListener("mousedown",u),r.addEventListener("mouseup",u),document.addEventListener("keydown",x,true),window.addEventListener("scroll",C,{capture:true,passive:true});})}function E(){t&&(t=false,n=null,document.removeEventListener("keydown",x,true),window.removeEventListener("scroll",C,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:T,deactivate:E,isActive:()=>t}}var po=120;function Qr(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>po&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function s(a){let i=a.target instanceof Element?a.target:null;if(!i)return;let l=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:ml(l)}});}let o=Te({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,m)=>l.ts-m.ts).slice(-po)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function ml(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var fl=6e4,gl=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,bl=/^[0-9a-f]{20,}$/i,yl=/^\d+$/,vl=/^[a-z0-9]{16,}$/i;function ho(t){return t.length===0?t:gl.test(t)||bl.test(t)||yl.test(t)||vl.test(t)&&/\d/.test(t)?"[id]":t}function mo(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=xl(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(ho).join("/")}function xl(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 wl(){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 Sl(){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 El(){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 kl(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 en(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??fl,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",m=new Map,p=null,f=null;async function b(){if(typeof window>"u")return;let $=mo(window.location.pathname,e.routeTemplates),T=Date.now(),E=m.get($)??0;if(T-E<a)return;m.set($,T);let w=null;l==="auto"?w=n()??s():l==="session-only"&&(w=s());let h={route:$,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?El():null,testids:wl(),network_paths:r().slice(-50),query_param_keys:Sl(),user_id_hash:await kl(w),observed_at:new Date().toISOString()};o(h);}function u(){f||(f=setTimeout(()=>{f=null,b();},100));}function v(){if(typeof window>"u")return;let $=window.location.pathname+window.location.search;$!==p&&(p=$,u());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let x=()=>v(),C=Te({onPush:x,onReplace:x,onPop:x});return u(),{destroy(){C(),f&&(clearTimeout(f),f=null),m.clear();},flushNow(){m.clear(),b();}}}function fo(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 Rl(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 ir=null;async function Cl(){if(ir)return ir;try{return ir=await import('rrweb'),ir}catch{return null}}async function go(t){let e=t.maxDurationMs??3e4,r=await Cl();if(!r?.record)return Rl(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),fo(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 fo(s,e,400),[...s]},destroy(){l(),s.length=0;}}}function bo(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),p=Math.round(s.height*l);for(let h of [a,i])h.width=m,h.height=p,h.style.width="100%",h.style.height="auto",h.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let f=a.getContext("2d"),b=i.getContext("2d");if(!f||!b){n(new Error("Canvas not supported"));return}f.drawImage(s,0,0,m,p),o.appendChild(a),o.appendChild(i),e.appendChild(o);let u="highlight",v=false,x=null,C=[],$=h=>{let S=i.getBoundingClientRect(),R="touches"in h?h.touches[0]??h.changedTouches[0]:null,y=R?R.clientX:h.clientX,O=R?R.clientY:h.clientY;return {x:(y-S.left)/S.width*m,y:(O-S.top)/S.height*p}},T=()=>{b.clearRect(0,0,m,p);for(let h of C)if(h.tool==="highlight"&&h.points.length>=2){let[S,R]=h.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(S.x,R.x),Math.min(S.y,R.y),Math.abs(R.x-S.x),Math.abs(R.y-S.y));}else if(h.tool==="arrow"&&h.points.length>=2){let[S,R]=h.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(S.x,S.y),b.lineTo(R.x,R.y),b.stroke();}},E=h=>{v=true,x=$(h);},w=h=>{if(!v||!x)return;v=false;let S=$(h);if(u==="blur"){let R=Math.min(x.x,S.x),y=Math.min(x.y,S.y),O=Math.abs(S.x-x.x),N=Math.abs(S.y-x.y);O>=1&&N>=1&&(f.filter="blur(8px)",f.drawImage(a,R,y,O,N,R,y,O,N),f.filter="none");}else C.push({tool:u,points:[x,S]});x=null,T();};i.addEventListener("mousedown",E),i.addEventListener("mouseup",w),i.addEventListener("touchstart",E,{passive:true}),i.addEventListener("touchend",w),r({canvas:a,setTool(h){u=h;},getDataUrl(){let h=document.createElement("canvas");h.width=m,h.height=p;let S=h.getContext("2d");return S?(S.drawImage(a,0,0),S.drawImage(i,0,0),h.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",E),i.removeEventListener("mouseup",w),i.removeEventListener("touchstart",E),i.removeEventListener("touchend",w),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function yo(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function Tl(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Ml(){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 tn(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=yo();if(!s)return n;n.sdk=Ml();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,p]of Object.entries(i))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(l[m]=p);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 p=m;return {timestamp:typeof p.timestamp=="number"?p.timestamp<1e12?Math.round(p.timestamp*1e3):p.timestamp:void 0,category:typeof p.category=="string"?p.category:void 0,level:typeof p.level=="string"?p.level:void 0,message:typeof p.message=="string"?p.message:void 0,type:typeof p.type=="string"?p.type:void 0,data:p.data&&typeof p.data=="object"?p.data:void 0}});}}catch{}}try{let 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?.()??Tl();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function rn(t,e={}){let r=yo();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 $l=["/login","/logout","/signup","/sso/*","/auth/*"];function xo(t,e={}){let r=[];if(e.rageClick!==false){let x=function(C){let $=Date.now();if(C.target===v){if(u.push($),u=u.filter(T=>$-T<500),u.length>=3){let T=C.target;t.onTrigger("rage_click",{element:T.tagName,id:T.id,text:T.textContent?.slice(0,50)}),u=[];}}else v=C.target,u=[$];};let u=[],v=null;document.addEventListener("click",x,true),r.push(()=>document.removeEventListener("click",x,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let u=new PerformanceObserver(v=>{for(let x of v.getEntries())x.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(x.duration),startTime:Math.round(x.startTime)});});u.observe({entryTypes:["longtask"]}),r.push(()=>u.disconnect());}catch{}let n=Il(e.apiCascade);if(n.enabled){let u=[],v=globalThis.fetch;globalThis.fetch=async function(...x){let[C,$]=x,T=nr(C),E=!!sr(C,$)||or(T,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let w=await v.apply(this,x);return !E&&!w.ok&&w.status>=400&&vo(u,t),w}catch(w){throw E||vo(u,t),w}},r.push(()=>{globalThis.fetch=v;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let T=function(R){return x.some(y=>y.endsWith("/*")?R.startsWith(y.slice(0,-2)):R===y||R.startsWith(y+"/"))},E=function(){let R=window.location?.pathname??"";T(R)||t.onTrigger("page_dwell",{thresholdMs:v,path:R});},w=function(){C&&clearTimeout(C);let R=window.location?.pathname??"";T(R)||(C=setTimeout(E,v));},h=function(){let R=window.location?.pathname??"";R!==$&&($=R,w());};let u=typeof e.pageDwell=="object"?e.pageDwell??{}:{},v=u.thresholdMs||300*1e3,x=u.excludeRoutes!==void 0?u.excludeRoutes:$l,C=null,$=window.location?.pathname??"";w();let S=Te({onPush:h,onReplace:h,onPop:h});r.push(()=>{C&&clearTimeout(C),S();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let u=typeof e.firstSession=="object"?e.firstSession??{}:{},v=u.delayMs??45*1e3,x=u.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),C=false;try{C=window.localStorage?.getItem(x)==="1";}catch{}if(!C){let $=setTimeout(()=>{try{window.localStorage?.setItem(x,"1");}catch{}t.onTrigger("first_session",{delayMs:v});},v);r.push(()=>clearTimeout($));}}if(e.errorBoundary){let u=function(x){t.onTrigger("error_boundary",{message:x.message,filename:x.filename,lineno:x.lineno,colno:x.colno});},v=function(x){t.onTrigger("error_boundary",{message:x.reason instanceof Error?x.reason.message:String(x.reason),type:"unhandled_rejection"});};window.addEventListener("error",u),window.addEventListener("unhandledrejection",v),r.push(()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",v);});}return {destroy(){r.forEach(u=>u());}}}function Il(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function vo(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 wo="mushi:lastDismiss",ar="mushi:consecDismiss",nn="mushi:lastShown";function lr(t){try{return localStorage.getItem(t)}catch{return null}}function cr(t,e){try{localStorage.setItem(t,e);}catch{}}function So(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(f){let b=Date.now();if(parseInt(lr(ar)??"0",10)>=n)return false;let v=lr(wo);if(v&&b-parseInt(v,10)<r*60*60*1e3)return false;if(s>0&&o===0){let x=lr(nn);if(x&&b-parseInt(x,10)<s)return false}return o>=e||a.has(f)?false:(a.add(f),o++,cr(nn,String(b)),true)}function l(){cr(wo,String(Date.now()));let f=parseInt(lr(ar)??"0",10);cr(ar,String(f+1));}function m(){cr(ar,"0");}function p(){o=0,a.clear();try{localStorage.removeItem(nn);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:m,reset:p}}function Eo(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Me=null,ur=class{constructor(){}static init(e){if(Me)return jt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Me;if(typeof document>"u"||typeof window>"u")return Ro();let r={...Er(),...e};if(!r.projectId||!r.apiKey){let n=ts();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?Ro():(Me=Ll(r),Me)}static getInstance(){return Me}static destroy(){Me?.destroy(),Me=null;}static diagnose(){return Me?.diagnose()??on()}};function Ll(t){ns(t);let e=rs(t),r=e.projectId,n=()=>de(r),s=e,o=t.debug??false?jt({scope:"mushi",level:"debug",format:"pretty"}):kr,a=null,i=null,l=es({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:He,sdkVersion:fe}),m=ss(e.preFilter),p=cs(e.offline),f=ds({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),b=hs();function u(c){return c.map(d=>{let k={...d};if(typeof d.message=="string"&&(k.message=b.scrub(d.message)),d.data&&typeof d.data=="object"){let H={};for(let[L,U]of Object.entries(d.data))H[L]=typeof U=="string"?b.scrub(U):U;k.data=H;}return k})}function v(c){if(!c)return;let d={};for(let[k,H]of Object.entries(c))d[k]=typeof H=="string"?b.scrub(H):H;return d}let x=null,C=null,$=null,T=null,E=null,w=null,h=Qr(),S=null,R=0,y,O=`mushi:tester-jwt:${e.projectId}`;function N(){try{return typeof localStorage<"u"?localStorage.getItem(O):null}catch{return null}}function X(){try{typeof localStorage<"u"&&localStorage.removeItem(O);}catch{}}async function j(c){let d=await l.getTesterStatus(c);if(!d.ok||!d.data){X();return}let k=d.data;if(!k.is_tester||!k.tester_id){X();return}y.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 L=H.data;L.reputation&&y.setTesterReputation(L.reputation);}}function V(){if(s.capture?.console!==false?x??=zr():(x?.destroy(),x=null),s.capture?.network!==false){let L={apiEndpoint:sn(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:bt()};C?C.updateOptions(L):C=Kr(L);}else C?.destroy(),C=null;if(s.capture?.performance!==false?$??=Jr():($?.destroy(),$=null),s.capture?.screenshot!=="off"){let L={privacy:s.privacy,onFailed:()=>y.setScreenshotError(true)};s.capture?.screenshotProvider?T=null:T?T.updateOptions(L):T=Xr(L);}else T=null;!T&&!s.capture?.screenshotProvider&&(I=null),y.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?E??=Zr():(E?.deactivate(),E=null,ee=null),y.setCaptureAvailability({screenshot:(!!T||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!E});let c=s.capture?.discoverInventory,d=c===true?{}:c&&typeof c=="object"?c:null;d!=null&&d.enabled!==false?(w?.destroy(),w=en({config:d,getRecentNetworkPaths:()=>C?C.getEntries().map(L=>{try{let U=new URL(L.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(L=>L!=null&&L.length>0&&L.length<200):[],getUserId:()=>M?.id??null,getSessionId:bt,onEvent:L=>{l.postDiscoveryEvent({...L,sdk_version:fe}).catch(U=>{o.debug("discovery emit failed",{err:String(U)});});}})):(w?.destroy(),w=null);let H=s.capture?.replay??"off";if(H==="rrweb"||H==="lite"){let L=++R;go({redactSelectors:s.privacy?.redactSelectors}).then(U=>{if(L!==R){U.destroy();return}S?.destroy(),S=U,S.start();});}else R++,S?.destroy(),S=null;}let B=new Map;function P(c,d){B.get(c)?.forEach(k=>k({type:c,data:d}));}let I=null,ee=null,Q=null,A=false,_=true,D=null,F=null,M=null,pe=null,Ne={},oe={},q=ms({max:50});q.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let te=null;te=Fl(q);let ie=false;function $e(){y.refreshReporterInboxQuiet();}function W(){D&&clearInterval(D),D=null,F&&typeof document<"u"&&document.removeEventListener("visibilitychange",F),F=null;}function lt(){if(W(),!_)return;D=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||$e();},6e4),typeof document<"u"&&(F=()=>{document.visibilityState==="visible"&&$e();},document.addEventListener("visibilitychange",F)),$e();}function Rt(c,d){if(!s.rewards?.enabled)return;let k={client:l,config:s.rewards,projectId:r,userId:c,traits:d,reporterToken:n()};ro(k),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(H=>{if(!H.ok)return;let L=H.data;y.setRewardsState({tier:L.tier?{slug:L.tier.slug??"free",displayName:L.tier.display_name??"Free",pointsThreshold:L.tier.points_threshold??0}:null,nextTier:L.next_tier?{displayName:L.next_tier.display_name??"",pointsThreshold:L.next_tier.points_threshold??0}:null,totalPoints:L.total_points??0,pointsForReport:L.report_submit_pts??50});}).catch(()=>{});}async function We(){if(ie)return null;let c=s.capture?.screenshotProvider;if(c){ie=true;try{let L=await c();if(L)return L}catch(L){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:L instanceof Error?L.message:String(L)});}finally{ie=false;}}if(!T)return null;ie=true;let d=y.getIsOpen();d&&y.hidePanel();let k=document.getElementById("mushi-mushi-widget"),H=k?.style.visibility??"";k&&(k.style.visibility="hidden"),await new Promise(L=>{requestAnimationFrame(()=>requestAnimationFrame(()=>L()));});try{return await T.take()}finally{ie=false,k&&(k.style.visibility=H),d&&y.showPanel();}}async function dr(c){let d=s.capture?.screenshot;!(T||s.capture?.screenshotProvider)||d==="off"||I||c==="open"&&d!=="auto"||c==="submit"&&d!=="on-report"&&d!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:d}),I=await We(),y.setScreenshotAttached(I!==null),y.setScreenshotPreview(I));}y=new Jt(e.widget,{onSubmit:async({category:c,userCategory:d,description:k,intent:H})=>(o.info("Report submitted",{category:c,userCategory:d,intent:H}),ct?.recordSubmission(),await dr("submit"),await $o(c,k,H,d)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),dr("open"),S?.start(),P("widget:opened");},onClose:()=>{o.debug("Widget closed"),Q&&(ct?.recordDismissal(),P("proactive:dismissed",{type:Q})),I=null,ee=null,Q=null,P("widget:closed");},onScreenshotRequest:async()=>{if(!(!!T||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),y.setScreenshotError(true);return}o.debug("Taking screenshot"),y.setScreenshotCapturing(true);try{I=await We();}catch(d){o.warn("Screenshot capture threw",{error:d instanceof Error?d.message:String(d)}),I=null;}y.setScreenshotAttached(I!==null),y.setScreenshotPreview(I),I===null&&y.setScreenshotError(true);},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),I=null,y.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!I||c.childElementCount>0)return;let d;try{d=await bo(I,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=>{(I=d.getDataUrl(),y.setScreenshotAttached(true),y.setScreenshotPreview(I)),d.destroy(),k.remove();},L=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of L){let K=document.createElement("button");K.type="button",K.className="mushi-attach-btn",K.dataset.tool=re.id,K.textContent=re.label,K.addEventListener("click",()=>{d.setTool(re.id),k.querySelectorAll("button[data-tool]").forEach(ae=>ae.classList.remove("active")),K.classList.add("active");}),k.appendChild(K);}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(!E||s.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),y.setElementError(true);return}o.debug("Element selector activated"),y.setElementCapturing(true),y.hidePanel();try{let c=await E.activate();c?(ee=c,y.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):y.setElementCapturing(!1);}catch(c){o.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),y.setElementError(true);}finally{y.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 d=await l.listReporterComments(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(c,d){let k=await l.replyToReporterReport(c,de(r),d);if(!k.ok)throw new Error(k.error?.message??"Could not send reply")},async onReporterFeedback(c,d,k){let H=await l.replyToReporterReport(c,de(r),k??"",d);if(!H.ok)throw new Error(H.error?.message??"Could not send feedback");return H.data?.feedback??null},async onReporterReopen(c,d){let k=await l.reopenReporterReport(c,de(r),d);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 d=await l.voteReporterFeatureBoard(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){y.setLeaderboard(null,true),so(10).then(c=>{y.setLeaderboard(c,false);});},async onMushiSignIn(c){let d=await l.sendMagicLink(c);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){y.setGlobalLeaderboard(null,true);try{let c=N(),d=await l.getPublicLeaderboard(50),H=(d.ok?d.data?.leaderboard??[]:[]).map(L=>({tester_id:L.tester_id,rank:L.rank,public_handle:L.public_handle,display_name:L.display_name,points_30d:L.points_30d,total_points:L.total_points??0,badge:L.badge_slug}));if(y.setGlobalLeaderboard(H,!1),c){let L=await l.getMyReputation(c);if(L.ok&&L.data){let U=L.data;U.reputation&&y.setTesterReputation(U.reputation);}}}catch{y.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=N();if(!c){y.setCrossAppReports([],false);return}try{let d=await l.getCrossAppReports(c),k=d.ok?d.data?.reports??[]:[];y.setCrossAppReports(k,!1);}catch{y.setCrossAppReports([],false);}},onTesterSignOut(){X();},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,d){let k=await l.askAssistant({message:c,threadId:d,context:i});return k.ok?k.data??null:null}},fe),V(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>y.mount()):y.mount());let ln=N();ln&&j(ln).catch(()=>X());let cn=null,ct=null,J=s.proactive;J&&(J.rageClick!==false||J.longTask!==false||J.apiCascade!==false||J.errorBoundary===true||J.pageDwell||J.firstSession)&&typeof document<"u"&&(ct=So(J?.cooldown),cn=xo({onTrigger:(c,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!ct.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:d}),Q=c,P("proactive:triggered",{type:c,context:d}),c==="first_session"?y.pulseTrigger?.():y.open();}},{rageClick:J?.rageClick,longTask:J?.longTask,apiCascade:J?.apiCascade,apiEndpoint:sn(s),errorBoundary:J?.errorBoundary,pageDwell:J?.pageDwell,firstSession:J?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:J?.rageClick!==false,longTask:J?.longTask!==false,apiCascade:J?.apiCascade!==false,errorBoundary:J?.errorBoundary===true,pageDwell:!!J?.pageDwell,firstSession:!!J?.firstSession})),p.startAutoSync(l),p.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function pr(c){if(A=true,_=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,Ol(t.projectId),V(),y.updateConfig(s.widget),W(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=zs(s,c),V(),c.widget&&y.updateConfig(s.widget),_?lt():W(),o.debug("Applied runtime SDK config",{version:c.version});}if(Al(t)){let c=Dl(t.projectId);c&&pr(c),l.getSdkConfig().then(d=>{d.ok&&d.data?(Hl(t.projectId,d.data),pr(d.data)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");Mo(),lt(),o.info("Initialized",{projectId:t.projectId});async function Mo(){if(s.widget?.outdatedBanner==="off")return;let c=Bl(He);c&&un(c);let d=await l.getLatestSdkVersion(He);!d.ok||!d.data||(Nl(He,d.data),un(d.data));}function un(c){let d=c.latest,k=!!(d&&Ul(fe,d));if(!k&&!c.deprecated)return;let H=c.deprecationMessage??(k?`Update ${He} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:He,current:fe,latest:d,deprecated:c.deprecated,message:H}),s.widget?.outdatedBanner!=="console-only"&&y.setSdkFreshness({latest:d,current:fe,deprecated:c.deprecated,message:H});}async function $o(c,d,k,H){let L=m.check(d);if(!L.passed){o.info("Report blocked by pre-filter",{reason:L.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let Y=await U.classify({description:d,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:I!==null,hasSelectedElement:ee!==null,hasNetworkErrors:C?.getEntries()?.some(ve=>ve.status>=400||!!ve.error)??!1,hasConsoleErrors:x?.getEntries()?.some(ve=>ve.level==="error")??!1,proactiveTrigger:Q??void 0});if(Y.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:Y.modelId,confidence:Y.confidence,reason:Y.reason});return}o.debug("On-device classifier verdict",{...Y});}catch(Y){o.warn("On-device classifier threw \u2014 falling through to server",{error:Y instanceof Error?Y.message:String(Y)});}if(!f.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let re=b.scrub(m.truncate(d)),K=t.sentry?tn(t.sentry):void 0,ae=await us().catch(()=>null),ye=s.capture?.console===false?void 0:x?.getEntries(),Ie=s.capture?.network===false?void 0:C?.getEntries(),Le=u(q.getAll()),Ct=v(Object.keys(oe).length>0?{...oe}:void 0),mn=K?{...K,...K.breadcrumbs?{breadcrumbs:u(K.breadcrumbs)}:{},...K.tags?{tags:v(K.tags)}:{}}:void 0,fn=I?await Ls(I).catch(()=>null):null,hr=false;I&&!fn&&(hr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let gn=Rr(),Se={id:Cr(),projectId:t.projectId,category:c,...H?{userCategory:H}:{},description:re,userIntent:k,environment:gn,consoleLogs:ye,networkLogs:Ie,performanceMetrics:s.capture?.performance===false?void 0:$?.getMetrics(),timeline:h.getEntries({consoleLogs:ye,networkLogs:Ie}),screenshotDataUrl:fn??void 0,selectedElement:ee??void 0,...S?{replayEvents:S.flush()}:{},metadata:{...Ne,...M?{user:M}:{},...K?.release?{sentryRelease:K.release}:{}},sessionId:bt(),reporterToken:de(r),...ae?{fingerprintHash:ae}:{},appVersion:Eo(s,gn),sdkPackage:He,sdkVersion:fe,proactiveTrigger:Q??void 0,...Le.length>0?{breadcrumbs:Le}:{},...Ct?{tags:Ct}:{},...mn?{sentryContext:mn}:{},sentryEventId:K?.eventId,sentryReplayId:K?.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 Y={addMetadata(ve,Io){Se.metadata[ve]=Io;},setCategory(ve){Se.category=ve;},setDescription(ve){Se.description=ve;}};t.integrations.custom(Y);}let z=Se;if(t.beforeSendFeedback)try{let Y=await Promise.race([Promise.resolve(t.beforeSendFeedback(Se)),new Promise(ve=>setTimeout(()=>ve(Se),2e3))]);if(Y===null){o.info("Report dropped by beforeSendFeedback hook",{reportId:Se.id});return}z=Y;}catch(Y){o.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:Y instanceof Error?Y.message:String(Y)});}if(P("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(z),o.info("Offline \u2014 report queued",{reportId:z.id}),P("report:queued",{reportId:z.id}),{reportId:null,queuedOffline:true};let G=await l.submitReport(z);if(!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(z.replayEvents)&&z.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:z.id}),z={...z,replayEvents:void 0},G=await l.submitReport(z)),!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&z.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:z.id}),hr=true,z={...z,screenshotDataUrl:void 0},G=await l.submitReport(z))),G.ok){if(o.info("Report sent",{reportId:G.data?.reportId}),P("report:sent",{reportId:G.data?.reportId}),$e(),G.data?.cursorAgentId){let Y=G.data;P("report:dispatched",{reportId:Y.reportId,agentId:Y.cursorAgentId,fixId:Y.fixId});}q.add({category:"lifecycle",level:"info",message:`Mushi report sent (${G.data?.reportId??Se.id})`}),at({action:"report_submit",metadata:{category:c,reportId:G.data?.reportId??Se.id}});try{t.sentry&&G.data?.reportId&&rn(G.data.reportId);}catch{}}else G.error?.code==="PAYLOAD_TOO_LARGE"||G.error?.code==="SERIALIZE_FAILED"?(o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:z.id,error:G.error}),P("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${z.id})`})):(o.warn("Report failed, queuing for retry",{reportId:z.id,error:G.error}),await p.enqueue(z),P("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${z.id})`}));return I=null,ee=null,Q=null,G?.ok?{reportId:G.data?.reportId??Se.id,queuedOffline:false,screenshotDropped:hr}:{reportId:null,queuedOffline:true}}let dn={report(c){y.open(c);},on(c,d){return B.has(c)||B.set(c,new Set),B.get(c).add(d),()=>B.get(c)?.delete(d)},setUser(c){M=c;},setMetadata(c,d){Ne[c]=d;},setScreen(c){h.setScreen(c);},isOpen(){return y.getIsOpen()},open(){y.open();},openWith(c){y.open({category:c});},show(){y.showTrigger();},hide(){y.hideTrigger();},attachTo(c,d){return y.attachTo(c,d)},setTrigger(c){y.setTrigger(c);},openReporter(){y.openReporter();},close(){y.close();},updateConfig(c){pr(c);},diagnose(){return _l({apiEndpoint:sn(s),widgetMounted:y.getIsMounted(),runtimeConfigLoaded:A,captureScreenshotAvailable:T!==null,captureNetworkIntercepting:C!==null,widgetDiagnostics:y.getWidgetDiagnostics()})},destroy(){cn?.destroy(),ct?.reset(),y.destroy(),x?.destroy(),C?.destroy(),$?.destroy(),E?.deactivate(),oo(),te?.(),te=null,w?.destroy(),w=null,h.destroy(),Gs(),S?.destroy(),S=null,p.stopAutoSync(),W(),q.clear(),B.clear(),Me=null,o.debug("Destroyed");},async captureEvent(c){if(!f.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=b.scrub(m.truncate(c.description)),k=c.category??"bug",H=t.sentry?tn(t.sentry):void 0,L=u(q.getAll()),U=v(Object.keys(oe).length===0&&!c.tags?void 0:{...oe,...c.tags??{}}),re=H?{...H,...H.breadcrumbs?{breadcrumbs:u(H.breadcrumbs)}:{},...H.tags?{tags:v(H.tags)}:{}}:void 0,K=Rr(),ae={id:Cr(),projectId:t.projectId,category:k,description:d,environment:K,timeline:h.getEntries(),metadata:{...c.metadata??{},...M?{user:M}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...L.length>0?{breadcrumbs:L}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...re?{sentryContext:re}:{},sessionId:bt(),reporterToken:de(r),appVersion:Eo(s,K),sdkPackage:He,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(Ct=>setTimeout(()=>Ct(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 p.enqueue(ye),P("report:queued",{reportId:ye.id}),null;let Ie=await l.submitReport(ye);if(Ie.ok){P("report:sent",{reportId:Ie.data?.reportId});try{t.sentry&&Ie.data?.reportId&&rn(Ie.data.reportId);}catch{}return Ie.data?.reportId??null}return await p.enqueue(ye),P("report:failed",{reportId:ye.id,error:Ie.error}),null},async captureException(c,d){let k=fs(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=d?.description?.trim()||`${k.name}: ${k.message}`||"Uncaught exception";return dn.captureEvent({description:H,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:k.name,message:k.message,...k.stack?{stack:k.stack}:{}},metadata:{...d?.metadata??{},...k.cause?{cause:k.cause}:{}}})},identify(c,d){let k=`${c}::${d?JSON.stringify(d):""}`;if(k!==pe){if(pe=k,M={id:c,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},y.setIdentifiedUser(M.name||M.email?{name:M.name,email:M.email}:null),d)for(let[H,L]of Object.entries(d))H!=="email"&&H!=="name"&&(Ne[`user.${H}`]=L);q.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Rt(c,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let d=Ss(a);if(d?.sub){if(M?.id===d.sub){q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}M={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},y.setIdentifiedUser(M.name||M.email?{name:M.name,email:M.email}:null),Rt(M.id,{email:M.email,name:M.name});}q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else M=null,pe=null,y.setIdentifiedUser(null),q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){y.openAssistantTab();},addBreadcrumb(c){q.add(c);},getBreadcrumbs(){return q.getAll()},setTag(c,d){typeof c!="string"||c.length===0||(oe[c]=d);},setTags(c){if(!(!c||typeof c!="object"))for(let[d,k]of Object.entries(c))typeof d=="string"&&d.length>0&&(oe[d]=k);},clearTag(c){if(typeof c=="string"&&c.length>0){delete oe[c];return}for(let d of Object.keys(oe))delete oe[d];},async getReputation(){if(!M?.id)return null;let c=await l.getMyPoints(M.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 M?.id?no(M.id):null},recordActivity(c,d){s.rewards?.enabled&&at({action:c,metadata:d});},pulseTrigger(){y.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(de(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let d=await l.listReporterComments(c,de(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(c,d){let k=await l.replyToReporterReport(c,de(r),d);return k.ok?k.data?.comment??null:null},async submitFeedbackSignal(c,d,k){let H=await l.replyToReporterReport(c,de(r),k??"",d);return H.ok?H.data?.feedback??null:null},async reopenReport(c,d){let k=await l.reopenReporterReport(c,de(r),d);return k.ok?k.data?.outcome??null:null},openMyReports(){y.recorderOpenMyReports();},async getHallOfFame(c=20){let d=await l.getHallOfFame(c);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Vs(y),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",d=null;try{let k=localStorage.getItem(c);d=k===null?null:k==="unfinished",localStorage.setItem(c,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(k){o.warn("onCrashedLastRun hook threw",{error:k instanceof Error?k.message:String(k)});}}let pn={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},hn=(c,d)=>{let k=d instanceof Error?d.message:String(d);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(d,k,H){let L=Reflect.get(d,k,H);if(typeof L!="function")return L;let U=String(k),re=()=>U==="diagnose"?on():U in pn?pn[U]:void 0;return (...K)=>{try{let ae=L.apply(d,K);return ae&&typeof ae.then=="function"?ae.catch(ye=>(hn(U,ye),re())):ae}catch(ae){return hn(U,ae),re()}}}}))(dn)}function sn(t){return t.apiEndpoint??qt}function Al(t){return t.runtimeConfig!==false}async function _l(t){let e=await Pl(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 on(){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 Pl(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}:{},[Ze]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function an(t){return `mushi:sdk-config:${t}`}function To(t){return `mushi:sdk-version:${t}`}function Dl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(an(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Hl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(an(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function Ol(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(an(t));}catch{}}function Bl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(To(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 Nl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(To(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function Ul(t,e){let r=ko(t),n=ko(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 ko(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:on,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Me=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 Fl(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Te({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(Co).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(Co).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 Co(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 ql(){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 jl(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 Wl(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=ql();if(!e)return;let r=jl(e.dataset);if(r){t.__mushiLoaderInit=true;try{ur.init(r);}catch{}}}Wl();
|
|
2340
|
+
`,document.body.appendChild(S),S}function d(S,h){let w=document.elementsFromPoint(S,h),R=null;for(let O of w)if(!(O===r||O===e)){if(O.id==="mushi-mushi-widget"||O.closest("#mushi-mushi-widget"))return null;R=O;break}let v=0;for(;R?.shadowRoot&&v<20;){let O=R.shadowRoot.elementFromPoint(S,h);if(!O||O===R)break;R=O,v++;}return R}function f(S){if(!e)return;let h=S.getBoundingClientRect();e.style.left=`${h.left}px`,e.style.top=`${h.top}px`,e.style.width=`${h.width}px`,e.style.height=`${h.height}px`,e.style.display="block";}function b(S){let h=d(S.clientX,S.clientY);if(!h){n=null,e&&(e.style.display="none");return}n=h,f(h);}function u(S){S.preventDefault(),S.stopPropagation();}function y(S){S.preventDefault(),S.stopPropagation();let h=d(S.clientX,S.clientY);h&&T(o(h));}function x(S){S.key==="Escape"&&T(null);}function $(){n?.isConnected&&f(n);}function T(S){E(),s?.(S),s=null;}function C(){return t&&E(),new Promise(S=>{s=S,t=true,e=l(),r=m(),r.addEventListener("mousemove",b),r.addEventListener("click",y),r.addEventListener("pointerdown",u),r.addEventListener("mousedown",u),r.addEventListener("mouseup",u),document.addEventListener("keydown",x,true),window.addEventListener("scroll",$,{capture:true,passive:true});})}function E(){t&&(t=false,n=null,document.removeEventListener("keydown",x,true),window.removeEventListener("scroll",$,{capture:true}),r&&(r.remove(),r=null),e&&(e.remove(),e=null));}return {activate:C,deactivate:E,isActive:()=>t}}var Hi=120;function xn(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>Hi&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function s(a){let o=a.target instanceof Element?a.target:null;if(!o)return;let l=o.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??o;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:ql(l)}});}let i=Me({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,m)=>l.ts-m.ts).slice(-Hi)},clear(){t.length=0;},destroy(){i(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function ql(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var jl=6e4,Wl=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,zl=/^[0-9a-f]{20,}$/i,Kl=/^\d+$/,Vl=/^[a-z0-9]{16,}$/i;function Pi(t){return t.length===0?t:Wl.test(t)||zl.test(t)||Kl.test(t)||Vl.test(t)&&/\d/.test(t)?"[id]":t}function Di(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=Gl(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Pi).join("/")}function Gl(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,i)=>i.split("/").length-s.split("/").length);for(let s of n){let i=s.split("/").filter(o=>o.length>0);if(i.length!==r.length)continue;let a=true;for(let o=0;o<i.length;o++){let l=i[o],m=r[o];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==m){a=false;break}}if(a)return "/"+i.join("/")}return null}function Yl(){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 Xl(){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 Jl(){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 Ql(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 i=0;i<n.length;i++)s+=n[i].toString(16).padStart(2,"0");return s}catch{return null}}function wn(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:i}=t,a=e.throttleMs??jl,o=e.captureDomSummary!==false,l=e.userIdSource??"auto",m=new Map,d=null,f=null;async function b(){if(typeof window>"u")return;let T=Di(window.location.pathname,e.routeTemplates),C=Date.now(),E=m.get(T)??0;if(C-E<a)return;m.set(T,C);let S=null;l==="auto"?S=n()??s():l==="session-only"&&(S=s());let h={route:T,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:o?Jl():null,testids:Yl(),network_paths:r().slice(-50),query_param_keys:Xl(),user_id_hash:await Ql(S),observed_at:new Date().toISOString()};i(h);}function u(){f||(f=setTimeout(()=>{f=null,b();},100));}function y(){if(typeof window>"u")return;let T=window.location.pathname+window.location.search;T!==d&&(d=T,u());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let x=()=>y(),$=Me({onPush:x,onReplace:x,onPop:x});return u(),{destroy(){$(),f&&(clearTimeout(f),f=null),m.clear();},flushNow(){m.clear(),b();}}}function Oi(t,e,r){let n=l=>l.timestamp,s=l=>l.type===2,i=l=>l.type===4,a=Date.now()-e,o=0;for(let l=0;l<t.length;l++){let m=n(t[l]);if(typeof m=="number"&&m>=a)break;s(t[l])&&(o=i(t[l-1])?l-1:l);}if(t.length-o>r){for(let l=o+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){o=i(t[l-1])?l-1:l;break}}o>0&&t.splice(0,o);}function Zl(t){let e=[],r=false,n=i=>{if(!r)return;let a=i.target instanceof Element?i.target:null,o=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:o,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 i=Date.now()-t;return e.filter(a=>a.timestamp>=i)},destroy(){s(),e.length=0;}}}var kr=null;async function ec(){if(kr)return kr;try{return kr=await import('rrweb'),kr}catch{return null}}async function Bi(t){let e=t.maxDurationMs??3e4,r=await ec();if(!r?.record)return Zl(e);let n=r.record,s=[],i=null,a=false,o=['input[type="password"]',...t.redactSelectors??[]],l=()=>{i?.(),i=null,a=false;};return {start(){a||(a=true,i=n({emit(m){s.push(m),Oi(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:o.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return Oi(s,e,400),[...s]},destroy(){l(),s.length=0;}}}function Ni(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let i=document.createElement("div");i.style.position="relative",i.style.display="inline-block",i.style.maxWidth="100%";let a=document.createElement("canvas"),o=document.createElement("canvas"),l=Math.min(1,720/s.width),m=Math.round(s.width*l),d=Math.round(s.height*l);for(let h of [a,o])h.width=m,h.height=d,h.style.width="100%",h.style.height="auto",h.style.display="block";o.style.position="absolute",o.style.left="0",o.style.top="0",o.style.cursor="crosshair";let f=a.getContext("2d"),b=o.getContext("2d");if(!f||!b){n(new Error("Canvas not supported"));return}f.drawImage(s,0,0,m,d),i.appendChild(a),i.appendChild(o),e.appendChild(i);let u="highlight",y=false,x=null,$=[],T=h=>{let w=o.getBoundingClientRect(),R="touches"in h?h.touches[0]??h.changedTouches[0]:null,v=R?R.clientX:h.clientX,O=R?R.clientY:h.clientY;return {x:(v-w.left)/w.width*m,y:(O-w.top)/w.height*d}},C=()=>{b.clearRect(0,0,m,d);for(let h of $)if(h.tool==="highlight"&&h.points.length>=2){let[w,R]=h.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(w.x,R.x),Math.min(w.y,R.y),Math.abs(R.x-w.x),Math.abs(R.y-w.y));}else if(h.tool==="arrow"&&h.points.length>=2){let[w,R]=h.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(w.x,w.y),b.lineTo(R.x,R.y),b.stroke();}},E=h=>{y=true,x=T(h);},S=h=>{if(!y||!x)return;y=false;let w=T(h);if(u==="blur"){let R=Math.min(x.x,w.x),v=Math.min(x.y,w.y),O=Math.abs(w.x-x.x),W=Math.abs(w.y-x.y);O>=1&&W>=1&&(f.filter="blur(8px)",f.drawImage(a,R,v,O,W,R,v,O,W),f.filter="none");}else $.push({tool:u,points:[x,w]});x=null,C();};o.addEventListener("mousedown",E),o.addEventListener("mouseup",S),o.addEventListener("touchstart",E,{passive:true}),o.addEventListener("touchend",S),r({canvas:a,setTool(h){u=h;},getDataUrl(){let h=document.createElement("canvas");h.width=m,h.height=d;let w=h.getContext("2d");return w?(w.drawImage(a,0,0),w.drawImage(o,0,0),h.toDataURL("image/jpeg",.85)):t},destroy(){o.removeEventListener("mousedown",E),o.removeEventListener("mouseup",S),o.removeEventListener("touchstart",E),o.removeEventListener("touchend",S),i.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function Fi(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function tc(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function rc(){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 Sn(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=Fi();if(!s)return n;n.sdk=rc();try{let o=s;if(typeof o.lastEventId=="function")n.eventId=o.lastEventId()??void 0;else {let m=s.getCurrentHub?.()?.getScope?.();n.eventId=m?.getLastEventId?.()??void 0;}}catch{}let i;try{let o=s;typeof o.getCurrentScope=="function"?i=o.getCurrentScope():i=s.getCurrentHub?.()?.getScope?.();}catch{}if(i){try{let o=i.getUser?.();o&&(n.user={id:typeof o.id=="string"?o.id:void 0,email:typeof o.email=="string"?o.email:void 0,username:typeof o.username=="string"?o.username:void 0,ip_address:typeof o.ip_address=="string"?o.ip_address:void 0});}catch{}try{let o=i.getTags?.();if(o&&typeof o=="object"){let l={};for(let[m,d]of Object.entries(o))(typeof d=="string"||typeof d=="number"||typeof d=="boolean")&&(l[m]=d);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=i.getTransactionName?.()??i.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=i.getSession?.()?.sid??void 0;}catch{}try{let o=i.getBreadcrumbs?.()??i._breadcrumbs??[];if(Array.isArray(o)&&o.length>0){let l=o.slice(-r);n.breadcrumbs=l.map(m=>{let d=m;return {timestamp:typeof d.timestamp=="number"?d.timestamp<1e12?Math.round(d.timestamp*1e3):d.timestamp:void 0,category:typeof d.category=="string"?d.category:void 0,level:typeof d.level=="string"?d.level:void 0,message:typeof d.message=="string"?d.message:void 0,type:typeof d.type=="string"?d.type:void 0,data:d.data&&typeof d.data=="object"?d.data:void 0}});}}catch{}}try{let o=s,l;if(typeof o.getActiveSpan=="function"?l=o.getActiveSpan():i?.getSpan&&(l=i.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 o=s;typeof o.getClient=="function"?a=o.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let o=a.getOptions?.();o?.release&&(n.release=o.release),o?.environment&&(n.environment=o.environment);}catch{}try{let o=a.getDsn?.();if(o?.host&&o?.projectId&&n.eventId){let l=o.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??tc();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function En(t,e={}){let r=Fi();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 nc=["/login","/logout","/signup","/sso/*","/auth/*"];function qi(t,e={}){let r=[];if(e.rageClick!==false){let x=function($){let T=Date.now();if($.target===y){if(u.push(T),u=u.filter(C=>T-C<500),u.length>=3){let C=$.target;t.onTrigger("rage_click",{element:C.tagName,id:C.id,text:C.textContent?.slice(0,50)}),u=[];}}else y=$.target,u=[T];};let u=[],y=null;document.addEventListener("click",x,true),r.push(()=>document.removeEventListener("click",x,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let u=new PerformanceObserver(y=>{for(let x of y.getEntries())x.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(x.duration),startTime:Math.round(x.startTime)});});u.observe({entryTypes:["longtask"]}),r.push(()=>u.disconnect());}catch{}let n=sc(e.apiCascade);if(n.enabled){let u=[],y=globalThis.fetch;globalThis.fetch=async function(...x){let[$,T]=x,C=wr($),E=!!Sr($,T)||Er(C,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let S=await y.apply(this,x);return !E&&!S.ok&&S.status>=400&&Ui(u,t),S}catch(S){throw E||Ui(u,t),S}},r.push(()=>{globalThis.fetch=y;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let C=function(R){return x.some(v=>v.endsWith("/*")?R.startsWith(v.slice(0,-2)):R===v||R.startsWith(v+"/"))},E=function(){let R=window.location?.pathname??"";C(R)||t.onTrigger("page_dwell",{thresholdMs:y,path:R});},S=function(){$&&clearTimeout($);let R=window.location?.pathname??"";C(R)||($=setTimeout(E,y));},h=function(){let R=window.location?.pathname??"";R!==T&&(T=R,S());};let u=typeof e.pageDwell=="object"?e.pageDwell??{}:{},y=u.thresholdMs||300*1e3,x=u.excludeRoutes!==void 0?u.excludeRoutes:nc,$=null,T=window.location?.pathname??"";S();let w=Me({onPush:h,onReplace:h,onPop:h});r.push(()=>{$&&clearTimeout($),w();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let u=typeof e.firstSession=="object"?e.firstSession??{}:{},y=u.delayMs??45*1e3,x=u.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),$=false;try{$=window.localStorage?.getItem(x)==="1";}catch{}if(!$){let T=setTimeout(()=>{try{window.localStorage?.setItem(x,"1");}catch{}t.onTrigger("first_session",{delayMs:y});},y);r.push(()=>clearTimeout(T));}}if(e.errorBoundary){let u=function(x){t.onTrigger("error_boundary",{message:x.message,filename:x.filename,lineno:x.lineno,colno:x.colno});},y=function(x){t.onTrigger("error_boundary",{message:x.reason instanceof Error?x.reason.message:String(x.reason),type:"unhandled_rejection"});};window.addEventListener("error",u),window.addEventListener("unhandledrejection",y),r.push(()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",y);});}return {destroy(){r.forEach(u=>u());}}}function sc(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Ui(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 ji="mushi:lastDismiss",Rr="mushi:consecDismiss",kn="mushi:lastShown";function Cr(t){try{return localStorage.getItem(t)}catch{return null}}function Tr(t,e){try{localStorage.setItem(t,e);}catch{}}function Wi(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,i=0,a=new Set;function o(f){let b=Date.now();if(parseInt(Cr(Rr)??"0",10)>=n)return false;let y=Cr(ji);if(y&&b-parseInt(y,10)<r*60*60*1e3)return false;if(s>0&&i===0){let x=Cr(kn);if(x&&b-parseInt(x,10)<s)return false}return i>=e||a.has(f)?false:(a.add(f),i++,Tr(kn,String(b)),true)}function l(){Tr(ji,String(Date.now()));let f=parseInt(Cr(Rr)??"0",10);Tr(Rr,String(f+1));}function m(){Tr(Rr,"0");}function d(){i=0,a.clear();try{localStorage.removeItem(kn);}catch{}}return {shouldShow:o,recordDismissal:l,recordSubmission:m,reset:d}}function zi(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Ie=null,$r=class{constructor(){}static init(e){if(Ie)return ir({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Ie;if(typeof document>"u"||typeof window>"u")return Vi();let r={...Ur(),...e};if(!r.projectId||!r.apiKey){let n=bs();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?Vi():(Ie=ic(r),Ie)}static getInstance(){return Ie}static destroy(){Ie?.destroy(),Ie=null;}static diagnose(){return Ie?.diagnose()??Cn()}};function ic(t){vs(t);let e=ys(t),r=e.projectId,n=()=>le(r),s=e,i=t.debug??false?ir({scope:"mushi",level:"debug",format:"pretty"}):qr,a=null,o=null,l=gs({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:Ne,sdkVersion:fe});e.trackSessions!==false&&Ms({client:l,sdkVersion:fe,reporterTokenHash:le(e.projectId)??null});let m=xs(e.preFilter),d=Rs(e.offline),f=Ls({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),b=Hs();function u(c){return c.map(p=>{let k={...p};if(typeof p.message=="string"&&(k.message=b.scrub(p.message)),p.data&&typeof p.data=="object"){let H={};for(let[I,q]of Object.entries(p.data))H[I]=typeof q=="string"?b.scrub(q):q;k.data=H;}return k})}function y(c){if(!c)return;let p={};for(let[k,H]of Object.entries(c))p[k]=typeof H=="string"?b.scrub(H):H;return p}let x=null,$=null,T=null,C=null,E=null,S=null,h=xn(),w=null,R=0,v,O=`mushi:tester-jwt:${e.projectId}`;function W(){try{return typeof localStorage<"u"?localStorage.getItem(O):null}catch{return null}}function te(){try{typeof localStorage<"u"&&localStorage.removeItem(O);}catch{}}async function Y(c){let p=await l.getTesterStatus(c);if(!p.ok||!p.data){te();return}let k=p.data;if(!k.is_tester||!k.tester_id){te();return}v.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 I=H.data;I.reputation&&v.setTesterReputation(I.reputation);}}function se(){if(s.capture?.console!==false?x??=pn():(x?.destroy(),x=null),s.capture?.network!==false){let I={apiEndpoint:Rn(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:ct()};$?$.updateOptions(I):$=mn(I);}else $?.destroy(),$=null;if(s.capture?.performance!==false?T??=yn():(T?.destroy(),T=null),s.capture?.screenshot!=="off"){let I={privacy:s.privacy,onFailed:()=>v.setScreenshotError(true)};s.capture?.screenshotProvider?C=null:C?C.updateOptions(I):C=bn(I);}else C=null;!C&&!s.capture?.screenshotProvider&&(B=null),v.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?E??=vn():(E?.deactivate(),E=null,P=null),v.setCaptureAvailability({screenshot:(!!C||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!E});let c=s.capture?.discoverInventory,p=c===true?{}:c&&typeof c=="object"?c:null;p!=null&&p.enabled!==false?(S?.destroy(),S=wn({config:p,getRecentNetworkPaths:()=>$?$.getEntries().map(I=>{try{let q=new URL(I.url,typeof window<"u"?window.location.href:"http://localhost");return q.host&&typeof window<"u"&&q.host!==window.location.host?null:q.pathname}catch{return null}}).filter(I=>I!=null&&I.length>0&&I.length<200):[],getUserId:()=>D?.id??null,getSessionId:ct,onEvent:I=>{l.postDiscoveryEvent({...I,sdk_version:fe}).catch(q=>{i.debug("discovery emit failed",{err:String(q)});});}})):(S?.destroy(),S=null);let H=s.capture?.replay??"off";if(H==="rrweb"||H==="lite"){let I=++R;Bi({redactSelectors:s.privacy?.redactSelectors}).then(q=>{if(I!==R){q.destroy();return}w?.destroy(),w=q,w.start();});}else R++,w?.destroy(),w=null;}let F=new Map;function N(c,p){F.get(c)?.forEach(k=>k({type:c,data:p}));}let B=null,P=null,M=null,A=false,L=true,_=null,K=null,D=null,me=null,Q={},V={},U=Ps({max:50});U.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let ce=null;ce=fc(U);let ne=false;function Ae(){v.refreshReporterInboxQuiet();}function z(){_&&clearInterval(_),_=null,K&&typeof document<"u"&&document.removeEventListener("visibilitychange",K),K=null;}function ee(){if(z(),!L)return;_=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||Ae();},6e4),typeof document<"u"&&(K=()=>{document.visibilityState==="visible"&&Ae();},document.addEventListener("visibilitychange",K)),Ae();}function et(c,p){if(!s.rewards?.enabled)return;let k={client:l,config:s.rewards,projectId:r,userId:c,traits:p,reporterToken:n()};Ri(k),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(H=>{if(!H.ok)return;let I=H.data;v.setRewardsState({tier:I.tier?{slug:I.tier.slug??"free",displayName:I.tier.display_name??"Free",pointsThreshold:I.tier.points_threshold??0}:null,nextTier:I.next_tier?{displayName:I.next_tier.display_name??"",pointsThreshold:I.next_tier.points_threshold??0}:null,totalPoints:I.total_points??0,pointsForReport:I.report_submit_pts??50});}).catch(()=>{});}async function Le(){if(ne)return null;let c=s.capture?.screenshotProvider;if(c){ne=true;try{let I=await c();if(I)return I}catch(I){i.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)});}finally{ne=false;}}if(!C)return null;ne=true;let p=v.getIsOpen();p&&v.hidePanel();let k=document.getElementById("mushi-mushi-widget"),H=k?.style.visibility??"";k&&(k.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await C.take()}finally{ne=false,k&&(k.style.visibility=H),p&&v.showPanel();}}async function tt(c){let p=s.capture?.screenshot;!(C||s.capture?.screenshotProvider)||p==="off"||B||c==="open"&&p!=="auto"||c==="submit"&&p!=="on-report"&&p!=="auto"||(i.debug("Auto-capturing screenshot",{when:c,mode:p}),B=await Le(),v.setScreenshotAttached(B!==null),v.setScreenshotPreview(B));}v=new fr(e.widget,{onSubmit:async({category:c,userCategory:p,description:k,intent:H})=>(i.info("Report submitted",{category:c,userCategory:p,intent:H}),Ve?.recordSubmission(),await tt("submit"),await Mr(c,k,H,p)??{reportId:null,queuedOffline:true}),onOpen:()=>{i.debug("Widget opened"),tt("open"),w?.start(),N("widget:opened");},onClose:()=>{i.debug("Widget closed"),M&&(Ve?.recordDismissal(),N("proactive:dismissed",{type:M})),B=null,P=null,M=null,N("widget:closed");},onScreenshotRequest:async()=>{if(!(!!C||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){i.warn("Screenshot requested but capture is disabled"),v.setScreenshotError(true);return}i.debug("Taking screenshot"),v.setScreenshotCapturing(true);try{B=await Le();}catch(p){i.warn("Screenshot capture threw",{error:p instanceof Error?p.message:String(p)}),B=null;}v.setScreenshotAttached(B!==null),v.setScreenshotPreview(B),B===null&&v.setScreenshotError(true);},onScreenshotRemove:()=>{i.debug("Screenshot attachment removed"),B=null,v.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!B||c.childElementCount>0)return;let p;try{p=await Ni(B,c);}catch(ie){i.warn("Screenshot annotation failed",{error:ie instanceof Error?ie.message:String(ie)});return}let k=document.createElement("div");k.className="mushi-annotate-toolbar";let H=ie=>{(B=p.getDataUrl(),v.setScreenshotAttached(true),v.setScreenshotPreview(B)),p.destroy(),k.remove();},I=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ie of I){let Z=document.createElement("button");Z.type="button",Z.className="mushi-attach-btn",Z.dataset.tool=ie.id,Z.textContent=ie.label,Z.addEventListener("click",()=>{p.setTool(ie.id),k.querySelectorAll("button[data-tool]").forEach(ue=>ue.classList.remove("active")),Z.classList.add("active");}),k.appendChild(Z);}k.querySelector('button[data-tool="highlight"]')?.classList.add("active");let q=document.createElement("button");q.type="button",q.className="mushi-attach-btn",q.textContent="\u2713 Done",q.addEventListener("click",()=>H()),k.appendChild(q),c.insertBefore(k,c.firstChild);},onElementSelectorRequest:async()=>{if(!E||s.capture?.elementSelector===false){i.warn("Element selector requested but it is disabled/unavailable"),v.setElementError(true);return}i.debug("Element selector activated"),v.setElementCapturing(true),v.hidePanel();try{let c=await E.activate();c?(P=c,v.setElementSelected(!0),i.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):v.setElementCapturing(!1);}catch(c){i.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),v.setElementError(true);}finally{v.showPanel();}},async onReporterReportsRequest(){let c=await l.listReporterReports(le(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,le(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,le(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,le(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,le(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(le(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,le(r));if(!p.ok)throw new Error(p.error?.message??"Could not vote");return p.data??{voted:true,action:"added"}},onLeaderboardOpen(){v.setLeaderboard(null,true),Ti(10).then(c=>{v.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(){v.setGlobalLeaderboard(null,true);try{let c=W(),p=await l.getPublicLeaderboard(50),H=(p.ok?p.data?.leaderboard??[]:[]).map(I=>({tester_id:I.tester_id,rank:I.rank,public_handle:I.public_handle,display_name:I.display_name,points_30d:I.points_30d,total_points:I.total_points??0,badge:I.badge_slug}));if(v.setGlobalLeaderboard(H,!1),c){let I=await l.getMyReputation(c);if(I.ok&&I.data){let q=I.data;q.reputation&&v.setTesterReputation(q.reputation);}}}catch{v.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=W();if(!c){v.setCrossAppReports([],false);return}try{let p=await l.getCrossAppReports(c),k=p.ok?p.data?.reports??[]:[];v.setCrossAppReports(k,!1);}catch{v.setCrossAppReports([],false);}},onTesterSignOut(){te();},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:o});return k.ok?k.data??null:null}},fe),se(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>v.mount()):v.mount());let Ht=W();Ht&&Y(Ht).catch(()=>te());let Ke=null,Ve=null,X=s.proactive;X&&(X.rageClick!==false||X.longTask!==false||X.apiCascade!==false||X.errorBoundary===true||X.pageDwell||X.firstSession)&&typeof document<"u"&&(Ve=Wi(X?.cooldown),Ke=qi({onTrigger:(c,p)=>{if(typeof navigator<"u"&&!navigator.onLine){i.debug("Proactive trigger suppressed: offline",{type:c});return}if(!Ve.shouldShow(c)){i.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}i.info("Proactive trigger fired",{type:c,context:p}),M=c,N("proactive:triggered",{type:c,context:p}),c==="first_session"?v.pulseTrigger?.():v.open();}},{rageClick:X?.rageClick,longTask:X?.longTask,apiCascade:X?.apiCascade,apiEndpoint:Rn(s),errorBoundary:X?.errorBoundary,pageDwell:X?.pageDwell,firstSession:X?.firstSession,projectId:e.projectId}),i.debug("Proactive triggers enabled",{rageClick:X?.rageClick!==false,longTask:X?.longTask!==false,apiCascade:X?.apiCascade!==false,errorBoundary:X?.errorBoundary===true,pageDwell:!!X?.pageDwell,firstSession:!!X?.firstSession})),d.startAutoSync(l),d.flush(l).then(c=>{c.sent>0&&i.info("Synced offline reports",{sent:c.sent});});function yt(c){if(A=true,L=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,dc(t.projectId),se(),v.updateConfig(s.widget),z(),i.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=mi(s,c),se(),c.widget&&v.updateConfig(s.widget),L?ee():z(),i.debug("Applied runtime SDK config",{version:c.version});}if(oc(t)){let c=cc(t.projectId);c&&yt(c),l.getSdkConfig().then(p=>{p.ok&&p.data?(uc(t.projectId,p.data),yt(p.data)):p.error&&i.debug("Runtime SDK config unavailable",p.error);}).catch(p=>{i.debug("Runtime SDK config fetch failed",{error:p instanceof Error?p.message:String(p)});});}else i.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");Pt(),ee(),i.info("Initialized",{projectId:t.projectId});async function Pt(){if(s.widget?.outdatedBanner==="off")return;let c=pc(Ne);c&&Ge(c);let p=await l.getLatestSdkVersion(Ne);!p.ok||!p.data||(hc(Ne,p.data),Ge(p.data));}function Ge(c){let p=c.latest,k=!!(p&&mc(fe,p));if(!k&&!c.deprecated)return;let H=c.deprecationMessage??(k?`Update ${Ne} to ${p}.`:null);i.warn("Mushi SDK is outdated",{package:Ne,current:fe,latest:p,deprecated:c.deprecated,message:H}),s.widget?.outdatedBanner!=="console-only"&&v.setSdkFreshness({latest:p,current:fe,deprecated:c.deprecated,message:H});}async function Mr(c,p,k,H){let I=m.check(p);if(!I.passed){i.info("Report blocked by pre-filter",{reason:I.reason});return}let q=t.preFilter?.wasmClassifier;if(q)try{let j=await q.classify({description:p,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:B!==null,hasSelectedElement:P!==null,hasNetworkErrors:$?.getEntries()?.some(ge=>ge.status>=400||!!ge.error)??!1,hasConsoleErrors:x?.getEntries()?.some(ge=>ge.level==="error")??!1,proactiveTrigger:M??void 0});if(j.verdict==="block"){i.info("Report blocked by on-device classifier",{modelId:j.modelId,confidence:j.confidence,reason:j.reason});return}i.debug("On-device classifier verdict",{...j});}catch(j){i.warn("On-device classifier threw \u2014 falling through to server",{error:j instanceof Error?j.message:String(j)});}if(!f.tryConsume()){i.warn("Report throttled \u2014 rate limit exceeded");return}let ie=b.scrub(m.truncate(p)),Z=t.sentry?Sn(t.sentry):void 0,ue=await Cs().catch(()=>null),we=s.capture?.console===false?void 0:x?.getEntries(),_e=s.capture?.network===false?void 0:$?.getEntries(),He=u(U.getAll()),Bt=y(Object.keys(V).length>0?{...V}:void 0),Mn=Z?{...Z,...Z.breadcrumbs?{breadcrumbs:u(Z.breadcrumbs)}:{},...Z.tags?{tags:y(Z.tags)}:{}}:void 0,In=B?await Js(B).catch(()=>null):null,Nt=false;B&&!In&&(Nt=true,i.warn("Screenshot dropped \u2014 could not compress under wire budget"));let An=jr(),ke={id:Wr(),projectId:t.projectId,category:c,...H?{userCategory:H}:{},description:ie,userIntent:k,environment:An,consoleLogs:we,networkLogs:_e,performanceMetrics:s.capture?.performance===false?void 0:T?.getMetrics(),timeline:h.getEntries({consoleLogs:we,networkLogs:_e}),screenshotDataUrl:In??void 0,selectedElement:P??void 0,...w?{replayEvents:w.flush()}:{},metadata:{...Q,...D?{user:D}:{},...Z?.release?{sentryRelease:Z.release}:{}},sessionId:ct(),reporterToken:le(r),...ue?{fingerprintHash:ue}:{},appVersion:zi(s,An),sdkPackage:Ne,sdkVersion:fe,proactiveTrigger:M??void 0,...He.length>0?{breadcrumbs:He}:{},...Bt?{tags:Bt}:{},...Mn?{sentryContext:Mn}:{},sentryEventId:Z?.eventId,sentryReplayId:Z?.replayId,createdAt:new Date().toISOString()};if(U.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:ke.id,category:c}}),t.integrations?.custom){let j={addMetadata(ge,Ir){ke.metadata[ge]=Ir;},setCategory(ge){ke.category=ge;},setDescription(ge){ke.description=ge;}};t.integrations.custom(j);}let G=ke;if(t.beforeSendFeedback)try{let j=await Promise.race([Promise.resolve(t.beforeSendFeedback(ke)),new Promise(ge=>setTimeout(()=>ge(ke),2e3))]);if(j===null){i.info("Report dropped by beforeSendFeedback hook",{reportId:ke.id});return}G=j;}catch(j){i.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:j instanceof Error?j.message:String(j)});}if(N("report:submitted",{reportId:G.id}),typeof navigator<"u"&&!navigator.onLine)return await d.enqueue(G),i.info("Offline \u2014 report queued",{reportId:G.id}),N("report:queued",{reportId:G.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let J=await l.submitReport(G);if(!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(G.replayEvents)&&G.replayEvents.length>0&&(i.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:G.id}),G={...G,replayEvents:void 0},J=await l.submitReport(G)),!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&G.screenshotDataUrl&&(i.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:G.id}),Nt=true,G={...G,screenshotDataUrl:void 0},J=await l.submitReport(G))),J.ok){if(i.info("Report sent",{reportId:J.data?.reportId}),N("report:sent",{reportId:J.data?.reportId}),Ae(),J.data?.cursorAgentId){let j=J.data;N("report:dispatched",{reportId:j.reportId,agentId:j.cursorAgentId,fixId:j.fixId});}U.add({category:"lifecycle",level:"info",message:`Mushi report sent (${J.data?.reportId??ke.id})`}),bt({action:"report_submit",metadata:{category:c,reportId:J.data?.reportId??ke.id}});try{t.sentry&&J.data?.reportId&&En(J.data.reportId);}catch{}}else {if(J.error?.code==="PAYLOAD_TOO_LARGE"||J.error?.code==="SERIALIZE_FAILED")return i.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:G.id,error:J.error}),N("report:failed",{reportId:G.id,error:J.error}),U.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${G.id})`}),B=null,P=null,M=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Nt};{let j=J.error?.code??"",ge=j==="HTTP_429"||j.includes("RATE_LIMIT"),Ir=j==="HTTP_401"||j.includes("UNAUTHORIZED")||j.includes("INVALID_API_KEY")||j.includes("MISSING_API_KEY"),Ji=j==="HTTP_403"||j.includes("QUOTA")||j.includes("FORBIDDEN")||j==="feature_not_in_plan";if(Ir||Ji)return i.warn("Report rejected \u2014 credentials/quota",{reportId:G.id,error:J.error}),N("report:failed",{reportId:G.id,error:J.error}),B=null,P=null,M=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(ge)return i.warn("Report rate-limited \u2014 queued for retry",{reportId:G.id,error:J.error}),await d.enqueue(G),N("report:failed",{reportId:G.id,error:J.error}),B=null,P=null,M=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};i.warn("Report failed, queuing for retry",{reportId:G.id,error:J.error}),await d.enqueue(G),N("report:failed",{reportId:G.id,error:J.error}),U.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${G.id})`});}}return B=null,P=null,M=null,J?.ok?{reportId:J.data?.reportId??ke.id,queuedOffline:false,screenshotDropped:Nt}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let vt={report(c){v.open(c);},on(c,p){return F.has(c)||F.set(c,new Set),F.get(c).add(p),()=>F.get(c)?.delete(p)},setUser(c){D=c;},setMetadata(c,p){Q[c]=p;},setScreen(c){h.setScreen(c);},isOpen(){return v.getIsOpen()},open(){v.open();},openWith(c){v.open({category:c});},show(){v.showTrigger();},hide(){v.hideTrigger();},attachTo(c,p){return v.attachTo(c,p)},setTrigger(c){v.setTrigger(c);},openReporter(){v.openReporter();},close(){v.close();},updateConfig(c){yt(c);},diagnose(){return ac({apiEndpoint:Rn(s),widgetMounted:v.getIsMounted(),runtimeConfigLoaded:A,captureScreenshotAvailable:C!==null,captureNetworkIntercepting:$!==null,widgetDiagnostics:v.getWidgetDiagnostics()})},destroy(){Ke?.destroy(),Ve?.reset(),v.destroy(),x?.destroy(),$?.destroy(),T?.destroy(),E?.deactivate(),$i(),ce?.(),ce=null,S?.destroy(),S=null,h.destroy(),bi(),w?.destroy(),w=null,d.stopAutoSync(),z(),As(),U.clear(),F.clear(),Ie=null,i.debug("Destroyed");},async captureEvent(c){if(!f.tryConsume())return i.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let p=b.scrub(m.truncate(c.description)),k=c.category??"bug",H=t.sentry?Sn(t.sentry):void 0,I=u(U.getAll()),q=y(Object.keys(V).length===0&&!c.tags?void 0:{...V,...c.tags??{}}),ie=H?{...H,...H.breadcrumbs?{breadcrumbs:u(H.breadcrumbs)}:{},...H.tags?{tags:y(H.tags)}:{}}:void 0,Z=jr(),ue={id:Wr(),projectId:t.projectId,category:k,description:p,environment:Z,timeline:h.getEntries(),metadata:{...c.metadata??{},...D?{user:D}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...I.length>0?{breadcrumbs:I}:{},...q&&Object.keys(q).length>0?{tags:q}:{},...ie?{sentryContext:ie}:{},sessionId:ct(),reporterToken:le(r),appVersion:zi(s,Z),sdkPackage:Ne,sdkVersion:fe,sentryEventId:H?.eventId,sentryReplayId:H?.replayId,createdAt:new Date().toISOString()},we=ue;if(s.beforeSendFeedback)try{let He=await Promise.race([Promise.resolve(s.beforeSendFeedback(ue)),new Promise(Bt=>setTimeout(()=>Bt(ue),2e3))]);if(He===null)return i.info("captureEvent dropped by beforeSendFeedback hook",{reportId:ue.id}),null;we=He;}catch(He){i.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:He instanceof Error?He.message:String(He)});}if(N("report:submitted",{reportId:we.id}),typeof navigator<"u"&&!navigator.onLine)return await d.enqueue(we),N("report:queued",{reportId:we.id}),null;let _e=await l.submitReport(we);if(_e.ok){N("report:sent",{reportId:_e.data?.reportId});try{t.sentry&&_e.data?.reportId&&En(_e.data.reportId);}catch{}return _e.data?.reportId??null}return await d.enqueue(we),N("report:failed",{reportId:we.id,error:_e.error}),null},async captureException(c,p){let k=Ds(c);U.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 vt.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!==me){if(me=k,D={id:c,...p?.email?{email:p.email}:{},...p?.name?{name:p.name}:{}},v.setIdentifiedUser(D.name||D.email?{name:D.name,email:D.email}:null),p)for(let[H,I]of Object.entries(p))H!=="email"&&H!=="name"&&(Q[`user.${H}`]=I);U.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),et(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=qs(a);if(p?.sub){if(D?.id===p.sub){U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}Is(p.sub),D={id:p.sub,...p.email?{email:p.email}:{},...p.name?{name:p.name}:{}},v.setIdentifiedUser(D.name||D.email?{name:D.name,email:D.email}:null),et(D.id,{email:D.email,name:D.name});}U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else D=null,me=null,v.setIdentifiedUser(null),U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){o=c&&c.route?c:null;},openAssistant(){v.openAssistantTab();},addBreadcrumb(c){U.add(c);},getBreadcrumbs(){return U.getAll()},setTag(c,p){typeof c!="string"||c.length===0||(V[c]=p);},setTags(c){if(!(!c||typeof c!="object"))for(let[p,k]of Object.entries(c))typeof p=="string"&&p.length>0&&(V[p]=k);},clearTag(c){if(typeof c=="string"&&c.length>0){delete V[c];return}for(let p of Object.keys(V))delete V[p];},async getReputation(){if(!D?.id)return null;let c=await l.getMyPoints(D.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 D?.id?Ci(D.id):null},recordActivity(c,p){s.rewards?.enabled&&bt({action:c,metadata:p});},pulseTrigger(){v.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(le(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let p=await l.listReporterComments(c,le(r));return p.ok?p.data?.comments??[]:[]},async replyToReport(c,p){let k=await l.replyToReporterReport(c,le(r),p);return k.ok?k.data?.comment??null:null},async submitFeedbackSignal(c,p,k){let H=await l.replyToReporterReport(c,le(r),k??"",p);return H.ok?H.data?.feedback??null:null},async reopenReport(c,p){let k=await l.reopenReporterReport(c,le(r),p);return k.ok?k.data?.outcome??null:null},openMyReports(){v.recorderOpenMyReports();},async getHallOfFame(c=20){let p=await l.getHallOfFame(c);return p.ok?p.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&fi(v),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){i.warn("onCrashedLastRun hook threw",{error:k instanceof Error?k.message:String(k)});}}let Dt={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},Ot=(c,p)=>{let k=p instanceof Error?p.message:String(p);i.debug(`Mushi.${c}() failed (swallowed)`,{error:k});try{U.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:k}});}catch{}};return (c=>new Proxy(c,{get(p,k,H){let I=Reflect.get(p,k,H);if(typeof I!="function")return I;let q=String(k),ie=()=>q==="diagnose"?Cn():q in Dt?Dt[q]:void 0;return (...Z)=>{try{let ue=I.apply(p,Z);return ue&&typeof ue.then=="function"?ue.catch(we=>(Ot(q,we),ie())):ue}catch(ue){return Ot(q,ue),ie()}}}}))(vt)}function Rn(t){return t.apiEndpoint??rr}function oc(t){return t.runtimeConfig!==false}async function ac(t){let e=await lc(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 Cn(){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 lc(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}:{},[at]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Tn(t){return `mushi:sdk-config:${t}`}function Yi(t){return `mushi:sdk-version:${t}`}function cc(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Tn(t));return e?JSON.parse(e).config??null:null}catch{return null}}function uc(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Tn(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function dc(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Tn(t));}catch{}}function pc(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Yi(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 hc(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Yi(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function mc(t,e){let r=Ki(t),n=Ki(e);for(let s=0;s<Math.max(r.length,n.length);s++){let i=r[s]??0,a=n[s]??0;if(i<a)return true;if(i>a)return false}return false}function Ki(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function Vi(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Cn,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Ie=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 fc(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Me({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(Gi).join(" ")});}catch{}return r.apply(this,a)},i=function(...a){try{t.add({category:"console",level:"warning",message:a.map(Gi).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=i,e.push(()=>{console.error===s&&(console.error=r),console.warn===i&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let i=s,a=0;for(;i&&a<10;){let o=i.getAttribute("data-testid");if(o){let l=(i.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${o}${l?` \u2014 ${l}`:""}`,data:{testid:o,tag:i.tagName.toLowerCase()}});return}i=i.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 Gi(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 gc(){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 bc(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,i=t.bannerPosition;(s||i)&&(n.bannerConfig={...s?{variant:s}:{},...i?{position:i}:{}});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 yc(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=gc();if(!e)return;let r=bc(e.dataset);if(r){t.__mushiLoaderInit=true;try{$r.init(r);}catch{}}}yc();
|
|
2290
2341
|
})();//# sourceMappingURL=mushi.loader.global.js.map
|
|
2291
2342
|
//# sourceMappingURL=mushi.loader.global.js.map
|