1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[315],{345:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"LexiconNotFound"===e.error?new n(e):e}},532:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},565:(e,t,r)=>{"use strict";r.d(t,{er:()=>g,z6:()=>s,jV:()=>ev,dX:()=>ep,xt:()=>H,OQ:()=>ey,Rp:()=>W,L5:()=>X,wQ:()=>ee,cr:()=>em,XP:()=>eg});var s={};r.r(s),r.d(s,{assure:()=>a,create:()=>i,is:()=>n,isObject:()=>o});let n=(e,t)=>t.safeParse(e).success,i=e=>t=>e.safeParse(t).success,a=(e,t)=>e.parse(t),o=e=>"object"==typeof e&&null!==e,u=e=>new Promise(t=>setTimeout(t,e)),l="234567abcdefghijklmnopqrstuvwxyz",c=e=>{let t="";for(;e;){let r=e%32;e=Math.floor(e/32),t=l.charAt(r)+t}return t},d=e=>{let t=0;for(let r of e)t=32*t+l.indexOf(r);return t},h=0,f=0,p=null;function m(e){return e.replaceAll("-","")}class g{constructor(e){let t=m(e);if(13!==t.length)throw Error(`Poorly formatted TID: ${t.length} length`);this.str=t}static next(e){let t=Math.max(Date.now(),h);t===h&&f++,h=t;let r=1e3*t+f;null===p&&(p=Math.floor(32*Math.random()));let s=g.fromTime(r,p);return!e||s.newerThan(e)?s:g.fromTime(e.timestamp()+1,p)}static nextStr(e){return g.next(e?new g(e):void 0).toString()}static fromTime(e,t){return new g(`${c(e)}${c(t).padStart(2,"2")}`)}static fromStr(e){return new g(e)}static oldestFirst(e,t){return e.compareTo(t)}static newestFirst(e,t){return t.compareTo(e)}static is(e){return 13===m(e).length}timestamp(){return d(this.str.slice(0,11))}clockid(){return d(this.str.slice(11,13))}formatted(){let e=this.toString();return`${e.slice(0,4)}-${e.slice(4,7)}-${e.slice(7,11)}-${e.slice(11,13)}`}toString(){return this.str}compareTo(e){return this.str>e.str?1:this.str<e.str?-1:0}equals(e){return this.str===e.str}newerThan(e){return this.compareTo(e)>0}olderThan(e){return 0>this.compareTo(e)}}var y=r(55824),v=r(12773);function b({name:e,code:t,encode:r,minDigestLength:s,maxDigestLength:n}){return new w(e,t,r,s,n)}class w{name;code;encode;minDigestLength;maxDigestLength;constructor(e,t,r,s,n){this.name=e,this.code=t,this.encode=r,this.minDigestLength=s??20,this.maxDigestLength=n}digest(e,t){if(t?.truncate!=null){if(t.truncate<this.minDigestLength)throw Error(`Invalid truncate option, must be greater than or equal to ${this.minDigestLength}`);if(null!=this.maxDigestLength&&t.truncate>this.maxDigestLength)throw Error(`Invalid truncate option, must be less than or equal to ${this.maxDigestLength}`)}if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?x(r,this.code,t?.truncate):r.then(e=>x(e,this.code,t?.truncate))}throw Error("Unknown type, must be binary type")}}function x(e,t,r){if(null!=r&&r!==e.byteLength){if(r>e.byteLength)throw Error(`Invalid truncate option, must be less than or equal to ${e.byteLength}`);e=e.subarray(0,r)}return v.vt(t,e)}function k(e){return async t=>new Uint8Array(await crypto.subtle.digest(e,t))}let P=b({name:"sha2-256",code:18,encode:k("SHA-256")}),$=b({name:"sha2-512",code:19,encode:k("SHA-512")});function S(e){return Number.isInteger(e)&&e>=0&&e<256}function A(e){return null!=e&&"object"==typeof e}let T=Object.prototype,I=Object.prototype.toString;var E=r(85828);let j="Bu"+"f".repeat(2)+"er",D=globalThis?.[j]?.prototype instanceof Uint8Array&&"byteLength"in globalThis[j]?globalThis[j]:null,C="function"==typeof Uint8Array.fromBase64?function(e,t="base64"){return Uint8Array.fromBase64(e,{alphabet:t,lastChunkHandling:"loose"})}:null,R=D?function(e,t="base64"){let r=D.from(e,t);return L(e,r),new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}:null;function L(e,t){let r=e.endsWith("==")?2:+!!e.endsWith("="),s=Math.floor(3*(e.length-r)/4);if(t.length!==s)throw Error("Invalid base64 string");let n=t.length/3*4;if(e.length>n+(n%4==0?0:4-n%4))throw Error("Invalid base64 string");for(let t=Math.ceil(n);t<e.length-r;t++){let r=e.charCodeAt(t);if(!(r>=65&&r<=90)&&!(r>=97&&r<=122)&&!(r>=48&&r<=57)&&43!==r&&47!==r)throw Error("Invalid base64 string")}}let V="function"==typeof Uint8Array.prototype.toBase64?function(e,t="base64"){return e.toBase64({alphabet:t,omitPadding:!0})}:null,M=D?function(e,t="base64"){let r=(e instanceof D?e:D.from(e)).toString(t);return 61===r.charCodeAt(r.length-1)?61===r.charCodeAt(r.length-2)?r.slice(0,-2):r.slice(0,-1):r}:null,F=V??M??function(e,t="base64"){let r="base64url"===t?E.r0:E.K3;return r.encoder.encode(e).slice(r.prefix.length)},B=C??R??function(e,t="base64"){let r=e.endsWith("="),s="base64url"===t?r?E.GY:E.r0:r?E.x$:E.K3,n=s.decoder.decode(`${s.prefix}${e}`);return L(e,n),n},G=P.code;function O(e){return 1===e.version&&(85===e.code||113===e.code)&&e.multihash.code===G&&32===e.multihash.digest.byteLength}function N(e,t){return function(e){if(y.TO.asCID(e))return null!=e.bytes;try{if(!A(e)||0!==e.version&&1!==e.version||!S(e.code)||!A(e.multihash))return!1;let t=e.multihash;if(!S(t.code)||!(t.digest instanceof Uint8Array)||!(e.bytes instanceof Uint8Array)||e.bytes[0]!==e.version||e.bytes[1]!==e.code||e.bytes[2]!==t.code||e.bytes[3]!==t.digest.length||e.bytes.length!==4+t.digest.length||!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}(e.bytes.subarray(4),t.digest)||"function"!=typeof e.equals||!0!==e.equals(e))return!1;return!0}catch{return!1}}(e)&&function(e,t){switch(t?.flavor){case void 0:return!0;case"cbor":return 113===e.code&&O(e);case"dasl":return O(e);case"raw":return 1===e.version&&85===e.code;default:throw TypeError(`Unknown CID flavor: ${t?.flavor}`)}}(e,t)}$.code;let q={flavor:"raw"},Y=Number.isSafeInteger;function U(e,t){if(!(A(e)&&function(e){let t=Object.getPrototypeOf(e);return null===t||(t===T||null===Object.getPrototypeOf(t))&&"[object Object]"===I.call(e)}(e))||e?.$type!=="blob")return!1;let{mimeType:r,size:s,ref:n}=e;if("string"!=typeof r||!r.includes("/"))return!1;if(-1===s&&t?.strict===!1);else if(!Y(s)||s<0)return!1;if("object"!=typeof n||null===n)return!1;for(let t in e)if("$type"!==t&&"mimeType"!==t&&"ref"!==t&&"size"!==t)return!1;return!!(N(n,t?.strict===!1?void 0:q)?n:null)}function z(e,t){if(!e||!("$link"in e))return;for(let t in e)if("$link"!==t)return;let{$link:r}=e;if("string"==typeof r&&0!==r.length&&!(r.length>2048))try{var s=y.TO.parse(r);if(N(s,t))return s;throw Error(`Invalid ${t?.flavor?`${t.flavor} CID`:"CID"} "${s}"`)}catch{return}}let W=e=>(function e(t,r={strict:!1}){switch(typeof t){case"object":if(null===t)return null;if(Array.isArray(t)){let i;var s=t,n=r;for(let t=0;t<s.length;t++){let r=s[t],a=e(r,n);a!==r&&((i??=Array.from(s))[t]=a)}return i??s}return function(e,t){if(void 0!==e.$link){let r=z(e);
1if(r)return r;if(t.strict)throw TypeError("Invalid $link object")}else if(void 0!==e.$bytes){let r=function(e){if(e&&"$bytes"in e){for(let t in e)if("$bytes"!==t)return;if("string"==typeof e.$bytes)try{return B(e.$bytes)}catch{return}}}(e);if(r)return r;if(t.strict)throw TypeError("Invalid $bytes object")}else if(void 0!==e.$type&&t.strict){if("blob"===e.$type){let r=function(e,t){if("blob"!==e.$type)return;let r=e?.ref;if(r&&"object"==typeof r){if("$link"in r){let s=z(r);if(!s)return;let n={...e,ref:s};if(U(n,t))return n}if(U(e))return e}}(e,t);if(r)return r;throw TypeError("Invalid blob object")}else if("string"!=typeof e.$type)throw TypeError(`Invalid $type property (${typeof e.$type})`);else if(0===e.$type.length)throw TypeError("Empty $type property")}}(t,r)??function(t,r){let s;for(let[n,i]of Object.entries(t)){if("__proto__"===n)throw TypeError("Invalid key: __proto__");if(void 0===i){s??={...t},delete s[n];continue}let a=e(i,r);a!==i&&((s??={...t})[n]=a)}return s??t}(t,r);case"number":if(Number.isSafeInteger(t)||!1===r.strict)return t;throw TypeError(`Invalid non-integer number: ${t}`);case"boolean":case"string":return t;default:throw TypeError(`Invalid JSON value: ${typeof t}`)}})(e,{strict:!1}),H=e=>void 0===e||Number.isNaN(e)?e:function e(t){switch(typeof t){case"object":if(null===t)return t;if(Array.isArray(t)){let s;var r=t;for(let t=0;t<r.length;t++){let n=r[t],i=e(n);i!==n&&((s??=Array.from(r))[t]=i)}return s??r}if(N(t))return{$link:t.toString()};else{if(ArrayBuffer.isView(t))return{$bytes:F(t)};let r;var s=t;for(let[t,n]of Object.entries(s)){if("__proto__"===t)throw TypeError("Invalid key: __proto__");if(void 0===n){r??={...s},delete r[t];continue}let i=e(n);i!==n&&((r??={...s})[t]=i)}return r??s}case"boolean":case"string":case"number":return t;default:throw TypeError(`Invalid Lex value: ${typeof t}`)}}(e);async function X(e,t={}){let r,{maxRetries:s=3,retryable:n=()=>!0,getWaitMs:i=K}=t,a=0;for(;!r;)try{return await e()}catch(t){let e=i(a);a<s&&null!==e&&n(t)?(a+=1,0!==e&&await u(e)):r=t}throw r}function K(e,t=100,r=1e3){return function(e){var t;let r=.15*e;return e+(t=-r,Math.random()*(r-t)+t)}(Math.min(Math.pow(2,e)*t,r))}var _=r(98734),Z=r(44193);let Q=_.L5().transform((e,t)=>{let r=y.TO.asCID(e);return null==r?(t.addIssue({code:Z.eq.custom,message:"Not a valid CID"}),_.tm):r}),J=_.Ik({version:_.eu(1),roots:_.YO(Q)}),ee={cid:Q,carHeader:J,bytes:_.Nl(Uint8Array),string:_.Yj(),array:_.YO(_.L5()),map:_.g1(_.Yj(),_.L5()),unknown:_.L5()};function et(e,t=""){let r=[],s=e.split(",").map(e=>e?parseInt(e,36):0),n=0;for(let e=0;e<s.length;e++)e%2?r.push([n,n+s[e],t?parseInt(t[e>>1],36):0]):n=s[e];return r}function er(e,t,r=0,s=t.length-1){for(;r<=s;){let n=r+s>>>1,i=t[n];if(e<i[0])s=n-1;else{if(!(e>i[1]))return n;r=n+1}}return -1}ee.cid,ee.carHeader,ee.bytes,ee.string,ee.map,ee.unknown;let es=et(",9,a,,b,1,d,,e,h,3j,w,4p,,4t,,4u,,lc,33,w3,6,13l,18,14v,,14x,1,150,1,153,,16o,5,174,a,17g,,18r,k,19s,,1cm,6,1ct,,1cv,5,1d3,1,1d6,3,1e7,,1e9,,1f4,q,1ie,a,1kb,8,1kt,,1li,3,1ln,8,1lx,2,1m1,4,1nd,2,1ow,1,1p3,8,1qi,n,1r6,,1r7,v,1s3,,1tm,,1tn,,1to,,1tq,2,1tt,7,1u1,3,1u5,,1u6,1,1u9,6,1uq,1,1vl,,1vm,1,1x8,,1xa,,1xb,1,1xd,3,1xj,1,1xn,1,1xp,,1xz,,1ya,1,1z2,,1z5,1,1z7,,20s,,20u,2,20x,1,213,1,217,2,21d,,228,1,22d,,22p,1,22r,,24c,,24e,2,24h,4,24n,1,24p,,24r,1,24t,,25e,1,262,5,269,,26a,1,27w,,27y,1,280,,281,3,287,1,28b,1,28d,,28l,2,28y,1,29u,,2bi,,2bj,,2bk,,2bl,1,2bq,2,2bu,2,2bx,,2c7,,2dc,,2dd,2,2dg,,2f0,,2f2,2,2f5,3,2fa,2,2fe,3,2fp,1,2g2,1,2gx,,2gy,1,2ik,,2im,,2in,1,2ip,,2iq,,2ir,1,2iu,2,2iy,3,2j9,1,2jm,1,2k3,,2kg,1,2ki,1,2m3,1,2m6,,2m7,1,2m9,3,2me,2,2mi,2,2ml,,2mm,,2mv,,2n6,1,2o1,,2o2,1,2q2,,2q7,,2q8,1,2qa,2,2qe,,2qg,6,2qn,,2r6,1,2sx,,2sz,,2t0,6,2tj,7,2wh,,2wj,,2wk,8,2x4,6,2zc,1,305,,307,,309,,30e,1,31t,d,327,,328,4,32e,1,32l,a,32x,z,346,,371,3,375,,376,5,37d,1,37f,1,37h,1,386,1,388,1,38e,2,38x,3,39e,,39g,,39h,1,39p,,3a5,,3cw,2n,3fk,1z,3hk,2f,3tp,2,4k2,3,4ky,2,4lu,1,4mq,1,4ok,1,4om,,4on,6,4ou,7,4p2,,4p3,1,4p5,a,4pp,,4qz,2,4r2,,4r3,,4ud,1,4vd,,4yo,2,4yr,3,4yv,1,4yx,2,4z4,1,4z6,,4z7,5,4zd,2,55j,1,55l,1,55n,,579,,57a,,57b,,57c,6,57k,,57m,,57p,7,57x,5,583,9,58f,,59s,u,5c0,3,5c4,,5dg,9,5dq,3,5du,2,5ez,8,5fk,1,5fm,,5gh,,5gi,3,5gm,1,5go,5,5ie,,5if,,5ig,1,5ii,2,5il,,5im,,5in,4,5k4,7,5kc,7,5kk,1,5km,1,5ow,2,5p0,c,5pd,,5pe,6,5pp,,5pw,,5pz,,5q0,1,5vk,1r,6bv,,6bw,,6bx,,6by,1,6co,6,6d8,,6dl,,6e8,f,6hc,w,6jm,,6k9,,6ms,5,6nd,1,6xm,1,6y0,,70o,,72n,,73d,a,73s,2,79e,,7fu,1,7g6,,7gg,,7i3,3,7i8,5,7if,b,7is,35,7m8,39,7pk,a,7pw,,7py,,7q5,,7q9,,7qg,,7qr,1,7r8,,7rb,,7rg,,7ri,,7rn,2,7rr,,7s3,4,7th,2,7tt,,7u8,,7un,,850,1,8hx,2,8ij,1,8k0,,8k5,,8vj,2,8zj,,928,v,wvj,3,wvo,9,wwu,1,wz4,1,x6q,,x6u,,x6z,,x7n,1,x7p,1,x7r,,x7w,,xa8,1,xbo,f,xc4,1,xcw,h,xdr,,xeu,7,xfr,a,xg2,,xg3,,xgg,s,xhc,2,xhf,,xir,,xis,1,xiu,3,xiy,1,xj0,1,xj2,1,xj4,,xk5,,xm1,5,xm7,1,xm9,1,xmb,1,xmd,1,xmr,,xn0,,xn1,,xoc,,xps,,xpu,2,xpz,1,xq6,1,xq9,,xrf,,xrg,1,xri,1,xrp,,xrq,,xyb,1,xyd,,xye,1,xyg,,xyh,1,xyk,,xyl,,1e68,f,1e74,f,1edb,,1ehq,1,1ek0,b,1eyl,,1f4w,,1f92,4,1gjl,2,1gjp,1,1gjw,3,1gl4,2,1glb,,1gpx,1,1h5w,3,1h7t,4,1hgr,1,1hj0,3,1hl2,a,1hmq,3,1hq8,,1hq9,,1hqa,,1hrs,e,1htc,,1htf,1,1htr,2,1htu,,1hv4,2,1hv7,3,1hvb,1,1hvd,1,1hvh,,1hvm,,1hvx,,1hxc,2,1hyf,4,1hyk,,1hyl,7,
11hz9,1,1i0j,,1i0w,1,1i0y,,1i2b,2,1i2e,8,1i2n,,1i2o,,1i2q,1,1i2x,3,1i32,,1i33,,1i5o,2,1i5r,2,1i5u,1,1i5w,3,1i66,,1i69,,1ian,,1iao,2,1iar,7,1ibk,1,1ibm,1,1id7,1,1ida,,1idb,,1idc,,1idd,3,1idj,1,1idn,1,1idp,,1idz,,1iea,1,1iee,6,1ieo,4,1igo,,1igp,1,1igr,5,1igy,,1ih1,,1ih3,2,1ih6,,1ih8,1,1iha,2,1ihd,,1ihe,,1iht,1,1ik5,2,1ik8,7,1ikg,1,1iki,2,1ikl,,1ikm,,1ila,,1ink,,1inl,1,1inn,5,1int,,1inu,,1inv,1,1inx,,1iny,,1inz,1,1io1,,1io2,1,1iun,,1iuo,1,1iuq,3,1iuw,3,1iv0,1,1iv2,,1iv3,1,1ivw,1,1iy8,2,1iyb,7,1iyj,1,1iyl,,1iym,,1iyn,1,1j1n,,1j1o,,1j1p,,1j1q,1,1j1s,7,1j4t,,1j4u,,1j4v,,1j4y,3,1j52,,1j53,4,1jcc,2,1jcf,8,1jco,,1jcp,1,1jjk,,1jjl,4,1jjr,1,1jjv,3,1jjz,,1jk0,,1jk1,,1jk2,,1jk3,,1jo1,2,1jo4,3,1joa,1,1joc,3,1jog,,1jok,,1jpd,9,1jqr,5,1jqx,,1jqy,,1jqz,3,1jrb,,1jrl,5,1jrr,1,1jrt,2,1jt0,5,1jt6,c,1jtj,,1jtk,1,1k4v,,1k4w,6,1k54,5,1k5a,,1k5b,,1k7m,l,1k89,,1k8a,6,1k8h,,1k8i,1,1k8k,,1k8l,1,1kc1,5,1kca,,1kcc,1,1kcf,6,1kcm,,1kcn,,1kei,4,1keo,1,1ker,1,1ket,,1keu,,1kev,,1koj,1,1kol,1,1kow,1,1koy,,1koz,,1kqc,1,1kqe,4,1kqm,1,1kqo,2,1kre,,1ovk,f,1ow0,,1ow7,e,1xr2,b,1xre,2,1xrh,2,1zow,4,1zqo,6,206b,,206f,3,20jz,,20k1,1i,20lr,3,20o4,,20og,1,2ftp,1,2fts,3,2jgg,19,2jhs,m,2jxh,4,2jxp,5,2jxv,7,2jy3,7,2jyd,6,2jze,3,2k3m,2,2lmo,1i,2lob,1d,2lpx,,2lqc,,2lqz,4,2lr5,e,2mtc,6,2mtk,g,2mu3,6,2mub,1,2mue,4,2mxb,,2n1s,6,2nce,,2ne4,3,2nsc,3,2nzi,1,2ok0,6,2on8,6,2pz4,73,2q6l,2,2q7j,,2q98,5,2q9q,1,2qa6,,2qa9,9,2qb1,1k,2qcm,p,2qdd,e,2qe2,,2qen,,2qeq,8,2qf0,3,2qfd,c1,2qrf,4,2qrk,8t,2r0m,7d,2r9c,3j,2rg4,b,2rit,16,2rkc,3,2rm0,7,2rmi,5,2rns,7,2rou,29,2rrg,1a,2rss,9,2rt3,c8,2scg,sd,jny8,v,jnz4,2n,jo1s,3j,jo5c,6n,joc0,2rz","262122424333333393233393339333333333393393b3b3b3b3b333b33b3bb33333b3b3333333b3b33bb3333b33b3bb33333b3bbb333b333b33333b3b3b3b3333b3b33b3bb39333b33b33b3b3b333b333333b3b333333b33b3b3333b3335dc333333b3b3b33323333b3bb3b33b3b3b3333b3333b3b333bb3b33b3b3b3b3b333b333b3323e2244234444444444444444444444444444444444444444443333333333b3b3bb33333b353b3b3b3b333b3b333b333333b3bb3b3b3bb333232333333333333333b3b3333bb3b393933b3b33bb3b393b3b3b3333b33b33b3bbb33b333b3333bb3933b3b3b333b3b3b3b3b33b3b3b33b3b3b33b3b33b33b3b3b33bb39b9b3b33b3b33b9333b393b3b33b33b3b3b3333393b3b3b33b39bb3b332333b333dd3b33332333323333333333333333333333344444444a44444434444444444444423232"),en=et("1sl,10,1ug,7,1vc,7,1w5,j,1wq,6,1wy,,1x2,3,1y4,1,1y7,,1yo,1,239,j,23u,6,242,1,245,4,261,,26t,j,27e,6,27m,1,27p,4,28s,1,28v,,29d,,2dx,j,2ei,f,2fs,2,2l1,11"),ei=new Uint8Array(6080),ea=new Uint8Array(1536),eo=(()=>{let e=0;for(;;){let[t,r,s]=es[e];if(t>44031)break;if(e++,!(r<128)&&(!(t>12287)||!(r<40960)))for(let e=t;e<=r;e++){let t,r=0;e<=12287?(t=ei,r=e-128>>1):(t=ea,r=e-40960>>1),t[r]=1&e?15&t[r]|s<<4:240&t[r]|s}}return e})();function eu(e){if(e<128)return e>=32?0:10===e?6:13===e?1:2;if(e<=12287){let t=ei[e-128>>1];return 1&e?t>>4:15&t}if(e<40960)return e<12336?3*(e>=12330):e<12443?12336===e||12349===e?4:3*(e>=12441):4*(12951===e||12953===e);if(e<=44031){let t=ea[e-40960>>1];return 1&e?t>>4:15&t}if(e<=55203)return(e-44032)%28==0?7:8;if(e<=55295)return e<=55238?13*(e>=55216):12*(e>=55243);if(e<65024)return 3*(64286===e);let t=er(e,es,eo);return t<0?0:es[t][2]}let el="Segmenter"in Intl&&"function"==typeof Intl.Segmenter?new Intl.Segmenter:null,ec=el?function(e){let t=0;for(let r of el.segment(e))t++;return t}:null,ed=ec??function(e){let t=0;for(let r of function*(e){let t=e.codePointAt(0);if(null==t)return;let r=t<=65535?1:2,s=e.length,n=eu(t),i=0,a=0,o=!1,u=!1,l=!1,c=0,d=n,h=t;for(;r<s;){i=eu(t=e.codePointAt(r));let s=!0;1===n?s=6!==i:2===n||6===n||1===i||2===i||6===i?s=!0:3===i||14===i||11===i||9===n?s=!1:14===n&&4===i?s=!o:10===n&&10===i?s=a++%2==1:5===n?s=5!==i&&13!==i&&7!==i&&8!==i:(7===n||13===n)&&(13===i||12===i)||(8===n||12===n)&&12===i?s=!1:0===i&&u&&l&&er(t,en)>=0&&(s=!1),s?(yield{segment:e.slice(c,r),index:c,input:e,_hd:h,_catBegin:d,_catEnd:n},o=!1,a=0,c=r,d=i,h=t):14===i&&(3===n||4===n)?o=!0:t>=2325&&(u||0!==n||(u=er(h,en)>=0),l=!!u&&3===i&&(l||2381===t||2509===t||2637===t||2765===t||2893===t||3149===t||3405===t)),r+=t<=65535?1:2,n=i}c<s&&(yield{segment:e.slice(c),index:c,input:e,_hd:h,_catBegin:d,_catEnd:n})}(e))t+=1;return t},eh=(D?function(e){return D.byteLength(e,"utf8")}:null)??function(e){let t,r=e.length;for(let s=0;s<e.length;
1s+=1)(t=e.charCodeAt(s))<=127||(t<=2047?r+=1:(r+=2,t>=55296&&t<=56319&&(t=e.charCodeAt(s+1))>=56320&&t<=57343&&s++));return r};var ef=r(74853);let ep=ed,em=eh,eg=ef.fW,ey=e=>e$.safeParse(e).success,ev=e=>eb(e,{id:"#atproto_pds",type:"AtprotoPersonalDataServer"}),eb=(e,t)=>{let r=function(e,t,r){let s=e[t];if(s)for(let t=0;t<s.length;t++){let n=s[t],i=n.id;if("#"===i[0]?i===r:i.length===e.id.length+r.length&&"#"===i[e.id.length]&&i.endsWith(r)&&i.startsWith(e.id))return n}}(e,"service",t.id);if(r&&(!t.type||r.type===t.type)&&"string"==typeof r.serviceEndpoint)return ew(r.serviceEndpoint)},ew=e=>{if((e.startsWith("http://")||e.startsWith("https://"))&&ex(e))return e},ex=URL.canParse??(e=>{try{return new URL(e),!0}catch{return!1}}),ek=_.Ik({id:_.Yj(),type:_.Yj(),controller:_.Yj(),publicKeyJwk:_.g1(_.Yj(),_.L5()).optional(),publicKeyMultibase:_.Yj().optional()}),eP=_.Ik({id:_.Yj(),type:_.Yj(),serviceEndpoint:_.KC([_.Yj(),_.g1(_.L5())])}),e$=_.Ik({"@context":_.KC([_.eu("https://www.w3.org/ns/did/v1"),_.YO(_.Yj().url())]).optional(),id:_.Yj(),alsoKnownAs:_.YO(_.Yj()).optional(),verificationMethod:_.YO(ek).optional(),authentication:_.YO(_.KC([_.Yj(),ek])).optional(),service:_.YO(eP).optional()})},572:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("BlockedActor"===e.error)return new n(e);if("BlockedByActor"===e.error)return new i(e)}return e}},1029:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},1052:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},1561:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"SetNotFound"===e.error?new n(e):e}},1643:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},1740:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},1799:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidSwap"===e.error?new n(e):e}},2697:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},2769:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},3488:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},3504:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},3561:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},3656:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},3666:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},4448:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadQueryString"===e.error?new n(e):e}},4906:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},4935:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},5138:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},5236:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},5397:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("InvalidDid"===e.error)return new n(e);if("InvalidContacts"===e.error)return new i(e);if("TooManyContacts"===e.error)return new a(e);if("InvalidToken"===e.error)return new o(e);if("InternalError"===e.error)return new u(e)}return e}},5497:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},5753:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadExpiration"===e.error?new n(e):e}},5886:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},5908:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},5962:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RecordNotFound"===e.error?new n(e):e}},6079:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},6245:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},6471:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("InvalidEmail"===e.error)return new n(e);if("DidTooLong"===e.error)return new i(e);if("InvalidInitiation"===e.error)return new a(e)}return e}},6500:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});let s=e=>e},6620:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},6896:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},6920:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},7093:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},7275:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},7278:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e)}return e}},7876:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},7935:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},7984:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},8376:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},8453:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});var s=r(16105);class n{constructor(){this.subscriptions=[]}add(e){return(0,s.Kq)(this.subscriptions,e),()=>(0,s.Ai)(this.subscriptions,e)}notify(e,t,r){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,r);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},8585:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},8668:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},8708:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},8786:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},9073:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},9096:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},9150:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});let s=e=>Math.round(1e5*e)/1e5},9264:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},9450:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RepoNotFound"===e.error?new n(e):e}},9606:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},10194:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},10603:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},10705:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},11276:(e,t,r)=>{"use strict";r.d(t,{yl:()=>s,k$:()=>c,hE:()=>v,T2:()=>y,k:()=>a});var s,n=r(41267),i=r(98734);let a=i.Ik({error:i.Yj().optional(),message:i.Yj().optional()});function o(e){if(e in s)return e;if(e>=100&&e<200)return s.XRPCNotSupported;if(e>=200&&e<300)return s.Success;if(e>=300&&e<400)return s.XRPCNotSupported;if(e>=400&&e<500)return s.InvalidRequest;else return s.InternalServerError}!function(e){e[e.Unknown=1]="Unknown",e[e.InvalidResponse=2]="InvalidResponse",e[e.Success=200]="Success",e[e.InvalidRequest=400]="InvalidRequest",e[e.AuthenticationRequired=401]="AuthenticationRequired",e[e.Forbidden=403]="Forbidden",e[e.XRPCNotSupported=404]="XRPCNotSupported",e[e.NotAcceptable=406]="NotAcceptable",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RateLimitExceeded=429]="RateLimitExceeded",e[e.InternalServerError=500]="InternalServerError",e[e.MethodNotImplemented=501]="MethodNotImplemented",e[e.UpstreamFailure=502]="UpstreamFailure",e[e.NotEnoughResources=503]="NotEnoughResources",e[e.UpstreamTimeout=504]="UpstreamTimeout"}(s||(s={}));let u={[s.Unknown]:"Unknown",[s.InvalidResponse]:"Invalid Response",[s.Success]:"Success",[s.InvalidRequest]:"Invalid Request",[s.AuthenticationRequired]:"Authentication Required",[s.Forbidden]:"Forbidden",[s.XRPCNotSupported]:"XRPC Not Supported",[s.NotAcceptable]:"Not Acceptable",[s.PayloadTooLarge]:"Payload Too Large",[s.UnsupportedMediaType]:"Unsupported Media Type",[s.RateLimitExceeded]:"Rate Limit Exceeded",[s.InternalServerError]:"Internal Server Error",[s.MethodNotImplemented]:"Method Not Implemented",[s.UpstreamFailure]:"Upstream Failure",[s.NotEnoughResources]:"Not Enough Resources",[s.UpstreamTimeout]:"Upstream Timeout"};class l{constructor(e,t){this.data=e,this.headers=t,this.success=!0}}
1class c extends Error{constructor(e,t=function(e){return s[o(e)]}(e),r,n,i){super(r||t||u[o(e)],i),this.error=t,this.headers=n,this.success=!1,this.status=o(e);let a=i?.cause;void 0===this.cause&&void 0!==a&&(this.cause=a)}static from(e,t){if(e instanceof c)return e;let r=e instanceof Error?e:void 0,n=e instanceof Response?e:e?.response instanceof Response?e.response:void 0,i=r?.statusCode??r?.status??n?.status,a="number"==typeof i?o(i):t??s.Unknown;return new c(a,void 0,r?.message??String(e),n?Object.fromEntries(n.headers.entries()):void 0,{cause:e})}}class d extends c{constructor(e,t,r){super(s.InvalidResponse,u[s.InvalidResponse],"The server gave an invalid response and may be out of date.",void 0,{cause:t}),this.lexiconNsid=e,this.validationError=t,this.responseBody=r}}let h=globalThis.ReadableStream||class{constructor(){throw Error("ReadableStream is not supported in this environment")}};function f(e,t){if("string"===e||"unknown"===e)return String(t);if("float"===e)return String(Number(t));if("integer"===e)return String(0|Number(t));if("boolean"===e)return t?"true":"false";if("datetime"===e)return t instanceof Date?t.toISOString():String(t);throw Error(`Unsupported query param type: ${e}`)}function p(e,t){let r;if(!t)return e;for(let[s,n]of t){if(void 0===n||(r??=new Headers(e)).has(s))continue;let t="function"==typeof n?n():n;if("string"==typeof t)r.set(s,t);else if(null===t)r.delete(s);else throw TypeError(`Invalid "${s}" header value: ${typeof t}`)}return r??e}function m(e){if(null==e||"object"!=typeof e)return!1;if("function"==typeof Blob&&e instanceof Blob)return!0;let t=e[Symbol.toStringTag];return("Blob"===t||"File"===t)&&"stream"in e&&"function"==typeof e.stream}function g(e){return null!=e&&"object"==typeof e&&(Symbol.iterator in e||Symbol.asyncIterator in e)}function y(e){if("function"==typeof e)return e;if("object"==typeof e&&"fetchHandler"in e)return e.fetchHandler.bind(e);let{service:t,headers:r,fetch:s=globalThis.fetch}="string"==typeof e||e instanceof URL?{service:e}:e;if("function"!=typeof s)throw TypeError("XrpcDispatcher requires fetch() to be available in your environment.");let n=null!=r?Object.entries(r):void 0;return async function(e,r){let i=new URL(e,"function"==typeof t?t():t),a=p(r.headers,n);return s(i,{...r,headers:a})}}class v{constructor(e,t){this.headers=new Map,this.fetchHandler=y(e),this.lex=t instanceof n.yC?t:new n.yC(t)}setHeader(e,t){this.headers.set(e.toLowerCase(),t)}unsetHeader(e){this.headers.delete(e.toLowerCase())}clearHeaders(){this.headers.clear()}async call(e,t,r,i){let u=this.lex.getDefOrThrow(e);if(!u||"query"!==u.type&&"procedure"!==u.type)throw TypeError(`Invalid lexicon: ${e}. Must be a query or procedure.`);let y=function(e,t,r){let s=`/xrpc/${encodeURIComponent(e)}`;if(!r)return s;let n=[];for(let[e,s]of Object.entries(r)){let r=t.parameters?.properties?.[e];if(!r)throw Error(`Invalid query parameter: ${e}`);if(void 0!==s)if("array"===r.type)for(let t of Array.isArray(s)?s:[s])n.push([e,f(r.items.type,t)]);else n.push([e,f(r.type,s)])}return n.length?`${s}?${new URLSearchParams(n).toString()}`:s}(e,u,t),v="procedure"===u.type?"post":"get",b=function(e,t,r){let n=new Headers;if(r?.headers)for(let e in r.headers){if(n.has(e))throw TypeError(`Duplicate header: ${e}`);let t=r.headers[e];null!=t&&n.set(e,t)}if("procedure"===e.type){if(r?.encoding)n.set("content-type",r.encoding);else if(!n.has("content-type")&&void 0!==t)if(t instanceof ArrayBuffer||t instanceof h||ArrayBuffer.isView(t))n.set("content-type","application/octet-stream");else if(t instanceof FormData)n.set("content-type","multipart/form-data");else if(t instanceof URLSearchParams)n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");else if(m(t))n.set("content-type",t.type||"application/octet-stream");else if("string"==typeof t)n.set("content-type","text/plain;charset=UTF-8");else if(g(t))n.set("content-type","application/octet-stream");else if("boolean"==typeof t||"number"==typeof t||"string"==typeof t||"object"==typeof t)n.set("content-type","application/json");else throw new c(s.InvalidRequest,`Unsupported data type: ${typeof t}`)}return n}(u,r,i),w=function(e,t){let r=e.get("content-type");if(!r)return;if(void 0===t)throw new c(s.InvalidRequest,"A request body is expected but none was provided");
1if(function(e){switch(typeof e){case"string":return!0;case"object":return e instanceof ArrayBuffer||e instanceof FormData||e instanceof URLSearchParams||e instanceof h||ArrayBuffer.isView(e)||m(e);default:return!1}}(t))return t instanceof FormData&&"multipart/form-data"===r&&e.delete("content-type"),t;if(g(t)){var i=t;if("from"in h&&"function"==typeof h.from)return h.from(i);throw TypeError("ReadableStream.from() is not supported in this environment. It is required to support using iterables as the request body. Consider using a polyfill or re-write your code to use a different body type.")}if(r.startsWith("text/"))return new TextEncoder().encode(String(t));if(r.startsWith("application/json")){let e=(0,n.T)(t);if(void 0===e)throw new c(s.InvalidRequest,"Failed to encode request body as JSON");return new TextEncoder().encode(e)}let a=t&&"object"==typeof t?t.constructor!==Object&&"function"==typeof t.constructor&&"string"==typeof t.constructor?.name?t.constructor.name:"object":typeof t;throw new c(s.InvalidRequest,`Unable to encode ${a} as ${r} data`)}(b,r),x={method:v,headers:p(b,this.headers),body:w,duplex:"half",redirect:"follow",signal:i?.signal};try{let t=await this.fetchHandler.call(void 0,y,x),r=t.status,i=Object.fromEntries(t.headers.entries()),u=await t.arrayBuffer(),h=function(e,t){try{if(e){if(e.includes("application/json")){let e=new TextDecoder().decode(t);return(0,n.O4)(e)}if(e.startsWith("text/"))return new TextDecoder().decode(t)}if(t instanceof ArrayBuffer)return new Uint8Array(t);return t}catch(e){throw new c(s.InvalidResponse,void 0,`Failed to parse response body: ${String(e)}`,void 0,{cause:e})}}(t.headers.get("content-type"),u),f=o(r);if(f!==s.Success){let{error:e,message:t}=h&&a.safeParse(h).success?h:{};throw new c(f,e,t,i)}try{this.lex.assertValidXrpcOutput(e,h)}catch(t){if(t instanceof n.yI)throw new d(e,t,h);throw t}return new l(h,i)}catch(e){throw c.from(e)}}}class b{constructor(){this.lex=new n.yC}get fetch(){throw Error("Client.fetch is no longer supported. Use an XrpcClient instead.")}set fetch(e){throw Error("Client.fetch is no longer supported. Use an XrpcClient instead.")}async call(e,t,r,s,n){return this.service(e).call(t,r,s,n)}service(e){return new w(this,e)}addLexicon(e){this.lex.add(e)}addLexicons(e){for(let t of e)this.addLexicon(t)}removeLexicon(e){this.lex.remove(e)}}class w extends v{constructor(e,t){super(async(e,t)=>{let r=p(t.headers,Object.entries(this.headers));return fetch(new URL(e,this.uri),{...t,headers:r})},e.lex),this.baseClient=e,this.uri="string"==typeof t?new URL(t):t}}new b},11321:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidToken"===e.error)return new n(e);if("ExpiredToken"===e.error)return new i(e)}return e}},11428:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"OutOfRange"===e.error?new n(e):e}},12156:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},12271:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},12562:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},12699:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},12773:(e,t,r)=>{"use strict";r.d(t,{D4:()=>a,aI:()=>o,np:()=>u,vt:()=>i});var s=r(70663),n=r(37702);function i(e,t){let r=t.byteLength,s=n.OY(e),i=s+n.OY(r),a=new Uint8Array(i+r);return n.s_(e,a,0),n.s_(r,a,s),a.set(t,i),new u(e,r,t,a)}function a(e){let t=(0,s.au)(e),[r,i]=n.D4(t),[a,o]=n.D4(t.subarray(i)),l=t.subarray(i+o);if(l.byteLength!==a)throw Error("Incorrect length");return new u(r,a,l,t)}function o(e,t){return e===t||e.code===t.code&&e.size===t.size&&t.bytes instanceof Uint8Array&&(0,s.aI)(e.bytes,t.bytes)}class u{code;size;digest;bytes;
1constructor(e,t,r,s){this.code=e,this.size=t,this.digest=r,this.bytes=s}}},12824:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},12850:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"AccountTakedown"===e.error?new n(e):e}},13334:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},13613:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"MemberNotFound"===e.error?new n(e):e}},13622:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},14051:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},14708:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("AccountNotFound"===e.error)return new n(e);if("ExpiredToken"===e.error)return new i(e);if("InvalidToken"===e.error)return new a(e);if("InvalidEmail"===e.error)return new o(e)}return e}},15176:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidDid"===e.error)return new n(e);if("InternalError"===e.error)return new i(e)}return e}},15224:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},15325:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("AccountTakedown"===e.error)return new n(e);if("InvalidToken"===e.error)return new i(e);if("ExpiredToken"===e.error)return new a(e)}return e}},15394:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},15414:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},15605:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},15703:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},16105:(e,t,r)=>{"use strict";function s(e,t){-1===e.indexOf(t)&&e.push(t)}function n(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{Ai:()=>n,Kq:()=>s})},16706:(e,t,r)=>{"use strict";r.d(t,{G:()=>c});var s=r(40042),n=r(6500),i=r(23656),a=r(78041),o=r(91225),u=r(48895),l=r(45130);function c(e,t,{clamp:r=!0,ease:d,mixer:h}={}){let f=e.length;if((0,a.V)(f===t.length,"Both input and output ranges must be the same length","range-length"),1===f)return()=>t[0];if(2===f&&t[0]===t[1])return()=>t[1];let p=e[0]===e[1];e[0]>e[f-1]&&(e=[...e].reverse(),t=[...t].reverse());let m=function(e,t,r){let a=[],o=r||s.W.mix||l.j,u=e.length-1;for(let r=0;r<u;r++){let s=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||n.l:t;s=(0,i.F)(e,s)}a.push(s)}return a}(t,d,h),g=m.length,y=r=>{if(p&&r<e[0])return t[0];let s=0;if(g>1)for(;s<e.length-2&&!(r<e[s+1]);s++);let n=(0,o.q)(e[s],e[s+1],r);return m[s](n)};return r?t=>y((0,u.q)(e[0],e[f-1],t)):y}},16815:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});let s=e=>t=>1-e(1-t)},17084:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},17132:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},17670:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},17673:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},17978:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},18e3:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e);if("ConvoLockedByModeration"===e.error)return new a(e)}return e}},18157:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},18958:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"SetNotFound"===e.error?new n(e):e}},19049:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},19128:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},19243:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"MemberAlreadyExists"===e.error?new n(e):e}},19477:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},19839:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidSwap"===e.error?new n(e):e}},20338:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},20455:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},20572:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},20701:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},21015:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},21092:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"HostNotFound"===e.error?new n(e):e}},21133:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},21391:(e,t,r)=>{"use strict";r.d(t,{j4:()=>n,pG:()=>a,rm:()=>u});let s=e=>t=>"string"==typeof t&&t.startsWith(e),n=s("--"),i=s("var(--"),a=e=>!!i(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function u(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}},21622:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},21760:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e)}return e}},21985:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},21995:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},22039:(e,t,r)=>{"use strict";r.d(t,{OQ:()=>l,bt:()=>o});var s=r(8453),n=r(45242),i=r(27424),a=r(73934);let o={current:void 0};class u{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=i.k.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=i.k.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new s.v);let r=this.events[e].add(t);return"change"===e?()=>{r(),a.Gt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return o.current&&o.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=i.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,n.f)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function l(e,t){return new u(e,t)}},22049:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},22306:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},22442:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},22821:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},23319:(e,t,r)=>{"use strict";r.d(t,{G:()=>i,z:()=>n});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidSwap"===e.error?new n(e):e}},23656:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});let s=(...e)=>e.reduce((e,t)=>r=>t(e(r)))},23841:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},23919:(e,t,r)=>{"use strict";r.d(t,{$:()=>i,q:()=>a});var s=r(24531);let n=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,i=(e,t)=>r=>!!("string"==typeof r&&n.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),a=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,a,o,u]=n.match(s.S);return{[e]:parseFloat(i),[t]:parseFloat(a),[r]:parseFloat(o),alpha:void 0!==u?parseFloat(u):1}}},23932:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"DuplicateCreate"===e.error?new n(e):e}},24143:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"AccountTakedown"===e.error?new n(e):e}},24180:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},24182:(e,t,r)=>{"use strict";r.r(t),r.d(t,{isAdultContentPref:()=>N,isBskyAppProgressGuide:()=>eV,isBskyAppStatePref:()=>eC,isContentLabelPref:()=>U,isDeclaredAgePref:()=>ei,isFeedViewPref:()=>eu,isHiddenPostsPref:()=>eP,isInterestsPref:()=>ep,isKnownFollowers:()=>C,isLabelerPrefItem:()=>eE,isLabelersPref:()=>eA,isLiveEventPreferences:()=>eY,isMutedWord:()=>ey,isMutedWordsPref:()=>ew,isNux:()=>eF,isPersonalDetailsPref:()=>er,isPostInteractionSettingsPref:()=>eW,isProfileAssociated:()=>y,isProfileAssociatedActivitySubscription:()=>A,isProfileAssociatedChat:()=>w,isProfileAssociatedGerm:()=>P,isProfileView:()=>d,isProfileViewBasic:()=>u,isProfileViewDetailed:()=>p,isSavedFeed:()=>H,isSavedFeedsPref:()=>J,isSavedFeedsPrefV2:()=>_,isStatusView:()=>eK,isThreadViewPref:()=>ed,isVerificationPrefs:()=>eO,isVerificationState:()=>V,isVerificationView:()=>B,isViewerState:()=>E,validateAdultContentPref:()=>q,validateBskyAppProgressGuide:()=>eM,validateBskyAppStatePref:()=>eR,validateContentLabelPref:()=>z,validateDeclaredAgePref:()=>ea,validateFeedViewPref:()=>el,validateHiddenPostsPref:()=>e$,validateInterestsPref:()=>em,validateKnownFollowers:()=>R,validateLabelerPrefItem:()=>ej,validateLabelersPref:()=>eT,validateLiveEventPreferences:()=>eU,validateMutedWord:()=>ev,validateMutedWordsPref:()=>ex,validateNux:()=>eB,validatePersonalDetailsPref:()=>es,validatePostInteractionSettingsPref:()=>eH,validateProfileAssociated:()=>v,validateProfileAssociatedActivitySubscription:()=>T,validateProfileAssociatedChat:()=>x,validateProfileAssociatedGerm:()=>$,validateProfileView:()=>h,validateProfileViewBasic:()=>l,validateProfileViewDetailed:()=>m,validateSavedFeed:()=>X,validateSavedFeedsPref:()=>ee,validateSavedFeedsPrefV2:()=>Z,validateStatusView:()=>e_,validateThreadViewPref:()=>eh,validateVerificationPrefs:()=>eN,validateVerificationState:()=>M,validateVerificationView:()=>G,validateViewerState:()=>j}),r(41267),r(55824);var s=r(36835);let n=r(44526).dw,i=s.tf,a="app.bsky.actor.defs",o="profileViewBasic";function u(e){return n(e,a,o)}function l(e){return i(e,a,o)}let c="profileView";function d(e){return n(e,a,c)}function h(e){return i(e,a,c)}let f="profileViewDetailed";function p(e){return n(e,a,f)}function m(e){return i(e,a,f)}let g="profileAssociated";function y(e){return n(e,a,g)}function v(e){return i(e,a,g)}let b="profileAssociatedChat";function w(e){return n(e,a,b)}function x(e){return i(e,a,b)}let k="profileAssociatedGerm";function P(e){return n(e,a,k)}function $(e){return i(e,a,k)}let S="profileAssociatedActivitySubscription";function A(e){return n(e,a,S)}function T(e){return i(e,a,S)}let I="viewerState";function E(e){return n(e,a,I)}function j(e){return i(e,a,I)}let D="knownFollowers";function C(e){return n(e,a,D)}function R(e){return i(e,a,D)}let L="verificationState";function V(e){return n(e,a,L)}function M(e){return i(e,a,L)}let F="verificationView";function B(e){return n(e,a,F)}function G(e){return i(e,a,F)}let O="adultContentPref";function N(e){return n(e,a,O)}function q(e){return i(e,a,O)}let Y="contentLabelPref";function U(e){return n(e,a,Y)}function z(e){return i(e,a,Y)}let W="savedFeed";function H(e){return n(e,a,W)}function X(e){return i(e,a,W)}let K="savedFeedsPrefV2";function _(e){return n(e,a,K)}function Z(e){return i(e,a,K)}let Q="savedFeedsPref";function J(e){return n(e,a,Q)}function ee(e){return i(e,a,Q)}let et="personalDetailsPref";function er(e){return n(e,a,et)}function es(e){return i(e,a,et)}let en="declaredAgePref";function ei(e){return n(e,a,en)}function ea(e){return i(e,a,en)}let eo="feedViewPref";function eu(e){return n(e,a,eo)}function el(e){return i(e,a,eo)}let ec="threadViewPref";function ed(e){return n(e,a,ec)}function eh(e){return i(e,a,ec)}let ef="interestsPref";function ep(e){return n(e,a,ef)}function em(e){return i(e,a,ef)}let eg="mutedWord";function ey(e){return n(e,a,eg)}function ev(e){return i(e,a,eg)}let eb="mutedWordsPref";function ew(e){return n(e,a,eb)}function ex(e){return i(e,a,eb)}let ek="hiddenPostsPref";function eP(e){return n(e,a,ek)}function e$(e){return i(e,a,ek)}let eS="labelersPref";function eA(e){return n(e,a,eS)}function eT(e){return i(e,a,eS)}let eI="labelerPrefItem";function eE(e){return n(e,a,eI)}function ej(e){return i(e,a,eI)}let eD="bskyAppStatePref";function eC(e){return n(e,a,eD)}function eR(e){return i(e,a,eD)}let eL="bskyAppProgressGuide";function eV(e){return n(e,a,eL)}function eM(e){return i(e,a,eL)}function eF(e){return n(e,a,"nux")}function eB(e){return i(e,a,"nux")}let eG="verificationPrefs";function eO(e){return n(e,a,eG)}function eN(e){return i(e,a,eG)}let eq="liveEventPreferences";function eY(e){return n(e,a,eq)}function eU(e){return i(e,a,eq)}let ez="postInteractionSettingsPref";function eW(e){return n(e,a,ez)}function eH(e){return i(e,a,ez)}let eX="statusView";function eK(e){return n(e,a,eX)}function e_(e){return i(e,a,eX)}},24233:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("RecordNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new i(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new o(e);if("RepoDeactivated"===e.error)return new u(e)}return e}},24531:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});let s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},24673:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},24729:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},24888:(e,t,r)=>{"use strict";r.d(t,{V:()=>c,f:()=>h});var s=r(55389);let n=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var i=r(24531),a=r(9150);let o="number",u="color",l=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],a=0,c=t.replace(l,e=>(s.y.test(e)?(n.color.push(a),i.push(u),r.push(s.y.parse(e))):e.startsWith("var(")?(n.var.push(a),i.push("var"),r.push(e)):(n.number.push(a),i.push(o),r.push(parseFloat(e))),++a,"${}")).split("${}");return{values:r,split:c,indexes:n,types:i}}function d({split:e,types:t}){let r=e.length;return n=>{let i="";for(let l=0;l<r;l++)if(i+=e[l],void 0!==n[l]){let e=t[l];e===o?i+=(0,a.a)(n[l]):e===u?i+=s.y.transform(n[l]):i+=n[l]}return i}}let h={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(i.S)?.length||0)+(e.match(n)?.length||0)>0},parse:function(e){return c(e).values},createTransformer:function(e){return d(c(e))},getAnimatableNone:function(e){let t=c(e);return d(t)(t.values.map((e,r)=>{var n;let i;return n=t.split[r],"number"==typeof e?n?.trim().endsWith("/")?e:0:"number"==typeof(i=e)?0:s.y.test(i)?s.y.getAnimatableNone(i):i}))}}},25180:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},25384:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},25494:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},25561:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},25612:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new i(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new o(e)}return e}},25629:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},26104:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},26895:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},27206:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("DidNotFound"===e.error)return new n(e);if("DidDeactivated"===e.error)return new i(e)}return e}},27275:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e)}return e}},27290:(e,t,r)=>{"use strict";r.d(t,{X:()=>n,f:()=>s});let s=e=>1e3*e,n=e=>e/1e3},27294:(e,t,r)=>{"use strict";r.d(t,{G7:()=>c});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class l extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function c(e){if(e instanceof s.k$){if("ConvoLocked"===e.error)return new n(e);if("FollowRequired"===e.error)return new i(e);if("InvalidCode"===e.error)return new a(e);if("LinkDisabled"===e.error)return new o(e);if("MemberLimitReached"===e.error)return new u(e);if("UserKicked"===e.error)return new l(e)}return e}},27424:(e,t,r)=>{"use strict";let s;r.d(t,{k:()=>o});var n=r(40042),i=r(73934);function a(){s=void 0}let o={now:()=>(void 0===s&&o.set(i.uv.isProcessing||n.W.useManualTiming?i.uv.timestamp:performance.now()),s),set:e=>{s=e,queueMicrotask(a)}}},27900:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},28264:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},28501:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},28723:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"ConflictingQueue"===e.error?new n(e):e}},28764:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},28947:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"DuplicateTemplateName"===e.error?new n(e):e}},29046:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},29258:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},29662:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},29802:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},29924:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},29996:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},30119:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"UnknownList"===e.error?new n(e):e}},30389:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},31352:(e,t,r)=>{"use strict";r.d(t,{G7:()=>d});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class l extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class c extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function d(e){if(e instanceof s.k$){if("AccountSuspended"===e.error)return new n(e);if("BlockedActor"===e.error)return new i(e);if("BlockedSubject"===e.error)return new a(e);if("NewAccountCannotCreateGroup"===e.error)return new o(e);if("NotFollowedBySender"===e.error)return new u(e);
1if("RecipientNotFound"===e.error)return new l(e);if("UserForbidsGroups"===e.error)return new c(e)}return e}},31389:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},31463:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},31518:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},31552:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidAssignment"===e.error?new n(e):e}},31566:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},31739:(e,t,r)=>{"use strict";r.d(t,{B:()=>u});var s=r(48895),n=r(37822),i=r(9150),a=r(23919);let o={...n.ai,transform:e=>Math.round((0,s.q)(0,255,e))},u={test:(0,a.$)("rgb","red"),parse:(0,a.q)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:s=1})=>"rgba("+o.transform(e)+", "+o.transform(t)+", "+o.transform(r)+", "+(0,i.a)(n.X4.transform(s))+")"}},32080:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var s=r(58605);let n=e=>e>=1?1:(e*=2)<1?.5*(0,s.dg)(e):.5*(2-Math.pow(2,-10*(e-1)))},32193:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},32335:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},32817:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},33100:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},33182:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});let s=e=>!!(e&&e.getVelocity)},33604:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},33678:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},33754:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});let s=(e,t,r=10)=>{let s="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`}},33855:(e,t,r)=>{"use strict";r.d(t,{X:()=>n});let s=e=>null!==e;function n(e,{repeat:t,repeatType:r="loop"},i,a=1){let o=e.filter(s),u=a<0||t&&"loop"!==r&&t%2==1?0:o.length-1;return u&&void 0!==i?i:o[u]}},34307:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},34324:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});let s=e=>Array.isArray(e)&&"number"==typeof e[0]},34553:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},34622:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},35614:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ReportNotFound"===e.error)return new n(e);if("InvalidStateTransition"===e.error)return new i(e);if("AlreadyInTargetState"===e.error)return new a(e)}return e}},35900:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"HostBanned"===e.error?new n(e):e}},36262:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var s=r(6500);let n=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function i(e,t,r,i){return e===t&&r===i?s.l:s=>0===s||1===s?s:n(function(e,t,r,s,i){let a,o,u=0;do(a=n(o=t+(r-t)/2,s,i)-e)>0?r=o:t=o;while(Math.abs(a)>1e-7&&++u<12);return o}(s,0,1,e,r),t,i)}},36394:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},36804:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("RateLimitExceeded"===e.error)return new n(e);if("InvalidDid"===e.error)return new i(e);if("InvalidPhone"===e.error)return new a(e);if("InvalidCode"===e.error)return new o(e);if("InternalError"===e.error)return new u(e)}return e}},37702:(e,t,r)=>{"use strict";r.d(t,{D4:()=>a,s_:()=>o,OY:()=>u});function s(e,t,r){t=t||[];for(var n=r=r||0;e>=0x80000000;)t[r++]=255&e|128,e/=128;for(;-128&e;)t[r++]=255&e|128,e>>>=7;return t[r]=0|e,s.bytes=r-n+1,t}function n(e,t){var r,s=0,t=t||0,i=0,a=t,o=e.length;do{if(a>=o)throw n.bytes=0,RangeError("Could not decode varint");r=e[a++],s+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return n.bytes=a-t,s}let i={encode:s,decode:n,encodingLength:function(e){return e<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:e<0x800000000?5:e<0x40000000000?6:e<0x2000000000000?7:e<0x100000000000000?8:e<0x8000000000000000?9:10}};function a(e,t=0){return[i.decode(e,t),i.decode.bytes]}function o(e,t,r=0){return i.encode(e,t,r),t}function u(e){return i.encodingLength(e)}},37822:(e,t,r)=>{"use strict";r.d(t,{X4:()=>i,ai:()=>n,hs:()=>a});var s=r(48895);let n={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},i={...n,transform:e=>(0,s.q)(0,1,e)},a={...n,default:1}},38016:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("HandleNotFound"===e.error)return new n(e);if("DidNotFound"===e.error)return new i(e);if("DidDeactivated"===e.error)return new a(e)}return e}},38075:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},38548:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},38563:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},38830:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},38857:(e,t,r)=>{"use strict";r.d(t,{Y:()=>s,t:()=>n});let s=2e4;function n(e){let t=0,r=e.next(t);for(;!r.done&&t<s;)t+=50,r=e.next(t);return t>=s?1/0:t}},39026:(e,t,r)=>{"use strict";let s,n;r.d(t,{P:()=>nk});let i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],a=new Set([...i,"pathRotation"]);var o=r(55389),u=r(24888),l=r(24531);let c=new Set(["brightness","contrast","saturate","opacity"]);function d(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=r.match(l.S)||[];if(!s)return e;let n=r.replace(s,""),i=+!!c.has(t);return s!==r&&(i*=100),t+"("+i+n+")"}let h=/\b([a-z-]*)\(.*?\)/gu,f={...u.f,getAnimatableNone:e=>{let t=e.match(h);return t?t.map(d).join(" "):e}},p={...u.f,getAnimatableNone:e=>{let t=u.f.parse(e);return u.f.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}};var m=r(37822);let g={...m.ai,transform:Math.round};var y=r(92419);let v={rotate:y.uj,pathRotation:y.uj,rotateX:y.uj,rotateY:y.uj,rotateZ:y.uj,scale:m.hs,scaleX:m.hs,scaleY:m.hs,scaleZ:m.hs,skew:y.uj,skewX:y.uj,skewY:y.uj,distance:y.px,translateX:y.px,translateY:y.px,translateZ:y.px,x:y.px,y:y.px,z:y.px,perspective:y.px,transformPerspective:y.px,opacity:m.X4,originX:y.gQ,originY:y.gQ,originZ:y.px},b={borderWidth:y.px,borderTopWidth:y.px,borderRightWidth:y.px,borderBottomWidth:y.px,borderLeftWidth:y.px,borderRadius:y.px,borderTopLeftRadius:y.px,borderTopRightRadius:y.px,borderBottomRightRadius:y.px,borderBottomLeftRadius:y.px,width:y.px,maxWidth:y.px,height:y.px,maxHeight:y.px,top:y.px,right:y.px,bottom:y.px,left:y.px,inset:y.px,insetBlock:y.px,insetBlockStart:y.px,insetBlockEnd:y.px,insetInline:y.px,insetInlineStart:y.px,insetInlineEnd:y.px,padding:y.px,paddingTop:y.px,paddingRight:y.px,paddingBottom:y.px,paddingLeft:y.px,paddingBlock:y.px,paddingBlockStart:y.px,paddingBlockEnd:y.px,paddingInline:y.px,paddingInlineStart:y.px,paddingInlineEnd:y.px,margin:y.px,marginTop:y.px,marginRight:y.px,marginBottom:y.px,marginLeft:y.px,marginBlock:y.px,marginBlockStart:y.px,marginBlockEnd:y.px,marginInline:y.px,marginInlineStart:y.px,marginInlineEnd:y.px,fontSize:y.px,backgroundPositionX:y.px,backgroundPositionY:y.px,...v,zIndex:g,fillOpacity:m.X4,strokeOpacity:m.X4,numOctaves:g},w={...b,color:o.y,backgroundColor:o.y,outlineColor:o.y,fill:o.y,stroke:o.y,borderColor:o.y,borderTopColor:o.y,borderRightColor:o.y,borderBottomColor:o.y,borderLeftColor:o.y,filter:f,WebkitFilter:f,mask:p,WebkitMask:p},x=e=>w[e],k=()=>({translate:0,scale:1,origin:0,originPoint:0}),P=()=>({x:k(),y:k()}),$=()=>({min:0,max:0}),S=()=>({x:$(),y:$()});var A=r(33182);let T=new Set(["width","height","top","left","right","bottom",...i]),I=e=>t=>t.test(e),E=[m.ai,y.px,y.KN,y.uj,y.vw,y.vh,{test:e=>"auto"===e,parse:e=>e}],j=e=>E.find(I(e));var D=r(78041);let C=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var R=r(21391);let L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,V=e=>180*e/Math.PI,M=e=>B(V(Math.atan2(e[1],e[0]))),F={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:M,rotateZ:M,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},B=e=>((e%=360)<0&&(e+=360),e),G=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),O=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),N={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:G,scaleY:O,scale:e=>(G(e)+O(e))/2,rotateX:e=>B(V(Math.atan2(e[6],e[5]))),rotateY:e=>B(V(Math.atan2(-e[2],e[0]))),rotateZ:M,rotate:M,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function q(e){return+!!e.includes("scale")}function Y(e,t){let r,s;if(!e||"none"===e)return q(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)r=N,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=F,s=t}if(!s)return q(t);let i=r[t],a=s[1].split(",").map(U);return"function"==typeof i?i(a):a[i]}function U(e){return parseFloat(e.trim())}let z=e=>e===m.ai||e===y.px,W=new Set(["x","y","z"]),H=i.filter(e=>!W.has(e)),X={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:s})=>{let n=e.max-e.min;return"border-box"===s?n:n-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Y(t,"x"),y:(e,{transform:t})=>Y(t,"y")};X.translateX=X.x,X.translateY=X.y;var K=r(73934);let _=new Set,Z=!1,Q=!1,J=!1;function ee(){if(Q){let e=Array.from(_).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;
1t.forEach(e=>{let t=function(e){let t=[];return H.forEach(r=>{let s=e.getValue(r);void 0!==s&&(t.push([r,s.get()]),s.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Q=!1,Z=!1,_.forEach(e=>e.complete(J)),_.clear()}function et(){_.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Q=!0)})}class er{constructor(e,t,r,s,n,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=s,this.element=n,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(_.add(this),Z||(Z=!0,K.Gt.read(et),K.Gt.resolveKeyframes(ee))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:s}=this;if(null===e[0]){let n=s?.get(),i=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let s=r.readValue(t,i);null!=s&&(e[0]=s)}void 0===e[0]&&(e[0]=i),s&&void 0===n&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),_.delete(this)}cancel(){"scheduled"===this.state&&(_.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let es=e=>/^0[^.\s]+$/u.test(e),en=new Set([f,p]);function ei(e,t){let r=x(e);return en.has(r)||(r=u.f),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let ea=new Set(["auto","none","0"]);class eo extends er{constructor(e,t,r,s,n){super(e,t,r,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let s=e[r];if("string"==typeof s&&(s=s.trim(),(0,R.pG)(s))){let n=function e(t,r,s=1){(0,D.V)(s<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,i]=function(e){let t=L.exec(e);if(!t)return[,];let[,r,s,n]=t;return[`--${r??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(r).getPropertyValue(n);if(a){let e=a.trim();return C(e)?parseFloat(e):e}return(0,R.pG)(i)?e(i,r,s+1):i}(s,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!T.has(r)||2!==e.length)return;let[s,n]=e,i=j(s),a=j(n);if((0,R.rm)(s)!==(0,R.rm)(n)&&X[r]){this.needsMeasurement=!0;return}if(i!==a)if(z(i)&&z(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else X[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var s;(null===e[t]||("number"==typeof(s=e[t])?0===s:null===s||"none"===s||"0"===s||es(s)))&&r.push(t)}r.length&&function(e,t,r){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!ea.has(t)&&(0,u.V)(t).values.length&&(s=e[n]),n++}if(s&&r)for(let n of t)e[n]=ei(r,s)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=X[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&e.getValue(r,s).jump(s,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let s=e.getValue(t);s&&s.jump(this.measuredOrigin,!1);let n=r.length-1,i=r[n];r[n]=X[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}var eu=r(27290),el=r(8453),ec=r(6500);function ed(e,t,r){t.startsWith("--")?e.style.setProperty(t,r):e.style[t]=r}function eh(e){let t;return()=>(void 0===t&&(t=e()),t)}let ef={};function ep(e,t){let r=eh(e);return()=>ef[t]??r()}let em=ep(()=>void 0!==window.ScrollTimeline,"scrollTimeline");var eg=r(33855),ey=r(87671),ev=r(34324);let eb=ep(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing");var ew=r(33754);let ex=([e,t,r,s])=>`cubic-bezier(${e}, ${t}, ${r}, ${s})`,ek={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ex([0,.65,.55,1]),circOut:ex([.55,0,1,.45]),backIn:ex([.31,.01,.66,-.59]),backOut:ex([.33,1.53,.69,.99])};function eP(e){return"function"==typeof e&&"applyToOptions"in e}class e$ extends ey.q{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:r,keyframes:s,pseudoElement:n,allowFlatten:i=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=i,this.options=e,(0,D.V)("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let u=function({type:e,...t}){return eP(e)&&eb()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:s=0,duration:n=300,repeat:i=0,repeatType:a="loop",ease:o="easeOut",times:u}={},l){let c={[t]:r};u&&(c.offset=u);let d=function e(t,r){if(t)return"function"==typeof t?eb()?(0,ew.K)(t,r):"ease-out":(0,ev.D)(t)?ex(t):Array.isArray(t)?t.map(t=>e(t,r)||ek.easeOut):ek[t]}(o,n);Array.isArray(d)&&(c.easing=d);let h={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};return l&&(h.pseudoElement=l),e.animate(c,h)}(t,r,s,u,n),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=(0,eg.X)(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),ed(t,r,e),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return(0,eu.X)(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,eu.X)(e)}get time(){return(0,eu.X)(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=(0,eu.f)(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:r,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&em())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),r&&(this.animation.rangeEnd=r),ec.l):s(this)}}let eS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:eA}=(0,r(44300).I)(queueMicrotask,!1);var eT=r(27424),eI=r(22039);let eE=[...E,o.y,u.f],ej=new WeakMap;function eD(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function eC(e){return"string"==typeof e||Array.isArray(e)}let eR=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eL=["initial",...eR];function eV(e){return eD(e.animate)||eL.some(t=>eC(e[t]))}function eM(e){return!!(eV(e)||e.variants)}let eF={current:null},eB={current:!1},eG="undefined"!=typeof window;function eO(e){let t=[{},{}];
1return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function eN(e,t,r,s){if("function"==typeof t){let[n,i]=eO(s);t=t(void 0!==r?r:e.custom,n,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,i]=eO(s);t=t(void 0!==r?r:e.custom,n,i)}return t}let eq=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],eY={};class eU{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:i,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=er,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=eT.k.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,K.Gt.render(this.render,!1,!0))};let{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=eV(t),this.isVariantNode=eM(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];void 0!==u[e]&&(0,A.S)(t)&&t.set(u[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ej.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(eB.current||function(){if(eB.current=!0,eG)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>eF.current=e.matches;e.addEventListener("change",t),t()}else eF.current=!1}(),this.shouldReduceMotion=eF.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),(0,K.WG)(this.notifyUpdate),(0,K.WG)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&eS.has(e)&&this.current instanceof HTMLElement){let{factory:r,keyframes:s,times:n,ease:i,duration:a}=t.accelerate,o=new e$({element:this.current,name:e,keyframes:s,times:n,ease:i,duration:(0,eu.f)(a)}),u=r(o);this.valueSubscriptions.set(e,()=>{u(),o.cancel()});return}let s=a.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&K.Gt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),r&&r()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eY){let t=eY[e];if(!t)continue;let{isEnabled:r,Feature:s}=t;if(!this.features[e]&&s&&r(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];
1t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):S()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<eq.length;t++){let r=eq[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let s=e["on"+r];s&&(this.propEventSubscriptions[r]=this.on(r,s))}this.prevMotionValues=function(e,t,r){for(let s in t){let n=t[s],i=r[s];if((0,A.S)(n))e.addValue(s,n);else if((0,A.S)(i))e.addValue(s,(0,eI.OQ)(n,{owner:e}));else if(i!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,(0,eI.OQ)(void 0!==t?t:n,{owner:e}))}}for(let s in r)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,eI.OQ)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){if("string"==typeof r&&(C(r)||es(r)))r=parseFloat(r);else{let s;s=r,!eE.find(I(s))&&u.f.test(t)&&(r=ei(e,t))}this.setBaseTarget(e,(0,A.S)(r)?r.get():r)}return(0,A.S)(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let s=eN(this.props,r,this.presenceContext?.custom);s&&(t=s[e])}if(r&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||(0,A.S)(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new el.v),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){eA.render(this.render)}}class ez extends eU{constructor(){super(...arguments),this.KeyframeResolver=eo}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let r=e.style;return r?r[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,A.S)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function eW(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let eH=(e,t)=>t&&"number"==typeof e?t.transform(e):e,eX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eK=i.length;function e_(e,t,r){let{style:s,vars:n,transformOrigin:o}=e,u=!1,l=!1;for(let e in t){let r=t[e];if(a.has(e)){u=!0;continue}if((0,R.j4)(e)){n[e]=r;continue}{let t=eH(r,b[e]);e.startsWith("origin")?(l=!0,o[e]=t):s[e]=t}}if(!t.transform&&(u||r?s.transform=function(e,t,r){let s="",n=!0;for(let a=0;a<eK;a++){let o=i[a],u=e[o];if(void 0===u)continue;let l=!0;if("number"==typeof u)l=u===+!!o.startsWith("scale");else{let e=parseFloat(u);l=o.startsWith("scale")?1===e:0===e}if(!l||r){let e=eH(u,b[o]);if(!l){n=!1;let t=eX[o]||o;s+=`${t}(${e}) `}r&&(t[o]=e)}}let a=e.pathRotation;return a&&(n=!1,s+=`rotate(${eH(a,b.pathRotation)}) `),s=s.trim(),r?s=r(t,n?"":s):n&&(s="none"),s}(t,e.transform,r):s.transform&&(s.transform="none")),l){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;s.transformOrigin=`${e} ${t} ${r}`}}let eZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},eQ={offset:"strokeDashoffset",array:"strokeDasharray"},eJ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e1(e,{attrX:t,attrY:r,attrScale:s,pathLength:n,pathSpacing:i=1,pathOffset:a=0,...o}
1,u,l,c){if(e_(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),eJ))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==s&&(d.scale=s),void 0!==n&&function(e,t,r=1,s=0,n=!0){e.pathLength=1;let i=n?eZ:eQ;e[i.offset]=`${-s}`,e[i.array]=`${t} ${r}`}(d,n,i,a,!1)}let e2=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),e5=e=>"string"==typeof e&&"svg"===e.toLowerCase();function e4(e,{style:t,vars:r},s,n){let i,a=e.style;for(i in t)a[i]=t[i];for(i in n?.applyProjectionStyles(a,s),r)a.setProperty(i,r[i])}let e6=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function e0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let e3={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!y.px.test(e))return e;else e=parseFloat(e);let r=e0(e,t.target.x),s=e0(e,t.target.y);return`${r}% ${s}%`}};var e8=r(39361);let e7={borderRadius:{...e3,applyTo:[...e6]},borderTopLeftRadius:e3,borderTopRightRadius:e3,borderBottomLeftRadius:e3,borderBottomRightRadius:e3,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let s=u.f.parse(e);if(s.length>5)return e;let n=u.f.createTransformer(e),i=+("number"!=typeof s[0]),a=r.x.scale*t.x,o=r.y.scale*t.y;s[0+i]/=a,s[1+i]/=o;let l=(0,e8.k)(a,o,.5);return"number"==typeof s[2+i]&&(s[2+i]/=l),"number"==typeof s[3+i]&&(s[3+i]/=l),n(s)}}};function e9(e,{layout:t,layoutId:r}){return a.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!e7[e]||"opacity"===e)}function te(e,t,r){let s=e.style,n=t?.style,i={};if(!s)return i;for(let t in s)((0,A.S)(s[t])||n&&(0,A.S)(n[t])||e9(t,e)||r?.getValue(t)?.liveStyle!==void 0)&&(i[t]=s[t]);return i}function tt(e,t,r){let s=te(e,t,r);for(let r in e)((0,A.S)(e[r])||(0,A.S)(t[r]))&&(s[-1!==i.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return s}class tr extends ez{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=S}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(a.has(t)){let e=x(t);return e&&e.default||0}return t=e2.has(t)?t:eW(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return tt(e,t,r)}build(e,t,r){e1(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,s){for(let r in e4(e,t,void 0,s),t.attrs)e.setAttribute(e2.has(r)?r:eW(r),t.attrs[r])}mount(e){this.isSVGTag=e5(e.tagName),super.mount(e)}}function ts({top:e,left:t,right:r,bottom:s}){return{x:{min:t,max:r},y:{min:e,max:s}}}function tn(e){return void 0===e||1===e}function ti({scale:e,scaleX:t,scaleY:r}){return!tn(e)||!tn(t)||!tn(r)}function ta(e){return ti(e)||to(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function to(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function tu(e,t,r,s,n){return void 0!==n&&(e=s+n*(e-s)),s+r*(e-s)+t}function tl(e,t=0,r=1,s,n){e.min=tu(e.min,t,r,s,n),e.max=tu(e.max,t,r,s,n)}function tc(e,{x:t,y:r}){tl(e.x,t.translate,t.scale,t.originPoint),tl(e.y,r.translate,r.scale,r.originPoint)}function td(e,t){e.min+=t,e.max+=t}function th(e,t,r,s,n=.5){let i=(0,e8.k)(e.min,e.max,n);tl(e,t,r,i,s)}function tf(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function tp(e,t,r){let s=r??e;th(e.x,tf(t.x,s.x),t.scaleX,t.scale,t.originX),th(e.y,tf(t.y,s.y),t.scaleY,t.scale,t.originY)}function tm(e,t){return ts(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class tg extends ez{constructor(){super(...arguments),this.type="html",this.renderInstance=e4}mount(e){(0,D.V)(!!e.style,"motion.create() components must forward their ref to a HTML or SVG element","custom-component-ref"),super.mount(e)}readValueFromInstance(e,t){if(a.has(t))return this.projection?.isProjecting?q(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return Y(r,t)})(e,t);{let r=window.getComputedStyle(e),s=((0,R.j4)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return tm(e,t)}build(e,t,r){e_(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return te(e,t,r)}}var ty=r(12115);let tv=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tb(e){if("string"!=typeof e||e.includes("-"));else if(tv.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tw=r(95155),tx=r(60296);let tk=(0,ty.createContext)({strict:!1});var tP=r(53127);let t$=(0,ty.createContext)({});function tS(e){return Array.isArray(e)?e.join(" "):e}let tA=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tT(e,t,r){for(let s in t)(0,A.S)(t[s])||e9(s,r)||(e[s]=t[s])}let tI=()=>({...tA(),attrs:{}}),tE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function tj(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tE.has(e)}let tD=e=>!tj(e);try{!function(e){"function"==typeof e&&(tD=t=>t.startsWith("on")?!tj(t):e(t))}(require("@emotion/is-prop-valid").default)}catch{}function tC(e){return(0,A.S)(e)?e.get():e}var tR=r(59686),tL=r(94416);let tV=e=>(t,r)=>{let s=(0,ty.useContext)(t$),n=(0,ty.useContext)(tR.t),i=()=>(function(e,t,r,s){let{scrapeMotionValuesFromProps:n,createRenderState:i}=e;return{latestValues:function(e,t,r,s){let n={},i=s(e,{});for(let e in i)n[e]=tC(i[e]);let{initial:a,animate:o}=e,u=eV(e),l=eM(e);t&&l&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let c=!!r&&!1===r.initial,d=(c=c||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!eD(d)){let t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){let s=eN(e,t[r]);if(s){let{transitionEnd:e,transition:t,...r}=s;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(t,r,s,n),renderState:i()}})(e,t,s,n);return r?i():(0,tL.M)(i)},tM=tV({scrapeMotionValuesFromProps:te,createRenderState:tA}),tF=tV({scrapeMotionValuesFromProps:tt,createRenderState:tI}),tB={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tG=!1;function tO(){return!function(){if(tG)return;let e={};for(let t in tB)e[t]={isEnabled:e=>tB[t].some(t=>!!e[t])};eY=e,tG=!0}(),eY}let tN=Symbol.for("motionComponentSymbol"),tq="data-"+eW("framerAppearId"),tY=(0,ty.createContext)({});function tU(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}var tz=r(46436);function tW(e){var t,r;let{forwardMotionProps:s=!1,type:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;i&&function(e){let t=tO();for(let r in e)t[r]={...t[r],...e[r]};eY=t}(i);let o=n?"svg"===n:tb(e),u=o?tF:tM;function l(t,r){let n,i={...(0,ty.useContext)(tP.Q),...t,layoutId:function(e){let{layoutId:t}=e,r=(0,ty.useContext)(tx.L).id;return r&&void 0!==t?r+"-"+t:t}(t)},{isStatic:l}=i,c=function(e){let{initial:t,animate:r}=function(e,t){if(eV(e)){let{initial:t,animate:r}=e;return{initial:!1===t||eC(t)?t:void 0,animate:eC(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,ty.useContext)(t$));return(0,ty.useMemo)(()=>({initial:t,animate:r}
1),[tS(t),tS(r)])}(t),d=u(t,l);if(!l&&"undefined"!=typeof window){(0,ty.useContext)(tk).strict;let t=function(e){let{drag:t,layout:r}=tO();if(!t&&!r)return{};let s={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(i);n=t.MeasureLayout,c.visualElement=function(e,t,r,s,n,i){var a,o,u,l;let{visualElement:c}=(0,ty.useContext)(t$),d=(0,ty.useContext)(tk),h=(0,ty.useContext)(tR.t),f=(0,ty.useContext)(tP.Q),p=f.reducedMotion,m=f.skipAnimations,g=(0,ty.useRef)(null),y=(0,ty.useRef)(!1);s=s||d.renderer,!g.current&&s&&(g.current=s(e,{visualState:t,parent:c,props:r,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:i}),y.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));let v=g.current,b=(0,ty.useContext)(tY);v&&!v.projection&&n&&("html"===v.type||"svg"===v.type)&&function(e,t,r,s){let{layoutId:n,layout:i,drag:a,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!a||o&&tU(o),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:u,layoutRoot:l,layoutAnchor:c})}(g.current,r,n,b);let w=(0,ty.useRef)(!1);(0,ty.useInsertionEffect)(()=>{v&&w.current&&v.update(r,h)});let x=r[tq],k=(0,ty.useRef)(!!x&&"undefined"!=typeof window&&!(null==(a=(o=window).MotionHandoffIsComplete)?void 0:a.call(o,x))&&(null==(u=(l=window).MotionHasOptimisedAnimation)?void 0:u.call(l,x)));return(0,tz.E)(()=>{y.current=!0,v&&(w.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),k.current&&v.animationState&&v.animationState.animateChanges())}),(0,ty.useEffect)(()=>{v&&(!k.current&&v.animationState&&v.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var e,t;null==(e=(t=window).MotionHandoffMarkAsComplete)||e.call(t,x)}),k.current=!1),v.enteringChildren=void 0)}),v}(e,d,i,a,t.ProjectionNode,o)}return(0,tw.jsxs)(t$.Provider,{value:c,children:[n&&c.visualElement?(0,tw.jsx)(n,{visualElement:c.visualElement,...i}):null,function(e,t,r,s,n){let{latestValues:i}=s,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6?arguments[6]:void 0,u=((null!=o?o:tb(e))?function(e,t,r,s){let n=(0,ty.useMemo)(()=>{let r=tI();return e1(r,t,e5(s),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};tT(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r={},s=function(e,t){let r=e.style||{},s={};return tT(s,r,e),Object.assign(s,function(e,t){let{transformTemplate:r}=e;return(0,ty.useMemo)(()=>{let e=tA();return e_(e,t,r),Object.assign({},e.vars,e.style)},[t])}(e,t)),s}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=s,r})(t,i,n,e),l=function(e,t,r){let s={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&!(0,A.S)(e[n])&&(tD(n)||!0===r&&tj(n)||!t&&!tj(n)||e.draggable&&n.startsWith("onDrag"))&&(s[n]=e[n]);return s}(t,"string"==typeof e,a),c=e!==ty.Fragment?{...l,...u,ref:r}:{},{children:d}=t,h=(0,ty.useMemo)(()=>(0,A.S)(d)?d.get():d,[d]);return(0,ty.createElement)(e,{...c,children:h})}(e,t,function(e,t,r){let s=(0,ty.useRef)(r);(0,ty.useInsertionEffect)(()=>{s.current=r});let n=(0,ty.useRef)(null);return(0,ty.useCallback)(r=>{if(r){var i;null==(i=e.onMount)||i.call(e,r)}t&&(r?t.mount(r):t.unmount());let a=s.current;if("function"==typeof a)if(r){let e=a(r);"function"==typeof e&&(n.current=e)}else n.current?(n.current(),n.current=null):a(r);else a&&(a.current=r)},[t])}(d,c.visualElement,r),d,l,s,o)]})}l.displayName="motion.".concat("string"==typeof e?e:"create(".concat(null!=(r=null!=(t=e.displayName)?t:e.name)?r:"",")"));let c=(0,ty.forwardRef)(l);return c[tN]=e,c}class tH{constructor(e){this.isMounted=!1,this.node=e}update(){}}function tX(e,t,r){let s=e.getProps();return eN(s,t,void 0!==r?r:s.custom,e)}function tK(e,t){if(e?.inherit&&t){let{inherit:r,...s}=e;return{...t,...s}}return e}function t_(e,t){let r=e?.[t]??e?.default??e;return r!==e?tK(r,e):r}let tZ=e=>Array.isArray(e);var tQ=r(40042);function tJ(e,t){let r=e.getValue("willChange");if((0,A.S)(r)&&r.add)return r.add(t);if(!r&&tQ.W.WillChange){let r=new tQ.W.WillChange("auto");e.addValue("willChange",r),r.add(t)}}var t1=r(49752),t2=r(48895),t5=r(90625),t4=r(32080),t6=r(58605),t0=r(69809);let t3={anticipate:t4.b,backInOut:t6.ZZ,circInOut:t0.tn};class t8 extends e${constructor(e){!function(e){"string"==typeof e.ease&&e.ease in t3&&(e.ease=t3[e.ease])}(e),(0,t5.E)(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:s,element:n,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new t1.s({...i,autoplay:!1}),o=Math.max(10,eT.k.now()-this.startTime),u=(0,t2.q)(0,10,o-10),l=a.sample(o).value,{name:c}=this.options;n&&c&&ed(n,c,l),t.setWithVelocity(a.sample(Math.max(0,o-u)).value,l,u),a.stop()}}let t7=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(u.f.test(e)||"0"===e)&&!e.startsWith("url("));function t9(e){e.duration=0,e.type="keyframes"}let re=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rt=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rr=eh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rs extends ey.q{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:s=0,repeatDelay:n=0,repeatType:i="loop",keyframes:a,name:o,motionValue:u,element:l,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=eT.k.now();let d={autoplay:e,delay:t,type:r,repeat:s,repeatDelay:n,repeatType:i,name:o,motionValue:u,element:l,...c},h=l?.KeyframeResolver||er;this.keyframeResolver=new h(a,(e,t,r)=>this.onKeyframesResolved(e,t,d,!r),o,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,s){let n;this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=eT.k.now();let d=!0;!function(e,t,r,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let i=e[e.length-1],a=t7(n,t),o=t7(i,t);return(0,D.$)(a===o,`You are trying to animate ${t} from "${n}" to "${i}". "${a?i:n}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||eP(r))&&s)}(e,i,a,o)&&(d=!1,(tQ.W.instantAnimations||!u)&&c?.((0,eg.X)(e,r,t)),e[0]=e[e.length-1],t9(r),r.repeat=0);let h={startTime:s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},f=d&&!l&&function(e){let{motionValue:t,name:r,repeatDelay:s,repeatType:n,damping:i,type:a,keyframes:o}=e,u=t?.owner?.current;if(!(u instanceof HTMLElement)&&!(u instanceof SVGElement))return!1;
1let{onUpdate:l,transformTemplate:c}=t.owner.getProps();return rr()&&r&&(eS.has(r)||rt.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&re.test(e[t]))return!0;return!1}(o))&&("transform"!==r||!c)&&!l&&!s&&"mirror"!==n&&0!==i&&"inertia"!==a}(h),p=h.motionValue?.owner?.current;if(f)try{n=new t8({...h,element:p})}catch{n=new t1.s(h)}else n=new t1.s(h);n.finished.then(()=>{this.notifyFinished()}).catch(ec.l),this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),J=!0,et(),ee(),J=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rn={type:"spring",stiffness:500,damping:25,restSpeed:10},ri={type:"keyframes",duration:.8},ra={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ro=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),ru=(e,t,r,s={},n,i)=>o=>{let u=t_(s,e)||{},l=u.delay||s.delay||0,{elapsed:c=0}=s;c-=(0,eu.f)(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:e=>{t.set(e),u.onUpdate&&u.onUpdate(e)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:i?void 0:n};!function(e){for(let t in e)if(!ro.has(t))return!0;return!1}(u)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?ri:a.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rn:ra)(e,d)),d.duration&&(d.duration=(0,eu.f)(d.duration)),d.repeatDelay&&(d.repeatDelay=(0,eu.f)(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(t9(d),0===d.delay&&(h=!0)),(tQ.W.instantAnimations||tQ.W.skipAnimations||n?.shouldSkipAnimations||u.skipAnimations)&&(h=!0,t9(d),d.delay=0),d.allowFlatten=!u.type&&!u.ease,h&&!i&&void 0!==t.get()){let e=(0,eg.X)(d.keyframes,u);if(void 0!==e)return void K.Gt.update(()=>{d.onUpdate(e),d.onComplete()})}return u.isSync?new t1.s(d):new rs(d)};function rl(e,t,{delay:r=0,transitionOverride:s,type:n}={}){let{transition:i,transitionEnd:a,...o}=t,u=e.getDefaultTransition();i=i?tK(i,u):u;let l=i?.reduceMotion,c=i?.skipAnimations;s&&(i=s);let d=[],h=n&&e.animationState&&e.animationState.getState()[n],f=i?.path;for(let t in f&&f.animateVisualElement(e,o,i,r,d),o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},r){let s=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,s}(h,t))continue;let a={delay:r,...t_(i||{},t)};c&&(a.skipAnimations=!0);let u=s.get();if(void 0!==u&&!s.isAnimating()&&!Array.isArray(n)&&n===u&&!a.velocity){K.Gt.update(()=>s.set(n));continue}let f=!1;if(window.MotionHandoffAnimation){let r=e.props[tq];if(r){let e=window.MotionHandoffAnimation(r,t,K.Gt);null!==e&&(a.startTime=e,f=!0)}}tJ(e,t);let p=l??e.shouldReduceMotion;s.start(ru(t,s,n,p&&T.has(t)?{type:!1}:a,e,f));let m=s.animation;m&&d.push(m)}if(a){let t=()=>K.Gt.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:s={},...n}=tX(e,t)||{};for(let t in n={...n,...r}){var i;let r=tZ(i=n[t])?i[i.length-1]||0:i;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,eI.OQ)(r))}}(e,a)});d.length?Promise.all(d).then(t):t()}return d}function rc(e,t,r,s=0,n=1){let i=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof r?r(i,a):1===n?i*s:o-i*s}function rd(e,t,r={}){let s=tX(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=s||{};r.transitionOverride&&(n=r.transitionOverride);let i=s?()=>Promise.all(rl(e,s,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,r=0,s=0,n=0,i=1,a){let o=[];for(let u of e.variantChildren)u.notify("AnimationStart",t),o.push(rd(u,t,{...a,delay:r+("function"==typeof s?0:s)+rc(e.variantChildren,u,s,n,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,i,a,o,r)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([i(),a(r.delay)]);{let[e,t]="beforeChildren"===o?[i,a]:[a,i];return e().then(()=>t())}}let rh=eL.length;function rf(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let s=0;s<r;s++)if(t[s]!==e[s])return!1;return!0}let rp=[...eR].reverse(),rm=eR.length;function rg(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ry(){return{animate:rg(!0),whileInView:rg(),whileHover:rg(),whileTap:rg(),whileDrag:rg(),whileFocus:rg(),exit:rg()}}class rv extends tH{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>rd(e,t,r)));else if("string"==typeof t)s=rd(e,t,r);else{let n="function"==typeof t?tX(e,t,r.custom):t;s=Promise.all(rl(e,n,r))}return s.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=ry(),s=!0,n=!1,i=t=>(r,s)=>{let n=tX(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...s}=n;r={...r,...s,...t}}return r};function a(a){let{props:o}=e,u=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<rh;e++){let s=eL[e],n=t.props[s];(eC(n)||!1===n)&&(r[s]=n)}return r}(e.parent)||{},l=[],c=new Set,d={},h=1/0;for(let t=0;t<rm;t++){var f,p;let m=rp[t],g=r[m],y=void 0!==o[m]?o[m]:u[m],v=eC(y),b=m===a?g.isActive:null;!1===b&&(h=t);let w=y===u[m]&&y!==o[m]&&v;if(w&&(s||n)&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||eD(y)||"boolean"==typeof y)continue;if("exit"===m&&g.isActive&&!0!==b){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let x=(f=g.prevProp,"string"==typeof(p=y)?p!==f:!!Array.isArray(p)&&!rf(p,f)),k=x||m===a&&g.isActive&&!w&&v||t>h&&v,P=!1,$=Array.isArray(y)?y:[y],S=$.reduce(i(m),{});!1===b&&(S={});let{prevResolvedValues:A={}}=g,T={...A,...S},I=t=>{k=!0,c.has(t)&&(P=!0,c.delete(t)),g.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in T){let t=S[e],r=A[e];if(!d.hasOwnProperty(e))(tZ(t)&&tZ(r)?!rf(t,r)||x:t!==r)?null!=t?I(e):c.add(e):void 0!==t&&c.has(e)?I(e):g.protectedKeys[e]=!0}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(d={...d,...S}),(s||n)&&e.blockInitialAnimation&&(k=!1);let E=w&&x,j=!E||P;k&&j&&l.push(...$.map(t=>{let r={type:m};if("string"==typeof t&&(s||n)&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,n=tX(s,t);if(s.enteringChildren&&n){let{delayChildren:t}=n.transition||{};r.delay=rc(s.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof o.initial){let r=tX(e,Array.isArray(o.initial)?o.initial[0]:o.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let s=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=s??null}),l.push({animation:t})}let m=!!l.length;return s&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(m=!1),s=!1,n=!1,m?t(l):Promise.resolve()}return{animateChanges:a,setActive:function(t,s){if(r[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),r[t].isActive=s;let n=a(t);for(let e in r)r[e].protectedKeys={};return n},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=ry(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();eD(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rb=0;class rw extends tH{constructor(){super(...arguments),this.id=rb++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;if(e&&!1===r){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let r=tX(this.node,e,t);if(r){let{transition:e,transitionEnd:t,...s}=r;for(let e in s)this.node.getValue(e)?.jump(s[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>
1{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rx={x:!1,y:!1};function rk(e){return[e("x"),e("y")]}function rP(e){return e.max-e.min}function r$(e,t,r,s=.5){e.origin=s,e.originPoint=(0,e8.k)(t.min,t.max,e.origin),e.scale=rP(r)/rP(t),e.translate=(0,e8.k)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rS(e,t,r,s){r$(e.x,t.x,r.x,s?s.originX:void 0),r$(e.y,t.y,r.y,s?s.originY:void 0)}function rA(e,t,r,s=0){e.min=(s?(0,e8.k)(r.min,r.max,s):r.min)+t.min,e.max=e.min+rP(t)}function rT(e,t,r,s=0){let n=s?(0,e8.k)(r.min,r.max,s):r.min;e.min=t.min-n,e.max=e.min+rP(t)}function rI(e,t,r,s){rT(e.x,t.x,r.x,s?.x),rT(e.y,t.y,r.y,s?.y)}let rE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rj=new Set(["INPUT","SELECT","TEXTAREA"]);function rD(e,t,r,s={passive:!0}){return e.addEventListener(t,r,s),()=>e.removeEventListener(t,r,s)}var rC=r(73142);function rR(e){return(0,rC.G)(e)&&"ownerSVGElement"in e}function rL(e,t,r){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let s=document;t&&(s=t.current);let n=r?.[e]??s.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let rV=new WeakMap,rM=(e,t,r)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:rR(s)&&"getBBox"in s?s.getBBox()[t]:s[r],rF=rM("inline","width","offsetWidth"),rB=rM("block","height","offsetHeight");function rG({target:e,borderBoxSize:t}){rV.get(e)?.forEach(r=>{r(e,{get width(){return rF(e,t)},get height(){return rB(e,t)}})})}function rO(e){e.forEach(rG)}let rN=new Set;function rq(e,t){return"function"==typeof e?(rN.add(e),n||(n=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};rN.forEach(t=>t(e))},window.addEventListener("resize",n)),()=>{rN.delete(e),rN.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):function(e,t){s||"undefined"!=typeof ResizeObserver&&(s=new ResizeObserver(rO));let r=rL(e);return r.forEach(e=>{let r=rV.get(e);r||(r=new Set,rV.set(e,r)),r.add(t),s?.observe(e)}),()=>{r.forEach(e=>{let r=rV.get(e);r?.delete(t),r?.size||s?.unobserve(e)})}}(e,t)}let rY=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rU(e){return{point:{x:e.pageX,y:e.pageY}}}function rz(e,t,r,s){return rD(e,t,e=>rY(e)&&r(e,rU(e)),s)}let rW=({current:e})=>e?e.ownerDocument.defaultView:null;var rH=r(23656);let rX=(e,t)=>Math.abs(e-t),rK=new Set(["auto","scroll"]);class r_{constructor(e,t,{transformPagePoint:r,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=rZ(this.lastRawMoveEventInfo,this.transformPagePoint));let e=rJ(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rX(e.x,t.x)**2+rX(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!r)return;let{point:s}=e,{timestamp:n}=K.uv;this.history.push({...s,timestamp:n});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=rZ(t,this.transformPagePoint),K.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=rJ("pointercancel"===e.type?this.lastMoveEventInfo:rZ(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),s&&s(e,i)},!rY(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=s||window;let o=rZ(rU(e),this.transformPagePoint),{point:u}=o,{timestamp:l}=K.uv;this.history=[{...u,timestamp:l}];let{onSessionStart:c}=t;c&&c(e,rJ(o,this.history));let d={passive:!0,capture:!0};this.removeListeners=(0,rH.F)(rz(this.contextWindow,"pointermove",this.handlePointerMove,d),rz(this.contextWindow,"pointerup",this.handlePointerUp,d),rz(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(rK.has(e.overflowX)||rK.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let r=e===window,s=r?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:s.x-t.x,y:s.y-t.y};(0!==n.x||0!==n.y)&&(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,s),K.Gt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),(0,K.WG)(this.updatePoint)}}function rZ(e,t){return t?{point:t(e.point)}:e}function rQ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rJ({point:e},t){return{point:e,delta:rQ(e,r1(t)),offset:rQ(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,s=null,n=r1(e);for(;r>=0&&(s=e[r],!(n.timestamp-s.timestamp>(0,eu.f)(.1)));)r--;if(!s)return{x:0,y:0};s===e[0]&&e.length>2&&n.timestamp-s.timestamp>2*(0,eu.f)(t)&&(s=e[1]);let i=(0,eu.X)(n.timestamp-s.timestamp);if(0===i)return{x:0,y:0};let a={x:(n.x-s.x)/i,y:(n.y-s.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function r1(e){return e[e.length-1]}var r2=r(91225);function r5(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function r4(e,t){let r=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,s]=[s,r]),{min:r,max:s}}function r6(e,t,r){return{min:r0(e,t),max:r0(e,r)}}function r0(e,t){return"number"==typeof e?e:e[t]||0}let r3=new WeakMap;class r8{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=S(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{t&&this.snapToCursor(rU(e).point),this.stopAnimation()},i=(e,t)=>{let{drag:r,dragPropagation:s,onDragStart:n}=this.getProps();if(r&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(rx[e])return null;else return rx[e]=!0,()=>{rx[e]=!1};return rx.x||rx.y?null:(rx.x=rx.y=!0,()=>{rx.x=rx.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rk(e=>{let t=this.getAxisMotionValue(e).get()||0;if(y.KN.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let s=r.layout.layoutBox[e];s&&(t=rP(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&K.Gt.update(()=>n(e,t),!1,!0),tJ(this.visualElement,"transform");let{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:s,onDirectionLock:n,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&K.Gt.update(()=>i(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new r_(e,{onSessionStart:n,onStart:i,onMove:a,onSessionEnd:o,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:r,contextWindow:rW(this.visualElement),element:this.visualElement.current})}stop(e,t){let r=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!r)return;let{velocity:i}=s;this.startAnimation(i);let{onDragEnd:a}=this.getProps();a&&K.Gt.postRender(()=>a(r,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,r){let{drag:s}=this.getProps();if(!r||!r9(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},s){return void 0!==t&&e<t?e=s?(0,e8.k)(t,e,s.min):Math.max(e,t):void 0!==r&&e>r&&(e=s?(0,e8.k)(r,e,s.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),n.set(i)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&tU(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:s,right:n}){return{x:r5(e.x,r,n),y:r5(e.y,t,s)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r6(e,"left","right"),y:r6(e,"top","bottom")}}(t),s!==this.constraints&&!tU(e)&&r&&this.constraints&&!this.hasMutatedConstraints&&rk(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!tU(t))return!1;let s=t.current;(0,D.V)(null!==s,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let i=function(e,t,r){let s=tm(e,r),{scroll:n}=t;return n&&(td(s.x,n.offset.x),td(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:r4(e.x,i.x),y:r4(e.y,i.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ts(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:s,dragTransition:n,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rk(a=>{if(!r9(a,t,this.currentDirection))return;let u=o&&o[a]||{};(!0===i||i===a)&&(u={min:0,max:0});let l={type:"inertia",velocity:r?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...u};return this.startAxisValueAnimation(a,l)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return tJ(this.visualElement,e),r.start(ru(e,r,0,t,this.visualElement,!1))}stopAnimation(){rk(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rk(t=>{let{drag:r}=this.getProps();if(!r9(t,r,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(t);if(s&&s.layout){let{min:r,max:i}=s.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-(0,e8.k)(r,i,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!tU(t)||!r||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};rk(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();s[e]=function(e,t){let r=.5,s=rP(e),n=rP(t);return n>s?r=(0,r2.q)(t.min,t.max-s,e.min):s>n&&(r=(0,r2.q)(e.min,e.max-n,t.min)),(0,t2.q)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),rk(t=>{if(!r9(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:i}=this.constraints[t];r.set((0,e8.k)(n,i,s[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;r3.set(this.visualElement,this);let t=this.visualElement.current,r=rz(t,"pointerdown",e=>{let{drag:r,dragListener:s=!0}
1=this.getProps(),n=e.target,i=n!==t&&(rj.has(n.tagName)||!0===n.isContentEditable);r&&s&&!i&&this.start(e)}),s=()=>{let{dragConstraints:r}=this.getProps();tU(r)&&r.current&&(this.constraints=this.resolveRefConstraints(),e||(e=function(e,t,r){let s=rq(e,r7(r)),n=rq(t,r7(r));return()=>{s(),n()}}(t,r.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,i=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),K.Gt.read(s);let a=rD(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rk(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),r(),i(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:i=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:s,dragConstraints:n,dragElastic:i,dragMomentum:a}}}function r7(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function r9(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class se extends tH{constructor(e){super(e),this.removeGroupControls=ec.l,this.removeListeners=ec.l,this.controls=new r8(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ec.l}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let st=e=>(t,r)=>{e&&K.Gt.update(()=>e(t,r),!1,!0)};class sr extends tH{constructor(){super(...arguments),this.removePointerDownListener=ec.l}onPointerDown(e){this.session=new r_(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rW(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:s}=this.node.getProps();return{onSessionStart:st(e),onStart:st(t),onMove:st(r),onEnd:(e,t)=>{delete this.session,s&&K.Gt.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=rz(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ss={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sn=r(75601);let si=!1;class sa extends ty.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),r&&r.register&&s&&r.register(n),si&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ss.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:s,isPresent:n}=this.props,{projection:i}=r;return i&&(i.isPresent=n,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),si=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?i.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?i.promote():i.relegate()||K.Gt.postRender(()=>{let e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:r}=e;r&&(r.options.layoutAnchor=t,r.root.didUpdate(),eA.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:s}=e;si=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),r&&r.deregister&&r.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function so(e){let[t,r]=(0,sn.xQ)(),s=(0,ty.useContext)(tx.L);return(0,tw.jsx)(sa,{...e,layoutGroup:s,switchLayoutGroup:(0,ty.useContext)(tY),isPresent:t,safeToRemove:r})}let su={value:null,addProjectionMetrics:null},sl=e6.length,sc=e=>"string"==typeof e?parseFloat(e):e,sd=e=>"number"==typeof e||y.px.test(e);function sh(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let sf=sm(0,.5,t0.yT),sp=sm(.5,.95,ec.l);function sm(e,t,r){return s=>s<e?0:s>t?1:r((0,r2.q)(e,t,s))}function sg(e,t){e.min=t.min,e.max=t.max}function sy(e,t){sg(e.x,t.x),sg(e.y,t.y)}function sv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}
1function sb(e,t,r,s,n){return e-=t,e=s+1/r*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function sw(e,t,[r,s,n],i,a){!function(e,t=0,r=1,s=.5,n,i=e,a=e){if(y.KN.test(t)&&(t=parseFloat(t),t=(0,e8.k)(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=(0,e8.k)(i.min,i.max,s);e===i&&(o-=t),e.min=sb(e.min,t,r,o,n),e.max=sb(e.max,t,r,o,n)}(e,t[r],t[s],t[n],t.scale,i,a)}let sx=["x","scaleX","originX"],sk=["y","scaleY","originY"];function sP(e,t,r,s){sw(e.x,t,sx,r?r.x:void 0,s?s.x:void 0),sw(e.y,t,sk,r?r.y:void 0,s?s.y:void 0)}function s$(e){return 0===e.translate&&1===e.scale}function sS(e){return s$(e.x)&&s$(e.y)}function sA(e,t){return e.min===t.min&&e.max===t.max}function sT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function sI(e,t){return sT(e.x,t.x)&&sT(e.y,t.y)}function sE(e){return rP(e.x)/rP(e.y)}function sj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var sD=r(16105);class sC{constructor(){this.members=[]}add(e){(0,sD.Kq)(this.members,e);for(let t=this.members.length-1;t>=0;t--){let r=this.members[t];if(r===e||r===this.lead||r===this.prevLead)continue;let s=r.instance;s&&!1!==s.isConnected||r.snapshot||((0,sD.Ai)(this.members,r),r.unmount())}e.scheduleRender()}remove(e){if((0,sD.Ai)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=r.options,{layoutDependency:n}=e.options;(void 0===s||s!==n)&&(e.resumeFrom=r,t&&(r.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sR=(e,t)=>e.depth-t.depth;class sL{constructor(){this.children=[],this.isDirty=!1}add(e){(0,sD.Kq)(this.children,e),this.isDirty=!0}remove(e){(0,sD.Ai)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(sR),this.isDirty=!1,this.children.forEach(e)}}let sV={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sM=["","X","Y","Z"],sF=0;function sB(e,t,r,s){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function sG({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},r=t?.()){this.id=sF++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,su.value&&(sV.nodes=sV.calculatedTargetDeltas=sV.calculatedProjections=0),this.nodes.forEach(sq),this.nodes.forEach(sZ),this.nodes.forEach(sQ),this.nodes.forEach(sY),su.addProjectionMetrics&&su.addProjectionMetrics(sV)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new sL)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new el.v),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rR(t)&&!(rR(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||r)&&(this.isLayoutDirty=!0),e){let r,s=0,n=()=>this.root.updateBlockedByResize=!1;K.Gt.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==s&&(s=e,this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=eT.k.now(),s=({timestamp:t})=>{let n=t-r;n>=250&&((0,K.WG)(s),e(n-250))};return K.Gt.setup(s,!0),()=>(0,K.WG)(s)}(n,250),ss.hasAnimatedSinceResize&&(ss.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(s_)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&n&&(r||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||n.getDefaultTransition()||s6,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),u=!this.targetLayout||!sI(this.targetLayout,s),l=!t&&r;if(this.options.layoutRoot||this.resumeFrom||l||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...t_(i,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||s_(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,K.WG)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sJ),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let s=r.props[tq];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",K.Gt,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(sW),this.nodes.forEach(sz);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(sH);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(sX),this.nodes.forEach(sK),this.nodes.forEach(sO),this.nodes.forEach(sN)):this.nodes.forEach(sH),this.clearAllSnapshots();let e=eT.k.now();K.uv.delta=(0,t2.q)(0,1e3/60,e-K.uv.timestamp),K.uv.timestamp=e,K.uv.isProcessing=!0,K.PP.update.process(K.uv),K.PP.preRender.process(K.uv),K.PP.render.process(K.uv),K.uv.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eA.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sU),this.sharedNodes.forEach(s1)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,K.Gt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){K.Gt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rP(this.snapshot.measuredBox.x)||rP(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=S()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!sS(this.projectionDelta),r=this.getTransformTemplate(),s=r?r(this.latestValues,""):void 0,i=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||ta(this.latestValues)||i)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),s=this.removeElementScroll(r);return e&&(s=this.removeTransform(s)),s8((t=s).x),s8(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return S();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(s9))){let{scroll:e}=this.root;e&&(td(t.x,e.offset.x),td(t.y,e.offset.y))}return t}removeElementScroll(e){let t=S();if(sy(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let s=this.path[r],{scroll:n,options:i}=s;s!==this.root&&n&&i.layoutScroll&&(n.wasRoot&&sy(t,e),td(t.x,n.offset.x),td(t.y,n.offset.y))}return t}applyTransform(e,t=!1,r){let s=r||S();sy(s,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(td(s.x,-r.scroll.offset.x),td(s.y,-r.scroll.offset.y)),ta(r.latestValues)&&tp(s,r.latestValues,r.layout?.layoutBox)}return ta(this.latestValues)&&tp(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=S();sy(t,e);for(let e=0;e<this.path.length;e++){let r,s=this.path[e];ta(s.latestValues)&&(s.instance&&(ti(s.latestValues)&&s.updateSnapshot(),sy(r=S(),s.measurePageBox())),sP(t,s.latestValues,s.snapshot?.layoutBox,r))}return ta(this.latestValues)&&sP(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.uv.t
1imestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=K.uv.timestamp;let i=this.getClosestProjectingParent();if(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=S(),this.targetWithTransforms=S()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,u,l;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,u=this.relativeParent.target,l=this.options.layoutAnchor||void 0,rA(a.x,o.x,u.x,l?.x),rA(a.y,o.y,u.y,l?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sy(this.target,this.layout.layoutBox),tc(this.target,this.targetDelta)):sy(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&i&&!!i.resumingFrom==!!this.resumingFrom&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),su.value&&sV.calculatedTargetDeltas++}}getClosestProjectingParent(){if(!(!this.parent||ti(this.parent.latestValues)||to(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,r){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=S(),this.relativeTargetOrigin=S(),rI(this.relativeTargetOrigin,t,r,this.options.layoutAnchor||void 0),sy(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===K.uv.timestamp&&(r=!1),r)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;sy(this.layoutCorrected,this.layout.layoutBox);let i=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,s=!1){let n,i,a=r.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){i=(n=r[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(td(e.x,-n.scroll.offset.x),td(e.y,-n.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,tc(e,i)),s&&ta(n.latestValues)&&tp(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=S());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sv(this.prevProjectionDelta.x,this.projectionDelta.x),sv(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rS(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&sj(this.projectionDelta.x,this.prevProjectionDelta.x)&&sj(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o)),su.value&&sV.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=P(),this.projectionDelta=P(),this.projectionDeltaWithTransform=P()}setAnimationOrigin(e,t=!1,r){let s,n=this.snapshot,i=n?n.latestValues:{},a={...this.latestValues},o=P();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let u=S(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(s4));this.animationProgress=0;let f=r?.interpolateProjection(e);this.mixTargetDelta=t=>{let r=t/1e3,n=f?.(r);if(n?(o.x.translate=n.x,o.x.scale=(0,e8.k)(e.x.scale,1,r),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=(0,e8.k)(e.y.scale,1,r),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(s2(o.x,e.x,r),s2(o.y,e.y,r)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,p,m,g,v,b;rI(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,v=u,b=r,s5(m.x,g.x,v.x,b),s5(m.y,g.y,v.y,b),s&&(c=this.relativeTarget,p=s,sA(c.x,p.x)&&sA(c.y,p.y))&&(this.isProjectionDirty=!1),s||(s=S()),sy(s,this.relativeTarget)}l&&(this.animationValues=a,function(e,t,r,s,n,i){n?(e.opacity=(0,e8.k)(0,r.opacity??1,sf(s)),e.opacityExit=(0,e8.k)(t.opacity??1,0,sp(s))):i&&(e.opacity=(0,e8.k)(t.opacity??1,r.opacity??1,s));for(let n=0;n<sl;n++){let i=e6[n],a=sh(t,i),o=sh(r,i);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sd(a)===sd(o)?(e[i]=Math.max((0,e8.k)(sc(a),sc(o),s),0),(y.KN.test(o)||y.KN.test(a))&&(e[i]+="%")):e[i]=o)}(t.rotate||r.rotate)&&(e.rotate=(0,e8.k)(t.rotate||0,r.rotate||0,s))}(a,i,this.latestValues,r,h,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,K.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=K.Gt.update(()=>{ss.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=(0,eI.OQ)(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,r){let s=(0,A.S)(e)?e:(0,eI.OQ)(e);return s.start(ru("",s,t,r)),s.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:s,latestValues:n}=e;if(t&&r&&s){if(this!==e&&this.layout&&s&&s7(this.options.animationType,this.layout.layoutBox,s.layoutBox)){r=this.target||S();let t=rP(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let s=rP(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+s}sy(t,r),tp(t,n),rS(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new sC),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;
1return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let s=this.getStack();s&&s.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let s={};r.z&&sB("z",e,s,this.animationValues);for(let t=0;t<sM.length;t++)sB(`rotate${sM[t]}`,e,s,this.animationValues),sB(`skew${sM[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tC(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tC(t?.pointerEvents)||""),this.hasProjected&&!ta(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let i=function(e,t,r){let s="",n=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((n||i||a)&&(s=`translate3d(${n}px, ${i}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:i,rotateY:a,skewX:o,skewY:u}=r;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotate(${n}deg) `),i&&(s+=`rotateX(${i}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),u&&(s+=`skewY(${u}deg) `)}let o=e.x.scale*t.x,u=e.y.scale*t.y;return(1!==o||1!==u)&&(s+=`scale(${o}, ${u})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);r&&(i=r(n,i)),e.transform=i;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,e7){if(void 0===n[t])continue;let{correct:r,applyTo:a,isCSSVariable:o}=e7[t],u="none"===i?n[t]:r(n[t],s);if(a){let t=a.length;for(let r=0;r<t;r++)e[a[r]]=u}else o?this.options.visualElement.renderState.vars[t]=u:e[t]=u}this.options.layoutId&&(e.pointerEvents=s===this?tC(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(sz),this.root.sharedNodes.clear()}}}function sO(e){e.updateLayout()}function sN(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:s}=e.layout,{animationType:n}=e.options,i=t.source!==e.layout.source;if("size"===n)rk(e=>{let s=i?t.measuredBox[e]:t.layoutBox[e],n=rP(s);s.min=r[e].min,s.max=s.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";sg(i?t.measuredBox[e]:t.layoutBox[e],r[e])}else s7(n,t.layoutBox,r)&&rk(s=>{let n=i?t.measuredBox[s]:t.layoutBox[s],a=rP(r[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=P();rS(a,r,t.layoutBox);let o=P();i?rS(o,e.applyTransform(s,!0),t.measuredBox):rS(o,r,t.layoutBox);let u=!sS(a),l=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:i}=s;if(n&&i){let a=e.options.layoutAnchor||void 0,o=S();rI(o,t.layoutBox,n.layoutBox,a);let u=S();rI(u,r,i.layoutBox,a),sI(o,u)||(l=!0),s.options.layoutRoot&&(e.relativeTarget=u,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sq(e){su.value&&sV.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function sY(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sU(e){e.clearSnapshot()}function sz(e){e.clearMeasurements()}function sW(e){e.isLayoutDirty=!0,e.updateLayout()}function sH(e){e.isLayoutDirty=!1}function sX(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function sK(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function s_(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sZ(e){e.resolveTargetDelta()}function sQ(e){e.calcProjection()}
1function sJ(e){e.resetSkewAndRotation()}function s1(e){e.removeLeadSnapshot()}function s2(e,t,r){e.translate=(0,e8.k)(t.translate,0,r),e.scale=(0,e8.k)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function s5(e,t,r,s){e.min=(0,e8.k)(t.min,r.min,s),e.max=(0,e8.k)(t.max,r.max,s)}function s4(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let s6={duration:.45,ease:[.4,0,.1,1]},s0=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),s3=s0("applewebkit/")&&!s0("chrome/")?Math.round:ec.l;function s8(e){e.min=s3(e.min),e.max=s3(e.max)}function s7(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(sE(t)-sE(r)))}function s9(e){return e!==e.root&&e.scroll?.wasRoot}let ne=sG({attachResizeListener:(e,t)=>rD(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),nt={current:void 0},nr=sG({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!nt.current){let e=new ne({});e.mount(window),e.setOptions({layoutScroll:!0}),nt.current=e}return nt.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ns(e,t){let r=rL(e),s=new AbortController;return[r,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function nn(e,t,r){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=s["onHover"+r];n&&K.Gt.postRender(()=>n(t,rU(t)))}class ni extends tH{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[s,n,i]=ns(e,r);return s.forEach(e=>{let r,s=!1,i=!1,a=t=>{r&&(r(t),r=void 0),e.removeEventListener("pointerleave",u)},o=e=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),i&&(i=!1,a(e))},u=e=>{if("touch"!==e.pointerType){if(s){i=!0;return}a(e)}};e.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||rx.x||rx.y)return;i=!1;let a=t(e,s);"function"==typeof a&&(r=a,e.addEventListener("pointerleave",u,n))},n),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),i}(e,(e,t)=>(nn(this.node,t,"Start"),e=>nn(this.node,e,"End"))))}unmount(){}}class na extends tH{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,rH.F)(rD(this.node.current,"focus",()=>this.onFocus()),rD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var no=r(81402);let nu=(e,t)=>!!t&&(e===t||nu(e,t.parentElement)),nl=new WeakSet;function nc(e){return t=>{"Enter"===t.key&&e(t)}}function nd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function nh(e){return rY(e)&&!(rx.x||rx.y)}let nf=new WeakSet;function np(e,t,r){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=s["onTap"+("End"===r?"":r)];n&&K.Gt.postRender(()=>n(t,rU(t)))}class nm extends tH{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:r}=this.node.props;this.unmount=function(e,t,r={}){let[s,n,i]=ns(e,r),a=e=>{let s=e.currentTarget;if(!nh(e)||nf.has(e))return;nl.add(s),r.stopPropagation&&nf.add(e);let i=t(s,e),a={...n,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",u,a),window.removeEventListener("pointercancel",l,a),nl.has(s)&&nl.delete(s),nh(e)&&"function"==typeof i&&i(e,{success:t})},u=e=>{o(e,s===window||s===document||r.useGlobalTarget||nu(s,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",u,a),window.addEventListener("pointercancel",l,a)};
1return s.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),(0,no.s)(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let s=nc(()=>{if(nl.has(r))return;nd(r,"down");let e=nc(()=>{nd(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>nd(r,"cancel"),t)});r.addEventListener("keydown",s,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",s),t)})(e,n)),rE.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(np(this.node,t,"Start"),(e,{success:t})=>np(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:r?.tap===!1})}unmount(){}}let ng=new WeakMap,ny=new WeakMap,nv=e=>{let t=ng.get(e.target);t&&t(e)},nb=e=>{e.forEach(nv)},nw={some:0,all:1};class nx extends tH{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:s="some",once:n}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:nw[s]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,n&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:s}=this.node.getProps(),i=t?r:s;i&&i(e)};this.stopObserver=function(e,t,r){let s=function({root:e,...t}){let r=e||document;ny.has(r)||ny.set(r,{});let s=ny.get(r),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(nb,{root:e,...t})),s[n]}(t);return ng.set(e,r),s.observe(e),()=>{ng.delete(e),s.unobserve(e)}}(this.node.current,i,a)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}let nk=function(e,t){if("undefined"==typeof Proxy)return tW;let r=new Map,s=(r,s)=>tW(r,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,i)=>"create"===i?s:(r.has(i)||r.set(i,tW(i,void 0,e,t)),r.get(i))})}({animation:{Feature:rv},exit:{Feature:rw},inView:{Feature:nx},tap:{Feature:nm},focus:{Feature:na},hover:{Feature:ni},pan:{Feature:sr},drag:{Feature:se,ProjectionNode:nr,MeasureLayout:so},layout:{ProjectionNode:nr,MeasureLayout:so}},(e,t)=>t.isSVG??tb(e)?new tr(t):new tg(t,{allowProjection:e!==ty.Fragment}))},39361:(e,t,r)=>{"use strict";r.d(t,{k:()=>s});let s=(e,t,r)=>e+(t-e)*r},39543:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},39552:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},39847:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("HandleNotFound"===e.error)return new n(e);if("DidNotFound"===e.error)return new i(e);if("DidDeactivated"===e.error)return new a(e)}return e}},40042:(e,t,r)=>{"use strict";r.d(t,{W:()=>s});let s={}},40126:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},40521:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},41267:(e,t,r)=>{"use strict";r.d(t,{yC:()=>ec,yI:()=>B,O4:()=>em,T:()=>ep});var s=r(98734),n=r(44193),i=r(565),a=r(74853);function o(e,t){if(e.split("#").length>2)throw Error("Uri can only have one hash segment");if(e.startsWith("lex:"))return e;if(e.startsWith("#")){if(!t)throw Error(`Unable to resolve uri without anchor: ${e}`);return`${t}${e}`}return`lex:${e}`}function u(e,t){if(void 0!==e.required){if(!Array.isArray(e.required))return void t.addIssue({code:n.eq.invalid_type,received:typeof e.required,expected:"array"});if(void 0===e.properties){e.required.length>0&&t.addIssue({code:n.eq.custom,message:"Required fields defined but no properties defined"});return}for(let r of e.required)void 0===e.properties[r]&&t.addIssue({code:n.eq.custom,message:`Required field "${r}" not defined`})}}let l=s.Yj().refine(i.XP,"Invalid BCP47 language tag"),c=s.g1(l,s.Yj().optional()),d=s.Ik({type:s.eu("boolean"),description:s.Yj().optional(),default:s.zM().optional(),const:s.zM().optional()}),h=s.Ik({type:s.eu("integer"),description:s.Yj().optional(),default:s.ai().int().optional(),minimum:s.ai().int().optional(),maximum:s.ai().int().optional(),enum:s.ai().int().array().optional(),const:s.ai().int().optional()}),f=s.k5(["datetime","uri","at-uri","did","handle","at-identifier","nsid","cid","language","tid","record-key"]),p=s.Ik({type:s.eu("string"),format:f.optional(),description:s.Yj().optional(),default:s.Yj().optional(),minLength:s.ai().int().optional(),maxLength:s.ai().int().optional(),minGraphemes:s.ai().int().optional(),maxGraphemes:s.ai().int().optional(),enum:s.Yj().array().optional(),const:s.Yj().optional(),knownValues:s.Yj().array().optional()}),m=s.Ik({type:s.eu("unknown"),description:s.Yj().optional()}),g=s.gM("type",[d,h,p,m]),y=s.Ik({type:s.eu("bytes"),description:s.Yj().optional(),maxLength:s.ai().optional(),minLength:s.ai().optional()}),v=s.Ik({type:s.eu("cid-link"),description:s.Yj().optional()});s.gM("type",[y,v]);let b=s.Ik({type:s.eu("ref"),description:s.Yj().optional(),ref:s.Yj()}),w=s.Ik({type:s.eu("union"),description:s.Yj().optional(),refs:s.Yj().array(),closed:s.zM().optional()}),x=s.gM("type",[b,w]),k=s.Ik({type:s.eu("blob"),description:s.Yj().optional(),accept:s.Yj().array().optional(),maxSize:s.ai().optional()}),P=s.Ik({type:s.eu("array"),description:s.Yj().optional(),items:s.gM("type",[d,h,p,m,y,v,b,w,k]),minLength:s.ai().int().optional(),maxLength:s.ai().int().optional()}),$=P.merge(s.Ik({items:g})),S=s.Ik({type:s.eu("token"),description:s.Yj().optional()}),A=s.Ik({type:s.eu("object"),description:s.Yj().optional(),required:s.Yj().array().optional(),nullable:s.Yj().array().optional(),properties:s.g1(s.Yj(),s.gM("type",[P,d,h,p,m,y,v,b,w,k]))}).superRefine(u),T=s.E$(s.Ik({type:s.eu("permission"),resource:s.Yj().nonempty()}
1),s.g1(s.Yj(),s.KC([s.YO(s.KC([s.Yj(),s.ai().int(),s.zM()])),s.zM(),s.ai().int(),s.Yj()]).optional())),I=s.Ik({type:s.eu("permission-set"),description:s.Yj().optional(),title:s.Yj().optional(),"title:lang":c.optional(),detail:s.Yj().optional(),"detail:lang":c.optional(),permissions:s.YO(T)}),E=s.Ik({type:s.eu("params"),description:s.Yj().optional(),required:s.Yj().array().optional(),properties:s.g1(s.Yj(),s.gM("type",[$,d,h,p,m]))}).superRefine(u),j=s.Ik({description:s.Yj().optional(),encoding:s.Yj(),schema:s.KC([x,A]).optional()}),D=s.Ik({name:s.Yj(),description:s.Yj().optional()}),C=s.Ik({type:s.eu("query"),description:s.Yj().optional(),parameters:E.optional(),output:j.optional(),errors:D.array().optional()}),R=s.Ik({type:s.eu("procedure"),description:s.Yj().optional(),parameters:E.optional(),input:j.optional(),output:j.optional(),errors:D.array().optional()}),L=s.Ik({type:s.eu("subscription"),description:s.Yj().optional(),parameters:E.optional(),message:s.Ik({description:s.Yj().optional(),schema:w}),errors:D.array().optional()}),V=s.Ik({type:s.eu("record"),description:s.Yj().optional(),key:s.Yj().optional(),record:A}),M=s.L5().superRefine((e,t)=>{if(!e||"object"!=typeof e)return t.addIssue({code:n.eq.custom,message:"Must be an object",fatal:!0}),s.tm;let r=e.type;if(void 0===r)return t.addIssue({code:n.eq.custom,message:"Must have a type",fatal:!0}),s.tm;if("string"!=typeof r)return t.addIssue({code:n.eq.custom,message:"Type property must be a string",fatal:!0}),s.tm;let i=(()=>{switch(r){case"record":return V;case"permission-set":return I;case"query":return C;case"procedure":return R;case"subscription":return L;case"blob":return k;case"array":return P;case"token":return S;case"object":return A;case"boolean":return d;case"integer":return h;case"string":return p;case"bytes":return y;case"cid-link":return v;case"unknown":return m}})();if(!i)return t.addIssue({code:n.eq.custom,message:`Invalid type: ${r} must be one of: record, query, procedure, subscription, blob, array, token, object, boolean, integer, string, bytes, cid-link, unknown`,fatal:!0}),s.tm;let a=i.safeParse(e);if(!a.success)for(let e of a.error.issues)t.addIssue(e)});function F(e){return null!=e&&"object"==typeof e}s.Ik({lexicon:s.eu(1),id:s.Yj().refine(a.z6,{message:"Must be a valid NSID"}),revision:s.ai().optional(),description:s.Yj().optional(),defs:s.g1(s.Yj(),M)}).refine(e=>{for(let[t,r]of Object.entries(e.defs))if("main"!==t&&("record"===r.type||"permission-set"===r.type||"procedure"===r.type||"query"===r.type||"subscription"===r.type))return!1;return!0},{message:"Records, permission sets, procedures, queries, and subscriptions must be the main definition."});class B extends Error{}class G extends Error{}class O extends Error{}var N=r(55824);let q=s.Ik({$type:s.eu("blob"),ref:i.wQ.cid,mimeType:s.Yj(),size:s.ai()}).strict(),Y=s.Ik({cid:s.Yj(),mimeType:s.Yj()}).strict(),U=s.KC([q,Y]);class z{constructor(e,t,r,s){this.ref=e,this.mimeType=t,this.size=r,this.original=s??{$type:"blob",ref:e,mimeType:t,size:r}}static asBlobRef(e){return i.z6.is(e,U)?z.fromJsonRef(e):null}static fromJsonRef(e){return i.z6.is(e,q)?new z(e.ref,e.mimeType,e.size):new z(N.TO.parse(e.cid),e.mimeType,-1,e)}ipld(){return this.original}toJSON(){return(0,i.xt)(this.ipld())}}let W=es(a.Ij,"must be an valid atproto datetime (both RFC-3339 and ISO-8601)"),H=es(a.te,"must be a uri"),X=es(a.NF,"must be a valid at-uri"),K=es(a.G5,"must be a valid did"),_=es(a.nG,"must be a valid handle"),Z=es(a.Wp,"must be a valid did or a handle"),Q=es(a.z6,"must be a valid nsid"),J=es(function(e){try{return N.TO.parse(e),!0}catch{return!1}},"must be a cid string"),ee=es(a.fW,"must be a well-formed BCP 47 language tag"),et=es(a.Ch,"must be a valid TID"),er=es(a.n4,"must be a valid Record Key");function es(e,t){return(r,s)=>e(s)?{success:!0,value:s}:{success:!1,error:new B(`${r} ${t}`)}}function en(e,t,r,s){switch(r.type){case"boolean":var n,a,o,u,l,c,d,h,f,p,m=t,g=r,y=s;let v=typeof y;return"undefined"===v?"boolean"==typeof g.default?{success:!0,value:g.default}:{success:!1,error:new B(`${m} must be a boolean`)}:"boolean"!==v?{success:!1,error:new B(`${m} must be a boolean`)}:"boolean"==typeof g.const&&y!==g.const?{success:!1,error:new B(`${m} must be ${g.const}`)}:{success:!0,value:y};case"integer":return n=t,a=r,void 0===(o=s)?"number"==typeof a.default?{success:!0,value:a.default}:{success:!1,error:new B(`${n} must be an integer`)}:Number.isInteger(o)?"number"==typeof a.const&&o!==a.const?{success:!1,error:new B(`${n} must be ${a.const}`)}:Array.isArray(a.enum)&&!a.enum.includes(o)?{success:!1,error:new B(`${n}
1 must be one of (${a.enum.join("|")})`)}:"number"==typeof a.maximum&&o>a.maximum?{success:!1,error:new B(`${n} can not be greater than ${a.maximum}`)}:"number"==typeof a.minimum&&o<a.minimum?{success:!1,error:new B(`${n} can not be less than ${a.minimum}`)}:{success:!0,value:o}:{success:!1,error:new B(`${n} must be an integer`)};case"string":return function(e,t,r,s){if(void 0===s)return"string"==typeof r.default?{success:!0,value:r.default}:{success:!1,error:new B(`${t} must be a string`)};if("string"!=typeof s)return{success:!1,error:new B(`${t} must be a string`)};if("string"==typeof r.const&&s!==r.const)return{success:!1,error:new B(`${t} must be ${r.const}`)};if(Array.isArray(r.enum)&&!r.enum.includes(s))return{success:!1,error:new B(`${t} must be one of (${r.enum.join("|")})`)};if("number"==typeof r.minLength||"number"==typeof r.maxLength){if("number"==typeof r.minLength&&3*s.length<r.minLength)return{success:!1,error:new B(`${t} must not be shorter than ${r.minLength} characters`)};let e=!1;if(void 0===r.minLength&&"number"==typeof r.maxLength&&3*s.length<=r.maxLength&&(e=!0),!e){let e=(0,i.cr)(s);if("number"==typeof r.maxLength&&e>r.maxLength)return{success:!1,error:new B(`${t} must not be longer than ${r.maxLength} characters`)};if("number"==typeof r.minLength&&e<r.minLength)return{success:!1,error:new B(`${t} must not be shorter than ${r.minLength} characters`)}}}if("number"==typeof r.maxGraphemes||"number"==typeof r.minGraphemes){let e=!1,n=!1;if("number"==typeof r.maxGraphemes&&(e=!(s.length<=r.maxGraphemes)),"number"==typeof r.minGraphemes)if(s.length<r.minGraphemes)return{success:!1,error:new B(`${t} must not be shorter than ${r.minGraphemes} graphemes`)};else n=!0;if(e||n){let e=(0,i.dX)(s);if("number"==typeof r.maxGraphemes&&e>r.maxGraphemes)return{success:!1,error:new B(`${t} must not be longer than ${r.maxGraphemes} graphemes`)};if("number"==typeof r.minGraphemes&&e<r.minGraphemes)return{success:!1,error:new B(`${t} must not be shorter than ${r.minGraphemes} graphemes`)}}}if("string"==typeof r.format)switch(r.format){case"datetime":return W(t,s);case"uri":return H(t,s);case"at-uri":return X(t,s);case"did":return K(t,s);case"handle":return _(t,s);case"at-identifier":return Z(t,s);case"nsid":return Q(t,s);case"cid":return J(t,s);case"language":return ee(t,s);case"tid":return et(t,s);case"record-key":return er(t,s)}return{success:!0,value:s}}(0,t,r,s);case"bytes":return u=t,l=r,(c=s)&&c instanceof Uint8Array?"number"==typeof l.maxLength&&c.byteLength>l.maxLength?{success:!1,error:new B(`${u} must not be larger than ${l.maxLength} bytes`)}:"number"==typeof l.minLength&&c.byteLength<l.minLength?{success:!1,error:new B(`${u} must not be smaller than ${l.minLength} bytes`)}:{success:!0,value:c}:{success:!1,error:new B(`${u} must be a byte array`)};case"cid-link":return d=t,h=s,null===N.TO.asCID(h)?{success:!1,error:new B(`${d} must be a CID`)}:{success:!0,value:h};case"unknown":return f=t,(p=s)&&"object"==typeof p?{success:!0,value:p}:{success:!1,error:new B(`${f} must be an object`)};default:return{success:!1,error:new B(`Unexpected lexicon type: ${r.type}`)}}}function ei(e,t,r,s){if(!Array.isArray(s))return{success:!1,error:new B(`${t} must be an array`)};if("number"==typeof r.maxLength&&s.length>r.maxLength)return{success:!1,error:new B(`${t} must not have more than ${r.maxLength} elements`)};if("number"==typeof r.minLength&&s.length<r.minLength)return{success:!1,error:new B(`${t} must not have fewer than ${r.minLength} elements`)};let n=r.items;for(let r=0;r<s.length;r++){let i=s[r],a=eo(e,`${t}/${r}`,n,i);if(!a.success)return a}return{success:!0,value:s}}function ea(e,t,r,s){if(!F(s))return{success:!1,error:new B(`${t} must be an object`)};let n=s;if("properties"in r&&null!=r.properties)for(let i in r.properties){let a=s[i];if(null===a&&r.nullable?.includes(i))continue;let o=r.properties[i];if(void 0===a&&!r.required?.includes(i)){if("integer"!==o.type&&"boolean"!==o.type&&"string"!==o.type)continue;else if(void 0===o.default)continue}let u=eo(e,`${t}/${i}`,o,a),l=u.success?u.value:a;if(void 0===l){if(r.required?.includes(i))return{success:!1,error:new B(`${t} must have the property "${i}"`)}}else if(!u.success)return u;l!==a&&(n===s&&(n={...s}),n[i]=l)}return{success:!0,value:n}}function eo(e,t,r,s,n=!1){let i;if("union"===r.type){if(!(F(s)&&"$type"in s&&"string"==typeof s.$type))return{success:!1,error:new B(`${t} must be an object which includes the "$type" property`)};if(!eu(r.refs,s.$type))return r.closed?{success:!1,error:new B(`${t} $type must be one of ${r.refs.join(", ")}`)}:{success:!0,value:s};i=e.getDefOrThrow(s.$type)}else i="ref"===r.type?e.getDefOrThrow(r.ref):r;return n?ea(e,t,i,s):function(e,t,r,s){switch(r.type){case"object":return ea(e,t,r,s);case"array":return ei(e,t,r,s);case"blob":return s&&s instanceof z?{success:!0,value:s}:{success:!1,error:new B(`${t} should be a blob ref`)}
1;default:return en(e,t,r,s)}}(e,t,i,s)}let eu=(e,t)=>{let r=o(t);return!!e.includes(r)||(r.endsWith("#main")?e.includes(r.slice(0,-5)):!r.includes("#")&&e.includes(`${r}#main`))};function el(e,t,r,s,n=!1){let i=eo(e,t,r,s,n);if(!i.success)throw i.error;return i.value}class ec{constructor(e){if(this.docs=new Map,this.defs=new Map,e)for(let t of e)this.add(t)}[Symbol.iterator](){return this.docs.values()}add(e){let t=o(e.id);if(this.docs.has(t))throw Error(`${t} has already been registered`);for(let[r,s]of(function e(t,r){for(let s in t)"ref"===t.type?t.ref=o(t.ref,r):"union"===t.type?t.refs=t.refs.map(e=>o(e,r)):Array.isArray(t[s])?t[s]=t[s].map(t=>"string"==typeof t?t.startsWith("#")?o(t,r):t:t&&"object"==typeof t?e(t,r):t):t[s]&&"object"==typeof t[s]&&(t[s]=e(t[s],r));return t}(e,t),this.docs.set(t,e),ed(e)))this.defs.set(r,s)}remove(e){e=o(e);let t=this.docs.get(e);if(!t)throw Error(`Unable to remove "${e}": does not exist`);for(let[e,r]of ed(t))this.defs.delete(e);this.docs.delete(e)}get(e){return e=o(e),this.docs.get(e)}getDef(e){return e=o(e),this.defs.get(e)}getDefOrThrow(e,t){let r=this.getDef(e);if(!r)throw new O(`Lexicon not found: ${e}`);if(t&&!t.includes(r.type))throw new G(`Not a ${t.join(" or ")} lexicon: ${e}`);return r}validate(e,t){if(!F(t))throw new B("Value must be an object");let r=o(e),s=this.getDefOrThrow(r,["record","object"]);if("record"===s.type)return ea(this,"Record",s.record,t);if("object"===s.type)return ea(this,"Object",s,t);throw new G("Definition must be a record or object")}assertValidRecord(e,t){if(!F(t))throw new B("Record must be an object");if(!("$type"in t))throw new B("Record/$type must be a string");let{$type:r}=t;if("string"!=typeof r)throw new B("Record/$type must be a string");let s=o(e);if(o(r)!==s)throw new B(`Invalid $type: must be ${s}, got ${r}`);let n=this.getDefOrThrow(s,["record"]),i=ea(this,"Record",n.record,t);if(!i.success)throw i.error;return i.value}assertValidXrpcParams(e,t){e=o(e);let r=this.getDefOrThrow(e,["query","procedure","subscription"]);if(r.parameters){let e=function(e,t,r,s){let n=F(s)?s:{},i=new Set(r.required??[]),a=n;if("object"==typeof r.properties)for(let s in r.properties){let o=r.properties[s],u="array"===o.type?ei(e,s,o,n[s]):en(e,s,o,n[s]),l=u.success?u.value:n[s],c=void 0===l;if(c&&i.has(s))return{success:!1,error:new B(`${t} must have the property "${s}"`)};if(!c&&!u.success)return u;l!==n[s]&&(a===n&&(a={...n}),a[s]=l)}return{success:!0,value:a}}(this,"Params",r.parameters,t);if(!e.success)throw e.error;return e.value}}assertValidXrpcInput(e,t){e=o(e);let r=this.getDefOrThrow(e,["procedure"]);return r.input?.schema?el(this,"Input",r.input.schema,t,!0):void 0}assertValidXrpcOutput(e,t){e=o(e);let r=this.getDefOrThrow(e,["query","procedure"]);return r.output?.schema?el(this,"Output",r.output.schema,t,!0):void 0}assertValidXrpcMessage(e,t){e=o(e);let r=this.getDefOrThrow(e,["subscription"]);return r.message?.schema?el(this,"Message",r.message.schema,t,!0):void 0}resolveLexUri(e,t){return e=o(e),o(t,e)}}function*ed(e){for(let t in e.defs)yield[`lex:${e.id}#${t}`,e.defs[t]],"main"===t&&(yield[`lex:${e.id}`,e.defs[t]])}let eh=e=>{if(Array.isArray(e))return e.map(e=>eh(e));if(e&&"object"==typeof e){if(e instanceof z)return e.original;if(N.TO.asCID(e)||e instanceof Uint8Array)return e;let t={};for(let r of Object.keys(e))t[r]=eh(e[r]);return t}return e},ef=e=>{if(Array.isArray(e))return e.map(e=>ef(e));if(e&&"object"==typeof e){if(("blob"===e.$type||"string"==typeof e.cid&&"string"==typeof e.mimeType)&&i.z6.is(e,U))return z.fromJsonRef(e);if(N.TO.asCID(e)||e instanceof Uint8Array)return e;let t={};for(let r of Object.keys(e))t[r]=ef(e[r]);return t}return e},ep=e=>JSON.stringify((0,i.xt)(eh(e))),em=e=>{let t;return t=JSON.parse(e),ef((0,i.Rp)(t))}},41275:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},41304:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadQueryString"===e.error?new n(e):e}},41838:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},42408:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidJoinRequest"===e.error?new n(e):e}},42595:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("OwnerCannotLeave"===e.error)return new i(e)}return e}},42771:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},43775:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e);if("MemberLimitReached"===e.error)return new a(e)}return e}},44198:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},44300:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var s=r(40042);let n=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i(e,t){let r=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,u=n.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,s=!1,n=!1,i=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){i.has(t)&&(u.schedule(t),e()),t(a)}let u={schedule:(e,n=!1,a=!1)=>{let o=a&&s?t:r;return n&&i.add(e),o.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0;let i=t;t=r,r=i,t.forEach(o),t.clear(),s=!1,n&&(n=!1,u.process(e))}};return u}(o),e),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:h,update:f,preRender:p,render:m,postRender:g}=u,y=()=>{let n=s.W.useManualTiming,o=n?a.timestamp:performance.now();r=!1,n||(a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,l.process(a),c.process(a),d.process(a),h.process(a),f.process(a),p.process(a),m.process(a),g.process(a),a.isProcessing=!1,r&&t&&(i=!1,e(y))};return{schedule:n.reduce((t,s)=>{let n=u[s];return t[s]=(t,s=!1,o=!1)=>(!r&&(r=!0,i=!0,a.isProcessing||e(y)),n.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<n.length;t++)u[n[t]].cancel(e)},state:a,steps:u}}},44326:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},44526:(e,t,r)=>{"use strict";function s(e){return null!=e&&"object"==typeof e}function n(e,t,r){return"main"===r?e===t:"string"==typeof e&&e.length===t.length+1+r.length&&35===e.charCodeAt(t.length)&&e.startsWith(t)&&e.endsWith(r)}function i(e,t,r){return s(e)&&"$type"in e&&n(e.$type,t,r)}function a(e,t,r){return s(e)&&(!("$type"in e)||void 0===e.$type||n(e.$type,t,r))}function o(e){return function(t){return e(t).success}}r.d(t,{Yi:()=>o,dw:()=>i,ph:()=>a}),r(41267)},44807:(e,t,r)=>{"use strict";r.d(t,{V:()=>o});var s=r(37822),n=r(92419),i=r(9150),a=r(23919);let o={test:(0,a.$)("hsl","hue"),parse:(0,a.q)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+n.KN.transform((0,i.a)(t))+", "+n.KN.transform((0,i.a)(r))+", "+(0,i.a)(s.X4.transform(a))+")"}},44992:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"SetNotFound"===e.error?new n(e):e}},45130:(e,t,r)=>{"use strict";r.d(t,{j:()=>$});var s=r(23656),n=r(78041),i=r(21391),a=r(55389),o=r(24888),u=r(68894),l=r(44807);function c(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var d=r(31739);function h(e,t){return r=>r>0?t:e}var f=r(39361);let p=(e,t,r)=>{let s=e*e,n=r*(t*t-s)+s;return n<0?0:Math.sqrt(n)},m=[u.u,d.B,l.V];function g(e){let t=m.find(t=>t.test(e));if((0,n.$)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===l.V&&(r=function({hue:e,saturation:t,lightness:r,alpha:s}){e/=360,r/=100;let n=0,i=0,a=0;if(t/=100){let s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;
1n=c(o,s,e+1/3),i=c(o,s,e),a=c(o,s,e-1/3)}else n=i=a=r;return{red:Math.round(255*n),green:Math.round(255*i),blue:Math.round(255*a),alpha:s}}(r)),r}let y=(e,t)=>{let r=g(e),s=g(t);if(!r||!s)return h(e,t);let n={...r};return e=>(n.red=p(r.red,s.red,e),n.green=p(r.green,s.green,e),n.blue=p(r.blue,s.blue,e),n.alpha=(0,f.k)(r.alpha,s.alpha,e),d.B.transform(n))},v=new Set(["none","hidden"]);function b(e,t){return r=>(0,f.k)(e,t,r)}function w(e){return"number"==typeof e?b:"string"==typeof e?(0,i.pG)(e)?h:a.y.test(e)?y:P:Array.isArray(e)?x:"object"==typeof e?a.y.test(e)?y:k:h}function x(e,t){let r=[...e],s=r.length,n=e.map((e,r)=>w(e)(e,t[r]));return e=>{for(let t=0;t<s;t++)r[t]=n[t](e);return r}}function k(e,t){let r={...e,...t},s={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(s[n]=w(e[n])(e[n],t[n]));return e=>{for(let t in s)r[t]=s[t](e);return r}}let P=(e,t)=>{let r=o.f.createTransformer(t),i=(0,o.V)(e),a=(0,o.V)(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?v.has(e)&&!a.values.length||v.has(t)&&!i.values.length?function(e,t){return v.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):(0,s.F)(x(function(e,t){let r=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let i=t.types[n],a=e.indexes[i][s[i]],o=e.values[a]??0;r[n]=o,s[i]++}return r}(i,a),a.values),r):((0,n.$)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),h(e,t))};function $(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?(0,f.k)(e,t,r):w(e)(e,t)}},45242:(e,t,r)=>{"use strict";r.d(t,{f:()=>s});let s=(e,t)=>t?1e3/t*e:0},45297:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidAssignment"===e.error?new n(e):e}},45469:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},45584:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},45670:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},46140:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"NotFound"===e.error?new n(e):e}},46337:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},46436:(e,t,r)=>{"use strict";r.d(t,{E:()=>n});var s=r(12115);let n="undefined"!=typeof window?s.useLayoutEffect:s.useEffect},46564:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"UnknownFeed"===e.error?new n(e):e}},46801:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("EnabledJoinLinkAlreadyExists"===e.error)return new n(e);if("InvalidConvo"===e.error)return new i(e);if("InsufficientRole"===e.error)return new a(e)}return e}},46916:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},47438:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"HeadNotFound"===e.error?new n(e):e}},47874:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RecordNotFound"===e.error?new n(e):e}},47896:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},47949:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},48346:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},48895:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});let s=(e,t,r)=>r>t?t:r<e?e:r},49015:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidSwap"===e.error?new n(e):e}},49047:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},49159:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},49236:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},49362:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"DuplicateTemplateName"===e.error?new n(e):e}},49410:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"UnsupportedCollection"===e.error?new n(e):e}},49752:(e,t,r)=>{"use strict";r.d(t,{s:()=>v});var s=r(23656),n=r(48895),i=r(27290),a=r(27424),o=r(45130),u=r(73934);let l=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>u.Gt.update(t,e),stop:()=>(0,u.WG)(t),now:()=>u.uv.isProcessing?u.uv.timestamp:a.k.now()}};var c=r(70561),d=r(56121),h=r(38857),f=r(66876),p=r(33855),m=r(90625),g=r(87671);let y=e=>e/100;class v extends g.q{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==a.k.now()&&this.tick(a.k.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;(0,m.E)(e);let{type:t=d.i,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=e,{keyframes:u}=e,l=t||d.i;l!==d.i&&"number"!=typeof u[0]&&(this.mixKeyframes=(0,s.F)(y,(0,o.j)(u[0],u[1])),u=[0,100]);let c=l({...e,keyframes:u});"mirror"===i&&(this.mirroredGenerator=l({...e,keyframes:[...u].reverse(),velocity:-a})),null===c.calculatedDuration&&(c.calculatedDuration=(0,h.t)(c));let{calculatedDuration:f}=c;this.calculatedDuration=f,this.resolvedDuration=f+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let r,{generator:s,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:u,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:d=0,keyframes:h,repeat:f,repeatType:m,repeatDelay:g,type:y,onUpdate:v,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let w=this.currentTime-d*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?w<0:w>i;this.currentTime=Math.max(w,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let k=this.currentTime,P=s;if(f){let e=Math.min(this.currentTime,i)/u,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&("reverse"===m?(r=1-r,g&&(r-=g/u)):"mirror"===m&&(P=o)),k=(0,n.q)(0,1,r)*u}x?(this.delayState.value=h[0],r=this.delayState):r=P.next(k),a&&!x&&(r.value=a(r.value));let{done:$}=r;x||null===l||($=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&$);return S&&y!==c.B&&(r.value=(0,p.X)(h,this.options,b,this.speed)),v&&v(r.value),S&&this.finish(),r}then(e,t){return this.finished.then(e,t)}get duration(){return(0,i.X)(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+(0,i.X)(e)}get time(){return(0,i.X)(this.currentTime)}set time(e){e=(0,i.f)(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return(0,f.z)(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(a.k.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=l,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(a.k.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}},50125:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},50240:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},50386:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},50785:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},51102:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},51695:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidScopeReference"===e.error?new n(e):e}},51908:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},52071:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},52149:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},52218:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ConvoLocked"===e.error)return new n(e);if("InvalidConvo"===e.error)return new i(e);if("ReplyTargetNotFound"===e.error)return new a(e)}return e}},52223:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RepoNotFound"===e.error?new n(e):e}},52370:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"ActorNotFound"===e.error?new n(e):e}},52375:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},52921:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53046:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53127:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});let s=(0,r(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},53359:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53379:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53478:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidDid"===e.error)return new n(e);if("InternalError"===e.error)return new i(e)}return e}},53846:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53853:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},53942:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},54030:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},54073:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},54166:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},54504:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},54517:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ConvoLocked"===e.error)return new n(e);if("InvalidConvo"===e.error)return new i(e);if("InsufficientRole"===e.error)return new a(e)}return e}},54595:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},55389:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var s=r(68894),n=r(44807),i=r(31739);let a={test:e=>i.B.test(e)||s.u.test(e)||n.V.test(e),parse:e=>i.B.test(e)?i.B.parse(e):n.V.test(e)?n.V.parse(e):s.u.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?i.B.transform(e):n.V.transform(e),getAnimatableNone:e=>{let t=a.parse(e);return t.alpha=0,a.transform(t)}}},55632:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},55665:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},55753:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},55824:(e,t,r)=>{"use strict";r.d(t,{TO:()=>f});var s=r(14766);let n=(0,s.yE)({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5});(0,s.yE)({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),(0,s.yE)({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),(0,s.yE)({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),(0,s.yE)({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),(0,s.yE)({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),(0,s.yE)({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),(0,s.yE)({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),(0,s.yE)({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});let i=(0,s._Q)({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"});(0,s._Q)({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});let a=(0,s._Q)({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"});(0,s._Q)({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var o=r(70663),u=r(12773),l=r(37702);function c(e,t){let{bytes:r,version:s}=e;return 0===s?function(e,t,r){let{prefix:s}=r;if(s!==a.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let n=t.get(s);if(null!=n)return n;{let n=r.encode(e).slice(1);return t.set(s,n),n}}(r,h(e),t??a.encoder):function(e,t,r){let{prefix:s}=r,n=t.get(s);if(null!=n)return n;{let n=r.encode(e);return t.set(s,n),n}}(r,h(e),t??n.encoder)}let d=new WeakMap;function h(e){let t=d.get(e);if(null==t){let t=new Map;return d.set(e,t),t}return t}class f{code;version;multihash;bytes;"/";
1constructor(e,t,r,s){this.code=t,this.version=e,this.multihash=r,this.bytes=s,this["/"]=s}get asCID(){return this}get byteOffset(){return this.bytes.byteOffset}get byteLength(){return this.bytes.byteLength}toV0(){switch(this.version){case 0:return this;case 1:{let{code:e,multihash:t}=this;if(e!==p)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==m)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return f.createV0(t)}default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=u.vt(e,t);return f.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 1. This is a bug please report`)}}equals(e){return f.equals(this,e)}static equals(e,t){return null!=t&&e.code===t.code&&e.version===t.version&&u.aI(e.multihash,t.multihash)}toString(e){return c(this,e)}toJSON(){return{"/":c(this)}}link(){return this}[Symbol.toStringTag]="CID";[Symbol.for("nodejs.util.inspect.custom")](){return`CID(${this.toString()})`}static asCID(e){if(null==e)return null;if(e instanceof f)return e;if(null!=e["/"]&&e["/"]===e.bytes||e.asCID===e){let{version:t,code:r,multihash:s,bytes:n}=e;return new f(t,r,s,n??g(t,r,s.bytes))}if(!0!==e[y])return null;{let{version:t,multihash:r,code:s}=e,n=u.D4(r);return f.create(t,s,n)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");if(!(r.bytes instanceof Uint8Array))throw Error("Invalid digest");switch(e){case 0:if(t===p)return new f(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${p}) block encoding`);case 1:{let s=g(e,t,r.bytes);return new f(e,t,r,s)}default:throw Error("Invalid version")}}static createV0(e){return f.create(0,p,e)}static createV1(e,t){return f.create(1,e,t)}static decode(e){let[t,r]=f.decodeFirst(e);if(0!==r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=f.inspectBytes(e),r=t.size-t.multihashSize,s=(0,o.au)(e.subarray(r,r+t.multihashSize));if(s.byteLength!==t.multihashSize)throw Error("Incorrect length");let n=s.subarray(t.multihashSize-t.digestSize),i=new u.np(t.multihashCode,t.digestSize,n,s);return[0===t.version?f.createV0(i):f.createV1(t.codec,i),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,s]=l.D4(e.subarray(t));return t+=s,r},s=r(),n=p;if(18===s?(s=0,t=0):n=r(),0!==s&&1!==s)throw RangeError(`Invalid CID version ${s}`);let i=t,a=r(),o=r(),u=t+o;return{version:s,codec:n,multihashCode:a,digestSize:o,multihashSize:u-i,size:u}}static parse(e,t){let[r,s]=function(e,t){switch(e[0]){case"Q":{let r=t??a;return[a.prefix,r.decode(`${a.prefix}${e}`)]}case a.prefix:{let r=t??a;return[a.prefix,r.decode(e)]}case n.prefix:{let r=t??n;return[n.prefix,r.decode(e)]}case i.prefix:{let r=t??i;return[i.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32, base36 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}}(e,t),o=f.decode(s);if(0===o.version&&"Q"!==e[0])throw Error("Version 0 CID string must not include multibase prefix");return h(o).set(r,e),o}}let p=112,m=18;function g(e,t,r){let s=l.OY(e),n=s+l.OY(t),i=new Uint8Array(n+r.byteLength);return l.s_(e,i,0),l.s_(t,i,s),i.set(r,n),i}let y=Symbol.for("@ipld/js-cid/CID")},55930:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},56038:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("SubjectHasAction"===e.error)return new n(e);if("DuplicateExternalId"===e.error)return new i(e)}return e}},56121:(e,t,r)=>{"use strict";r.d(t,{i:()=>v});var s=r(36262);let n=(0,s.A)(.42,0,1,1),i=(0,s.A)(0,0,.58,1),a=(0,s.A)(.42,0,.58,1);var o=r(78041),u=r(6500),l=r(32080),c=r(58605),d=r(69809),h=r(34324);let f={linear:u.l,easeIn:n,easeInOut:a,easeOut:i,circIn:d.po,circInOut:d.tn,circOut:d.yT,backIn:c.dg,backInOut:c.ZZ,backOut:c.Sz,anticipate:l.b},p=e=>{if((0,h.D)(e)){(0,o.V)(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,i]=e;return(0,s.A)(t,r,n,i)}return"string"==typeof e?((0,o.V)(void 0!==f[e],`Invalid easing type '${e}
1'`,"invalid-easing-type"),f[e]):e};var m=r(16706),g=r(91225),y=r(39361);function v({duration:e=300,keyframes:t,times:r,ease:s="easeInOut"}){var n;let i=Array.isArray(s)&&"number"!=typeof s[0]?s.map(p):p(s),o={done:!1,value:t[0]},u=(n=r&&r.length===t.length?r:function(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let s=1;s<=t;s++){let n=(0,g.q)(0,t,s);e.push((0,y.k)(r,1,n))}}(t,e.length-1),t}(t),n.map(t=>t*e)),l=(0,m.G)(u,t,{ease:Array.isArray(i)?i:t.map(()=>i||a).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}},56216:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},56217:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},56229:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},56364:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new i(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new o(e)}return e}},56493:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},56641:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},56951:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},57705:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},57976:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},58026:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},58153:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},58168:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},58206:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},58605:(e,t,r)=>{"use strict";r.d(t,{Sz:()=>a,ZZ:()=>u,dg:()=>o});var s=r(36262),n=r(95516),i=r(16815);let a=(0,s.A)(.33,1.53,.69,.99),o=(0,i.G)(a),u=(0,n.V)(o)},58761:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadQueryString"===e.error?new n(e):e}},59394:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},59684:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},59686:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});let s=(0,r(12115).createContext)(null)},60232:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},60296:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});let s=(0,r(12115).createContext)({})},60783:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},61484:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidAssignment"===e.error?new n(e):e}},61600:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},61780:(e,t,r)=>{"use strict";r.d(t,{G7:()=>c});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class l extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function c(e){if(e instanceof s.k$){if("AccountSuspended"===e.error)return new n(e);if("BlockedActor"===e.error)return new i(e);if("BlockedSubject"===e.error)return new a(e);if("MessagesDisabled"===e.error)return new o(e);if("NotFollowedBySender"===e.error)return new u(e);
1if("RecipientNotFound"===e.error)return new l(e)}return e}},61850:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},62085:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},62191:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadQueryString"===e.error?new n(e):e}},62604:(e,t)=>{(()=>{"use strict";var e={d:(t,r)=>{for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};function s(e,t){return void 0===t&&(t="-"),RegExp("^(?!0{4}"+t+"0{2}"+t+"0{2})((?=[0-9]{4}"+t+"(((0[^2])|1[0-2])|02(?="+t+"(([0-1][0-9])|2[0-8])))"+t+"[0-9]{2})|(?=((([13579][26])|([2468][048])|(0[48]))0{2})|([0-9]{2}((((0|[2468])[48])|[2468][048])|([13579][26])))"+t+"02"+t+"29))([0-9]{4})"+t+"(?!((0[469])|11)"+t+"31)((0[1,3-9]|1[0-2])|(02(?!"+t+"3)))"+t+"(0[1-9]|[1-2][0-9]|3[0-1])$").test(e)}function n(e){var t=/\D/.exec(e);return t?t[0]:""}function i(e,t,r){void 0===t&&(t=":"),void 0===r&&(r=!1);var s,i=RegExp("^([0-1]|2(?=([0-3])|4"+t+"00))[0-9]"+t+"[0-5][0-9]("+t+"([0-5]|6(?=0))[0-9])?(.[0-9]{1,9})?$");if(!r||!/[Z+\-]/.test(e))return i.test(e);if(/Z$/.test(e))return i.test(e.replace("Z",""));var a=e.includes("+"),o=e.split(/[+-]/),u=o[0],l=o[1];return i.test(u)&&(void 0===(s=n(l))&&(s=":"),new RegExp(a?"^(0(?!(2"+s+"4)|0"+s+"3)|1(?=([0-1]|2(?="+s+"[04])|[34](?="+s+"0))))([03469](?="+s+"[03])|[17](?="+s+"0)|2(?="+s+"[04])|5(?="+s+"[034])|8(?="+s+"[04]))"+s+"([03](?=0)|4(?=5))[05]$":"^(0(?=[^0])|1(?=[0-2]))([39](?="+s+"[03])|[0-24-8](?="+s+"00))"+s+"[03]0$").test(l))}function a(e){var t=e.split("T"),r=t[0],a=t[1],o=s(r,n(r));if(!a)return!1;var u,l=Array.isArray(u=a.match(/([^Z+\-\d])(?=\d+\1)/))?u[0]:"";return o&&i(a,l,!0)}function o(e,t){return void 0===t&&(t="-"),RegExp("^[0-9]{4}"+t+"(0(?=[^0])|1(?=[0-2]))[0-9]$").test(e)}for(var u in e.r(r),e.d(r,{isValidDate:()=>s,isValidISODateString:()=>a,isValidTime:()=>i,isValidYearMonth:()=>o}),r)t[u]=r[u];r.__esModule&&Object.defineProperty(t,"__esModule",{value:!0})})()},63520:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},63904:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},63920:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("AccountTakedown"===e.error)return new n(e);if("AuthFactorTokenRequired"===e.error)return new i(e)}return e}},64170:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new i(e)}return e}},64245:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},65159:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e)}return e}},65979:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},66876:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});var s=r(45242);function n(e,t,r){let n=Math.max(t-5,0);return(0,s.f)(r-e(n),t-n)}},66943:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},67055:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},67886:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},68046:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},68399:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"NotFound"===e.error?new n(e):e}},68894:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var s=r(31739);let n={test:(0,r(23919).$)("#"),parse:function(e){let t="",r="",s="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(s,16),alpha:n?parseInt(n,16)/255:1}},transform:s.B.transform}},68948:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},69069:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},69254:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},69472:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},69809:(e,t,r)=>{"use strict";r.d(t,{po:()=>i,tn:()=>o,yT:()=>a});var s=r(95516),n=r(16815);let i=e=>1-Math.sin(Math.acos(e)),a=(0,n.G)(i),o=(0,s.V)(i)},69892:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("InvalidDid"===e.error)return new n(e);if("InvalidLimit"===e.error)return new i(e);if("InvalidCursor"===e.error)return new a(e);if("InternalError"===e.error)return new o(e)}return e}},70476:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},70561:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var s=r(88256),n=r(66876);function i({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:u,min:l,max:c,restDelta:d=.5,restSpeed:h}){let f,p,m=e[0],g={done:!1,value:m},y=r*t,v=m+y,b=void 0===u?v:u(v);b!==v&&(y=b-m);let w=e=>-y*Math.exp(-e/i),x=e=>b+w(e),k=e=>{let t=w(e),r=x(e);g.done=Math.abs(t)<=d,g.value=g.done?b:r},P=e=>{let t;if(t=g.value,void 0!==l&&t<l||void 0!==c&&t>c){var r;f=e,p=(0,s.o)({keyframes:[g.value,(r=g.value,void 0===l?c:void 0===c||Math.abs(l-r)<Math.abs(c-r)?l:c)],velocity:(0,n.z)(x,e,g.value),damping:a,stiffness:o,restDelta:d,restSpeed:h})}};return P(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==f||(t=!0,k(e),P(e)),void 0!==f&&e>=f)?p.next(e-f):(t||k(e),g)}}}},70973:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},70993:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},71055:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"HandleNotFound"===e.error?new n(e):e}},71635:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},72140:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},72439:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},72441:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},72646:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},73030:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},73142:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});let s=e=>"object"==typeof e&&null!==e},73314:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},73574:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},73934:(e,t,r)=>{"use strict";r.d(t,{Gt:()=>n,PP:()=>o,WG:()=>i,uv:()=>a});var s=r(6500);let{schedule:n,cancel:i,state:a,steps:o}=(0,r(44300).I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:s.l,!0)},74225:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},74293:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},74641:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},74653:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RuleNotFound"===e.error?new n(e):e}},74853:(e,t,r)=>{"use strict";r.d(t,{Gz:()=>E,NP:()=>n,Wp:()=>d,NF:()=>P,Ij:()=>L,G5:()=>i,nG:()=>u,fW:()=>B,z6:()=>m,n4:()=>x,Ch:()=>O,te:()=>N});let s=/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/;function n(e){if(!s.test(e))throw new a("DID didn't validate via regex");if(e.length>2048)throw new a("DID is too long (2048 chars max)")}function i(e){return e.length<=2048&&s.test(e)}class a extends Error{}let o=/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?$/;function u(e){return e.length<=253&&o.test(e)}class l extends Error{}function c(e){try{if(e&&"string"==typeof e)if(e.startsWith("did:"))n(e);else{if(e.length>253)throw new l("Handle is too long (253 chars max)");if(!o.test(e))throw new l("Handle didn't validate via regex")}else throw TypeError("Identifier must be a non-empty string")}catch(e){throw new l("Invalid DID or handle",{cause:e})}}function d(e){return!!e&&"string"==typeof e&&(e.startsWith("did:")?i(e):u(e))}function h(e){return{success:!0,value:e}}function f(e){return{success:!1,message:e}}function p(e){let t=function(e){var t,r,s;if(e.length>317)return f("NSID is too long (317 chars max)");if(t=e,!/^[a-zA-Z0-9.-]*$/.test(t))return f("Disallowed characters in NSID (ASCII letters, digits, dashes, periods only)");let n=e.split(".");if(n.length<3)return f("NSID needs at least three parts");for(let e of n){if(e.length<1)return f("NSID parts can not be empty");if(e.length>63)return f("NSID part too long (max 63 chars)");if(45===e.charCodeAt(0)||45===(r=e).charCodeAt(r.length-1))return f("NSID parts can not start or end with hyphen")}return g(n[0])?f("NSID first part may not start with a digit"):!g(s=n[n.length-1])&&!s.includes("-")?h(n):f("NSID name part must be only letters and digits (and no leading digit)")}(e);if(!t.success)throw new y(t.message)}function m(e){var t;return((t=e).length>317?f("NSID is too long (317 chars max)"):t.length<5||!/^[a-zA-Z](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?:\.[a-zA-Z](?:[a-zA-Z0-9]{0,62})?)$/.test(t)?f("NSID didn't validate via regex"):h(t)).success}function g(e){let t=e.charCodeAt(0);return t>=48&&t<=57}class y extends Error{}let v=new Set([".",".."]),b=/^[a-zA-Z0-9_~.:-]{1,512}$/;function w(e){if(e.length>512||e.length<1)throw new k("record key must be 1 to 512 characters");if(v.has(e))throw new k('record key can not be "." or ".."');if(!b.test(e))throw new k("record key syntax not valid (regex)")}function x(e){return e.length>=1&&e.length<=512&&b.test(e)&&!v.has(e)}class k extends Error{}function P(e,t){return function(e,t){if("string"!=typeof e)return f("ATURI must be a string");if(e.length>8192)return f("ATURI exceeds maximum length");if(e.match($))return f("Disallowed characters in ATURI (ASCII)");let r=e.match(S),s=r?.groups;if(!s){if(t?.detailed){if(!e.startsWith("at://"))return f('ATURI must start with "at://"');if(e.includes(" "))return f("ATURI can not contain spaces");if(e.includes("//",5))return f("ATURI can not have empty path segments");let t=e.indexOf("/",5);if(-1!==t){let r=e.indexOf("#"),s=-1!==r?r:e.length,n=e.indexOf("/",t+1);if(-1!==n&&n!==s-1)return f("ATURI can not have more than two path segments")}}return f("ATURI does not match expected format")}if(!d(s.authority))return f("ATURI has invalid authority");if(null!=s.collection&&!m(s.collection))return f("ATURI has invalid collection");if(null!=s.hash){let e=function(e,t){if(!A.test(e))return f("Invalid JSON pointer");let r=function(e){try{return h(decodeURIComponent(e))}catch{return f("Invalid percent-encoding")}}(e);return r.success||t?.strict!==!1?r:h(e)}(s.hash,t);if(!e.success)return f(`ATURI has invalid fragment (${e.message})`);s.hash=e.value}if(t?.strict!==!1){if(null!=s.trailingSlash)return f("ATURI can not have a trailing slash");if(null!=s.query)return f("ATURI query part is not allowed");
1if(null!=s.rkey&&!x(s.rkey))return f("ATURI has invalid record key")}return h(s)}(e,t).success}let $=/[^a-zA-Z0-9._~:@!$&'()*+,;=%/\\[\]#?-]/,S=/^(?<uri>at:\/\/(?<authority>[^/?#\s]+)(?:\/(?<collection>[^/?#\s]+)(?:\/(?<rkey>[^/?#\s]+))?)?(?<trailingSlash>\/)?)(?:\?(?<query>[^#\s]*))?(?:#(?<hash>[^\s]*))?$/,A=/^\/[a-zA-Z0-9._~:@!$&')(*+,;=%[\]/-]*$/,T=/^(at:\/\/)?((?:did:[a-z0-9:%-]+)|(?:[a-z0-9][a-z0-9.:-]*))(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i,I=/^(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;class E{constructor(e,t){let r=void 0!==t?"string"==typeof t?Object.assign(j(t),D(e)):Object.assign({host:t.host},D(e)):j(e);c(r.host),this.hash=r.hash??"",this.host=r.host,this.pathname=r.pathname??"",this.searchParams=r.searchParams}static make(e,t,r){let s=e;return t&&(s+="/"+t),r&&(s+="/"+r),new E(s)}get protocol(){return"at:"}get origin(){return`at://${this.host}`}get did(){let{host:e}=this;if(e.startsWith("did:"))return e;throw new a(`AtUri "${this}" does not have a DID hostname`)}get hostname(){return this.host}set hostname(e){c(e),this.host=e}get search(){return this.searchParams.toString()}set search(e){this.searchParams=new URLSearchParams(e)}get collection(){return this.pathname.split("/").filter(Boolean)[0]||""}get collectionSafe(){let{collection:e}=this;return p(e),e}set collection(e){p(e),this.unsafelySetCollection(e)}unsafelySetCollection(e){let t=this.pathname.split("/").filter(Boolean);t[0]=e,this.pathname=t.join("/")}get rkey(){return this.pathname.split("/").filter(Boolean)[1]||""}get rkeySafe(){let{rkey:e}=this;return w(e),e}set rkey(e){w(e),this.unsafelySetRkey(e)}unsafelySetRkey(e){let t=this.pathname.split("/").filter(Boolean);t[0]||="undefined",t[1]=e,this.pathname=t.join("/")}get href(){return this.toString()}toString(){let e=this.pathname;for(e&&!e.startsWith("/")&&(e=`/${e}`);e.endsWith("/");)e=e.slice(0,-1);let t="";this.searchParams.size&&(t=`?${this.searchParams.toString()}`);let r=this.hash;return"#"===r?r="":r&&!r.startsWith("#")&&(r=`#${r}`),`at://${this.host}${e}${t}${r}`}}function j(e){let t=e.match(T);if(!t)throw Error(`Invalid AT uri: ${e}`);return{host:t[2],hash:t[5],pathname:t[3],searchParams:new URLSearchParams(t[4])}}function D(e){let t=e.match(I);if(!t)throw Error(`Invalid path: ${e}`);return{hash:t[3],pathname:t[1],searchParams:new URLSearchParams(t[2])}}var C=r(62604);let{isValidISODateString:R}=(e=>e.default??e)(r.t(C,2));function L(e){var t;if("string"!=typeof e)return!1;try{if(R(e))return!0}catch{}return("string"!=typeof(t=e)?V("datetime must be a string"):t.length>64?V("datetime is too long (64 chars max)"):t.endsWith("-00:00")?V('datetime can not use "-00:00" for UTC timezone'):M.test(t)?function(e){let t=e.getUTCFullYear();return Number.isNaN(t)?V("datetime did not parse as ISO 8601"):t<0?V("datetime normalized to a negative time"):t>9999?V("datetime year is too far in the future"):{success:!0,value:e}}(new Date(t)):V("datetime is not in a valid format (must match RFC 3339 & ISO 8601 with 'Z' or \xb1hh:mm timezone)")).success}let V=e=>({success:!1,message:e}),M=/^(?<full_year>[0-9]{4})-(?<date_month>0[1-9]|1[012])-(?<date_mday>[0-2][0-9]|3[01])T(?<time_hour>[0-1][0-9]|2[0-3]):(?<time_minute>[0-5][0-9]):(?<time_second>[0-5][0-9]|60)(?<time_secfrac>\.[0-9]+)?(?<time_offset>Z|(?<time_numoffset>[+-](?:[0-1][0-9]|2[0-3]):[0-5][0-9]))$/,F=/^((?<grandfathered>(en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|n
1o-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((?<language>([A-Za-z]{2,3}(-(?<extlang>[A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-(?<script>[A-Za-z]{4}))?(-(?<region>[A-Za-z]{2}|[0-9]{3}))?(-(?<variant>[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-(?<extension>[0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(?<privateUseA>[xX](-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>[xX](-[A-Za-z0-9]{1,8})+))$/;function B(e){return F.test(e)}let G=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/;function O(e){return 13===e.length&&G.test(e)}function N(e){return/^\w+:(?:\/\/)?[^\s/][^\s]*$/.test(e)}},75014:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},75601:(e,t,r)=>{"use strict";r.d(t,{xQ:()=>i});var s=r(12115),n=r(59686);function i(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,s.useContext)(n.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:i,register:a}=t,o=(0,s.useId)();(0,s.useEffect)(()=>{if(e)return a(o)},[e]);let u=(0,s.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!r&&i?[!1,u]:[!0]}},75936:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},76518:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("ReportNotFound"===e.error)return new n(e);if("ReportClosed"===e.error)return new i(e);if("AlreadyInTargetQueue"===e.error)return new a(e);if("QueueNotFound"===e.error)return new o(e);if("QueueDisabled"===e.error)return new u(e)}return e}},76674:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},77009:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},77125:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},77227:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},77301:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},78032:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},78041:(e,t,r)=>{"use strict";r.d(t,{$:()=>s,V:()=>n}),r(95704);let s=()=>{},n=()=>{}},78052:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidConvo"===e.error?new n(e):e}},78346:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("ReactionNotAllowed"===e.error)return new i(e);if("ReactionMessageDeleted"===e.error)return new a(e);if("ReactionInvalidValue"===e.error)return new o(e)}return e}},78480:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},78482:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},78782:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},79248:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},79256:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},79447:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidUrl"===e.error)return new n(e);if("RuleAlreadyExists"===e.error)return new i(e)}return e}},79559:(e,t,r)=>{"use strict";r.d(t,{G7:()=>p});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class l extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class c extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class d extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class h extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class f extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function p(e){if(e instanceof s.k$){if("AccountSuspended"===e.error)return new n(e);if("BlockedActor"===e.error)return new i(e);if("BlockedSubject"===e.error)return new a(e);if("ConvoLocked"===e.error)return new o(e);if("InsufficientRole"===e.error)return new u(e);
1if("InvalidConvo"===e.error)return new l(e);if("MemberLimitReached"===e.error)return new c(e);if("NotFollowedBySender"===e.error)return new d(e);if("RecipientNotFound"===e.error)return new h(e);if("UserForbidsGroups"===e.error)return new f(e)}return e}},79587:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("MemberNotFound"===e.error)return new n(e);if("CannotDeleteSelf"===e.error)return new i(e)}return e}},79606:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e);if("NoJoinLink"===e.error)return new a(e);if("LinkAlreadyEnabled"===e.error)return new o(e)}return e}},79970:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},79993:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},80062:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},80112:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},80449:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},80732:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},80975:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"DraftLimitReached"===e.error?new n(e):e}},81386:(e,t,r)=>{"use strict";r.d(t,{g6n:()=>G});var s,n=r(41267),i=r(36835),a=r(74853),o=r(565),u=r(11276),l=r(98734);function c(e){return e.trim().replace(/^#(?!\ufe0f)/,"").replace(/[\r\n\u00AD\u2060\u200D\u200C\u200B]+/,"")}function d(e){switch(new a.Gz(e).collection){case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";default:return"unknown"}}function h(e){if(!e.id)throw Error("Saved feed must have an `id` - use a TID");if(["feed","list"].includes(e.type)){let t=new a.Gz(e.value),r="app.bsky.feed.generator"===t.collection,s="app.bsky.graph.list"===t.collection;if("feed"===e.type&&!r)throw Error(`Saved feed of type 'feed' must be a feed, got ${t.collection}`);if("list"===e.type&&!s)throw Error(`Saved feed of type 'list' must be a list, got ${t.collection}`)}}let f=l.Ik({id:l.Yj().max(64),completed:l.zM(),data:l.Yj().max(300).optional(),expiresAt:l.Yj().datetime().optional()}).strict();var p=r(73670),m=r(44526);new TextEncoder,new TextDecoder;let g={porn:"hide",sexual:"warn",nudity:"ignore","graphic-media":"warn"};!function(e){e[e.High=0]="High",e[e.Medium=1]="Medium",e[e.Low=2]="Low"}(s||(s={})),i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs,i.dK.AppBskyAgeassuranceDefs;class y{#e=!1;#t=new Set;get acquired(){return this.#e}acquireAsync({timeout:e}={}){let t,r;return this.#e?null==e?new Promise(e=>{this.#t.add(e)}):Promise.race([new Promise(e=>{t=()=>{clearTimeout(r),e()},this.#t.add(t)}),new Promise((s,n)=>{r=setTimeout(()=>{this.#t.delete(t),n(Error("Timed out waiting for lock"))},e)})]):(this.#e=!0,Promise.resolve())}tryAcquire(){return!this.#e&&(this.#e=!0,!0)}release(){if(!this.#e)throw Error("Cannot release an unacquired lock");if(this.#t.size>0){let[e]=this.#t;this.#t.delete(e),e()}else this.#e=!1}}let v=(0,m.Yi)(p.zHR.validateRecord),b=(0,m.Yi)(p.ykY.validateAdultContentPref),w=(0,m.Yi)(p.ykY.validateBskyAppStatePref),x=(0,m.Yi)(p.ykY.validateContentLabelPref),k=(0,m.Yi)(p.ykY.validateFeedViewPref),P=(0,m.Yi)(p.ykY.validateHiddenPostsPref),$=(0,m.Yi)(p.ykY.validateInterestsPref),S=(0,m.Yi)(p.ykY.validateLabelersPref),A=(0,m.Yi)(p.ykY.validateMutedWordsPref),T=(0,m.Yi)(p.ykY.validatePersonalDetailsPref),I=(0,m.Yi)(p.ykY.validateDeclaredAgePref),E=(0,m.Yi)(p.ykY.validatePostInteractionSettingsPref),j=(0,m.Yi)(p.ykY.validateSavedFeedsPref),D=(0,m.Yi)(p.ykY.validateSavedFeedsPrefV2),C=(0,m.Yi)(p.ykY.validateThreadViewPref),R=(0,m.Yi)(p.ykY.validateVerificationPrefs),L=(0,m.Yi)(p.ykY.validateLiveEventPreferences);function V(e){if(!e.startsWith("did:")||e.length<8||e.length>2048)return!1;let t=e.indexOf(":",4);return t>4&&t<e.length-1}function M(e){if(!V(e))throw TypeError(`Invalid DID: ${e}`);return e}let F={hideReplies:!1,hideRepliesByUnfollowed:!0,hideRepliesByLikeCount:0,hideReposts:!1,hideQuotePosts:!1},B={sort:"hotness"};class G extends u.hE{static{this.appLabelers=["did:plc:ar7c4by46qjdydhdevvrndac"]}static configure(e){e.appLabelers&&(this.appLabelers=e.appLabelers.map(M))}get xrpc(){return this}constructor(e){let t="object"==typeof e&&"fetchHandler"in e?e:{did:void 0,fetchHandler:(0,u.T2)(e)};super((e,t)=>
1{let r=new Headers(t?.headers);return this.proxy&&!r.has("atproto-proxy")&&r.set("atproto-proxy",this.proxy),r.set("atproto-accept-labelers",[...this.appLabelers.map(e=>`${e};redact`),...this.labelers,r.get("atproto-accept-labelers")?.trim()].filter(Boolean).join(", ")),this.sessionManager.fetchHandler(e,{...t,headers:r})},i.jo),this.com=new p.Lz0(this),this.app=new p.hzS(this),this.chat=new p.qIH(this),this.tools=new p.Zp3(this),this.labelers=[],this.uploadBlob=(e,t)=>this.com.atproto.repo.uploadBlob(e,t),this.resolveHandle=(e,t)=>this.com.atproto.identity.resolveHandle(e,t),this.updateHandle=(e,t)=>this.com.atproto.identity.updateHandle(e,t),this.createModerationReport=(e,t)=>this.com.atproto.moderation.createReport(e,t),this.getTimeline=(e,t)=>this.app.bsky.feed.getTimeline(e,t),this.getAuthorFeed=(e,t)=>this.app.bsky.feed.getAuthorFeed(e,t),this.getActorLikes=(e,t)=>this.app.bsky.feed.getActorLikes(e,t),this.getPostThread=(e,t)=>this.app.bsky.feed.getPostThread(e,t),this.getPost=e=>this.app.bsky.feed.post.get(e),this.getPosts=(e,t)=>this.app.bsky.feed.getPosts(e,t),this.getLikes=(e,t)=>this.app.bsky.feed.getLikes(e,t),this.getRepostedBy=(e,t)=>this.app.bsky.feed.getRepostedBy(e,t),this.getFollows=(e,t)=>this.app.bsky.graph.getFollows(e,t),this.getFollowers=(e,t)=>this.app.bsky.graph.getFollowers(e,t),this.getProfile=(e,t)=>this.app.bsky.actor.getProfile(e,t),this.getProfiles=(e,t)=>this.app.bsky.actor.getProfiles(e,t),this.getSuggestions=(e,t)=>this.app.bsky.actor.getSuggestions(e,t),this.searchActors=(e,t)=>this.app.bsky.actor.searchActors(e,t),this.searchActorsTypeahead=(e,t)=>this.app.bsky.actor.searchActorsTypeahead(e,t),this.listNotifications=(e,t)=>this.app.bsky.notification.listNotifications(e,t),this.countUnreadNotifications=(e,t)=>this.app.bsky.notification.getUnreadCount(e,t),this.getLabelers=(e,t)=>this.app.bsky.labeler.getServices(e,t),this.#r=new y,this.sessionManager=t}clone(){return this.copyInto(new G(this.sessionManager))}copyInto(e){for(let[t,r]of(e.configureLabelers(this.labelers),e.configureProxy(this.proxy??null),e.clearHeaders(),this.headers))e.setHeader(t,r);return e}withProxy(e,t){let r=this.clone();return r.configureProxy(`${M(t)}#${e}`),r}get appLabelers(){return this.constructor.appLabelers}configureLabelers(e){this.labelers=e.map(M)}configureLabelersHeader(e){this.configureLabelers(e.filter(V))}configureProxy(e){null===e?this.proxy=void 0:this.proxy=function(e){if(!function(e){var t;let{length:r,0:s,1:n}=e.split("#");return 2===r&&V(s)&&!(t=n).includes(" ")&&!t.includes("#")}(e))throw TypeError(`Invalid DID reference: ${e} (must be of the form did:example:alice#service)`);return e}(e)}configureProxyHeader(e,t){V(t)&&this.configureProxy(`${t}#${e}`)}get did(){let{did:e}=this.sessionManager;if(e)return(0,a.NP)(e),e}get accountDid(){return this.assertDid}get assertDid(){return this.assertAuthenticated(),this.did}assertAuthenticated(){if(!this.did)throw Error("Not logged in")}get api(){return this}async getLabelDefinitions(e){var t;let r=[...this.appLabelers];(t=e)&&"object"==typeof t&&"moderationPrefs"in t&&N(t.moderationPrefs)?r.push(...e.moderationPrefs.labelers.map(e=>e.did)):N(e)?r.push(...e.labelers.map(e=>e.did)):r.push(...e);let s=await this.getLabelers({dids:r,detailed:!0}),n={};if(s.data)for(let e of s.data.views)n[e.creator.did]=function(e){return(e.policies?.labelValueDefinitions||[]).filter((0,m.Yi)(p.r2t.Zy)).map(t=>(function(e,t){let r={account:{},profile:{},content:{}},s="alert"===e.severity?"alert":"inform"===e.severity?"inform":void 0;"content"===e.blurs?(r.account.profileList=s,r.account.profileView=s,r.account.contentList="blur",r.account.contentView=e.adultOnly?"blur":s,r.profile.profileList=s,r.profile.profileView=s,r.content.contentList="blur",r.content.contentView=e.adultOnly?"blur":s):"media"===e.blurs?(r.account.profileList=s,r.account.profileView=s,r.account.avatar="blur",r.account.banner="blur",r.profile.profileList=s,r.profile.profileView=s,r.profile.avatar="blur",r.profile.banner="blur",r.content.contentMedia="blur"):"none"===e.blurs&&(r.account.profileList=s,r.account.profileView=s,r.account.contentList=s,r.account.contentView=s,r.profile.profileList=s,r.profile.profileView=s,r.content.contentList=s,r.content.contentView=s);let n="warn";("hide"===e.defaultSetting||"ignore"===e.defaultSetting)&&(n=e.defaultSetting);let i=["no-self"];return e.adultOnly&&i.push("adult"),{...e,definedBy:t,configurable:!0,defaultSetting:n,flags:i,behaviors:r}})(t,e.creator.did))}(e);return n}async post(e){return e.createdAt||=new Date().toISOString(),this.app.bsky.feed.post.create({repo:this.accountDid},e)}async deletePost(e){this.assertAuthenticated();let t=new a.Gz(e);return this.app.bsky.feed.post.delete({repo:t.hostname,rkey:t.rkey})}async like(e,t,r){return this.app.bsky.feed.like.create({repo:this.accountDid},{subject:{uri:e,cid:t},createdAt:new Date().toISOString(),via:r})}async deleteLike(e){this.assertAuthenticated();let t=new a.Gz(e);return this.app.bsky.feed.like.delete({repo:t.hostname,rkey:t.rkey})}async repost(e,t,r){return this.app.bsky.feed.repost.create({repo:this.accountDid},{subject:{uri:e,cid:t},createdAt:new Date().toISOString(),via:r})}async deleteRepost(e){this.assertAuthenticated();let t=new a.Gz(e);return this.app.bsky.feed.repost.delete({repo:t.hostname,rkey:t.rkey})}async follow(e,t){return this.app.bsky.graph.follow.create({repo:this.accountDid},{subject:e,createdAt:new Date().toISOString(),via:t})}async deleteFollow(e){this.assertAuthenticated();let t=new a.Gz(e);return this.app.bsky.graph.follow.delete({repo:t.hostname,rkey:t.rkey})}async upsertProfile(e){let t=async()=>{let t=this.assertDid,r="app.bsky.actor.profile",s=await this.com.atproto.repo.getRecord({repo:t,collection:r,rkey:"self"}).catch(e=>void 0),n=s&&v(s.data.value)?s.data.value:void 0,i=await e(n),a=p.zHR.validateRecord({$type:r,...i});if(!a.success)throw a.error;await this.com.atproto.repo.putRecord({repo:t,collection:r,rkey:"self",record:a.value,swapRecord:s?.data.cid||null})};return(0,o.L5)(t,{maxRetries:5,retryable:e=>e instanceof p.zVK.z})}async mute(e,t={}){return this.app.bsky.graph.muteActor({actor:e,onlyReposts:t.onlyReposts,onlyQuoteposts:t.onlyQuoteposts})}async unmute(e){return this.app.bsky.graph.unmuteActor({actor:e})}async muteModList(e){return this.app.bsky.graph.muteActorList({list:e})}async unmuteModList(e){return this.app.bsky.graph.unmuteActorList({list:e})}async blockModList(e){return this.app.bsky.graph.listblock.create({repo:this.accountDid},{subject:e,createdAt:new Date().toISOString()})}async unblockModList(e){let t=this.accountDid,r=await this.app.bsky.graph.getList({list:e,limit:1}),s=r.data.list.viewer?.blocked;if(s){let{rkey:e}=new a.Gz(s);return this.app.bsky.graph.listblock.delete({repo:t,rkey:e})}}async updateSeenNotifications(e=new Date().toISOString()){return this.app.bsky.notification.updateSeen({seenAt:e})}async getPreferences(){let e={feeds:{saved:void 0,pinned:void 0},savedFeeds:void 0,feedViewPrefs:{home:{...F}},threadViewPrefs:{...B},moderationPrefs:{adultContentEnabled:!1,labels:{...g},labelers:this.appLabelers.map(e=>({did:e,labels:{}})),mutedWords:[],hiddenPosts:[]},birthDate:void 0,interests:{tags:[]},bskyAppState:{queuedNudges:[],activeProgressGuide:void 0,nuxs:[]},postInteractionSettings:{threadgateAllowRules:void 0,postgateEmbeddingRules:void 0},verificationPrefs:{hideBadges:!1},liveEventPreferences:{hiddenFeedIds:[],hideAllFeeds:!1}},t=await this.app.bsky.actor.getPreferences({}),r=[];for(let s of t.data.preferences)if(b(s))e.moderationPrefs.adultContentEnabled=s.enabled;else if(x(s)){let e=function(e){let t=e.visibility;return"show"===t&&(t="ignore"),{...e,visibility:t}}(s);r.push(e)}else if(S(s))e.moderationPrefs.labelers=this.appLabelers.map(e=>({did:e,labels:{}})).concat(s.labelers.map(e=>({...e,labels:{}})));else if(D(s))e.savedFeeds=s.items;else if(j(s))e.feeds.saved=s.saved,e.feeds.pinned=s.pinned;else if(T(s))s.birthDate&&(e.birthDate=new Date(s.birthDate));else if(I(s)){let{$type:t,...r}=s;e.declaredAge=r}else if(k(s)){let{$type:t,feed:r,...n}=s;e.feedViewPrefs[r]={...F,...n}}else if(C(s)){let{$type:t,...r}=s;e.threadViewPrefs={...e.threadViewPrefs,...r}}else if($(s)){let{$type:t,...r}=s;e.interests={...e.interests,...r}}else A(s)?(e.moderationPrefs.mutedWords=s.items,e.moderationPrefs.mutedWords.length&&(e.moderationPrefs.mutedWords=e.moderationPrefs.mutedWords.map(e=>(e.actorTarget=e.actorTarget||"all",e)))):P(s)?e.moderationPrefs.hiddenPosts=s.items:w(s)?(e.bskyAppState.queuedNudges=s.queuedNudges||[],e.bskyAppState.activeProgressGuide=s.activeProgressGuide,e.bskyAppState.nuxs=s.nuxs||[],void 0!==s.isBetaUser&&(e.bskyAppState.isBetaUser=s.isBetaUser)):E(s)?(e.postInteractionSettings.threadgateAllowRules=s.threadgateAllowRules,e.postInteractionSettings.postgateEmbeddingRules=s.postgateEmbeddingRules):R(s)?e.verificationPrefs={hideBadges:s.hideBadges}:L(s)&&(e.liveEventPreferences={hiddenFeedIds:s.hiddenFeedIds||[],hideAllFeeds:s.hideAllFeeds??!1});if(null==e.savedFeeds){let{saved:t,pinned:r}=e.feeds;if(t&&r){let s=new Map;for(let e of(s.set("timeline",{id:o.er.nextStr(),type:"timeline",value:"following",pinned:!0}),r)){let t=d(e);"unknown"!==t&&s.set(e,{id:o.er.nextStr(),type:t,value:e,pinned:!0})}for(let e of t)if(!s.has(e)){let t=d(e);if("unknown"===t)continue;s.set(e,{id:o.er.nextStr(),type:t,value:e,pinned:!1}
1)}e.savedFeeds=Array.from(s.values())}else e.savedFeeds=[{id:o.er.nextStr(),type:"timeline",value:"following",pinned:!0}];await this.overwriteSavedFeeds(e.savedFeeds)}for(let t of r)if(t.labelerDid){let r=e.moderationPrefs.labelers.find(e=>e.did===t.labelerDid);if(!r)continue;r.labels[t.label]=t.visibility}else e.moderationPrefs.labels[t.label]=t.visibility;return e.moderationPrefs.labels=function(e){let t={...e},r={gore:"graphic-media",nsfw:"porn",suggestive:"sexual"};for(let e in t){let s=r[e];s&&(t[s]=t[e])}return t}(e.moderationPrefs.labels),this.configureLabelers(O(t.data.preferences)),e}async overwriteSavedFeeds(e){e.forEach(h);let t=new Map;return e.forEach(e=>{t.has(e.id)&&t.delete(e.id),t.set(e.id,e)}),this.updateSavedFeedsV2Preferences(()=>Array.from(t.values()))}async updateSavedFeeds(e){return e.map(h),this.updateSavedFeedsV2Preferences(t=>t.map(t=>{let r=e.find(e=>t.id===e.id);return r?{...t,pinned:r.pinned}:t}))}async addSavedFeeds(e){let t=e.map(e=>({...e,id:o.er.nextStr()}));return t.forEach(h),this.updateSavedFeedsV2Preferences(e=>[...e,...t])}async removeSavedFeeds(e){return this.updateSavedFeedsV2Preferences(t=>[...t.filter(t=>!e.find(e=>t.id===e))])}async setSavedFeeds(e,t){return this.updateFeedPreferences(()=>({saved:e,pinned:t}))}async addSavedFeed(e){return this.updateFeedPreferences((t,r)=>({saved:[...t.filter(t=>t!==e),e],pinned:r}))}async removeSavedFeed(e){return this.updateFeedPreferences((t,r)=>({saved:t.filter(t=>t!==e),pinned:r.filter(t=>t!==e)}))}async addPinnedFeed(e){return this.updateFeedPreferences((t,r)=>({saved:[...t.filter(t=>t!==e),e],pinned:[...r.filter(t=>t!==e),e]}))}async removePinnedFeed(e){return this.updateFeedPreferences((t,r)=>({saved:t,pinned:r.filter(t=>t!==e)}))}async setAdultContentEnabled(e){await this.updatePreferences(t=>{let r=t.findLast(b)||{$type:"app.bsky.actor.defs#adultContentPref",enabled:e};return r.enabled=e,t.filter(e=>!p.ykY.isAdultContentPref(e)).concat(r)})}async setContentLabelPref(e,t,r){r&&(0,a.NP)(r),await this.updatePreferences(s=>{let n,i=s.filter(x).findLast(t=>t.label===e&&t.labelerDid===r)||{$type:"app.bsky.actor.defs#contentLabelPref",label:e,labelerDid:r,visibility:t};if(i.visibility=t,p.ykY.isContentLabelPref(i)&&!i.labelerDid){let e={"graphic-media":"gore",porn:"nsfw",sexual:"suggestive",__proto__:null}[i.label];e&&((n=s.filter(x).findLast(t=>t.label===e&&void 0===t.labelerDid)||{$type:"app.bsky.actor.defs#contentLabelPref",label:e,labelerDid:void 0,visibility:t}).visibility=t)}return s.filter(t=>!p.ykY.isContentLabelPref(t)||t.label!==e||t.labelerDid!==r).concat(i).filter(e=>!n||!p.ykY.isContentLabelPref(e)||e.label!==n.label||void 0!==e.labelerDid).concat(n?[n]:[])})}async addLabeler(e){let t=await this.updatePreferences(t=>{let r=t.findLast(S)||{$type:"app.bsky.actor.defs#labelersPref",labelers:[]};return r.labelers.some(t=>t.did===e)||r.labelers.push({did:e}),t.filter(e=>!p.ykY.isLabelersPref(e)).concat(r)});this.configureLabelers(O(t))}async removeLabeler(e){let t=await this.updatePreferences(t=>{let r=t.findLast(S)||{$type:"app.bsky.actor.defs#labelersPref",labelers:[]};return r.labelers=r.labelers.filter(t=>t.did!==e),t.filter(e=>!p.ykY.isLabelersPref(e)).concat(r)});this.configureLabelers(O(t))}async setPersonalDetails({birthDate:e}){await this.updatePreferences(t=>{let r=t.findLast(T)||{$type:"app.bsky.actor.defs#personalDetailsPref"};return r.birthDate=e instanceof Date?e.toISOString():e,t.filter(e=>!p.ykY.isPersonalDetailsPref(e)).concat(r)})}async setFeedViewPrefs(e,t){await this.updatePreferences(r=>{let s=r.filter(k).findLast(t=>t.feed===e);return r.filter(t=>!p.ykY.isFeedViewPref(t)||t.feed!==e).concat({...s,...t,$type:"app.bsky.actor.defs#feedViewPref",feed:e})})}async setThreadViewPrefs(e){await this.updatePreferences(t=>{let r=t.findLast(C);return t.filter(e=>!p.ykY.isThreadViewPref(e)).concat({...r,...e,$type:"app.bsky.actor.defs#threadViewPref"})})}async setInterestsPref(e){await this.updatePreferences(t=>{let r=t.findLast($);return t.filter(e=>!p.ykY.isInterestsPref(e)).concat({...r,...e,$type:"app.bsky.actor.defs#interestsPref"})})}async addMutedWord(e){let t=c(e.value);t&&await this.updatePreferences(r=>{let s=r.findLast(A),n={id:o.er.nextStr(),value:t,targets:e.targets||[],actorTarget:e.actorTarget||"all",expiresAt:e.expiresAt||void 0};return s?(s.items.push(n),s.items=q(s.items)):s={$type:"app.bsky.actor.defs#mutedWordsPref",items:[n]},r.filter(e=>!p.ykY.isMutedWordsPref(e)).concat(s)})}async addMutedWords(e){await Promise.all(e.map(e=>this.addMutedWord(e)))}async upsertMutedWords(e){await this.addMutedWords(e)}async updateMutedWord(e){await this.updatePreferences(t=>{let r=t.findLast(A);return r?(r.items=r.items.map(t=>{if(!Y(t,e))return t;{let r={...t,...e};return{id:t.id||o.er.nextStr(),value:c(r.value)||t.value,targets:r.targets||[],actorTarget:r.actorTarget||"all",expiresAt:r.expiresAt||void 0}}}),r.items=q(r.items),t.filter(e=>!p.ykY.isMutedWordsPref(e)).concat(r)):t})}async removeMutedWord(e){await this.updatePreferences(t=>{let r=t.findLast(A);if(r){for(let t=0;t<r.items.length;t++)if(Y(r.items[t],e)){r.items.splice(t,1);break}return r.items=q(r.items),t.filter(e=>!p.ykY.isMutedWordsPref(e)).concat(r)}return t})}async removeMutedWords(e){await Promise.all(e.map(e=>this.removeMutedWord(e)))}async hidePost(e){await this.updateHiddenPost(e,"hide")}async unhidePost(e){await this.updateHiddenPost(e,"unhide")}async bskyAppQueueNudges(e){await this.updatePreferences(t=>{let r=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.queuedNudges=(r.queuedNudges||[]).concat(e),t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(r)})}async bskyAppDismissNudges(e){await this.updatePreferences(t=>{let r=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return e=Array.isArray(e)?e:[e],r.queuedNudges=(r.queuedNudges||[]).filter(t=>!e.includes(t)),t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(r)})}async bskyAppSetActiveProgressGuide(e){if(e){let t=p.ykY.validateBskyAppProgressGuide(e);if(!t.success)throw t.error}await this.updatePreferences(t=>{let r=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.activeProgressGuide=e,t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(r)})}async setIsBetaUser(e){await this.updatePreferences(t=>{let r=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.isBetaUser=e,t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(r)})}async bskyAppUpsertNux(e){f.parse(e),await this.updatePreferences(t=>{let r,s=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};s.nuxs=s.nuxs||[];let n=s.nuxs?.find(t=>
1t.id===e.id);return r=n?{id:n.id,completed:e.completed,data:e.data,expiresAt:e.expiresAt}:e,s.nuxs=s.nuxs.filter(t=>t.id!==e.id).concat(r),t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(s)})}async bskyAppRemoveNuxs(e){await this.updatePreferences(t=>{let r=t.findLast(w)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.nuxs=(r.nuxs||[]).filter(t=>!e.includes(t.id)),t.filter(e=>!p.ykY.isBskyAppStatePref(e)).concat(r)})}async setPostInteractionSettings(e){let t=p.ykY.validatePostInteractionSettingsPref(e);if(!t.success)throw t.error;await this.updatePreferences(t=>{let r=t.findLast(E)||{$type:"app.bsky.actor.defs#postInteractionSettingsPref"};return r.threadgateAllowRules=e.threadgateAllowRules,r.postgateEmbeddingRules=e.postgateEmbeddingRules,t.filter(e=>!p.ykY.isPostInteractionSettingsPref(e)).concat(r)})}async setVerificationPrefs(e){let t=p.ykY.validateVerificationPrefs(e);if(!t.success)throw t.error;await this.updatePreferences(t=>{let r=t.findLast(R)||{$type:"app.bsky.actor.defs#verificationPrefs",hideBadges:!1};return r.hideBadges=e.hideBadges,t.filter(e=>!p.ykY.isVerificationPrefs(e)).concat(r)})}async updateLiveEventPreferences(e){return this.updatePreferences(t=>{let r=t.findLast(L)||{$type:"app.bsky.actor.defs#liveEventPreferences",hiddenFeedIds:[],hideAllFeeds:!1},s=new Set(r.hiddenFeedIds||[]);switch(e.type){case"hideFeed":s.add(e.id);break;case"unhideFeed":s.delete(e.id);break;case"toggleHideAllFeeds":r.hideAllFeeds=!r.hideAllFeeds}return r.hiddenFeedIds=[...s],t.filter(e=>!p.ykY.isLiveEventPreferences(e)).concat(r)})}#r;async updatePreferences(e){try{await this.#r.acquireAsync();let t=await this.app.bsky.actor.getPreferences({}),r=e(t.data.preferences);if(!1===r)return t.data.preferences;return await this.app.bsky.actor.putPreferences({preferences:r}),r}finally{this.#r.release()}}async updateHiddenPost(e,t){await this.updatePreferences(r=>{let s=r.findLast(P)||{$type:"app.bsky.actor.defs#hiddenPostsPref",items:[]},n=new Set(s.items);return"hide"===t?n.add(e):n.delete(e),s.items=[...n],r.filter(e=>!p.ykY.isHiddenPostsPref(e)).concat(s)})}async updateFeedPreferences(e){let t;return await this.updatePreferences(r=>{let s=r.findLast(j)||{$type:"app.bsky.actor.defs#savedFeedsPref",saved:[],pinned:[]};return t=e(s.saved,s.pinned),s.saved=t.saved,s.pinned=t.pinned,r.filter(e=>!p.ykY.isSavedFeedsPref(e)).concat(s)}),t}async updateSavedFeedsV2Preferences(e){let t=[];return await this.updatePreferences(r=>{let s=r.findLast(D)||{$type:"app.bsky.actor.defs#savedFeedsPrefV2",items:[]},n=e(s.items);s.items=[...n].sort((e,t)=>e.pinned===t.pinned?0:e.pinned?-1:1),t=n;let i=r.filter(e=>!p.ykY.isSavedFeedsPrefV2(e)).concat(s),a=r.findLast(j);if(a){let{saved:e,pinned:t}=a,r=function(e){let t=[],r=[];for(let s of e)s.pinned&&t.push(s.value),r.push(s.value);return{pinned:t,saved:r}}(s.items.filter(e=>["feed","list"].includes(e.type)));a={...a,saved:Array.from(new Set([...e,...r.saved])),pinned:Array.from(new Set([...t,...r.pinned]))},i=i.filter(e=>!p.ykY.isSavedFeedsPref(e)).concat(a)}return i}),t}}function O(e){let t=e.findLast(S),r=[];return t&&(r=t.labelers.map(e=>e.did)),r}function N(e){return e&&"object"==typeof e&&"labelers"in e}function q(e){return e.map(e=>({...e,id:e.id||o.er.nextStr()}))}function Y(e,t){let r=e.id,s=r&&r===t.id,n=!r&&e.value===t.value;return s||n}globalThis.ReadableStream,new n.yC(i._I)},81402:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});var s=r(73142);function n(e){return(0,s.G)(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}},81567:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("BlobNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new i(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new o(e);if("RepoDeactivated"===e.error)return new u(e)}return e}},82651:(e,t,r)=>{"use strict";r.r(t),r.d(t,{isMain:()=>u,isRecord:()=>u,validateMain:()=>l,validateRecord:()=>l}),r(41267),r(55824);var s=r(36835);let n=r(44526).dw,i=s.tf,a="app.bsky.actor.profile",o="main";function u(e){return n(e,a,o)}function l(e){return i(e,a,o,!0)}},82659:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},82985:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"NotFound"===e.error?new n(e):e}},83751:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},83768:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},83786:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},83846:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("RateLimitExceeded"===e.error)return new n(e);if("InvalidDid"===e.error)return new i(e);if("InvalidPhone"===e.error)return new a(e);if("InternalError"===e.error)return new o(e)}return e}},83956:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84141:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84227:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84357:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84361:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84500:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},84901:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},85160:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},85465:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"UnsupportedCollection"===e.error?new n(e):e}},85678:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("BlockNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new i(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new o(e);if("RepoDeactivated"===e.error)return new u(e)}return e}},85947:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},85972:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},86251:(e,t,r)=>{"use strict";r.d(t,{G7:()=>l});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function l(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("ReactionNotAllowed"===e.error)return new i(e);if("ReactionMessageDeleted"===e.error)return new a(e);if("ReactionLimitReached"===e.error)return new o(e);if("ReactionInvalidValue"===e.error)return new u(e)}return e}},86446:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},86877:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},86951:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},86963:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"UnknownFeed"===e.error?new n(e):e}},87533:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},87644:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("BlockedActor"===e.error)return new n(e);if("BlockedByActor"===e.error)return new i(e)}return e}},87671:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});class s{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}},88256:(e,t,r)=>{"use strict";r.d(t,{o:()=>f});var s=r(78041),n=r(27290),i=r(48895),a=r(33754),o=r(38857);let u={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function l(e,t){return e*Math.sqrt(1-t*t)}let c=["duration","bounce"],d=["stiffness","damping","mass"];function h(e,t){return t.some(t=>void 0!==e[t])}function f(e=u.visualDuration,t=u.bounce){let r,p,m,g,y,v,b="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:w,restDelta:x}=b,k=b.keyframes[0],P=b.keyframes[b.keyframes.length-1],$={done:!1,value:k},{stiffness:S,damping:A,mass:T,duration:I,velocity:E,isResolvedFromDuration:j}=function(e){let t={velocity:u.velocity,stiffness:u.stiffness,damping:u.damping,mass:u.mass,isResolvedFromDuration:!1,...e};if(!h(e,d)&&h(e,c))if(t.velocity=0,e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),s=r*r,n=2*(0,i.q)(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:u.mass,stiffness:s,damping:n}}else{let r=function({duration:e=u.duration,bounce:t=u.bounce,velocity:r=u.velocity,mass:a=u.mass}){let o,c;(0,s.$)(e<=(0,n.f)(u.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let d=1-t;d=(0,i.q)(u.minDamping,u.maxDamping,d),e=(0,i.q)(u.minDuration,u.maxDuration,(0,n.X)(e)),d<1?(o=t=>{let s=t*d,n=s*e;return .001-(s-r)/l(t,d)*Math.exp(-n)},c=t=>{let s=t*d*e,n=Math.pow(d,2)*Math.pow(t,2)*e,i=Math.exp(-s),a=l(Math.pow(t,2),d);return(s*r+r-n)*i*(-o(t)+.001>0?-1:1)/a}):(o=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),c=t=>e*e*(r-t)*Math.exp(-t*e));let h=function(e,t,r){let s=r;for(let r=1;r<12;r++)s-=e(s)/t(s);return s}(o,c,5/e);if(e=(0,n.f)(e),isNaN(h))return{stiffness:u.stiffness,damping:u.damping,duration:e};{let t=Math.pow(h,2)*a;return{stiffness:t,damping:2*d*Math.sqrt(a*t),duration:e}}}({...e,velocity:0});(t={...t,...r,mass:u.mass}).isResolvedFromDuration=!0}return t}({...b,velocity:-(0,n.X)(b.velocity||0)}),D=E||0,C=A/(2*Math.sqrt(S*T)),R=P-k,L=(0,n.X)(Math.sqrt(S/T)),V=5>Math.abs(R);if(w||(w=V?u.restSpeed.granular:u.restSpeed.default),x||(x=V?u.restDelta.granular:u.restDelta.default),C<1)m=l(L,C),g=(D+C*L*R)/m,r=e=>P-Math.exp(-C*L*e)*(g*Math.sin(m*e)+R*Math.cos(m*e)),y=C*L*g+R*m,v=C*L*R-g*m,p=e=>Math.exp(-C*L*e)*(y*Math.sin(m*e)+v*Math.cos(m*e));else if(1===C){r=e=>P-Math.exp(-L*e)*(R+(D+L*R)*e);let e=D+L*R;p=t=>Math.exp(-L*t)*(L*e*t-D)}else{let e=L*Math.sqrt(C*C-1);r=t=>{let r=Math.exp(-C*L*t),s=Math.min(e*t,300);return P-r*((D+C*L*R)*Math.sinh(s)+e*R*Math.cosh(s))/e};let t=(D+C*L*R)/e,s=C*L*t-R*e,n=C*L*R-t*e;p=t=>{let r=Math.exp(-C*L*t),i=Math.min(e*t,300);return r*(s*Math.sinh(i)+n*Math.cosh(i))}}let M={calculatedDuration:j&&I||null,velocity:e=>(0,n.f)(p(e)),next:e=>{if(!j&&C<1){let t=Math.exp(-C*L*e),r=Math.sin(m*e),s=Math.cos(m*e),i=P-t*(g*r+R*s);return $.done=Math.abs((0,n.f)(t*(y*r+v*s)))<=w&&Math.abs(P-i)<=x,$.value=$.done?P:i,$}let t=r(e);return j?$.done=e>=I:$.done=Math.abs((0,n.f)(p(e)))<=w&&Math.abs(P-t)<=x,$.value=$.done?P:t,$},toString:()=>{let e=Math.min((0,o.t)(M),o.Y),t=(0,a.K)(t=>M.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return M}f.applyToOptions=e=>{let t=function(e,t=100,r){let s=r({...e,keyframes:[0,t]}),i=Math.min((0,o.t)(s),o.Y);return{type:"keyframes",ease:e=>s.next(i*e).value/t,duration:(0,n.X)(i)}}(e,100,f);return e.ease=t.ease,e.duration=(0,n.f)(t.duration),e.type="keyframes",e}},88386:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},88529:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},88775:(e,t,r)=>{"use strict";r.d(t,{Zy:()=>i}),r(41267),r(55824);var s=r(36835);r(44526);let n=s.tf;function i(e){return n(e,"com.atproto.label.defs","labelValueDefinition")}},88821:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},89011:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e);if("NoJoinLink"===e.error)return new a(e)}return e}},89038:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},89163:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},89226:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new i(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new o(e)}return e}},90088:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},90417:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},90625:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var s=r(70561),n=r(56121),i=r(88256);let a={decay:s.B,inertia:s.B,tween:n.i,keyframes:n.i,spring:i.o};function o(e){"string"==typeof e.type&&(e.type=a[e.type])}},90865:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},90888:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},90914:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("MessageDeleteNotAllowed"===e.error)return new i(e)}return e}},91143:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},91225:(e,t,r)=>{"use strict";r.d(t,{q:()=>s});let s=(e,t,r)=>{let s=t-e;return s?(r-e)/s:1}},91505:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},91529:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("AlreadyAssigned"===e.error)return new n(e);if("InvalidAssignment"===e.error)return new i(e)}return e}},92001:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("InvalidDid"===e.error)return new n(e);if("InternalError"===e.error)return new i(e)}return e}},92143:(e,t,r)=>{"use strict";r.d(t,{G7:()=>d});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class u extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class l extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class c extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function d(e){if(e instanceof s.k$){if("InvalidHandle"===e.error)return new n(e);if("InvalidPassword"===e.error)return new i(e);if("InvalidInviteCode"===e.error)return new a(e);if("HandleNotAvailable"===e.error)return new o(e);if("UnsupportedDomain"===e.error)return new u(e);
1if("UnresolvableDid"===e.error)return new l(e);if("IncompatibleDidDoc"===e.error)return new c(e)}return e}},92254:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},92405:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},92419:(e,t,r)=>{"use strict";r.d(t,{KN:()=>i,gQ:()=>l,px:()=>a,uj:()=>n,vh:()=>o,vw:()=>u});let s=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),n=s("deg"),i=s("%"),a=s("px"),o=s("vh"),u=s("vw"),l={...i,parse:e=>i.parse(e)/100,transform:e=>i.transform(100*e)}},92493:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RepoNotFound"===e.error?new n(e):e}},92789:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("InvalidConvo"===e.error)return new n(e);if("InsufficientRole"===e.error)return new i(e);if("NoJoinLink"===e.error)return new a(e)}return e}},93055:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new i(e);if("TokenRequired"===e.error)return new a(e)}return e}},93606:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},93734:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},93736:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},93751:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},93864:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},94280:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"RuleNotFound"===e.error?new n(e):e}},94416:(e,t,r)=>{"use strict";r.d(t,{M:()=>n});var s=r(12115);function n(e){let t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}},95516:(e,t,r)=>{"use strict";r.d(t,{V:()=>s});let s=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},95525:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},96145:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},96149:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},96498:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ConvoLocked"===e.error)return new n(e);if("InvalidConvo"===e.error)return new i(e);if("ReplyTargetNotFound"===e.error)return new a(e)}return e}},96940:(e,t,r)=>{"use strict";r.d(t,{G7:()=>o});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function o(e){if(e instanceof s.k$){if("ConvoLocked"===e.error)return new n(e);if("InvalidConvo"===e.error)return new i(e);if("InsufficientRole"===e.error)return new a(e)}return e}},96990:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},97556:(e,t,r)=>{"use strict";r.d(t,{G7:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);
1class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"InvalidEmail"===e.error?new n(e):e}},97882:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},98200:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},98213:(e,t,r)=>{"use strict";r(41267),r(55824),r(36835),r(44526)},99136:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function i(e){return e instanceof s.k$&&"BadQueryString"===e.error?new n(e):e}},99342:(e,t,r)=>{"use strict";r.d(t,{G7:()=>a});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function a(e){if(e instanceof s.k$){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new i(e)}return e}},99553:(e,t,r)=>{"use strict";r(11276),r(41267),r(55824),r(36835),r(44526)},99834:(e,t,r)=>{"use strict";r.d(t,{G7:()=>u});var s=r(11276);r(41267),r(55824),r(36835),r(44526);class n extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class i extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class a extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}class o extends s.k${constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}function u(e){if(e instanceof s.k$){if("InvalidEmail"===e.error)return new n(e);if("DidTooLong"===e.error)return new i(e);if("InvalidInitiation"===e.error)return new a(e);if("RegionNotSupported"===e.error)return new o(e)}return e}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.