1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69497,428762,702599,e=>{"use strict";function t(e){this.content=e}t.prototype={constructor:t,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return -1},get:function(e){var t=this.find(e);return -1==t?void 0:this.content[t+1]},update:function(e,r,o){var i=o&&o!=e?this.remove(o):this,n=i.find(e),s=i.content.slice();return -1==n?s.push(o||e,r):(s[n+1]=r,o&&(s[n]=o)),new t(s)},remove:function(e){var r=this.find(e);if(-1==r)return this;var o=this.content.slice();return o.splice(r,2),new t(o)},addToStart:function(e,r){return new t([e,r].concat(this.remove(e).content))},addToEnd:function(e,r){var o=this.remove(e).content.slice();return o.push(e,r),new t(o)},addBefore:function(e,r,o){var i=this.remove(r),n=i.content.slice(),s=i.find(e);return n.splice(-1==s?n.length:s,0,r,o),new t(n)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=t.from(e)).size?new t(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=t.from(e)).size?new t(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var r=this;e=t.from(e);for(var o=0;o<e.content.length;o+=2)r=r.remove(e.content[o]);return r},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},t.from=function(e){if(e instanceof t)return e;var r=[];if(e)for(var o in e)r.push(o,e[o]);return new t(r)};class r{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,o=0,i){for(let n=0,s=0;s<t;n++){let a=this.content[n],c=s+a.nodeSize;if(c>e&&!1!==r(a,o+s,i||null,n)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),r,o+i)}s=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,o){let i="",n=!0;return this.nodesBetween(e,t,(s,a)=>{let c=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?o?"function"==typeof o?o(s):o:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&c||s.isTextblock)&&r&&(n?n=!1:i+=r),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,i=this.content.slice(),n=0;for(t.isText&&t.sameMarkup(o)&&(i[i.length-1]=t.withText(t.text+o.text),n=1);n<e.content.length;n++)i.push(e.content[n]);return new r(i,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let o=[],i=0;if(t>e)for(let r=0,n=0;n<t;r++){let s=this.content[r],a=n+s.nodeSize;a>e&&((n<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-n),Math.min(s.text.length,t-n)):s.cut(Math.max(0,e-n-1),Math.min(s.content.size,t-n-1))),o.push(s),i+=s.nodeSize),n=a}return new r(o,i)}cutByIndex(e,t){return e==t?r.empty:0==e&&t==this.content.length?this:new r(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let i=this.content.slice(),n=this.size+t.nodeSize-o.nodeSize;return i[e]=t,new r(i,n)}addToStart(e){return new r([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new r(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let o=this.content[t];e(o,r,t),r+=o.nodeSize}}findDiffStart(e,t=0){return function e(t,r,o){for(let i=0;;i++){if(i==t.childCount||i==r.childCount)return t.childCount==r.childCount?null:o;let n=t.child(i),s=r.child(i);if(n==s){o+=n.nodeSize;continue}if(!n.sameMarkup(s))return o;if(n.isText&&n.text!=s.text){for(let e=0;n.text[e]==s.text[e];e++)o++;return o}if(n.content.size||s.content.size){let t=e(n.content,s.content,o+1);if(null!=t)return t}o+=n.nodeSize}}(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return function e(t,r,o,i){for(let n=t.childCount,s=r.childCount;;
1){if(0==n||0==s)return n==s?null:{a:o,b:i};let a=t.child(--n),c=r.child(--s),l=a.nodeSize;if(a==c){o-=l,i-=l;continue}if(!a.sameMarkup(c))return{a:o,b:i};if(a.isText&&a.text!=c.text){let e=0,t=Math.min(a.text.length,c.text.length);for(;e<t&&a.text[a.text.length-e-1]==c.text[c.text.length-e-1];)e++,o--,i--;return{a:o,b:i}}if(a.content.size||c.content.size){let t=e(a.content,c.content,o-1,i-1);if(t)return t}o-=l,i-=l}}(this,e,t,r)}findIndex(e,t=-1){if(0==e)return i(0,e);if(e==this.size)return i(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let n=o+this.child(r).nodeSize;if(n>=e){if(n==e||t>0)return i(r+1,n);return i(r,o)}o=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return r.empty;if(!Array.isArray(t))throw RangeError("Invalid input for Fragment.fromJSON");return new r(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return r.empty;let t,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new r(t||e,o)}static from(e){if(!e)return r.empty;if(e instanceof r)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new r([e],e.nodeSize);throw RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}r.empty=new r([],0);let o={index:0,offset:0};function i(e,t){return o.index=e,o.offset=t,o}function n(e,t){if(e===t)return!0;if(!(e&&"object"==typeof e)||!(t&&"object"==typeof t))return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!n(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class s{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,o)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&n(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw RangeError(`There is no mark type ${t.type} in this schema`);let o=r.create(t.attrs);return r.checkAttrs(o.attrs),o}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return s.none;if(e instanceof s)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}s.none=[];class a extends Error{}class c{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=function e(t,r,o,i){let{index:n,offset:s}=t.findIndex(r),a=t.maybeChild(n);if(s==r||a.isText)return i&&!i.canReplace(n,n,o)?null:t.cut(0,r).append(o).append(t.cut(r));let c=e(a.content,r-s-1,o);return c&&t.replaceChild(n,a.copy(c))}(this.content,e+this.openStart,t);return r&&new c(r,this.openStart,this.openEnd)}removeBetween(e,t){return new c(function e(t,r,o){let{index:i,offset:n}=t.findIndex(r),s=t.maybeChild(i),{index:a,offset:c}=t.findIndex(o);if(n==r||s.isText){if(c!=o&&!t.child(a).isText)throw RangeError("Removing non-flat range");return t.cut(0,r).append(t.cut(o))}if(i!=a)throw RangeError("Removing non-flat range");return t.replaceChild(i,s.copy(e(s.content,r-n-1,o-n-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return c.empty;
1let o=t.openStart||0,i=t.openEnd||0;if("number"!=typeof o||"number"!=typeof i)throw RangeError("Invalid input for Slice.fromJSON");return new c(r.fromJSON(e,t.content),o,i)}static maxOpen(e,t=!0){let r=0,o=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)o++;return new c(e,r,o)}}function l(e,t){if(!t.type.compatibleContent(e.type))throw new a("Cannot join "+t.type.name+" onto "+e.type.name)}function d(e,t,r){let o=e.node(r);return l(o,t.node(r)),o}function p(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function u(e,t,r,o){let i=(t||e).node(r),n=0,s=t?t.index(r):i.childCount;e&&(n=e.index(r),e.depth>r?n++:e.textOffset&&(p(e.nodeAfter,o),n++));for(let e=n;e<s;e++)p(i.child(e),o);t&&t.depth==r&&t.textOffset&&p(t.nodeBefore,o)}function f(e,t){return e.type.checkContent(t),e.copy(t)}function h(e,t,o){let i=[];return u(null,e,o,i),e.depth>o&&p(f(d(e,t,o+1),h(e,t,o+1)),i),u(t,null,o,i),new r(i)}c.empty=new c(r.empty,0,0);class m{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(t);return r?e.child(t).cut(r):o}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],o=0==t?0:this.path[3*t-1]+1;for(let t=0;t<e;t++)o+=r.child(t).nodeSize;return o}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return s.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),o=e.maybeChild(t);if(!r){let e=r;r=o,o=e}let i=r.marks;for(var n=0;n<i.length;n++)!1!==i[n].type.spec.inclusive||o&&i[n].isInSet(o.marks)||(i=i[n--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||o&&r[i].isInSet(o.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new v(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw RangeError("Position "+t+" out of range");let r=[],o=0,i=t;for(let t=e;;){let{index:e,offset:n}=t.content.findIndex(i),s=i-n;if(r.push(t,e,o+n),!s||(t=t.child(e)).isText)break;i=s-1,o+=n+1}return new m(t,r,i)}static resolveCached(e,t){let r=b.get(e);if(r)for(let e=0;e<r.elts.length;e++){let o=r.elts[e];if(o.pos==t)return o}else b.set(e,r=new y);let o=r.elts[r.i]=m.resolve(e,t);return r.i=(r.i+1)%g,o}}class y{constructor(){this.elts=[],this.i=0}}let g=12,b=new WeakMap;class v{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}let w=Object.create(null);class k{constructor(e,t,o,i=s.none){this.type=e,this.attrs=t,this.marks=i,this.content=o||r.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,o=0){this.content.nodesBetween(e,t,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}
1textBetween(e,t,r,o){return this.content.textBetween(e,t,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&n(this.attrs,t||e.defaultAttrs||w)&&s.sameSet(this.marks,r||s.none)}copy(e=null){return e==this.content?this:new k(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new k(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return c.empty;let o=this.resolve(e),i=this.resolve(t),n=r?0:o.sharedDepth(t),s=o.start(n);return new c(o.node(n).content.cut(o.pos-s,i.pos-s),o.depth-n,i.depth-n)}replace(e,t,o){var i=this.resolve(e),n=this.resolve(t);if(o.openStart>i.depth)throw new a("Inserted content deeper than insertion position");if(i.depth-o.openStart!=n.depth-o.openEnd)throw new a("Inconsistent open depths");return function e(t,o,i,n){let s=t.index(n),a=t.node(n);if(s==o.index(n)&&n<t.depth-i.openStart){let r=e(t,o,i,n+1);return a.copy(a.content.replaceChild(s,r))}if(!i.content.size)return f(a,h(t,o,n));if(i.openStart||i.openEnd||t.depth!=n||o.depth!=n){let{start:e,end:s}=function(e,t){let o=t.depth-e.openStart,i=t.node(o).copy(e.content);for(let e=o-1;e>=0;e--)i=t.node(e).copy(r.from(i));return{start:i.resolveNoCache(e.openStart+o),end:i.resolveNoCache(i.content.size-e.openEnd-o)}}(i,t);return f(a,function e(t,o,i,n,s){let a=t.depth>s&&d(t,o,s+1),c=n.depth>s&&d(i,n,s+1),m=[];return u(null,t,s,m),a&&c&&o.index(s)==i.index(s)?(l(a,c),p(f(a,e(t,o,i,n,s+1)),m)):(a&&p(f(a,h(t,o,s+1)),m),u(o,i,s,m),c&&p(f(c,h(i,n,s+1)),m)),u(n,null,s,m),new r(m)}(t,e,s,o,n))}{let e=t.parent,r=e.content;return f(e,r.cut(0,t.parentOffset).append(i.content).append(r.cut(o.parentOffset)))}}(i,n,o,0)}nodeAt(e){for(let t=this;;){let{index:r,offset:o}=t.content.findIndex(e);if(!(t=t.maybeChild(r)))return null;if(o==e||t.isText)return t;e-=o+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let o=this.content.child(t-1);return{node:o,index:t-1,offset:r-o.nodeSize}}resolve(e){return m.resolveCached(this,e)}resolveNoCache(e){return m.resolve(this,e)}rangeHasMark(e,t,r){let o=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),A(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=r.empty,i=0,n=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,i,n),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let e=i;e<n;e++)if(!this.type.allowsMarks(o.child(e).marks))return!1;return!0}canReplaceWith(e,t,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),n=i&&i.matchFragment(this.content,t);return!!n&&n.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=s.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!s.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
1e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){let o;if(!t)throw RangeError("Invalid input for Node.fromJSON");if(t.marks){if(!Array.isArray(t.marks))throw RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw RangeError("Invalid text node in JSON");return e.text(t.text,o)}let i=r.fromJSON(e,t.content),n=e.nodeType(t.type).create(t.attrs,i,o);return n.type.checkAttrs(n.attrs),n}}k.prototype.text=void 0;class x extends k{constructor(e,t,r,o){if(super(e,t,null,o),!r)throw RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):A(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new x(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new x(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function A(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class S{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){var r;let o,i=new E(e,t);if(null==i.next)return S.empty;let n=function e(t){let r=[];do r.push(function(t){let r=[];do r.push(function(t){let r=function(t){if(t.eat("(")){let r=e(t);return t.eat(")")||t.err("Missing closing paren"),r}if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=(function(e,t){let r=e.nodeTypes,o=r[t];if(o)return[o];let i=[];for(let e in r){let o=r[e];o.isInGroup(t)&&i.push(o)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i})(t,t.next).map(e=>(null==t.inline?t.inline=e.isInline:t.inline!=e.isInline&&t.err("Mixing inline and block content"),{type:"name",value:e}));return t.pos++,1==e.length?e[0]:{type:"choice",exprs:e}}}(t);for(;;)if(t.eat("+"))r={type:"plus",expr:r};else if(t.eat("*"))r={type:"star",expr:r};else if(t.eat("?"))r={type:"opt",expr:r};else if(t.eat("{"))r=function(e,t){let r=_(e),o=r;return e.eat(",")&&(o="}"!=e.next?_(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:o,expr:t}}(t,r);else break;return r}(t));while(t.next&&")"!=t.next&&"|"!=t.next)return 1==r.length?r[0]:{type:"seq",exprs:r}}(t));while(t.eat("|"))return 1==r.length?r[0]:{type:"choice",exprs:r}}(i);i.next&&i.err("Unexpected trailing text");let s=(r=function(e){let t=[[]];return i(function e(t,n){if("choice"==t.type)return t.exprs.reduce((t,r)=>t.concat(e(r,n)),[]);if("seq"==t.type)for(let o=0;;o++){let s=e(t.exprs[o],n);if(o==t.exprs.length-1)return s;i(s,n=r())}else if("star"==t.type){let s=r();return o(n,s),i(e(t.expr,s),s),[o(s)]}else if("plus"==t.type){let s=r();return i(e(t.expr,n),s),i(e(t.expr,s),s),[o(s)]}else if("opt"==t.type)return[o(n)].concat(e(t.expr,n));else if("range"==t.type){let s=n;for(let o=0;o<t.min;o++){let o=r();i(e(t.expr,s),o),s=o}if(-1==t.max)i(e(t.expr,s),s);else for(let n=t.min;n<t.max;n++){let n=r();o(s,n),i(e(t.expr,s),n),s=n}return[o(s)]}else if("name"==t.type)return[o(n,void 0,t.value)];else throw Error("Unknown expr type")}(e,0),r()),t;function r(){return t.push([])-1}function o(e,r,o){let i={term:o,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}}(n),o=Object.create(null),function e(t){let i=[];t.forEach(e=>{r[e].forEach(({term:e,to:t})=>{let o;if(e){for(let t=0;t<i.length;t++)i[t][0]==e&&(o=i[t][1]);R(r,t).forEach(t=>{o||i.push([e,o=[]]),-1==o.indexOf(t)&&o.push(t)})}})});let n=o[t.join(",")]=new S(t.indexOf(r.length-1)>-1);for(let t=0;t<i.length;t++){let r=i[t][1].sort(C);n.next.push({type:i[t][0],next:o[r.join(",")]||e(r)})}return n}(R(r,0)));return function(e,t){for(let r=0,o=[e];r<o.length;r++){let e=o[r],i=!e.validEnd,n=[];for(let t=0;t<e.next.length;t++){let{type:r,next:s}=e.next[t];n.push(r.name),i&&!(r.isText||r.hasRequiredAttrs())&&(i=!1),-1==o.indexOf(s)&&o.push(s)}i&&t.err("Only non-generatable nodes ("+n.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,i),s}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}
1matchFragment(e,t=0,r=e.childCount){let o=this;for(let i=t;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,o=0){let i=[this];return function n(s,a){let c=s.matchFragment(e,o);if(c&&(!t||c.validEnd))return r.from(a.map(e=>e.createAndFill()));for(let e=0;e<s.next.length;e++){let{type:t,next:r}=s.next[e];if(!(t.isText||t.hasRequiredAttrs())&&-1==i.indexOf(r)){i.push(r);let e=n(r,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let e=[];for(let t=o;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:n,next:s}=i.next[e];n.isLeaf||n.hasRequiredAttrs()||n.name in t||o.type&&!s.validEnd||(r.push({match:n.contentMatch,type:n,via:o}),t[n.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return!function t(r){e.push(r);for(let o=0;o<r.next.length;o++)-1==e.indexOf(r.next[o].next)&&t(r.next[o].next)}(this),e.map((t,r)=>{let o=r+(t.validEnd?"*":" ")+" ";for(let r=0;r<t.next.length;r++)o+=(r?", ":"")+t.next[r].type.name+"->"+e.indexOf(t.next[r].next);return o}).join("\n")}}S.empty=new S(!0);class E{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+" (in content expression '"+this.string+"')")}}function _(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function C(e,t){return t-e}function R(e,t){let r=[];return function t(o){let i=e[o];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(o);for(let e=0;e<i.length;e++){let{term:o,to:n}=i[e];o||-1!=r.indexOf(n)||t(n)}}(t),r.sort(C)}function P(e){let t=Object.create(null);for(let r in e){let o=e[r];if(!o.hasDefault)return null;t[r]=o.default}return t}function j(e,t){let r=Object.create(null);for(let o in e){let i=t&&t[o];if(void 0===i){let t=e[o];if(t.hasDefault)i=t.default;else throw RangeError("No value supplied for attribute "+o)}r[o]=i}return r}function I(e,t,r,o){for(let o in t)if(!(o in e))throw RangeError(`Unsupported attribute ${o} for ${r} of type ${o}`);for(let r in e){let o=e[r];o.validate&&o.validate(t[r])}}function T(e,t){let r=Object.create(null);if(t)for(let o in t)r[o]=new D(e,o,t[o]);return r}class O{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=T(e,r.attrs),this.defaultAttrs=P(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==S.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:j(this.attrs,e)}create(e=null,t,o){if(this.isText)throw Error("NodeType.create can't construct text nodes");return new k(this,this.computeAttrs(e),r.from(t),s.setFrom(o))}createChecked(e=null,t,o){return t=r.from(t),this.checkContent(t),new k(this,this.computeAttrs(e),t,s.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),(t=r.from(t)).size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let i=this.contentMatch.matchFragment(t),n=i&&i.fillBefore(r.empty,!0);return n?new k(this,e,t.append(n),s.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);
1if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){I(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){let t;if(null==this.markSet)return e;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:s.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,o)=>r[e]=new O(e,t,o));let o=t.spec.topNode||"doc";if(!r[o])throw RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw RangeError("Every schema needs a 'text' type");for(let e in r.text.attrs)throw RangeError("The text node type should not have attributes");return r}}class D{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,r){let o=r.split("|");return r=>{let i=null===r?"null":typeof r;if(0>o.indexOf(i))throw RangeError(`Expected value of type ${o} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class M{constructor(e,t,r,o){this.name=e,this.rank=t,this.schema=r,this.spec=o,this.attrs=T(e,o.attrs),this.excluded=null;let i=P(this.attrs);this.instance=i?new s(this,i):null}create(e=null){return!e&&this.instance?this.instance:new s(this,j(this.attrs,e))}static compile(e,t){let r=Object.create(null),o=0;return e.forEach((e,i)=>r[e]=new M(e,o++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){I(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class L{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let t in e)r[t]=e[t];r.nodes=t.from(e.nodes),r.marks=t.from(e.marks||{}),this.nodes=O.compile(this.spec.nodes,this),this.marks=M.compile(this.spec.marks,this);let o=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+" can not be both a node and a mark");let t=this.nodes[e],r=t.spec.content||"",i=t.spec.marks;if(t.contentMatch=o[r]||(o[r]=S.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError("Multiple linebreak nodes defined");if(!t.isInline||!t.isLeaf)throw RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=t}t.markSet="_"==i?null:i?B(this,i.split(" ")):""!=i&&t.inlineContent?null:[]}for(let e in this.marks){let t=this.marks[e],r=t.spec.excludes;t.excluded=null==r?[t]:""==r?[]:B(this,r.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,o){if("string"==typeof e)e=this.nodeType(e);else if(e instanceof O){if(e.schema!=this)throw RangeError("Node type from different schema used ("+e.name+")")}else throw RangeError("Invalid node type: "+e);return e.createChecked(t,r,o)}text(e,t){let r=this.nodes.text;return new x(r,r.defaultAttrs,e,s.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return k.fromJSON(this,e)}markFromJSON(e){return s.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError("Unknown node type: "+e);return t}}function B(e,t){let r=[];for(let o=0;o<t.length;o++){let i=t[o],n=e.marks[i],s=n;
1if(n)r.push(n);else for(let t in e.marks){let o=e.marks[t];("_"==i||o.spec.group&&o.spec.group.split(" ").indexOf(i)>-1)&&r.push(s=o)}if(!s)throw SyntaxError("Unknown mark type: '"+t[o]+"'")}return r}class z{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(e=>{if(null!=e.tag)this.tags.push(e);else if(null!=e.style){let t=/[^=]*/.exec(e.style)[0];0>r.indexOf(t)&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e,t={}){let r=new $(this,t,!1);return r.addAll(e,s.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new $(this,t,!0);return r.addAll(e,s.none,t.from,t.to),c.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){var o,i;let r=this.tags[n];if(o=e,i=r.tag,(o.matches||o.msMatchesSelector||o.webkitMatchesSelector||o.mozMatchesSelector).call(o,i)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let o=this.styles[i],n=o.style;if(0==n.indexOf(e)&&(!o.context||r.matchesContext(o.context))&&(!(n.length>e.length)||61==n.charCodeAt(e.length)&&n.slice(e.length+1)==t)){if(o.getAttrs){let e=o.getAttrs(t);if(!1===e)continue;o.attrs=e||void 0}return o}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,o=0;for(;o<t.length;o++){let e=t[o];if((null==e.priority?50:e.priority)<r)break}t.splice(o,0,e)}for(let t in e.marks){let o=e.marks[t].spec.parseDOM;o&&o.forEach(e=>{r(e=G(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let o=e.nodes[t].spec.parseDOM;o&&o.forEach(e=>{r(e=G(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new z(e,z.schemaRules(e)))}}let q={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},V={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},N={ol:!0,ul:!0};function U(e,t,r){return null!=t?!!t|2*("full"===t):e&&"pre"==e.whitespace?3:-5&r}class F{constructor(e,t,r,o,i,n){this.type=e,this.attrs=t,this.marks=r,this.solid=o,this.options=n,this.content=[],this.activeMarks=s.none,this.match=i||(4&n?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(r.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,r;return(r=t.findWrapping(e.type))?(this.match=t,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e=this.content[this.content.length-1],t;e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))&&(e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=e.withText(e.text.slice(0,e.text.length-t[0].length)))}let t=r.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(r.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!q.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ${constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let o=t.topNode,i,n=U(null,t.preserveWhitespace,0)|4*!!r;i=o?new F(o.type,o.attrs,s.none,!0,t.topMatch||o.type.contentMatch,n):r?new F(null,null,s.none,!0,null,n):new F(e.schema.topNodeType,null,s.none,!0,null,n),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,o=this.top,i=2&o.options?"full":this.localPreserveWS||(1&o.options)>0;if("full"===i||o.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)r="full"!==i?r.replace(/\r?\n|\r/g," "):r.replace(/\r\n?/g,"\n");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=
1o.content[o.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),t),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let o=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let n=e.nodeName.toLowerCase(),s;N.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&N.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));e:if(a?a.ignore:V.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let r,o=this.needsBlock;if(q.hasOwnProperty(n))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let s=a&&a.skip?t:this.readStyles(e,t);s&&this.addAll(e,s),r&&this.sync(i),this.needsBlock=o}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,a,r,!1===a.consuming?s:void 0)}this.localPreserveWS=o}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let o=this.parser.matchedStyles[e],i=r.getPropertyValue(o);if(i)for(let e;;){let r=this.parser.matchStyle(o,i,this,e);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter(e=>!r.clearMark(e)):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1===r.consuming)e=r;else break}}return t}addElementByRule(e,t,r,o){let i,n;if(t.node)if((n=this.parser.schema.nodes[t.node]).isLeaf)this.insertNode(n.create(t.attrs),r)||this.leafFallback(e,r);else{let e=this.enter(n,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let s=this.top;if(n&&n.isLeaf)this.findInside(e);else if(o)this.addElement(e,r,o);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r));else{let o=e;"string"==typeof t.contentElement?o=e.querySelector(t.contentElement):"function"==typeof t.contentElement?o=t.contentElement(e):t.contentElement&&(o=t.contentElement),this.findAround(e,o,!0),this.addAll(o,r),this.findAround(e,o,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,r,o){let i=r||0;for(let n=r?e.childNodes[r]:e.firstChild,s=null==o?null:e.childNodes[o];n!=s;n=n.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(n,t);this.findAtPoint(e,i)}findPlace(e,t){let r,o;for(let t=this.open;t>=0;t--){let i=this.nodes[t],n=i.findWrapping(e);if(n&&(!r||r.length>n.length)&&(r=n,o=i,!n.length)||i.solid)break}if(!r)return null;this.sync(o);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t);if(r){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let o=s.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):H(i.type,e.type))&&(o=i.addToSet(o));return t.content.push(e.mark(o)),!0}return!1}enter(e,t,r,o){let i=this.findPlace(e.create(t),r);return i&&(i=this.enterInner(e,t,r,!0,o)),i}enterInner(e,t,r,o=!1,i){this.closeExtra();let n=this.top;n.match=n.match&&n.match.matchType(e);let a=U(e,i,n.options);4&n.options&&0==n.content.length&&(a|=4);let c=s.none;return r=r.filter(t=>(n.type?!n.type.allowsMarkType(t.type):!H(t.type,e))||(c=t.addToSet(c),!1)),this.nodes.push(new F(e,t,c,o,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=1);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let o=0;o<this.find.length;o++)null==this.find[o].pos&&1==e.nodeType&&e.contains(this.find[o].node)&&t.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+ +!o,n=(e,s)=>{for(;e>=0;e--){let a=t[e];
1if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(n(e-1,s))return!0;return!1}{let e=s>0||0==s&&o?this.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return n(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}}function G(e){let t={};for(let r in e)t[r]=e[r];return t}function H(e,t){let r=t.schema.nodes;for(let o in r){let i=r[o];if(!i.allowsMarkType(e))continue;let n=[],s=e=>{n.push(e);for(let r=0;r<e.edgeCount;r++){let{type:o,next:i}=e.edge(r);if(o==t||0>n.indexOf(i)&&s(i))return!0}};if(s(i.contentMatch))return!0}}function Z(e){let t={};for(let r in e){let o=e[r].spec.toDOM;o&&(t[r]=o)}return t}function K(e){return e.document||window.document}let W=new WeakMap;function X(e,t,r,o){let i,n,s;if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let a=t[0],c;if("string"!=typeof a)throw RangeError("Invalid array passed to renderSpec");if(o&&(void 0===(n=W.get(o))&&W.set(o,(s=null,!function e(t){if(t&&"object"==typeof t)if(Array.isArray(t))if("string"==typeof t[0])s||(s=[]),s.push(t);else for(let r=0;r<t.length;r++)e(t[r]);else for(let r in t)e(t[r])}(o),n=s)),c=n)&&c.indexOf(t)>-1)throw RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let l=a.indexOf(" ");l>0&&(r=a.slice(0,l),a=a.slice(l+1));let d=r?e.createElementNS(r,a):e.createElement(a),p=t[1],u=1;if(p&&"object"==typeof p&&null==p.nodeType&&!Array.isArray(p)){for(let e in u=2,p)if(null!=p[e]){let t=e.indexOf(" ");t>0?d.setAttributeNS(e.slice(0,t),e.slice(t+1),p[e]):d.setAttribute(e,p[e])}}for(let n=u;n<t.length;n++){let s=t[n];if(0===s){if(n<t.length-1||n>u)throw RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}{let{dom:t,contentDOM:n}=X(e,s,r,o);if(d.appendChild(t),n){if(i)throw RangeError("Multiple content holes");i=n}}}return{dom:d,contentDOM:i}}e.s(["DOMParser",0,z,"DOMSerializer",0,class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=K(t).createDocumentFragment());let o=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,n=0;for(;r<i.length&&n<e.marks.length;){let t=e.marks[n];if(!this.marks[t.type.name]){n++;continue}if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,n++}for(;r<i.length;)o=i.pop()[1];for(;n<e.marks.length;){let r=e.marks[n++],s=this.serializeMark(r,e.isInline,t);s&&(i.push([r,o]),o.appendChild(s.dom),o=s.contentDOM||s.dom)}}o.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:o}=X(K(t),this.nodes[e.type.name](e),null,e.attrs);if(o){if(e.isLeaf)throw RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,o)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t,r={}){let o=this.marks[e.type.name];return o&&X(K(r),o(e,t),null,e.attrs)}static renderSpec(e,t,r=null,o){return X(e,t,r,o)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Z(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Z(e.marks)}},"Fragment",0,r,"Mark",0,s,"MarkType",0,M,"Node",0,k,"NodeRange",0,v,"ReplaceError",0,a,"Schema",0,L,"Slice",0,c],428762);let J=["p",0],Q=["blockquote",0],Y=["hr"],ee=["pre",["code",0]],et=["br"],er=["em",0],eo=["strong",0],ei=["code",0],en={link:{attrs:{href:{validate:"string"},title:{default:null,validate:"string|null"}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title")})}],toDOM(e){let{href:t,title:r}=e.attrs;return["a",{href:t,title:r},0]}},em:{parseDOM:[{tag:"i"},{tag:"em"},{style:"font-style=italic"},{style:"font-style=normal",clearMark:e=>
1"em"==e.type.name}],toDOM:()=>er},strong:{parseDOM:[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!=e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>"strong"==e.type.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}],toDOM:()=>eo},code:{code:!0,parseDOM:[{tag:"code"}],toDOM:()=>ei}};new L({nodes:{doc:{content:"block+"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>J},blockquote:{content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:()=>Q},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:()=>Y},heading:{attrs:{level:{default:1,validate:"number"}},content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",attrs:{level:1}},{tag:"h2",attrs:{level:2}},{tag:"h3",attrs:{level:3}},{tag:"h4",attrs:{level:4}},{tag:"h5",attrs:{level:5}},{tag:"h6",attrs:{level:6}}],toDOM:e=>["h"+e.attrs.level,0]},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:()=>ee},text:{group:"inline"},image:{inline:!0,attrs:{src:{validate:"string"},alt:{default:null,validate:"string|null"},title:{default:null,validate:"string|null"}},group:"inline",draggable:!0,parseDOM:[{tag:"img[src]",getAttrs:e=>({src:e.getAttribute("src"),title:e.getAttribute("title"),alt:e.getAttribute("alt")})}],toDOM(e){let{src:t,alt:r,title:o}=e.attrs;return["img",{src:t,alt:r,title:o}]}},hard_break:{inline:!0,group:"inline",selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>et}},marks:en});var es=e.i(885718),ea=e.i(593302),ec=e.i(18262);function el(e){return e===ec.ids.PubLeafletDocument||e===ec.ids.SiteStandardDocument}function ed(e){return e===ec.ids.PubLeafletPublication||e===ec.ids.SiteStandardPublication}function ep(e){try{let t=new ea.AtUri(e);return{isPublication:ed(t.collection),isDocument:el(t.collection)}}catch{return{isPublication:!1,isDocument:!1}}}function eu(e){try{let t=new URL(e);if("http:"===t.protocol||"https:"===t.protocol)return e}catch{}return null}e.s(["atUriToUrl",0,function(e){try{let t=new ea.AtUri(e);if(ed(t.collection)||el(t.collection))return`/lish/uri/${encodeURIComponent(e)}`;return eu(e)??"#"}catch(r){let t=eu(e);if(t)return t;return console.error("Failed to parse AT URI:",e,r),"#"}},"classifyAtUri",0,ep,"didToBlueskyUrl",0,function(e){return`https://bsky.app/profile/${e}`}],702599);let ef={marks:{strong:en.strong,em:en.em,code:{parseDOM:[{tag:"code"}],toDOM:()=>["code",{class:"inline-code"},0]},underline:{parseDOM:[{tag:"u"},{style:"text-decoration=underline"},{style:"text-decoration=none",clearMark:e=>"underline"==e.type.name}],toDOM:()=>["u",{class:"underline"},0]},strikethrough:{parseDOM:[{tag:"s"},{tag:"del"},{style:"text-decoration=line-through"},{style:"text-decoration=none",clearMark:e=>"strikethrough"==e.type.name}],toDOM:()=>["s",{style:`text-decoration-color: ${es.theme.colors.tertiary};`},0]},highlight:{attrs:{color:{default:"1"}},parseDOM:[{tag:"span.highlight",getAttrs:e=>({color:e.getAttribute("data-color")})}],toDOM(e){let{color:t}=e.attrs;return["span",{class:"highlight","data-color":t,style:`background-color: ${"1"===t?es.theme.colors["highlight-1"]:"2"===t?es.theme.colors["highlight-2"]:es.theme.colors["highlight-3"]}`},0]}},comment:{attrs:{commentID:{}},inclusive:!1,parseDOM:[{tag:"span.comment-anchor",getAttrs:e=>({commentID:e.getAttribute("data-comment-id")})}],toDOM:e=>["span",{class:"comment-anchor","data-comment-id":e.attrs.commentID},0]},link:{attrs:{href:{}},inclusive:!1,parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href")})}],toDOM(e){let{href:t}=e.attrs;return["a",{href:t,target:"_blank",referrerpolicy:"no-referrer",style:"cursor: text"},0]}}},nodes:{doc:{content:"block"},paragraph:{content:"inline*",group:"block",parseDOM:[{tag:"p"}],toDOM:()=>["p",0]},text:{group:"inline"},hard_break:{group:"inline",inline:!0,selectable:!1,parseDOM:[{tag:"br"}],toDOM:()=>["br"]},atMention:{attrs:{atURI:{},text:{default:""},href:{default:void 0},icon:{default:void 0}},group:"inline",inline:!0,atom:!0,selectable:!0,draggable:!0,parseDOM:[{tag:"span.atMention",getAttrs(e){let t=e.getAttribute("data-at-uri");return!!t&&{atURI:t,text:e.textContent||"",href:e.getAttribute("data-href")||void 0,icon:e.getAttribute("data-icon")||void 0}}}],toDOM(e){let t="atMention mention",{isPublication:r,isDocument:o}=ep(e.attrs.atURI);r&&(t+=" font-bold"),o&&(t+=" italic");let i={class:t,"data-at-uri":e.attrs.atURI};e.attrs.href&&(i["data-href"]=e.attrs.href),e.attrs.icon&&(i["data-icon"]=e.attrs.icon);let n=r||o?`/api/pub_icon?at_uri=${encodeURIComponent(e.attrs.atURI)}`:e.attrs.icon??null;return n?["span",i,["img",{src:n,class:"inline-block w-4 h-4 rounded-full mt-[3px] mr-1 align-text-top",alt:"",width:"16",height:"16",loading:"lazy"}],e.attrs.text]:["span",i,e.attrs.text]}},footnote:{attrs:{footnoteEntityID:{}},group:"inline",inline:!0,atom:!0,selectable:!1,draggable:!1,parseDOM:[{tag:"span.footnote-ref",getAttrs:e=>({footnoteEntityID:e.getAttribute("data-footnote-id")})},{tag:"sup.footnote-ref",getAttrs:e=>({footnoteEntityID:e.getAttribute("data-footnote-id")})}],toDOM:e=>["span",{class:"footnote-ref","data-footnote-id":e.attrs.footnoteEntityID}]},didMention:{attrs:{did:{},text:{default:""}},group:"inline",inline:!0,atom:!0,selectable:!0,draggable:!0,parseDOM:[{tag:"span.didMention",getAttrs(e){let t=e.getAttribute("data-did");return!!t&&{did:t,text:e.textContent||""}}}],toDOM:e=>["span",{class:"didMention mention","data-did":e.attrs.did},e.attrs.text]}}},eh=new L(ef),em=new L({marks:ef.marks,nodes:{...ef.nodes,doc:{content:"block+"}}});e.s(["SCHEMA_VERSION",0,1,"multiBlockSchema",0,em,"schema",0,eh],69497)},38226,e=>{"use strict";var t=e.i(843476),r=e.i(500932),o=e.i(271645),i=e.i(616009),n=e.i(768834),s=e.i(793610),a=e.i(69497);let c="schemaVersion",l=e=>e.getMap("meta").get(c)??0,d=(0,n.create)(()=>({stale:!1}));function p(){return window.location.reload()}function u(e){return e.stale}e.s(["StaleClientNotice",0,function(){let e,i,n=(0,r.c)(4),a=d(u),c=(0,s.useToaster)();return n[0]!==a||n[1]!==c?(e=()=>{a&&c({type:"info",duration:6e4,content:(0,t.jsxs)("div",{children:["Leaflet has been updated!"," ",(0,t.jsx)("button",{className:"underline font-bold",onClick:p,children:"Refresh"})," ","to keep editing."]})})},i=[a,c],n[0]=a,n[1]=c,n[2]=e,n[3]=i):(e=n[2],i=n[3]),(0,o.useEffect)(e,i),null},"docSchemaVersion",0,l,"markClientStale",0,()=>d.setState({stale:!0}),"stampDocSchemaVersion",0,e=>{l(e)<a.SCHEMA_VERSION&&e.getMap("meta").set(c,a.SCHEMA_VERSION)},"updateSchemaVersion",0,e=>{let t=new i.Doc;i.applyUpdate(t,e);let r=l(t);return t.destroy(),r},"useStaleClient",0,d])},133564,e=>{"use strict";var t=e.i(843476),r=e.i(500932);e.s(["CloseTiny",0,e=>{let o,i,n=(0,r.c)(3);return n[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8372 4.31196C14.3059 3.84333 14.3059 3.08353 13.8372 2.6149C13.3686 2.14627 12.6088 2.14627 12.1402 2.6149L8.18872 6.56637L4.23725 2.6149C3.76862 2.14627 3.00882 2.14627 2.54019 2.6149C2.07156 3.08353 2.07156 3.84333 2.54019 4.31196L6.49166 8.26343L2.54019 12.2149C2.07156 12.6835 2.07156 13.4433 2.54019 13.912C3.00882 14.3806 3.76862 14.3806 4.23725 13.912L8.18872 9.96048L12.1402 13.912C12.6088 14.3806 13.3686 14.3806 13.8372 13.912C14.3059 13.4433 14.3059 12.6835 13.8372 12.2149L9.88578 8.26343L13.8372 4.31196Z",fill:"currentColor"}),n[0]=o):o=n[0],n[1]!==e?(i=(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:o}),n[1]=e,n[2]=i):i=n[2],i}])},793610,e=>{"use strict";var t=e.i(843476),r=e.i(271645),o=e.i(437902),i=e.i(500932),n=e.i(248787),s=e.i(265658),a=e.i(133564);let c=(0,r.createContext)({setSmokeState:e=>{},setToastState:e=>{}}),l=e=>{let r,o,c,l,d=(0,i.c)(8);d[0]!==e.toast?(r=e.toast?[e.toast]:[],d[0]=e.toast,d[1]=r):r=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(o={from:{top:-40},enter:{top:8},leave:{top:-40},config:{}},d[2]=o):o=d[2];let p=(0,s.useTransition)(r,o);return d[3]!==e?(c=(r,o)=>o?(0,t.jsx)(n.animated.div,{style:r,className:"toastAnimationWrapper fixed top-0 bottom-0 right-0 left-0 z-50 h-fit",children:(0,t.jsxs)("div",{className:`toast absolute right-2 w-max shadow-md px-3 py-1 flex flex-row gap-2 rounded-full border text-center font-bold ${e.toast?.type==="error"?"toastError border-white bg-[#dc143c] text-white border font-bold":e.toast?.type==="success"?"toastSuccess bg-accent-1 text-accent-2 border border-accent-2":"bg-accent-1 text-accent-2 border border-accent-2"}`,children:[(0,t.jsx)("div",{className:"flex gap-2 grow justify-center",children:o.content}),(0,t.jsx)("button",{className:"shrink-0",onClick:()=>{e.setToast(null)},children:(0,t.jsx)(a.CloseTiny,{})})]})}):null,d[3]=e,d[4]=c):c=d[4],d[5]!==c||d[6]!==p?(l=p(c),d[5]=c,d[6]=p,d[7]=l):l=d[7],l},d=e=>{let r,n,s=(0,i.c)(6),a=`smoke w-max text-center pointer-events-none absolute z-[51] rounded-full px-2 py-1 text-sm sm:-translate-x-1/2 ${"left"===e.alignOnMobile?"-translate-x-full":"right"===e.alignOnMobile?"":"-translate-x-1/2"} 2 ${e.error?"border-white bg-[#dc143c] text-white border font-bold":"bg-accent-1 text-accent-2"}`,c=` 3 .smoke { 4 left: ${e.x}px; 5 top: ${e.y}px; 6 animation-name: fadeout; 7 animation-duration: 2s; 8 } 9 10 @keyframes fadeout { 11 from { 12 ${e.static?"":`top: ${e.y-20}px;`} 13 opacity: 100%; 14 } 15 16 to { 17 ${e.static?"":`top: ${e.y-60}px;`} 18 opacity: 0%; 19 } 20 } 21 `;return s[0]!==c?(r=(0,t.jsx)(o.default,{id:c.__hash,children:c}),s[0]=c,s[1]=r):r=s[1],s[2]!==e.children||s[3]!==a||s[4]!==r?(n=(0,t.jsxs)("div",{className:a,children:[r,e.children]}),s[2]=e.children,s[3]=a,s[4]=r,s[5]=n):n=s[5],n};function p(e){return(0,r.createElement)(d,{...e.position,error:e.error,key:e.key,static:e.static,alignOnMobile:e.alignOnMobile},e.text)}e.s(["PopUpProvider",0,e=>{let o,n,s,a,d,u,f=(0,i.c)(11);f[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],f[0]=o):o=f[0];let[h,m]=(0,r.useState)(o),[y,g]=(0,r.useState)(null),b=(0,r.useRef)(null);f[1]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{b.current&&(window.clearTimeout(b.current),b.current=null),g(e),b.current=window.setTimeout(()=>{g(null)},e?.duration?e.duration:6e3)},f[1]=n):n=f[1];let v=n;f[2]===Symbol.for("react.memo_cache_sentinel")?(s={setSmokeState:m,setToastState:v},f[2]=s):s=f[2];let w=e.children;return f[3]!==h?(a=h.map(p),f[3]=h,f[4]=a):a=f[4],f[5]!==y?(d=(0,t.jsx)(l,{toast:y,setToast:g}),f[5]=y,f[6]=d):d=f[6],f[7]!==e.children||f[8]!==a||f[9]!==d?(u=(0,t.jsxs)(c.Provider,{value:s,children:[w,a,d]}),f[7]=e.children,f[8]=a,f[9]=d,f[10]=u):u=f[10],u},"useSmoker",0,()=>{let e,t=(0,i.c)(2),{setSmokeState:o}=(0,r.useContext)(c);return t[0]!==o?(e=e=>{let t=Date.now().toString();o(r=>r.concat([{...e,key:t}])),setTimeout(()=>{o(e=>e.filter(e=>e.key!==t))},2e3)},t[0]=o,t[1]=e):e=t[1],e},"useToaster",0,()=>{let{setToastState:e}=(0,r.useContext)(c);return e}])},18262,4220,e=>{"use strict";var t=e.i(230596);function r(e){return null!=e&&"object"==typeof e}function o(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,i){return r(e)&&"$type"in e&&o(e.$type,t,i)}function n(e,t,i){return r(e)&&(!("$type"in e)||void 0===e.$type||o(e.$type,t,i))}e.s(["is$typed",0,i,"maybe$typed",0,n],4220);let s=Object.values({AppBskyActorProfile:{lexicon:1,id:"app.bsky.actor.profile",defs:{main:{type:"record",description:"A declaration of a Bluesky account profile.",key:"literal:self",record:{type:"object",properties:{dis
21playName:{type:"string",maxGraphemes:64,maxLength:640},description:{type:"string",description:"Free-form profile description text.",maxGraphemes:256,maxLength:2560},avatar:{type:"blob",description:"Small image to be displayed next to posts from account. AKA, 'profile picture'",accept:["image/png","image/jpeg"],maxSize:1e6},banner:{type:"blob",description:"Larger horizontal image to display behind profile view.",accept:["image/png","image/jpeg"],maxSize:1e6},labels:{type:"union",description:"Self-label values, specific to the Bluesky application, on the overall account.",refs:["lex:com.atproto.label.defs#selfLabels"]},joinedViaStarterPack:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},pinnedPost:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},createdAt:{type:"string",format:"datetime"}}}}}},ComAtprotoLabelDefs:{lexicon:1,id:"com.atproto.label.defs",defs:{label:{type:"object",description:"Metadata tag on an atproto resource (eg, repo or record).",required:["src","uri","val","cts"],properties:{ver:{type:"integer",description:"The AT Protocol version of the label object."},src:{type:"string",format:"did",description:"DID of the actor who created this label."},uri:{type:"string",format:"uri",description:"AT URI of the record, repository (account), or other resource that this label applies to."},cid:{type:"string",format:"cid",description:"Optionally, CID specifying the specific version of 'uri' resource this label applies to."},val:{type:"string",maxLength:128,description:"The short string name of the value or type of this label."},neg:{type:"boolean",description:"If true, this is a negation label, overwriting a previous label."},cts:{type:"string",format:"datetime",description:"Timestamp when this label was created."},exp:{type:"string",format:"datetime",description:"Timestamp at which this label expires (no longer applies)."},sig:{type:"bytes",description:"Signature of dag-cbor encoded label."}}},selfLabels:{type:"object",description:"Metadata tags on an atproto record, published by the author within the record.",required:["values"],properties:{values:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#selfLabel"},maxLength:10}}},selfLabel:{type:"object",description:"Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.",required:["val"],properties:{val:{type:"string",maxLength:128,description:"The short string name of the value or type of this label."}}},labelValueDefinition:{type:"object",description:"Declares a label value and its expected interpretations and behaviors.",required:["identifier","severity","blurs","locales"],properties:{identifier:{type:"string",description:"The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",maxLength:100,maxGraphemes:100},severity:{type:"string",description:"How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",knownValues:["inform","alert","none"]},blurs:{type:"string",description:"What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",knownValues:["content","media","none"]},defaultSetting:{type:"string",description:"The default setting for this label.",knownValues:["ignore","warn","hide"],default:"warn"},adultOnly:{type:"boolean",description:"Does the user need to have adult content enabled in order to configure this label?"},locales:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#labelValueDefinitionStrings"}}}},labelValueDefinitionStrings:{type:"object",description:"Strings which describe the label in the UI, localized into a specific language.",required:["lang","name","description"],properties:{lang:{type:"string",description:"The code of the language these strings are written in.",format:"language"},name:{type:"string",description:"A short human-readable name for the label.",maxGraphemes:64,maxLength:640},description:{type:"string",description:"A longer description of what the label means and why it might be applied.",maxGraphemes:1e4,maxLength:1e5}}},labelValue:{type:"string",knownValues:["!hide","!no-promote","!warn","!no-unauthenticated","dmca-violation","doxxing","porn","sexual","nudity","nsfl","gore"]}}},ComAtprotoRepoApplyWrites:{lexicon:1,id:"com.atproto.repo.applyWrites",defs:{main:{type:"procedure",description:"Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","writes"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons."},writes:{type:"array",items:{type:"union",refs:["lex:com.atproto.repo.applyWrites#create","lex:com.atproto.repo.applyWrites#update","lex:com.atproto.repo.applyWrites#delete"],closed:!0}},swapCommit:{type:"string",description:"If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.",format:"cid"}}}},output:{encoding:"application/json",schema:{type:"object",required:[],properties:{commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},results:{type:"array",items:{type:"union",refs:["lex:com.atproto.repo.applyWrites#createResult","lex:com.atproto.repo.applyWrites#updateResult","lex:com.atproto.repo.applyWrites#deleteResult"],closed:!0}}}}},errors:[{name:"InvalidSwap",description:"Indicates that the 'swapCommit' parameter did not match current commit."}]},create:{type:"object",description:"Operation which creates a new record.",required:["collection","value"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",maxLength:512,format:"record-key",description:"NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility."},value:{type:"unknown"}}},update:{type:"object",description:"Operation which updates an existing record.",required:["collection","rkey","value"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",format:"record-key"},value:{type:"unknown"}}},delete:{type:"object",description:"Operation which deletes an existing record.",required:["collection","rkey"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",format:"record-key"}}},createResult:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}},updateResult:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}},deleteResult:{type:"object",required:[],properties:{}}}},ComAtprotoRepoCreateRecord:{lexicon:1,id:"com.atproto.repo.createRecord",defs:{main:{type:"procedure",description:"Create a single new repository record. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","record"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key.",maxLength:512},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons."}
21,record:{type:"unknown",description:"The record itself. Must contain a $type field."},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}}},errors:[{name:"InvalidSwap",description:"Indicates that 'swapCommit' didn't match current repo commit."}]}}},ComAtprotoRepoDefs:{lexicon:1,id:"com.atproto.repo.defs",defs:{commitMeta:{type:"object",required:["cid","rev"],properties:{cid:{type:"string",format:"cid"},rev:{type:"string",format:"tid"}}}}},ComAtprotoRepoDeleteRecord:{lexicon:1,id:"com.atproto.repo.deleteRecord",defs:{main:{type:"procedure",description:"Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","rkey"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key."},swapRecord:{type:"string",format:"cid",description:"Compare and swap with the previous record by CID."},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",properties:{commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"}}}},errors:[{name:"InvalidSwap"}]}}},ComAtprotoRepoDescribeRepo:{lexicon:1,id:"com.atproto.repo.describeRepo",defs:{main:{type:"query",description:"Get information about an account and repository, including the list of collections. Does not require auth.",parameters:{type:"params",required:["repo"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."}}},output:{encoding:"application/json",schema:{type:"object",required:["handle","did","didDoc","collections","handleIsCorrect"],properties:{handle:{type:"string",format:"handle"},did:{type:"string",format:"did"},didDoc:{type:"unknown",description:"The complete DID document for this account."},collections:{type:"array",description:"List of all the collections (NSIDs) for which this repo contains at least one record.",items:{type:"string",format:"nsid"}},handleIsCorrect:{type:"boolean",description:"Indicates if handle is currently valid (resolves bi-directionally)"}}}}}}},ComAtprotoRepoGetRecord:{lexicon:1,id:"com.atproto.repo.getRecord",defs:{main:{type:"query",description:"Get a single record from a repository. Does not require auth.",parameters:{type:"params",required:["repo","collection","rkey"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",description:"The Record Key.",format:"record-key"},cid:{type:"string",format:"cid",description:"The CID of the version of the record. If not specified, then return the most recent version."}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","value"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"}}}},errors:[{name:"RecordNotFound"}]}}},ComAtprotoRepoImportRepo:{lexicon:1,id:"com.atproto.repo.importRepo",defs:{main:{type:"procedure",description:"Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",input:{encoding:"application/vnd.ipld.car"}}}},ComAtprotoRepoListMissingBlobs:{lexicon:1,id:"com.atproto.repo.listMissingBlobs",defs:{main:{type:"query",description:"Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:1e3,default:500},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["blobs"],properties:{cursor:{type:"string"},blobs:{type:"array",items:{type:"ref",ref:"lex:com.atproto.repo.listMissingBlobs#recordBlob"}}}}}},recordBlob:{type:"object",required:["cid","recordUri"],properties:{cid:{type:"string",format:"cid"},recordUri:{type:"string",format:"at-uri"}}}}},ComAtprotoRepoListRecords:{lexicon:1,id:"com.atproto.repo.listRecords",defs:{main:{type:"query",description:"List a range of records in a repository, matching a specific collection. Does not require auth.",parameters:{type:"params",required:["repo","collection"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."},collection:{type:"string",format:"nsid",description:"The NSID of the record type."},limit:{type:"integer",minimum:1,maximum:100,default:50,description:"The number of records to return."},cursor:{type:"string"},rkeyStart:{type:"string",description:"DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)"},rkeyEnd:{type:"string",description:"DEPRECATED: The highest sort-ordered rkey to stop at (exclusive)"},reverse:{type:"boolean",description:"Flag to reverse the order of the returned records."}}},output:{encoding:"application/json",schema:{type:"object",required:["records"],properties:{cursor:{type:"string"},records:{type:"array",items:{type:"ref",ref:"lex:com.atproto.repo.listRecords#record"}}}}}},record:{type:"object",required:["uri","cid","value"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"}}}}},ComAtprotoRepoPutRecord:{lexicon:1,id:"com.atproto.repo.putRecord",defs:{main:{type:"procedure",description:"Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","rkey","record"],nullable:["swapRecord"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key.",maxLength:512},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons."}
21,record:{type:"unknown",description:"The record to write."},swapRecord:{type:"string",format:"cid",description:"Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation"},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}}},errors:[{name:"InvalidSwap"}]}}},ComAtprotoRepoStrongRef:{lexicon:1,id:"com.atproto.repo.strongRef",description:"A URI with a content-hash fingerprint.",defs:{main:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"}}}}},ComAtprotoRepoUploadBlob:{lexicon:1,id:"com.atproto.repo.uploadBlob",defs:{main:{type:"procedure",description:"Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.",input:{encoding:"*/*"},output:{encoding:"application/json",schema:{type:"object",required:["blob"],properties:{blob:{type:"blob"}}}}}}},PartsPageEmbedCtx:{lexicon:1,id:"parts.page.embed.ctx",defs:{mode:{type:"string",knownValues:["edit","view"]},bgColor:{type:"string"},primaryColor:{type:"string"}}},PartsPageMentionConfig:{lexicon:1,id:"parts.page.mention.config",defs:{main:{type:"record",key:"literal:self",description:"User's configured mention services. Singleton record per user.",record:{type:"object",required:["services"],properties:{services:{type:"array",items:{type:"string",format:"at-uri"},maxLength:50,description:"AT URIs of parts.page.mention.service records the user has enabled"}}}}}},PartsPageMentionSearch:{lexicon:1,id:"parts.page.mention.search",defs:{main:{type:"query",description:"Search a mention service for matching results. A single XRPC host can serve multiple mention services, distinguished by the service AT URI.",parameters:{type:"params",required:["service","search"],properties:{service:{type:"string",format:"at-uri",description:"AT URI of the parts.page.mention.service record identifying which service to query"},search:{type:"string",description:"Search query string"},scope:{type:"string",description:"Optional scope identifier to narrow results within a service, as returned by a previous result's subscope.scope field"},limit:{type:"integer",minimum:1,maximum:50,default:20,description:"Maximum number of results to return"}}},output:{encoding:"application/json",schema:{type:"object",required:["results"],properties:{results:{type:"array",items:{type:"ref",ref:"lex:parts.page.mention.search#result"},maxLength:50}}}}},result:{type:"object",required:["uri","name"],properties:{uri:{type:"string",description:"Identifier for the mentioned entity"},name:{type:"string",description:"Display name for the mentioned entity"},description:{type:"string",description:"A description for the mentioned entity"},labels:{type:"array",items:{type:"ref",ref:"lex:parts.page.mention.search#mentionLabel"},description:"A set of labels to be rendered with the mentionedEntity"},href:{type:"string",format:"uri",description:"Optional web URL for the mentioned entity"},icon:{type:"string",format:"uri",description:"Optional icon URL for the mentioned entity, displayed next to the mention"},embed:{type:"ref",ref:"lex:parts.page.mention.search#embedInfo",description:"Optional embed info for creating an embed block instead of an inline mention"},subscope:{type:"ref",ref:"lex:parts.page.mention.search#subscopeInfo",description:"Optional subscope info indicating this result can be scoped into for further searching"}}},mentionLabel:{type:"object",properties:{text:{type:"string"}}},embedInfo:{type:"object",required:["src"],properties:{src:{type:"string",format:"uri",description:"Source URL for the iframe embed"},width:{type:"integer",minimum:16,maximum:3200,description:"Default width of the embed in pixels"},height:{type:"integer",minimum:16,maximum:3200,description:"Default height of the embed in pixels"},aspectRatio:{type:"ref",ref:"lex:parts.page.mention.search#aspectRatio",description:"Aspect ratio of the embed. If provided, takes precedence over width/height for sizing."}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}},subscopeInfo:{type:"object",required:["scope","label"],properties:{scope:{type:"string",description:"Scope identifier passed back to the service in subsequent search queries"},label:{type:"string",maxLength:100,description:"Display label for the scope-down button (e.g. 'Posts', 'Tracks')"}}}}},PartsPageMentionService:{lexicon:1,id:"parts.page.mention.service",defs:{main:{type:"record",key:"any",de
21scription:"Declares a mention service. The did is an XRPC service URL that implements parts.page.mention.search.",record:{type:"object",required:["name","did"],properties:{name:{type:"string",maxLength:200},description:{type:"string",maxLength:2e3},canBeScopedToDid:{type:"boolean"},did:{type:"string",format:"did",description:"DID of the service that implements parts.page.mention.search"}}}}}},PubLeafletBlocksBlockquote:{lexicon:1,id:"pub.leaflet.blocks.blockquote",defs:{main:{type:"object",required:["plaintext"],properties:{plaintext:{type:"string"},facets:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.richtext.facet"}}}}}},PubLeafletBlocksBskyPost:{lexicon:1,id:"pub.leaflet.blocks.bskyPost",defs:{main:{type:"object",required:["postRef"],properties:{postRef:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},clientHost:{type:"string"}}}}},PubLeafletBlocksButton:{lexicon:1,id:"pub.leaflet.blocks.button",defs:{main:{type:"object",required:["text","url"],properties:{text:{type:"string"},url:{type:"string",format:"uri"}}}}},PubLeafletBlocksCode:{lexicon:1,id:"pub.leaflet.blocks.code",defs:{main:{type:"object",required:["plaintext"],properties:{plaintext:{type:"string"},language:{type:"string"},syntaxHighlightingTheme:{type:"string"}}}}},PubLeafletBlocksHeader:{lexicon:1,id:"pub.leaflet.blocks.header",defs:{main:{type:"object",required:["plaintext"],properties:{level:{type:"integer",minimum:1,maximum:6},plaintext:{type:"string"},facets:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.richtext.facet"}}}}}},PubLeafletBlocksHorizontalRule:{lexicon:1,id:"pub.leaflet.blocks.horizontalRule",defs:{main:{type:"object",required:[],properties:{}}}},PubLeafletBlocksHtml:{lexicon:1,id:"pub.leaflet.blocks.html",defs:{main:{type:"object",required:["html"],properties:{html:{type:"string",description:"Inline HTML rendered via a sandboxed iframe's srcdoc attribute."},height:{type:"integer",minimum:16,maximum:1600},aspectRatio:{type:"ref",ref:"lex:pub.leaflet.blocks.html#aspectRatio"}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}}}},PubLeafletBlocksIframe:{lexicon:1,id:"pub.leaflet.blocks.iframe",defs:{main:{type:"object",properties:{url:{type:"string",format:"uri"},html:{type:"string",description:"DEPRECATED â use pub.leaflet.blocks.html instead. Inline HTML rendered via the iframe's srcdoc attribute. Takes precedence over url."},height:{type:"integer",minimum:16,maximum:1600},aspectRatio:{type:"ref",ref:"lex:pub.leaflet.blocks.iframe#aspectRatio"}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}}}},PubLeafletBlocksImage:{lexicon:1,id:"pub.leaflet.blocks.image",defs:{main:{type:"object",required:["image","aspectRatio"],properties:{image:{type:"blob",accept:["image/*"],maxSize:1e6},alt:{type:"string",description:"Alt text description of the image, for accessibility."},aspectRatio:{type:"ref",ref:"lex:pub.leaflet.blocks.image#aspectRatio"},fullBleed:{type:"boolean",description:"Whether the image should extend to the full width of the container, ignoring padding."},width:{type:"integer",description:"Display width of the image in pixels, capped at the page width."}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}}}},PubLeafletBlocksImageGallery:{lexicon:1,id:"pub.leaflet.blocks.imageGallery",defs:{main:{type:"object",required:["images"],properties:{images:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.blocks.imageGallery#image"}},format:{type:"string",knownValues:["grid","carousel","strip"]},gap:{type:"integer",description:"Gap between images in pixels."},maxWidth:{type:"integer",description:"Max width per image in grid view (px); drives how many columns fit."}}},image:{type:"object",required:["image","aspectRatio"],properties:{image:{type:"blob",accept:["image/*"],maxSize:1e6},alt:{type:"string",description:"Alt text description of the image, for accessibility."},aspectRatio:{type:"ref",ref:"lex:pub.leaflet.blocks.imageGallery#aspectRatio"}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}}}},PubLeafletBlocksMath:{lexicon:1,id:"pub.leaflet.blocks.math",defs:{main:{type:"object",required:["tex"],properties:{tex:{type:"string"}}}}},PubLeafletBlocksMembersOnlyDelimiter:{lexicon:1,id:"pub.leaflet.blocks.membersOnlyDelimiter",defs:{main:{type:"object",description:"Marks where members-only content begins and declares which publication members can read past it.",required:["audience"],properties:{audience:{type:"string",knownValues:["subscribers","paid","tiers"],description:"Whether access is available to all subscribers, all paid members, or selected paid tiers."},tierIds:{type:"array",items:{type:"string"},description:"Paid tier ids that grant access when audience is tiers. An empty selection grants no membership access."}}}}},PubLeafletBlocksOrderedList:{lexicon:1,id:"pub.leaflet.blocks.orderedList",defs:{main:{type:"object",required:["children"],properties:{startIndex:{type:"integer",description:"The starting number for this ordered list. Defaults to 1 if not specified."},children:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.blocks.orderedList#listItem"}}}},listItem:{type:"object",required:["content"],properties:{checked:{type:"boolean",description:"If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item."},content:{type:"union",refs:["lex:pub.leaflet.blocks.text","lex:pub.leaflet.blocks.header","lex:pub.leaflet.blocks.image"]},children:{type:"array",description:"Nested ordered list items. Mutually exclusive with unorderedListChildren; if both are present, children takes precedence.",items:{type:"ref",ref:"lex:pub.leaflet.blocks.orderedList#listItem"}},unorderedListChildren:{type:"ref",description:"A nested unordered list. Mutually exclusive with children; if both are present, children takes precedence.",ref:"lex:pub.leaflet.blocks.unorderedList"}}}}},PubLeafletBlocksPage:{lexicon:1,id:"pub.leaflet.blocks.page",defs:{main:{type:"object",required:["id"],properties:{id:{type:"string"},display:{type:"string",knownValues:["full","compact"]}}}}},PubLeafletBlocksPoll:{lexicon:1,id:"pub.leaflet.blocks.poll",defs:{main:{type:"object",required:["pollRef"],properties:{pollRef:{type:"ref",ref:"lex:com.atproto.repo.strongRef"}}}}},PubLeafletBlocksPostHeader:{lexicon:1,id:"pub.leaflet.blocks.postHeader",defs:{main:{type:"object",description:"The post's header (publication, title, description, byline) placed as a block, so canvas posts can position it. Renders the document's own metadata; carries no content of its own.",required:[],properties:{compact:{type:"boolean",description:"Show a condensed header: title and byline only, without the description."}}}}},PubLeafletBlocksPostsList:{lexicon:1,id:"pub.leaflet.blocks.postsList",defs:{main:{type:"object",required:[],properties:{view:{type:"string",knownValues:["small","medium","chapter"]},highlightFirstPost:{type:"boolean"},showPageCount:{type:"boolean",default:!0,description:"In the chapter view, show the number of pages under each chapter."},filterByTags:{type:"array",items:{type:"string"}},limit:{type:"integer",minimum:1,description:"Show at most this many posts."},readerControls:{type:"boolean",description:"Show reader-facing controls above the list. The readerSearch / readerTagFilter / readerSort flags pick which ones; each defaults to true when this is set."},readerSearch:{type:"boolean"},readerTagFilter:{type:"boolean"},readerSort:{type:"boolean"}}}}},PubLeafletBlocksRecommendedPubs:{lexicon:1,id:"pub.leaflet.blocks.recommendedPubs",defs:{main:{type:"object",description:"The publications this publication recommends, resolved at render time from its recommendations rather than stored on the block.",required:[],properties:{compact:{type:"boolean",description:"Lay the recommendations out as a single side-scrolling row instead of a grid."}}}}},PubLeafletBlocksSignup:{lexicon:1,id:"pub.leaflet.blocks.signup",defs:{main:{type:"object",description:"A subscribe/signup form for the publication. Renders the publication's subscribe form; carries no configurable data.",required:[],properties:{}}}},PubLeafletBlocksStandardSitePost:{lexicon:1,id:"pub.leaflet.blocks.standardSitePost",defs:{main:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string"},size:{type:"string",knownValues:["large","medium","small"]},showPublicationTheme:{type:"boolean"}}}}},PubLeafletBlocksStandardSitePublication:{lexicon:1,id:"pub.leaflet.blocks.standardSitePublication",defs:{main:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string"},showPublicationTheme:{type:"boolean"}}}}},PubLeafletBlocksText:{lexicon:1,id:"pub.leaflet.blocks.text",defs:{main:{type:"object",required:["plaintext"],properties:{plaintext:{type:"string"},textSize:{type:"string",enum:["default","small","large"]},facets:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.richtext.facet"}}}}}},PubLeafletBlocksUnorderedList:{lexicon:1,id:"pub.leaflet.blocks.unorderedList",defs:{main:{type:"object",required:["children"],properties:{children:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.blocks.unorderedList#listItem"}}}},listItem:{type:"object",required:["content"],properties:{checked:{type:"boolean",description:"If present, this item is a checklist item. true = checked, false = unchecked. If absent, this is a normal list item."},content:{type:"union",refs:["lex:pub.leaflet.blocks.text","lex:pub.leaflet.blocks.header","lex:pub.leaflet.blocks.image"]},children:{type:"array",description:"Nested unordered list items. Mutually exclusive with orderedListChildren; if both are present, children takes precedence.",items:{type:"ref",ref:"lex:pub.leaflet.blocks.unorderedList#listItem"}},orderedListChildren:{type:"ref",description:"Nested ordered list items. Mutually exclusive with children; if both are present, children takes precedence.",ref:"lex:pub.leaflet.blocks.orderedList"}}}}},PubLeafletBlocksWebsite:{lexicon:1,id:"pub.leaflet.blocks.website",defs:{main:{type:"object",required:["src"],properties:{previewImage:{type:"blob",accept:["image/*"],maxSize:1e6},title:{type:"string"},description:{type:"string"},src:{type:"string",format:"uri"}}}}},PubLeafletComment:{lexicon:1,id:"pub.leaflet.comment",revision:1,description:"A lexicon for comments on documents",defs:{main:{type:"record",key:"tid",description:"Record containing a comment",record:{type:"object",required:["subject","plaintext","createdAt"],properties:{subject:{type:"string",format:"at-uri"},createdAt:{type:"string",format:"datetime"},reply:{type:"ref",ref:"lex:pub.leaflet.comment#replyRef"},plaintext:{type:"string"},facets:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.richtext.facet"}},onPage:{type:"string"},attachment:{type:"union",refs:["lex:pub.leaflet.comment#linearDocumentQuote"]}}}},linearDocumentQuote:{type:"object",required:["document","quote"],properties:{document:{type:"string",format:"at-uri"},quote:{type:"ref",ref:"lex:pub.leaflet.pages.linearDocument#quote"}}},replyRef:{type:"object",required:["parent"],properties:{parent:{type:"string",format:"at-uri"}}}}},PubLeafletContent:{lexicon:1,id:"pub.leaflet.content",revision:1,description:"A lexicon for long form rich media documents",defs:{main:{type:"object",description:"Content format for leaflet documents",required:["pages"],properties:{pages:{type:"array",items:{type:"union",refs:["lex:pub.leaflet.pages.linearDocument","lex:pub.leaflet.pages.canvas"]}},blobPages:{type:"blob",accept:["application/json"],maxSize:5e6,description:"JSON-encoded array of pages. When the inline pages array would be too large to store on the PDS, the pages are uploaded as a blob and referenced here. When set, consumers MUST ignore `pages` and use the decoded blob contents as the page array; the inline `pages` field will be empty or a stub."},blobs:{type:"array",description:"Blobs referenced inside `blobPages`. Load-bearing when `blobPages` is set: the PDS only scans the top level of a record for blob references when deciding what to garbage-collect, so any image/etc. blob now living inside the opaque JSON blob must be mirrored here to remain referenced.",items:{type:"blob",accept:["*/*"],maxSize:1e7}}}}}},PubLeafletDocument:{lexicon:1,id:"pub.leaflet.document",revision:1,description:"A lexicon for long form rich media documents",defs:{main:{type:"record",key:"tid",description:"Record containing a document",record:{type:"object",required:["pages","author","t
21itle"],properties:{title:{type:"string",maxLength:5e3,maxGraphemes:500},postRef:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},description:{type:"string",maxLength:3e4,maxGraphemes:3e3},publishedAt:{type:"string",format:"datetime"},publication:{type:"string",format:"at-uri"},author:{type:"string",format:"at-identifier"},theme:{type:"ref",ref:"lex:pub.leaflet.publication#theme"},preferences:{type:"ref",ref:"lex:pub.leaflet.publication#preferences"},tags:{type:"array",items:{type:"string",maxLength:50}},coverImage:{type:"blob",accept:["image/png","image/jpeg","image/webp"],maxSize:1e6},pages:{type:"array",items:{type:"union",refs:["lex:pub.leaflet.pages.linearDocument","lex:pub.leaflet.pages.canvas"]}}}}}}},PubLeafletGraphRecommendations:{lexicon:1,id:"pub.leaflet.graph.recommendations",defs:{main:{type:"record",key:"any",description:"Record declaring the publications a publication recommends",record:{type:"object",required:["publication","recommendations"],properties:{publication:{type:"string",format:"at-uri",description:"The publication making the recommendations; must live in the same repo as this record"},recommendations:{type:"array",description:"Publications this publication recommends",items:{type:"string",format:"at-uri"}}}}}}},PubLeafletGraphSubscription:{lexicon:1,id:"pub.leaflet.graph.subscription",defs:{main:{type:"record",key:"tid",description:"Record declaring a subscription to a publication",record:{type:"object",required:["publication"],properties:{publication:{type:"string",format:"at-uri"}}}}}},PubLeafletInteractionsRecommend:{lexicon:1,id:"pub.leaflet.interactions.recommend",defs:{main:{type:"record",key:"tid",description:"Record representing a recommend on a document",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"string",format:"at-uri"},createdAt:{type:"string",format:"datetime"}}}}}},PubLeafletPagesCanvas:{lexicon:1,id:"pub.leaflet.pages.canvas",defs:{main:{type:"object",required:["blocks"],properties:{id:{type:"string"},blocks:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.pages.canvas#block"}}}},block:{type:"object",required:["block","x","y","width"],properties:{block:{type:"union",refs:["lex:pub.leaflet.blocks.iframe","lex:pub.leaflet.blocks.html","lex:pub.leaflet.blocks.text","lex:pub.leaflet.blocks.blockquote","lex:pub.leaflet.blocks.header","lex:pub.leaflet.blocks.image","lex:pub.leaflet.blocks.imageGallery","lex:pub.leaflet.blocks.unorderedList","lex:pub.leaflet.blocks.orderedList","lex:pub.leaflet.blocks.website","lex:pub.leaflet.blocks.math","lex:pub.leaflet.blocks.code","lex:pub.leaflet.blocks.horizontalRule","lex:pub.leaflet.blocks.bskyPost","lex:pub.leaflet.blocks.standardSitePost","lex:pub.leaflet.blocks.standardSitePublication","lex:pub.leaflet.blocks.page","lex:pub.leaflet.blocks.poll","lex:pub.leaflet.blocks.button","lex:pub.leaflet.blocks.postsList","lex:pub.leaflet.blocks.signup","lex:pub.leaflet.blocks.recommendedPubs","lex:pub.leaflet.blocks.membersOnlyDelimiter","lex:pub.leaflet.blocks.postHeader"]},x:{type:"integer"},y:{type:"integer"},width:{type:"integer"},height:{type:"integer"},rotation:{type:"integer",description:"The rotation of the block in degrees"},stackOrder:{type:"string",description:"Fractional index ordering this block against its siblings on the z axis. Blocks without one stack below every block with one, ordered by position."}}},textAlignLeft:{type:"token"},textAlignCenter:{type:"token"},textAlignRight:{type:"token"},quote:{type:"object",required:["start","end"],properties:{start:{type:"ref",ref:"lex:pub.leaflet.pages.canvas#position"},end:{type:"ref",ref:"lex:pub.leaflet.pages.canvas#position"}}},position:{type:"object",required:["block","offset"],properties:{block:{type:"array",items:{type:"integer"}},offset:{type:"integer"}}}}},PubLeafletPagesLinearDocument:{lexicon:1,id:"pub.leaflet.pages.linearDocument",defs:{main:{type:"object",required:["blocks"],properties:{id:{type:"string"},blocks:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.pages.linearDocument#block"}}}},block:{type:"object",required:["block"],properties:{block:{type:"union",refs:["lex:pub.leaflet.blocks.iframe","lex:pub.leaflet.blocks.html","lex:pub.leaflet.blocks.text","lex:pub.leaflet.blocks.blockquote","lex:pub.leaflet.blocks.header","lex:pub.leaflet.blocks.image","lex:pub.leaflet.blocks.imageGallery","lex:pub.leaflet.blocks.unorderedList","lex:pub.leaflet.blocks.orderedList","lex:pub.leaflet.blocks.website","lex:pub.leaflet.blocks.math","lex:pub.leaflet.blocks.code","lex:pub.leaflet.blocks.horizontalRule","lex:pub.leaflet.blocks.bskyPost","lex:pub.leaflet.blocks.standardSitePost","lex:pub.leaflet.blocks.standardSitePublication","lex:pub.leaflet.blocks.page","lex:pub.leaflet.blocks.poll","lex:pub.leaflet.blocks.button","lex:pub.leaflet.blocks.postsList","lex:pub.leaflet.blocks.signup","lex:pub.leaflet.blocks.recommendedPubs","lex:pub.leaflet.blocks.membersOnlyDelimiter","lex:pub.leaflet.blocks.postHeader"]},alignment:{type:"string",knownValues:["lex:pub.leaflet.pages.linearDocument#textAlignLeft","lex:pub.leaflet.pages.linearDocument#textAlignCenter","lex:pub.leaflet.pages.linearDocument#textAlignRight","lex:pub.leaflet.pages.linearDocument#textAlignJustify"]}}},textAlignLeft:{type:"token"},textAlignCenter:{type:"token"},textAlignRight:{type:"token"},textAlignJustify:{type:"token"},quote:{type:"object",required:["start","end"],properties:{start:{type:"ref",ref:"lex:pub.leaflet.pages.linearDocument#position"},end:{type:"ref",ref:"lex:pub.leaflet.pages.linearDocument#position"}}},position:{type:"object",required:["block","offset"],properties:{block:{type:"array",items:{type:"integer"}},offset:{type:"integer"}}}}},PubLeafletPollDefinition:{lexicon:1,id:"pub.leaflet.poll.definition",defs:{main:{type:"record",key:"tid",description:"Record declaring a poll",record:{type:"object",required:["name","options"],properties:{name:{type:"string",maxLength:500,maxGraphemes:100},options:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.poll.definition#option"}},endDate:{type:"string",format:"datetime"}}}},option:{type:"object",properties:{text:{type:"string",maxLength:500,maxGraphemes:50}}}}},PubLeafletPollVote:{lexicon:1,id:"pub.leaflet.poll.vote",defs:{main:{type:"record",key:"tid",description:"Record declaring a vote on a poll",record:{type:"object",required:["poll","option"],properties:{poll:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},option:{type:"array",items:{type:"string"}}}}}}},PubLeafletPublication:{lexicon:1,id:"pub.leaflet.publication",defs:{main:{type:"record",key:"tid",description:"Record declaring a publication",record:{type:"object",required:["name"],properties:{name:{type:"string",maxLength:2e3},base_path:{type:"string"},description:{type:"string",maxLength:2e3},icon:{type:"blob",accept:["image/*"],maxSize:1e6},theme:{type:"ref",ref:"lex:pub.leaflet.publication#theme"},preferences:{type:"ref",ref:"lex:pub.leaflet.publication#preferences"}}}},preferences:{type:"object",properties:{showInDiscover:{type:"boolean",default:!0},showComments:{type:"boolean",default:!0},showMentions:{type:"boolean",default:!0},showPrevNext:{type:"boolean",default:!0},showFirstLast:{type:"boolean",default:!1},prevNextDirection:{type:"string",knownValues:["ltr","rtl"],default:"rtl"},showRecommends:{type:"boolean",default:!0},showOtherPublicationsInTags:{type:"boolean",default:!0}}},theme:{type:"object",properties:{backgroundColor:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]},backgroundImage:{type:"ref",ref:"lex:pub.leaflet.theme.backgroundImage"},wordmark:{type:"ref",ref:"lex:pub.leaflet.theme.wordmark"},pageWidth:{type:"integer",minimum:0,maximum:1600},primary:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]}
21,pageBackground:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]},showPageBackground:{type:"boolean",default:!1},accentBackground:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]},accentText:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]},headingFont:{type:"string",maxLength:100},bodyFont:{type:"string",maxLength:100}}}}},PubLeafletPublicationPage:{lexicon:1,id:"pub.leaflet.publicationPage",defs:{main:{type:"record",key:"any",description:"A static page belonging to a publication (e.g. about / contact). The rkey is derived from the page path slug.",record:{type:"object",required:["publication","path","content"],properties:{publication:{type:"string",format:"at-uri"},path:{type:"string"},title:{type:"string",maxLength:2e3},publishedAt:{type:"string",format:"datetime"},content:{type:"ref",ref:"lex:pub.leaflet.content"}}}}}},PubLeafletRichtextFacet:{lexicon:1,id:"pub.leaflet.richtext.facet",defs:{main:{type:"object",description:"Annotation of a sub-string within rich text.",required:["index","features"],properties:{index:{type:"ref",ref:"lex:pub.leaflet.richtext.facet#byteSlice"},features:{type:"array",items:{type:"union",refs:["lex:pub.leaflet.richtext.facet#link","lex:pub.leaflet.richtext.facet#didMention","lex:pub.leaflet.richtext.facet#atMention","lex:pub.leaflet.richtext.facet#code","lex:pub.leaflet.richtext.facet#highlight","lex:pub.leaflet.richtext.facet#underline","lex:pub.leaflet.richtext.facet#strikethrough","lex:pub.leaflet.richtext.facet#id","lex:pub.leaflet.richtext.facet#bold","lex:pub.leaflet.richtext.facet#italic","lex:pub.leaflet.richtext.facet#footnote"]}}}},byteSlice:{type:"object",description:"Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.",required:["byteStart","byteEnd"],properties:{byteStart:{type:"integer",minimum:0},byteEnd:{type:"integer",minimum:0}}},link:{type:"object",description:"Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.",required:["uri"],properties:{uri:{type:"string"}}},didMention:{type:"object",description:"Facet feature for mentioning a did.",required:["did"],properties:{did:{type:"string",format:"did"}}},atMention:{type:"object",description:"Facet feature for mentioning an AT URI.",required:["atURI"],properties:{atURI:{type:"string",format:"uri"},href:{type:"string",format:"uri"}}},code:{type:"object",description:"Facet feature for inline code.",required:[],properties:{}},highlight:{type:"object",description:"Facet feature for highlighted text.",required:[],properties:{color:{type:"union",refs:["lex:pub.leaflet.theme.color#rgba","lex:pub.leaflet.theme.color#rgb"]}}},underline:{type:"object",description:"Facet feature for underline markup",required:[],properties:{}},strikethrough:{type:"object",description:"Facet feature for strikethrough markup",required:[],properties:{}},id:{type:"object",description:"Facet feature for an identifier. Used for linking to a segment",required:[],properties:{id:{type:"string"}}},bold:{type:"object",description:"Facet feature for bold text",required:[],properties:{}},italic:{type:"object",description:"Facet feature for italic text",required:[],properties:{}},footnote:{type:"object",description:"Facet feature for a footnote reference",required:["footnoteId","contentPlaintext"],properties:{footnoteId:{type:"string"},contentPlaintext:{type:"string"},contentFacets:{type:"array",items:{type:"ref",ref:"lex:pub.leaflet.richtext.facet#main"}}}}}}
21,PubLeafletThemeBackgroundImage:{lexicon:1,id:"pub.leaflet.theme.backgroundImage",defs:{main:{type:"object",required:["image"],properties:{image:{type:"blob",accept:["image/*"],maxSize:1e6},width:{type:"integer"},repeat:{type:"boolean"}}}}},PubLeafletThemeColor:{lexicon:1,id:"pub.leaflet.theme.color",defs:{rgba:{type:"object",required:["r","g","b","a"],properties:{r:{type:"integer",maximum:255,minimum:0},g:{type:"integer",maximum:255,minimum:0},b:{type:"integer",maximum:255,minimum:0},a:{type:"integer",maximum:100,minimum:0}}},rgb:{type:"object",required:["r","g","b"],properties:{r:{type:"integer",maximum:255,minimum:0},g:{type:"integer",maximum:255,minimum:0},b:{type:"integer",maximum:255,minimum:0}}}}},PubLeafletThemeWordmark:{lexicon:1,id:"pub.leaflet.theme.wordmark",defs:{main:{type:"object",required:["image"],properties:{image:{type:"blob",accept:["image/*"],maxSize:1e6},width:{type:"integer"},aspectRatio:{type:"ref",ref:"lex:pub.leaflet.theme.wordmark#aspectRatio"}}},aspectRatio:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}}}},SiteStandardDocument:{defs:{main:{key:"tid",record:{properties:{bskyPostRef:{ref:"lex:com.atproto.repo.strongRef",type:"ref"},content:{closed:!1,refs:["lex:pub.leaflet.content"],type:"union"},contributors:{type:"array",items:{ref:"lex:site.standard.document#contributor",type:"ref"}},coverImage:{accept:["image/*"],maxSize:1e6,type:"blob"},description:{maxGraphemes:3e3,maxLength:3e4,type:"string"},path:{description:"combine with the publication url or the document site to construct a full url to the document",type:"string"},publishedAt:{format:"datetime",type:"string"},site:{description:"URI to the site or publication this document belongs to. Supports both AT-URIs (at://did/collection/rkey) for publication references and HTTPS URLs (https://example.com) for standalone documents or external sites.",format:"uri",type:"string"},tags:{items:{maxGraphemes:50,maxLength:100,type:"string"},type:"array"},textContent:{type:"string"},theme:{description:"Theme for standalone documents. For documents in publications, theme is inherited from the publication.",ref:"lex:pub.leaflet.publication#theme",type:"ref"},title:{maxGraphemes:500,maxLength:5e3,type:"string"},preferences:{type:"union",refs:["lex:pub.leaflet.publication#preferences"],closed:!1},updatedAt:{format:"datetime",type:"string"}},required:["site","title","publishedAt"],type:"object"},type:"record"},contributor:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"},role:{type:"string",maxLength:1e3,maxGraphemes:100},displayName:{type:"string",maxLength:1e3,maxGraphemes:100}}}},id:"site.standard.document",lexicon:1},SiteStandardGraphRecommend:{id:"site.standard.graph.recommend",defs:{main:{key:"tid",type:"record",record:{type:"object",required:["document","createdAt"],properties:{document:{type:"string",format:"at-uri",description:"AT-URI reference to the document record being recommended (ex: at://did:plc:abc123/site.standard.document/xyz789)."},createdAt:{type:"string",format:"datetime"}}},description:"Record declaring a recommendation of a document."}},lexicon:1},SiteStandardGraphSubscription:{defs:{main:{description:"Record declaring a subscription to a publication",key:"tid",record:{properties:{publication:{format:"at-uri",type:"string"}},required:["publication"],type:"object"},type:"record"}},id:"site.standard.graph.subscription",lexicon:1},SiteStandardPublication:{defs:{main:{key:"tid",record:{properties:{basicTheme:{ref:"lex:site.standard.theme.basic",type:"ref"},theme:{type:"union",refs:["lex:pub.leaflet.publication#theme"]},description:{maxGraphemes:300,maxLength:3e3,type:"string"},icon:{accept:["image/*"],maxSize:1e6,type:"blob"},name:{maxGraphemes:128,maxLength:1280,type:"string"},preferences:{ref:"lex:site.standard.publication#preferences",type:"ref"},url:{format:"uri",type:"string"}},required:["url","name"],type:"object"},type:"record"},preferences:{properties:{showInDiscover:{default:!0,type:"boolean"},showComments:{default:!0,type:"boolean"},showMentions:{default:!0,type:"boolean"},showPrevNext:{default:!1,type:"boolean"},showFirstLast:{default:!1,type:"boolean"},prevNextDirection:{default:"rtl",knownValues:["ltr","rtl"],type:"string"},showRecommends:{default:!0,type:"boolean"},showOtherPublicationsInTags:{default:!0,type:"boolean"}},type:"object"}},id:"site.standard.publication",lexicon:1},SiteStandardThemeBasic:{defs:{main:{properties:{accent:{refs:["lex:site.standard.theme.color#rgb"],type:"union"},accentForeground:{refs:["lex:site.standard.theme.color#rgb"],type:"union"},background:{refs:["lex:site.standard.theme.color#rgb"],type:"union"},foreground:{refs:["lex:site.standard.theme.color#rgb"],type:"union"}},required:["background","foreground","accent","accentForeground"],type:"object"}},id:"site.standard.theme.basic",lexicon:1},SiteStandardThemeColor:{lexicon:1,id:"site.standard.theme.color",defs:{rgb:{type:"object",required:["r","g","b"],properties:{r:{type:"integer",minimum:0,maximum:255},g:{type:"integer",minimum:0,maximum:255},b:{type:"integer",minimum:0,maximum:255}}},rgba:{type:"object",required:["r","g","b","a"],properties:{r:{type:"integer",minimum:0,maximum:255},g:{type:"integer",minimum:0,maximum:255},b:{type:"integer",minimum:0,maximum:255},a:{type:"integer",minimum:0,maximum:100}}}}}}),a=new t.Lexicons(s);e.s(["ids",0,{AppBskyActorProfile:"app.bsky.actor.profile",ComAtprotoLabelDefs:"com.atproto.label.defs",ComAtprotoRepoApplyWrites:"com.atproto.repo.applyWrites",ComAtprotoRepoCreateRecord:"com.atproto.repo.createRecord",ComAtprotoRepoDefs:"c
21om.atproto.repo.defs",ComAtprotoRepoDeleteRecord:"com.atproto.repo.deleteRecord",ComAtprotoRepoDescribeRepo:"com.atproto.repo.describeRepo",ComAtprotoRepoGetRecord:"com.atproto.repo.getRecord",ComAtprotoRepoImportRepo:"com.atproto.repo.importRepo",ComAtprotoRepoListMissingBlobs:"com.atproto.repo.listMissingBlobs",ComAtprotoRepoListRecords:"com.atproto.repo.listRecords",ComAtprotoRepoPutRecord:"com.atproto.repo.putRecord",ComAtprotoRepoStrongRef:"com.atproto.repo.strongRef",ComAtprotoRepoUploadBlob:"com.atproto.repo.uploadBlob",PartsPageEmbedCtx:"parts.page.embed.ctx",PartsPageMentionConfig:"parts.page.mention.config",PartsPageMentionSearch:"parts.page.mention.search",PartsPageMentionService:"parts.page.mention.service",PubLeafletBlocksBlockquote:"pub.leaflet.blocks.blockquote",PubLeafletBlocksBskyPost:"pub.leaflet.blocks.bskyPost",PubLeafletBlocksButton:"pub.leaflet.blocks.button",PubLeafletBlocksCode:"pub.leaflet.blocks.code",PubLeafletBlocksHeader:"pub.leaflet.blocks.header",PubLeafletBlocksHorizontalRule:"pub.leaflet.blocks.horizontalRule",PubLeafletBlocksHtml:"pub.leaflet.blocks.html",PubLeafletBlocksIframe:"pub.leaflet.blocks.iframe",PubLeafletBlocksImage:"pub.leaflet.blocks.image",PubLeafletBlocksImageGallery:"pub.leaflet.blocks.imageGallery",PubLeafletBlocksMath:"pub.leaflet.blocks.math",PubLeafletBlocksMembersOnlyDelimiter:"pub.leaflet.blocks.membersOnlyDelimiter",PubLeafletBlocksOrderedList:"pub.leaflet.blocks.orderedList",PubLeafletBlocksPage:"pub.leaflet.blocks.page",PubLeafletBlocksPoll:"pub.leaflet.blocks.poll",PubLeafletBlocksPostHeader:"pub.leaflet.blocks.postHeader",PubLeafletBlocksPostsList:"pub.leaflet.blocks.postsList",PubLeafletBlocksRecommendedPubs:"pub.leaflet.blocks.recommendedPubs",PubLeafletBlocksSignup:"pub.leaflet.blocks.signup",PubLeafletBlocksStandardSitePost:"pub.leaflet.blocks.standardSitePost",PubLeafletBlocksStandardSitePublication:"pub.leaflet.blocks.standardSitePublication",PubLeafletBlocksText:"pub.leaflet.blocks.text",PubLeafletBlocksUnorderedList:"pub.leaflet.blocks.unorderedList",PubLeafletBlocksWebsite:"pub.leaflet.blocks.website",PubLeafletComment:"pub.leaflet.comment",PubLeafletContent:"pub.leaflet.content",PubLeafletDocument:"pub.leaflet.document",PubLeafletGraphRecommendations:"pub.leaflet.graph.recommendations",PubLeafletGraphSubscription:"pub.leaflet.graph.subscription",PubLeafletInteractionsRecommend:"pub.leaflet.interactions.recommend",PubLeafletPagesCanvas:"pub.leaflet.pages.canvas",PubLeafletPagesLinearDocument:"pub.leaflet.pages.linearDocument",PubLeafletPollDefinition:"pub.leaflet.poll.definition",PubLeafletPollVote:"pub.leaflet.poll.vote",PubLeafletPublication:"pub.leaflet.publication",PubLeafletPublicationPage:"pub.leaflet.publicationPage",PubLeafletRichtextFacet:"pub.leaflet.richtext.facet",PubLeafletThemeBackgroun
21dImage:"pub.leaflet.theme.backgroundImage",PubLeafletThemeColor:"pub.leaflet.theme.color",PubLeafletThemeWordmark:"pub.leaflet.theme.wordmark",SiteStandardDocument:"site.standard.document",SiteStandardGraphRecommend:"site.standard.graph.recommend",SiteStandardGraphSubscription:"site.standard.graph.subscription",SiteStandardPublication:"site.standard.publication",SiteStandardThemeBasic:"site.standard.theme.basic",SiteStandardThemeColor:"site.standard.theme.color"},"schemas",0,s,"validate",0,function(e,r,o,s){return(s?i:n)(e,r,o)?a.validate(`${r}#${o}`,e):{success:!1,error:new t.ValidationError(`Must be an object with "${"main"===o?r:`${r}#${o}`}" $type property`)}}],18262)},795743,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnsupportedCollectionError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"UnsupportedCollection"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnsupportedCollectionError=n},15087,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnsupportedCollectionError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"UnsupportedCollection"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnsupportedCollectionError=n},627364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BlockedByActorError=r.BlockedActorError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("BlockedActor"===e.error)return new n(e);if("BlockedByActor"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlockedActorError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlockedByActorError=s},547733,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BlockedByActorError=r.BlockedActorError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("BlockedActor"===e.error)return new n(e);if("BlockedByActor"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlockedActorError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlockedByActorError=s},323771,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnknownFeedError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"UnknownFeed"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnknownFeedError=n},825320,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnknownFeedError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"UnknownFeed"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnknownFeedError=n},142640,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnknownListError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"UnknownList"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnknownListError=n},115480,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"NotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.NotFoundError=n},911641,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.BadQueryStringError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"BadQueryString"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BadQueryStringError=n},178557,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ActorNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"ActorNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ActorNotFoundError=n},819067,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidInitiationError=r.DidTooLongError=r.InvalidEmailError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("InvalidEmail"===e.error)return new n(e);if("DidTooLong"===e.error)return new s(e);if("InvalidInitiation"===e.error)return new a(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidEmailError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidTooLongError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidInitiationError=a},479305,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BadQueryStringError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"BadQueryString"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BadQueryStringError=n},264615,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BadQueryStringError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"BadQueryString"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BadQueryStringError=n},210822,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BadQueryStringError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"BadQueryString"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BadQueryStringError=n},62596,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ReactionInvalidValueError=r.ReactionLimitReachedError=r.ReactionMessageDeletedError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("ReactionMessageDeleted"===e.error)return new n(e);if("ReactionLimitReached"===e.error)return new s(e);if("ReactionInvalidValue"===e.error)return new a(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ReactionMessageDeletedError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ReactionLimitReachedError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ReactionInvalidValueError=a},353866,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ReactionInvalidValueError=r.ReactionMessageDeletedError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("ReactionMessageDeleted"===e.error)return new n(e);if("ReactionInvalidValue"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ReactionMessageDeletedError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ReactionInvalidValueError=s},658238,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.DidDeactivatedError=r.DidNotFoundError=r.HandleNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("HandleNotFound"===e.error)return new n(e);if("DidNotFound"===e.error)return new s(e);if("DidDeactivated"===e.error)return new a(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HandleNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidNotFoundError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidDeactivatedError=a},626441,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DidDeactivatedError=r.DidNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("DidNotFound"===e.error)return new n(e);if("DidDeactivated"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidDeactivatedError=s},430666,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HandleNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"HandleNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HandleNotFoundError=n},905352,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DidDeactivatedError=r.DidNotFoundError=r.HandleNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("HandleNotFound"===e.error)return new n(e);if("DidNotFound"===e.error)return new s(e);if("DidDeactivated"===e.error)return new a(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HandleNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidNotFoundError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DidDeactivatedError=a},899206,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSwapError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidSwap"===e.error?new c(e):e},r.isCreate=function(e){return n(e,a,l)},r.validateCreate=function(e){return s(e,a,l)},r.isUpdate=function(e){return n(e,a,d)},r.validateUpdate=function(e){return s(e,a,d)},r.isDelete=function(e){return n(e,a,p)},r.validateDelete=function(e){return s(e,a,p)},r.isCreateResult=function(e){return n(e,a,u)},r.validateCreateResult=function(e){return s(e,a,u)},r.isUpdateResult=function(e){return n(e,a,f)},r.validateUpdateResult=function(e){return s(e,a,f)},r.isDeleteResult=function(e){return n(e,a,h)},r.validateDeleteResult=function(e){return s(e,a,h)};let o=e.r(639829),i=e.r(397657),n=e.r(291078).is$typed,s=i.validate,a="com.atproto.repo.applyWrites";class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidSwapError=c;let l="create",d="update",p="delete",u="createResult",f="updateResult",h="deleteResult"},224183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSwapError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidSwap"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidSwapError=n},752950,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSwapError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidSwap"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);
21e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidSwapError=n},760201,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RecordNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RecordNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RecordNotFoundError=n},766193,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidSwapError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidSwap"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidSwapError=n},696806,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidEmailError=r.InvalidTokenError=r.ExpiredTokenError=r.AccountNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("AccountNotFound"===e.error)return new n(e);if("ExpiredToken"===e.error)return new s(e);if("InvalidToken"===e.error)return new a(e);if("InvalidEmail"===e.error)return new c(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AccountNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ExpiredTokenError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidTokenError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidEmailError=c},372192,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.IncompatibleDidDocError=r.UnresolvableDidError=r.UnsupportedDomainError=r.HandleNotAvailableError=r.InvalidInviteCodeError=r.InvalidPasswordError=r.InvalidHandleError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("InvalidHandle"===e.error)return new n(e);if("InvalidPassword"===e.error)return new s(e);if("InvalidInviteCode"===e.error)return new a(e);if("HandleNotAvailable"===e.error)return new c(e);if("UnsupportedDomain"===e.error)return new l(e);if("UnresolvableDid"===e.error)return new d(e);if("IncompatibleDidDoc"===e.error)return new p(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidHandleError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidPasswordError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidInviteCodeError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HandleNotAvailableError=c;class l extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnsupportedDomainError=l;class d extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.UnresolvableDidError=d;class p extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.IncompatibleDidDocError=p},294212,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountTakedownError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"AccountTakedown"===e.error?new c(e):e},r.isAppPassword=function(e){return n(e,a,l)},r.validateAppPassword=function(e){return s(e,a,l)};let o=e.r(639829),i=e.r(397657),n=e.r(291078).is$typed,s=i.validate,a="com.atproto.server.createAppPassword";class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AccountTakedownError=c;let l="appPassword"},305532,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AuthFactorTokenRequiredError=r.AccountTakedownError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("AccountTakedown"===e.error)return new n(e);if("AuthFactorTokenRequired"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);
21e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AccountTakedownError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AuthFactorTokenRequiredError=s},905968,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTokenError=r.ExpiredTokenError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ExpiredTokenError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidTokenError=s},868544,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DuplicateCreateError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"DuplicateCreate"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DuplicateCreateError=n},807587,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BadExpirationError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"BadExpiration"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BadExpirationError=n},884290,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountTakedownError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"AccountTakedown"===e.error?new c(e):e},r.isAppPassword=function(e){return n(e,a,l)},r.validateAppPassword=function(e){return s(e,a,l)};let o=e.r(639829),i=e.r(397657),n=e.r(291078).is$typed,s=i.validate,a="com.atproto.server.listAppPasswords";class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AccountTakedownError=c;let l="appPassword"},601561,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AccountTakedownError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"AccountTakedown"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.AccountTakedownError=n},55296,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTokenError=r.ExpiredTokenError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ExpiredTokenError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidTokenError=s},664350,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TokenRequiredError=r.InvalidTokenError=r.ExpiredTokenError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("ExpiredToken"===e.error)return new n(e);if("InvalidToken"===e.error)return new s(e);if("TokenRequired"===e.error)return new a(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.ExpiredTokenError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidTokenError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.TokenRequiredError=a},430253,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=r.BlobNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("BlobNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new s(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new c(e);if("RepoDeactivated"===e.error)return new l(e)}return e};let o=e.r(639829),i=e.r(397657);
21e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlobNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=c;class l extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=l},692071,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=r.BlockNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("BlockNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new s(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new c(e);if("RepoDeactivated"===e.error)return new l(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.BlockNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=c;class l extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=l},660599,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HeadNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"HeadNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HeadNotFoundError=n},358621,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HostNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"HostNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HostNotFoundError=n},821939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new s(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new c(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=c},390773,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=r.RecordNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("RecordNotFound"===e.error)return new n(e);if("RepoNotFound"===e.error)return new s(e);if("RepoTakendown"===e.error)return new a(e);if("RepoSuspended"===e.error)return new c(e);if("RepoDeactivated"===e.error)return new l(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RecordNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=c;class l extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=l},708533,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new s(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new c(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=c},547647,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RepoNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=n},478251,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoDeactivatedError=r.RepoSuspendedError=r.RepoTakendownError=r.RepoNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("RepoNotFound"===e.error)return new n(e);if("RepoTakendown"===e.error)return new s(e);if("RepoSuspended"===e.error)return new a(e);if("RepoDeactivated"===e.error)return new c(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoTakendownError=s;class a extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoSuspendedError=a;class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoDeactivatedError=c},902654,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HostBannedError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"HostBanned"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.HostBannedError=n},816044,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidEmailError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidEmail"===e.error?new c(e):e},r.isResultAvailable=function(e){return n(e,a,l)},r.validateResultAvailable=function(e){return s(e,a,l)},r.isResultUnavailable=function(e){return n(e,a,d)},r.validateResultUnavailable=function(e){return s(e,a,d)},r.isSuggestion=function(e){return n(e,a,p)},r.validateSuggestion=function(e){return s(e,a,p)};let o=e.r(639829),i=e.r(397657),n=e.r(291078).is$typed,s=i.validate,a="com.atproto.temp.checkHandleAvailability";class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidEmailError=c;let l="resultAvailable",d="resultUnavailable",p="suggestion"},831422,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidScopeReferenceError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"InvalidScopeReference"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidScopeReferenceError=n},841302,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DuplicateTemplateNameError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"DuplicateTemplateName"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);
21e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DuplicateTemplateNameError=n},673252,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DuplicateTemplateNameError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"DuplicateTemplateName"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DuplicateTemplateNameError=n},225791,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DuplicateExternalIdError=r.SubjectHasActionError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("SubjectHasAction"===e.error)return new n(e);if("DuplicateExternalId"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.SubjectHasActionError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.DuplicateExternalIdError=s},31e3,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RepoNotFound"===e.error?new c(e):e},r.isTimelineItem=function(e){return n(e,a,l)},r.validateTimelineItem=function(e){return s(e,a,l)},r.isTimelineItemSummary=function(e){return n(e,a,d)},r.validateTimelineItemSummary=function(e){return s(e,a,d)};let o=e.r(639829),i=e.r(397657),n=e.r(291078).is$typed,s=i.validate,a="tools.ozone.moderation.getAccountTimeline";class c extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=c;let l="timelineItem",d="timelineItemSummary"},968595,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RecordNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RecordNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RecordNotFoundError=n},703910,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RepoNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RepoNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RepoNotFoundError=n},315756,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RuleAlreadyExistsError=r.InvalidUrlError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("InvalidUrl"===e.error)return new n(e);if("RuleAlreadyExists"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.InvalidUrlError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RuleAlreadyExistsError=s},226263,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RuleNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RuleNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RuleNotFoundError=n},825967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RuleNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"RuleNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.RuleNotFoundError=n},116887,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SetNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"SetNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);
21e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.SetNotFoundError=n},395265,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SetNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"SetNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.SetNotFoundError=n},756376,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SetNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"SetNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.SetNotFoundError=n},73928,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MemberAlreadyExistsError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"MemberAlreadyExists"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.MemberAlreadyExistsError=n},907906,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CannotDeleteSelfError=r.MemberNotFoundError=void 0,r.toKnownErr=function(e){if(e instanceof o.XRPCError){if("MemberNotFound"===e.error)return new n(e);if("CannotDeleteSelf"===e.error)return new s(e)}return e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.MemberNotFoundError=n;class s extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.CannotDeleteSelfError=s},687353,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MemberNotFoundError=void 0,r.toKnownErr=function(e){return e instanceof o.XRPCError&&"MemberNotFound"===e.error?new n(e):e};let o=e.r(639829),i=e.r(397657);e.r(291078).is$typed,i.validate;class n extends o.XRPCError{constructor(e){super(e.status,e.error,e.message,e.headers,{cause:e})}}r.MemberNotFoundError=n},914295,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isProfileViewBasic=function(e){return i(e,s,a)},r.validateProfileViewBasic=function(e){return n(e,s,a)},r.isProfileView=function(e){return i(e,s,c)},r.validateProfileView=function(e){return n(e,s,c)},r.isProfileViewDetailed=function(e){return i(e,s,l)},r.validateProfileViewDetailed=function(e){return n(e,s,l)},r.isProfileAssociated=function(e){return i(e,s,d)},r.validateProfileAssociated=function(e){return n(e,s,d)},r.isProfileAssociatedChat=function(e){return i(e,s,p)},r.validateProfileAssociatedChat=function(e){return n(e,s,p)},r.isProfileAssociatedActivitySubscription=function(e){return i(e,s,u)},r.validateProfileAssociatedActivitySubscription=function(e){return n(e,s,u)},r.isViewerState=function(e){return i(e,s,f)},r.validateViewerState=function(e){return n(e,s,f)},r.isKnownFollowers=function(e){return i(e,s,h)},r.validateKnownFollowers=function(e){return n(e,s,h)},r.isVerificationState=function(e){return i(e,s,m)},r.validateVerificationState=function(e){return n(e,s,m)},r.isVerificationView=function(e){return i(e,s,y)},r.validateVerificationView=function(e){return n(e,s,y)},r.isAdultContentPref=function(e){return i(e,s,g)},r.validateAdultContentPref=function(e){return n(e,s,g)},r.isContentLabelPref=function(e){return i(e,s,b)},r.validateContentLabelPref=function(e){return n(e,s,b)},r.isSavedFeed=function(e){return i(e,s,v)},r.validateSavedFeed=function(e){return n(e,s,v)},r.isSavedFeedsPrefV2=function(e){return i(e,s,w)},r.validateSavedFeedsPrefV2=function(e){return n(e,s,w)},r.isSavedFeedsPref=function(e){return i(e,s,k)},r.validateSavedFeedsPref=function(e){return n(e,s,k)},r.isPersonalDetailsPref=function(e){return i(e,s,x)},r.validatePersonalDetailsPref=function(e){return n(e,s,x)},r.isFeedViewPref=function(e){return i(e,s,A)},r.validateFeedViewPref=function(e){return n(e,s,A)},r.isThreadViewPref=function(e){return i(e,s,S)},r.validateThreadViewPref=function(e){return n(e,s,S)},r.isInterestsPref=function(e){return i(e,s,E)},r.validateInterestsPref=function(e){return n(e,s,E)},r.isMutedWord=function(e){return i(e,s,_)},r.validateMutedWord=function(e){return n(e,s,_)},r.isMutedWordsPref=function(e){return i(e,s,C)},r.validateMutedWordsPref=function(e){return n(e,s,C)},r.isHiddenPostsPref=function(e){return i(e,s,R)},r.validateHiddenPostsPref=function(e){return n(e,s,R)},r.isLabelersPref=function(e){return i(e,s,P)},r.validateLabelersPref=function(e){return n(e,s,P)},r.isLabelerPrefItem=function(e){return i(e,s,j)},r.validateLabelerPrefItem=function(e){return n(e,s,j)},r.isBskyAppStatePref=function(e){return i(e,s,I)},r.validateBskyAppStatePref=function(e){return n(e,s,I)},r.isBskyAppProgressGuide=function(e){return i(e,s,T)},r.validateBskyAppProgressGuide=function(e){return n(e,s,T)},r.isNux=function(e){return i(e,s,"nux")},r.validateNux=function(e){return n(e,s,"nux")},r.isVerificationPrefs=function(e){return i(e,s,O)},r.validateVerificationPrefs=function(e){return n(e,s,O)},r.isPostInteractionSettingsPref=function(e){return i(e,s,D)},r.validatePostInteractionSettingsPref=function(e){return n(e,s,D)},r.isStatusView=function(e){return i(e,s,M)},r.validateStatusView=function(e){return n(e,s,M)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.actor.defs",a="profileViewBasic",c="profileView",l="profileViewDetailed",d="profileAssociated",p="profileAssociatedChat",u="profileAssociatedActivitySubscription",f="viewerState",h="knownFollowers",m="verificationState",y="verificationView",g="adultContentPref",b="contentLabelPref",v="savedFeed",w="savedFeedsPrefV2",k="savedFeedsPref",x="personalDetailsPref",A="feedViewPref",S="threadViewPref",E="interestsPref",_="mutedWord",C="mutedWordsPref",R="hiddenPostsPref",P="labelersPref",j="labelerPrefItem",I="bskyAppStatePref",T="bskyAppProgressGuide",O="verificationPrefs",D="postInteractionSettingsPref",M="statusView"},785597,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},705739,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},212404,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},953956,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},716017,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.actor.profile",a="main"},97905,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},937634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},448825,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},407699,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LIVE=void 0,r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.actor.status",a="main";r.LIVE=`${s}#live`},147618,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isBookmark=function(e){return i(e,s,a)},r.validateBookmark=function(e){return n(e,s,a)},r.isBookmarkView=function(e){return i(e,s,c)},r.validateBookmarkView=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.bookmark.defs",a="bookmark",c="bookmarkView"},879862,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},890940,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isAspectRatio=function(e){return i(e,s,a)},r.validateAspectRatio=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.defs",a="aspectRatio"},13899,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isExternal=function(e){return i(e,s,c)},r.validateExternal=function(e){return n(e,s,c)},r.isView=function(e){return i(e,s,l)},r.validateView=function(e){return n(e,s,l)},r.isViewExternal=function(e){return i(e,s,d)},r.validateViewExternal=function(e){return n(e,s,d)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.external",a="main",c="external",l="view",d="viewExternal"},786250,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isImage=function(e){return i(e,s,c)},r.validateImage=function(e){return n(e,s,c)},r.isView=function(e){return i(e,s,l)},r.validateView=function(e){return n(e,s,l)},r.isViewImage=function(e){return i(e,s,d)},r.validateViewImage=function(e){return n(e,s,d)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.images",a="main",c="image",l="view",d="viewImage"},423261,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isView=function(e){return i(e,s,c)},r.validateView=function(e){return n(e,s,c)},r.isViewRecord=function(e){return i(e,s,l)},r.validateViewRecord=function(e){return n(e,s,l)},r.isViewNotFound=function(e){return i(e,s,d)},r.validateViewNotFound=function(e){return n(e,s,d)},r.isViewBlocked=function(e){return i(e,s,p)},r.validateViewBlocked=function(e){return n(e,s,p)},r.isViewDetached=function(e){return i(e,s,u)},r.validateViewDetached=function(e){return n(e,s,u)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.record",a="main",c="view",l="viewRecord",d="viewNotFound",p="viewBlocked",u="viewDetached"},414969,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isView=function(e){return i(e,s,c)},r.validateView=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.recordWithMedia",a="main",c="view"},994716,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isCaption=function(e){return i(e,s,c)},r.validateCaption=function(e){return n(e,s,c)},r.isView=function(e){return i(e,s,l)},r.validateView=function(e){return n(e,s,l)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.embed.video",a="main",c="caption",l="view"},890743,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.INTERACTIONSHARE=r.INTERACTIONQUOTE=r.INTERACTIONREPLY=r.INTERACTIONREPOST=r.INTERACTIONLIKE=r.INTERACTIONSEEN=r.CONTENTMODEVIDEO=r.CONTENTMODEUNSPECIFIED=r.CLICKTHROUGHEMBED=r.CLICKTHROUGHREPOSTER=r.CLICKTHROUGHAUTHOR=r.CLICKTHROUGHITEM=r.REQUESTMORE=r.REQUESTLESS=void 0,r.isPostView=function(e){return i(e,s,a)},r.validatePostView=function(e){return n(e,s,a)},r.isViewerState=function(e){return i(e,s,c)},r.validateViewerState=function(e){return n(e,s,c)},r.isThreadContext=function(e){return i(e,s,l)},r.validateThreadContext=function(e){return n(e,s,l)},r.isFeedViewPost=function(e){return i(e,s,d)},r.validateFeedViewPost=function(e){return n(e,s,d)},r.isReplyRef=function(e){return i(e,s,p)},r.validateReplyRef=function(e){return n(e,s,p)},r.isReasonRepost=function(e){return i(e,s,u)},r.validateReasonRepost=function(e){return n(e,s,u)},r.isReasonPin=function(e){return i(e,s,f)},r.validateReasonPin=function(e){return n(e,s,f)},r.isThreadViewPost=function(e){return i(e,s,h)},r.validateThreadViewPost=function(e){return n(e,s,h)},r.isNotFoundPost=function(e){return i(e,s,m)},r.validateNotFoundPost=function(e){return n(e,s,m)},r.isBlockedPost=function(e){return i(e,s,y)},r.validateBlockedPost=function(e){return n(e,s,y)},r.isBlockedAuthor=function(e){return i(e,s,g)},r.validateBlockedAuthor=function(e){return n(e,s,g)},r.isGeneratorView=function(e){return i(e,s,b)},r.validateGeneratorView=function(e){return n(e,s,b)},r.isGeneratorViewerState=function(e){return i(e,s,v)},r.validateGeneratorViewerState=function(e){return n(e,s,v)},r.isSkeletonFeedPost=function(e){return i(e,s,w)},r.validateSkeletonFeedPost=function(e){return n(e,s,w)},r.isSkeletonReasonRepost=function(e){return i(e,s,k)},r.validateSkeletonReasonRepost=function(e){return n(e,s,k)},r.isSkeletonReasonPin=function(e){return i(e,s,x)},r.validateSkeletonReasonPin=function(e){return n(e,s,x)},r.isThreadgateView=function(e){return i(e,s,A)},r.validateThreadgateView=function(e){return n(e,s,A)},r.isInteraction=function(e){return i(e,s,S)},r.validateInteraction=function(e){return n(e,s,S)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.defs",a="postView",c="viewerState",l="threadContext",d="feedViewPost",p="replyRef",u="reasonRepost",f="reasonPin",h="threadViewPost",m="notFoundPost",y="blockedPost",g="blockedAuthor",b="generatorView",v="generatorViewerState",w="skeletonFeedPost",k="skeletonReasonRepost",x="skeletonReasonPin",A="threadgateView",S="interaction";r.REQUESTLESS=`${s}#requestLess`,r.REQUESTMORE=`${s}#requestMore`,r.CLICKTHROUGHITEM=`${s}#clickthroughItem`,r.CLICKTHROUGHAUTHOR=`${s}#clickthroughAuthor`,r.CLICKTHROUGHREPOSTER=`${s}#clickthroughReposter`,r.CLICKTHROUGHEMBED=`${s}#clickthroughEmbed`,r.CONTENTMODEUNSPECIFIED=`${s}#contentModeUnspecified`,r.CONTENTMODEVIDEO=`${s}#contentModeVideo`,r.INTERACTIONSEEN=`${s}#interactionSeen`,r.INTERACTIONLIKE=`${s}#interactionLike`,r.INTERACTIONREPOST=`${s}#interactionRepost`,r.INTERACTIONREPLY=`${s}#interactionReply`,r.INTERACTIONQUOTE=`${s}#interactionQuote`,r.INTERACTIONSHARE=`${s}#interactionShare`},319789,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isFeed=function(e){return i(e,s,a)},r.validateFeed=function(e){return n(e,s,a)},r.isLinks=function(e){return i(e,s,c)},r.validateLinks=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.describeFeedGenerator",a="feed",c="links"},68157,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.generator",a="main"},19256,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},190500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},47417,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},747075,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isLike=function(e){return i(e,s,a)},r.validateLike=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.getLikes",a="like"},852349,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},586656,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},97757,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},345371,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},72243,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},889101,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.like",a="main"},354946,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)},r.isReplyRef=function(e){return i(e,s,c)},r.validateReplyRef=function(e){return n(e,s,c)},r.isEntity=function(e){return i(e,s,l)},r.validateEntity=function(e){return n(e,s,l)},r.isTextSlice=function(e){return i(e,s,d)},r.validateTextSlice=function(e){return n(e,s,d)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.post",a="main",c="replyRef",l="entity",d="textSlice"},748125,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)},r.isDisableRule=function(e){return i(e,s,c)},r.validateDisableRule=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.postgate",a="main",c="disableRule"},182890,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.repost",a="main"},526505,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},777112,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)},r.isMentionRule=function(e){return i(e,s,c)},r.validateMentionRule=function(e){return n(e,s,c)},r.isFollowerRule=function(e){return i(e,s,l)},r.validateFollowerRule=function(e){return n(e,s,l)},r.isFollowingRule=function(e){return i(e,s,d)},r.validateFollowingRule=function(e){return n(e,s,d)},r.isListRule=function(e){return i(e,s,p)},r.validateListRule=function(e){return n(e,s,p)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.feed.threadgate",a="main",c="mentionRule",l="followerRule",d="followingRule",p="listRule"},501549,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.block",a="main"},366145,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.REFERENCELIST=r.CURATELIST=r.MODLIST=void 0,r.isListViewBasic=function(e){return i(e,s,a)},r.validateListViewBasic=function(e){return n(e,s,a)},r.isListView=function(e){return i(e,s,c)},r.validateListView=function(e){return n(e,s,c)},r.isListItemView=function(e){return i(e,s,l)},r.validateListItemView=function(e){return n(e,s,l)},r.isStarterPackView=function(e){return i(e,s,d)},r.validateStarterPackView=function(e){return n(e,s,d)},r.isStarterPackViewBasic=function(e){return i(e,s,p)},r.validateStarterPackViewBasic=function(e){return n(e,s,p)},r.isListViewerState=function(e){return i(e,s,u)},r.validateListViewerState=function(e){return n(e,s,u)},r.isNotFoundActor=function(e){return i(e,s,f)},r.validateNotFoundActor=function(e){return n(e,s,f)},r.isRelationship=function(e){return i(e,s,h)},r.validateRelationship=function(e){return n(e,s,h)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.defs",a="listViewBasic",c="listView",l="listItemView",d="starterPackView",p="starterPackViewBasic";r.MODLIST=`${s}#modlist`,r.CURATELIST=`${s}#curatelist`,r.REFERENCELIST=`${s}#referencelist`;let u="listViewerState",f="notFoundActor",h="relationship"},968710,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.follow",a="main"},870741,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},121071,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},266460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},899923,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},564973,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},100109,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},351991,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},516623,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},986783,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},734882,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isListWithMembership=function(e){return i(e,s,a)},r.validateListWithMembership=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.getListsWithMembership",a="listWithMembership"},810572,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},173773,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},494612,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},713693,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isStarterPackWithMembership=function(e){return i(e,s,a)},r.validateStarterPackWithMembership=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.getStarterPacksWithMembership",a="starterPackWithMembership"},872251,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},247500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.list",a="main"},286253,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.listblock",a="main"},931861,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.listitem",a="main"},353892,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},978366,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},499105,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},234309,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},851829,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)},r.isFeedItem=function(e){return i(e,s,c)},r.validateFeedItem=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.starterpack",a="main",c="feedItem"},91581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},979590,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},714228,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},949512,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.graph.verification",a="main"},960426,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isLabelerView=function(e){return i(e,s,a)},r.validateLabelerView=function(e){return n(e,s,a)},r.isLabelerViewDetailed=function(e){return i(e,s,c)},r.validateLabelerViewDetailed=function(e){return n(e,s,c)},r.isLabelerViewerState=function(e){return i(e,s,l)},r.validateLabelerViewerState=function(e){return n(e,s,l)},r.isLabelerPolicies=function(e){return i(e,s,d)},r.validateLabelerPolicies=function(e){return n(e,s,d)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.labeler.defs",a="labelerView",c="labelerViewDetailed",l="labelerViewerState",d="labelerPolicies"},424105,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},501643,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.labeler.service",a="main"},448131,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.notification.declaration",a="main"},841762,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecordDeleted=function(e){return i(e,s,a)},r.validateRecordDeleted=function(e){return n(e,s,a)},r.isChatPreference=function(e){return i(e,s,c)},r.validateChatPreference=function(e){return n(e,s,c)},r.isFilterablePreference=function(e){return i(e,s,l)},r.validateFilterablePreference=function(e){return n(e,s,l)},r.isPreference=function(e){return i(e,s,d)},r.validatePreference=function(e){return n(e,s,d)},r.isPreferences=function(e){return i(e,s,p)},r.validatePreferences=function(e){return n(e,s,p)},r.isActivitySubscription=function(e){return i(e,s,u)},r.validateActivitySubscription=function(e){return n(e,s,u)},r.isSubjectActivitySubscription=function(e){return i(e,s,f)},r.validateSubjectActivitySubscription=function(e){return n(e,s,f)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.notification.defs",a="recordDeleted",c="chatPreference",l="filterablePreference",d="preference",p="preferences",u="activitySubscription",f="subjectActivitySubscription"},525454,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},281616,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},17868,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},254094,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isNotification=function(e){return i(e,s,a)},r.validateNotification=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.notification.listNotifications",a="notification"},463242,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},621650,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},655477,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},964182,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},736313,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},893563,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},247409,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)},r.isMention=function(e){return i(e,s,c)},r.validateMention=function(e){return n(e,s,c)},r.isLink=function(e){return i(e,s,l)},r.validateLink=function(e){return n(e,s,l)},r.isTag=function(e){return i(e,s,"tag")},r.validateTag=function(e){return n(e,s,"tag")},r.isByteSlice=function(e){return i(e,s,d)},r.validateByteSlice=function(e){return n(e,s,d)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.richtext.facet",a="main",c="mention",l="link",d="byteSlice"},857265,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSkeletonSearchPost=function(e){return i(e,s,a)},r.validateSkeletonSearchPost=function(e){return n(e,s,a)},r.isSkeletonSearchActor=function(e){return i(e,s,c)},r.validateSkeletonSearchActor=function(e){return n(e,s,c)},r.isSkeletonSearchStarterPack=function(e){return i(e,s,l)},r.validateSkeletonSearchStarterPack=function(e){return n(e,s,l)},r.isTrendingTopic=function(e){return i(e,s,d)},r.validateTrendingTopic=function(e){return n(e,s,d)},r.isSkeletonTrend=function(e){return i(e,s,p)},r.validateSkeletonTrend=function(e){return n(e,s,p)},r.isTrendView=function(e){return i(e,s,u)},r.validateTrendView=function(e){return n(e,s,u)},r.isThreadItemPost=function(e){return i(e,s,f)},r.validateThreadItemPost=function(e){return n(e,s,f)},r.isThreadItemNoUnauthenticated=function(e){return i(e,s,h)},r.validateThreadItemNoUnauthenticated=function(e){return n(e,s,h)},r.isThreadItemNotFound=function(e){return i(e,s,m)},r.validateThreadItemNotFound=function(e){return n(e,s,m)},r.isThreadItemBlocked=function(e){return i(e,s,y)},r.validateThreadItemBlocked=function(e){return n(e,s,y)},r.isAgeAssuranceState=function(e){return i(e,s,g)},r.validateAgeAssuranceState=function(e){return n(e,s,g)},r.isAgeAssuranceEvent=function(e){return i(e,s,b)},r.validateAgeAssuranceEvent=function(e){return n(e,s,b)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.unspecced.defs",a="skeletonSearchPost",c="skeletonSearchActor",l="skeletonSearchStarterPack",d="trendingTopic",p="skeletonTrend",u="trendView",f="threadItemPost",h="threadItemNoUnauthenticated",m="threadItemNotFound",y="threadItemBlocked",g="ageAssuranceState",b="ageAssuranceEvent"},527307,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},41135,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isLiveNowConfig=function(e){return i(e,s,a)},r.validateLiveNowConfig=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.unspecced.getConfig",a="liveNowConfig"},458083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},531364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isThreadItem=function(e){return i(e,s,a)},r.validateThreadItem=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.unspecced.getPostThreadOtherV2",a="threadItem"},411956,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isThreadItem=function(e){return i(e,s,a)},r.validateThreadItem=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.unspecced.getPostThreadV2",a="threadItem"},882702,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},476984,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},96245,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},887397,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},496885,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},252179,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},364863,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},157578,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isSuggestion=function(e){return i(e,s,a)},r.validateSuggestion=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.unspecced.getTaggedSuggestions",a="suggestion"},591527,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},212372,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},779529,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},447950,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isJobStatus=function(e){return i(e,s,a)},r.validateJobStatus=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="app.bsky.video.defs",a="jobStatus"},213042,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},468900,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},156191,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},902958,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="chat.bsky.actor.declaration",a="main"},535843,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isProfileViewBasic=function(e){return i(e,s,a)},r.validateProfileViewBasic=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="chat.bsky.actor.defs",a="profileViewBasic"},389947,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},439015,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},88567,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},573460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMessageRef=function(e){return i(e,s,a)},r.validateMessageRef=function(e){return n(e,s,a)},r.isMessageInput=function(e){return i(e,s,c)},r.validateMessageInput=function(e){return n(e,s,c)},r.isMessageView=function(e){return i(e,s,l)},r.validateMessageView=function(e){return n(e,s,l)},r.isDeletedMessageView=function(e){return i(e,s,d)},r.validateDeletedMessageView=function(e){return n(e,s,d)},r.isMessageViewSender=function(e){return i(e,s,p)},r.validateMessageViewSender=function(e){return n(e,s,p)},r.isReactionView=function(e){return i(e,s,u)},r.validateReactionView=function(e){return n(e,s,u)},r.isReactionViewSender=function(e){return i(e,s,f)},r.validateReactionViewSender=function(e){return n(e,s,f)},r.isMessageAndReactionView=function(e){return i(e,s,h)},r.validateMessageAndReactionView=function(e){return n(e,s,h)},r.isConvoView=function(e){return i(e,s,m)},r.validateConvoView=function(e){return n(e,s,m)},r.isLogBeginConvo=function(e){return i(e,s,y)},r.validateLogBeginConvo=function(e){return n(e,s,y)},r.isLogAcceptConvo=function(e){return i(e,s,g)},r.validateLogAcceptConvo=function(e){return n(e,s,g)},r.isLogLeaveConvo=function(e){return i(e,s,b)},r.validateLogLeaveConvo=function(e){return n(e,s,b)},r.isLogMuteConvo=function(e){return i(e,s,v)},r.validateLogMuteConvo=function(e){return n(e,s,v)},r.isLogUnmuteConvo=function(e){return i(e,s,w)},r.validateLogUnmuteConvo=function(e){return n(e,s,w)},r.isLogCreateMessage=function(e){return i(e,s,k)},r.validateLogCreateMessage=function(e){return n(e,s,k)},r.isLogDeleteMessage=function(e){return i(e,s,x)},r.validateLogDeleteMessage=function(e){return n(e,s,x)},r.isLogReadMessage=function(e){return i(e,s,A)},r.validateLogReadMessage=function(e){return n(e,s,A)},r.isLogAddReaction=function(e){return i(e,s,S)},r.validateLogAddReaction=function(e){return n(e,s,S)},r.isLogRemoveReaction=function(e){return i(e,s,E)},r.validateLogRemoveReaction=function(e){return n(e,s,E)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="chat.bsky.convo.defs",a="messageRef",c="messageInput",l="messageView",d="deletedMessageView",p="messageViewSender",u="reactionView",f="reactionViewSender",h="messageAndReactionView",m="convoView",y="logBeginConvo",g="logAcceptConvo",b="logLeaveConvo",v="logMuteConvo",w="logUnmuteConvo",k="logCreateMessage",x="logDeleteMessage",A="logReadMessage",S="logAddReaction",E="logRemoveReaction"},380277,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},150118,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},491446,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},34132,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},763245,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},603862,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},195630,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},68214,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},969173,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},721677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},669641,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isBatchItem=function(e){return i(e,s,a)},r.validateBatchItem=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="chat.bsky.convo.sendMessageBatch",a="batchItem"},68467,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},426158,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},223453,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},869723,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isMetadata=function(e){return i(e,s,a)},r.validateMetadata=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="chat.bsky.moderation.getActorMetadata",a="metadata"},197637,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},236785,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},14319,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isStatusAttr=function(e){return i(e,s,a)},r.validateStatusAttr=function(e){return n(e,s,a)},r.isAccountView=function(e){return i(e,s,c)},r.validateAccountView=function(e){return n(e,s,c)},r.isRepoRef=function(e){return i(e,s,l)},r.validateRepoRef=function(e){return n(e,s,l)},r.isRepoBlobRef=function(e){return i(e,s,d)},r.validateRepoBlobRef=function(e){return n(e,s,d)},r.isThreatSignature=function(e){return i(e,s,p)},r.validateThreatSignature=function(e){return n(e,s,p)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.admin.defs",a="statusAttr",c="accountView",l="repoRef",d="repoBlobRef",p="threatSignature"},218798,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},689747,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},396466,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},837437,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},591939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},551592,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},896513,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},22359,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},472677,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},532655,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},425914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},663933,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},796869,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},212835,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},197939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},127901,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isIdentityInfo=function(e){return i(e,s,a)},r.validateIdentityInfo=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.identity.defs",a="identityInfo"},884478,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},986056,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},269157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},928776,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},516285,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},325397,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isLabel=function(e){return i(e,s,a)},r.validateLabel=function(e){return n(e,s,a)},r.isSelfLabels=function(e){return i(e,s,c)},r.validateSelfLabels=function(e){return n(e,s,c)},r.isSelfLabel=function(e){return i(e,s,l)},r.validateSelfLabel=function(e){return n(e,s,l)},r.isLabelValueDefinition=function(e){return i(e,s,d)},r.validateLabelValueDefinition=function(e){return n(e,s,d)},r.isLabelValueDefinitionStrings=function(e){return i(e,s,p)},r.validateLabelValueDefinitionStrings=function(e){return n(e,s,p)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.label.defs",a="label",c="selfLabels",l="selfLabel",d="labelValueDefinition",p="labelValueDefinitionStrings"},555781,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},726053,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isLabels=function(e){return i(e,s,a)},r.validateLabels=function(e){return n(e,s,a)},r.isInfo=function(e){return i(e,s,c)},r.validateInfo=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.label.subscribeLabels",a="labels",c="info"},661745,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a,!0)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.lexicon.schema",a="main"},722542,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isModTool=function(e){return i(e,s,a)},r.validateModTool=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.moderation.createReport",a="modTool"},824779,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.REASONAPPEAL=r.REASONOTHER=r.REASONRUDE=r.REASONSEXUAL=r.REASONMISLEADING=r.REASONVIOLATION=r.REASONSPAM=void 0;let o=e.r(397657);e.r(291078).is$typed,o.validate;let i="com.atproto.moderation.defs";r.REASONSPAM=`${i}#reasonSpam`,r.REASONVIOLATION=`${i}#reasonViolation`,r.REASONMISLEADING=`${i}#reasonMisleading`,r.REASONSEXUAL=`${i}#reasonSexual`,r.REASONRUDE=`${i}#reasonRude`,r.REASONOTHER=`${i}#reasonOther`,r.REASONAPPEAL=`${i}#reasonAppeal`},960705,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isCommitMeta=function(e){return i(e,s,a)},r.validateCommitMeta=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.repo.defs",a="commitMeta"},270852,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},700207,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},590934,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRecordBlob=function(e){return i(e,s,a)},r.validateRecordBlob=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.repo.listMissingBlobs",a="recordBlob"},249229,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRecord=function(e){return i(e,s,a)},r.validateRecord=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.repo.listRecords",a="record"},813351,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isMain=function(e){return i(e,s,a)},r.validateMain=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.repo.strongRef",a="main"},958096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},968294,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},57118,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},935775,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},614920,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isAccountCodes=function(e){return i(e,s,a)},r.validateAccountCodes=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.server.createInviteCodes",a="accountCodes"},354759,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},505295,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isInviteCode=function(e){return i(e,s,a)},r.validateInviteCode=function(e){return n(e,s,a)},r.isInviteCodeUse=function(e){return i(e,s,c)},r.validateInviteCodeUse=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.server.defs",a="inviteCode",c="inviteCodeUse"},507941,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},185733,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isLinks=function(e){return i(e,s,a)},r.validateLinks=function(e){return n(e,s,a)},r.isContact=function(e){return i(e,s,c)},r.validateContact=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.server.describeServer",a="links",c="contact"},227098,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},854352,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},55043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},45634,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},6570,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},982110,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},612402,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},244528,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(397657);e.r(291078).is$typed,o.validate},155836,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},947363,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isHost=function(e){return i(e,s,a)},r.validateHost=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.sync.listHosts",a="host"},975464,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRepo=function(e){return i(e,s,a)},r.validateRepo=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.sync.listRepos",a="repo"},886869,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRepo=function(e){return i(e,s,a)},r.validateRepo=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.sync.listReposByCollection",a="repo"},277139,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},718028,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isCommit=function(e){return i(e,s,a)},r.validateCommit=function(e){return n(e,s,a)},r.isSync=function(e){return i(e,s,c)},r.validateSync=function(e){return n(e,s,c)},r.isIdentity=function(e){return i(e,s,l)},r.validateIdentity=function(e){return n(e,s,l)},r.isAccount=function(e){return i(e,s,d)},r.validateAccount=function(e){return n(e,s,d)},r.isInfo=function(e){return i(e,s,p)},r.validateInfo=function(e){return n(e,s,p)},r.isRepoOp=function(e){return i(e,s,u)},r.validateRepoOp=function(e){return n(e,s,u)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="com.atproto.sync.subscribeRepos",a="commit",c="sync",l="identity",d="account",p="info",u="repoOp"},57114,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},130589,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},175815,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},190963,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},986227,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},147096,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isTemplateView=function(e){return i(e,s,a)},r.validateTemplateView=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.communication.defs",a="templateView"},851611,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},346379,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},842399,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isEvent=function(e){return i(e,s,a)},r.validateEvent=function(e){return n(e,s,a)},r.isAccountCreated=function(e){return i(e,s,c)},r.validateAccountCreated=function(e){return n(e,s,c)},r.isEmailUpdated=function(e){return i(e,s,l)},r.validateEmailUpdated=function(e){return n(e,s,l)},r.isEmailConfirmed=function(e){return i(e,s,d)},r.validateEmailConfirmed=function(e){return n(e,s,d)},r.isPasswordUpdated=function(e){return i(e,s,p)},r.validatePasswordUpdated=function(e){return n(e,s,p)},r.isHandleUpdated=function(e){return i(e,s,u)},r.validateHandleUpdated=function(e){return n(e,s,u)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.hosting.getAccountHistory",a="event",c="accountCreated",l="emailUpdated",d="emailConfirmed",p="passwordUpdated",u="handleUpdated"},922733,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TIMELINEEVENTPLCTOMBSTONE=r.TIMELINEEVENTPLCOPERATION=r.TIMELINEEVENTPLCCREATE=r.REVIEWNONE=r.REVIEWCLOSED=r.REVIEWESCALATED=r.REVIEWOPEN=void 0,r.isModEventView=function(e){return i(e,s,a)},r.validateModEventView=function(e){return n(e,s,a)},r.isModEventViewDetail=function(e){return i(e,s,c)},r.validateModEventViewDetail=function(e){return n(e,s,c)},r.isSubjectStatusView=function(e){return i(e,s,l)},r.validateSubjectStatusView=function(e){return n(e,s,l)},r.isSubjectView=function(e){return i(e,s,d)},r.validateSubjectView=function(e){return n(e,s,d)},r.isAccountStats=function(e){return i(e,s,p)},r.validateAccountStats=function(e){return n(e,s,p)},r.isRecordsStats=function(e){return i(e,s,u)},r.validateRecordsStats=function(e){return n(e,s,u)},r.isModEventTakedown=function(e){return i(e,s,f)},r.validateModEventTakedown=function(e){return n(e,s,f)},r.isModEventReverseTakedown=function(e){return i(e,s,h)},r.validateModEventReverseTakedown=function(e){return n(e,s,h)},r.isModEventResolveAppeal=function(e){return i(e,s,m)},r.validateModEventResolveAppeal=function(e){return n(e,s,m)},r.isModEventComment=function(e){return i(e,s,y)},r.validateModEventComment=function(e){return n(e,s,y)},r.isModEventReport=function(e){return i(e,s,g)},r.validateModEventReport=function(e){return n(e,s,g)},r.isModEventLabel=function(e){return i(e,s,b)},r.validateModEventLabel=function(e){return n(e,s,b)},r.isModEventPriorityScore=function(e){return i(e,s,v)},r.validateModEventPriorityScore=function(e){return n(e,s,v)},r.isAgeAssuranceEvent=function(e){return i(e,s,w)},r.validateAgeAssuranceEvent=function(e){return n(e,s,w)},r.isAgeAssuranceOverrideEvent=function(e){return i(e,s,k)},r.validateAgeAssuranceOverrideEvent=function(e){return n(e,s,k)},r.isRevokeAccountCredentialsEvent=function(e){return i(e,s,x)},r.validateRevokeAccountCredentialsEvent=function(e){return n(e,s,x)},r.isModEventAcknowledge=function(e){return i(e,s,A)},r.validateModEventAcknowledge=function(e){return n(e,s,A)},r.isModEventEscalate=function(e){return i(e,s,S)},r.validateModEventEscalate=function(e){return n(e,s,S)},r.isModEventMute=function(e){return i(e,s,E)},r.validateModEventMute=function(e){return n(e,s,E)},r.isModEventUnmute=function(e){return i(e,s,_)},r.validateModEventUnmute=function(e){return n(e,s,_)},r.isModEventMuteReporter=function(e){return i(e,s,C)},r.validateModEventMuteReporter=function(e){return n(e,s,C)},r.isModEventUnmuteReporter=function(e){return i(e,s,R)},r.validateModEventUnmuteReporter=function(e){return n(e,s,R)},r.isModEventEmail=function(e){return i(e,s,P)},r.validateModEventEmail=function(e){return n(e,s,P)},r.isModEventDivert=function(e){return i(e,s,j)},r.validateModEventDivert=function(e){return n(e,s,j)},r.isModEventTag=function(e){return i(e,s,I)},r.validateModEventTag=function(e){return n(e,s,I)},r.isAccountEvent=function(e){return i(e,s,T)},r.validateAccountEvent=function(e){return n(e,s,T)},r.isIdentityEvent=function(e){return i(e,s,O)},r.validateIdentityEvent=function(e){return n(e,s,O)},r.isRecordEvent=function(e){return i(e,s,D)},r.validateRecordEvent=function(e){return n(e,s,D)},r.isRepoView=function(e){return i(e,s,M)},r.validateRepoView=function(e){return n(e,s,M)},r.isRepoViewDetail=function(e){return i(e,s,L)},r.validateRepoViewDetail=function(e){return n(e,s,L)},r.isRepoViewNotFound=function(e){return i(e,s,B)},r.validateRepoViewNotFound=function(e){return n(e,s,B)},r.isRecordView=function(e){return i(e,s,z)},r.validateRecordView=function(e){return n(e,s,z)},r.isRecordViewDetail=function(e){return i(e,s,q)},r.validateRecordViewDetail=function(e){return n(e,s,q)},r.isRecordViewNotFound=function(e){return i(e,s,V)},r.validateRecordViewNotFound=function(e){return n(e,s,V)},r.isModeration=function(e){return i(e,s,N)},r.validateModeration=function(e){return n(e,s,N)},r.isModerationDetail=function(e){return i(e,s,U)},r.validateModerationDetail=function(e){return n(e,s,U)},r.isBlobView=function(e){return i(e,s,F)},r.validateBlobView=function(e){return n(e,s,F)},r.isImageDetails=function(e){return i(e,s,$)},r.validateImageDetails=function(e){return n(e,s,$)},r.isVideoDetails=function(e){return i(e,s,G)},r.validateVideoDetails=function(e){return n(e,s,G)},r.isAccountHosting=function(e){return i(e,s,H)},r.validateAccountHosting=function(e){return n(e,s,H)},r.isRecordHosting=function(e){return i(e,s,Z)},r.validateRecordHosting=function(e){return n(e,s,Z)},r.isReporterStats=function(e){return i(e,s,K)},r.validateReporterStats=function(e){return n(e,s,K)},r.isModTool=function(e){return i(e,s,W)},r.validateModTool=function(e){return n(e,s,W)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.moderation.defs",a="modEventView",c="modEventViewDetail",l="subjectStatusView",d="subjectView",p="accountStats",u="recordsStats";r.REVIEWOPEN=`${s}#reviewOpen`,r.REVIEWESCALATED=`${s}#reviewEscalated`,r.REVIEWCLOSED=`${s}#reviewClosed`,r.REVIEWNONE=`${s}#reviewNone`;let f="modEventTakedown",h="modEventReverseTakedown",m="modEventResolveAppeal",y="modEventComment",g="modEventReport",b="modEventLabel",v="modEventPriorityScore",w="ageAssuranceEvent",k="ageAssuranceOverrideEvent",x="revokeAccountCredentialsEvent",A="modEventAcknowledge",S="modEventEscalate",E="modEventMute",_="modEventUnmute",C="modEventMuteReporter",R="modEventUnmuteReporter",P="modEventEmail",j="modEventDivert",I="modEventTag",T="accountEvent",O="identityEvent",D="recordEvent",M="repoView",L="repoViewDetail",B="repoViewNotFound",z="recordView",q="recordViewDetail",V="recordViewNotFound",N="moderation",U="moderationDetail",F="blobView",$="imageDetails",G="videoDetails",H="accountHosting",Z="recordHosting",K="reporterStats",W="modTool";r.TIMELINEEVENTPLCCREATE=`${s}#timelineEventPlcCreate`,r.TIMELINEEVENTPLCOPERATION=`${s}#timelineEventPlcOperation`,r.TIMELINEEVENTPLCTOMBSTONE=`${s}#timelineEventPlcTombstone`},69711,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},109725,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},682739,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},973242,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},332202,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},270640,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},90009,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},627460,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},101567,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.REASONCIVICIMPERSONATION=r.REASONCIVICMISINFORMATION=r.REASONCIVICINTERFERENCE=r.REASONCIVICDISCLOSURE=r.REASONCIVICELECTORALPROCESS=r.REASONRULEOTHER=r.REASONRULEBANEVASION=r.REASONRULEPROHIBITEDSALES=r.REASONRULESTOLENCONTENT=r.REASONRULESITESECURITY=r.REASONMISLEADINGOTHER=r.REASONMISLEADINGMISINFORMATION=r.REASONMISLEADINGSYNTHETICCONTENT=r.REASONMISLEADINGSCAM=r.REASONMISLEADINGSPAM=r.REASONMISLEADINGIMPERSONATION=r.REASONMISLEADINGBOT=r.REASONHARASSMENTOTHER=r.REASONHARASSMENTDOXXING=r.REASONHARASSMENTHATESPEECH=r.REASONHARASSMENTTARGETED=r.REASONHARASSMENTTROLL=r.REASONCHILDSAFETYOTHER=r.REASONCHILDSAFETYPROMOTION=r.REASONCHILDSAFETYHARASSMENT=r.REASONCHILDSAFETYENDANGERMENT=r.REASONCHILDSAFETYMINORPRIVACY=r.REASONCHILDSAFETYGROOM=r.REASONCHILDSAFETYCSAM=r.REASONSEXUALOTHER=r.REASONSEXUALUNLABELED=r.REASONSEXUALANIMAL=r.REASONSEXUALDEEPFAKE=r.REASONSEXUALSEXTORTION=r.REASONSEXUALNCII=r.REASONSEXUALABUSECONTENT=r.REASONVIOLENCEOTHER=r.REASONVIOLENCETRAFFICKING=r.REASONVIOLENCEEXTREMISTCONTENT=r.REASONVIOLENCEGLORIFICATION=r.REASONVIOLENCESELFHARM=r.REASONVIOLENCEGRAPHICCONTENT=r.REASONVIOLENCETHREATS=r.REASONVIOLENCEANIMALWELFARE=r.REASONAPPEAL=void 0;let o=e.r(397657);e.r(291078).is$typed,o.validate;let i="tools.ozone.report.defs";r.REASONAPPEAL=`${i}#reasonAppeal`,r.REASONVIOLENCEANIMALWELFARE=`${i}#reasonViolenceAnimalWelfare`,r.REASONVIOLENCETHREATS=`${i}#reasonViolenceThreats`,r.REASONVIOLENCEGRAPHICCONTENT=`${i}#reasonViolenceGraphicContent`,r.REASONVIOLENCESELFHARM=`${i}#reasonViolenceSelfHarm`,r.REASONVIOLENCEGLORIFICATION=`${i}#reasonViolenceGlorification`,r.REASONVIOLENCEEXTREMISTCONTENT=`${i}#reasonViolenceExtremistContent`,r.REASONVIOLENCETRAFFICKING=`${i}#reasonViolenceTrafficking`,r.REASONVIOLENCEOTHER=`${i}#reasonViolenceOther`,r.REASONSEXUALABUSECONTENT=`${i}#reasonSexualAbuseContent`,r.REASONSEXUALNCII=`${i}#reasonSexualNCII`,r.REASONSEXUALSEXTORTION=`${i}#reasonSexualSextortion`,r.REASONSEXUALDEEPFAKE=`${i}#reasonSexualDeepfake`,r.REASONSEXUALANIMAL=`${i}#reasonSexualAnimal`,r.REASONSEXUALUNLABELED=`${i}#reasonSexualUnlabeled`,r.REASONSEXUALOTHER=`${i}#reasonSexualOther`,r.REASONCHILDSAFETYCSAM=`${i}#reasonChildSafetyCSAM`,r.REASONCHILDSAFETYGROOM=`${i}#reasonChildSafetyGroom`,r.REASONCHILDSAFETYMINORPRIVACY=`${i}#reasonChildSafetyMinorPrivacy`,r.REASONCHILDSAFETYENDANGERMENT=`${i}#reasonChildSafetyEndangerment`,r.REASONCHILDSAFETYHARASSMENT=`${i}#reasonChildSafetyHarassment`,r.REASONCHILDSAFETYPROMOTION=`${i}#reasonChildSafetyPromotion`,r.REASONCHILDSAFETYOTHER=`${i}#reasonChildSafetyOther`,r.REASONHARASSMENTTROLL=`${i}#reasonHarassmentTroll`,r.REASONHARASSMENTTARGETED=`${i}#reasonHarassmentTargeted`,r.REASONHARASSMENTHATESPEECH=`${i}#reasonHarassmentHateSpeech`,r.REASONHARASSMENTDOXXING=`${i}#reasonHarassmentDoxxing`,r.REASONHARASSMENTOTHER=`${i}#reasonHarassmentOther`,r.REASONMISLEADINGBOT=`${i}#reasonMisleadingBot`,r.REASONMISLEADINGIMPERSONATION=`${i}#reasonMisleadingImpersonation`,r.REASONMISLEADINGSPAM=`${i}#reasonMisleadingSpam`,r.REASONMISLEADINGSCAM=`${i}#reasonMisleadingScam`,r.REASONMISLEADINGSYNTHETICCONTENT=`${i}#reasonMisleadingSyntheticContent`,r.REASONMISLEADINGMISINFORMATION=`${i}#reasonMisleadingMisinformation`,r.REASONMISLEADINGOTHER=`${i}#reasonMisleadingOther`,r.REASONRULESITESECURITY=`${i}#reasonRuleSiteSecurity`,r.REASONRULESTOLENCONTENT=`${i}#reasonRuleStolenContent`,r.REASONRULEPROHIBITEDSALES=`${i}#reasonRuleProhibitedSales`,r.REASONRULEBANEVASION=`${i}#reasonRuleBanEvasion`,r.REASONRULEOTHER=`${i}#reasonRuleOther`,r.REASONCIVICELECTORALPROCESS=`${i}#reasonCivicElectoralProcess`,r.REASONCIVICDISCLOSURE=`${i}#reasonCivicDisclosure`,r.REASONCIVICINTERFERENCE=`${i}#reasonCivicInterference`,r.REASONCIVICMISINFORMATION=`${i}#reasonCivicMisinformation`,r.REASONCIVICIMPERSONATION=`${i}#reasonCivicImpersonation`},192722,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.isEvent=function(e){return i(e,s,a)},r.validateEvent=function(e){return n(e,s,a)},r.isUrlRule=function(e){return i(e,s,c)},r.validateUrlRule=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.safelink.defs",a="event",c="urlRule"},21515,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},155986,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},467032,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isServiceConfig=function(e){return i(e,s,a)},r.validateServiceConfig=function(e){return n(e,s,a)},r.isViewerConfig=function(e){return i(e,s,c)},r.validateViewerConfig=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.server.getConfig",a="serviceConfig",c="viewerConfig"},723373,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},125023,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSet=function(e){return i(e,s,"set")},r.validateSet=function(e){return n(e,s,"set")},r.isSetView=function(e){return i(e,s,a)},r.validateSetView=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.set.defs",a="setView"},408075,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},638841,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},659085,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isOption=function(e){return i(e,s,a)},r.validateOption=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.setting.defs",a="option"},322556,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},554342,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},967645,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},805021,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSigDetail=function(e){return i(e,s,a)},r.validateSigDetail=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.signature.defs",a="sigDetail"},107549,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},477519,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRelatedAccount=function(e){return i(e,s,a)},r.validateRelatedAccount=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.signature.findRelatedAccounts",a="relatedAccount"},360794,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},11761,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ROLEVERIFIER=r.ROLETRIAGE=r.ROLEMODERATOR=r.ROLEADMIN=void 0,r.isMember=function(e){return i(e,s,a)},r.validateMember=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.team.defs",a="member";r.ROLEADMIN=`${s}#roleAdmin`,r.ROLEMODERATOR=`${s}#roleModerator`,r.ROLETRIAGE=`${s}#roleTriage`,r.ROLEVERIFIER=`${s}#roleVerifier`},581915,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},686431,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isVerificationView=function(e){return i(e,s,a)},r.validateVerificationView=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.verification.defs",a="verificationView"},725710,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isVerificationInput=function(e){return i(e,s,a)},r.validateVerificationInput=function(e){return n(e,s,a)},r.isGrantError=function(e){return i(e,s,c)},r.validateGrantError=function(e){return n(e,s,c)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.verification.grantVerifications",a="verificationInput",c="grantError"},554468,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e};let o=e.r(397657);e.r(291078).is$typed,o.validate},914916,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toKnownErr=function(e){return e},r.isRevokeError=function(e){return i(e,s,a)},r.validateRevokeError=function(e){return n(e,s,a)};let o=e.r(397657),i=e.r(291078).is$typed,n=o.validate,s="tools.ozone.verification.revokeVerifications",a="revokeError"},450307,(e,t,r)=>{"use strict";var o,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&i(t,e,r[s]);return n(t,e),t});Object.defineProperty(r,"__esModule",{value:!0}),r.AppBskyGraphGetBlocks=r.AppBskyGraphGetActorStarterPacks=r.AppBskyGraphFollow=r.AppBskyGraphDefs=r.AppBskyGraphBlock=r.AppBskyFeedThreadgate=r.AppBskyFeedSendInteractions=r.AppBskyFeedSearchPosts=r.AppBskyFeedRepost=r.AppBskyFeedPostgate=r.AppBskyFeedPost=r.AppBskyFeedLike=r.AppBskyFeedGetTimeline=r.AppBskyFeedGetSuggestedFeeds=r.AppBskyFeedGetRepostedBy=r.AppBskyFeedGetQuotes=r.AppBskyFeedGetPosts=r.AppBskyFeedGetPostThread=r.AppBskyFeedGetListFeed=r.AppBskyFeedGetLikes=r.AppBskyFeedGetFeedSkeleton=r.AppBskyFeedGetFeedGenerators=r.AppBskyFeedGetFeedGenerator=r.AppBskyFeedGetFeed=r.AppBskyFeedGetAuthorFeed=r.AppBskyFeedGetActorLikes=r.AppBskyFeedGetActorFeeds=r.AppBskyFeedGenerator=r.AppBskyFeedDescribeFeedGenerator=r.AppBskyFeedDefs=r.AppBskyEmbedVideo=r.AppBskyEmbedRecordWithMedia=r.AppBskyEmbedRecord=r.AppBskyEmbedImages=r.AppBskyEmbedExternal=r.AppBskyEmbedDefs=r.AppBskyBookmarkGetBookmarks=r.AppBskyBookmarkDeleteBookmark=r.AppBskyBookmarkDefs=r.AppBskyBookmarkCreateBookmark=r.AppBskyActorStatus=r.AppBskyActorSearchActorsTypeahead=r.AppBskyActorSearchActors=r.AppBskyActorPutPreferences=r.AppBskyActorProfile=r.AppBskyActorGetSuggestions=r.AppBskyActorGetProfiles=r.AppBskyActorGetProfile=r.AppBskyActorGetPreferences=r.AppBskyActorDefs=void 0,r.AppBskyUnspeccedGetSuggestedFeedsSkeleton=r.AppBskyUnspeccedGetSuggestedFeeds=r.AppBskyUnspeccedGetPostThreadV2=r.AppBskyUnspeccedGetPostThreadOtherV2=r.AppBskyUnspeccedGetPopularFeedGenerators=r.AppBskyUnspeccedGetConfig=r.AppBskyUnspeccedGetAgeAssuranceState=r.AppBskyUnspeccedDefs=r.AppBskyRichtextFacet=r.AppBskyNotificationUpdateSeen=r.AppBskyNotificationUnregisterPush=r.AppBskyNotificationRegisterPush=r.AppBskyNotificationPutPreferencesV2=r.AppBskyNotificationPutPreferences=r.AppBskyNotificationPutActivitySubscription=r.AppBskyNotificationListNotifications=r.AppBskyNotificationListActivitySubscriptions=r.AppBskyNotificationGetUnreadCount=r.AppBskyNotificationGetPreferences=r.AppBskyNotificationDefs=r.AppBskyNotificationDeclaration=r.AppBskyLabelerService=r.AppBskyLabelerGetServices=r.AppBskyLabelerDefs=r.AppBskyGraphVerification=r.AppBskyGraphUnmuteThread=r.AppBskyGraphUnmuteActorList=r.AppBskyGraphUnmuteActor=r.AppBskyGraphStarterpack=r.AppBskyGraphSearchStarterPacks=r.AppBskyGraphMuteThread=r.AppBskyGraphMuteActorList=r.AppBskyGraphMuteActor=r.AppBskyGraphListitem=r.AppBskyGraphListblock=r.AppBskyGraphList=r.AppBskyGraphGetSuggestedFollowsByActor=r.AppBskyGraphGetStarterPacksWithMembership=r.AppBskyGraphGetStarterPacks=r.AppBskyGraphGetStarterPack=r.AppBskyGraphGetRelationships=r.AppBskyGraphGetMutes=r.AppBskyGraphGetListsWithMembership=r.AppBskyGraphGetLists=r.AppBskyGraphGetListMutes=r.AppBskyGraphGetListBlocks=r.AppBskyGraphGetList=r.AppBskyGraphGetKnownFollowers=r.AppBskyGraphGetFollows=r.AppBskyGraphGetFollowers=void 0,r.ComAtprotoAdminGetInviteCodes=r.ComAtprotoAdminGetAccountInfos=r.ComAtprotoAdminGetAccountInfo=r.ComAtprotoAdminEnableAccountInvites=r.ComAtprotoAdminDisableInviteCodes=r.ComAtprotoAdminDisableAccountInvites=r.ComAtprotoAdminDeleteAccount=r.ComAtprotoAdminDefs=r.ChatBskyModerationUpdateActorAccess=r.ChatBskyModerationGetMessageContext=r.ChatBskyModerationGetActorMetadata=r.ChatBskyConvoUpdateRead=r.ChatBskyConvoUpdateAllRead=r.ChatBskyConvoUnmuteConvo=r.ChatBskyConvoSendMessageBatch=r.ChatBskyConvoSendMessage=r.ChatBskyConvoRemoveReaction=r.ChatBskyConvoMuteConvo=r.ChatBskyConvoListConvos=r.ChatBskyConvoLeaveConvo=r.ChatBskyConvoGetMessages=r.ChatBskyConvoGetLog=r.ChatBskyConvoGetConvoForMembers=r.ChatBskyConvoGetConvoAvailability=r.ChatBskyConvoGetConvo=r.ChatBskyConvoDeleteMessageForSelf=r.ChatBskyConvoDefs=r.ChatBskyConvoAddReaction=r.ChatBskyConvoAcceptConvo=r.ChatBskyActorExportAccountData=r.ChatBskyActorDeleteAccount=r.ChatBskyActorDefs=r.ChatBskyActorDeclaration=r.AppBskyVideoUploadVideo=r.AppBskyVideoGet
21UploadLimits=r.AppBskyVideoGetJobStatus=r.AppBskyVideoDefs=r.AppBskyUnspeccedSearchStarterPacksSkeleton=r.AppBskyUnspeccedSearchPostsSkeleton=r.AppBskyUnspeccedSearchActorsSkeleton=r.AppBskyUnspeccedInitAgeAssurance=r.AppBskyUnspeccedGetTrendsSkeleton=r.AppBskyUnspeccedGetTrends=r.AppBskyUnspeccedGetTrendingTopics=r.AppBskyUnspeccedGetTaggedSuggestions=r.AppBskyUnspeccedGetSuggestionsSkeleton=r.AppBskyUnspeccedGetSuggestedUsersSkeleton=r.AppBskyUnspeccedGetSuggestedUsers=r.AppBskyUnspeccedGetSuggestedStarterPacksSkeleton=r.AppBskyUnspeccedGetSuggestedStarterPacks=void 0,r.ComAtprotoServerGetAccountInviteCodes=r.ComAtprotoServerDescribeServer=r.ComAtprotoServerDeleteSession=r.ComAtprotoServerDeleteAccount=r.ComAtprotoServerDefs=r.ComAtprotoServerDeactivateAccount=r.ComAtprotoServerCreateSession=r.ComAtprotoServerCreateInviteCodes=r.ComAtprotoServerCreateInviteCode=r.ComAtprotoServerCreateAppPassword=r.ComAtprotoServerCreateAccount=r.ComAtprotoServerConfirmEmail=r.ComAtprotoServerCheckAccountStatus=r.ComAtprotoServerActivateAccount=r.ComAtprotoRepoUploadBlob=r.ComAtprotoRepoStrongRef=r.ComAtprotoRepoPutRecord=r.ComAtprotoRepoListRecords=r.ComAtprotoRepoListMissingBlobs=r.ComAtprotoRepoImportRepo=r.ComAtprotoRepoGetRecord=r.ComAtprotoRepoDescribeRepo=r.ComAtprotoRepoDeleteRecord=r.ComAtprotoRepoDefs=r.ComAtprotoRepoCreateRecord=r.ComAtprotoRepoApplyWrites=r.ComAtprotoModerationDefs=r.ComAtprotoModerationCreateReport=r.ComAtprotoLexiconSchema=r.ComAtprotoLabelSubscribeLabels=r.ComAtprotoLabelQueryLabels=r.ComAtprotoLabelDefs=r.ComAtprotoIdentityUpdateHandle=r.ComAtprotoIdentitySubmitPlcOperation=r.ComAtprotoIdentitySignPlcOperation=r.ComAtprotoIdentityResolveIdentity=r.ComAtprotoIdentityResolveHandle=r.ComAtprotoIdentityResolveDid=r.ComAtprotoIdentityRequestPlcOperationSignature=r.ComAtprotoIdentityRefreshIdentity=r.ComAtprotoIdentityGetRecommendedDidCredentials=r.ComAtprotoIdentityDefs=r.ComAtprotoAdminUpdateSubjectStatus=r.ComAtprotoAdminUpdateAccountSigningKey=r.ComAtprotoAdminUpdateAccountPassword=r.ComAtprotoAdminUpdateAccountHandle=r.ComAtprotoAdminUpdateAccountEmail=r.ComAtprotoAdminSendEmail=r.ComAtprotoAdminSearchAccounts=r.ComAtprotoAdminGetSubjectStatus=void 0,r.ToolsOzoneModerationGetReporterStats=r.ToolsOzoneModerationGetRepo=r.ToolsOzoneModerationGetRecords=r.ToolsOzoneModerationGetRecord=r.ToolsOzoneModerationGetEvent=r.ToolsOzoneModerationGetAccountTimeline=r.ToolsOzoneModerationEmitEvent=r.ToolsOzoneModerationDefs=r.ToolsOzoneHostingGetAccountHistory=r.ToolsOzoneCommunicationUpdateTemplate=r.ToolsOzoneCommunicationListTemplates=r.ToolsOzoneCommunicationDeleteTemplate=r.ToolsOzoneCommunicationDefs=r.ToolsOzoneCommunicationCreateTemplate=r.ComAtprotoTempRevokeAccountCredentials=r.ComAtprotoTempRequestPhoneVerification=r.ComAtprotoTempFetchLabels=r.ComAtprotoTempDereferenceScope=r.ComAtprotoTempCheckSignupQueue=r.ComAtprotoTempCheckHandleAvailability=r.ComAtprotoTempAddReservedHandle=r.ComAtprotoSyncSubscribeRepos=r.ComAtprotoSyncRequestCrawl=r.ComAtprotoSyncNotifyOfUpdate=r.ComAtprotoSyncListReposByCollection=r.ComAtprotoSyncListRepos=r.ComAtprotoSyncListHosts=r.ComAtprotoSyncListBlobs=r.ComAtprotoSyncGetRepoStatus=r.ComAtprotoSyncGetRepo=r.ComAtprotoSyncGetRecord=r.ComAtprotoSyncGetLatestCommit=r.ComAtprotoSyncGetHostStatus=r.ComAtprotoSyncGetHead=r.ComAtprotoSyncGetCheckout=r.ComAtprotoSyncGetBlocks=r.ComAtprotoSyncGetBlob=r.ComAtprotoSyncDefs=r.ComAtprotoServerUpdateEmail=r.ComAtprotoServerRevokeAppPassword=r.ComAtprotoServerResetPassword=r.ComAtprotoServerReserveSigningKey=r.ComAtprotoServerRequestPasswordReset=r.ComAtprotoServerRequestEmailUpdate=r.ComAtprotoServerRequestEmailConfirmation=r.ComAtprotoServerRequestAccountDelete=r.ComAtprotoServerRefreshSession=r.ComAtprotoServerListAppPasswords=r.ComAtprotoServerGetSession=r.ComAtprotoServerGetServiceAuth=void 0,r.AppBskyActorStatusRecord=r.AppBskyActorProfileRecord=r.AppBskyActorNS=r.AppBskyNS=r.AppNS=r.AtpBaseClient=r.TOOLS_OZONE_TEAM=r.TOOLS_OZONE_REPORT=r.TOOLS_OZONE_MODERATION=r.COM_ATPROTO_MODERATION=r.APP_BSKY_GRAPH=r.APP_BSKY_FEED=r.APP_BSKY_ACTOR=r.ToolsOzoneVerificationRevokeVerifications=r.ToolsOzoneVerificationListVerifications=r.ToolsOzoneVerificationGrantVerifications=r.ToolsOzoneVerificationDefs=r.ToolsOzoneTeamUpdateMember=r.ToolsOzoneTeamListMembers=r.ToolsOzoneTeamDeleteMember=r.ToolsOzoneTeamDefs=r.ToolsOzoneTeamAddMember=r.ToolsOzoneSignatureSearchAccounts=r.ToolsOzoneSignatureFindRelatedAccounts=r.ToolsOzoneSignatureFindCorrelation=r.ToolsOzoneSignatureDefs=r.ToolsOzoneSettingUpsertOption=r.ToolsOzoneSettingRemoveOptions=r.ToolsOzoneSettingListOptions=r.ToolsOzoneSettingDefs=r.ToolsOzoneSetUpsertSet=r.ToolsOzoneSetQuerySets=r.ToolsOzoneSetGetValues=r.ToolsOzoneSetDeleteValues=r.ToolsOzoneSetDeleteSet=r.ToolsOzoneSetDefs=r.ToolsOzoneSetAddValues=r.ToolsOzoneServerGetConfig=r.ToolsOzoneSafelinkUpdateRule=r.ToolsOzoneSafelinkRemoveRule=r.ToolsOzoneSafelinkQueryRules=r.ToolsOzoneSafelinkQueryEvents=r.ToolsOzoneSafelinkDefs=r.ToolsOzoneSafelinkAddRule=r.ToolsOzoneReportDefs=r.ToolsOzoneModerationSearchRepos=r.ToolsOzoneModerationQueryStatuses=r.ToolsOzoneModerationQueryEvents=r.ToolsOzoneModerationGetSubjects=r.ToolsOzoneModerationGetRepos=void 0,r.ToolsOzoneSetNS=r.ToolsOzoneServerNS=r.ToolsOzoneSafelinkNS=r.ToolsOzoneModerationNS=r.ToolsOzoneHostingNS=r.ToolsOzoneCommunicationNS=r.ToolsOzoneNS=r.ToolsNS=r.ComAtprotoTempNS=r.ComAtprotoSyncNS=r.ComAtprotoServerNS=r.ComAtprotoRepoNS=r.ComAtprotoModerationNS=r.ComAtprotoLexiconSchemaRecord=r.ComAtprotoLexiconNS=r.ComAtprotoLabelNS=r.ComAtprotoIdentityNS=r.ComAtprotoAdminNS=r.ComAtprotoNS=r.ComNS=r.ChatBskyModerationNS=r.ChatBskyConvoNS=r.ChatBskyActorDeclarationRecord=r.ChatBskyActorNS=r.ChatBskyNS=r.ChatNS=r.AppBskyVideoNS=r.AppBskyUnspeccedNS=r.AppBskyRichtextNS=r.AppBskyNotificationDeclarationRecord=r.AppBskyNotificationNS=r.AppBskyLabelerServiceRecord=r.AppBskyLabelerNS=r.AppBskyGraphVerificationRecord=r.AppBskyGraphStarterpackRecord=r.AppBskyGraphListitemRecord=r.AppBskyGraphListblockRecord=r.AppBskyGraphListRecord=r.AppBskyGraphFollowRecord=r.AppBskyGraphBlockRecord=r.AppBskyGraphNS=r.AppBskyFeedThreadgateRecord=r.AppBskyFeedRepostRecord=r.AppBskyFeedPostgateRecord=r.AppBskyFeedPostRecord=r.AppBskyFeedLikeRecord=r.AppBskyFeedGeneratorRecord=r.AppBskyFeedNS=r.AppBskyEmbedNS=r.AppBskyBookmarkNS=void 0,r.ToolsOzoneVerificationNS=r.ToolsOzoneTeamNS=r.ToolsOzoneSignatureNS=r.ToolsOzoneSettingNS=void 0;let a=e.r(639829),c=e.r(397657),l=s(e.r(795743)),d=s(e.r(15087)),p=s(e.r(627364)),u=s(e.r(547733)),f=s(e.r(323771)),h=s(e.r(825320)),m=s(e.r(142640)),y=s(e.r(115480)),g=s(e.r(911641)),b=s(e.r(178557)),v=s(e.r(819067)),w=s(e.r(479305)),k=s(e.r(264615)),x=s(e.r(210822)),A=s(e.r(62596)),S=s(e.r(353866)),E=s(e.r(658238)),_=s(e.r(626441)),C=s(e.r(430666)),R=s(e.r(905352)),P=s(e.r(899206)),j=s(e.r(224183)),I=s(e.r(752950)),T=s(e.r(760201)),O=s(e.r(766193)),D=s(e.r(696806)),M=s(e.r(372192)),L=s(e.r(294212)),B=s(e.r(305532)),z=s(e.r(905968)),q=s(e.r(868544)),V=s(e.r(807587)),N=s(e.r(884290)),U=s(e.r(601561)),F=s(e.r(55296)),$=s(e.r(664350)),G=s(e.r(430253)),H=s(e.r(692071)),Z=s(e.r(660599)),K=s(e.r(358621)),W=s(e.r(821939)),X=s(e.r(390773)),J=s(e.r(708533)),Q=s(e.r(547647)),Y=s(e.r(478251)),ee=s(e.r(902654)),et=s(e.r(816044)),er=s(e.r(831422)),eo=s(e.r(841302)),ei=s(e.r(673252)),en=s(e.r(225791)),es=s(e.r(31e3)),ea=s(e.r(968595)),ec=s(e.r(703910)),el=s(e.r(315756)),ed=s(e.r(226263)),ep=s(e.r(825967)),eu=s(e.r(116887)),ef=s(e.r(395265)),eh=s(e.r(756376)),em=s(e.r(73928)),ey=s(e.r(907906)),eg=s(e.r(687353));r.AppBskyActorDefs=s(e.r(914295)),r.AppBskyActorGetPreferences=s(e.r(785597)),r.AppBskyActorGetProfile=s(e.r(705739)),r.AppBskyActorGetProfiles=s(e.r(212404)),r.AppBskyActorGetSuggestions=s(e.r(953956)),r.AppBskyActorProfile=s(e.r(716017)),r.AppBskyActorPutPreferences=s(e.r(97905)),r.AppBskyActorSearchActors=s(e.r(937634)),r.AppBskyActorSearchActorsTypeahead=s(e.r(448825)),r.AppBskyActorStatus=s(e.r(407699)),r.AppBskyBookmarkCreateBookmark=s(e.r(795743)),r.AppBskyBookmarkDefs=s(e.r(147618)),r.AppBskyBookmarkDeleteBookmark=s(e.r(15087)),r.AppBskyBookmarkGetBookmarks=s(e.r(879862)),r.AppBskyEmbedDefs=s(e.r(890940)),r.AppBskyEmbedExternal=s(e.r(13899)),r.AppBskyEmbedImages=s(e.r(786250)),r.AppBskyEmbedRecord=s(e.r(423261)),r.AppBskyEmbedRecordWithMedia=s(e.r(414969)),r.AppBskyEmbedVideo=s(e.r(994716)),r.AppBskyFeedDefs=s(e.r(890743)),r.AppBskyFeedDescribeFeedGenerator=s(e.r(319789)),r.AppBskyFeedGenerator=s(e.r(68157)),r.AppBskyFeedGetActorFeeds=s(e.r(19256)),r.AppBskyFeedGetActorLikes=s(e.r(627364)),r.AppBskyFeedGetAuthorFeed=s(e.r(547733)),r.AppBskyFeedGetFeed=s(e.r(323771)),r.AppBskyFeedGetFeedGenerator=s(e.r(190500)),r.AppBskyFeedGetFeedGenerators=s(e.r(47417)),r.AppBskyFeedGetFeedSkeleton=s(e.r(825320)),r.AppBskyFeedGetLikes=s(e.r(747075)),r.AppBskyFeedGetListFeed=s(e.r(142640)),r.AppBskyFeedGetPostThread=s(e.r(115480)),r.AppBskyFeedGetPosts=s(e.r(852349)),r.AppBskyFeedGetQuotes=s(e.r(586656)),r.AppBskyFeedGetRepostedBy=s(e.r(97757)),r.AppBskyFeedGetSuggestedFeeds=s(e.r(345371)),r.AppBskyFeedGetTimeline=s(e.r(72243)),r.AppBskyFeedLike=s(e.r(889101)),r.AppBskyFeedPost=s(e.r(354946)),r.AppBskyFeedPostgate=s(e.r(748125)),r.AppBskyFeedRepost=s(e.r(182890)),r.AppBskyFeedSearchPosts=s(e.r(911641)),r.AppBskyFeedSendInteractions=s(e.r(526505)),r.AppBskyFeedThreadgate=s(e.r(777112)),r.AppBskyGraphBlock=s(e.r(501549)),r.AppBskyGraphDefs=s(e.r(366145)),r.AppBskyGraphFollow=s(e.r(968710)),r.AppBskyGraphGetActorStarterPacks=s(e.r(870741)),r.AppBskyGraphGetBlocks=s(e.r(121071)),r.AppBskyGraphGetFollowers=s(e.r(266460)),r.AppBskyGraphGetFollows=s(e.r(899923)),r.AppBskyGraphGetKnownFollowers=s(e.r(564973)),r.AppBskyGraphGetList=s(e.r(100109)),r.AppBskyGraphGetListBlocks=s(e.r(351991)),r.AppBskyGraphGetListMutes=s(e.r(516623)),r.AppBskyGraphGetLists=s(e.r(986783)),r.AppBskyGraphGetListsWithMembership=s(e.r(734882)),r.AppBskyGraphGetMutes=s(e.r(810572)),r.AppBskyGraphGetRelationships=s(e.r(178557)),r.AppBskyGraphGetStarterPack=s(e.r(173773)),r.AppBskyGraphGetStarterPacks=s(e.r(494612)),r.AppBskyGraphGetStarterPacksWithMembership=s(e.r(713693)),r.AppBskyGraphGetSuggestedFollowsByActor=s(e.r(872251)),r.AppBskyGraphList=s(e.r(247500)),r.AppBskyGraphListblock=s(e.r(286253)),r.AppBskyGraphListitem=s(e.r(931861)),r.AppBskyGraphMuteActor=s(e.r(353892)),r.AppBskyGraphMuteActorList=s(e.r(978366)),r.AppBskyGraphMuteThread=s(e.r(499105)),r.AppBskyGraphSearchStarterPacks=s(e.r(234309)),r.AppBskyGraphStarterpack=s(e.r(851829)),r.AppBskyGraphUnmuteActor=s(e.r(91581)),r.AppBskyGraphUnmuteActorList=s(e.r(979590)),r.AppBskyGraphUnmuteThread=s(e.r(714228)),r.AppBskyGraphVerification=s(e.r(949512)),r.AppBskyLabelerDefs=s(e.r(960426)),r.AppBskyLabelerGetServices=s(e.r(424105)),r.AppBskyLabelerService=s(e.r(501643)),r.AppBskyNotificationDeclaration=s(e.r(448131)),r.AppBskyNotificationDefs=s(e.r(841762)),r.AppBskyNotificationGetPreferences=s(e.r(525454)),r.AppBskyNotificationGetUnreadCount=s(e.r(281616)),r.AppBskyNotificationListActivitySubscriptions=s(e.r(17868)),r.AppBskyNotificationListNotifications=s(e.r(254094)),r.AppBskyNotificationPutActivitySubscription=s(e.r(463242)),r.AppBskyNotificationPutPreferences=s(e.r(621650)),r.AppBskyNotificationPutPreferencesV2=s(e.r(655477)),r.AppBskyNotificationRegisterPush=s(e.r(964182)),r.AppBskyNotificationUnregisterPush=s(e.r(736313)),r.AppBskyNotificationUpdateSeen=s(e.r(893563)),r.AppBskyRichtextFacet=s(e.r(247409)),r.AppBskyUnspeccedDefs=s(e.r(857265)),r.AppBskyUnspeccedGetAgeAssuranceState=s(e.r(527307)),r.AppBskyUnspeccedGetConfig=s(e.r(41135)),r.AppBskyUnspeccedGetPopularFeedGenerators=s(e.r(458083)),r.AppBskyUnspeccedGetPostThreadOtherV2=s(e.r(531364)),r.AppBskyUnspeccedGetPostThreadV2=s(e.r(411956)),r.AppBskyUnspeccedGetSuggestedFeeds=s(e.r(882702)),r.AppBskyUnspeccedGetSuggestedFeedsSkeleton=s(e.r(476984)),r.AppBskyUnspeccedGetSuggestedStarterPacks=s(e.r(96245)),r.AppBskyUnspeccedGetSuggestedStarterPacksSkeleton=s(e.r(887397)),r.AppBskyUnspeccedGetSuggestedUsers=s(e.r(496885)),r.AppBskyUnspeccedGetSuggestedUsersSkeleton=s(e.r(252179)),r.AppBskyUnspeccedGetSuggestionsSkeleton=s(e.r(364863)),r.AppBskyUnspeccedGetTaggedSuggestions=s(e.r(157578)),r.AppBskyUnspeccedGetTrendingTopics=s(e.r(591527)),r.AppBskyUnspeccedGetTrends=s(e.r(212372)),r.AppBskyUnspeccedGetTrendsSkeleton=s(e.r(779529)),r.AppBskyUnspeccedInitAgeAssurance=s(e.r(819067)),r.AppBskyUnspeccedSearchActorsSkeleton=s(e.r(479305)),r.AppBskyUnspeccedSearchPostsSkeleton=s(e.r(264615)),r.AppBskyUnspeccedSearchStarterPacksSkeleton=s(e.r(210822)),r.AppBskyVideoDefs=s(e.r(447950)),r.AppBskyVideoGetJobStatus=s(e.r(213042)),r.AppBskyVideoGet
21UploadLimits=s(e.r(468900)),r.AppBskyVideoUploadVideo=s(e.r(156191)),r.ChatBskyActorDeclaration=s(e.r(902958)),r.ChatBskyActorDefs=s(e.r(535843)),r.ChatBskyActorDeleteAccount=s(e.r(389947)),r.ChatBskyActorExportAccountData=s(e.r(439015)),r.ChatBskyConvoAcceptConvo=s(e.r(88567)),r.ChatBskyConvoAddReaction=s(e.r(62596)),r.ChatBskyConvoDefs=s(e.r(573460)),r.ChatBskyConvoDeleteMessageForSelf=s(e.r(380277)),r.ChatBskyConvoGetConvo=s(e.r(150118)),r.ChatBskyConvoGetConvoAvailability=s(e.r(491446)),r.ChatBskyConvoGetConvoForMembers=s(e.r(34132)),r.ChatBskyConvoGetLog=s(e.r(763245)),r.ChatBskyConvoGetMessages=s(e.r(603862)),r.ChatBskyConvoLeaveConvo=s(e.r(195630)),r.ChatBskyConvoListConvos=s(e.r(68214)),r.ChatBskyConvoMuteConvo=s(e.r(969173)),r.ChatBskyConvoRemoveReaction=s(e.r(353866)),r.ChatBskyConvoSendMessage=s(e.r(721677)),r.ChatBskyConvoSendMessageBatch=s(e.r(669641)),r.ChatBskyConvoUnmuteConvo=s(e.r(68467)),r.ChatBskyConvoUpdateAllRead=s(e.r(426158)),r.ChatBskyConvoUpdateRead=s(e.r(223453)),r.ChatBskyModerationGetActorMetadata=s(e.r(869723)),r.ChatBskyModerationGetMessageContext=s(e.r(197637)),r.ChatBskyModerationUpdateActorAccess=s(e.r(236785)),r.ComAtprotoAdminDefs=s(e.r(14319)),r.ComAtprotoAdminDeleteAccount=s(e.r(218798)),r.ComAtprotoAdminDisableAccountInvites=s(e.r(689747)),r.ComAtprotoAdminDisableInviteCodes=s(e.r(396466)),r.ComAtprotoAdminEnableAccountInvites=s(e.r(837437)),r.ComAtprotoAdminGetAccountInfo=s(e.r(591939)),r.ComAtprotoAdminGetAccountInfos=s(e.r(551592)),r.ComAtprotoAdminGetInviteCodes=s(e.r(896513)),r.ComAtprotoAdminGetSubjectStatus=s(e.r(22359)),r.ComAtprotoAdminSearchAccounts=s(e.r(472677)),r.ComAtprotoAdminSendEmail=s(e.r(532655)),r.ComAtprotoAdminUpdateAccountEmail=s(e.r(425914)),r.ComAtprotoAdminUpdateAccountHandle=s(e.r(663933)),r.ComAtprotoAdminUpdateAccountPassword=s(e.r(796869)),r.ComAtprotoAdminUpdateAccountSigningKey=s(e.r(212835)),r.ComAtprotoAdminUpdateSubjectStatus=s(e.r(197939)),r.ComAtprotoIdentityDefs=s(e.r(127901)),r.ComAtprotoIdentityGetRecommendedDidCredentials=s(e.r(884478)),r.ComAtprotoIdentityRefreshIdentity=s(e.r(658238)),r.ComAtprotoIdentityRequestPlcOperationSignature=s(e.r(986056)),r.ComAtprotoIdentityResolveDid=s(e.r(626441)),r.ComAtprotoIdentityResolveHandle=s(e.r(430666)),r.ComAtprotoIdentityResolveIdentity=s(e.r(905352)),r.ComAtprotoIdentitySignPlcOperation=s(e.r(269157)),r.ComAtprotoIdentitySubmitPlcOperation=s(e.r(928776)),r.ComAtprotoIdentityUpdateHandle=s(e.r(516285)),r.ComAtprotoLabelDefs=s(e.r(325397)),r.ComAtprotoLabelQueryLabels=s(e.r(555781)),r.ComAtprotoLabelSubscribeLabels=s(e.r(726053)),r.ComAtprotoLexiconSchema=s(e.r(661745)),r.ComAtprotoModerationCreateReport=s(e.r(722542)),r.ComAtprotoModerationDefs=s(e.r(824779)),r.ComAtprotoRepoApplyWrites=s(e.r(899206)),r.ComAtprotoRepoCreateRecord=s(e.r(224183)),r.ComAtprotoRepoDefs=s(e.r(960705)),r.ComAtprotoRepoDeleteRecord=s(e.r(752950)),r.ComAtprotoRepoDescribeRepo=s(e.r(270852)),r.ComAtprotoRepoGetRecord=s(e.r(760201)),r.ComAtprotoRepoImportRepo=s(e.r(700207)),r.ComAtprotoRepoListMissingBlobs=s(e.r(590934)),r.ComAtprotoRepoListRecords=s(e.r(249229)),r.ComAtprotoRepoPutRecord=s(e.r(766193)),r.ComAtprotoRepoStrongRef=s(e.r(813351)),r.ComAtprotoRepoUploadBlob=s(e.r(958096)),r.ComAtprotoServerActivateAccount=s(e.r(968294)),r.ComAtprotoServerCheckAccountStatus=s(e.r(57118)),r.ComAtprotoServerConfirmEmail=s(e.r(696806)),r.ComAtprotoServerCreateAccount=s(e.r(372192)),r.ComAtprotoServerCreateAppPassword=s(e.r(294212)),r.ComAtprotoServerCreateInviteCode=s(e.r(935775)),r.ComAtprotoServerCreateInviteCodes=s(e.r(614920)),r.ComAtprotoServerCreateSession=s(e.r(305532)),r.ComAtprotoServerDeactivateAccount=s(e.r(354759)),r.ComAtprotoServerDefs=s(e.r(505295)),r.ComAtprotoServerDeleteAccount=s(e.r(905968)),r.ComAtprotoServerDeleteSession=s(e.r(507941)),r.ComAtprotoServerDescribeServer=s(e.r(185733)),r.ComAtprotoServerGetAccountInviteCodes=s(e.r(868544)),r.ComAtprotoServerGetServiceAuth=s(e.r(807587)),r.ComAtprotoServerGetSession=s(e.r(227098)),r.ComAtprotoServerListAppPasswords=s(e.r(884290)),r.ComAtprotoServerRefreshSession=s(e.r(601561)),r.ComAtprotoServerRequestAccountDelete=s(e.r(854352)),r.ComAtprotoServerRequestEmailConfirmation=s(e.r(55043)),r.ComAtprotoServerRequestEmailUpdate=s(e.r(45634)),r.ComAtprotoServerRequestPasswordReset=s(e.r(6570)),r.ComAtprotoServerReserveSigningKey=s(e.r(982110)),r.ComAtprotoServerResetPassword=s(e.r(55296)),r.ComAtprotoServerRevokeAppPassword=s(e.r(612402)),r.ComAtprotoServerUpdateEmail=s(e.r(664350)),r.ComAtprotoSyncDefs=s(e.r(244528)),r.ComAtprotoSyncGetBlob=s(e.r(430253)),r.ComAtprotoSyncGetBlocks=s(e.r(692071)),r.ComAtprotoSyncGetCheckout=s(e.r(155836)),r.ComAtprotoSyncGetHead=s(e.r(660599)),r.ComAtprotoSyncGetHostStatus=s(e.r(358621)),r.ComAtprotoSyncGetLatestCommit=s(e.r(821939)),r.ComAtprotoSyncGetRecord=s(e.r(390773)),r.ComAtprotoSyncGetRepo=s(e.r(708533)),r.ComAtprotoSyncGetRepoStatus=s(e.r(547647)),r.ComAtprotoSyncListBlobs=s(e.r(478251)),r.ComAtprotoSyncListHosts=s(e.r(947363)),r.ComAtprotoSyncListRepos=s(e.r(975464)),r.ComAtprotoSyncListReposByCollection=s(e.r(886869)),r.ComAtprotoSyncNotifyOfUpdate=s(e.r(277139)),r.ComAtprotoSyncRequestCrawl=s(e.r(902654)),r.ComAtprotoSyncSubscribeRepos=s(e.r(718028)),r.ComAtprotoTempAddReservedHandle=s(e.r(57114)),r.ComAtprotoTempCheckHandleAvailability=s(e.r(816044)),r.ComAtprotoTempCheckSignupQueue=s(e.r(130589)),r.ComAtprotoTempDereferenceScope=s(e.r(831422)),r.ComAtprotoTempFetchLabels=s(e.r(175815)),r.ComAtprotoTempRequestPhoneVerification=s(e.r(190963)),r.ComAtprotoTempRevokeAccountCredentials=s(e.r(986227)),r.ToolsOzoneCommunicationCreateTemplate=s(e.r(841302)),r.ToolsOzoneCommunicationDefs=s(e.r(147096)),r.ToolsOzoneCommunicationDeleteTemplate=s(e.r(851611)),r.ToolsOzoneCommunicationListTemplates=s(e.r(346379)),r.ToolsOzoneCommunicationUpdateTemplate=s(e.r(673252)),r.ToolsOzoneHostingGetAccountHistory=s(e.r(842399)),r.ToolsOzoneModerationDefs=s(e.r(922733)),r.ToolsOzoneModerationEmitEvent=s(e.r(225791)),r.ToolsOzoneModerationGetAccountTimeline=s(e.r(31e3)),r.ToolsOzoneModerationGetEvent=s(e.r(69711)),r.ToolsOzoneModerationGetRecord=s(e.r(968595)),r.ToolsOzoneModerationGetRecords=s(e.r(109725)),r.ToolsOzoneModerationGetRepo=s(e.r(703910)),r.ToolsOzoneModerationGetReporterStats=s(e.r(682739)),r.ToolsOzoneModerationGetRepos=s(e.r(973242)),r.ToolsOzoneModerationGetSubjects=s(e.r(332202)),r.ToolsOzoneModerationQueryEvents=s(e.r(270640)),r.ToolsOzoneModerationQueryStatuses=s(e.r(90009)),r.ToolsOzoneModerationSearchRepos=s(e.r(627460)),r.ToolsOzoneReportDefs=s(e.r(101567)),r.ToolsOzoneSafelinkAddRule=s(e.r(315756)),r.ToolsOzoneSafelinkDefs=s(e.r(192722)),r.ToolsOzoneSafelinkQueryEvents=s(e.r(21515)),r.ToolsOzoneSafelinkQueryRules=s(e.r(155986)),r.ToolsOzoneSafelinkRemoveRule=s(e.r(226263)),r.ToolsOzoneSafelinkUpdateRule=s(e.r(825967)),r.ToolsOzoneServerGetConfig=s(e.r(467032)),r.ToolsOzoneSetAddValues=s(e.r(723373)),r.ToolsOzoneSetDefs=s(e.r(125023)),r.ToolsOzoneSetDeleteSet=s(e.r(116887)),r.ToolsOzoneSetDeleteValues=s(e.r(395265)),r.ToolsOzoneSetGetValues=s(e.r(756376)),r.ToolsOzoneSetQuerySets=s(e.r(408075)),r.ToolsOzoneSetUpsertSet=s(e.r(638841)),r.ToolsOzoneSettingDefs=s(e.r(659085)),r.ToolsOzoneSettingListOptions=s(e.r(322556)),r.ToolsOzoneSettingRemoveOptions=s(e.r(554342)),r.ToolsOzoneSettingUpsertOption=s(e.r(967645)),r.ToolsOzoneSignatureDefs=s(e.r(805021)),r.ToolsOzoneSignatureFindCorrelation=s(e.r(107549)),r.ToolsOzoneSignatureFindRelatedAccounts=s(e.r(477519)),r.ToolsOzoneSignatureSearchAccounts=s(e.r(360794)),r.ToolsOzoneTeamAddMember=s(e.r(73928)),r.ToolsOzoneTeamDefs=s(e.r(11761)),r.ToolsOzoneTeamDeleteMember=s(e.r(907906)),r.ToolsOzoneTeamListMembers=s(e.r(581915)),r.ToolsOzoneTeamUpdateMember=s(e.r(687353)),r.ToolsOzoneVerificationDefs=s(e.r(686431)),r.ToolsOzoneVerificationGrantVerifications=s(e.r(725710)),r.ToolsOzoneVerificationListVerifications=s(e.r(554468)),r.ToolsOzoneVerificationRevokeVerifications=s(e.r(914916)),r.APP_BSKY_ACTOR={StatusLive:"app.bsky.actor.status#live"},r.APP_BSKY_FEED={DefsRequestLess:"app.bsky.feed.defs#requestLess",DefsRequestMore:"app.bsky.feed.defs#requestMore",DefsClickthroughItem:"app.bsky.feed.defs#clickthroughItem",DefsClickthroughAuthor:"app.bsky.feed.defs#clickthroughAuthor",DefsClickthroughReposter:"app.bsky.feed.defs#clickthroughReposter",DefsClickthroughEmbed:"app.bsky.feed.defs#clickthroughEmbed",DefsContentModeUnspecified:"app.bsky.feed.defs#contentModeUnspecified",DefsContentModeVideo:"app.bsky.feed.defs#contentModeVideo",DefsInteractionSeen:"app.bsky.feed.defs#interactionSeen",DefsInteractionLike:"app.bsky.feed.defs#interactionLike",DefsInteractionRepost:"app.bsky.feed.defs#interactionRepost",DefsInteractionReply:"app.bsky.feed.defs#interactionReply",Def
21sInteractionQuote:"app.bsky.feed.defs#interactionQuote",DefsInteractionShare:"app.bsky.feed.defs#interactionShare"},r.APP_BSKY_GRAPH={DefsModlist:"app.bsky.graph.defs#modlist",DefsCuratelist:"app.bsky.graph.defs#curatelist",DefsReferencelist:"app.bsky.graph.defs#referencelist"},r.COM_ATPROTO_MODERATION={DefsReasonSpam:"com.atproto.moderation.defs#reasonSpam",DefsReasonViolation:"com.atproto.moderation.defs#reasonViolation",DefsReasonMisleading:"com.atproto.moderation.defs#reasonMisleading",DefsReasonSexual:"com.atproto.moderation.defs#reasonSexual",DefsReasonRude:"com.atproto.moderation.defs#reasonRude",DefsReasonOther:"com.atproto.moderation.defs#reasonOther",DefsReasonAppeal:"com.atproto.moderation.defs#reasonAppeal"},r.TOOLS_OZONE_MODERATION={DefsReviewOpen:"tools.ozone.moderation.defs#reviewOpen",DefsReviewEscalated:"tools.ozone.moderation.defs#reviewEscalated",DefsReviewClosed:"tools.ozone.moderation.defs#reviewClosed",DefsReviewNone:"tools.ozone.moderation.defs#reviewNone",DefsTimelineEventPlcCreate:"tools.ozone.moderation.defs#timelineEventPlcCreate",DefsTimelineEventPlcOperation:"tools.ozone.moderation.defs#timelineEventPlcOperation",DefsTimelineEventPlcTombstone:"tools.ozone.moderation.defs#timelineEventPlcTombstone"},r.TOOLS_OZONE_REPORT={DefsReasonAppeal:"tools.ozone.report.defs#reasonAppeal",DefsReasonViolenceAnimalWelfare:"tools.ozone.report.defs#reasonViolenceAnimalWelfare",DefsReasonViolenceThreats:"tools.ozone.report.defs#reasonViolenceThreats",DefsReasonViolenceGraphicContent:"tools.ozone.report.defs#reasonViolenceGraphicContent",DefsReasonViolenceSelfHarm:"tools.ozone.report.defs#reasonViolenceSelfHarm",DefsReasonViolenceGlorification:"tools.ozone.report.defs#reasonViolenceGlorification",DefsReasonViolenceExtremistContent:"tools.ozone.report.defs#reasonViolenceExtremistContent",DefsReasonViolenceTrafficking:"tools.ozone.report.defs#reasonViolenceTrafficking",DefsReasonViolenceOther:"tools.ozone.report.defs#reasonViolenceOther",DefsReasonSexualAbuseContent:"tools.ozone.report.defs#reasonSexualAbuseContent",DefsReasonSexualNCII:"tools.ozone.report.defs#reasonSexualNCII",DefsReasonSexualSextortion:"tools.ozone.report.defs#reasonSexualSextortion",DefsReasonSexualDeepfake:"tools.ozone.report.defs#reasonSexualDeepfake",DefsReasonSexualAnimal:"tools.ozone.report.defs#reasonSexualAnimal",DefsReasonSexualUnlabeled:"tools.ozone.report.defs#reasonSexualUnlabeled",DefsReasonSexualOther:"tools.ozone.report.defs#reasonSexualOther",DefsReasonChildSafetyCSAM:"tools.ozone.report.defs#reasonChildSafetyCSAM",DefsReasonChildSafetyGroom:"tools.ozone.report.defs#reasonChildSafetyGroom",DefsReasonChildSafetyMinorPrivacy:"tools.ozone.report.defs#reasonChildSafetyMinorPrivacy",DefsReasonChildSafetyEndangerment:"tools.ozone.report.defs#reasonChildSafetyEndangerment",DefsReasonChildSafetyHarassment:"tools.ozone.report.defs#reasonChildSafetyHarassment",DefsReasonChildSafetyPromotion:"tools.ozone.report.defs#reasonChildSafetyPromotion",DefsReasonChildSafetyOther:"tools.ozone.report.defs#reasonChildSafetyOther",DefsReasonHarassmentTroll:"tools.ozone.report.defs#reasonHarassmentTroll",DefsReasonHarassmentTargeted:"tools.ozone.report.defs#reasonHarassmentTargeted",DefsReasonHarassmentHateSpeech:"tools.ozone.report.defs#reasonHarassmentHateSpeech",DefsReasonHarassmentDoxxing:"tools.ozone.report.defs#reasonHarassmentDoxxing",DefsReasonHarassmentOther:"tools.ozone.report.defs#reasonHarassmentOther",DefsReasonMisleadingBot:"tools.ozone.report.defs#reasonMisleadingBot",DefsReasonMisleadingImpersonation:"tools.ozone.report.defs#reasonMisleadingImpersonation",DefsReasonMisleadingSpam:"tools.ozone.report.defs#reasonMisleadingSpam",DefsReasonMisleadingScam:"tools.ozone.report.defs#reasonMisleadingScam",DefsReasonMisleadingSyntheticContent:"tools.ozone.report.defs#reasonMisleadingSyntheticContent",DefsReasonMisleadingMisinformation:"tools.ozone.report.defs#reasonMisleadingMisinformation",DefsReasonMisleadingOther:"tools.ozone.report.defs#reasonMisleadingOther",DefsReasonRuleSiteSecurity:"tools.ozone.report.defs#reasonRuleSiteSecurity",DefsReasonRuleStolenContent:"tools.ozone.report.defs#reasonRuleStolenContent",DefsReasonRuleProhibitedSales:"tools.ozone.report.defs#reasonRuleProhibitedSales",DefsReasonRuleBanEvasion:"tools.ozone.report.defs#reasonRuleBanEvasion",DefsReasonRuleOther:"tools.ozone.report.defs#reasonRuleOther",DefsReasonCivicElectoralProcess:"tools.ozone.report.defs#reasonCivicElectoralProcess",DefsReasonCivicDisclosure:"tools.ozone.report.defs#reasonCivicDisclosure",DefsReasonCivicInterference:"tools.ozone.report.defs#reasonCivicInterference",DefsReasonCivicMisinformation:"tools.ozone.report.defs#reasonCivicMisinformation",DefsReasonCivicImpersonation:"tools.ozone.report.defs#reasonCivicImpersonation"},r.TOOLS_OZONE_TEAM={DefsRoleAdmin:"tools.ozone.team.defs#roleAdmin",DefsRoleModerator:"tools.ozone.team.defs#roleModerator",DefsRoleTriage:"tools.ozone.team.defs#roleTriage",DefsRoleVerifier:"tools.ozone.team.defs#roleVerifier"};
21class eb extends a.XrpcClient{constructor(e){super(e,c.schemas),Object.defineProperty(this,"app",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chat",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"com",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tools",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.app=new ev(this),this.chat=new eK(this),this.com=new e0(this),this.tools=new tr(this)}get xrpc(){return this}}r.AtpBaseClient=eb;class ev{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bsky",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.bsky=new ew(e)}}r.AppNS=ev;class ew{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bookmark",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"embed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"feed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"graph",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"labeler",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"notification",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"richtext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unspecced",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"video",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.actor=new ek(e),this.bookmark=new eS(e),this.embed=new eE(e),this.feed=new e_(e),this.graph=new eO(e),this.labeler=new eN(e),this.notification=new eF(e),this.richtext=new eG(e),this.unspecced=new eH(e),this.video=new eZ(e)}}r.AppBskyNS=ew;class ek{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"profile",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.profile=new ex(e),this.status=new eA(e)}getPreferences(e,t){return this._client.call("app.bsky.actor.getPreferences",e,void 0,t)}getProfile(e,t){return this._client.call("app.bsky.actor.getProfile",e,void 0,t)}getProfiles(e,t){return this._client.call("app.bsky.actor.getProfiles",e,void 0,t)}getSuggestions(e,t){return this._client.call("app.bsky.actor.getSuggestions",e,void 0,t)}putPreferences(e,t){return this._client.call("app.bsky.actor.putPreferences",t?.qp,e,t)}searchActors(e,t){return this._client.call("app.bsky.actor.searchActors",e,void 0,t)}searchActorsTypeahead(e,t){return this._client.call("app.bsky.actor.searchActorsTypeahead",e,void 0,t)}}r.AppBskyActorNS=ek;class ex{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.actor.profile",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.actor.profile",...e})).data}async create(e,t,r){let o="app.bsky.actor.profile";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,rkey:"self",...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.actor.profile";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.actor.profile",...e},{headers:t})}}r.AppBskyActorProfileRecord=ex;class eA{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.actor.status",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.actor.status",...e})).data}async create(e,t,r){let o="app.bsky.actor.status";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,rkey:"self",...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.actor.status";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.actor.status",...e},{headers:t})}}r.AppBskyActorStatusRecord=eA;class eS{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}createBookmark(e,t){return this._client.call("app.bsky.bookmark.createBookmark",t?.qp,e,t).catch(e=>{throw l.toKnownErr(e)})}deleteBookmark(e,t){return this._client.call("app.bsky.bookmark.deleteBookmark",t?.qp,e,t).catch(e=>{throw d.toKnownErr(e)})}getBookmarks(e,t){return this._client.call("app.bsky.bookmark.getBookmarks",e,void 0,t)}}r.AppBskyBookmarkNS=eS;class eE{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}}r.AppBskyEmbedNS=eE;class e_{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"generator",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"like",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"post",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"postgate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"repost",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"threadgate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.generator=new eC(e),this.like=new eR(e),this.post=new eP(e),this.postgate=new ej(e),this.repost=new eI(e),this.threadgate=new eT(e)}describeFeedGenerator(e,t){return this._client.call("app.bsky.feed.describeFeedGenerator",e,void 0,t)}getActorFeeds(e,t){return this._client.call("app.bsky.feed.getActorFeeds",e,void 0,t)}getActorLikes(e,t){return this._client.call("app.bsky.feed.getActorLikes",e,void 0,t).catch(e=>{throw p.toKnownErr(e)})}getAuthorFeed(e,t){return this._client.call("app.bsky.feed.getAuthorFeed",e,void 0,t).catch(e=>{throw u.toKnownErr(e)})}getFeed(e,t){return this._client.call("app.bsky.feed.getFeed",e,void 0,t).catch(e=>{throw f.toKnownErr(e)})}getFeedGenerator(e,t){return this._client.call("app.bsky.feed.getFeedGenerator",e,void 0,t)}getFeedGenerators(e,t){return this._client.call("app.bsky.feed.getFeedGenerators",e,void 0,t)}getFeedSkeleton(e,t){return this._client.call("app.bsky.feed.getFeedSkeleton",e,void 0,t).catch(e=>{throw h.toKnownErr(e)})}getLikes(e,t){return this._client.call("app.bsky.feed.getLikes",e,void 0,t)}getListFeed(e,t){return this._client.call("app.bsky.feed.getListFeed",e,void 0,t).catch(e=>{throw m.toKnownErr(e)})}getPostThread(e,t){return this._client.call("app.bsky.feed.getPostThread",e,void 0,t).catch(e=>{throw y.toKnownErr(e)})}getPosts(e,t){return this._client.call("app.bsky.feed.getPosts",e,void 0,t)}getQuotes(e,t){return this._client.call("app.bsky.feed.getQuotes",e,void 0,t)}getRepostedBy(e,t){return this._client.call("app.bsky.feed.getRepostedBy",e,void 0,t)}getSuggestedFeeds(e,t){return this._client.call("app.bsky.feed.getSuggestedFeeds",e,void 0,t)}getTimeline(e,t){return this._client.call("app.bsky.feed.getTimeline",e,void 0,t)}searchPosts(e,t){return this._client.call("app.bsky.feed.searchPosts",e,void 0,t).catch(e=>{throw g.toKnownErr(e)})}sendInteractions(e,t){return this._client.call("app.bsky.feed.sendInteractions",t?.qp,e,t)}}r.AppBskyFeedNS=e_;class eC{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.generator",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.generator",...e})).data}async create(e,t,r){let o="app.bsky.feed.generator";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.generator";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.generator",...e},{headers:t})}}r.AppBskyFeedGeneratorRecord=eC;class eR{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.like",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.like",...e})).data}async create(e,t,r){let o="app.bsky.feed.like";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.like";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.like",...e},{headers:t})}}r.AppBskyFeedLikeRecord=eR;class eP{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.post",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.post",...e})).data}async create(e,t,r){let o="app.bsky.feed.post";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.post";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.post",...e},{headers:t})}}r.AppBskyFeedPostRecord=eP;class ej{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.postgate",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.postgate",...e})).data}async create(e,t,r){let o="app.bsky.feed.postgate";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.postgate";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.postgate",...e},{headers:t})}}r.AppBskyFeedPostgateRecord=ej;class eI{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.repost",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.repost",...e})).data}async create(e,t,r){let o="app.bsky.feed.repost";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.repost";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.repost",...e},{headers:t})}}r.AppBskyFeedRepostRecord=eI;class eT{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.feed.threadgate",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.feed.threadgate",...e})).data}async create(e,t,r){let o="app.bsky.feed.threadgate";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.feed.threadgate";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.feed.threadgate",...e},{headers:t})}}r.AppBskyFeedThreadgateRecord=eT;class eO{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"block",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"follow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listblock",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"listitem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"starterpack",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verification",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.block=new eD(e),this.follow=new eM(e),this.list=new eL(e),this.listblock=new eB(e),this.listitem=new ez(e),this.starterpack=new eq(e),this.verification=new eV(e)}getActorStarterPacks(e,t){return this._client.call("app.bsky.graph.getActorStarterPacks",e,void 0,t)}getBlocks(e,t){return this._client.call("app.bsky.graph.getBlocks",e,void 0,t)}getFollowers(e,t){return this._client.call("app.bsky.graph.getFollowers",e,void 0,t)}getFollows(e,t){return this._client.call("app.bsky.graph.getFollows",e,void 0,t)}getKnownFollowers(e,t){return this._client.call("app.bsky.graph.getKnownFollowers",e,void 0,t)}getList(e,t){return this._client.call("app.bsky.graph.getList",e,void 0,t)}getListBlocks(e,t){return this._client.call("app.bsky.graph.getListBlocks",e,void 0,t)}getListMutes(e,t){return this._client.call("app.bsky.graph.getListMutes",e,void 0,t)}getLists(e,t){return this._client.call("app.bsky.graph.getLists",e,void 0,t)}getListsWithMembership(e,t){return this._client.call("app.bsky.graph.getListsWithMembership",e,void 0,t)}getMutes(e,t){return this._client.call("app.bsky.graph.getMutes",e,void 0,t)}getRelationships(e,t){return this._client.call("app.bsky.graph.getRelationships",e,void 0,t).catch(e=>{throw b.toKnownErr(e)})}getStarterPack(e,t){return this._client.call("app.bsky.graph.getStarterPack",e,void 0,t)}getStarterPacks(e,t){return this._client.call("app.bsky.graph.getStarterPacks",e,void 0,t)}getSta
21rterPacksWithMembership(e,t){return this._client.call("app.bsky.graph.getStarterPacksWithMembership",e,void 0,t)}getSuggestedFollowsByActor(e,t){return this._client.call("app.bsky.graph.getSuggestedFollowsByActor",e,void 0,t)}muteActor(e,t){return this._client.call("app.bsky.graph.muteActor",t?.qp,e,t)}muteActorList(e,t){return this._client.call("app.bsky.graph.muteActorList",t?.qp,e,t)}muteThread(e,t){return this._client.call("app.bsky.graph.muteThread",t?.qp,e,t)}searchStarterPacks(e,t){return this._client.call("app.bsky.graph.searchStarterPacks",e,void 0,t)}unmuteActor(e,t){return this._client.call("app.bsky.graph.unmuteActor",t?.qp,e,t)}unmuteActorList(e,t){return this._client.call("app.bsky.graph.unmuteActorList",t?.qp,e,t)}unmuteThread(e,t){return this._client.call("app.bsky.graph.unmuteThread",t?.qp,e,t)}}r.AppBskyGraphNS=eO;class eD{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.block",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.block",...e})).data}async create(e,t,r){let o="app.bsky.graph.block";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.block";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.block",...e},{headers:t})}}r.AppBskyGraphBlockRecord=eD;class eM{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.follow",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.follow",...e})).data}async create(e,t,r){let o="app.bsky.graph.follow";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.follow";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.follow",...e},{headers:t})}}r.AppBskyGraphFollowRecord=eM;class eL{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.list",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.list",...e})).data}async create(e,t,r){let o="app.bsky.graph.list";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.list";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.list",...e},{headers:t})}}r.AppBskyGraphListRecord=eL;class eB{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.listblock",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.listblock",...e})).data}async create(e,t,r){let o="app.bsky.graph.listblock";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.listblock";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.listblock",...e},{headers:t})}}r.AppBskyGraphListblockRecord=eB;class ez{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.listitem",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.listitem",...e})).data}async create(e,t,r){let o="app.bsky.graph.listitem";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.listitem";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.listitem",...e},{headers:t})}}r.AppBskyGraphListitemRecord=ez;class eq{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.starterpack",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.starterpack",...e})).data}async create(e,t,r){let o="app.bsky.graph.starterpack";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.starterpack";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.starterpack",...e},{headers:t})}}r.AppBskyGraphStarterpackRecord=eq;class eV{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.graph.verification",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.graph.verification",...e})).data}async create(e,t,r){let o="app.bsky.graph.verification";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.graph.verification";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.graph.verification",...e},{headers:t})}}r.AppBskyGraphVerificationRecord=eV;class eN{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"service",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.service=new eU(e)}getServices(e,t){return this._client.call("app.bsky.labeler.getServices",e,void 0,t)}}r.AppBskyLabelerNS=eN;class eU{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.labeler.service",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.labeler.service",...e})).data}async create(e,t,r){let o="app.bsky.labeler.service";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,rkey:"self",...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.labeler.service";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.labeler.service",...e},{headers:t})}}r.AppBskyLabelerServiceRecord=eU;class eF{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"declaration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.declaration=new e$(e)}getPreferences(e,t){return this._client.call("app.bsky.notification.getPreferences",e,void 0,t)}getUnreadCount(e,t){return this._client.call("app.bsky.notification.getUnreadCount",e,void 0,t)}listActivitySubscriptions(e,t){return this._client.call("app.bsky.notification.listActivitySubscriptions",e,void 0,t)}listNotifications(e,t){return this._client.call("app.bsky.notification.listNotifications",e,void 0,t)}putActivitySubscription(e,t){return this._client.call("app.bsky.notification.putActivitySubscription",t?.qp,e,t)}putPreferences(e,t){return this._client.call("app.bsky.notification.putPreferences",t?.qp,e,t)}putPreferencesV2(e,t){return this._client.call("app.bsky.notification.putPreferencesV2",t?.qp,e,t)}registerPush(e,t){return this._client.call("app.bsky.notification.registerPush",t?.qp,e,t)}unregisterPush(e,t){return this._client.call("app.bsky.notification.unregisterPush",t?.qp,e,t)}updateSeen(e,t){return this._client.call("app.bsky.notification.updateSeen",t?.qp,e,t)}}r.AppBskyNotificationNS=eF;class e${constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"app.bsky.notification.declaration",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"app.bsky.notification.declaration",...e})).data}async create(e,t,r){let o="app.bsky.notification.declaration";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,rkey:"self",...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="app.bsky.notification.declaration";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"app.bsky.notification.declaration",...e},{headers:t})}}r.AppBskyNotificationDeclarationRecord=e$;class eG{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}}r.AppBskyRichtextNS=eG;class eH{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getAgeAssuranceState(e,t){return this._client.call("app.bsky.unspecced.getAgeAssuranceState",e,void 0,t)}getConfig(e,t){return this._client.call("app.bsky.unspecced.getConfig",e,void 0,t)}getPopularFeedGenerators(e,t){return this._client.call("app.bsky.unspecced.getPopularFeedGenerators",e,void 0,t)}getPostThreadOtherV2(e,t){return this._client.call("app.bsky.unspecced.getPostThreadOtherV2",e,void 0,t)}getPostThreadV2(e,t){return this._client.call("app.bsky.unspecced.getPostThreadV2",e,void 0,t)}getSuggestedFeeds(e,t){return this._client.call("app.bsky.unspecced.getSuggestedFeeds",e,void 0,t)}getSuggestedFeedsSkeleton(e,t){return this._client.call("app.bsky.unspecced.getSuggestedFeedsSkeleton",e,void 0,t)}getSuggestedStarterPacks(e,t){return this._client.call("app.bsky.unspecced.getSuggestedStarterPacks",e,void 0,t)}getSuggestedStarterPacksSkeleton(e,t){return this._client.call("app.bsky.unspecced.getSuggestedStarterPacksSkeleton",e,void 0,t)}getSuggestedUsers(e,t){return this._client.call("app.bsky.unspecced.getSuggestedUsers",e,void 0,t)}getSuggestedUsersSkeleton(e,t){return this._client.call("app.bsky.unspecced.getSuggestedUsersSkeleton",e,void 0,t)}getSuggestionsSkeleton(e,t){return this._client.call("app.bsky.unspecced.getSuggestionsSkeleton",e,void 0,t)}getTaggedSuggestions(e,t){return this._client.call("app.bsky.unspecced.getTaggedSuggestions",e,void 0,t)}getTrendingTopics(e,t){return this._client.call("app.bsky.unspecced.getTrendingTopics",e,void 0,t)}getTrends(e,t){return this._client.call("app.bsky.unspecced.getTrends",e,void 0,t)}getTrendsSkeleton(e,t){return this._client.call("app.bsky.unspecced.getTrendsSkeleton",e,void 0,t)}initAgeAssurance(e,t){return this._client.call("app.bsky.unspecced.initAgeAssurance",t?.qp,e,t).catch(e=>{throw v.toKnownErr(e)})}searchActorsSkeleton(e,t){return this._client.call("app.bsky.unspecced.searchActorsSkeleton",e,void 0,t).catch(e=>{throw w.toKnownErr(e)})}searchPostsSkeleton(e,t){return this._client.call("app.bsky.unspecced.searchPostsSkeleton",e,void 0,t).catch(e=>{throw k.toKnownErr(e)})}searchStarterPacksSkeleton(e,t){return this._client.call("app.bsky.unspecced.searchStarterPacksSkeleton",e,void 0,t).catch(e=>{throw x.toKnownErr(e)})}}r.AppBskyUnspeccedNS=eH;class eZ{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getJobStatus(e,t){return this._client.call("app.bsky.video.getJobStatus",e,void 0,t)}getUploadLimits(e,t){return this._client.call("app.bsky.video.getUploadLimits",e,void 0,t)}uploadVideo(e,t){return this._client.call("app.bsky.video.uploadVideo",t?.qp,e,t)}}r.AppBskyVideoNS=eZ;class eK{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bsky",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.bsky=new eW(e)}}r.ChatNS=eK;class eW{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"actor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"convo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moderation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.actor=new eX(e),this.convo=new eQ(e),this.moderation=new eY(e)}}r.ChatBskyNS=eW;class eX{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"declaration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.declaration=new eJ(e)}deleteAccount(e,t){return this._client.call("chat.bsky.actor.deleteAccount",t?.qp,e,t)}exportAccountData(e,t){return this._client.call("chat.bsky.actor.exportAccountData",e,void 0,t)}}r.ChatBskyActorNS=eX;class eJ{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"chat.bsky.actor.declaration",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"chat.bsky.actor.declaration",...e})).data}async create(e,t,r){let o="chat.bsky.actor.declaration";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,rkey:"self",...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="chat.bsky.actor.declaration";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo
21.deleteRecord",void 0,{collection:"chat.bsky.actor.declaration",...e},{headers:t})}}r.ChatBskyActorDeclarationRecord=eJ;class eQ{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}acceptConvo(e,t){return this._client.call("chat.bsky.convo.acceptConvo",t?.qp,e,t)}addReaction(e,t){return this._client.call("chat.bsky.convo.addReaction",t?.qp,e,t).catch(e=>{throw A.toKnownErr(e)})}deleteMessageForSelf(e,t){return this._client.call("chat.bsky.convo.deleteMessageForSelf",t?.qp,e,t)}getConvo(e,t){return this._client.call("chat.bsky.convo.getConvo",e,void 0,t)}getConvoAvailability(e,t){return this._client.call("chat.bsky.convo.getConvoAvailability",e,void 0,t)}getConvoForMembers(e,t){return this._client.call("chat.bsky.convo.getConvoForMembers",e,void 0,t)}getLog(e,t){return this._client.call("chat.bsky.convo.getLog",e,void 0,t)}getMessages(e,t){return this._client.call("chat.bsky.convo.getMessages",e,void 0,t)}leaveConvo(e,t){return this._client.call("chat.bsky.convo.leaveConvo",t?.qp,e,t)}listConvos(e,t){return this._client.call("chat.bsky.convo.listConvos",e,void 0,t)}muteConvo(e,t){return this._client.call("chat.bsky.convo.muteConvo",t?.qp,e,t)}removeReaction(e,t){return this._client.call("chat.bsky.convo.removeReaction",t?.qp,e,t).catch(e=>{throw S.toKnownErr(e)})}sendMessage(e,t){return this._client.call("chat.bsky.convo.sendMessage",t?.qp,e,t)}sendMessageBatch(e,t){return this._client.call("chat.bsky.convo.sendMessageBatch",t?.qp,e,t)}unmuteConvo(e,t){return this._client.call("chat.bsky.convo.unmuteConvo",t?.qp,e,t)}updateAllRead(e,t){return this._client.call("chat.bsky.convo.updateAllRead",t?.qp,e,t)}updateRead(e,t){return this._client.call("chat.bsky.convo.updateRead",t?.qp,e,t)}}r.ChatBskyConvoNS=eQ;class eY{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getActorMetadata(e,t){return this._client.call("chat.bsky.moderation.getActorMetadata",e,void 0,t)}getMessageContext(e,t){return this._client.call("chat.bsky.moderation.getMessageContext",e,void 0,t)}updateActorAccess(e,t){return this._client.call("chat.bsky.moderation.updateActorAccess",t?.qp,e,t)}}r.ChatBskyModerationNS=eY;class e0{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"atproto",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.atproto=new e1(e)}}r.ComNS=e0;class e1{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"admin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"identity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lexicon",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moderation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"repo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"server",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sync",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"temp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.admin=new e2(e),this.identity=new e3(e),this.label=new e9(e),this.lexicon=new e7(e),this.moderation=new e6(e),this.repo=new e8(e),this.server=new e4(e),this.sync=new te(e),this.temp=new tt(e)}}r.ComAtprotoNS=e1;class e2{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}deleteAccount(e,t){return this._client.call("com.atproto.admin.deleteAccount",t?.qp,e,t)}disableAccountInvites(e,t){return this._client.call("com.atproto.admin.disableAccountInvites",t?.qp,e,t)}disableInviteCodes(e,t){return this._client.call("com.atproto.admin.disableInviteCodes",t?.qp,e,t)}enableAccountInvites(e,t){return this._client.call("com.atproto.admin.enableAccountInvites",t?.qp,e,t)}getAccountInfo(e,t){return this._client.call("com.atproto.admin.getAccountInfo",e,void 0,t)}getAccountInfos(e,t){return this._client.call("com.atproto.admin.getAccountInfos",e,void 0,t)}getInviteCodes(e,t){return this._client.call("com.atproto.admin.getInviteCodes",e,void 0,t)}getSubjectStatus(e,t){return this._client.call("com.atproto.admin.getSubjectStatus",e,void 0,t)}searchAccounts(e,t){return this._client.call("com.atproto.admin.searchAccounts",e,void 0,t)}sendEmail(e,t){return this._client.call("com.atproto.admin.sendEmail",t?.qp,e,t)}updateAccountEmail(e,t){return this._client.call("com.atproto.admin.updateAccountEmail",t?.qp,e,t)}updateAccountHandle(e,t){return this._client.call("com.atproto.admin.updateAccountHandle",t?.qp,e,t)}updateAccountPassword(e,t){return this._client.call("com.atproto.admin.updateAccountPassword",t?.qp,e,t)}updateAccountSigningKey(e,t){return this._client.call("com.atproto.admin.updateAccountSigningKey",t?.qp,e,t)}updateSubjectStatus(e,t){return this._client.call("com.atproto.admin.updateSubjectStatus",t?.qp,e,t)}}r.ComAtprotoAdminNS=e2;class e3{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getRecommendedDidCredentials(e,t){return this._client.call("com.atproto.identity.getRecommendedDidCredentials",e,void 0,t)}refreshIdentity(e,t){return this._client.call("com.atproto.identity.refreshIdentity",t?.qp,e,t).catch(e=>{throw E.toKnownErr(e)})}requestPlcOperationSignature(e,t){return this._client.call("com.atproto.identity.requestPlcOperationSignature",t?.qp,e,t)}resolveDid(e,t){return this._client.call("com.atproto.identity.resolveDid",e,void 0,t).catch(e=>{throw _.toKnownErr(e)})}resolveHandle(e,t){return this._client.call("com.atproto.identity.resolveHandle",e,void 0,t).catch(e=>{throw C.toKnownErr(e)})}resolveIdentity(e,t){return this._client.call("com.atproto.identity.resolveIdentity",e,void 0,t).catch(e=>{throw R.toKnownErr(e)})}signPlcOperation(e,t){return this._client.call("com.atproto.identity.signPlcOperation",t?.qp,e,t)}submitPlcOperation(e,t){return this._client.call("com.atproto.identity.submitPlcOperation",t?.qp,e,t)}updateHandle(e,t){return this._client.call("com.atproto.identity.updateHandle",t?.qp,e,t)}}r.ComAtprotoIdentityNS=e3;class e9{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}queryLabels(e,t){return this._client.call("com.atproto.label.queryLabels",e,void 0,t)}}r.ComAtprotoLabelNS=e9;class e7{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.schema=new e5(e)}}r.ComAtprotoLexiconNS=e7;class e5{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}async list(e){return(await this._client.call("com.atproto.repo.listRecords",{collection:"com.atproto.lexicon.schema",...e})).data}async get(e){return(await this._client.call("com.atproto.repo.getRecord",{collection:"com.atproto.lexicon.schema",...e})).data}async create(e,t,r){let o="com.atproto.lexicon.schema";return(await this._client.call("com.atproto.repo.createRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async put(e,t,r){let o="com.atproto.lexicon.schema";return(await this._client.call("com.atproto.repo.putRecord",void 0,{collection:o,...e,record:{...t,$type:o}},{encoding:"application/json",headers:r})).data}async delete(e,t){await this._client.call("com.atproto.repo.deleteRecord",void 0,{collection:"com.atproto.lexicon.schema",...e},{headers:t})}}r.ComAtprotoLexiconSchemaRecord=e5;class e6{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}createReport(e,t){return this._client.call("com.atproto.moderation.createReport",t?.qp,e,t)}}r.ComAtprotoModerationNS=e6;class e8{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}applyWrites(e,t){return this._client.call("com.atproto.repo.applyWrites",t?.qp,e,t).catch(e=>{throw P.toKnownErr(e)})}createRecord(e,t){return this._client.call("com.atproto.repo.createRecord",t?.qp,e,t).catch(e=>{throw j.toKnownErr(e)})}deleteRecord(e,t){return this._client.call("com.atproto.repo.deleteRecord",t?.qp,e,t).catch(e=>{throw I.toKnownErr(e)})}describeRepo(e,t){return this._client.call("com.atproto.repo.describeRepo",e,void 0,t)}getRecord(e,t){return this._client.call("com.atproto.repo.getRecord",e,void 0,t).catch(e=>{throw T.toKnownErr(e)})}importRepo(e,t){return this._client.call("com.atproto.repo.importRepo",t?.qp,e,t)}listMissingBlobs(e,t){return this._client.call("com.atproto.repo.listMissingBlobs",e,void 0,t)}listRecords(e,t){return this._client.call("com.atproto.repo.listRecords",e,void 0,t)}putRecord(e,t){return this._client.call("com.atproto.repo.putRecord",t?.qp,e,t).catch(e=>{throw O.toKnownErr(e)})}uploadBlob(e,t){return this._client.call("com.atproto.repo.uploadBlob",t?.qp,e,t)}}r.ComAtprotoRepoNS=e8;class e4{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}activateAccount(e,t){return this._client.call("com.atproto.server.activateAccount",t?.qp,e,t)}checkAccountStatus(e,t){return this._client.call("com.atproto.server.checkAccountStatus",e,void 0,t)}confirmEmail(e,t){return this._client.call("com.atproto.server.confirmEmail",t?.qp,e,t).catch(e=>{throw D.toKnownErr(e)})}createAccount(e,t){return this._client.call("com.atproto.server.createAccount",t?.qp,e,t).catch(e=>{throw M.toKnownErr(e)})}createAppPassword(e,t){return this._client.call("com.atproto.server.createAppPassword",t?.qp,e,t).catch(e=>{throw L.toKnownErr(e)})}createInviteCode(e,t){return this._client.call("com.atproto.server.createInviteCode",t?.qp,e,t)}createInviteCodes(e,t){return this._client.call("com.atproto.server.createInviteCodes",t?.qp,e,t)}createSession(e,t){return this._client.call("com.atproto.server.createSession",t?.qp,e,t).catch(e=>{throw B.toKnownErr(e)})}deactivateAccount(e,t){return this._client.call("com.atproto.server.deactivateAccount",t?.qp,e,t)}deleteAccount(e,t){return this._client.call("com.atproto.server.deleteAccount",t?.qp,e,t).catch(e=>{throw z.toKnownErr(e)})}deleteSession(e,t){return this._client.call("com.atproto.server.deleteSession",t?.qp,e,t)}describeServer(e,t){return this._client.call("com.atproto.server.describeServer",e,void 0,t)}getAccountInviteCodes(e,t){return this._client.call("com.atproto.server.getAccountInviteCodes",e,void 0,t).catch(e=>{throw q.toKnownErr(e)})}getServiceAuth(e,t){return this._client.call("com.atproto.server.getServiceAuth",e,void 0,t).catch(e=>{throw V.toKnownErr(e)})}getSession(e,t){return this._client.call("com.atproto.server.getSession",e,void 0,t)}listAppPasswords(e,t){return this._client.call("com.atproto.server.listAppPasswords",e,void 0,t).catch(e=>{throw N.toKnownErr(e)})}refreshSession(e,t){return this._client.call("com.atproto.server.refreshSession",t?.qp,e,t).catch(e=>{throw U.toKnownErr(e)})}requestAccountDelete(e,t){return this._client.call("com.atproto.server.requestAccountDelete",t?.qp,e,t)}requestEmailConfirmation(e,t){return this._client.call("com.atproto.server.requestEmailConfirmation",t?.qp,e,t)}requestEmailUpdate(e,t){return this._client.call("com.atproto.server.requestEmailUpdate",t?.qp,e,t)}requestPasswordReset(e,t){return this._client.call("com.atproto.server.requestPasswordReset",t?.qp,e,t)}reserveSigningKey(e,t){return this._client.call("com.atproto.server.reserveSigningKey",t?.qp,e,t)}resetPassword(e,t){return this._client.call("com.atproto.server.resetPassword",t?.qp,e,t).catch(e=>{throw F.toKnownErr(e)})}revokeAppPassword(e,t){return this._client.call("com.atproto.server.revokeAppPassword",t?.qp,e,t)}updateEmail(e,t){return this._client.call("com.atproto.server.updateEmail",t?.qp,e,t).catch(e=>{throw $.toKnownErr(e)})}}r.ComAtprotoServerNS=e4;class te{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getBlob(e,t){return this._client.call("com.atproto.sync.getBlob",e,void 0,t).catch(e=>{throw G.toKnownErr(e)})}getBlocks(e,t){return this._client.call("com.atproto.sync.getBlocks",e,void 0,t).catch(e=>{throw H.toKnownErr(e)})}getCheckout(e,t){return this._client.call("com.atproto.sync.getCheckout",e,void 0,t)}getHead(e,t){return this._client.call("com.atproto.sync.getHead",e,void 0,t).catch(e=>{throw Z.toKnownErr(e)})}getHostStatus(e,t){return this._client.call("com.atproto.sync.getHostStatus",e,void 0,t).catch(e=>{throw K.toKnownErr(e)})}getLatestCommit(e,t){return this._client.call("com.atproto.sync.getLatestCommit",e,void 0,t).catch(e=>{throw W.toKnownErr(e)})}getRecord(e,t){return this._client.call("com.atproto.sync.getRecord",e,void 0,t).catch(e=>{throw X.toKnownErr(e)})}getRepo(e,t){return this._client.call("com.atproto.sync.getRepo",e,void 0,t).catch(e=>{throw J.toKnownErr(e)})}getRepoStatus(e,t){return this._client.call("com.atproto.sync.getRepoStatus",e,void 0,t).catch(e=>{throw Q.toKnownErr(e)})}listBlobs(e,t){return this._client.call("com.atproto.sync.listBlobs",e,void 0,t).catch(e=>{throw Y.toKnownErr(e)})}listHosts(e,t){return this._client.call("com.atproto.sync.listHosts",e,void 0,t)}listRepos(e,t){return this._client.call("com.atproto.sync.listRepos",e,void 0,t)}listReposByCollection(e,t){return this._client.call("com.atproto.sync.listReposByCollection",e,void 0,t)}notifyOfUpdate(e,t){return this._client.call("com.atproto.sync.notifyOfUpdate",t?.qp,e,t)}requestCrawl(e,t){return this._client.call("com.atproto.sync.requestCrawl",t?.qp,e,t).catch(e=>{throw ee.toKnownErr(e)})}}r.ComAtprotoSyncNS=te;class tt{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}addReservedHandle(e,t){return this._client.call("com.atproto.temp.addReservedHandle",t?.qp,e,t)}checkHandleAvailability(e,t){return this._client.call("com.atproto.temp.checkHandleAvailability",e,void 0,t).catch(e=>{throw et.toKnownErr(e)})}checkSignupQueue(e,t){return this._client.call("com.atproto.temp.checkSignupQueue",e,void 0,t)}dereferenceScope(e,t){return this._client.call("com.atproto.temp.dereferenceScope",e,void 0,t).catch(e=>{throw er.toKnownErr(e)})}fetchLabels(e,t){return this._client.call("com.atproto.temp.fetchLabels",e,void 0,t)}requestPhoneVerification(e,t){return this._client.call("com.atproto.temp.requestPhoneVerification",t?.qp,e,t)}revokeAccountCredentials(e,t){return this._client.call("com.atproto.temp.revokeAccountCredentials",t?.qp,e,t)}}r.ComAtprotoTempNS=tt;class tr{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ozone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.ozone=new to(e)}}r.ToolsNS=tr;class to{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"communication",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hosting",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moderation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"safelink",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"server",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"set",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"setting",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"team",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verific
21ation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e,this.communication=new ti(e),this.hosting=new tn(e),this.moderation=new ts(e),this.safelink=new ta(e),this.server=new tc(e),this.set=new tl(e),this.setting=new td(e),this.signature=new tp(e),this.team=new tu(e),this.verification=new tf(e)}}r.ToolsOzoneNS=to;class ti{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}createTemplate(e,t){return this._client.call("tools.ozone.communication.createTemplate",t?.qp,e,t).catch(e=>{throw eo.toKnownErr(e)})}deleteTemplate(e,t){return this._client.call("tools.ozone.communication.deleteTemplate",t?.qp,e,t)}listTemplates(e,t){return this._client.call("tools.ozone.communication.listTemplates",e,void 0,t)}updateTemplate(e,t){return this._client.call("tools.ozone.communication.updateTemplate",t?.qp,e,t).catch(e=>{throw ei.toKnownErr(e)})}}r.ToolsOzoneCommunicationNS=ti;class tn{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getAccountHistory(e,t){return this._client.call("tools.ozone.hosting.getAccountHistory",e,void 0,t)}}r.ToolsOzoneHostingNS=tn;class ts{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}emitEvent(e,t){return this._client.call("tools.ozone.moderation.emitEvent",t?.qp,e,t).catch(e=>{throw en.toKnownErr(e)})}getAccountTimeline(e,t){return this._client.call("tools.ozone.moderation.getAccountTimeline",e,void 0,t).catch(e=>{throw es.toKnownErr(e)})}getEvent(e,t){return this._client.call("tools.ozone.moderation.getEvent",e,void 0,t)}getRecord(e,t){return this._client.call("tools.ozone.moderation.getRecord",e,void 0,t).catch(e=>{throw ea.toKnownErr(e)})}getRecords(e,t){return this._client.call("tools.ozone.moderation.getRecords",e,void 0,t)}getRepo(e,t){return this._client.call("tools.ozone.moderation.getRepo",e,void 0,t).catch(e=>{throw ec.toKnownErr(e)})}getReporterStats(e,t){return this._client.call("tools.ozone.moderation.getReporterStats",e,void 0,t)}getRepos(e,t){return this._client.call("tools.ozone.moderation.getRepos",e,void 0,t)}getSubjects(e,t){return this._client.call("tools.ozone.moderation.getSubjects",e,void 0,t)}queryEvents(e,t){return this._client.call("tools.ozone.moderation.queryEvents",e,void 0,t)}queryStatuses(e,t){return this._client.call("tools.ozone.moderation.queryStatuses",e,void 0,t)}searchRepos(e,t){return this._client.call("tools.ozone.moderation.searchRepos",e,void 0,t)}}r.ToolsOzoneModerationNS=ts;class ta{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}addRule(e,t){return this._client.call("tools.ozone.safelink.addRule",t?.qp,e,t).catch(e=>{throw el.toKnownErr(e)})}queryEvents(e,t){return this._client.call("tools.ozone.safelink.queryEvents",t?.qp,e,t)}queryRules(e,t){return this._client.call("tools.ozone.safelink.queryRules",t?.qp,e,t)}removeRule(e,t){return this._client.call("tools.ozone.safelink.removeRule",t?.qp,e,t).catch(e=>{throw ed.toKnownErr(e)})}updateRule(e,t){return this._client.call("tools.ozone.safelink.updateRule",t?.qp,e,t).catch(e=>{throw ep.toKnownErr(e)})}}r.ToolsOzoneSafelinkNS=ta;class tc{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}getConfig(e,t){return this._client.call("tools.ozone.server.getConfig",e,void 0,t)}}r.ToolsOzoneServerNS=tc;class tl{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}addValues(e,t){return this._client.call("tools.ozone.set.addValues",t?.qp,e,t)}deleteSet(e,t){return this._client.call("tools.ozone.set.deleteSet",t?.qp,e,t).catch(e=>{throw eu.toKnownErr(e)})}deleteValues(e,t){return this._client.call("tools.ozone.set.deleteValues",t?.qp,e,t).catch(e=>{throw ef.toKnownErr(e)})}getValues(e,t){return this._client.call("tools.ozone.set.getValues",e,void 0,t).catch(e=>{throw eh.toKnownErr(e)})}querySets(e,t){return this._client.call("tools.ozone.set.querySets",e,void 0,t)}upsertSet(e,t){return this._client.call("tools.ozone.set.upsertSet",t?.qp,e,t)}}r.ToolsOzoneSetNS=tl;class td{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}listOptions(e,t){return this._client.call("tools.ozone.setting.listOptions",e,void 0,t)}removeOptions(e,t){return this._client.call("tools.ozone.setting.removeOptions",t?.qp,e,t)}upsertOption(e,t){return this._client.call("tools.ozone.setting.upsertOption",t?.qp,e,t)}}r.ToolsOzoneSettingNS=td;class tp{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}findCorrelation(e,t){return this._client.call("tools.ozone.signature.findCorrelation",e,void 0,t)}findRelatedAccounts(e,t){return this._client.call("tools.ozone.signature.findRelatedAccounts",e,void 0,t)}searchAccounts(e,t){return this._client.call("tools.ozone.signature.searchAccounts",e,void 0,t)}}r.ToolsOzoneSignatureNS=tp;class tu{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}addMember(e,t){return this._client.call("tools.ozone.team.addMember",t?.qp,e,t).catch(e=>{throw em.toKnownErr(e)})}deleteMember(e,t){return this._client.call("tools.ozone.team.deleteMember",t?.qp,e,t).catch(e=>{throw ey.toKnownErr(e)})}listMembers(e,t){return this._client.call("tools.ozone.team.listMembers",e,void 0,t)}updateMember(e,t){return this._client.call("tools.ozone.team.updateMember",t?.qp,e,t).catch(e=>{throw eg.toKnownErr(e)})}}r.ToolsOzoneTeamNS=tu;class tf{constructor(e){Object.defineProperty(this,"_client",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._client=e}grantVerifications(e,t){return this._client.call("tools.ozone.verification.grantVerifications",t?.qp,e,t)}listVerifications(e,t){return this._client.call("tools.ozone.verification.listVerifications",e,void 0,t)}revokeVerifications(e,t){return this._client.call("tools.ozone.verification.revokeVerifications",t?.qp,e,t)}}r.ToolsOzoneVerificationNS=tf},913993,(e,t,r)=>{t.exports=JSON.parse('["aaa","aarp","abb","abbott","abbvie","abc","able","abogado","abudhabi","ac","academy","accenture","accountant","accountants","aco","actor","ad","ads","adult","ae","aeg","aero","aetna","af","afl","africa","ag","agakhan","agency","ai","aig","airbus","airforce","airtel","akdn","al","alibaba","alipay","allfinanz","allstate","ally","alsace","alstom","am","amazon","americanexpress","americanfamily","amex","amfam","amica","amsterdam","analytics","android","anquan","anz","ao","aol","apartments","app","apple","aq","aquarelle","ar","arab","aramco","archi","army","arpa","art","arte","as","asda","asia","associates","at","athleta","attorney","au","auction","audi","audible","audio","auspost","author","auto","autos","aw","aws","ax","axa","az","azure","ba","baby","baidu","banamex","band","bank","bar","barcelona","barclaycard","barclays","barefoot","bargains","baseball","basketball","bauhaus","bayern","bb","bbc","bbt","bbva","bcg","bcn","bd","be","beats","beauty","beer","bentley","berlin","best","bestbuy","bet","bf","bg","bh","bharti","bi","bible","bid","bike","bing","bingo","bio","biz","bj","black","blackfriday","blockbuster","blog","bloomberg","blue","bm","bms","bmw","bn","bnpparibas","bo","boats","boehringer","bofa","bom","bond","boo","book","booking","bosch","bostik","boston","bot","boutique","box","br","bradesco","bridgestone","broadway","broker","brother","brussels","bs","bt","build","builders","business","buy","buzz","bv","bw","by","bz","bzh","ca","cab","cafe","cal","call","calvinklein","cam","camera","camp","canon","capetown","capital","capitalone","car","caravan","cards","care","career","careers","cars","casa","case","cash","casino","cat","catering","catholic","cba","cbn","cbre","cc","cd","center","ceo","cern","cf","cfa","cfd","cg","ch","chanel","channel","charity","chase","chat","cheap","chintai","christmas","chrome","church","ci","cipriani","circle","cisco","citadel","citi","citic","city","ck","cl","claims","cleaning","click","clinic","clinique","clothing","cloud","club","clubmed","cm","cn","co","coach","codes","coffee","college","cologne","com","commbank","community","company","compare","computer","comsec","condos","construction","consulting","contact","contractors","cooking","cool","coop","corsica","country","coupon","coupons","courses","cpa","cr","credit","creditcard","creditunion","cricket","crown","crs","cruise","cruises","cu","cuisinella","cv","cw","cx","cy","cymru","cyou","cz","dad","dance","data","date","dating","datsun","day","dclk","dds","de","deal","dealer","deals","degree","delivery","dell","deloitte","delta","democrat","dental","dentist","desi","design","dev","dhl","diamonds","diet","digital","direct","directory","discount","discover","dis
21h","diy","dj","dk","dm","dnp","do","docs","doctor","dog","domains","dot","download","drive","dtv","dubai","dunlop","dupont","durban","dvag","dvr","dz","earth","eat","ec","eco","edeka","edu","education","ee","eg","email","emerck","energy","engineer","engineering","enterprises","epson","equipment","er","ericsson","erni","es","esq","estate","et","eu","eurovision","eus","events","exchange","expert","exposed","express","extraspace","fage","fail","fairwinds","faith","family","fan","fans","farm","farmers","fashion","fast","fedex","feedback","ferrari","ferrero","fi","fidelity","fido","film","final","finance","financial","fire","firestone","firmdale","fish","fishing","fit","fitness","fj","fk","flickr","flights","flir","florist","flowers","fly","fm","fo","foo","food","football","ford","forex","forsale","forum","foundation","fox","fr","free","fresenius","frl","frogans","frontier","ftr","fujitsu","fun","fund","furniture","futbol","fyi","ga","gal","gallery","gallo","gallup","game","games","gap","garden","gay","gb","gbiz","gd","gdn","ge","gea","gent","genting","george","gf","gg","ggee","gh","gi","gift","gifts","gives","giving","gl","glass","gle","global","globo","gm","gmail","gmbh","gmo","gmx","gn","godaddy","gold","goldpoint","golf","goo","goodyear","goog","google","gop","got","gov","gp","gq","gr","grainger","graphics","gratis","green","gripe","grocery","group","gs","gt","gu","gucci","guge","guide","guitars","guru","gw","gy","hair","hamburg","hangout","haus","hbo","hdfc","hdfcbank","health","healthcare","help","helsinki","here","hermes","hiphop","hisamitsu","hitachi","hiv","hk","hkt","hm","hn","hockey","holdings","holiday","homedepot","homegoods","homes","homesense","honda","horse","hospital","host","hosting","hot","hotels","hotmail","house","how","hr","hsbc","ht","hu","hughes","hyatt","hyundai","ibm","icbc","ice","icu","id","ie","ieee","ifm","ikano","il","im","imamat","imdb","immo","immobilien","in","inc","industries","infiniti","info","ing","ink","institute","insurance","insure","int","international","intuit","investments","io","ipiranga","iq","ir","irish","is","ismaili","ist","istanbul","it","itau","itv","jaguar","java","jcb","je","jeep","jetzt","jewelry","jio","jll","jm","jmp","jnj","jo","jobs","joburg","jot","joy","jp","jpmorgan","jprs","juegos","juniper","kaufen","kddi","ke","kerryhotels","kerryproperties","kfh","kg","kh","ki","kia","kids","kim","kindle","kitchen","kiwi","km","kn","koeln","komatsu","kosher","kp","kpmg","kpn","kr","krd","kred","kuokgroup","kw","ky","kyoto","kz","la","lacaixa","lamborghini","lamer","lancaster","land","landrover","lanxess","lasalle","lat","latino","latrobe","law","lawyer","lb","lc","lds","lease","leclerc","lefrak","legal","lego","lexus","lgbt","li","lidl","life","lifeinsurance","lifestyle","lighting","like","lilly","limited","limo","lincoln","link","live","living","lk","llc","llp","loan","loans","locker","locus","lol","london","lotte","lotto","love","lpl","lplfinancial","lr","ls","lt","ltd","ltda","lu","lundbeck","luxe","luxury","lv","ly","ma","madrid","maif","maison","makeup","man","management","mango","map","market","marketing","markets","marriott","marshalls","mattel","mba","mc","mckinsey","md","me","med","media","meet","melbourne","meme","memorial","men","menu","merckmsd","mg","mh","miami","microsoft","mil","mini","mint","mit","mitsubishi","mk","ml","mlb","mls","mm","mma","mn","mo","mobi","mobile","moda","moe","moi","mom","monash","money","monster","mormon","mortgage","moscow","moto","motorcycles","mov","movie","mp","mq","mr","ms","msd","mt","mtn","mtr","mu","museum","music","mv","mw","mx","my","mz","na","nab","nagoya","name","navy","nba","nc","ne","nec","net","netbank","netflix","network","neustar","new","news","next","nextdirect","nexus","nf","nfl","ng","ngo","nhk","ni","nico","nike","nikon","ninja","nissan","nissay","nl","no","nokia","norton","now","nowruz","nowtv","np","nr","nra","nrw","ntt","nu","nyc","nz","obi","observer","office","okinawa","olayan","olayangroup","ollo","om","omega","one","ong","onl","online","ooo","open","oracle","orange","org","organic","origins","osaka","otsuka","ott","ovh","pa","page","panasonic","paris","pars","partners","parts","party","pay","pccw","pe","pet","pf","pfizer","pg","ph","pharmacy","phd","philips","phone","photo","photography","photos","physio","pics","pictet","pictures","pid","pin","ping","pink","pioneer","pizza","pk","pl","place","play","playstation","plumbing","plus","pm","pn","pnc","pohl","poker","politie","porn","post","pr","pramerica","praxi","press","prime","pro","prod","productions","prof","progressive","promo","properties","property","protection","pru","prudential","ps","pt","pub","pw","pwc","py","qa","qpon","quebec","quest","racing","radio","re","read","realestate","realtor","realty","recipes","red","redstone","redumbrella","rehab","reise","reisen","reit","reliance","ren","rent","rentals","repair","report","republican","rest","restaurant","review","reviews","rexroth","rich","richardli","ricoh","ril","rio","rip","ro","rocks","rodeo","rogers","room","rs","rsvp","ru","rugby","ruhr","run","rw","rwe","ryukyu","sa","saarland","safe","safety","sakura","sale","salon","samsclub","samsung","sandvik","sandvikcoromant","sanofi","sap","sarl","sas","
21save","saxo","sb","sbi","sbs","sc","scb","schaeffler","schmidt","scholarships","school","schule","schwarz","science","scot","sd","se","search","seat","secure","security","seek","select","sener","services","seven","sew","sex","sexy","sfr","sg","sh","shangrila","sharp","shell","shia","shiksha","shoes","shop","shopping","shouji","show","si","silk","sina","singles","site","sj","sk","ski","skin","sky","skype","sl","sling","sm","smart","smile","sn","sncf","so","soccer","social","softbank","software","sohu","solar","solutions","song","sony","soy","spa","space","sport","spot","sr","srl","ss","st","stada","staples","star","statebank","statefarm","stc","stcgroup","stockholm","storage","store","stream","studio","study","style","su","sucks","supplies","supply","support","surf","surgery","suzuki","sv","swatch","swiss","sx","sy","sydney","systems","sz","tab","taipei","talk","taobao","target","tatamotors","tatar","tattoo","tax","taxi","tc","tci","td","tdk","team","tech","technology","tel","temasek","tennis","teva","tf","tg","th","thd","theater","theatre","tiaa","tickets","tienda","tips","tires","tirol","tj","tjmaxx","tjx","tk","tkmaxx","tl","tm","tmall","tn","to","today","tokyo","tools","top","toray","toshiba","total","tours","town","toyota","toys","tr","trade","trading","training","travel","travelers","travelersinsurance","trust","trv","tt","tube","tui","tunes","tushu","tv","tvs","tw","tz","ua","ubank","ubs","ug","uk","unicom","university","uno","uol","ups","us","uy","uz","va","vacations","vana","vanguard","vc","ve","vegas","ventures","verisign","vermögensberater","vermögensberatung","versicherung","vet","vg","vi","viajes","video","vig","viking","villas","vin","vip","virgin","visa","vision","viva","vivo","vlaanderen","vn","vodka","volvo","vote","voting","voto","voyage","vu","wales","walmart","walter","wang","wanggou","watch","watches","weather","weatherchannel","webcam","weber","website","wed","wedding","weibo","weir","wf","whoswho","wien","wiki","williamhill","win","windows","wine","winners","wme","wolterskluwer","woodside","work","works","world","wow","ws","wtc","wtf","xbox","xerox","xihuan","xin","xxx","xyz","yachts","yahoo","yamaxun","yandex","ye","yodobashi","yoga","yokohama","you","youtube","yt","yun","za","zappos","zara","zero","zip","zm","zone","zuerich","zw","ελ","εÏ
","бг","бел","деÑи","еÑ","каÑолик","ком","мкд","мон","моÑква","онлайн","оÑг","ÑÑÑ","ÑÑ","ÑайÑ","ÑÑб","ÑкÑ","Òаз","Õ°Õ¡Õµ","×שר××","×§××","Ø§Ø¨ÙØ¸Ø¨Ù","اراÙ
ÙÙ","Ø§ÙØ§Ø±Ø¯Ù","Ø§ÙØ¨ØØ±ÙÙ","Ø§ÙØ¬Ø²Ø§Ø¦Ø±","Ø§ÙØ³Ø¹ÙØ¯ÙØ©","Ø§ÙØ¹ÙÙØ§Ù","اÙÙ
غرب","اÙ
ارات","Ø§ÛØ±Ø§Ù","بارت","بازار","Ø¨ÙØªÙ","بھارت","تÙÙØ³","Ø³ÙØ¯Ø§Ù","Ø³ÙØ±ÙØ©","Ø´Ø¨ÙØ©","عراÙ","عرب","عÙ
اÙ","ÙÙØ³Ø·ÙÙ","ÙØ·Ø±","ÙØ§Ø«ÙÙÙÙ","ÙÙÙ
","Ù
صر","Ù
ÙÙØ³Ùا","Ù
ÙØ±ÙتاÙÙØ§","Ù
ÙÙØ¹","ÙÙ
راÙ","پاکستاÙ","ÚØ§Ø±Øª","à¤à¥à¤®","नà¥à¤","à¤à¤¾à¤°à¤¤","à¤à¤¾à¤°à¤¤à¤®à¥","à¤à¤¾à¤°à¥à¤¤","सà¤à¤à¤ न","বাà¦à¦²à¦¾","à¦à¦¾à¦°à¦¤","à¦à¦¾à§°à¦¤","à¨à¨¾à¨°à¨¤","àªàª¾àª°àª¤","à¬à¬¾à¬°à¬¤","à®à®¨à¯à®¤à®¿à®¯à®¾","à®à®²à®à¯à®à¯","à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯","à°à°¾à°°à°¤à±","à²à²¾à²°à²¤","à´à´¾à´°à´¤à´","à¶½à¶à¶à·","à¸à¸à¸¡","à¹à¸à¸¢","ລາວ","áá","ã¿ããª","ã¢ãã¾ã³","ã¯ã©ã¦ã","ã°ã¼ã°ã«","ã³ã ","ã¹ãã¢","ã»ã¼ã«","ãã¡ãã·ã§ã³","ãã¤ã³ã","ä¸ç","ä¸ä¿¡","ä¸å½","ä¸å","䏿ç½","äºé©¬é","ä¼ä¸","ä½å±±","ä¿¡æ¯","å¥åº·","å
«å¦","å
¬å¸","å
¬ç","å°æ¹¾","å°ç£","åå","ååº","åæ ","åé","åé大é
åº","å¨çº¿","大æ¿","天主æ","娱ä¹","å®¶é»","广ä¸","å¾®å","æ
å","æç±ä½ ","ææº","æè","æ¿å¡","æ¿åº","æ°å å¡","æ°é»","æ¶å°","æ¸ç±","æºæ","淡马é¡","游æ","æ¾³é","ç¹ç","ç§»å¨","ç»ç»æºæ","ç½å","ç½åº","ç½ç«","ç½ç»","èé","è°·æ","è´ç©","é販","éå¢","é»è¨çç§","é£å©æµ¦","é£å","é¤å
","馿 ¼éæ","馿¸¯","ë·ë·","ë·ì»´","ì¼ì±","íêµ"]')},93565,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.TAG_REGEX=r.TRAILING_PUNCTUATION_REGEX=r.URL_REGEX=r.MENTION_REGEX=void 0,r.MENTION_REGEX=/(^|\s|\()(@)([a-zA-Z0-9.-]+)(\b)/g,r.URL_REGEX=/(^|\s|\()((https?:\/\/[\S]+)|((?<domain>[a-z][a-z0-9]*(\.[a-z0-9]+)+)[\S]*))/gim,r.TRAILING_PUNCTUATION_REGEX=/\p{P}+$/gu,r.TAG_REGEX=/(^|\s)[#ï¼]((?!\ufe0f)[^\s\u00AD\u2060\u200A\u200B\u200C\u200D\u20e2]*[^\d\s\p{P}\u00AD\u2060\u200A\u200B\u200C\u200D\u20e2]+[^\s\u00AD\u2060\u200A\u200B\u200C\u200D\u20e2]*)?/gu},512991,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.detectFacets=function(e){let t,r=[];{let o=n.MENTION_REGEX;for(;t=o.exec(e.utf16);){if(!s(t[3])&&!t[3].endsWith(".test"))continue;let o=e.utf16.indexOf(t[3],t.index)-1;r.push({$type:"app.bsky.richtext.facet",index:{byteStart:e.utf16IndexToUtf8Index(o),byteEnd:e.utf16IndexToUtf8Index(o+t[3].length+1)},features:[{$type:"app.bsky.richtext.facet#mention",did:t[3]}]})}}{let o=n.URL_REGEX;for(;t=o.exec(e.utf16);){let o=t[2];if(!o.startsWith("http")){let e=t.groups?.domain;if(!e||!s(e))continue;o=`https://${o}`}let i=e.utf16.indexOf(t[2],t.index),n={start:i,end:i+t[2].length};/[.,;:!?]$/.test(o)&&(o=o.slice(0,-1),n.end--),/[)]$/.test(o)&&!o.includes("(")&&(o=o.slice(0,-1),n.end--),r.push({index:{byteStart:e.utf16IndexToUtf8Index(n.start),byteEnd:e.utf16IndexToUtf8Index(n.end)},features:[{$type:"app.bsky.richtext.facet#link",uri:o}]})}}{let o=n.TAG_REGEX;for(;t=o.exec(e.utf16);){let o=t[1],i=t[2];if(!i||0===(i=i.trim().replace(n.TRAILING_PUNCTUATION_REGEX,"")).length||i.length>64)continue;let s=t.index+o.length;r.push({index:{byteStart:e.utf16IndexToUtf8Index(s),byteEnd:e.utf16IndexToUtf8Index(s+1+i.length)},features:[{$type:"app.bsky.richtext.facet#tag",tag:i}]})}}return r.length>0?r:void 0};let i=o(e.r(913993)),n=e.r(93565);function s(e){return!!i.default.find(t=>{let r=e.lastIndexOf(t);return -1!==r&&"."===e.charAt(r-1)&&r===e.length-t.length})}},850058,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeString=void 0;let o=e.r(751037),i=new TextEncoder,n=new TextDecoder;r.UnicodeString=class{constructor(e){Object.defineProperty(this,"utf16",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"utf8",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_graphemeLen",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.utf16=e,this.utf8=i.encode(e)}get length(){return this.utf8.byteLength}get graphemeLength(){return this._graphemeLen||(this._graphemeLen=(0,o.graphemeLen)(this.utf16)),this._graphemeLen}slice(e,t){return n.decode(this.utf8.slice(e,t))}utf16IndexToUtf8Index(e){return i.encode(this.utf16.slice(0,e)).byteLength}toString(){return this.utf16}}},577916,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sanitizeRichText=function(e,t){return t.cleanNewlines&&(e=function(e,t){let r=(e=e.clone()).unicodeText.utf16.match(t);for(;r&&void 0!==r.index;){let i=e.unicodeText,n=e.unicodeText.utf16IndexToUtf8Index(r.index),s=n+new o.UnicodeString(r[0]).length;if(e.delete(n,s),e.unicodeText.utf16===i.utf16)break;e.insert(n,"\n\n"),r=e.unicodeText.utf16.match(t)}return e}(e,i)),e};let o=e.r(850058),i=/[\r\n]([\u00AD\u2060\u200D\u200C\u200B\s]*[\r\n]){2,}/},540474,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RichText=r.RichTextSegment=void 0;let o=e.r(450307),i=e.r(512991),n=e.r(577916),s=e.r(850058);class a{constructor(e,t){Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"facet",{enumerable:!0,configurable:!0,writable:!0,value:t})}get link(){return this.facet?.features.find(o.AppBskyRichtextFacet.isLink)}isLink(){return!!this.link}get mention(){return this.facet?.features.find(o.AppBskyRichtextFacet.isMention)}isMention(){return!!this.mention}get tag(){return this.facet?.features.find(o.AppBskyRichtextFacet.isTag)}isTag(){return!!this.tag}}r.RichTextSegment=a,r.RichText=class e{constructor(e,t){Object.defineProperty(this,"unicodeText",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"facets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.unicodeText=new s.UnicodeString(e.text),this.facets=e.facets,!this.facets?.length&&e.entities?.length&&(this.facets=function(e,t){let r=[];for(let o of t)"link"===o.type?r.push({$type:"app.bsky.richtext.facet",index:{byteStart:e.utf16IndexToUtf8Index(o.index.start),byteEnd:e.utf16IndexToUtf8Index(o.index.end)},features:[{$type:"app.bsky.richtext.facet#link",uri:o.value}]}):"mention"===o.type&&r.push({$type:"app.bsky.richtext.facet",index:{byteStart:e.utf16IndexToUtf8Index(o.index.start),byteEnd:e.utf16IndexToUtf8Index(o.index.end)},features:[{$type:"app.bsky.richtext.facet#mention",did:o.value}]});return r}(this.unicodeText,e.entities)),this.facets&&(this.facets=this.facets.filter(l).sort(c)),t?.cleanNewlines&&(0,n.sanitizeRichText)(this,{cleanNewlines:!0}).copyInto(this)}get text(){return this.unicodeText.toString()}get length(){return this.unicodeText.length}get graphemeLength(){return this.unicodeText.graphemeLength}clone(){return new e({text:this.unicodeText.utf16,facets:d(this.facets)})}copyInto(e){e.unicodeText=this.unicodeText,e.facets=d(this.facets)}*segments(){let e=this.facets||[];if(!e.length)return void(yield new a(this.unicodeText.utf16));let t=0,r=0;do{let o=e[r];if(t<o.index.byteStart)yield new a(this.unicodeText.slice(t,o.index.byteStart));else if(t>o.index.byteStart){r++;continue}if(o.index.byteStart<o.index.byteEnd){let e=this.unicodeText.slice(o.index.byteStart,o.index.byteEnd);e.trim()?yield new a(e,o):yield new a(e)}t=o.index.byteEnd,r++}while(r<e.length)t<this.unicodeText.length&&(yield new a(this.unicodeText.slice(t,this.unicodeText.length)))}insert(e,t){if(this.unicodeText=new s.UnicodeString(this.unicodeText.slice(0,e)+t+this.unicodeText.slice(e)),!this.facets?.length)return this;let r=t.length;for(let t of this.facets)e<=t.index.byteStart?(t.index.byteStart+=r,t.index.byteEnd+=r):e>=t.index.byteStart&&e<t.index.byteEnd&&(t.index.byteEnd+=r);return this}delete(e,t){if(this.unicodeText=new s.UnicodeString(this.unicodeText.slice(0,e)+this.unicodeText.slice(t)),!this.facets?.length)return this;let r=t-e;for(let o of this.facets)e<=o.index.byteStart&&t>=o.index.byteEnd?(o.index.byteStart=0,o.index.byteEnd=0):e>o.index.byteEnd||(e>o.index.byteStart&&e<=o.index.byteEnd&&t>o.index.byteEnd?o.index.byteEnd=e:e>=o.index.byteStart&&t<=o.index.byteEnd?o.index.byteEnd-=r:e<o.index.byteStart&&t>=o.index.byteStart&&t<=o.index.byteEnd?(o.index.byteStart=e,o.index.byteEnd-=r):t<o.index.byteStart&&(o.index.byteStart-=r,o.index.byteEnd-=r));return this.facets=this.facets.filter(e=>e.index.byteStart<e.index.byteEnd),this}async detectFacets(e){if(this.facets=(0,i.detectFacets)(this.unicodeText),this.facets){let t=[];for(let r of this.facets)for(let i of r.features)o.AppBskyRichtextFacet.isMention(i)&&t.push(e.com.atproto.identity.resolveHandle({handle:i.did}).then(e=>e?.data.did).catch(e=>void 0).then(e=>{i.did=e||""}));await Promise.allSettled(t),this.facets.sort(c)}}detectFacetsWithoutResolution(){this.facets=(0,i.detectFacets)(this.unicodeText),this.facets&&this.facets.sort(c)}};let c=(e,t)=>e.index.byteStart-t.index.byteStart,l=e=>e.index.byteStart<=e.index.byteEnd;function d(e){return void 0===e?e:JSON.parse(JSON.stringify(e))}},985594,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.LABELS=r.DEFAULT_LABEL_SETTINGS=void 0,r.DEFAULT_LABEL_SETTINGS={porn:"hide",sexual:"warn",nudity:"ignore","graphic-media":"warn"},r.LABELS={"!hide":{identifier:"!hide",configurable:!1,defaultSetting:"hide",flags:["no-override","no-self"],severity:"alert",blurs:"content",behaviors:{account:{profileList:"blur",profileView:"blur",avatar:"blur",banner:"blur",displayName:"blur",contentList:"blur",contentView:"blur"},profile:{avatar:"blur",banner:"blur",displayName:"blur"},content:{contentList:"blur",contentView:"blur"}},locales:[]},"!warn":{identifier:"!warn",configurable:!1,defaultSetting:"warn",flags:["no-self"],severity:"none",blurs:"content",behaviors:{account:{profileList:"blur",profileView:"blur",avatar:"blur",banner:"blur",contentList:"blur",contentView:"blur"},profile:{avatar:"blur",banner:"blur",displayName:"blur"},content:{contentList:"blur",contentView:"blur"}},locales:[]},"!no-unauthenticated":{identifier:"!no-unauthenticated",configurable:!1,defaultSetting:"hide",flags:["no-override","unauthed"],severity:"none",blurs:"content",behaviors:{account:{profileList:"blur",profileView:"blur",avatar:"blur",banner:"blur",displayName:"blur",contentList:"blur",contentView:"blur"},profile:{avatar:"blur",banner:"blur",displayName:"blur"},content:{contentList:"blur",contentView:"blur"}},locales:[]},porn:{identifier:"porn",configurable:!0,defaultSetting:"hide",flags:["adult"],severity:"none",blurs:"media",behaviors:{account:{avatar:"blur",banner:"blur"},profile:{avatar:"blur",banner:"blur"},content:{contentMedia:"blur"}},locales:[]},sexual:{identifier:"sexual",configurable:!0,defaultSetting:"warn",flags:["adult"],severity:"none",blurs:"media",behaviors:{account:{avatar:"blur",banner:"blur"},profile:{avatar:"blur",banner:"blur"},content:{contentMedia:"blur"}},locales:[]},nudity:{identifier:"nudity",configurable:!0,defaultSetting:"ignore",flags:[],severity:"none",blurs:"media",behaviors:{account:{avatar:"blur",banner:"blur"},profile:{avatar:"blur",banner:"blur"},content:{contentMedia:"blur"}},locales:[]},"graphic-media":{identifier:"graphic-media",flags:["adult"],configurable:!0,defaultSetting:"warn",severity:"none",blurs:"media",behaviors:{account:{avatar:"blur",banner:"blur"},profile:{avatar:"blur",banner:"blur"},content:{contentMedia:"blur"}},locales:[]},gore:{identifier:"gore",flags:["adult"],configurable:!0,defaultSetting:"warn",severity:"none",blurs:"media",behaviors:{account:{avatar:"blur",banner:"blur"},profile:{avatar:"blur",banner:"blur"},content:{contentMedia:"blur"}},locales:[]}}},49751,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NOOP_BEHAVIOR=r.HIDE_BEHAVIOR=r.MUTEWORD_BEHAVIOR=r.MUTE_BEHAVIOR=r.BLOCK_BEHAVIOR=r.CUSTOM_LABEL_VALUE_RE=void 0,r.CUSTOM_LABEL_VALUE_RE=/^[a-z-]+$/,r.BLOCK_BEHAVIOR={profileList:"blur",profileView:"alert",avatar:"blur",banner:"blur",contentList:"blur",contentView:"blur"},r.MUTE_BEHAVIOR={profileList:"inform",profileView:"alert",contentList:"blur",contentView:"inform"},r.MUTEWORD_BEHAVIOR={contentList:"blur",contentView:"blur"},r.HIDE_BEHAVIOR={contentList:"blur",contentView:"blur"},r.NOOP_BEHAVIOR={}},389081,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ModerationUI=void 0,r.ModerationUI=class{constructor(){Object.defineProperty(this,"noOverride",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"filters",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blurs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"alerts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"informs",{enumerable:!0,configurable:!0,writable:!0,value:[]})}get filter(){return 0!==this.filters.length}get blur(){return 0!==this.blurs.length}get alert(){return 0!==this.alerts.length}get inform(){return 0!==this.informs.length}}},802757,(e,t,r)=>{"use strict";var o,i;Object.defineProperty(r,"__esModule",{value:!0}),r.ModerationDecision=void 0;let n=e.r(985594),s=e.r(49751),a=e.r(389081);function c(e,t){return e.priority-t.priority}(i=o||(o={}))[i.High=0]="High",i[i.Medium=1]="Medium",i[i.Low=2]="Low",r.ModerationDecision=class e{constructor(){Object.defineProperty(this,"did",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"isMe",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"causes",{enumerable:!0,configurable:!0,writable:!0,value:[]})}static merge(...t){let r=t.filter(e=>null!=e),o=new e;return r[0]&&(o.did=r[0].did,o.isMe=r[0].isMe),o.causes=r.flatMap(e=>e.causes),o}downgrade(){for(let e of this.causes)e.downgraded=!0;return this}get blocked(){return!!this.blockCause}get muted(){return!!this.muteCause}get blockCause(){return this.causes.find(e=>"blocking"===e.type||"blocked-by"===e.type||"block-other"===e.type)}get muteCause(){return this.causes.find(e=>"muted"===e.type)}get labelCauses(){return this.causes.filter(e=>"label"===e.type)}ui(e){let t=new a.ModerationUI;for(let r of this.causes)if("blocking"===r.type||"blocked-by"===r.type||"block-other"===r.type){if(this.isMe)continue;("profileList"===e||"contentList"===e)&&t.filters.push(r),r.downgraded||("blur"===s.BLOCK_BEHAVIOR[e]?(t.noOverride=!0,t.blurs.push(r)):"alert"===s.BLOCK_BEHAVIOR[e]?t.alerts.push(r):"inform"===s.BLOCK_BEHAVIOR[e]&&t.informs.push(r))}else if("muted"===r.type){if(this.isMe)continue;("profileList"===e||"contentList"===e)&&t.filters.push(r),r.downgraded||("blur"===s.MUTE_BEHAVIOR[e]?t.blurs.push(r):"alert"===s.MUTE_BEHAVIOR[e]?t.alerts.push(r):"inform"===s.MUTE_BEHAVIOR[e]&&t.informs.push(r))}else if("mute-word"===r.type){if(this.isMe)continue;"contentList"===e&&t.filters.push(r),r.downgraded||("blur"===s.MUTEWORD_BEHAVIOR[e]?t.blurs.push(r):"alert"===s.MUTEWORD_BEHAVIOR[e]?t.alerts.push(r):"inform"===s.MUTEWORD_BEHAVIOR[e]&&t.informs.push(r))}else"hidden"===r.type?(("profileList"===e||"contentList"===e)&&t.filters.push(r),r.downgraded||("blur"===s.HIDE_BEHAVIOR[e]?t.blurs.push(r):"alert"===s.HIDE_BEHAVIOR[e]?t.alerts.push(r):"inform"===s.HIDE_BEHAVIOR[e]&&t.informs.push(r))):"label"===r.type&&("profileList"===e&&"account"===r.target?"hide"!==r.setting||this.isMe||t.filters.push(r):"contentList"!==e||"account"!==r.target&&"content"!==r.target||"hide"!==r.setting||this.isMe||t.filters.push(r),r.downgraded||("blur"===r.behavior[e]?(t.blurs.push(r),r.noOverride&&!this.isMe&&(t.noOverride=!0)):"alert"===r.behavior[e]?t.alerts.push(r):"inform"===r.behavior[e]&&t.informs.push(r)));return t.filters.sort(c),t.blurs.sort(c),t}setDid(e){this.did=e}setIsMe(e){this.isMe=e}addHidden(e){e&&this.causes.push({type:"hidden",source:{type:"user"},priority:6})}addMutedWord(e){e?.length&&this.causes.push({type:"mute-word",source:{type:"user"},priority:6,matches:e})}
21addBlocking(e){e&&this.causes.push({type:"blocking",source:{type:"user"},priority:3})}addBlockingByList(e){e&&this.causes.push({type:"blocking",source:{type:"list",list:e},priority:3})}addBlockedBy(e){e&&this.causes.push({type:"blocked-by",source:{type:"user"},priority:4})}addBlockOther(e){e&&this.causes.push({type:"block-other",source:{type:"user"},priority:4})}addLabel(e,t,r){var i;let a,c=s.CUSTOM_LABEL_VALUE_RE.test(t.val)&&r.labelDefs?.[t.src]?.find(e=>e.identifier===t.val)||n.LABELS[t.val];if(!c)return;let l=t.src===this.did,d=l?void 0:r.prefs.labelers.find(e=>e.did===t.src);if(!l&&!d||l&&c.flags.includes("no-self"))return;let p=c.defaultSetting||"ignore";if(c.configurable?c.flags.includes("adult")&&!r.prefs.adultContentEnabled?p="hide":d?.labels[c.identifier]?p=d?.labels[c.identifier]:r.prefs.labels[c.identifier]&&(p=r.prefs.labels[c.identifier]):p=c.defaultSetting||"hide","ignore"===p||c.flags.includes("unauthed")&&r.userDid)return;let u=(i=c.behaviors[e])?"blur"===i.profileView||"blur"===i.contentView?o.High:"blur"===i.contentList||"blur"===i.contentMedia?o.Medium:o.Low:o.Low;a=c.flags.includes("no-override")||c.flags.includes("adult")&&!r.prefs.adultContentEnabled?1:"hide"===p?2:u===o.High?5:u===o.Medium?7:8;let f=!1;c.flags.includes("no-override")?f=!0:c.flags.includes("adult")&&!r.prefs.adultContentEnabled&&(f=!0),this.causes.push({type:"label",source:l||!d?{type:"user"}:{type:"labeler",did:d.did},label:t,labelDef:c,target:e,setting:p,behavior:c.behaviors[e]||s.NOOP_BEHAVIOR,noOverride:f,priority:a})}addMuted(e){e&&this.causes.push({type:"muted",source:{type:"user"},priority:6})}addMutedByList(e){e&&this.causes.push({type:"muted",source:{type:"list",list:e},priority:6})}}},965414,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decideAccount=function(e,t){let r=new o.ModerationDecision;for(let o of(r.setDid(e.did),r.setIsMe(e.did===t.userDid),e.viewer?.muted&&(e.viewer?.mutedByList?r.addMutedByList(e.viewer?.mutedByList):r.addMuted(e.viewer?.muted)),e.viewer?.blocking&&(e.viewer?.blockingByList?r.addBlockingByList(e.viewer?.blockingByList):r.addBlocking(e.viewer?.blocking)),r.addBlockedBy(e.viewer?.blockedBy),i(e.labels)))r.addLabel("account",o,t);return r},r.filterAccountLabels=i;let o=e.r(802757);function i(e){return e?e.filter(e=>!e.uri.endsWith("/app.bsky.actor.profile/self")||"!no-unauthenticated"===e.val):[]}},676841,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decideProfile=function(e,t){let r=new o.ModerationDecision;for(let o of(r.setDid(e.did),r.setIsMe(e.did===t.userDid),i(e.labels)))r.addLabel("profile",o,t);return r},r.filterProfileLabels=i;let o=e.r(802757);function i(e){return e?e.filter(e=>e.uri.endsWith("/app.bsky.actor.profile/self")):[]}},99918,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decideFeedGenerator=function(e,t){let r=new o.ModerationDecision;if(r.setDid(e.creator.did),r.setIsMe(e.creator.did===t.userDid),e.labels?.length)for(let o of e.labels)r.addLabel("content",o,t);return o.ModerationDecision.merge(r,(0,i.decideAccount)(e.creator,t),(0,n.decideProfile)(e.creator,t))};let o=e.r(802757),i=e.r(965414),n=e.r(676841)},868047,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decideNotification=function(e,t){let r=new o.ModerationDecision;if(r.setDid(e.author.did),r.setIsMe(e.author.did===t.userDid),e.labels?.length)for(let o of e.labels)r.addLabel("content",o,t);return o.ModerationDecision.merge(r,(0,i.decideAccount)(e.author,t),(0,n.decideProfile)(e.author,t))};let o=e.r(802757),i=e.r(965414),n=e.r(676841)},856618,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.matchMuteWords=a,r.hasMutedWord=function(e){return!!a(e)};let o=e.r(450307),i=/(?:^\p{P}+|\p{P}+$)/gu,n=/[\s\n\t\r\f\v]+?/g,s=["ja","zh","ko","th","vi"];function a({mutedWords:e,text:t,facets:r,outlineTags:c,languages:l,actor:d}){let p=s.includes(l?.[0]||""),u=[].concat(c||[]).concat((r||[]).flatMap(e=>e.features.filter(o.AppBskyRichtextFacet.isTag).map(e=>e.tag))).map(e=>e.toLowerCase()),f=[];t:for(let r of e){let e=r.value.toLowerCase(),o=t.toLowerCase();if(r.expiresAt&&r.expiresAt<new Date().toISOString()||"exclude-following"===r.actorTarget&&d?.viewer?.following)continue;if(u.includes(e)){f.push({word:r,predicate:r.value});continue}if(r.targets.includes("content")){if((1===e.length||p)&&o.includes(e)){f.push({word:r,predicate:r.value});continue}if(!(e.length>
21o.length)){if(e===o||/(?:\s|\p{P})+?/u.test(e)&&o.includes(e)){f.push({word:r,predicate:r.value});continue}for(let t of o.split(n)){if(t===e){f.push({word:r,predicate:t});continue t}let o=t.replace(i,"");if(e===o){f.push({word:r,predicate:t});continue t}if(!(e.length>o.length)&&/\p{P}+/u.test(o)){if(/[/]+/.test(o))continue t;let i=o.replace(/\p{P}+/gu," ");if(i===e||i.replace(/\s/gu,"")===e){f.push({word:r,predicate:t});continue t}for(let i of o.split(/\p{P}+/u))if(i===e){f.push({word:r,predicate:t});continue t}}}}}}return f.length?f:void 0}},92315,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decidePost=function(e,t){return i.ModerationDecision.merge(function(e,t){var r,s;let a=new i.ModerationDecision;if(a.setDid(e.author.did),a.setIsMe(e.author.did===t.userDid),e.labels?.length)for(let r of e.labels)a.addLabel("content",r,t);return a.addHidden((r=e,s=t.prefs.hiddenPosts,!!s?.length&&(!!(s.includes(r.uri)||r.embed&&(o.AppBskyEmbedRecord.isView(r.embed)&&o.AppBskyEmbedRecord.isViewRecord(r.embed.record)&&s.includes(r.embed.record.uri)||o.AppBskyEmbedRecordWithMedia.isView(r.embed)&&o.AppBskyEmbedRecord.isViewRecord(r.embed.record.record)&&s.includes(r.embed.record.record.uri)))||!1))),a.isMe||a.addMutedWord(function(e,t){if(!t?.length)return;let r=e.author;if(o.AppBskyFeedPost.isRecord(e.record)){let i=e.record,s=(0,n.matchMuteWords)({mutedWords:t,text:i.text,facets:i.facets,outlineTags:i.tags,languages:i.langs,actor:r});if(s)return s;if(i.embed&&o.AppBskyEmbedImages.isMain(i.embed))for(let e of i.embed.images){let o=(0,n.matchMuteWords)({mutedWords:t,text:e.alt,languages:i.langs,actor:r});if(o)return o}}let{embed:i}=e;if(i){if((o.AppBskyEmbedRecord.isView(i)||o.AppBskyEmbedRecordWithMedia.isView(i))&&o.AppBskyEmbedRecord.isViewRecord(i.record)){if(o.AppBskyFeedPost.isRecord(i.record.value)){let e=i.record.value,r=i.record.author,s=(0,n.matchMuteWords)({mutedWords:t,text:e.text,facets:e.facets,outlineTags:e.tags,languages:e.langs,actor:r});if(s)return s;if(o.AppBskyEmbedImages.isMain(e.embed))for(let o of e.embed.images){let i=(0,n.matchMuteWords)({mutedWords:t,text:o.alt,languages:e.langs,actor:r});if(i)return i}if(o.AppBskyEmbedExternal.isMain(e.embed)){let{external:o}=e.embed,i=(0,n.matchMuteWords)({mutedWords:t,text:o.title+" "+o.description,languages:[],actor:r});if(i)return i}if(o.AppBskyEmbedRecordWithMedia.isMain(e.embed)){if(o.AppBskyEmbedExternal.isMain(e.embed.media)){let{external:o}=e.embed.media,i=(0,n.matchMuteWords)({mutedWords:t,text:o.title+" "+o.description,languages:[],actor:r});if(i)return i}if(o.AppBskyEmbedImages.isMain(e.embed.media))for(let i of e.embed.media.images){let s=(0,n.matchMuteWords)({mutedWords:t,text:i.alt,languages:o.AppBskyFeedPost.isRecord(e.record)?e.langs:[],actor:r});if(s)return s}}}}else if(o.AppBskyEmbedExternal.isView(i)){let{external:e}=i,o=(0,n.matchMuteWords)({mutedWords:t,text:e.title+" "+e.description,languages:[],actor:r});if(o)return o}else if(o.AppBskyEmbedRecordWithMedia.isView(i)&&o.AppBskyEmbedRecord.isViewRecord(i.record.record)){let r=i.record.record.author;if(o.AppBskyFeedPost.isRecord(i.record.record.value)){let e=i.record.record.value,o=(0,n.matchMuteWords)({mutedWords:t,text:e.text,facets:e.facets,outlineTags:e.tags,languages:e.langs,actor:r});if(o)return o}if(o.AppBskyEmbedImages.isView(i.media))for(let s of i.media.images){let i=(0,n.matchMuteWords)({mutedWords:t,text:s.alt,languages:o.AppBskyFeedPost.isRecord(e.record)?e.re
21cord.langs:[],actor:r});if(i)return i}if(o.AppBskyEmbedExternal.isView(i.media)){let{external:e}=i.media,o=(0,n.matchMuteWords)({mutedWords:t,text:e.title+" "+e.description,languages:[],actor:r});if(o)return o}}}}(e,t.prefs.mutedWords)),a}(e,t),(function(e,t){if(e){if((o.AppBskyEmbedRecord.isView(e)||o.AppBskyEmbedRecordWithMedia.isView(e))&&o.AppBskyEmbedRecord.isViewRecord(e.record))return c(e.record,t);else if(o.AppBskyEmbedRecordWithMedia.isView(e)&&o.AppBskyEmbedRecord.isViewRecord(e.record.record))return c(e.record.record,t);else if((o.AppBskyEmbedRecord.isView(e)||o.AppBskyEmbedRecordWithMedia.isView(e))&&o.AppBskyEmbedRecord.isViewBlocked(e.record))return l(e.record,t);else if(o.AppBskyEmbedRecordWithMedia.isView(e)&&o.AppBskyEmbedRecord.isViewBlocked(e.record.record))return l(e.record.record,t)}})(e.embed,t)?.downgrade(),(0,s.decideAccount)(e.author,t),(0,a.decideProfile)(e.author,t))};let o=e.r(450307),i=e.r(802757),n=e.r(856618),s=e.r(965414),a=e.r(676841);function c(e,t){let r=new i.ModerationDecision;if(r.setDid(e.author.did),r.setIsMe(e.author.did===t.userDid),e.labels?.length)for(let o of e.labels)r.addLabel("content",o,t);return i.ModerationDecision.merge(r,(0,s.decideAccount)(e.author,t),(0,a.decideProfile)(e.author,t))}function l(e,t){let r=new i.ModerationDecision;return r.setDid(e.author.did),r.setIsMe(e.author.did===t.userDid),e.author.viewer?.muted&&(e.author.viewer?.mutedByList?r.addMutedByList(e.author.viewer?.mutedByList):r.addMuted(e.author.viewer?.muted)),e.author.viewer?.blocking&&(e.author.viewer?.blockingByList?r.addBlockingByList(e.author.viewer?.blockingByList):r.addBlocking(e.author.viewer?.blocking)),r.addBlockedBy(e.author.viewer?.blockedBy),r}},463735,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decideUserList=function(e,t){var r;let a=new i.ModerationDecision,c="creator"in e&&(r=e.creator)&&"object"==typeof r&&"did"in r?e.creator:void 0;if(c){if(a.setDid(c.did),a.setIsMe(c.did===t.userDid),e.labels?.length)for(let r of e.labels)a.addLabel("content",r,t);return i.ModerationDecision.merge(a,(0,n.decideAccount)(c,t),(0,s.decideProfile)(c,t))}let l=new o.AtUri(e.uri).hostname;if(a.setDid(l),a.setIsMe(l===t.userDid),e.labels?.length)for(let r of e.labels)a.addLabel("content",r,t);return a};let o=e.r(950760),i=e.r(802757),n=e.r(965414),s=e.r(676841)},248144,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isQuotedPost=function(e){return!!(e&&o.AppBskyEmbedRecord.isView(e))},r.isQuotedPostWithMedia=function(e){return!!(e&&o.AppBskyEmbedRecordWithMedia.isView(e))},r.interpretLabelValueDefinition=n,r.interpretLabelValueDefinitions=function(e){return(e.policies?.labelValueDefinitions||[]).filter((0,i.asPredicate)(o.ComAtprotoLabelDefs.validateLabelValueDefinition)).map(t=>n(t,e.creator.did))};let o=e.r(450307),i=e.r(291078);function n(e,t){let r={account:{},profile:{},content:{}},o="alert"===e.severity?"alert":"inform"===e.severity?"inform":void 0;"content"===e.blurs?(r.account.profileList=o,r.account.profileView=o,r.account.contentList="blur",r.account.contentView=e.adultOnly?"blur":o,r.profile.profileList=o,r.profile.profileView=o,r.content.contentList="blur",r.content.contentView=e.adultOnly?"blur":o):"media"===e.blurs?(r.account.profileList=o,r.account.profileView=o,r.account.avatar="blur",r.account.banner="blur",r.profile.profileList=o,r.profile.profileView=o,r.profile.avatar="blur",r.profile.banner="blur",r.content.contentMedia="blur"):"none"===e.blurs&&(r.account.profileList=o,r.account.profileView=o,r.account.contentList=o,r.account.contentView=o,r.profile.profileList=o,r.profile.profileView=o,r.content.contentList=o,r.content.contentView=o);let i="warn";("hide"===e.defaultSetting||"ignore"===e.defaultSetting)&&(i=e.defaultSetting);let n=["no-self"];return e.adultOnly&&n.push("adult"),{...e,definedBy:t,configurable:!0,defaultSetting:i,flags:n,behaviors:r}}},6219,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.interpretLabelValueDefinitions=r.interpretLabelValueDefinition=r.matchMuteWords=r.hasMutedWord=r.ModerationDecision=r.ModerationUI=void 0,r.moderateProfile=function(e,t){return o.ModerationDecision.merge((0,i.decideAccount)(e,t),(0,c.decideProfile)(e,t))},r.moderatePost=function(e,t){return(0,a.decidePost)(e,t)},r.moderateNotification=function(e,t){return(0,s.decideNotification)(e,t)},r.moderateFeedGenerator=function(e,t){return(0,n.decideFeedGenerator)(e,t)},r.moderateUserList=function(e,t){return(0,l.decideUserList)(e,t)};let o=e.r(802757),i=e.r(965414),n=e.r(99918),s=e.r(868047),a=e.r(92315),c=e.r(676841),l=e.r(463735);var d=e.r(389081);Object.defineProperty(r,"ModerationUI",{enumerable:!0,get:function(){return d.ModerationUI}});var p=e.r(802757);Object.defineProperty(r,"ModerationDecision",{enumerable:!0,get:function(){return p.ModerationDecision}});var u=e.r(856618);Object.defineProperty(r,"hasMutedWord",{enumerable:!0,get:function(){return u.hasMutedWord}}),Object.defineProperty(r,"matchMuteWords",{enumerable:!0,get:function(){return u.matchMuteWords}});var f=e.r(248144);Object.defineProperty(r,"interpretLabelValueDefinition",{enumerable:!0,get:function(){return f.interpretLabelValueDefinition}}),Object.defineProperty(r,"interpretLabelValueDefinitions",{enumerable:!0,get:function(){return f.interpretLabelValueDefinitions}})},858262,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.mock=void 0;let o="bafyreiclp443lavogvhj3d2ob2cxbfuscni2k5jk7bebjzg7khl3esabwq";r.mock={post:({text:e,facets:t,reply:r,embed:o})=>({$type:"app.bsky.feed.post",text:e,facets:t,reply:r,embed:o,langs:["en"],createdAt:new Date().toISOString()}),postView:({record:e,author:t,embed:r,replyCount:i,repostCount:n,likeCount:s,viewer:a,labels:c})=>({$type:"app.bsky.feed.defs#postView",uri:`at://${t.did}/app.bsky.feed.post/fake`,cid:o,author:t,record:e,embed:r,replyCount:i,repostCount:n,likeCount:s,indexedAt:new Date().toISOString(),viewer:a,labels:c}),embedRecordView:({record:e,author:t,labels:r})=>({$type:"app.bsky.embed.record#view",record:{$type:"app.bsky.embed.record#viewRecord",uri:`at://${t.did}/app.bsky.feed.post/fake`,cid:o,author:t,value:e,labels:r,indexedAt:new Date().toISOString()}}),profileViewBasic:({handle:e,displayName:t,description:r,viewer:o,labels:i})=>({did:`did:web:${e}`,handle:e,displayName:t,description:r,viewer:o,labels:i}),actorViewerState:({muted:e,mutedByList:t,blockedBy:r,blocking:o,blockingByList:i,following:n,followedBy:s})=>({muted:e,mutedByList:t,blockedBy:r,blocking:o,blockingByList:i,following:n,followedBy:s}),listViewBasic:({name:e})=>({uri:"at://did:plc:fake/app.bsky.graph.list/fake",cid:o,name:e,purpose:"app.bsky.graph.defs#modlist",indexedAt:new Date().toISOString()}),replyNotification:({author:e,record:t,labels:r})=>({uri:`at://${e.did}/app.bsky.feed.post/fake`,cid:o,author:e,reason:"reply",reasonSubject:`at://${e.did}/app.bsky.feed.post/fake-parent`,record:t,isRead:!1,indexedAt:new Date().toISOString(),labels:r}),followNotification:({author:e,subjectDid:t,labels:r})=>({uri:`at://${e.did}/app.bsky.graph.follow/fake`,cid:o,author:e,reason:"follow",record:{$type:"app.bsky.graph.follow",createdAt:new Date().toISOString(),subject:t},isRead:!1,indexedAt:new Date().toISOString(),labels:r}),label:({val:e,uri:t,src:r})=>({src:r||"did:plc:fake-labeler",uri:t,val:e,cts:new Date().toISOString()})}},475737,(e,t,r)=>{"use strict";var o,i,n=e.e&&e.e.__classPrivateFieldGet||function(e,t,r,o){if("a"===r&&!o)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)},s=e.e&&e.e.__classPrivateFieldSet||function(e,t,r,o,i){if("m"===o)throw TypeError("Private method is not writable");if("a"===o&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,r):i?i.value=r:t.set(e,r),r};Object.defineProperty(r,"__esModule",{value:!0}),r.default=class{constructor(){o.set(this,!1),i.set(this,new Set)}get acquired(){return n(this,o,"f")}acquireAsync({timeout:e}={}){let t,r;return n(this,o,"f")?null==e?new Promise(e=>{n(this,i,"f").add(e)}):Promise.race([new Promise(e=>{t=()=>{clearTimeout(r),e()},n(this,i,"f").add(t)}),new Promise((o,s)=>{r=setTimeout(()=>{n(this,i,"f").delete(t),s(Error("Timed out waiting for lock"))},e)})]):(s(this,o,!0,"f"),Promise.resolve())}tryAcquire(){return!n(this,o,"f")&&(s(this,o,!0,"f"),!0)}release(){if(!n(this,o,"f"))throw Error("Cannot release an unacquired lock");if(n(this,i,"f").size>0){let[e]=n(this,i,"f");n(this,i,"f").delete(e),e()}else s(this,o,!1,"f")}},o=new WeakMap,i=new WeakMap},414680,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isValidVerificationPrefs=r.isValidThreadViewPref=r.isValidSavedFeedsPrefV2=r.isValidSavedFeedsPref=r.isValidPostInteractionSettingsPref=r.isValidPersonalDetailsPref=r.isValidMutedWordsPref=r.isValidLabelersPref=r.isValidInterestsPref=r.isValidHiddenPostsPref=r.isValidFeedViewPref=r.isValidContentLabelPref=r.isValidBskyAppStatePref=r.isValidAdultContentPref=r.isValidProfile=void 0;let o=e.r(450307),i=e.r(291078);r.isValidProfile=(0,i.asPredicate)(o.AppBskyActorProfile.validateRecord),r.isValidAdultContentPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateAdultContentPref),r.isValidBskyAppStatePref=(0,i.asPredicate)(o.AppBskyActorDefs.validateBskyAppStatePref),r.isValidContentLabelPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateContentLabelPref),r.isValidFeedViewPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateFeedViewPref),r.isValidHiddenPostsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateHiddenPostsPref),r.isValidInterestsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateInterestsPref),r.isValidLabelersPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateLabelersPref),r.isValidMutedWordsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateMutedWordsPref),r.isValidPersonalDetailsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validatePersonalDetailsPref),r.isValidPostInteractionSettingsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validatePostInteractionSettingsPref),r.isValidSavedFeedsPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateSavedFeedsPref),r.isValidSavedFeedsPrefV2=(0,i.asPredicate)(o.AppBskyActorDefs.validateSavedFeedsPrefV2),r.isValidThreadViewPref=(0,i.asPredicate)(o.AppBskyActorDefs.validateThreadViewPref),r.isValidVerificationPrefs=(0,i.asPredicate)(o.AppBskyActorDefs.validateVerificationPrefs)},693156,(e,t,r)=>{"use strict";var o,i,n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);
21(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),s=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e.e&&e.e.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),i=0;i<r.length;i++)"default"!==r[i]&&n(t,e,r[i]);return s(t,e),t}),c=e.e&&e.e.__classPrivateFieldGet||function(e,t,r,o){if("a"===r&&!o)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)},l=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Agent=void 0;let d=l(e.r(475737)),p=e.r(751037),u=e.r(950760),f=e.r(639829),h=e.r(450307),m=e.r(397657),y=e.r(18427),g=e.r(6219),b=e.r(985594),v=a(e.r(414680)),w=e.r(517097),k={hideReplies:!1,hideRepliesByUnfollowed:!0,hideRepliesByLikeCount:0,hideReposts:!1,hideQuotePosts:!1},x={sort:"hotness",prioritizeFollowedUsers:!0};class A extends f.XrpcClient{static configure(e){e.appLabelers&&(this.appLabelers=e.appLabelers.map(w.asDid))}get xrpc(){return this}constructor(e){const t="object"==typeof e&&"fetchHandler"in e?e:{did:void 0,fetchHandler:(0,f.buildFetchHandler)(e)};super((e,t)=>{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})},m.schemas),Object.defineProperty(this,"com",{enumerable:!0,configurable:!0,writable:!0,value:new h.ComNS(this)}),Object.defineProperty(this,"app",{enumerable:!0,configurable:!0,writable:!0,value:new h.AppNS(this)}),Object.defineProperty(this,"chat",{enumerable:!0,configurable:!0,writable:!0,value:new h.ChatNS(this)}),Object.defineProperty(this,"tools",{enumerable:!0,configurable:!0,writable:!0,value:new h.ToolsNS(this)}),Object.defineProperty(this,"sessionManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"labelers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"proxy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uploadBlob",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.com.atproto.repo.uploadBlob(e,t)}),Object.defineProperty(this,"resolveHandle",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.com.atproto.identity.resolveHandle(e,t)}),Object.defineProperty(this,"updateHandle",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.com.atproto.identity.updateHandle(e,t)}),Object.defineProperty(this,"createModerationReport",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.com.atproto.moderation.createReport(e,t)}),Object.defineProperty(this,"getTimeline",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getTimeline(e,t)}),Object.defineProperty(this,"getAuthorFeed",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getAuthorFeed(e,t)}),Object.defineProperty(this,"getActorLikes",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getActorLikes(e,t)}),Object.defineProperty(this,"getPostThread",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getPostThread(e,t)}),Object.defineProperty(this,"getPost",{enumerable:!0,configurable:!0,writable:!0,value:e=>this.app.bsky.feed.post.get(e)}),Object.defineProperty(this,"getPosts",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getPosts(e,t)}),Object.defineProperty(this,"getLikes",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>
21this.app.bsky.feed.getLikes(e,t)}),Object.defineProperty(this,"getRepostedBy",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.feed.getRepostedBy(e,t)}),Object.defineProperty(this,"getFollows",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.graph.getFollows(e,t)}),Object.defineProperty(this,"getFollowers",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.graph.getFollowers(e,t)}),Object.defineProperty(this,"getProfile",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.actor.getProfile(e,t)}),Object.defineProperty(this,"getProfiles",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.actor.getProfiles(e,t)}),Object.defineProperty(this,"getSuggestions",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.actor.getSuggestions(e,t)}),Object.defineProperty(this,"searchActors",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.actor.searchActors(e,t)}),Object.defineProperty(this,"searchActorsTypeahead",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.actor.searchActorsTypeahead(e,t)}),Object.defineProperty(this,"listNotifications",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.notification.listNotifications(e,t)}),Object.defineProperty(this,"countUnreadNotifications",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.notification.getUnreadCount(e,t)}),Object.defineProperty(this,"getLabelers",{enumerable:!0,configurable:!0,writable:!0,value:(e,t)=>this.app.bsky.labeler.getServices(e,t)}),i.set(this,new d.default),this.sessionManager=t}clone(){return this.copyInto(new A(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(`${(0,w.asDid)(t)}#${e}`),r}get appLabelers(){return this.constructor.appLabelers}configureLabelers(e){this.labelers=e.map(w.asDid)}configureLabelersHeader(e){this.configureLabelers(e.filter(w.isDid))}configureProxy(e){if(null===e)this.proxy=void 0;else if((0,w.isDid)(e))this.proxy=e;else throw TypeError("Invalid proxy DID")}configureProxyHeader(e,t){(0,w.isDid)(t)&&this.configureProxy(`${t}#${e}`)}get did(){return this.sessionManager.did}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&&E(t.moderationPrefs)?r.push(...e.moderationPrefs.labelers.map(e=>e.did)):E(e)?r.push(...e.labelers.map(e=>e.did)):r.push(...e);let o=await this.getLabelers({dids:r,detailed:!0}),i={};if(o.data)for(let e of o.data.views)i[e.creator.did]=(0,g.interpretLabelValueDefinitions)(e);return i}async post(e){return e.createdAt||(e.createdAt=new Date().toISOString()),this.app.bsky.feed.post.create({repo:this.accountDid},e)}async deletePost(e){this.assertAuthenticated();let t=new u.AtUri(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 u.AtUri(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 u.AtUri(e);return this.app.bsky.feed.repost.delete({repo:t.hostname,rkey:t.rkey})}async follow(e){return this.app.bsky.graph.follow.create({repo:this.accountDid},{subject:e,createdAt:new Date().toISOString()})}async deleteFollow(e){this.assertAuthenticated();let t=new u.AtUri(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",o=await this.com.atproto.repo.getRecord({repo:t,collection:r,rkey:"self"}).catch(e=>void 0),i=o&&v.isValidProfile(o.data.value)?o.data.value:void 0,n=await e(i),s=h.AppBskyActorProfile.validateRecord({$type:r,...n});if(!s.success)throw s.error;await this.com.atproto.repo.putRecord({repo:t,collection:r,rkey:"self",record:s.value,swapRecord:o?.data.cid||null})};return(0,p.retry)(t,{maxRetries:5,retryable:e=>e instanceof h.ComAtprotoRepoPutRecord.InvalidSwapError})}async mute(e){return this.app.bsky.graph.muteActor({actor:e})}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}),o=r.data.list.viewer?.blocked;if(o){let{rkey:e}=new u.AtUri(o);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:{...k}},threadViewPrefs:{...x},moderationPrefs:{adultContentEnabled:!1,labels:{...b.DEFAULT_LABEL_SETTINGS},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}},t=await this.app.bsky.actor.getPreferences({}),r=[];for(let o of t.data.preferences)if(v.isValidAdultContentPref(o))e.moderationPrefs.adultContentEnabled=o.enabled;else if(v.isValidContentLabelPref(o)){let e=function(e){let t=e.visibility;return"show"===t&&(t="ignore"),{...e,visibility:t}}(o);r.push(e)}else if(v.isValidLabelersPref(o))e.moderationPrefs.labelers=this.appLabelers.map(e=>({did:e,labels:{}})).concat(o.labelers.map(e=>({...e,labels:{}})));else if(v.isValidSavedFeedsPrefV2(o))e.savedFeeds=o.items;else if(v.isValidSavedFeedsPref(o))e.feeds.saved=o.saved,e.feeds.pinned=o.pinned;else if(v.isValidPersonalDetailsPref(o))o.birthDate&&(e.birthDate=new Date(o.birthDate));else if(v.isValidFeedViewPref(o)){let{$type:t,feed:r,...i}=o;e.feedViewPrefs[r]={...k,...i}}else if(v.isValidThreadViewPref(o)){let{$type:t,...r}=o;e.threadViewPrefs={...e.threadViewPrefs,...r}}else if(v.isValidInterestsPref(o)){let{$type:t,...r}=o;e.interests={...e.interests,...r}}else v.isValidMutedWordsPref(o)?(e.moderationPrefs.mutedWords=o.items,e.moderationPrefs.mutedWords.length&&(e.moderationPrefs.mutedWords=e.moderationPrefs.mutedWords.map(e=>(e.actorTarget=e.actorTarget||"all",e)))):v.isValidHiddenPostsPref(o)?e.moderationPrefs.hiddenPosts=o.items:v.isValidBskyAppStatePref(o)?(e.bskyAppState.queuedNudges=o.queuedNudges||[],e.bskyAppState.activeProgressGuide=o.activeProgressGuide,e.bskyAppState.nuxs=o.nuxs||[]):v.isValidPostInteractionSettingsPref(o)?(e.postInteractionSettings.threadgateAllowRules=o.threadgateAllowRules,e.postInteractionSettings.postgateEmbeddingRules=o.postgateEmbeddingRules):v.isValidVerificationPrefs(o)&&(e.verificationPrefs={hideBadges:o.hideBadges});if(null==e.savedFeeds){let{saved:t,pinned:r}=e.feeds;if(t&&r){let o=new Map;for(let e of(o.set("timeline",{id:p.TID.nextStr(),type:"timeline",value:"following",pinned:!0}),r)){let t=(0,w.getSavedFeedType)(e);"unknown"!==t&&o.set(e,{id:p.TID.nextStr(),type:t,value:e,pinned:!0})}for(let e of t)if(!o.has(e)){let t=(0,w.getSavedFeedType)(e);if("unknown"===t)continue;o.set(e,{id:p.TID.nextStr(),type:t,value:e,pinned:!1}
21)}e.savedFeeds=Array.from(o.values())}else e.savedFeeds=[{id:p.TID.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 o=r[e];o&&(t[o]=t[e])}return t}(e.moderationPrefs.labels),this.configureLabelers(S(t.data.preferences)),e}async overwriteSavedFeeds(e){e.forEach(w.validateSavedFeed);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(w.validateSavedFeed),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:p.TID.nextStr()}));return t.forEach(w.validateSavedFeed),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(v.isValidAdultContentPref)||{$type:"app.bsky.actor.defs#adultContentPref",enabled:e};return r.enabled=e,t.filter(e=>!h.AppBskyActorDefs.isAdultContentPref(e)).concat(r)})}async setContentLabelPref(e,t,r){r&&(0,u.ensureValidDid)(r),await this.updatePreferences(o=>{let i,n=o.filter(v.isValidContentLabelPref).findLast(t=>t.label===e&&t.labelerDid===r)||{$type:"app.bsky.actor.defs#contentLabelPref",label:e,labelerDid:r,visibility:t};if(n.visibility=t,h.AppBskyActorDefs.isContentLabelPref(n)&&!n.labelerDid){let e={"graphic-media":"gore",porn:"nsfw",sexual:"suggestive",__proto__:null}[n.label];e&&((i=o.filter(v.isValidContentLabelPref).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 o.filter(t=>!h.AppBskyActorDefs.isContentLabelPref(t)||t.label!==e||t.labelerDid!==r).concat(n).filter(e=>!i||!h.AppBskyActorDefs.isContentLabelPref(e)||e.label!==i.label||void 0!==e.labelerDid).concat(i?[i]:[])})}async addLabeler(e){let t=await this.updatePreferences(t=>{let r=t.findLast(v.isValidLabelersPref)||{$type:"app.bsky.actor.defs#labelersPref",labelers:[]};return r.labelers.some(t=>t.did===e)||r.labelers.push({did:e}),t.filter(e=>!h.AppBskyActorDefs.isLabelersPref(e)).concat(r)});this.configureLabelers(S(t))}async removeLabeler(e){let t=await this.updatePreferences(t=>{let r=t.findLast(v.isValidLabelersPref)||{$type:"app.bsky.actor.defs#labelersPref",labelers:[]};return r.labelers=r.labelers.filter(t=>t.did!==e),t.filter(e=>!h.AppBskyActorDefs.isLabelersPref(e)).concat(r)});this.configureLabelers(S(t))}async setPersonalDetails({birthDate:e}){await this.updatePreferences(t=>{let r=t.findLast(v.isValidPersonalDetailsPref)||{$type:"app.bsky.actor.defs#personalDetailsPref"};return r.birthDate=e instanceof Date?e.toISOString():e,t.filter(e=>!h.AppBskyActorDefs.isPersonalDetailsPref(e)).concat(r)})}async setFeedViewPrefs(e,t){await this.updatePreferences(r=>{let o=r.filter(v.isValidFeedViewPref).findLast(t=>t.feed===e);return r.filter(t=>!h.AppBskyActorDefs.isFeedViewPref(t)||t.feed!==e).concat({...o,...t,$type:"app.bsky.actor.defs#feedViewPref",feed:e})})}async setThreadViewPrefs(e){await this.updatePreferences(t=>{let r=t.findLast(v.isValidThreadViewPref);return t.filter(e=>!h.AppBskyActorDefs.isThreadViewPref(e)).concat({...r,...e,$type:"app.bsky.actor.defs#threadViewPref"})})}async setInterestsPref(e){await this.updatePreferences(t=>{let r=t.findLast(v.isValidInterestsPref);return t.filter(e=>!h.AppBskyActorDefs.isInterestsPref(e)).concat({...r,...e,$type:"app.bsky.actor.defs#interestsPref"})})}async addMutedWord(e){let t=(0,w.sanitizeMutedWordValue)(e.value);t&&await this.updatePreferences(r=>{let o=r.findLast(v.isValidMutedWordsPref),i={id:p.TID.nextStr(),value:t,targets:e.targets||[],actorTarget:e.actorTarget||"all",expiresAt:e.expiresAt||void 0};return o?(o.items.push(i),o.items=_(o.items)):o={$type:"app.bsky.actor.defs#mutedWordsPref",items:[i]},r.filter(e=>!h.AppBskyActorDefs.isMutedWordsPref(e)).concat(o)})}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(v.isValidMutedWordsPref);return r?(r.items=r.items.map(t=>{if(!C(t,e))return t;{let r={...t,...e};return{id:t.id||p.TID.nextStr(),value:(0,w.sanitizeMutedWordValue)(r.value)||t.value,targets:r.targets||[],actorTarget:r.actorTarget||"all",expiresAt:r.expiresAt||void 0}}}
21),r.items=_(r.items),t.filter(e=>!h.AppBskyActorDefs.isMutedWordsPref(e)).concat(r)):t})}async removeMutedWord(e){await this.updatePreferences(t=>{let r=t.findLast(v.isValidMutedWordsPref);if(r){for(let t=0;t<r.items.length;t++)if(C(r.items[t],e)){r.items.splice(t,1);break}return r.items=_(r.items),t.filter(e=>!h.AppBskyActorDefs.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(v.isValidBskyAppStatePref)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.queuedNudges=(r.queuedNudges||[]).concat(e),t.filter(e=>!h.AppBskyActorDefs.isBskyAppStatePref(e)).concat(r)})}async bskyAppDismissNudges(e){await this.updatePreferences(t=>{let r=t.findLast(v.isValidBskyAppStatePref)||{$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=>!h.AppBskyActorDefs.isBskyAppStatePref(e)).concat(r)})}async bskyAppSetActiveProgressGuide(e){if(e){let t=h.AppBskyActorDefs.validateBskyAppProgressGuide(e);if(!t.success)throw t.error}await this.updatePreferences(t=>{let r=t.findLast(v.isValidBskyAppStatePref)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.activeProgressGuide=e,t.filter(e=>!h.AppBskyActorDefs.isBskyAppStatePref(e)).concat(r)})}async bskyAppUpsertNux(e){(0,w.validateNux)(e),await this.updatePreferences(t=>{let r,o=t.findLast(v.isValidBskyAppStatePref)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};o.nuxs=o.nuxs||[];let i=o.nuxs?.find(t=>t.id===e.id);return r=i?{id:i.id,completed:e.completed,data:e.data,expiresAt:e.expiresAt}:e,o.nuxs=o.nuxs.filter(t=>t.id!==e.id).concat(r),t.filter(e=>!h.AppBskyActorDefs.isBskyAppStatePref(e)).concat(o)})}async bskyAppRemoveNuxs(e){await this.updatePreferences(t=>{let r=t.findLast(v.isValidBskyAppStatePref)||{$type:"app.bsky.actor.defs#bskyAppStatePref"};return r.nuxs=(r.nuxs||[]).filter(t=>!e.includes(t.id)),t.filter(e=>!h.AppBskyActorDefs.isBskyAppStatePref(e)).concat(r)})}async setPostInteractionSettings(e){let t=h.AppBskyActorDefs.validatePostInteractionSettingsPref(e);if(!t.success)throw t.error;await this.updatePreferences(t=>{let r=t.findLast(v.isValidPostInteractionSettingsPref)||{$type:"app.bsky.actor.defs#postInteractionSettingsPref"};return r.threadgateAllowRules=e.threadgateAllowRules,r.postgateEmbeddingRules=e.postgateEmbeddingRules,t.filter(e=>!h.AppBskyActorDefs.isPostInteractionSettingsPref(e)).concat(r)})}async setVerificationPrefs(e){let t=h.AppBskyActorDefs.validateVerificationPrefs(e);if(!t.success)throw t.error;await this.updatePreferences(t=>{let r=t.findLast(v.isValidVerificationPrefs)||{$type:"app.bsky.actor.defs#verificationPrefs",hideBadges:!1};return r.hideBadges=e.hideBadges,t.filter(e=>!h.AppBskyActorDefs.isVerificationPrefs(e)).concat(r)})}async updatePreferences(e){try{await c(this,i,"f").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{c(this,i,"f").release()}}async updateHiddenPost(e,t){await this.updatePreferences(r=>{let o=r.findLast(v.isValidHiddenPostsPref)||{$type:"app.bsky.actor.defs#hiddenPostsPref",items:[]},i=new Set(o.items);return"hide"===t?i.add(e):i.delete(e),o.items=[...i],r.filter(e=>!h.AppBskyActorDefs.isHiddenPostsPref(e)).concat(o)})}async updateFeedPreferences(e){let t;return await this.updatePreferences(r=>{let o=r.findLast(v.isValidSavedFeedsPref)||{$type:"app.bsky.actor.defs#savedFeedsPref",saved:[],pinned:[]};return t=e(o.saved,o.pinned),o.saved=t.saved,o.pinned=t.pinned,r.filter(e=>!h.AppBskyActorDefs.isSavedFeedsPref(e)).concat(o)}),t}async updateSavedFeedsV2Preferences(e){let t=[];return await this.updatePreferences(r=>{let o=r.findLast(v.isValidSavedFeedsPrefV2)||{$type:"app.bsky.actor.defs#savedFeedsPrefV2",items:[]},i=e(o.items);o.items=[...i].sort((e,t)=>
21e.pinned===t.pinned?0:e.pinned?-1:1),t=i;let n=r.filter(e=>!h.AppBskyActorDefs.isSavedFeedsPrefV2(e)).concat(o),s=r.findLast(v.isValidSavedFeedsPref);if(s){let{saved:e,pinned:t}=s,r=(0,w.savedFeedsToUriArrays)(o.items.filter(e=>["feed","list"].includes(e.type)));s={...s,saved:Array.from(new Set([...e,...r.saved])),pinned:Array.from(new Set([...t,...r.pinned]))},n=n.filter(e=>!h.AppBskyActorDefs.isSavedFeedsPref(e)).concat(s)}return n}),t}}function S(e){let t=e.findLast(v.isValidLabelersPref),r=[];return t&&(r=t.labelers.map(e=>e.did)),r}function E(e){return e&&"object"==typeof e&&"labelers"in e}function _(e){return e.map(e=>({...e,id:e.id||p.TID.nextStr()}))}function C(e,t){let r=e.id,o=r&&r===t.id,i=!r&&e.value===t.value;return o||i}r.Agent=A,i=new WeakMap,Object.defineProperty(A,"appLabelers",{enumerable:!0,configurable:!0,writable:!0,value:[y.BSKY_LABELER_DID]})},983520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CredentialSession=r.AtpAgent=void 0;let o=e.r(751037),i=e.r(639829),n=e.r(693156),s=e.r(450307),a=e.r(397657),c=globalThis.ReadableStream;class l extends n.Agent{constructor(e){const t=e instanceof d?e:new d(new URL(e.service),e.fetch,e.persistSession);if(super(t),Object.defineProperty(this,"sessionManager",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.sessionManager=t,!(e instanceof d)&&e.headers)for(const[t,r]of e.headers)this.setHeader(t,r)}clone(){return this.copyInto(new l(this.sessionManager))}get session(){return this.sessionManager.session}get hasSession(){return this.sessionManager.hasSession}get did(){return this.sessionManager.did}get serviceUrl(){return this.sessionManager.serviceUrl}get pdsUrl(){return this.sessionManager.pdsUrl}get dispatchUrl(){return this.sessionManager.dispatchUrl}get service(){return this.serviceUrl}get persistSession(){throw Error('Cannot set persistSession directly. "persistSession" is defined through the constructor and will be invoked automatically when session data changes.')}set persistSession(e){throw Error('Cannot set persistSession directly. "persistSession" must be defined in the constructor and can no longer be changed.')}getServiceUrl(){return this.serviceUrl}async resumeSession(e){return this.sessionManager.resumeSession(e)}async createAccount(e,t){return this.sessionManager.createAccount(e,t)}async login(e){return this.sessionManager.login(e)}async logout(){return this.sessionManager.logout()}}r.AtpAgent=l;class d{constructor(e,t=globalThis.fetch,r){Object.defineProperty(this,"serviceUrl",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"fetch",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"persistSession",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"pdsUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"session",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"refreshSessionPromise",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"server",{enumerable:!0,configurable:!0,writable:!0,value:new s.ComAtprotoServerNS(new i.XrpcClient((e,t)=>(0,this.fetch)(new URL(e,this.serviceUrl),t),a.schemas))})}get did(){return this.session?.did}get dispatchUrl(){return this.pdsUrl||this.serviceUrl}get hasSession(){return!!this.session}setFetch(e=globalThis.fetch){this.fetch=e}async fetchHandler(e,t){await this.refreshSessionPromise;let r=new Request(new URL(e,this.dispatchUrl),t),o=this.session?.accessJwt;if(!o||r.headers.has("authorization"))return(0,this.fetch)(r);r.headers.set("authorization",`Bearer ${o}`);let i=await (0,this.fetch)(r);if(!this.session?.refreshJwt||!await p(i,[400],["ExpiredToken"]))return i;try{await this.refreshSession()}catch{return i}if(t?.signal?.aborted||c&&t?.body instanceof c)return i;let n=this.session?.accessJwt;if(!n||n===o)return i;await i.body?.cancel();let s=new Request(new URL(e,this.dispatchUrl),t);return s.headers.set("authorization",`Bearer ${n}`),await (0,this.fetch)(s)}async createAccount(e,t){try{let r=await this.server.createAccount(e,t);return this.session={accessJwt:r.data.accessJwt,refreshJwt:r.data.refreshJwt,handle:r.data.handle,did:r.data.did,email:e.email,emailConfirmed:!1,emailAuthFactor:!1,active:!0},this.persistSession?.("create",this.session),this._updateApiEndpoint(r.data.didDoc),r}catch(e){throw this.session=void 0,this.persistSession?.("create-failed",void 0),e}}async login(e){try{let t=await this.server.createSession({identifier:e.identifier,password:e.password,authFactorToken:e.authFactorToken,allowTaken
21down:e.allowTakendown});return this.session={accessJwt:t.data.accessJwt,refreshJwt:t.data.refreshJwt,handle:t.data.handle,did:t.data.did,email:t.data.email,emailConfirmed:t.data.emailConfirmed,emailAuthFactor:t.data.emailAuthFactor,active:t.data.active??!0,status:t.data.status},this._updateApiEndpoint(t.data.didDoc),this.persistSession?.("create",this.session),t}catch(e){throw this.session=void 0,this.persistSession?.("create-failed",void 0),e}}async logout(){if(this.session)try{await this.server.deleteSession(void 0,{headers:{authorization:`Bearer ${this.session.refreshJwt}`}})}catch{}finally{this.session=void 0,this.persistSession?.("expired",void 0)}}async resumeSession(e){this.session=e;try{let t=await this.server.getSession(void 0,{headers:{authorization:`Bearer ${e.accessJwt}`}}).catch(async t=>{if(t instanceof i.XRPCError&&["ExpiredToken","InvalidToken"].includes(t.error)&&e.refreshJwt)try{let t=await this.server.refreshSession(void 0,{headers:{authorization:`Bearer ${e.refreshJwt}`}});return e.accessJwt=t.data.accessJwt,e.refreshJwt=t.data.refreshJwt,this.server.getSession(void 0,{headers:{authorization:`Bearer ${e.accessJwt}`}})}catch{}throw t});if(t.data.did!==e.did)throw new i.XRPCError(i.ResponseType.InvalidRequest,"Invalid session","InvalidDID");return e.email=t.data.email,e.handle=t.data.handle,e.emailConfirmed=t.data.emailConfirmed,e.emailAuthFactor=t.data.emailAuthFactor,e.active=t.data.active??!0,e.status=t.data.status,this.session===e&&(this._updateApiEndpoint(t.data.didDoc),this.persistSession?.("update",e)),t}catch(t){throw this.session===e&&(this.session=void 0,this.persistSession?.(t instanceof i.XRPCError&&["ExpiredToken","InvalidToken"].includes(t.error)?"expired":"network-error",void 0)),t}}async refreshSession(){return this.refreshSessionPromise||(this.refreshSessionPromise=this._refreshSessionInner().finally(()=>{this.refreshSessionPromise=void 0}))}async _refreshSessionInner(){if(this.session?.refreshJwt)try{let e=await this.server.refreshSession(void 0,{headers:{authorization:`Bearer ${this.session.refreshJwt}`}});this.session={...this.session,accessJwt:e.data.accessJwt,refreshJwt:e.data.refreshJwt,handle:e.data.handle,did:e.data.did},this._updateApiEndpoint(e.data.didDoc),this.persistSession?.("update",this.session)}catch(e){e instanceof i.XRPCError&&e.error&&["ExpiredToken","InvalidToken"].includes(e.error)&&(this.session=void 0,this.persistSession?.("expired",void 0))}}_updateApiEndpoint(e){if((0,o.isValidDidDoc)(e)){let t=(0,o.getPdsEndpoint)(e);this.pdsUrl=t?new URL(t):void 0}else this.pdsUrl=void 0}}async function p(e,t,r){if(!t.includes(e.status))return!1;try{let t=await u(e,10240);return i.errorResponseBody.safeParse(t).success&&r.includes(t.error)}catch(e){return!1}}async function u(e,t=1/0){if("application/json"!==function({headers:e}){return e.get("Content-Type")?.split(";")[0]?.trim()}(e))throw Error("Not JSON");if(function({headers:e}){return e.get("Content-Length")?Number(e.get("Content-Length")):NaN}(e)>t)throw Error("Response too large");return e.clone().json()}r.CredentialSession=d},4011,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BskyAgent=void 0;let o=e.r(983520);class i extends o.AtpAgent{clone(){if(this.constructor===i){let e=new i(this.sessionManager);return this.copyInto(e)}throw TypeError("Cannot clone a subclass of BskyAgent")}}r.BskyAgent=i},593302,(e,t,r)=>{"use strict";var o=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.lexicons=r.default=r.BskyAgent=r.CredentialSession=r.AtpAgent=r.Agent=r.LABELS=r.DEFAULT_LABEL_SETTINGS=r.asPredicate=r.schemas=r.parseLanguage=r.stringifyLex=r.lexToJson=r.jsonToLex=r.jsonStringToLex=r.BlobRef=r.AtUri=void 0;let n=e.r(230596),s=e.r(397657);var a=e.r(950760);Object.defineProperty(r,"AtUri",{enumerable:!0,get:function(){return a.AtUri}});var c=e.r(230596);Object.defineProperty(r,"BlobRef",{enumerable:!0,get:function(){return c.BlobRef}}),Object.defineProperty(r,"jsonStringToLex",{enumerable:!0,get:function(){return c.jsonStringToLex}}),Object.defineProperty(r,"jsonToLex",{enumerable:!0,get:function(){return c.jsonToLex}}),Object.defineProperty(r,"lexToJson",{enumerable:!0,get:function(){return c.lexToJson}}),Object.defineProperty(r,"stringifyLex",{enumerable:!0,get:function(){return c.stringifyLex}});var l=e.r(751037);Object.defineProperty(r,"parseLanguage",{enumerable:!0,get:function(){return l.parseLanguage}}
21),i(e.r(880384),r),i(e.r(18427),r),i(e.r(517097),r),i(e.r(450307),r);var d=e.r(397657);Object.defineProperty(r,"schemas",{enumerable:!0,get:function(){return d.schemas}});var p=e.r(291078);Object.defineProperty(r,"asPredicate",{enumerable:!0,get:function(){return p.asPredicate}}),i(e.r(540474),r),i(e.r(577916),r),i(e.r(850058),r),i(e.r(93565),r),i(e.r(6219),r),i(e.r(49751),r),i(e.r(858262),r);var u=e.r(985594);Object.defineProperty(r,"DEFAULT_LABEL_SETTINGS",{enumerable:!0,get:function(){return u.DEFAULT_LABEL_SETTINGS}}),Object.defineProperty(r,"LABELS",{enumerable:!0,get:function(){return u.LABELS}});var f=e.r(693156);Object.defineProperty(r,"Agent",{enumerable:!0,get:function(){return f.Agent}});var h=e.r(983520);Object.defineProperty(r,"AtpAgent",{enumerable:!0,get:function(){return h.AtpAgent}});var m=e.r(983520);Object.defineProperty(r,"CredentialSession",{enumerable:!0,get:function(){return m.CredentialSession}});var y=e.r(4011);Object.defineProperty(r,"BskyAgent",{enumerable:!0,get:function(){return y.BskyAgent}});var g=e.r(983520);Object.defineProperty(r,"default",{enumerable:!0,get:function(){return g.AtpAgent}}),r.lexicons=new n.Lexicons(s.lexicons)},291078,(e,t,r)=>{"use strict";function o(e){return null!=e&&"object"==typeof e}function i(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)}Object.defineProperty(r,"__esModule",{value:!0}),r.is$typed=function(e,t,r){return o(e)&&"$type"in e&&i(e.$type,t,r)},r.maybe$typed=function(e,t,r){return o(e)&&(!("$type"in e)||void 0===e.$type||i(e.$type,t,r))},r.asPredicate=function(e){return function(t){return e(t).success}}},397657,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ids=r.lexicons=r.schemas=r.schemaDict=void 0,r.validate=function(e,t,n,s){return(s?i.is$typed:i.maybe$typed)(e,t,n)?r.lexicons.validate(`${t}#${n}`,e):{success:!1,error:new o.ValidationError(`Must be an object with "${"main"===n?t:`${t}#${n}`}" $type property`)}};let o=e.r(230596),i=e.r(291078);r.schemaDict={AppBskyActorDefs:{lexicon:1,id:"app.bsky.actor.defs",defs:{profileViewBasic:{type:"object",required:["did","handle"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},displayName:{type:"string",maxGraphemes:64,maxLength:640},avatar:{type:"string",format:"uri"},associated:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociated"},viewer:{type:"ref",ref:"lex:app.bsky.actor.defs#viewerState"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},createdAt:{type:"string",format:"datetime"},verification:{type:"ref",ref:"lex:app.bsky.actor.defs#verificationState"},status:{type:"ref",ref:"lex:app.bsky.actor.defs#statusView"}}},profileView:{type:"object",required:["did","handle"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},displayName:{type:"string",maxGraphemes:64,maxLength:640},description:{type:"string",maxGraphemes:256,maxLength:2560},avatar:{type:"string",format:"uri"},associated:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociated"},indexedAt:{type:"string",format:"datetime"},createdAt:{type:"string",format:"datetime"},viewer:{type:"ref",ref:"lex:app.bsky.actor.defs#viewerState"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},verification:{type:"ref",ref:"lex:app.bsky.actor.defs#verificationState"},status:{type:"ref",ref:"lex:app.bsky.actor.defs#statusView"}}},profileViewDetailed:{type:"object",required:["did","handle"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},displayName:{type:"string",maxGraphemes:64,maxLength:640},description:{type:"string",maxGraphemes:256,maxLength:2560},avatar:{type:"string",format:"uri"},banner:{type:"string",format:"uri"},followersCount:{type:"integer"},followsCount:{type:"integer"},postsCount:{type:"integer"},associated:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociated"},joinedViaStarterPack:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackViewBasic"},indexedAt:{type:"string",format:"datetime"},createdAt:{type:"string",format:"datetime"}
21,viewer:{type:"ref",ref:"lex:app.bsky.actor.defs#viewerState"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},pinnedPost:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},verification:{type:"ref",ref:"lex:app.bsky.actor.defs#verificationState"},status:{type:"ref",ref:"lex:app.bsky.actor.defs#statusView"}}},profileAssociated:{type:"object",properties:{lists:{type:"integer"},feedgens:{type:"integer"},starterPacks:{type:"integer"},labeler:{type:"boolean"},chat:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociatedChat"},activitySubscription:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociatedActivitySubscription"}}},profileAssociatedChat:{type:"object",required:["allowIncoming"],properties:{allowIncoming:{type:"string",knownValues:["all","none","following"]}}},profileAssociatedActivitySubscription:{type:"object",required:["allowSubscriptions"],properties:{allowSubscriptions:{type:"string",knownValues:["followers","mutuals","none"]}}},viewerState:{type:"object",description:"Metadata about the requesting account's relationship with the subject account. Only has meaningful content for authed requests.",properties:{muted:{type:"boolean"},mutedByList:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewBasic"},blockedBy:{type:"boolean"},blocking:{type:"string",format:"at-uri"},blockingByList:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewBasic"},following:{type:"string",format:"at-uri"},followedBy:{type:"string",format:"at-uri"},knownFollowers:{description:"This property is present only in selected cases, as an optimization.",type:"ref",ref:"lex:app.bsky.actor.defs#knownFollowers"},activitySubscription:{description:"This property is present only in selected cases, as an optimization.",type:"ref",ref:"lex:app.bsky.notification.defs#activitySubscription"}}},knownFollowers:{type:"object",description:"The subject's followers whom you also follow",required:["count","followers"],properties:{count:{type:"integer"},followers:{type:"array",minLength:0,maxLength:5,items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"}}}},verificationState:{type:"object",description:"Represents the verification information about the user this object is attached to.",required:["verifications","verifiedStatus","trustedVerifierStatus"],properties:{verifications:{type:"array",description:"All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.",items:{type:"ref",ref:"lex:app.bsky.actor.defs#verificationView"}},verifiedStatus:{type:"string",description:"The user's status as a verified account.",knownValues:["valid","invalid","none"]},trustedVerifierStatus:{type:"string",description:"The user's status as a trusted verifier.",knownValues:["valid","invalid","none"]}}},verificationView:{type:"object",description:"An individual verification for an associated subject.",required:["issuer","uri","isValid","createdAt"],properties:{issuer:{type:"string",description:"The user who issued this verification.",format:"did"},uri:{type:"string",description:"The AT-URI of the verification record.",format:"at-uri"},isValid:{type:"boolean",description:"True if the verification passes validation, otherwise false."},createdAt:{type:"string",description:"Timestamp when the verification was created.",format:"datetime"}}},preferences:{type:"array",items:{type:"union",refs:["lex:app.bsky.actor.defs#adultContentPref","lex:app.bsky.actor.defs#contentLabelPref","lex:app.bsky.actor.defs#savedFeedsPref","lex:app.bsky.actor.defs#savedFeedsPrefV2","lex:app.bsky.actor.defs#personalDetailsPref","lex:app.bsky.actor.defs#feedViewPref","lex:app.bsky.actor.defs#threadViewPref","lex:app.bsky.actor.defs#interestsPref","lex:app.bsky.actor.defs#mutedWordsPref","lex:app.bsky.actor.defs#hiddenPostsPref","lex:app.bsky.actor.defs#bskyAppStatePref","lex:app.bsky.actor.defs#labelersPref","lex:app.bsky.actor.defs#postInteractionSettingsPref","lex:app.bsky.actor.defs#verificationPrefs"]}},adultContentPref:{type:"object",required:["enabled"],properties:{enabled:{type:"boolean",default:!1}}},contentLabelPref:{type:"object",required:["label","visibility"],properties:{labelerDid:{type:"string",description:"Which labeler does this preference apply to? If undefined, applies globally.",format:"did"},label:{type:"string"},visibility:{type:"string",knownValues:["ignore","show","warn","hide"]}}},savedFeed:{type:"object",required:["id","type","value","pinned"],properties:{id:{type:"string"}
21,type:{type:"string",knownValues:["feed","list","timeline"]},value:{type:"string"},pinned:{type:"boolean"}}},savedFeedsPrefV2:{type:"object",required:["items"],properties:{items:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#savedFeed"}}}},savedFeedsPref:{type:"object",required:["pinned","saved"],properties:{pinned:{type:"array",items:{type:"string",format:"at-uri"}},saved:{type:"array",items:{type:"string",format:"at-uri"}},timelineIndex:{type:"integer"}}},personalDetailsPref:{type:"object",properties:{birthDate:{type:"string",format:"datetime",description:"The birth date of account owner."}}},feedViewPref:{type:"object",required:["feed"],properties:{feed:{type:"string",description:"The URI of the feed, or an identifier which describes the feed."},hideReplies:{type:"boolean",description:"Hide replies in the feed."},hideRepliesByUnfollowed:{type:"boolean",description:"Hide replies in the feed if they are not by followed users.",default:!0},hideRepliesByLikeCount:{type:"integer",description:"Hide replies in the feed if they do not have this number of likes."},hideReposts:{type:"boolean",description:"Hide reposts in the feed."},hideQuotePosts:{type:"boolean",description:"Hide quote posts in the feed."}}},threadViewPref:{type:"object",properties:{sort:{type:"string",description:"Sorting mode for threads.",knownValues:["oldest","newest","most-likes","random","hotness"]},prioritizeFollowedUsers:{type:"boolean",description:"Show followed users at the top of all replies."}}},interestsPref:{type:"object",required:["tags"],properties:{tags:{type:"array",maxLength:100,items:{type:"string",maxLength:640,maxGraphemes:64},description:"A list of tags which describe the account owner's interests gathered during onboarding."}}},mutedWordTarget:{type:"string",knownValues:["content","tag"],maxLength:640,maxGraphemes:64},mutedWord:{type:"object",description:"A word that the account owner has muted.",required:["value","targets"],properties:{id:{type:"string"},value:{type:"string",description:"The muted word itself.",maxLength:1e4,maxGraphemes:1e3},targets:{type:"array",description:"The intended targets of the muted word.",items:{type:"ref",ref:"lex:app.bsky.actor.defs#mutedWordTarget"}},actorTarget:{type:"string",description:"Groups of users to apply the muted word to. If undefined, applies to all users.",knownValues:["all","exclude-following"],default:"all"},expiresAt:{type:"string",format:"datetime",description:"The date and time at which the muted word will expire and no longer be applied."}}},mutedWordsPref:{type:"object",required:["items"],properties:{items:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#mutedWord"},description:"A list of words the account owner has muted."}}},hiddenPostsPref:{type:"object",required:["items"],properties:{items:{type:"array",items:{type:"string",format:"at-uri"},description:"A list of URIs of posts the account owner has hidden."}}},labelersPref:{type:"object",required:["labelers"],properties:{labelers:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#labelerPrefItem"}}}},labelerPrefItem:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},bskyAppStatePref:{description:"A grab bag of state that's specific to the bsky.app program. Third-party apps shouldn't use this.",type:"object",properties:{activeProgressGuide:{type:"ref",ref:"lex:app.bsky.actor.defs#bskyAppProgressGuide"},queuedNudges:{description:"An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user.",type:"array",maxLength:1e3,items:{type:"string",maxLength:100}},nuxs:{description:"Storage for NUXs the user has encountered.",type:"array",maxLength:100,items:{type:"ref",ref:"lex:app.bsky.actor.defs#nux"}}}},bskyAppProgressGuide:{description:"If set, an active progress guide. Once completed, can be set to undefined. Should have unspecced fields tracking progress.",type:"object",required:["guide"],properties:{guide:{type:"string",maxLength:100}}},nux:{type:"object",description:"A new user experiences (NUX) storage object",required:["id","completed"],properties:{id:{type:"string",maxLength:100},completed:{type:"boolean",default:!1},data:{description:"Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters.",type:"string",maxLength:3e3,maxGraphemes:300},expiresAt:{type:"string",format:"datetime",description:"The date and time at which the NUX will expire and should be considered completed."}}},verificationPrefs:{type:"object",description:"Preferences for how verified accounts appear in the app.",required:[],properties:{hideBadges:{description:"Hide the blue check badges for verified accounts and trusted verifiers.",type:"boolean",default:!1}}},postInteractionSettingsPref:{type:"object",description:"Default post interaction settings for the account. These values should be applied as default values when creating new posts. These refs should mirror the threadgate and postgate records exactly.",required:[],properties:{threadgateAllowRules:{description:"Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply.",type:"array",maxLength:5,items:{type:"union",refs:["lex:app.bsky.feed.threadgate#mentionRule","lex:app.bsky.feed.threadgate#followerRule","lex:app.bsky.feed.threadgate#followingRule","lex:app.bsky.feed.threadgate#listRule"]}},postgateEmbeddingRules:{description:"Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",type:"array",maxLength:5,items:{type:"union",refs:["lex:app.bsky.feed.postgate#disableRule"]}}}}
21,statusView:{type:"object",required:["status","record"],properties:{status:{type:"string",description:"The status for the account.",knownValues:["app.bsky.actor.status#live"]},record:{type:"unknown"},embed:{type:"union",description:"An optional embed associated with the status.",refs:["lex:app.bsky.embed.external#view"]},expiresAt:{type:"string",description:"The date when this status will expire. The application might choose to no longer return the status after expiration.",format:"datetime"},isActive:{type:"boolean",description:"True if the status is not expired, false if it is expired. Only present if expiration was set."}}}}},AppBskyActorGetPreferences:{lexicon:1,id:"app.bsky.actor.getPreferences",defs:{main:{type:"query",description:"Get private preferences attached to the current account. Expected use is synchronization between multiple devices, and import/export during account migration. Requires auth.",parameters:{type:"params",properties:{}},output:{encoding:"application/json",schema:{type:"object",required:["preferences"],properties:{preferences:{type:"ref",ref:"lex:app.bsky.actor.defs#preferences"}}}}}}},AppBskyActorGetProfile:{lexicon:1,id:"app.bsky.actor.getProfile",defs:{main:{type:"query",description:"Get detailed profile view of an actor. Does not require auth, but contains relevant metadata with auth.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier",description:"Handle or DID of account to fetch profile of."}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewDetailed"}}}}},AppBskyActorGetProfiles:{lexicon:1,id:"app.bsky.actor.getProfiles",defs:{main:{type:"query",description:"Get detailed profile views of multiple actors.",parameters:{type:"params",required:["actors"],properties:{actors:{type:"array",items:{type:"string",format:"at-identifier"},maxLength:25}}},output:{encoding:"application/json",schema:{type:"object",required:["profiles"],properties:{profiles:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewDetailed"}}}}}}}},AppBskyActorGetSuggestions:{lexicon:1,id:"app.bsky.actor.getSuggestions",defs:{main:{type:"query",description:"Get a list of suggested actors. Expected use is discovery of accounts to follow during new account onboarding.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{cursor:{type:"string"},actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}},recId:{type:"integer",description:"Snowflake for this recommendation, use when submitting recommendation events."}}}}}}},AppBskyActorProfile:{lexicon:1,id:"app.bsky.actor.profile",defs:{main:{type:"record",description:"A declaration of a Bluesky account profile.",key:"literal:self",record:{type:"object",properties:{displayName:{type:"string",maxGraphemes:64,maxLength:640},description:{type:"string",description:"Free-form profile description text.",maxGraphemes:256,maxLength:2560},avatar:{type:"blob",description:"Small image to be displayed next to posts from account. AKA, 'profile picture'",accept:["image/png","image/jpeg"],maxSize:1e6},banner:{type:"blob",description:"Larger horizontal image to display behind profile view.",accept:["image/png","image/jpeg"],maxSize:1e6},labels:{type:"union",description:"Self-label values, specific to the Bluesky application, on the overall account.",refs:["lex:com.atproto.label.defs#selfLabels"]},joinedViaStarterPack:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},pinnedPost:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyActorPutPreferences:{lexicon:1,id:"app.bsky.actor.putPreferences",defs:{main:{type:"procedure",description:"Set the private preferences attached to the account.",input:{encoding:"application/json",schema:{type:"object",required:["preferences"],properties:{preferences:{type:"ref",ref:"lex:app.bsky.actor.defs#preferences"}}}}}}},AppBskyActorSearchActors:{lexicon:1,id:"app.bsky.actor.searchActors",defs:{main:{type:"query",description:"Find actors (profiles) matching search criteria. Does not require auth.",parameters:{type:"params",properties:{term:{type:"string",description:"DEPRECATED: use 'q' instead."},q:{type:"string",description:"Search query string. Syntax, phrase, boolean, and facet
21ing is unspecified, but Lucene query syntax is recommended."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{cursor:{type:"string"},actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyActorSearchActorsTypeahead:{lexicon:1,id:"app.bsky.actor.searchActorsTypeahead",defs:{main:{type:"query",description:"Find actor suggestions for a prefix search term. Expected use is for auto-completion during text field entry. Does not require auth.",parameters:{type:"params",properties:{term:{type:"string",description:"DEPRECATED: use 'q' instead."},q:{type:"string",description:"Search query prefix; not a full query string."},limit:{type:"integer",minimum:1,maximum:100,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"}}}}}}}},AppBskyActorStatus:{lexicon:1,id:"app.bsky.actor.status",defs:{main:{type:"record",description:"A declaration of a Bluesky account status.",key:"literal:self",record:{type:"object",required:["status","createdAt"],properties:{status:{type:"string",description:"The status for the account.",knownValues:["app.bsky.actor.status#live"]},embed:{type:"union",description:"An optional embed associated with the status.",refs:["lex:app.bsky.embed.external"]},durationMinutes:{type:"integer",description:"The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.",minimum:1},createdAt:{type:"string",format:"datetime"}}}},live:{type:"token",description:"Advertises an account as currently offering live content."}}},AppBskyBookmarkCreateBookmark:{lexicon:1,id:"app.bsky.bookmark.createBookmark",defs:{main:{type:"procedure",description:"Creates a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.",input:{encoding:"application/json",schema:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"}}}},errors:[{name:"UnsupportedCollection",description:"The URI to be bookmarked is for an unsupported collection."}]}}},AppBskyBookmarkDefs:{lexicon:1,id:"app.bsky.bookmark.defs",defs:{bookmark:{description:"Object used to store bookmark data in stash.",type:"object",required:["subject"],properties:{subject:{description:"A strong ref to the record to be bookmarked. Currently, only `app.bsky.feed.post` records are supported.",type:"ref",ref:"lex:com.atproto.repo.strongRef"}}},bookmarkView:{type:"object",required:["subject","item"],properties:{subject:{description:"A strong ref to the bookmarked record.",type:"ref",ref:"lex:com.atproto.repo.strongRef"},createdAt:{type:"string",format:"datetime"},item:{type:"union",refs:["lex:app.bsky.feed.defs#blockedPost","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#postView"]}}}}},AppBskyBookmarkDeleteBookmark:{lexicon:1,id:"app.bsky.bookmark.deleteBookmark",defs:{main:{type:"procedure",description:"Deletes a private bookmark for the specified record. Currently, only `app.bsky.feed.post` records are supported. Requires authentication.",input:{encoding:"application/json",schema:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}}},errors:[{name:"UnsupportedCollection",description:"The URI to be bookmarked is for an unsupported collection."}]}}},AppBskyBookmarkGetBookmarks:{lexicon:1,id:"app.bsky.bookmark.getBookmarks",defs:{main:{type:"query",description:"Gets views of records bookmarked by the authenticated user. Requires authentication.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["bookmarks"],properties:{cursor:{type:"string"},bookmarks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.bookmark.defs#bookmarkView"}}}}}}}},AppBskyEmbedDefs:{lexicon:1,id:"app.bsky.embed.defs",defs:{aspectRatio:{type:"object",description:"width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.",required:["width","height"],properties:{width:{type:"integer",minimum:1},height:{type:"integer",minimum:1}}}}},AppBskyEmbedExternal:{lexicon:1,id:"app.bsky.embed.external",defs:{main:{type:"object",description:"A representation of some externally linked content (eg, a URL and 'card'), embedded in a Bluesky record (eg, a post).",required:["external"],properties:{external:{type:"ref",ref:"lex:app.bsky.embed.external#external"}}},external:{type:"object",required:["uri","title","description"],properties:{uri:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},thumb:{type:"blob",accept:["image/*"],maxSize:1e6}}},view:{type:"object",required:["external"],properties:{external:{type:"ref",ref:"lex:app.bsky.embed.external#viewExternal"}}},viewExternal:{type:"object",required:["uri","title","description"],properties:{uri:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},thumb:{type:"string",format:"uri"}}}}},AppBskyEmbedImages:{lexicon:1,id:"app.bsky.embed.images",description:"A set of images embedded in a Bluesky record (eg, a post).",defs:{main:{type:"object",required:["images"],properties:{images:{type:"array",items:{type:"ref",ref:"lex:app.bsky.embed.images#image"},maxLength:4}}},image:{type:"object",required:["image","alt"],properties:{image:{type:"blob",accept:["image/*"],maxSize:1e6},alt:{type:"string",description:"Alt text description of the image, for accessibility."},aspectRatio:{type:"ref",ref:"lex:app.bsky.embed.defs#aspectRatio"}}},view:{type:"object",required:["images"],properties:{images:{type:"array",items:{type:"ref",ref:"lex:app.bsky.embed.images#viewImage"},maxLength:4}}},viewImage:{type:"object",required:["thumb","fullsize","alt"],properties:{thumb:{type:"string",format:"uri",description:"Fully-qualified URL where a thumbnail of the image can be fetched. For example, CDN location provided by the App View."},fullsize:{type:"string",format:"uri",description:"Fully-qualified URL where a large version of the image can be fetched. May or may not be the exact original blob. For example, CDN location provided by the App View."},alt:{type:"string",description:"Alt text description of the image, for accessibility."},aspectRatio:{type:"ref",ref:"lex:app.bsky.embed.defs#aspectRatio"}}}}},AppBskyEmbedRecord:{lexicon:1,id:"app.bsky.embed.record",description:"A representation of a record embedded in a Bluesky record (eg, a post). For example, a quote-post, or sharing a feed generator record.",defs:{main:{type:"object",required:["record"],properties:{record:{type:"ref",ref:"lex:com.atproto.repo.strongRef"}}},view:{type:"object",required:["record"],properties:{record:{type:"union",refs:["lex:app.bsky.embed.record#viewRecord","lex:app.bsky.embed.record#viewNotFound","lex:app.bsky.embed.record#viewBlocked","lex:app.bsky.embed.record#viewDetached","lex:app.bsky.feed.defs#generatorView","lex:app.bsky.graph.defs#listView","lex:app.bsky.labeler.defs#labelerView","lex:app.bsky.graph.defs#starterPackViewBasic"]}}},viewRecord:{type:"object",required:["uri","cid","author","value","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},author:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"}
21,value:{type:"unknown",description:"The record data itself."},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},replyCount:{type:"integer"},repostCount:{type:"integer"},likeCount:{type:"integer"},quoteCount:{type:"integer"},embeds:{type:"array",items:{type:"union",refs:["lex:app.bsky.embed.images#view","lex:app.bsky.embed.video#view","lex:app.bsky.embed.external#view","lex:app.bsky.embed.record#view","lex:app.bsky.embed.recordWithMedia#view"]}},indexedAt:{type:"string",format:"datetime"}}},viewNotFound:{type:"object",required:["uri","notFound"],properties:{uri:{type:"string",format:"at-uri"},notFound:{type:"boolean",const:!0}}},viewBlocked:{type:"object",required:["uri","blocked","author"],properties:{uri:{type:"string",format:"at-uri"},blocked:{type:"boolean",const:!0},author:{type:"ref",ref:"lex:app.bsky.feed.defs#blockedAuthor"}}},viewDetached:{type:"object",required:["uri","detached"],properties:{uri:{type:"string",format:"at-uri"},detached:{type:"boolean",const:!0}}}}},AppBskyEmbedRecordWithMedia:{lexicon:1,id:"app.bsky.embed.recordWithMedia",description:"A representation of a record embedded in a Bluesky record (eg, a post), alongside other compatible embeds. For example, a quote post and image, or a quote post and external URL card.",defs:{main:{type:"object",required:["record","media"],properties:{record:{type:"ref",ref:"lex:app.bsky.embed.record"},media:{type:"union",refs:["lex:app.bsky.embed.images","lex:app.bsky.embed.video","lex:app.bsky.embed.external"]}}},view:{type:"object",required:["record","media"],properties:{record:{type:"ref",ref:"lex:app.bsky.embed.record#view"},media:{type:"union",refs:["lex:app.bsky.embed.images#view","lex:app.bsky.embed.video#view","lex:app.bsky.embed.external#view"]}}}}},AppBskyEmbedVideo:{lexicon:1,id:"app.bsky.embed.video",description:"A video embedded in a Bluesky record (eg, a post).",defs:{main:{type:"object",required:["video"],properties:{video:{type:"blob",description:"The mp4 video file. May be up to 100mb, formerly limited to 50mb.",accept:["video/mp4"],maxSize:1e8},captions:{type:"array",items:{type:"ref",ref:"lex:app.bsky.embed.video#caption"},maxLength:20},alt:{type:"string",description:"Alt text description of the video, for accessibility.",maxGraphemes:1e3,maxLength:1e4},aspectRatio:{type:"ref",ref:"lex:app.bsky.embed.defs#aspectRatio"}}},caption:{type:"object",required:["lang","file"],properties:{lang:{type:"string",format:"language"},file:{type:"blob",accept:["text/vtt"],maxSize:2e4}}},view:{type:"object",required:["cid","playlist"],properties:{cid:{type:"string",format:"cid"},playlist:{type:"string",format:"uri"},thumbnail:{type:"string",format:"uri"},alt:{type:"string",maxGraphemes:1e3,maxLength:1e4},aspectRatio:{type:"ref",ref:"lex:app.bsky.embed.defs#aspectRatio"}}}}},AppBskyFeedDefs:{lexicon:1,id:"app.bsky.feed.defs",defs:{postView:{type:"object",required:["uri","cid","author","record","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},author:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"},record:{type:"unknown"},embed:{type:"union",refs:["lex:app.bsky.embed.images#view","lex:app.bsky.embed.video#view","lex:app.bsky.embed.external#view","lex:app.bsky.embed.record#view","lex:app.bsky.embed.recordWithMedia#view"]},bookmarkCount:{type:"integer"},replyCount:{type:"integer"},repostCount:{type:"integer"},likeCount:{type:"integer"},quoteCount:{type:"integer"},indexedAt:{type:"string",format:"datetime"},viewer:{type:"ref",ref:"lex:app.bsky.feed.defs#viewerState"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},threadgate:{type:"ref",ref:"lex:app.bsky.feed.defs#threadgateView"}}},viewerState:{type:"object",description:"Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.",properties:{repost:{type:"string",format:"at-uri"},like:{type:"string",format:"at-uri"},bookmarked:{type:"boolean"},threadMuted:{type:"boolean"},replyDisabled:{type:"boolean"},embeddingDisabled:{type:"boolean"},pinned:{type:"boolean"}}},threadContext:{type:"object",description:"Metadata about this post within the context of the thread it is in.",properties:{rootAuthorLike:{type:"string",format:"at-uri"}}},feedViewPost:{type:"object",required:["post"],properties:{post:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"},reply:{type:"ref",ref:"lex:app.bsky.feed.defs#replyRef"},reason:{type:"union",refs:["lex:app.bsky.feed.defs#reasonRepost","lex:app.bsky.feed.defs#reasonPin"]},feedContext:{type:"string",description:"Context provided by feed generator that may be passed back alongside interactions.",maxLength:2e3},reqId:{type:"string",description:"Unique identifier per request that may be passed back alongside interactions.",maxLength:100}}},replyRef:{type:"object",required:["root","parent"],properties:{root:{type:"union",refs:["lex:app.bsky.feed.defs#postView","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#blockedPost"]},parent:{type:"union",refs:["lex:app.bsky.feed.defs#postView","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#blockedPost"]},grandparentAuthor:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic",description:"When parent is a reply to another post, this is the author of that post."}}},reasonRepost:{type:"object",required:["by","indexedAt"],properties:{by:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"},uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},indexedAt:{type:"string",format:"datetime"}}},reasonPin:{type:"object",properties:{}},threadViewPost:{type:"object",required:["post"],properties:{post:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"},parent:{type:"union",refs:["lex:app.bsky.feed.defs#threadViewPost","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#blockedPost"]},replies:{type:"array",items:{type:"union",refs:["lex:app.bsky.feed.defs#threadViewPost","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#blockedPost"]}},threadContext:{type:"ref",ref:"lex:app.bsky.feed.defs#threadContext"}}},notFoundPost:{type:"object",required:["uri","notFound"],properties:{uri:{type:"string",format:"at-uri"},notFound:{type:"boolean",const:!0}}},blockedPost:{type:"object",required:["uri","blocked","author"],properties:{uri:{type:"string",format:"at-uri"},blocked:{type:"boolean",const:!0},author:{type:"ref",ref:"lex:app.bsky.feed.defs#blockedAuthor"}}},blockedAuthor:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}
21,viewer:{type:"ref",ref:"lex:app.bsky.actor.defs#viewerState"}}},generatorView:{type:"object",required:["uri","cid","did","creator","displayName","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},did:{type:"string",format:"did"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},displayName:{type:"string"},description:{type:"string",maxGraphemes:300,maxLength:3e3},descriptionFacets:{type:"array",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},avatar:{type:"string",format:"uri"},likeCount:{type:"integer",minimum:0},acceptsInteractions:{type:"boolean"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},viewer:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorViewerState"},contentMode:{type:"string",knownValues:["app.bsky.feed.defs#contentModeUnspecified","app.bsky.feed.defs#contentModeVideo"]},indexedAt:{type:"string",format:"datetime"}}},generatorViewerState:{type:"object",properties:{like:{type:"string",format:"at-uri"}}},skeletonFeedPost:{type:"object",required:["post"],properties:{post:{type:"string",format:"at-uri"},reason:{type:"union",refs:["lex:app.bsky.feed.defs#skeletonReasonRepost","lex:app.bsky.feed.defs#skeletonReasonPin"]},feedContext:{type:"string",description:"Context that will be passed through to client and may be passed to feed generator back alongside interactions.",maxLength:2e3}}},skeletonReasonRepost:{type:"object",required:["repost"],properties:{repost:{type:"string",format:"at-uri"}}},skeletonReasonPin:{type:"object",properties:{}},threadgateView:{type:"object",properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},record:{type:"unknown"},lists:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewBasic"}}}},interaction:{type:"object",properties:{item:{type:"string",format:"at-uri"},event:{type:"string",knownValues:["app.bsky.feed.defs#requestLess","app.bsky.feed.defs#requestMore","app.bsky.feed.defs#clickthroughItem","app.bsky.feed.defs#clickthroughAuthor","app.bsky.feed.defs#clickthroughReposter","app.bsky.feed.defs#clickthroughEmbed","app.bsky.feed.defs#interactionSeen","app.bsky.feed.defs#interactionLike","app.bsky.feed.defs#interactionRepost","app.bsky.feed.defs#interactionReply","app.bsky.feed.defs#interactionQuote","app.bsky.feed.defs#interactionShare"]},feedContext:{type:"string",description:"Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.",maxLength:2e3},reqId:{type:"string",description:"Unique identifier per request that may be passed back alongside interactions.",maxLength:100}}},requestLess:{type:"token",description:"Request that less content like the given feed item be shown in the feed"},requestMore:{type:"token",description:"Request that more content like the given feed item be shown in the feed"},clickthroughItem:{type:"token",description:"User clicked through to the feed item"},clickthroughAuthor:{type:"token",description:"User clicked through to the author of the feed item"},clickthroughReposter:{type:"token",description:"User clicked through to the reposter of the feed item"},clickthroughEmbed:{type:"token",description:"User clicked through to the embedded content of the feed item"},contentModeUnspecified:{type:"token",description:"Declares the feed generator returns any types of posts."},contentModeVideo:{type:"token",description:"Declares the feed generator returns posts containing app.bsky.embed.video embeds."},interactionSeen:{type:"token",description:"Feed item was seen by user"},interactionLike:{type:"token",description:"User liked the feed item"},interactionRepost:{type:"token",description:"User reposted the feed item"},interactionReply:{type:"token",description:"User replied to the feed item"},interactionQuote:{type:"token",description:"User quoted the feed item"},interactionShare:{type:"token",description:"User shared the feed item"}}},AppBskyFeedDescribeFeedGenerator:{lexicon:1,id:"app.bsky.feed.describeFeedGenerator",defs:{main:{type:"query",description:"Get information about a feed generator, including policies and offered feed URIs. Does not require auth; implemented by Feed Generator services (not App View).",output:{encoding:"application/json",schema:{type:"object",required:["did","feeds"],properties:{did:{type:"string",format:"did"},feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.describeFeedGenerator#feed"}},links:{type:"ref",ref:"lex:app.bsky.feed.describeFeedGenerator#links"}}}}},feed:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}},links:{type:"object",properties:{privacyPolicy:{type:"string"},termsOfService:{type:"string"}}}}},AppBskyFeedGenerator:{lexicon:1,id:"app.bsky.feed.generator",defs:{main:{type:"record",description:"Record declaring of the existence of a feed generator, and containing metadata about it. The record can exist in any repository.",key:"any",re
21cord:{type:"object",required:["did","displayName","createdAt"],properties:{did:{type:"string",format:"did"},displayName:{type:"string",maxGraphemes:24,maxLength:240},description:{type:"string",maxGraphemes:300,maxLength:3e3},descriptionFacets:{type:"array",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},avatar:{type:"blob",accept:["image/png","image/jpeg"],maxSize:1e6},acceptsInteractions:{type:"boolean",description:"Declaration that a feed accepts feedback interactions from a client through app.bsky.feed.sendInteractions"},labels:{type:"union",description:"Self-label values",refs:["lex:com.atproto.label.defs#selfLabels"]},contentMode:{type:"string",knownValues:["app.bsky.feed.defs#contentModeUnspecified","app.bsky.feed.defs#contentModeVideo"]},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyFeedGetActorFeeds:{lexicon:1,id:"app.bsky.feed.getActorFeeds",defs:{main:{type:"query",description:"Get a list of feeds (feed generator records) created by the actor (in the actor's repo).",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{cursor:{type:"string"},feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}}}}}}}},AppBskyFeedGetActorLikes:{lexicon:1,id:"app.bsky.feed.getActorLikes",defs:{main:{type:"query",description:"Get a list of posts liked by an actor. Requires auth, actor must be the requesting account.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#feedViewPost"}}}}},errors:[{name:"BlockedActor"},{name:"BlockedByActor"}]}}},AppBskyFeedGetAuthorFeed:{lexicon:1,id:"app.bsky.feed.getAuthorFeed",defs:{main:{type:"query",description:"Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},filter:{type:"string",description:"Combinations of post/repost types to include in response.",knownValues:["posts_with_replies","posts_no_replies","posts_with_media","posts_and_author_threads","posts_with_video"],default:"posts_with_replies"},includePins:{type:"boolean",default:!1}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#feedViewPost"}}}}},errors:[{name:"BlockedActor"},{name:"BlockedByActor"}]}}},AppBskyFeedGetFeed:{lexicon:1,id:"app.bsky.feed.getFeed",defs:{main:{type:"query",description:"Get a hydrated feed from an actor's selected feed generator. Implemented by App View.",parameters:{type:"params",required:["feed"],properties:{feed:{type:"string",format:"at-uri"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#feedViewPost"}}}}},errors:[{name:"UnknownFeed"}]}}},AppBskyFeedGetFeedGenerator:{lexicon:1,id:"app.bsky.feed.getFeedGenerator",defs:{main:{type:"query",description:"Get information about a feed generator. Implemented by AppView.",parameters:{type:"params",required:["feed"],properties:{feed:{type:"string",format:"at-uri",description:"AT-URI of the feed generator record."}}},output:{encoding:"application/json",schema:{type:"object",required:["view","isOnline","isValid"],properties:{view:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"},isOnline:{type:"boolean",description:"Indicates whether the feed generator service has been online recently, or else seems to be inactive."},isValid:{type:"boolean",description:"Indicates whether the feed generator service is compatible with the record declaration."}}}}}}},AppBskyFeedGetFeedGenerators:{lexicon:1,id:"app.bsky.feed.getFeedGenerators",defs:{main:{type:"query",description:"Get information about a list of feed generators.",parameters:{type:"params",required:["feeds"],properties:{feeds:{type:"array",items:{type:"string",format:"at-uri"}}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}}}}}}}},AppBskyFeedGetFeedSkeleton:{lexicon:1,id:"app.bsky.feed.getFeedSkeleton",defs:{main:{type:"query",description:"Get a skeleton of a feed provided by a feed generator. Auth is optional, depending on provider requirements, and provides the DID of the requester. Implemented by Feed Generator Service.",parameters:{type:"params",required:["feed"],properties:{feed:{type:"string",format:"at-uri",description:"Reference to feed generator record describing the specific feed being requested."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#skeletonFeedPost"}},reqId:{type:"string",description:"Unique identifier per request that may be passed back alongside interactions.",maxLength:100}}}},errors:[{name:"UnknownFeed"}]}}},AppBskyFeedGetLikes:{lexicon:1,id:"app.bsky.feed.getLikes",defs:{main:{type:"query",description:"Get like records which reference a subject (by AT-URI and CID).",parameters:{type:"params",required:["uri"],properties:{uri:{type:"string",format:"at-uri",description:"AT-URI of the subject (eg, a post record)."},cid:{type:"string",format:"cid",description:"CID of the subject record (aka, specific version of record), to filter likes."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","likes"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},cursor:{type:"string"},likes:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.getLikes#like"}}}}}},like:{type:"object",required:["indexedAt","createdAt","actor"],properties:{indexedAt:{type:"string",format:"datetime"},createdAt:{type:"string",format:"datetime"},actor:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}},AppBskyFeedGetListFeed:{lexicon:1,id:"app.bsky.feed.getListFeed",defs:{main:{type:"query",description:"Get a feed of recent posts from a list (posts and reposts from any actors on the list). Does not require auth.",parameters:{type:"params",required:["list"],properties:{list:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the list record."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#feedViewPost"}}}}},errors:[{name:"UnknownList"}]}}},AppBskyFeedGetPostThread:{lexicon:1,id:"app.bsky.feed.getPostThread",defs:{main:{type:"query",description:"Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.",parameters:{type:"params",required:["uri"],properties:{uri:{type:"string",format:"at-uri",description:"Reference (AT-URI) to post record."},depth:{type:"integer",description:"How many levels of reply depth should be included in response.",default:6,minimum:0,maximum:1e3},parentHeight:{type:"integer",description:"How many levels of parent (and grandparent, etc) post to include.",default:80,minimum:0,maximum:1e3}}},output:{encoding:"application/json",schema:{type:"object",required:["thread"],properties:{thread:{type:"union",refs:["lex:app.bsky.feed.defs#threadViewPost","lex:app.bsky.feed.defs#notFoundPost","lex:app.bsky.feed.defs#blockedPost"]},threadgate:{type:"ref",ref:"lex:app.bsky.feed.defs#threadgateView"}}}},errors:[{name:"NotFound"}]}}},AppBskyFeedGetPosts:{lexicon:1,id:"app.bsky.feed.getPosts",defs:{main:{type:"query",description:"Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",parameters:{type:"params",required:["uris"],properties:{uris:{type:"array",description:"List of post AT-URIs to return hydrated views for.",items:{type:"string",format:"at-uri"},maxLength:25}}},output:{encoding:"application/json",schema:{type:"object",required:["posts"],properties:{posts:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"}}}}}}}},AppBskyFeedGetQuotes:{lexicon:1,id:"app.bsky.feed.getQuotes",defs:{main:{type:"query",description:"Get a list of quotes for a given post.",parameters:{type:"params",required:["uri"],properties:{uri:{type:"string",format:"at-uri",description:"Reference (AT-URI) of post record"},cid:{type:"string",format:"cid",description:"If supplied, filters to quotes of specific version (by CID) of the post record."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","posts"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},cursor:{type:"string"},posts:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"}}}}}}}},AppBskyFeedGetRepostedBy:{lexicon:1,id:"app.bsky.feed.getRepostedBy",defs:{main:{type:"query",description:"Get a list of reposts for a given post.",parameters:{type:"params",required:["uri"],properties:{uri:{type:"string",format:"at-uri",description:"Reference (AT-URI) of post record"},cid:{type:"string",format:"cid",description:"If supplied, filters to reposts of specific version (by CID) of the post record."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","repostedBy"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},cursor:{type:"string"},repostedBy:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyFeedGetSuggestedFeeds:{lexicon:1,id:"app.bsky.feed.getSuggestedFeeds",defs:{main:{type:"query",description:"Get a list of suggested feeds (feed generators) for the requesting account.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{cursor:{type:"string"},feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}}}}}}}},AppBskyFeedGetTimeline:{lexicon:1,id:"app.bsky.feed.getTimeline",def
21s:{main:{type:"query",description:"Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.",parameters:{type:"params",properties:{algorithm:{type:"string",description:"Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feed"],properties:{cursor:{type:"string"},feed:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#feedViewPost"}}}}}}}},AppBskyFeedLike:{lexicon:1,id:"app.bsky.feed.like",defs:{main:{type:"record",description:"Record declaring a 'like' of a piece of subject content.",key:"tid",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},createdAt:{type:"string",format:"datetime"},via:{type:"ref",ref:"lex:com.atproto.repo.strongRef"}}}}}},AppBskyFeedPost:{lexicon:1,id:"app.bsky.feed.post",defs:{main:{type:"record",description:"Record containing a Bluesky post.",key:"tid",record:{type:"object",required:["text","createdAt"],properties:{text:{type:"string",maxLength:3e3,maxGraphemes:300,description:"The primary post content. May be an empty string, if there are embeds."},entities:{type:"array",description:"DEPRECATED: replaced by app.bsky.richtext.facet.",items:{type:"ref",ref:"lex:app.bsky.feed.post#entity"}},facets:{type:"array",description:"Annotations of text (mentions, URLs, hashtags, etc)",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},reply:{type:"ref",ref:"lex:app.bsky.feed.post#replyRef"},embed:{type:"union",refs:["lex:app.bsky.embed.images","lex:app.bsky.embed.video","lex:app.bsky.embed.external","lex:app.bsky.embed.record","lex:app.bsky.embed.recordWithMedia"]},langs:{type:"array",description:"Indicates human language of post primary text content.",maxLength:3,items:{type:"string",format:"language"}},labels:{type:"union",description:"Self-label values for this post. Effectively content warnings.",refs:["lex:com.atproto.label.defs#selfLabels"]},tags:{type:"array",description:"Additional hashtags, in addition to any included in post text and facets.",maxLength:8,items:{type:"string",maxLength:640,maxGraphemes:64}},createdAt:{type:"string",format:"datetime",description:"Client-declared timestamp when this post was originally created."}}}},replyRef:{type:"object",required:["root","parent"],properties:{root:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},parent:{type:"ref",ref:"lex:com.atproto.repo.strongRef"}}},entity:{type:"object",description:"Deprecated: use facets instead.",required:["index","type","value"],properties:{index:{type:"ref",ref:"lex:app.bsky.feed.post#textSlice"},type:{type:"string",description:"Expected values are 'mention' and 'link'."},value:{type:"string"}}},textSlice:{type:"object",description:"Deprecated. Use app.bsky.richtext instead -- A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings.",required:["start","end"],properties:{start:{type:"integer",minimum:0},end:{type:"integer",minimum:0}}}}},AppBskyFeedPostgate:{lexicon:1,id:"app.bsky.feed.postgate",defs:{main:{type:"record",key:"tid",description:"Record defining interaction rules for a post. The record key (rkey) of the postgate record must match the record key of the post, and that record must be in the same repository.",record:{type:"object",required:["post","createdAt"],properties:{createdAt:{type:"string",format:"datetime"},post:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the post record."},detachedEmbeddingUris:{type:"array",maxLength:50,items:{type:"string",format:"at-uri"},description:"List of AT-URIs embedding this post that the author has detached from."},embeddingRules:{description:"List of rules defining who can embed this post. If value is an empty array or is undefined, no particular rules apply and anyone can embed.",type:"array",maxLength:5,items:{type:"union",refs:["lex:app.bsky.feed.postgate#disableRule"]}}}}},disableRule:{type:"object",description:"Disables embedding of this post.",properties:{}}}},AppBskyFeedRepost:{lexicon:1,id:"app.bsky.feed.repost",defs:{main:{description:"Record representing a 'repost' of an existing Bluesky post.",type:"record",key:"tid",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"ref",ref:"lex:com.atproto.repo.strongRef"},createdAt:{type:"string",format:"datetime"},via:{type:"ref",ref:"lex:com.atproto.repo.strongRef"}}}}}},AppBskyFeedSearchPosts:{lexicon:1,id:"app.bsky.feed.searchPosts",defs:{main:{type:"query",description:"Find posts matching search criteria, returning views of those posts. Note that this API endpoint may require authentication (eg, not public) for some service providers and implementations.",parameters:{type:"params",required:["q"],properties:{q:{type:"string",description:"Search query string;
21 syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended."},sort:{type:"string",knownValues:["top","latest"],default:"latest",description:"Specifies the ranking order of results."},since:{type:"string",description:"Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)."},until:{type:"string",description:"Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)."},mentions:{type:"string",format:"at-identifier",description:"Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions."},author:{type:"string",format:"at-identifier",description:"Filter to posts by the given account. Handles are resolved to DID before query-time."},lang:{type:"string",format:"language",description:"Filter to posts in the given language. Expected to be based on post language field, though server may override language detection."},domain:{type:"string",description:"Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization."},url:{type:"string",format:"uri",description:"Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching."},tag:{type:"array",items:{type:"string",maxLength:640,maxGraphemes:64},description:"Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string",description:"Optional pagination mechanism; may not necessarily allow scrolling through entire result set."}}},output:{encoding:"application/json",schema:{type:"object",required:["posts"],properties:{cursor:{type:"string"},hitsTotal:{type:"integer",description:"Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."},posts:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"}}}}},errors:[{name:"BadQueryString"}]}}},AppBskyFeedSendInteractions:{lexicon:1,id:"app.bsky.feed.sendInteractions",defs:{main:{type:"procedure",description:"Send information about interactions with feed items back to the feed generator that served them.",input:{encoding:"application/json",schema:{type:"object",required:["interactions"],properties:{interactions:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#interaction"}}}}},output:{encoding:"application/json",schema:{type:"object",properties:{}}}}}},AppBskyFeedThreadgate:{lexicon:1,id:"app.bsky.feed.threadgate",defs:{main:{type:"record",key:"tid",description:"Record defining interaction gating rules for a thread (aka, reply controls). The record key (rkey) of the threadgate record must match the record key of the thread's root post, and that record must be in the same repository.",record:{type:"object",required:["post","createdAt"],properties:{post:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the post record."},allow:{description:"List of rules defining who can reply to this post. If value is an empty array, no one can reply. If value is undefined, anyone can reply.",type:"array",maxLength:5,items:{type:"union",refs:["lex:app.bsky.feed.threadgate#mentionRule","lex:app.bsky.feed.threadgate#followerRule","lex:app.bsky.feed.threadgate#followingRule","lex:app.bsky.feed.threadgate#listRule"]}},createdAt:{type:"string",format:"datetime"},hiddenReplies:{type:"array",maxLength:50,items:{type:"string",format:"at-uri"},description:"List of hidden reply URIs."}}}},mentionRule:{type:"object",description:"Allow replies from actors mentioned in your post.",properties:{}},followerRule:{type:"object",description:"Allow replies from actors who follow you.",properties:{}},followingRule:{type:"object",description:"Allow replies from actors you follow.",properties:{}},listRule:{type:"object",description:"Allow replies from actors on a list.",required:["list"],properties:{list:{type:"string",format:"at-uri"}}}}},AppBskyGraphBlock:{lexicon:1,id:"app.bsky.graph.block",defs:{main:{type:"record",description:"Record declaring a 'block' relationship against another account. NOTE: blocks are public in Bluesky; see blog posts for details.",key:"tid",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"string",format:"did",description:"DID of the account to be blocked."},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyGraphDefs:{lexicon:1,id:"app.bsky.graph.defs",defs:{listViewBasic:{type:"object",required:["uri","cid","name","purpose"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},name:{type:"string",maxLength:64,minLength:1},purpose:{type:"ref",ref:"lex:app.bsky.graph.defs#listPurpose"},avatar:{type:"string",format:"uri"},listItemCount:{type:"integer",minimum:0},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},viewer:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewerState"},indexedAt:{type:"string",format:"datetime"}}},listView:{type:"object",required:["uri","cid","creator","name","purpose","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},name:{type:"string",maxLength:64,minLength:1},purpose:{type:"ref",ref:"lex:app.bsky.graph.defs#listPurpose"},description:{type:"string",maxGraphemes:300,maxLength:3e3},descriptionFacets:{type:"array",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},avatar:{type:"string",format:"uri"},listItemCount:{type:"integer",minimum:0},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},viewer:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewerState"},indexedAt:{type:"string",format:"datetime"}}},listItemView:{type:"object",required:["uri","subject"],properties:{uri:{type:"string",format:"at-uri"},subject:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}},starterPackView:{type:"object",required:["uri","cid","record","creator","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},record:{type:"unknown"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"},list:{type:"ref",ref:"lex:app.bsky.graph.defs#listViewBasic"},listItemsSample:{type:"array",maxLength:12,items:{type:"ref",ref:"lex:app.bsky.graph.defs#listItemView"}},feeds:{type:"array",maxLength:3,items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}},joinedWeekCount:{type:"integer",minimum:0},joinedAllTimeCount:{type:"integer",minimum:0},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},indexedAt:{type:"string",format:"datetime"}}},starterPackViewBasic:{type:"object",required:["uri","cid","record","creator","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},record:{type:"unknown"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"},listItemCount:{type:"integer",minimum:0},joinedWeekCount:{type:"integer",minimum:0},joinedAllTimeCount:{type:"integer",minimum:0},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},indexedAt:{type:"string",format:"datetime"}}},listPurpose:{type:"string",knownValues:["app.bsky.graph.defs#modlist","app.bsky.graph.defs#curatelist","app.bsky.graph.defs#referencelist"]},modlist:{type:"token",description:"A list of actors to apply an aggregate moderation action (mute/block) on."},curatelist:{type:"token",description:"A list of actors used for curation purposes such as list feeds or interaction gating."},referencelist:{type:"token",description:"A list of actors used for only for reference purposes such as within a starter pack."},listViewerState:{type:"object",properties:{muted:{type:"boolean"},blocked:{type:"string",format:"at-uri"}}},notFoundActor:{type:"object",description:"indicates that a handle or DID could not be resolved",required:["actor","notFound"],properties:{actor:{type:"string",format:"at-identifier"},notFound:{type:"boolean",const:!0}}},relationship:{type:"object",description:"lists the bi-directional graph relationships between one actor (not indicated in the object), and the target actors (the DID included in the object)",required:["did"],properties:{did:{type:"string",format:"did"},following:{type:"string",format:"at-uri",description:"if the actor follows this DID, this is the AT-URI of the follow record"},followedBy:{type:"string",format:"at-uri",description:"if the actor is followed by this DID, contains the AT-URI of the follow record"}}}}},AppBskyGraphFollow:{lexicon:1,id:"app.bsky.graph.follow",defs:{main:{type:"record",description:"Record declaring a social 'follow' relationship of another account. Duplicate follows will be ignored by the AppView.",key:"tid",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"string",format:"did"},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyGraphGetActorStarterPacks:{lexicon:1,id:"app.bsky.graph.getActorStarterPacks",defs:{main:{type:"query",description:"Get a list of starter packs created by the actor.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{cursor:{type:"string"},starterPacks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackViewBasic"}}}}}}}},AppBskyGraphGetBlocks:{lexicon:1,id:"app.bsky.graph.getBlocks",defs:{main:{type:"query",description:"Enumerates which accounts the requesting account is currently blocking. Requires auth.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["blocks"],properties:{cursor:{type:"string"},blocks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyGraphGetFollowers:{lexicon:1,id:"app.bsky.graph.getFollowers",defs:{main:{type:"query",description:"Enumerates accounts which follow a specified account (
21actor).",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["subject","followers"],properties:{subject:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},cursor:{type:"string"},followers:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyGraphGetFollows:{lexicon:1,id:"app.bsky.graph.getFollows",defs:{main:{type:"query",description:"Enumerates accounts which a specified account (actor) follows.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["subject","follows"],properties:{subject:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},cursor:{type:"string"},follows:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyGraphGetKnownFollowers:{lexicon:1,id:"app.bsky.graph.getKnownFollowers",defs:{main:{type:"query",description:"Enumerates accounts which follow a specified account (actor) and are followed by the viewer.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["subject","followers"],properties:{subject:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},cursor:{type:"string"},followers:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyGraphGetList:{lexicon:1,id:"app.bsky.graph.getList",defs:{main:{type:"query",description:"Gets a 'view' (with additional context) of a specified list.",parameters:{type:"params",required:["list"],properties:{list:{type:"string",format:"at-uri",description:"Reference (AT-URI) of the list record to hydrate."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["list","items"],properties:{cursor:{type:"string"},list:{type:"ref",ref:"lex:app.bsky.graph.defs#listView"},items:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#listItemView"}}}}}}}},AppBskyGraphGetListBlocks:{lexicon:1,id:"app.bsky.graph.getListBlocks",defs:{main:{type:"query",description:"Get mod lists that the requesting account (actor) is blocking. Requires auth.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["lists"],properties:{cursor:{type:"string"},lists:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#listView"}}}}}}}},AppBskyGraphGetListMutes:{lexicon:1,id:"app.bsky.graph.getListMutes",defs:{main:{type:"query",description:"Enumerates mod lists that the requesting account (actor) currently has muted. Requires auth.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["lists"],properties:{cursor:{type:"string"},lists:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#listView"}}}}}}}},AppBskyGraphGetLists:{lexicon:1,id:"app.bsky.graph.getLists",defs:{main:{type:"query",description:"Enumerates the lists created by a specified account (actor).",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier",description:"The account (actor) to enumerate lists from."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},purposes:{type:"array",description:"Optional filter by list purpose. If not specified, all supported types are returned.",items:{type:"string",knownValues:["modlist","curatelist"]}}}},output:{encoding:"application/json",schema:{type:"object",required:["lists"],properties:{cursor:{type:"string"},lists:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#listView"}}}}}}}},AppBskyGraphGetListsWithMembership:{lexicon:1,id:"app.bsky.graph.getListsWithMembership",defs:{main:{type:"query",description:"Enumerates the lists created by the session user, and includes membership information about `actor` in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier",description:"The account (
21actor) to check for membership."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},purposes:{type:"array",description:"Optional filter by list purpose. If not specified, all supported types are returned.",items:{type:"string",knownValues:["modlist","curatelist"]}}}},output:{encoding:"application/json",schema:{type:"object",required:["listsWithMembership"],properties:{cursor:{type:"string"},listsWithMembership:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.getListsWithMembership#listWithMembership"}}}}}},listWithMembership:{description:"A list and an optional list item indicating membership of a target user to that list.",type:"object",required:["list"],properties:{list:{type:"ref",ref:"lex:app.bsky.graph.defs#listView"},listItem:{type:"ref",ref:"lex:app.bsky.graph.defs#listItemView"}}}}},AppBskyGraphGetMutes:{lexicon:1,id:"app.bsky.graph.getMutes",defs:{main:{type:"query",description:"Enumerates accounts that the requesting account (actor) currently has muted. Requires auth.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["mutes"],properties:{cursor:{type:"string"},mutes:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyGraphGetRelationships:{lexicon:1,id:"app.bsky.graph.getRelationships",defs:{main:{type:"query",description:"Enumerates public relationships between one account, and a list of other accounts. Does not require auth.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier",description:"Primary account requesting relationships for."},others:{type:"array",description:"List of 'other' accounts to be related back to the primary.",maxLength:30,items:{type:"string",format:"at-identifier"}}}},output:{encoding:"application/json",schema:{type:"object",required:["relationships"],properties:{actor:{type:"string",format:"did"},relationships:{type:"array",items:{type:"union",refs:["lex:app.bsky.graph.defs#relationship","lex:app.bsky.graph.defs#notFoundActor"]}}}}},errors:[{name:"ActorNotFound",description:"the primary actor at-identifier could not be resolved"}]}}},AppBskyGraphGetStarterPack:{lexicon:1,id:"app.bsky.graph.getStarterPack",defs:{main:{type:"query",description:"Gets a view of a starter pack.",parameters:{type:"params",required:["starterPack"],properties:{starterPack:{type:"string",format:"at-uri",description:"Reference (AT-URI) of the starter pack record."}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPack"],properties:{starterPack:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackView"}}}}}}},AppBskyGraphGetStarterPacks:{lexicon:1,id:"app.bsky.graph.getStarterPacks",defs:{main:{type:"query",description:"Get views for a list of starter packs.",parameters:{type:"params",required:["uris"],properties:{uris:{type:"array",items:{type:"string",format:"at-uri"},maxLength:25}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{starterPacks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackViewBasic"}}}}}}}},AppBskyGraphGetStarterPacksWithMembership:{lexicon:1,id:"app.bsky.graph.getStarterPacksWithMembership",defs:{main:{type:"query",description:"Enumerates the starter packs created by the session user, and includes membership information about `actor` in those starter packs. Requires auth.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier",description:"The account (actor) to check for membership."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacksWithMembership"],properties:{cursor:{type:"string"},starterPacksWithMembership:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership"}}}}}},starterPackWithMembership:{description:"A starter pack and an optional list item indicating membership of a target user to that starter pack.",type:"object",required:["starterPack"],properties:{starterPack:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackView"},listItem:{type:"ref",ref:"lex:app.bsky.graph.defs#listItemView"}}}}},AppBskyGraphGetSuggestedFollowsByActor:{lexicon:1,id:"app.bsky.graph.getSuggestedFollowsByActor",defs:{main:{type:"query",description:"Enumerates follows similar to a given account (
21actor). Expected use is to recommend additional accounts immediately after following one account.",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"}}},output:{encoding:"application/json",schema:{type:"object",required:["suggestions"],properties:{suggestions:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}},isFallback:{type:"boolean",description:"If true, response has fallen-back to generic results, and is not scoped using relativeToDid",default:!1},recId:{type:"integer",description:"Snowflake for this recommendation, use when submitting recommendation events."}}}}}}},AppBskyGraphList:{lexicon:1,id:"app.bsky.graph.list",defs:{main:{type:"record",description:"Record representing a list of accounts (actors). Scope includes both moderation-oriented lists and curration-oriented lists.",key:"tid",record:{type:"object",required:["name","purpose","createdAt"],properties:{purpose:{type:"ref",description:"Defines the purpose of the list (aka, moderation-oriented or curration-oriented)",ref:"lex:app.bsky.graph.defs#listPurpose"},name:{type:"string",maxLength:64,minLength:1,description:"Display name for list; can not be empty."},description:{type:"string",maxGraphemes:300,maxLength:3e3},descriptionFacets:{type:"array",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},avatar:{type:"blob",accept:["image/png","image/jpeg"],maxSize:1e6},labels:{type:"union",refs:["lex:com.atproto.label.defs#selfLabels"]},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyGraphListblock:{lexicon:1,id:"app.bsky.graph.listblock",defs:{main:{type:"record",description:"Record representing a block relationship against an entire an entire list of accounts (actors).",key:"tid",record:{type:"object",required:["subject","createdAt"],properties:{subject:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the mod list record."},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyGraphListitem:{lexicon:1,id:"app.bsky.graph.listitem",defs:{main:{type:"record",description:"Record representing an account's inclusion on a specific list. The AppView will ignore duplicate listitem records.",key:"tid",record:{type:"object",required:["subject","list","createdAt"],properties:{subject:{type:"string",format:"did",description:"The account which is included on the list."},list:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the list record (app.bsky.graph.list)."},createdAt:{type:"string",format:"datetime"}}}}}},AppBskyGraphMuteActor:{lexicon:1,id:"app.bsky.graph.muteActor",defs:{main:{type:"procedure",description:"Creates a mute relationship for the specified account. Mutes are private in Bluesky. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"}}}}}}},AppBskyGraphMuteActorList:{lexicon:1,id:"app.bsky.graph.muteActorList",defs:{main:{type:"procedure",description:"Creates a mute relationship for the specified list of accounts. Mutes are private in Bluesky. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["list"],properties:{list:{type:"string",format:"at-uri"}}}}}}},AppBskyGraphMuteThread:{lexicon:1,id:"app.bsky.graph.muteThread",defs:{main:{type:"procedure",description:"Mutes a thread preventing notifications from the thread and any of its children. Mutes are private in Bluesky. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["root"],properties:{root:{type:"string",format:"at-uri"}}}}}}},AppBskyGraphSearchStarterPacks:{lexicon:1,id:"app.bsky.graph.searchStarterPacks",defs:{main:{type:"query",description:"Find starter packs matching search criteria. Does not require auth.",parameters:{type:"params",required:["q"],properties:{q:{type:"string",description:"Search query string. Syntax, phrase, boolean, and facet
21ing is unspecified, but Lucene query syntax is recommended."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{cursor:{type:"string"},starterPacks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackViewBasic"}}}}}}}},AppBskyGraphStarterpack:{lexicon:1,id:"app.bsky.graph.starterpack",defs:{main:{type:"record",description:"Record defining a starter pack of actors and feeds for new users.",key:"tid",record:{type:"object",required:["name","list","createdAt"],properties:{name:{type:"string",maxGraphemes:50,maxLength:500,minLength:1,description:"Display name for starter pack; can not be empty."},description:{type:"string",maxGraphemes:300,maxLength:3e3},descriptionFacets:{type:"array",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},list:{type:"string",format:"at-uri",description:"Reference (AT-URI) to the list record."},feeds:{type:"array",maxLength:3,items:{type:"ref",ref:"lex:app.bsky.graph.starterpack#feedItem"}},createdAt:{type:"string",format:"datetime"}}}},feedItem:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}}}},AppBskyGraphUnmuteActor:{lexicon:1,id:"app.bsky.graph.unmuteActor",defs:{main:{type:"procedure",description:"Unmutes the specified account. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["actor"],properties:{actor:{type:"string",format:"at-identifier"}}}}}}},AppBskyGraphUnmuteActorList:{lexicon:1,id:"app.bsky.graph.unmuteActorList",defs:{main:{type:"procedure",description:"Unmutes the specified list of accounts. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["list"],properties:{list:{type:"string",format:"at-uri"}}}}}}},AppBskyGraphUnmuteThread:{lexicon:1,id:"app.bsky.graph.unmuteThread",defs:{main:{type:"procedure",description:"Unmutes the specified thread. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["root"],properties:{root:{type:"string",format:"at-uri"}}}}}}},AppBskyGraphVerification:{lexicon:1,id:"app.bsky.graph.verification",defs:{main:{type:"record",description:"Record declaring a verification relationship between two accounts. Verifications are only considered valid by an app if issued by an account the app considers trusted.",key:"tid",record:{type:"object",required:["subject","handle","displayName","createdAt"],properties:{subject:{description:"DID of the subject the verification applies to.",type:"string",format:"did"},handle:{description:"Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.",type:"string",format:"handle"},displayName:{description:"Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying.",type:"string"},createdAt:{description:"Date of when the verification was created.",type:"string",format:"datetime"}}}}}},AppBskyLabelerDefs:{lexicon:1,id:"app.bsky.labeler.defs",defs:{labelerView:{type:"object",required:["uri","cid","creator","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},likeCount:{type:"integer",minimum:0},viewer:{type:"ref",ref:"lex:app.bsky.labeler.defs#labelerViewerState"},indexedAt:{type:"string",format:"datetime"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}}}},labelerViewDetailed:{type:"object",required:["uri","cid","creator","policies","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},creator:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},policies:{type:"ref",ref:"lex:app.bsky.labeler.defs#labelerPolicies"},likeCount:{type:"integer",minimum:0},viewer:{type:"ref",ref:"lex:app.bsky.labeler.defs#labelerViewerState"},indexedAt:{type:"string",format:"datetime"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},reasonTypes:{description:"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",type:"array",items:{type:"ref",ref:"lex:com.atproto.moderation.defs#reasonType"}},subjectTypes:{description:"The set of subject types (account, record, etc) this
21service accepts reports on.",type:"array",items:{type:"ref",ref:"lex:com.atproto.moderation.defs#subjectType"}},subjectCollections:{type:"array",description:"Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",items:{type:"string",format:"nsid"}}}},labelerViewerState:{type:"object",properties:{like:{type:"string",format:"at-uri"}}},labelerPolicies:{type:"object",required:["labelValues"],properties:{labelValues:{type:"array",description:"The label values which this labeler publishes. May include global or custom labels.",items:{type:"ref",ref:"lex:com.atproto.label.defs#labelValue"}},labelValueDefinitions:{type:"array",description:"Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.",items:{type:"ref",ref:"lex:com.atproto.label.defs#labelValueDefinition"}}}}}},AppBskyLabelerGetServices:{lexicon:1,id:"app.bsky.labeler.getServices",defs:{main:{type:"query",description:"Get information about a list of labeler services.",parameters:{type:"params",required:["dids"],properties:{dids:{type:"array",items:{type:"string",format:"did"}},detailed:{type:"boolean",default:!1}}},output:{encoding:"application/json",schema:{type:"object",required:["views"],properties:{views:{type:"array",items:{type:"union",refs:["lex:app.bsky.labeler.defs#labelerView","lex:app.bsky.labeler.defs#labelerViewDetailed"]}}}}}}}},AppBskyLabelerService:{lexicon:1,id:"app.bsky.labeler.service",defs:{main:{type:"record",description:"A declaration of the existence of labeler service.",key:"literal:self",record:{type:"object",required:["policies","createdAt"],properties:{policies:{type:"ref",ref:"lex:app.bsky.labeler.defs#labelerPolicies"},labels:{type:"union",refs:["lex:com.atproto.label.defs#selfLabels"]},createdAt:{type:"string",format:"datetime"},reasonTypes:{description:"The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.",type:"array",items:{type:"ref",ref:"lex:com.atproto.moderation.defs#reasonType"}},subjectTypes:{description:"The set of subject types (account, record, etc) this service accepts reports on.",type:"array",items:{type:"ref",ref:"lex:com.atproto.moderation.defs#subjectType"}},subjectCollections:{type:"array",description:"Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.",items:{type:"string",format:"nsid"}}}}}}},AppBskyNotificationDeclaration:{lexicon:1,id:"app.bsky.notification.declaration",defs:{main:{type:"record",description:"A declaration of the user's choices related to notifications that can be produced by them.",key:"literal:self",record:{type:"object",required:["allowSubscriptions"],properties:{allowSubscriptions:{type:"string",description:"A declaration of the user's preference for allowing activity subscriptions from other users. Absence of a record implies 'followers'.",knownValues:["followers","mutuals","none"]}}}}}},AppBskyNotificationDefs:{lexicon:1,id:"app.bsky.notification.defs",defs:{recordDeleted:{type:"object",properties:{}},chatPreference:{type:"object",required:["include","push"],properties:{include:{type:"string",knownValues:["all","accepted"]},push:{type:"boolean"}}},filterablePreference:{type:"object",required:["include","list","push"],properties:{include:{type:"string",knownValues:["all","follows"]},list:{type:"boolean"},push:{type:"boolean"}}},preference:{type:"object",required:["list","push"],properties:{list:{type:"boolean"},push:{type:"boolean"}}},preferences:{type:"object",required:["chat","follow","like","likeViaRepost","mention","quote","reply","repost","repostViaRepost","starterpackJoined","subscribedPost","unverified","verified"],properties:{chat:{type:"ref",ref:"lex:app.bsky.notification.defs#chatPreference"},follow:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},like:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},likeViaRepost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},mention:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},quote:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},reply:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},repost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},repostViaRepost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},starterpackJoined:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},subscribedPost:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},unverified:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},verified:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"}}},activitySubscription:{type:"object",required:["post","reply"],properties:{post:{type:"boolean"},reply:{type:"boolean"}}}
21,subjectActivitySubscription:{description:"Object used to store activity subscription data in stash.",type:"object",required:["subject","activitySubscription"],properties:{subject:{type:"string",format:"did"},activitySubscription:{type:"ref",ref:"lex:app.bsky.notification.defs#activitySubscription"}}}}},AppBskyNotificationGetPreferences:{lexicon:1,id:"app.bsky.notification.getPreferences",defs:{main:{type:"query",description:"Get notification-related preferences for an account. Requires auth.",parameters:{type:"params",properties:{}},output:{encoding:"application/json",schema:{type:"object",required:["preferences"],properties:{preferences:{type:"ref",ref:"lex:app.bsky.notification.defs#preferences"}}}}}}},AppBskyNotificationGetUnreadCount:{lexicon:1,id:"app.bsky.notification.getUnreadCount",defs:{main:{type:"query",description:"Count the number of unread notifications for the requesting account. Requires auth.",parameters:{type:"params",properties:{priority:{type:"boolean"},seenAt:{type:"string",format:"datetime"}}},output:{encoding:"application/json",schema:{type:"object",required:["count"],properties:{count:{type:"integer"}}}}}}},AppBskyNotificationListActivitySubscriptions:{lexicon:1,id:"app.bsky.notification.listActivitySubscriptions",defs:{main:{type:"query",description:"Enumerate all accounts to which the requesting account is subscribed to receive notifications for. Requires auth.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["subscriptions"],properties:{cursor:{type:"string"},subscriptions:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyNotificationListNotifications:{lexicon:1,id:"app.bsky.notification.listNotifications",defs:{main:{type:"query",description:"Enumerate notifications for the requesting account. Requires auth.",parameters:{type:"params",properties:{reasons:{description:"Notification reasons to include in response.",type:"array",items:{type:"string",description:"A reason that matches the reason property of #notification."}},limit:{type:"integer",minimum:1,maximum:100,default:50},priority:{type:"boolean"},cursor:{type:"string"},seenAt:{type:"string",format:"datetime"}}},output:{encoding:"application/json",schema:{type:"object",required:["notifications"],properties:{cursor:{type:"string"},notifications:{type:"array",items:{type:"ref",ref:"lex:app.bsky.notification.listNotifications#notification"}},priority:{type:"boolean"},seenAt:{type:"string",format:"datetime"}}}}},notification:{type:"object",required:["uri","cid","author","reason","record","isRead","indexedAt"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},author:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"},reason:{type:"string",description:"The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.",knownValues:["like","repost","follow","mention","reply","quote","starterpack-joined","verified","unverified","like-via-repost","repost-via-repost","subscribed-post"]},reasonSubject:{type:"string",format:"at-uri"},record:{type:"unknown"},isRead:{type:"boolean"},indexedAt:{type:"string",format:"datetime"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}}}}}},AppBskyNotificationPutActivitySubscription:{lexicon:1,id:"app.bsky.notification.putActivitySubscription",defs:{main:{type:"procedure",description:"Puts an activity subscription entry. The key should be omitted for creation and provided for updates. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["subject","activitySubscription"],properties:{subject:{type:"string",format:"did"},activitySubscription:{type:"ref",ref:"lex:app.bsky.notification.defs#activitySubscription"}}}},output:{encoding:"application/json",schema:{type:"object",required:["subject"],properties:{subject:{type:"string",format:"did"},activitySubscription:{type:"ref",ref:"lex:app.bsky.notification.defs#activitySubscription"}}}}}}},AppBskyNotificationPutPreferences:{lexicon:1,id:"app.bsky.notification.putPreferences",defs:{main:{type:"procedure",description:"Set notification-related preferences for an account. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["priority"],properties:{priority:{type:"boolean"}}}}}}},AppBskyNotificationPutPreferencesV2:{lexicon:1,id:"app.bsky.notification.putPreferencesV2",defs:{main:{type:"procedure",description:"Set notification-related preferences for an account. Requires auth.",input:{encoding:"application/json",schema:{type:"object",properties:{chat:{type:"ref",ref:"lex:app.bsky.notification.defs#chatPreference"},follow:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},like:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},likeViaRepost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},mention:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},quote:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},reply:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},repost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},repostViaRepost:{type:"ref",ref:"lex:app.bsky.notification.defs#filterablePreference"},starterpackJoined:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},subscribedPost:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},unverified:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"},verified:{type:"ref",ref:"lex:app.bsky.notification.defs#preference"}}}},output:{encoding:"application/json",schema:{type:"object",required:["preferences"],properties:{preferences:{type:"ref",ref:"lex:app.bsky.notification.defs#preferences"}}}}}}},AppBskyNotificationRegisterPush:{lexicon:1,id:"app.bsky.notification.registerPush",defs:{main:{type:"procedure",description:"Register to receive push notifications, via a specified service, for the requesting account. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["serviceDid","token","platform","appId"],properties:{serviceDid:{type:"string",format:"did"},token:{type:"string"},platform:{type:"string",knownValues:["ios","android","web"]},appId:{type:"string"},ageRestricted:{type:"boolean",description:"Set to true when the actor is age restricted"}}}}}}},AppBskyNotificationUnregisterPush:{lexicon:1,id:"app.bsky.notification.unregisterPush",defs:{main:{type:"procedure",description:"The inverse of registerPush - inform a specified service that push notifications should no longer be sent to the given token for the requesting account. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["serviceDid","token","platform","appId"],properties:{serviceDid:{type:"string",format:"did"},token:{type:"string"},platform:{type:"string",knownValues:["ios","android","web"]},appId:{type:"string"}}}}}}},AppBskyNotificationUpdateSeen:{lexicon:1,id:"app.bsky.notification.updateSeen",defs:{main:{type:"procedure",description:"Notify server that the requesting account has seen notifications. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["seenAt"],properties:{seenAt:{type:"string",format:"datetime"}}}}}}},AppBskyRichtextFacet:{lexicon:1,id:"app.bsky.richtext.facet",def
21s:{main:{type:"object",description:"Annotation of a sub-string within rich text.",required:["index","features"],properties:{index:{type:"ref",ref:"lex:app.bsky.richtext.facet#byteSlice"},features:{type:"array",items:{type:"union",refs:["lex:app.bsky.richtext.facet#mention","lex:app.bsky.richtext.facet#link","lex:app.bsky.richtext.facet#tag"]}}}},mention:{type:"object",description:"Facet feature for mention of another account. The text is usually a handle, including a '@' prefix, but the facet reference is a DID.",required:["did"],properties:{did:{type:"string",format:"did"}}},link:{type:"object",description:"Facet feature for a URL. The text URL may have been simplified or truncated, but the facet reference should be a complete URL.",required:["uri"],properties:{uri:{type:"string",format:"uri"}}},tag:{type:"object",description:"Facet feature for a hashtag. The text usually includes a '#' prefix, but the facet reference should not (except in the case of 'double hash tags').",required:["tag"],properties:{tag:{type:"string",maxLength:640,maxGraphemes:64}}},byteSlice:{type:"object",description:"Specifies the sub-string range a facet feature applies to. Start index is inclusive, end index is exclusive. Indices are zero-indexed, counting bytes of the UTF-8 encoded text. NOTE: some languages, like Javascript, use UTF-16 or Unicode codepoints for string slice indexing; in these languages, convert to byte arrays before working with facets.",required:["byteStart","byteEnd"],properties:{byteStart:{type:"integer",minimum:0},byteEnd:{type:"integer",minimum:0}}}}},AppBskyUnspeccedDefs:{lexicon:1,id:"app.bsky.unspecced.defs",defs:{skeletonSearchPost:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}},skeletonSearchActor:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},skeletonSearchStarterPack:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}},trendingTopic:{type:"object",required:["topic","link"],properties:{topic:{type:"string"},displayName:{type:"string"},description:{type:"string"},link:{type:"string"}}},skeletonTrend:{type:"object",required:["topic","displayName","link","startedAt","postCount","dids"],properties:{topic:{type:"string"},displayName:{type:"string"},link:{type:"string"},startedAt:{type:"string",format:"datetime"},postCount:{type:"integer"},status:{type:"string",knownValues:["hot"]},category:{type:"string"},dids:{type:"array",items:{type:"string",format:"did"}}}},trendView:{type:"object",required:["topic","displayName","link","startedAt","postCount","actors"],properties:{topic:{type:"string"},displayName:{type:"string"},link:{type:"string"},startedAt:{type:"string",format:"datetime"},postCount:{type:"integer"},status:{type:"string",knownValues:["hot"]},category:{type:"string"},actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewBasic"}}}},threadItemPost:{type:"object",required:["post","moreParents","moreReplies","opThread","hiddenByThreadgate","mutedByViewer"],properties:{post:{type:"ref",ref:"lex:app.bsky.feed.defs#postView"},moreParents:{type:"boolean",description:"This post has more parents that were not present in the response. This is just a boolean, without the number of parents."},moreReplies:{type:"integer",description:"This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate."},opThread:{type:"boolean",description:"This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread."},hiddenByThreadgate:{type:"boolean",description:"The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread."},mutedByViewer:{type:"boolean",description:"This is by an account muted by the viewer requesting it."}}},threadItemNoUnauthenticated:{type:"object",properties:{}},threadItemNotFound:{type:"object",properties:{}},threadItemBlocked:{type:"object",required:["author"],properties:{author:{type:"ref",ref:"lex:app.bsky.feed.defs#blockedAuthor"}}},ageAssuranceState:{type:"object",description:"The computed state of the age assurance process, returned to the user in question on certain authenticated requests.",required:["status"],properties:{lastInitiatedAt:{type:"string",format:"datetime",description:"The timestamp when this
21state was last updated."},status:{type:"string",description:"The status of the age assurance process.",knownValues:["unknown","pending","assured","blocked"]}}},ageAssuranceEvent:{type:"object",description:"Object used to store age assurance data in stash.",required:["createdAt","status","attemptId"],properties:{createdAt:{type:"string",format:"datetime",description:"The date and time of this write operation."},status:{type:"string",description:"The status of the age assurance process.",knownValues:["unknown","pending","assured"]},attemptId:{type:"string",description:"The unique identifier for this instance of the age assurance flow, in UUID format."},email:{type:"string",description:"The email used for AA."},initIp:{type:"string",description:"The IP address used when initiating the AA flow."},initUa:{type:"string",description:"The user agent used when initiating the AA flow."},completeIp:{type:"string",description:"The IP address used when completing the AA flow."},completeUa:{type:"string",description:"The user agent used when completing the AA flow."}}}}},AppBskyUnspeccedGetAgeAssuranceState:{lexicon:1,id:"app.bsky.unspecced.getAgeAssuranceState",defs:{main:{type:"query",description:"Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.",output:{encoding:"application/json",schema:{type:"ref",ref:"lex:app.bsky.unspecced.defs#ageAssuranceState"}}}}},AppBskyUnspeccedGetConfig:{lexicon:1,id:"app.bsky.unspecced.getConfig",defs:{main:{type:"query",description:"Get miscellaneous runtime configuration.",output:{encoding:"application/json",schema:{type:"object",required:[],properties:{checkEmailConfirmed:{type:"boolean"},liveNow:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.getConfig#liveNowConfig"}}}}}},liveNowConfig:{type:"object",required:["did","domains"],properties:{did:{type:"string",format:"did"},domains:{type:"array",items:{type:"string"}}}}}},AppBskyUnspeccedGetPopularFeedGenerators:{lexicon:1,id:"app.bsky.unspecced.getPopularFeedGenerators",defs:{main:{type:"query",description:"An unspecced view of globally popular feed generators.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},query:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{cursor:{type:"string"},feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}}}}}}}},AppBskyUnspeccedGetPostThreadOtherV2:{lexicon:1,id:"app.bsky.unspecced.getPostThreadOtherV2",defs:{main:{type:"query",description:"(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.",parameters:{type:"params",required:["anchor"],properties:{anchor:{type:"string",format:"at-uri",description:"Reference (AT-URI) to post record. This is the anchor post."},prioritizeFollowedUsers:{type:"boolean",description:"Whether to prioritize posts from followed users. It only has effect when the user is authenticated.",default:!1}}},output:{encoding:"application/json",schema:{type:"object",required:["thread"],properties:{thread:{type:"array",description:"A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.",items:{type:"ref",ref:"lex:app.bsky.unspecced.getPostThreadOtherV2#threadItem"}}}}}},threadItem:{type:"object",required:["uri","depth","value"],properties:{uri:{type:"string",format:"at-uri"},depth:{type:"integer",description:"The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths."},value:{type:"union",refs:["lex:app.bsky.unspecced.defs#threadItemPost"]}}}}},AppBskyUnspeccedGetPostThreadV2:{lexicon:1,id:"app.bsky.unspecced.getPostThreadV2",defs:{main:{type:"query",description:"(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.",parameters:{type:"params",required:["anchor"],properties:{anchor:{type:"string",format:"at-uri",description:"Reference (AT-URI) to post record. This is the anch
21or post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post."},above:{type:"boolean",description:"Whether to include parents above the anchor.",default:!0},below:{type:"integer",description:"How many levels of replies to include below the anchor.",default:6,minimum:0,maximum:20},branchingFactor:{type:"integer",description:"Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).",default:10,minimum:0,maximum:100},prioritizeFollowedUsers:{type:"boolean",description:"Whether to prioritize posts from followed users. It only has effect when the user is authenticated.",default:!1},sort:{type:"string",description:"Sorting for the thread replies.",knownValues:["newest","oldest","top"],default:"oldest"}}},output:{encoding:"application/json",schema:{type:"object",required:["thread","hasOtherReplies"],properties:{thread:{type:"array",description:"A flat list of thread items. The depth of each item is indicated by the depth property inside the item.",items:{type:"ref",ref:"lex:app.bsky.unspecced.getPostThreadV2#threadItem"}},threadgate:{type:"ref",ref:"lex:app.bsky.feed.defs#threadgateView"},hasOtherReplies:{type:"boolean",description:"Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them."}}}}},threadItem:{type:"object",required:["uri","depth","value"],properties:{uri:{type:"string",format:"at-uri"},depth:{type:"integer",description:"The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths."},value:{type:"union",refs:["lex:app.bsky.unspecced.defs#threadItemPost","lex:app.bsky.unspecced.defs#threadItemNoUnauthenticated","lex:app.bsky.unspecced.defs#threadItemNotFound","lex:app.bsky.unspecced.defs#threadItemBlocked"]}}}}},AppBskyUnspeccedGetSuggestedFeeds:{lexicon:1,id:"app.bsky.unspecced.getSuggestedFeeds",defs:{main:{type:"query",description:"Get a list of suggested feeds",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{feeds:{type:"array",items:{type:"ref",ref:"lex:app.bsky.feed.defs#generatorView"}}}}}}}},AppBskyUnspeccedGetSuggestedFeedsSkeleton:{lexicon:1,id:"app.bsky.unspecced.getSuggestedFeedsSkeleton",defs:{main:{type:"query",description:"Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries)."},limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["feeds"],properties:{feeds:{type:"array",items:{type:"string",format:"at-uri"}}}}}}}},AppBskyUnspeccedGetSuggestedStarterPacks:{lexicon:1,id:"app.bsky.unspecced.getSuggestedStarterPacks",defs:{main:{type:"query",description:"Get a list of suggested starterpacks",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{starterPacks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.graph.defs#starterPackView"}}}}}}}},AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:{lexicon:1,id:"app.bsky.unspecced.getSuggestedStarterPacksSkeleton",defs:{main:{type:"query",description:"Get a skeleton of suggested starterpacks. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedStarterpacks",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries)."},limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{starterPacks:{type:"array",items:{type:"string",format:"at-uri"}}}}}}}},AppBskyUnspeccedGetSuggestedUsers:{lexicon:1,id:"app.bsky.unspecced.getSuggestedUsers",defs:{main:{type:"query",description:"Get a list of suggested users",parameters:{type:"params",properties:{category:{type:"string",description:"Category of users to get suggestions for."},limit:{type:"integer",minimum:1,maximum:50,default:25}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.actor.defs#profileView"}}}}}}}},AppBskyUnspeccedGetSuggestedUsersSkeleton:{lexicon:1,id:"app.bsky.unspecced.getSuggestedUsersSkeleton",defs:{main:{type:"query",description:"Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries)."},category:{type:"string",description:"Category of users to get suggestions for."},limit:{type:"integer",minimum:1,maximum:50,default:25}}},output:{encoding:"application/json",schema:{type:"object",required:["dids"],properties:{dids:{type:"array",items:{type:"string",format:"did"}}}}}}}},AppBskyUnspeccedGetSuggestionsSkeleton:{lexicon:1,id:"app.bsky.unspecced.getSuggestionsSkeleton",defs:{main:{type:"query",description:"Get a skeleton of suggested actors. Intended to be called and then hydrated through app.bsky.actor.getSuggestions",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking."},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},relativeToDid:{type:"string",format:"did",description:"DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer."}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{cursor:{type:"string"},actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#skeletonSearchActor"}},relativeToDid:{type:"string",format:"did",description:"DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer."},recId:{type:"integer",description:"Snowflake for this recommendation, use when submitting recommendation events."}}}}}}},AppBskyUnspeccedGetTaggedSuggestions:{lexicon:1,id:"app.bsky.unspecced.getTaggedSuggestions",defs:{main:{type:"query",description:"Get a list of suggestions (feeds and users) tagged with categories",parameters:{type:"params",properties:{}},output:{encoding:"application/json",schema:{type:"object",required:["suggestions"],properties:{suggestions:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.getTaggedSuggestions#suggestion"}}}}}},suggestion:{type:"object",required:["tag","subjectType","subject"],properties:{tag:{type:"string"},subjectType:{type:"string",knownValues:["actor","feed"]},subject:{type:"string",format:"uri"}}}}},AppBskyUnspeccedGetTrendingTopics:{lexicon:1,id:"app.bsky.unspecced.getTrendingTopics",defs:{main:{type:"query",description:"Get a list of trending topics",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking."},limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["topics","suggested"],properties:{topics:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#trendingTopic"}},suggested:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#trendingTopic"}}}}}}}},AppBskyUnspeccedGetTrends:{lexicon:1,id:"app.bsky.unspecced.getTrends",defs:{main:{type:"query",description:"Get the current trends on the network",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["trends"],properties:{trends:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#trendView"}}}}}}}},AppBskyUnspeccedGetTrendsSkeleton:{lexicon:1,id:"app.bsky.unspecced.getTrendsSkeleton",defs:{main:{type:"query",description:"Get the skeleton of trends on the network. Intended to be called and then hydrated through app.bsky.unspecced.getTrends",parameters:{type:"params",properties:{viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries)."},limit:{type:"integer",minimum:1,maximum:25,default:10}}},output:{encoding:"application/json",schema:{type:"object",required:["trends"],properties:{trends:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#skeletonTrend"}}}}}}}},AppBskyUnspeccedInitAgeAssurance:{lexicon:1,id:"app.bsky.unspecced.initAgeAssurance",def
21s:{main:{type:"procedure",description:"Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.",input:{encoding:"application/json",schema:{type:"object",required:["email","language","countryCode"],properties:{email:{type:"string",description:"The user's email address to receive assurance instructions."},language:{type:"string",description:"The user's preferred language for communication during the assurance process."},countryCode:{type:"string",description:"An ISO 3166-1 alpha-2 code of the user's location."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:app.bsky.unspecced.defs#ageAssuranceState"}},errors:[{name:"InvalidEmail"},{name:"DidTooLong"},{name:"InvalidInitiation"}]}}},AppBskyUnspeccedSearchActorsSkeleton:{lexicon:1,id:"app.bsky.unspecced.searchActorsSkeleton",defs:{main:{type:"query",description:"Backend Actors (profile) search, returns only skeleton.",parameters:{type:"params",required:["q"],properties:{q:{type:"string",description:"Search query string;
21 syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. For typeahead search, only simple term match is supported, not full syntax."},viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking."},typeahead:{type:"boolean",description:"If true, acts as fast/simple 'typeahead' query."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string",description:"Optional pagination mechanism; may not necessarily allow scrolling through entire result set."}}},output:{encoding:"application/json",schema:{type:"object",required:["actors"],properties:{cursor:{type:"string"},hitsTotal:{type:"integer",description:"Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."},actors:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#skeletonSearchActor"}}}}},errors:[{name:"BadQueryString"}]}}},AppBskyUnspeccedSearchPostsSkeleton:{lexicon:1,id:"app.bsky.unspecced.searchPostsSkeleton",defs:{main:{type:"query",description:"Backend Posts search, returns only skeleton",parameters:{type:"params",required:["q"],properties:{q:{type:"string",description:"Search query string;
21 syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended."},sort:{type:"string",knownValues:["top","latest"],default:"latest",description:"Specifies the ranking order of results."},since:{type:"string",description:"Filter results for posts after the indicated datetime (inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYYY-MM-DD)."},until:{type:"string",description:"Filter results for posts before the indicated datetime (not inclusive). Expected to use 'sortAt' timestamp, which may not match 'createdAt'. Can be a datetime, or just an ISO date (YYY-MM-DD)."},mentions:{type:"string",format:"at-identifier",description:"Filter to posts which mention the given account. Handles are resolved to DID before query-time. Only matches rich-text facet mentions."},author:{type:"string",format:"at-identifier",description:"Filter to posts by the given account. Handles are resolved to DID before query-time."},lang:{type:"string",format:"language",description:"Filter to posts in the given language. Expected to be based on post language field, though server may override language detection."},domain:{type:"string",description:"Filter to posts with URLs (facet links or embeds) linking to the given domain (hostname). Server may apply hostname normalization."},url:{type:"string",format:"uri",description:"Filter to posts with links (facet links or embeds) pointing to this URL. Server may apply URL normalization or fuzzy matching."},tag:{type:"array",items:{type:"string",maxLength:640,maxGraphemes:64},description:"Filter to posts with the given tag (hashtag), based on rich-text facet or tag field. Do not include the hash (#) prefix. Multiple tags can be specified, with 'AND' matching."},viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries). Used for 'from:me' queries."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string",description:"Optional pagination mechanism; may not necessarily allow scrolling through entire result set."}}},output:{encoding:"application/json",schema:{type:"object",required:["posts"],properties:{cursor:{type:"string"},hitsTotal:{type:"integer",description:"Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."},posts:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#skeletonSearchPost"}}}}},errors:[{name:"BadQueryString"}]}}},AppBskyUnspeccedSearchStarterPacksSkeleton:{lexicon:1,id:"app.bsky.unspecced.searchStarterPacksSkeleton",defs:{main:{type:"query",description:"Backend Starter Pack search, returns only skeleton.",parameters:{type:"params",required:["q"],properties:{q:{type:"string",description:"Search query string;
21 syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended."},viewer:{type:"string",format:"did",description:"DID of the account making the request (not included for public/unauthenticated queries)."},limit:{type:"integer",minimum:1,maximum:100,default:25},cursor:{type:"string",description:"Optional pagination mechanism; may not necessarily allow scrolling through entire result set."}}},output:{encoding:"application/json",schema:{type:"object",required:["starterPacks"],properties:{cursor:{type:"string"},hitsTotal:{type:"integer",description:"Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits."},starterPacks:{type:"array",items:{type:"ref",ref:"lex:app.bsky.unspecced.defs#skeletonSearchStarterPack"}}}}},errors:[{name:"BadQueryString"}]}}},AppBskyVideoDefs:{lexicon:1,id:"app.bsky.video.defs",defs:{jobStatus:{type:"object",required:["jobId","did","state"],properties:{jobId:{type:"string"},did:{type:"string",format:"did"},state:{type:"string",description:"The state of the video processing job. All values not listed as a known value indicate that the job is in process.",knownValues:["JOB_STATE_COMPLETED","JOB_STATE_FAILED"]},progress:{type:"integer",minimum:0,maximum:100,description:"Progress within the current processing state."},blob:{type:"blob"},error:{type:"string"},message:{type:"string"}}}}},AppBskyVideoGetJobStatus:{lexicon:1,id:"app.bsky.video.getJobStatus",defs:{main:{type:"query",description:"Get status details for a video processing job.",parameters:{type:"params",required:["jobId"],properties:{jobId:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["jobStatus"],properties:{jobStatus:{type:"ref",ref:"lex:app.bsky.video.defs#jobStatus"}}}}}}},AppBskyVideoGetUploadLimits:{lexicon:1,id:"app.bsky.video.getUploadLimits",defs:{main:{type:"query",description:"Get video upload limits for the authenticated user.",output:{encoding:"application/json",schema:{type:"object",required:["canUpload"],properties:{canUpload:{type:"boolean"},remainingDailyVideos:{type:"integer"},remainingDailyBytes:{type:"integer"},message:{type:"string"},error:{type:"string"}}}}}}},AppBskyVideoUploadVideo:{lexicon:1,id:"app.bsky.video.uploadVideo",defs:{main:{type:"procedure",description:"Upload a video to be processed then stored on the PDS.",input:{encoding:"video/mp4"},output:{encoding:"application/json",schema:{type:"object",required:["jobStatus"],properties:{jobStatus:{type:"ref",ref:"lex:app.bsky.video.defs#jobStatus"}}}}}}},ChatBskyActorDeclaration:{lexicon:1,id:"chat.bsky.actor.declaration",defs:{main:{type:"record",description:"A declaration of a Bluesky chat account.",key:"literal:self",record:{type:"object",required:["allowIncoming"],properties:{allowIncoming:{type:"string",knownValues:["all","none","following"]}}}}}},ChatBskyActorDefs:{lexicon:1,id:"chat.bsky.actor.defs",defs:{profileViewBasic:{type:"object",required:["did","handle"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},displayName:{type:"string",maxGraphemes:64,maxLength:640},avatar:{type:"string",format:"uri"},associated:{type:"ref",ref:"lex:app.bsky.actor.defs#profileAssociated"},viewer:{type:"ref",ref:"lex:app.bsky.actor.defs#viewerState"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},chatDisabled:{type:"boolean",description:"Set to true when the actor cannot actively participate in conversations"},verification:{type:"ref",ref:"lex:app.bsky.actor.defs#verificationState"}}}}},ChatBskyActorDeleteAccount:{lexicon:1,id:"chat.bsky.actor.deleteAccount",defs:{main:{type:"procedure",output:{encoding:"application/json",schema:{type:"object",properties:{}}}}}},ChatBskyActorExportAccountData:{lexicon:1,id:"chat.bsky.actor.exportAccountData",defs:{main:{type:"query",output:{encoding:"application/jsonl"}}}},ChatBskyConvoAcceptConvo:{lexicon:1,id:"chat.bsky.convo.acceptConvo",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId"],properties:{convoId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",properties:{rev:{description:"Rev when the convo was accepted. If not present, the convo was already accepted.",type:"string"}}}}}}},ChatBskyConvoAddReaction:{lexicon:1,id:"chat.bsky.convo.addReaction",defs:{main:{type:"procedure",description:"Adds an emoji reaction to a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in a single reaction.",input:{encoding:"application/json",schema:{type:"object",required:["convoId","messageId","value"],properties:{convoId:{type:"string"},messageId:{type:"string"},value:{type:"string",minLength:1,maxLength:64,minGraphemes:1,maxGraphemes:1}}}},output:{encoding:"application/json",schema:{type:"object",required:["message"],properties:{message:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageView"}}}},errors:[{name:"ReactionMessageDeleted",description:"Indicates that the message has been deleted and reactions can no longer be added/removed."},{name:"ReactionLimitReached",description:"Indicates that the message has the maximum number of reactions allowed for a single user, and the requested reaction wasn't yet present. If it was already present, the request will not fail since it is idempotent."},{name:"ReactionInvalidValue",description:"Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji."}]}}},ChatBskyConvoDefs:{lexicon:1,id:"chat.bsky.convo.defs",defs:{messageRef:{type:"object",required:["did","messageId","convoId"],properties:{did:{type:"string",format:"did"},convoId:{type:"string"},messageId:{type:"string"}}},messageInput:{type:"object",required:["text"],properties:{text:{type:"string",maxLength:1e4,maxGraphemes:1e3},facets:{type:"array",description:"Annotations of text (mentions, URLs, hashtags, etc)",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},embed:{type:"union",refs:["lex:app.bsky.embed.record"]}}},messageView:{type:"object",required:["id","rev","text","sender","sentAt"],properties:{id:{type:"string"},rev:{type:"string"},text:{type:"string",maxLength:1e4,maxGraphemes:1e3},facets:{type:"array",description:"Annotations of text (mentions, URLs, hashtags, etc)",items:{type:"ref",ref:"lex:app.bsky.richtext.facet"}},embed:{type:"union",refs:["lex:app.bsky.embed.record#view"]},reactions:{type:"array",description:"Reactions to this message, in ascending order of creation time.",items:{type:"ref",ref:"lex:chat.bsky.convo.defs#reactionView"}},sender:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageViewSender"},sentAt:{type:"string",format:"datetime"}}},deletedMessageView:{type:"object",required:["id","rev","sender","sentAt"],properties:{id:{type:"string"},rev:{type:"string"},sender:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageViewSender"},sentAt:{type:"string",format:"datetime"}}},messageViewSender:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},reactionView:{type:"object",required:["value","sender","createdAt"],properties:{value:{type:"string"},sender:{type:"ref",ref:"lex:chat.bsky.convo.defs#reactionViewSender"},createdAt:{type:"string",format:"datetime"}}},reactionViewSender:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},messageAndReactionView:{type:"object",required:["message","reaction"],properties:{message:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageView"},reaction:{type:"ref",ref:"lex:chat.bsky.convo.defs#reactionView"}}},convoView:{type:"object",required:["id","rev","members","muted","unreadCount"],properties:{id:{type:"string"},rev:{type:"string"},members:{type:"array",items:{type:"ref",ref:"lex:chat.bsky.actor.defs#profileViewBasic"}},lastMessage:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]},lastReaction:{type:"union",refs:["lex:chat.bsky.convo.defs#messageAndReactionView"]},muted:{type:"boolean"},status:{type:"string",knownValues:["request","accepted"]},unreadCount:{type:"integer"}}},logBeginConvo:{type:"object",required:["rev","convoId"],properties:{rev:{type:"string"},convoId:{type:"string"}}},logAcceptConvo:{type:"object",required:["rev","convoId"],properties:{rev:{type:"string"},convoId:{type:"string"}}},logLeaveConvo:{type:"object",required:["rev","convoId"],properties:{rev:{type:"string"},convoId:{type:"string"}}},logMuteConvo:{type:"object",required:["rev","convoId"],properties:{rev:{type:"string"},convoId:{type:"string"}}},logUnmuteConvo:{type:"object",required:["rev","convoId"],properties:{rev:{type:"string"},convoId:{type:"string"}}},logCreateMessage:{type:"object",required:["rev","convoId","message"],properties:{rev:{type:"string"},convoId:{type:"string"},message:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]}}},logDeleteMessage:{type:"object",required:["rev","convoId","message"],properties:{rev:{type:"string"},convoId:{type:"string"},message:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]}}},logReadMessage:{type:"object",required:["rev","convoId","message"],properties:{rev:{type:"string"},convoId:{type:"string"},message:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]}}},logAddReaction:{type:"object",required:["rev","convoId","message","reaction"],properties:{rev:{type:"string"},convoId:{type:"string"},message:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]},reaction:{type:"ref",ref:"lex:chat.bsky.convo.defs#reactionView"}}},logRemoveReaction:{type:"object",required:["rev","convoId","message","reaction"],properties:{rev:{type:"string"},convoId:{type:"string"},message:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]},reaction:{type:"ref",ref:"lex:chat.bsky.convo.defs#reactionView"}}}}},ChatBskyConvoDeleteMessageForSelf:{lexicon:1,id:"chat.bsky.convo.deleteMessageForSelf",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId","messageId"],properties:{convoId:{type:"string"},messageId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:chat.bsky.convo.defs#deletedMessageView"}}}}},ChatBskyConvoGetConvo:{lexicon:1,id:"chat.bsky.convo.getConvo",defs:{main:{type:"query",parameters:{type:"params",required:["convoId"],properties:{convoId:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["convo"],properties:{convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyConvoGetConvoAvailability:{lexicon:1,id:"chat.bsky.convo.getConvoAvailability",defs:{main:{type:"query",description:"Get whether the requester and the other members can chat. If an existing convo is found for these members, it is returned.",parameters:{type:"params",required:["members"],properties:{members:{type:"array",minLength:1,maxLength:10,items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["canChat"],properties:{canChat:{type:"boolean"},convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyConvoGetConvoForMembers:{lexicon:1,id:"chat.bsky.convo.getConvoForMembers",defs:{main:{type:"query",parameters:{type:"params",required:["members"],properties:{members:{type:"array",minLength:1,maxLength:10,items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["convo"],properties:{convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyConvoGetLog:{lexicon:1,id:"chat.bsky.convo.getLog",defs:{main:{type:"query",parameters:{type:"params",required:[],properties:{cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["logs"],properties:{cursor:{type:"string"},logs:{type:"array",items:{type:"union",refs:["lex:chat.bsky.convo.defs#logBeginConvo","lex:chat.bsky.convo.defs#logAcceptConvo","lex:chat.bsky.convo.defs#logLeaveConvo","lex:chat.bsky.convo.defs#logMuteConvo","lex:chat.bsky.convo.defs#logUnmuteConvo","lex:chat.bsky.convo.defs#logCreateMessage","lex:chat.bsky.convo.defs#logDeleteMessage","lex:chat.bsky.convo.defs#logReadMessage","lex:chat.bsky.convo.defs#logAddReaction","lex:chat.bsky.convo.defs#logRemoveReaction"]}}}}}}}},ChatBskyConvoGetMessages:{lexicon:1,id:"chat.bsky.convo.getMessages",defs:{main:{type:"query",parameters:{type:"params",required:["convoId"],properties:{convoId:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["messages"],properties:{cursor:{type:"string"},messages:{type:"array",items:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]}}}}}}}},ChatBskyConvoLeaveConvo:{lexicon:1,id:"chat.bsky.convo.leaveConvo",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId"],properties:{convoId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",required:["convoId","rev"],properties:{convoId:{type:"string"},rev:{type:"string"}}}}}}},ChatBskyConvoListConvos:{lexicon:1,id:"chat.bsky.convo.listConvos",defs:{main:{type:"query",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},readState:{type:"string",knownValues:["unread"]},status:{type:"string",knownValues:["request","accepted"]}}},output:{encoding:"application/json",schema:{type:"object",required:["convos"],properties:{cursor:{type:"string"},convos:{type:"array",items:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}}},ChatBskyConvoMuteConvo:{lexicon:1,id:"chat.bsky.convo.muteConvo",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId"],properties:{convoId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",required:["convo"],properties:{convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyConvoRemoveReaction:{lexicon:1,id:"chat.bsky.convo.removeReaction",defs:{main:{type:"procedure",description:"Removes an emoji reaction from a message. Requires authentication. It is idempotent, so multiple calls from the same user with the same emoji result in that reaction not being present, even if it already wasn't.",input:{encoding:"application/json",schema:{type:"object",required:["convoId","messageId","value"],properties:{convoId:{type:"string"},messageId:{type:"string"},value:{type:"string",minLength:1,maxLength:64,minGraphemes:1,maxGraphemes:1}}}},output:{encoding:"application/json",schema:{type:"object",required:["message"],properties:{message:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageView"}}}},errors:[{name:"ReactionMessageDeleted",description:"Indicates that the message has been deleted and reactions can no longer be added/removed."},{name:"ReactionInvalidValue",description:"Indicates the value for the reaction is not acceptable. In general, this means it is not an emoji."}]}}},ChatBskyConvoSendMessage:{lexicon:1,id:"chat.bsky.convo.sendMessage",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId","message"],properties:{convoId:{type:"string"},message:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageInput"}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageView"}}}}},ChatBskyConvoSendMessageBatch:{lexicon:1,id:"chat.bsky.convo.sendMessageBatch",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["items"],properties:{items:{type:"array",maxLength:100,items:{type:"ref",ref:"lex:chat.bsky.convo.sendMessageBatch#batchItem"}}}}},output:{encoding:"application/json",schema:{type:"object",required:["items"],properties:{items:{type:"array",items:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageView"}}}}}},batchItem:{type:"object",required:["convoId","message"],properties:{convoId:{type:"string"},message:{type:"ref",ref:"lex:chat.bsky.convo.defs#messageInput"}}}}},ChatBskyConvoUnmuteConvo:{lexicon:1,id:"chat.bsky.convo.unmuteCo
21nvo",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId"],properties:{convoId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",required:["convo"],properties:{convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyConvoUpdateAllRead:{lexicon:1,id:"chat.bsky.convo.updateAllRead",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",properties:{status:{type:"string",knownValues:["request","accepted"]}}}},output:{encoding:"application/json",schema:{type:"object",required:["updatedCount"],properties:{updatedCount:{description:"The count of updated convos.",type:"integer"}}}}}}},ChatBskyConvoUpdateRead:{lexicon:1,id:"chat.bsky.convo.updateRead",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["convoId"],properties:{convoId:{type:"string"},messageId:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",required:["convo"],properties:{convo:{type:"ref",ref:"lex:chat.bsky.convo.defs#convoView"}}}}}}},ChatBskyModerationGetActorMetadata:{lexicon:1,id:"chat.bsky.moderation.getActorMetadata",defs:{main:{type:"query",parameters:{type:"params",required:["actor"],properties:{actor:{type:"string",format:"did"}}},output:{encoding:"application/json",schema:{type:"object",required:["day","month","all"],properties:{day:{type:"ref",ref:"lex:chat.bsky.moderation.getActorMetadata#metadata"},month:{type:"ref",ref:"lex:chat.bsky.moderation.getActorMetadata#metadata"},all:{type:"ref",ref:"lex:chat.bsky.moderation.getActorMetadata#metadata"}}}}},metadata:{type:"object",required:["messagesSent","messagesReceived","convos","convosStarted"],properties:{messagesSent:{type:"integer"},messagesReceived:{type:"integer"},convos:{type:"integer"},convosStarted:{type:"integer"}}}}},ChatBskyModerationGetMessageContext:{lexicon:1,id:"chat.bsky.moderation.getMessageContext",defs:{main:{type:"query",parameters:{type:"params",required:["messageId"],properties:{convoId:{type:"string",description:"Conversation that the message is from. NOTE: this field will eventually be required."},messageId:{type:"string"},before:{type:"integer",default:5},after:{type:"integer",default:5}}},output:{encoding:"application/json",schema:{type:"object",required:["messages"],properties:{messages:{type:"array",items:{type:"union",refs:["lex:chat.bsky.convo.defs#messageView","lex:chat.bsky.convo.defs#deletedMessageView"]}}}}}}}},ChatBskyModerationUpdateActorAccess:{lexicon:1,id:"chat.bsky.moderation.updateActorAccess",defs:{main:{type:"procedure",input:{encoding:"application/json",schema:{type:"object",required:["actor","allowAccess"],properties:{actor:{type:"string",format:"did"},allowAccess:{type:"boolean"},ref:{type:"string"}}}}}}},ComAtprotoAdminDefs:{lexicon:1,id:"com.atproto.admin.defs",defs:{statusAttr:{type:"object",required:["applied"],properties:{applied:{type:"boolean"},ref:{type:"string"}}},accountView:{type:"object",required:["did","handle","indexedAt"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},email:{type:"string"},relatedRecords:{type:"array",items:{type:"unknown"}},indexedAt:{type:"string",format:"datetime"},invitedBy:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"},invites:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"}},invitesDisabled:{type:"boolean"},emailConfirmedAt:{type:"string",format:"datetime"},inviteNote:{type:"string"},deactivatedAt:{type:"string",format:"datetime"},threatSignatures:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#threatSignature"}}}},repoRef:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},repoBlobRef:{type:"object",required:["did","cid"],properties:{did:{type:"string",format:"did"},cid:{type:"string",format:"cid"},recordUri:{type:"string",format:"at-uri"}}},threatSignature:{type:"object",required:["property","value"],properties:{property:{type:"string"},value:{type:"string"}}}}},ComAtprotoAdminDeleteAccount:{lexicon:1,id:"com.atproto.admin.deleteAccount",defs:{main:{type:"procedure",description:"Delete a user account as an administrator.",input:{encoding:"application/json",schema:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}}}}}},ComAtprotoAdminDisableAccountInvites:{lexicon:1,id:"com.atproto.admin.disableAccountInvites",defs:{main:{type:"procedure",description:"Disable an account from receiving new invite codes, but does not invalidate existing codes.",input:{encoding:"application/json",schema:{type:"object",required:["account"],properties:{account:{type:"string",format:"did"},note:{type:"string",description:"Optional reason for disabled invites."}}}}}}},ComAtprotoAdminDisableInviteCodes:{lexicon:1,id:"com.atproto.admin.disableInviteCodes",defs:{main:{type:"procedure",description:"Disable some set of codes and/or all codes associated with a set of users.",input:{encoding:"application/json",schema:{type:"object",properties:{codes:{type:"array",items:{type:"string"}},accounts:{type:"array",items:{type:"string"}}}}}}}},ComAtprotoAdminEnableAccountInvites:{lexicon:1,id:"com.atproto.admin.enableAccountInvites",defs:{main:{type:"procedure",description:"Re-enable an account's ability to receive invite codes.",input:{encoding:"application/json",schema:{type:"object",required:["account"],properties:{account:{type:"string",format:"did"},note:{type:"string",description:"Optional reason for enabled invites."}}}}}}},ComAtprotoAdminGetAccountInfo:{lexicon:1,id:"com.atproto.admin.getAccountInfo",defs:{main:{type:"query",description:"Get details about an account.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did"}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:com.atproto.admin.defs#accountView"}}}}},ComAtprotoAdminGetAccountInfos:{lexicon:1,id:"com.atproto.admin.getAccountInfos",defs:{main:{type:"query",description:"Get details about some accounts.",parameters:{type:"params",required:["dids"],properties:{dids:{type:"array",items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["infos"],properties:{infos:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#accountView"}}}}}}}},ComAtprotoAdminGetInviteCodes:{lexicon:1,id:"com.atproto.admin.getInviteCodes",defs:{main:{type:"query",description:"Get an admin view of invite codes.",parameters:{type:"params",properties:{sort:{type:"string",knownValues:["recent","usage"],default:"recent"},limit:{type:"integer",minimum:1,maximum:500,default:100},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["codes"],properties:{cursor:{type:"string"},codes:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"}}}}}}}},ComAtprotoAdminGetSubjectStatus:{lexicon:1,id:"com.atproto.admin.getSubjectStatus",defs:{main:{type:"query",description:"Get the service-specific admin status of a subject (account, record, or blob).",parameters:{type:"params",properties:{did:{type:"string",format:"did"},uri:{type:"string",format:"at-uri"},blob:{type:"string",format:"cid"}}},output:{encoding:"application/json",schema:{type:"object",required:["subject"],properties:{subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef","lex:com.atproto.admin.defs#repoBlobRef"]},takedown:{type:"ref",ref:"lex:com.atproto.admin.defs#statusAttr"},deactivated:{type:"ref",ref:"lex:com.atproto.admin.defs#statusAttr"}}}}}}},ComAtprotoAdminSearchAccounts:{lexicon:1,id:"com.atproto.admin.searchAccounts",defs:{main:{type:"query",description:"Get list of accounts that matches your search query.",parameters:{type:"params",properties:{email:{type:"string"},cursor:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50}}},output:{encoding:"application/json",schema:{type:"object",required:["accounts"],properties:{cursor:{type:"string"},accounts:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#accountView"}}}}}}}},ComAtprotoAdminSendEmail:{lexicon:1,id:"com.atproto.admin.sendEmail",defs:{main:{type:"procedure",description:"Send email to a user's account email address.",input:{encoding:"application/json",schema:{type:"object",required:["recipientDid","content","senderDid"],properties:{recipientDid:{type:"string",format:"did"},content:{type:"string"},subject:{type:"string"},senderDid:{type:"string",format:"did"},comment:{type:"string",description:"Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers"}}}},output:{encoding:"application/json",schema:{type:"object",required:["sent"],properties:{sent:{type:"boolean"}}}}}}}
21,ComAtprotoAdminUpdateAccountEmail:{lexicon:1,id:"com.atproto.admin.updateAccountEmail",defs:{main:{type:"procedure",description:"Administrative action to update an account's email.",input:{encoding:"application/json",schema:{type:"object",required:["account","email"],properties:{account:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."},email:{type:"string"}}}}}}},ComAtprotoAdminUpdateAccountHandle:{lexicon:1,id:"com.atproto.admin.updateAccountHandle",defs:{main:{type:"procedure",description:"Administrative action to update an account's handle.",input:{encoding:"application/json",schema:{type:"object",required:["did","handle"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"}}}}}}},ComAtprotoAdminUpdateAccountPassword:{lexicon:1,id:"com.atproto.admin.updateAccountPassword",defs:{main:{type:"procedure",description:"Update the password for a user account as an administrator.",input:{encoding:"application/json",schema:{type:"object",required:["did","password"],properties:{did:{type:"string",format:"did"},password:{type:"string"}}}}}}},ComAtprotoAdminUpdateAccountSigningKey:{lexicon:1,id:"com.atproto.admin.updateAccountSigningKey",defs:{main:{type:"procedure",description:"Administrative action to update an account's signing key in their Did document.",input:{encoding:"application/json",schema:{type:"object",required:["did","signingKey"],properties:{did:{type:"string",format:"did"},signingKey:{type:"string",format:"did",description:"Did-key formatted public key"}}}}}}},ComAtprotoAdminUpdateSubjectStatus:{lexicon:1,id:"com.atproto.admin.updateSubjectStatus",defs:{main:{type:"procedure",description:"Update the service-specific admin status of a subject (account, record, or blob).",input:{encoding:"application/json",schema:{type:"object",required:["subject"],properties:{subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef","lex:com.atproto.admin.defs#repoBlobRef"]},takedown:{type:"ref",ref:"lex:com.atproto.admin.defs#statusAttr"},deactivated:{type:"ref",ref:"lex:com.atproto.admin.defs#statusAttr"}}}},output:{encoding:"application/json",schema:{type:"object",required:["subject"],properties:{subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef","lex:com.atproto.admin.defs#repoBlobRef"]},takedown:{type:"ref",ref:"lex:com.atproto.admin.defs#statusAttr"}}}}}}},ComAtprotoIdentityDefs:{lexicon:1,id:"com.atproto.identity.defs",defs:{identityInfo:{type:"object",required:["did","handle","didDoc"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle",description:"The validated handle of the account; or 'handle.invalid' if the handle did not bi-directionally match the DID document."},didDoc:{type:"unknown",description:"The complete DID document for the identity."}}}}},ComAtprotoIdentityGetRecommendedDidCredentials:{lexicon:1,id:"com.atproto.identity.getRecommendedDidCredentials",defs:{main:{type:"query",description:"Describe the credentials that should be included in the DID doc of an account that is migrating to this service.",output:{encoding:"application/json",schema:{type:"object",properties:{rotationKeys:{description:"Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.",type:"array",items:{type:"string"}},alsoKnownAs:{type:"array",items:{type:"string"}},verificationMethods:{type:"unknown"},services:{type:"unknown"}}}}}}},ComAtprotoIdentityRefreshIdentity:{lexicon:1,id:"com.atproto.identity.refreshIdentity",defs:{main:{type:"procedure",description:"Request that the server re-resolve an identity (DID and handle). The server may ignore this request, or require authentication, depending on the role, implementation, and policy of the server.",input:{encoding:"application/json",schema:{type:"object",required:["identifier"],properties:{identifier:{type:"string",format:"at-identifier"}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:com.atproto.identity.defs#identityInfo"}},errors:[{name:"HandleNotFound",description:"The resolution process confirmed that the handle does not resolve to any DID."},{name:"DidNotFound",description:"The DID resolution process confirmed that there is no current DID."},{name:"DidDeactivated",description:"The DID previously existed, but has been deactivated."}]}}},ComAtprotoIdentityRequestPlcOperationSignature:{lexicon:1,id:"com.atproto.identity.requestPlcOperationSignature",defs:{main:{type:"procedure",description:"Request an email with a code to in order to request a signed PLC operation. Requires Auth."}}},ComAtprotoIdentityResolveDid:{lexicon:1,id:"com.atproto.identity.resolveDid",defs:{main:{type:"query",description:"Resolves DID to DID document. Does not bi-directionally verify handle.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"DID to resolve."}}},output:{encoding:"application/json",schema:{type:"object",required:["didDoc"],properties:{didDoc:{type:"unknown",de
21scription:"The complete DID document for the identity."}}}},errors:[{name:"DidNotFound",description:"The DID resolution process confirmed that there is no current DID."},{name:"DidDeactivated",description:"The DID previously existed, but has been deactivated."}]}}},ComAtprotoIdentityResolveHandle:{lexicon:1,id:"com.atproto.identity.resolveHandle",defs:{main:{type:"query",description:"Resolves an atproto handle (hostname) to a DID. Does not necessarily bi-directionally verify against the the DID document.",parameters:{type:"params",required:["handle"],properties:{handle:{type:"string",format:"handle",description:"The handle to resolve."}}},output:{encoding:"application/json",schema:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}}},errors:[{name:"HandleNotFound",description:"The resolution process confirmed that the handle does not resolve to any DID."}]}}},ComAtprotoIdentityResolveIdentity:{lexicon:1,id:"com.atproto.identity.resolveIdentity",defs:{main:{type:"query",description:"Resolves an identity (DID or Handle) to a full identity (DID document and verified handle).",parameters:{type:"params",required:["identifier"],properties:{identifier:{type:"string",format:"at-identifier",description:"Handle or DID to resolve."}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:com.atproto.identity.defs#identityInfo"}},errors:[{name:"HandleNotFound",description:"The resolution process confirmed that the handle does not resolve to any DID."},{name:"DidNotFound",description:"The DID resolution process confirmed that there is no current DID."},{name:"DidDeactivated",description:"The DID previously existed, but has been deactivated."}]}}},ComAtprotoIdentitySignPlcOperation:{lexicon:1,id:"com.atproto.identity.signPlcOperation",defs:{main:{type:"procedure",description:"Signs a PLC operation to update some value(s) in the requesting DID's document.",input:{encoding:"application/json",schema:{type:"object",properties:{token:{description:"A token received through com.atproto.identity.requestPlcOperationSignature",type:"string"},rotationKeys:{type:"array",items:{type:"string"}},alsoKnownAs:{type:"array",items:{type:"string"}},verificationMethods:{type:"unknown"},services:{type:"unknown"}}}},output:{encoding:"application/json",schema:{type:"object",required:["operation"],properties:{operation:{type:"unknown",description:"A signed DID PLC operation."}}}}}}},ComAtprotoIdentitySubmitPlcOperation:{lexicon:1,id:"com.atproto.identity.submitPlcOperation",defs:{main:{type:"procedure",description:"Validates a PLC operation to ensure that it doesn't violate a service's constraints or get the identity into a bad state, then submits it to the PLC registry",input:{encoding:"application/json",schema:{type:"object",required:["operation"],properties:{operation:{type:"unknown"}}}}}}},ComAtprotoIdentityUpdateHandle:{lexicon:1,id:"com.atproto.identity.updateHandle",defs:{main:{type:"procedure",description:"Updates the current account's handle. Verifies handle validity, and updates did:plc document if necessary. Implemented by PDS, and requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["handle"],properties:{handle:{type:"string",format:"handle",description:"The new handle."}}}}}}},ComAtprotoLabelDefs:{lexicon:1,id:"com.atproto.label.defs",defs:{label:{type:"object",description:"Metadata tag on an atproto resource (eg, repo or record).",required:["src","uri","val","cts"],properties:{ver:{type:"integer",description:"The AT Protocol version of the label object."},src:{type:"string",format:"did",description:"DID of the actor who created this label."},uri:{type:"string",format:"uri",description:"AT URI of the record, repository (account), or other resource that this label applies to."},cid:{type:"string",format:"cid",description:"Optionally, CID specifying the specific version of 'uri' resource this label applies to."},val:{type:"string",maxLength:128,description:"The short string name of the value or type of this label."},neg:{type:"boolean",description:"If true, this is a negation label, overwriting a previous label."},cts:{type:"string",format:"datetime",description:"Timestamp when this label was created."},exp:{type:"string",format:"datetime",description:"Timestamp at which this label expires (no longer applies)."},sig:{type:"bytes",description:"Signature of dag-cbor encoded label."}}},selfLabels:{type:"object",description:"Metadata tags on an atproto record, published by the author within the record.",required:["values"],properties:{values:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#selfL
21abel"},maxLength:10}}},selfLabel:{type:"object",description:"Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.",required:["val"],properties:{val:{type:"string",maxLength:128,description:"The short string name of the value or type of this label."}}},labelValueDefinition:{type:"object",description:"Declares a label value and its expected interpretations and behaviors.",required:["identifier","severity","blurs","locales"],properties:{identifier:{type:"string",description:"The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).",maxLength:100,maxGraphemes:100},severity:{type:"string",description:"How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.",knownValues:["inform","alert","none"]},blurs:{type:"string",description:"What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.",knownValues:["content","media","none"]},defaultSetting:{type:"string",description:"The default setting for this label.",knownValues:["ignore","warn","hide"],default:"warn"},adultOnly:{type:"boolean",description:"Does the user need to have adult content enabled in order to configure this label?"},locales:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#labelValueDefinitionStrings"}}}},labelValueDefinitionStrings:{type:"object",description:"Strings which describe the label in the UI, localized into a specific language.",required:["lang","name","description"],properties:{lang:{type:"string",description:"The code of the language these strings are written in.",format:"language"},name:{type:"string",description:"A short human-readable name for the label.",maxGraphemes:64,maxLength:640},description:{type:"string",description:"A longer description of what the label means and why it might be applied.",maxGraphemes:1e4,maxLength:1e5}}},labelValue:{type:"string",knownValues:["!hide","!no-promote","!warn","!no-unauthenticated","dmca-violation","doxxing","porn","sexual","nudity","nsfl","gore"]}}},ComAtprotoLabelQueryLabels:{lexicon:1,id:"com.atproto.label.queryLabels",defs:{main:{type:"query",description:"Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.",parameters:{type:"params",required:["uriPatterns"],properties:{uriPatterns:{type:"array",items:{type:"string"},description:"List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI."},sources:{type:"array",items:{type:"string",format:"did"},description:"Optional list of label sources (DIDs) to filter on."},limit:{type:"integer",minimum:1,maximum:250,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["labels"],properties:{cursor:{type:"string"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}}}}}}}},ComAtprotoLabelSubscribeLabels:{lexicon:1,id:"com.atproto.label.subscribeLabels",defs:{main:{type:"subscription",description:"Subscribe to stream of labels (and negations). Public endpoint implemented by mod services. Uses same sequencing scheme as repo event stream.",parameters:{type:"params",properties:{cursor:{type:"integer",description:"The last known event seq number to backfill from."}}},message:{schema:{type:"union",refs:["lex:com.atproto.label.subscribeLabels#labels","lex:com.atproto.label.subscribeLabels#info"]}},errors:[{name:"FutureCursor"}]},labels:{type:"object",required:["seq","labels"],properties:{seq:{type:"integer"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}}}},info:{type:"object",required:["name"],properties:{name:{type:"string",knownValues:["OutdatedCursor"]},message:{type:"string"}}}}},ComAtprotoLexiconSchema:{lexicon:1,id:"com.atproto.lexicon.schema",defs:{main:{type:"record",description:"Representation of Lexicon schemas themselves, when published as atproto records. Note that the schema language is not defined in Lexicon; this meta schema currently only includes a single version field ('lexicon'). See the atproto specifications for description of the other expected top-level fields ('id', 'defs', etc).",key:"nsid",record:{type:"object",required:["lexicon"],properties:{lexicon:{type:"integer",description:"Indicates the 'version' of the Lexicon language. Must be '1' for the current atproto/Lexicon schema system."}}}}}},ComAtprotoModerationCreateReport:{lexicon:1,id:"com.atproto.moderation.createReport",defs:{main:{type:"procedure",description:"Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["reasonType","subject"],properties:{reasonType:{type:"ref",description:"Indicates the broad category of violation the report is for.",ref:"lex:com.atproto.moderation.defs#reasonType"},reason:{type:"string",maxGraphemes:2e3,maxLength:2e4,description:"Additional context about the content and violation."},subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef"]},modTool:{type:"ref",ref:"lex:com.atproto.moderation.createReport#modTool"}}}},output:{encoding:"application/json",schema:{type:"object",required:["id","reasonType","subject","reportedBy","createdAt"],properties:{id:{type:"integer"},reasonType:{type:"ref",ref:"lex:com.atproto.moderation.defs#reasonType"},reason:{type:"string",maxGraphemes:2e3,maxLength:2e4},subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef"]},reportedBy:{type:"string",format:"did"},createdAt:{type:"string",format:"datetime"}}}}},modTool:{type:"object",description:"Moderation tool information for tracing the source of the action",required:["name"],properties:{name:{type:"string",description:"Name/identifier of the source (e.g., 'bsky-app/android', 'bsky-web/chrome')"}
21,meta:{type:"unknown",description:"Additional arbitrary metadata about the source"}}}}},ComAtprotoModerationDefs:{lexicon:1,id:"com.atproto.moderation.defs",defs:{reasonType:{type:"string",knownValues:["com.atproto.moderation.defs#reasonSpam","com.atproto.moderation.defs#reasonViolation","com.atproto.moderation.defs#reasonMisleading","com.atproto.moderation.defs#reasonSexual","com.atproto.moderation.defs#reasonRude","com.atproto.moderation.defs#reasonOther","com.atproto.moderation.defs#reasonAppeal","tools.ozone.report.defs#reasonAppeal","tools.ozone.report.defs#reasonViolenceAnimalWelfare","tools.ozone.report.defs#reasonViolenceThreats","tools.ozone.report.defs#reasonViolenceGraphicContent","tools.ozone.report.defs#reasonViolenceSelfHarm","tools.ozone.report.defs#reasonViolenceGlorification","tools.ozone.report.defs#reasonViolenceExtremistContent","tools.ozone.report.defs#reasonViolenceTrafficking","tools.ozone.report.defs#reasonViolenceOther","tools.ozone.report.defs#reasonSexualAbuseContent","tools.ozone.report.defs#reasonSexualNCII","tools.ozone.report.defs#reasonSexualSextortion","tools.ozone.report.defs#reasonSexualDeepfake","tools.ozone.report.defs#reasonSexualAnimal","tools.ozone.report.defs#reasonSexualUnlabeled","tools.ozone.report.defs#reasonSexualOther","tools.ozone.report.defs#reasonChildSafetyCSAM","tools.ozone.report.defs#reasonChildSafetyGroom","tools.ozone.report.defs#reasonChildSafetyMinorPrivacy","tools.ozone.report.defs#reasonChildSafetyEndangerment","tools.ozone.report.defs#reasonChildSafetyHarassment","tools.ozone.report.defs#reasonChildSafetyPromotion","tools.ozone.report.defs#reasonChildSafetyOther","tools.ozone.report.defs#reasonHarassmentTroll","tools.ozone.report.defs#reasonHarassmentTargeted","tools.ozone.report.defs#reasonHarassmentHateSpeech","tools.ozone.report.defs#reasonHarassmentDoxxing","tools.ozone.report.defs#reasonHarassmentOther","tools.ozone.report.defs#reasonMisleadingBot","tools.ozone.report.defs#reasonMisleadingImpersonation","tools.ozone.report.defs#reasonMisleadingSpam","tools.ozone.report.defs#reasonMisleadingScam","tools.ozone.report.defs#reasonMisleadingSyntheticContent","tools.ozone.report.defs#reasonMisleadingMisinformation","tools.ozone.report.defs#reasonMisleadingOther","tools.ozone.report.defs#reasonRuleSiteSecurity","tools.ozone.report.defs#reasonRuleStolenContent","tools.ozone.report.defs#reasonRuleProhibitedSales","tools.ozone.report.defs#reasonRuleBanEvasion","tools.ozone.report.defs#reasonRuleOther","tools.ozone.report.defs#reasonCivicElectoralProcess","tools.ozone.report.defs#reasonCivicDisclosure","tools.ozone.report.defs#reasonCivicInterference","tools.ozone.report.defs#reasonCivicMisinformation","tools.ozone.report.defs#reasonCivicImpersonation"]},reasonSpam:{type:"token",description:"Spam: frequent unwanted promotion, replies, mentions. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingSpam`."},reasonViolation:{type:"token",description:"Direct violation of server rules, laws, terms of service. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`."},reasonMisleading:{type:"token",description:"Misleading identity, affiliation, or content. Prefer new lexicon definition `tools.ozone.report.defs#reasonMisleadingOther`."},reasonSexual:{type:"token",description:"Unwanted or mislabeled sexual content. Prefer new lexicon definition `tools.ozone.report.defs#reasonSexualUnlabeled`."},reasonRude:{type:"token",description:"Rude, harassing, explicit, or otherwise unwelcoming behavior. Prefer new lexicon definition `tools.ozone.report.defs#reasonHarassmentOther`."},reasonOther:{type:"token",description:"Reports not falling under another report category. Prefer new lexicon definition `tools.ozone.report.defs#reasonRuleOther`."},reasonAppeal:{type:"token",description:"Appeal a previously taken moderation action"},subjectType:{type:"string",description:"Tag describing a type of subject that might be reported.",knownValues:["account","record","chat"]}}},ComAtprotoRepoApplyWrites:{lexicon:1,id:"com.atproto.repo.applyWrites",defs:{main:{type:"procedure",description:"Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","writes"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons."},writes:{type:"array",items:{type:"union",refs:["lex:com.atproto.repo.applyWrites#create","lex:com.atproto.repo.applyWrites#update","lex:com.atproto.repo.applyWrites#delete"],closed:!0}},swapCommit:{type:"string",description:"If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.",format:"cid"}}}},output:{encoding:"application/json",schema:{type:"object",required:[],properties:{commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},results:{type:"array",items:{type:"union",refs:["lex:com.atproto.repo.applyWrites#createResult","lex:com.atproto.repo.applyWrites#updateResult","lex:com.atproto.repo.applyWrites#deleteResult"],closed:!0}}}}},errors:[{name:"InvalidSwap",description:"Indicates that the 'swapCommit' parameter did not match current commit."}]},create:{type:"object",description:"Operation which creates a new record.",required:["collection","value"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",maxLength:512,format:"record-key",description:"NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility."},value:{type:"unknown"}}},update:{type:"object",description:"Operation which updates an existing record.",required:["collection","rkey","value"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",format:"record-key"},value:{type:"unknown"}}},delete:{type:"object",description:"Operation which deletes an existing record.",required:["collection","rkey"],properties:{collection:{type:"string",format:"nsid"},rkey:{type:"string",format:"record-key"}}},createResult:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}},updateResult:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}},deleteResult:{type:"object",required:[],properties:{}}}},ComAtprotoRepoCreateRecord:{lexicon:1,id:"com.atproto.repo.createRecord",defs:{main:{type:"procedure",description:"Create a single new repository record. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","record"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key.",maxLength:512},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons."}
21,record:{type:"unknown",description:"The record itself. Must contain a $type field."},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}}},errors:[{name:"InvalidSwap",description:"Indicates that 'swapCommit' didn't match current repo commit."}]}}},ComAtprotoRepoDefs:{lexicon:1,id:"com.atproto.repo.defs",defs:{commitMeta:{type:"object",required:["cid","rev"],properties:{cid:{type:"string",format:"cid"},rev:{type:"string",format:"tid"}}}}},ComAtprotoRepoDeleteRecord:{lexicon:1,id:"com.atproto.repo.deleteRecord",defs:{main:{type:"procedure",description:"Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","rkey"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key."},swapRecord:{type:"string",format:"cid",description:"Compare and swap with the previous record by CID."},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",properties:{commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"}}}},errors:[{name:"InvalidSwap"}]}}},ComAtprotoRepoDescribeRepo:{lexicon:1,id:"com.atproto.repo.describeRepo",defs:{main:{type:"query",description:"Get information about an account and repository, including the list of collections. Does not require auth.",parameters:{type:"params",required:["repo"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."}}},output:{encoding:"application/json",schema:{type:"object",required:["handle","did","didDoc","collections","handleIsCorrect"],properties:{handle:{type:"string",format:"handle"},did:{type:"string",format:"did"},didDoc:{type:"unknown",description:"The complete DID document for this account."},collections:{type:"array",description:"List of all the collections (NSIDs) for which this repo contains at least one record.",items:{type:"string",format:"nsid"}},handleIsCorrect:{type:"boolean",description:"Indicates if handle is currently valid (resolves bi-directionally)"}}}}}}},ComAtprotoRepoGetRecord:{lexicon:1,id:"com.atproto.repo.getRecord",defs:{main:{type:"query",description:"Get a single record from a repository. Does not require auth.",parameters:{type:"params",required:["repo","collection","rkey"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",description:"The Record Key.",format:"record-key"},cid:{type:"string",format:"cid",description:"The CID of the version of the record. If not specified, then return the most recent version."}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","value"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"}}}},errors:[{name:"RecordNotFound"}]}}},ComAtprotoRepoImportRepo:{lexicon:1,id:"com.atproto.repo.importRepo",defs:{main:{type:"procedure",description:"Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.",input:{encoding:"application/vnd.ipld.car"}}}},ComAtprotoRepoListMissingBlobs:{lexicon:1,id:"com.atproto.repo.listMissingBlobs",defs:{main:{type:"query",description:"Returns a list of missing blobs for the requesting account. Intended to be used in the account migration flow.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:1e3,default:500},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["blobs"],properties:{cursor:{type:"string"},blobs:{type:"array",items:{type:"ref",ref:"lex:com.atproto.repo.listMissingBlobs#recordBlob"}}}}}},recordBlob:{type:"object",required:["cid","recordUri"],properties:{cid:{type:"string",format:"cid"},recordUri:{type:"string",format:"at-uri"}}}}},ComAtprotoRepoListRecords:{lexicon:1,id:"com.atproto.repo.listRecords",defs:{main:{type:"query",description:"List a range of records in a repository, matching a specific collection. Does not require auth.",parameters:{type:"params",required:["repo","collection"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo."},collection:{type:"string",format:"nsid",description:"The NSID of the record type."},limit:{type:"integer",minimum:1,maximum:100,default:50,description:"The number of records to return."},cursor:{type:"string"},reverse:{type:"boolean",description:"Flag to reverse the order of the returned records."}}},output:{encoding:"application/json",schema:{type:"object",required:["records"],properties:{cursor:{type:"string"},records:{type:"array",items:{type:"ref",ref:"lex:com.atproto.repo.listRecords#record"}}}}}},record:{type:"object",required:["uri","cid","value"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"}}}}},ComAtprotoRepoPutRecord:{lexicon:1,id:"com.atproto.repo.putRecord",defs:{main:{type:"procedure",description:"Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["repo","collection","rkey","record"],nullable:["swapRecord"],properties:{repo:{type:"string",format:"at-identifier",description:"The handle or DID of the repo (aka, current account)."},collection:{type:"string",format:"nsid",description:"The NSID of the record collection."},rkey:{type:"string",format:"record-key",description:"The Record Key.",maxLength:512},validate:{type:"boolean",description:"Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons."}
21,record:{type:"unknown",description:"The record to write."},swapRecord:{type:"string",format:"cid",description:"Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation"},swapCommit:{type:"string",format:"cid",description:"Compare and swap with the previous commit by CID."}}}},output:{encoding:"application/json",schema:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},commit:{type:"ref",ref:"lex:com.atproto.repo.defs#commitMeta"},validationStatus:{type:"string",knownValues:["valid","unknown"]}}}},errors:[{name:"InvalidSwap"}]}}},ComAtprotoRepoStrongRef:{lexicon:1,id:"com.atproto.repo.strongRef",description:"A URI with a content-hash fingerprint.",defs:{main:{type:"object",required:["uri","cid"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"}}}}},ComAtprotoRepoUploadBlob:{lexicon:1,id:"com.atproto.repo.uploadBlob",defs:{main:{type:"procedure",description:"Upload a new blob, to be referenced from a repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by PDS.",input:{encoding:"*/*"},output:{encoding:"application/json",schema:{type:"object",required:["blob"],properties:{blob:{type:"blob"}}}}}}},ComAtprotoServerActivateAccount:{lexicon:1,id:"com.atproto.server.activateAccount",defs:{main:{type:"procedure",description:"Activates a currently deactivated account. Used to finalize account migration after the account's repo is imported and identity is setup."}}},ComAtprotoServerCheckAccountStatus:{lexicon:1,id:"com.atproto.server.checkAccountStatus",defs:{main:{type:"query",description:"Returns the status of an account, especially as pertaining to import or recovery. Can be called many times over the course of an account migration. Requires auth and can only be called pertaining to oneself.",output:{encoding:"application/json",schema:{type:"object",required:["activated","validDid","repoCommit","repoRev","repoBlocks","indexedRecords","privateStateValues","expectedBlobs","importedBlobs"],properties:{activated:{type:"boolean"},validDid:{type:"boolean"},repoCommit:{type:"string",format:"cid"},repoRev:{type:"string"},repoBlocks:{type:"integer"},indexedRecords:{type:"integer"},privateStateValues:{type:"integer"},expectedBlobs:{type:"integer"},importedBlobs:{type:"integer"}}}}}}},ComAtprotoServerConfirmEmail:{lexicon:1,id:"com.atproto.server.confirmEmail",defs:{main:{type:"procedure",description:"Confirm an email using a token from com.atproto.server.requestEmailConfirmation.",input:{encoding:"application/json",schema:{type:"object",required:["email","token"],properties:{email:{type:"string"},token:{type:"string"}}}},errors:[{name:"AccountNotFound"},{name:"ExpiredToken"},{name:"InvalidToken"},{name:"InvalidEmail"}]}}},ComAtprotoServerCreateAccount:{lexicon:1,id:"com.atproto.server.createAccount",defs:{main:{type:"procedure",description:"Create an account. Implemented by PDS.",input:{encoding:"application/json",schema:{type:"object",required:["handle"],properties:{email:{type:"string"},handle:{type:"string",format:"handle",description:"Requested handle for the account."},did:{type:"string",format:"did",description:"Pre-existing atproto DID, being imported to a new account."},inviteCode:{type:"string"},verificationCode:{type:"string"},verificationPhone:{type:"string"},password:{type:"string",description:"Initial account password. May need to meet instance-specific password strength requirements."},recoveryKey:{type:"string",description:"DID PLC rotation key (aka, recovery key) to be included in PLC creation operation."},plcOp:{type:"unknown",description:"A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented."}}}},output:{encoding:"application/json",schema:{type:"object",description:"Account login session returned on successful account creation.",required:["accessJwt","refreshJwt","handle","did"],properties:{accessJwt:{type:"string"},refreshJwt:{type:"string"},handle:{type:"string",format:"handle"},did:{type:"string",format:"did",description:"The DID of the new account."}
21,didDoc:{type:"unknown",description:"Complete DID document."}}}},errors:[{name:"InvalidHandle"},{name:"InvalidPassword"},{name:"InvalidInviteCode"},{name:"HandleNotAvailable"},{name:"UnsupportedDomain"},{name:"UnresolvableDid"},{name:"IncompatibleDidDoc"}]}}},ComAtprotoServerCreateAppPassword:{lexicon:1,id:"com.atproto.server.createAppPassword",defs:{main:{type:"procedure",description:"Create an App Password.",input:{encoding:"application/json",schema:{type:"object",required:["name"],properties:{name:{type:"string",description:"A short name for the App Password, to help distinguish them."},privileged:{type:"boolean",description:"If an app password has 'privileged' access to possibly sensitive account state. Meant for use with trusted clients."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:com.atproto.server.createAppPassword#appPassword"}},errors:[{name:"AccountTakedown"}]},appPassword:{type:"object",required:["name","password","createdAt"],properties:{name:{type:"string"},password:{type:"string"},createdAt:{type:"string",format:"datetime"},privileged:{type:"boolean"}}}}},ComAtprotoServerCreateInviteCode:{lexicon:1,id:"com.atproto.server.createInviteCode",defs:{main:{type:"procedure",description:"Create an invite code.",input:{encoding:"application/json",schema:{type:"object",required:["useCount"],properties:{useCount:{type:"integer"},forAccount:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["code"],properties:{code:{type:"string"}}}}}}},ComAtprotoServerCreateInviteCodes:{lexicon:1,id:"com.atproto.server.createInviteCodes",defs:{main:{type:"procedure",description:"Create invite codes.",input:{encoding:"application/json",schema:{type:"object",required:["codeCount","useCount"],properties:{codeCount:{type:"integer",default:1},useCount:{type:"integer"},forAccounts:{type:"array",items:{type:"string",format:"did"}}}}},output:{encoding:"application/json",schema:{type:"object",required:["codes"],properties:{codes:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.createInviteCodes#accountCodes"}}}}}},accountCodes:{type:"object",required:["account","codes"],properties:{account:{type:"string"},codes:{type:"array",items:{type:"string"}}}}}},ComAtprotoServerCreateSession:{lexicon:1,id:"com.atproto.server.createSession",defs:{main:{type:"procedure",description:"Create an authentication session.",input:{encoding:"application/json",schema:{type:"object",required:["identifier","password"],properties:{identifier:{type:"string",description:"Handle or other identifier supported by the server for the authenticating user."},password:{type:"string"},authFactorToken:{type:"string"},allowTakendown:{type:"boolean",description:"When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned"}}}},output:{encoding:"application/json",schema:{type:"object",required:["accessJwt","refreshJwt","handle","did"],properties:{accessJwt:{type:"string"},refreshJwt:{type:"string"},handle:{type:"string",format:"handle"},did:{type:"string",format:"did"},didDoc:{type:"unknown"},email:{type:"string"},emailConfirmed:{type:"boolean"},emailAuthFactor:{type:"boolean"},active:{type:"boolean"},status:{type:"string",description:"If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",knownValues:["takendown","suspended","deactivated"]}}}},errors:[{name:"AccountTakedown"},{name:"AuthFactorTokenRequired"}]}}},ComAtprotoServerDeactivateAccount:{lexicon:1,id:"com.atproto.server.deactivateAccount",defs:{main:{type:"procedure",description:"Deactivates a currently active account. Stops serving of repo, and future writes to repo until reactivated. Used to finalize account migration with the old host after the account has been activated on the new host.",input:{encoding:"application/json",schema:{type:"object",properties:{deleteAfter:{type:"string",format:"datetime",description:"A recommendation to server as to how long they should hold onto the deactivated account before deleting."}}}}}}},ComAtprotoServerDefs:{lexicon:1,id:"com.atproto.server.defs",defs:{inviteCode:{type:"object",required:["code","available","disabled","forAccount","createdBy","createdAt","uses"],properties:{code:{type:"string"},available:{type:"integer"},disabled:{type:"boolean"},forAccount:{type:"string"},createdBy:{type:"string"},createdAt:{type:"string",format:"datetime"},uses:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCodeUse"}}}},inviteCodeUse:{type:"object",required:["usedBy","usedAt"],properties:{usedBy:{type:"string",format:"did"},usedAt:{type:"string",format:"datetime"}}}}},ComAtprotoServerDeleteAccount:{lexicon:1,id:"com.atproto.server.deleteAccount",defs:{main:{type:"procedure",description:"Delete an actor's account with a token and password. Can only be called after requesting a deletion token. Requires auth.",input:{encoding:"application/json",schema:{type:"object",required:["did","password","token"],properties:{did:{type:"string",format:"did"},password:{type:"string"},token:{type:"string"}}}},errors:[{name:"ExpiredToken"},{name:"InvalidToken"}]}}},ComAtprotoServerDeleteSession:{lexicon:1,id:"com.atproto.server.deleteSession",defs:{main:{type:"procedure",description:"Delete the current session. Requires auth."}}},ComAtprotoServerDescribeServer:{lexicon:1,id:"com.atproto.server.describeServer",defs:{main:{type:"query",description:"Describes the server's account creation requirements and capabilities. Implemented by PDS.",output:{encoding:"application/json",schema:{type:"object",required:["did","availableUserDomains"],properties:{inviteCodeRequired:{type:"boolean",description:"If true, an invite code must be supplied to create an account on this instance."},phoneVerificationRequired:{type:"boolean",description:"If true, a phone verification token must be supplied to create an account on this instance."},availableUserDomains:{type:"array",description:"List of domain suffixes that can be used in account handles.",items:{type:"string"}},links:{type:"ref",description:"URLs of service policy documents.",ref:"lex:com.atproto.server.describeServer#links"},contact:{type:"ref",description:"Contact information",ref:"lex:com.atproto.server.describeServer#contact"},did:{type:"string",format:"did"}}}}},links:{type:"object",properties:{privacyPolicy:{type:"string",format:"uri"},termsOfService:{type:"string",format:"uri"}}},contact:{type:"object",properties:{email:{type:"string"}}}}},ComAtprotoServerGetAccountInviteCodes:{lexicon:1,id:"com.atproto.server.getAccountInviteCodes",defs:{main:{type:"query",description:"Get all invite codes for the current account. Requires auth.",parameters:{type:"params",properties:{includeUsed:{type:"boolean",default:!0},createAvailable:{type:"boolean",default:!0,description:"Controls whether any new 'earned' but not 'created' invites should be created."}}},output:{encoding:"application/json",schema:{type:"object",required:["codes"],properties:{codes:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"}}}}},errors:[{name:"DuplicateCreate"}]}}},ComAtprotoServerGetServiceAuth:{lexicon:1,id:"com.atproto.server.getServiceAuth",defs:{main:{type:"query",description:"Get a signed token on behalf of the requesting DID for the requested service.",parameters:{type:"params",required:["aud"],properties:{aud:{type:"string",format:"did",description:"The DID of the service that the token will be used to authenticate with"},exp:{type:"integer",description:"The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds
21in the future. The service may enforce certain time bounds on tokens depending on the requested scope."},lxm:{type:"string",format:"nsid",description:"Lexicon (XRPC) method to bind the requested token to"}}},output:{encoding:"application/json",schema:{type:"object",required:["token"],properties:{token:{type:"string"}}}},errors:[{name:"BadExpiration",description:"Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes."}]}}},ComAtprotoServerGetSession:{lexicon:1,id:"com.atproto.server.getSession",defs:{main:{type:"query",description:"Get information about the current auth session. Requires auth.",output:{encoding:"application/json",schema:{type:"object",required:["handle","did"],properties:{handle:{type:"string",format:"handle"},did:{type:"string",format:"did"},email:{type:"string"},emailConfirmed:{type:"boolean"},emailAuthFactor:{type:"boolean"},didDoc:{type:"unknown"},active:{type:"boolean"},status:{type:"string",description:"If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",knownValues:["takendown","suspended","deactivated"]}}}}}}},ComAtprotoServerListAppPasswords:{lexicon:1,id:"com.atproto.server.listAppPasswords",defs:{main:{type:"query",description:"List all App Passwords.",output:{encoding:"application/json",schema:{type:"object",required:["passwords"],properties:{passwords:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.listAppPasswords#appPassword"}}}}},errors:[{name:"AccountTakedown"}]},appPassword:{type:"object",required:["name","createdAt"],properties:{name:{type:"string"},createdAt:{type:"string",format:"datetime"},privileged:{type:"boolean"}}}}},ComAtprotoServerRefreshSession:{lexicon:1,id:"com.atproto.server.refreshSession",defs:{main:{type:"procedure",description:"Refresh an authentication session. Requires auth using the 'refreshJwt' (not the 'accessJwt').",output:{encoding:"application/json",schema:{type:"object",required:["accessJwt","refreshJwt","handle","did"],properties:{accessJwt:{type:"string"},refreshJwt:{type:"string"},handle:{type:"string",format:"handle"},did:{type:"string",format:"did"},didDoc:{type:"unknown"},active:{type:"boolean"},status:{type:"string",description:"Hosting status of the account. If not specified, then assume 'active'.",knownValues:["takendown","suspended","deactivated"]}}}},errors:[{name:"AccountTakedown"}]}}},ComAtprotoServerRequestAccountDelete:{lexicon:1,id:"com.atproto.server.requestAccountDelete",defs:{main:{type:"procedure",description:"Initiate a user account deletion via email."}}},ComAtprotoServerRequestEmailConfirmation:{lexicon:1,id:"com.atproto.server.requestEmailConfirmation",defs:{main:{type:"procedure",description:"Request an email with a code to confirm ownership of email."}}},ComAtprotoServerRequestEmailUpdate:{lexicon:1,id:"com.atproto.server.requestEmailUpdate",defs:{main:{type:"procedure",description:"Request a token in order to update email.",output:{encoding:"application/json",schema:{type:"object",required:["tokenRequired"],properties:{tokenRequired:{type:"boolean"}}}}}}},ComAtprotoServerRequestPasswordReset:{lexicon:1,id:"com.atproto.server.requestPasswordReset",defs:{main:{type:"procedure",description:"Initiate a user account password reset via email.",input:{encoding:"application/json",schema:{type:"object",required:["email"],properties:{email:{type:"string"}}}}}}},ComAtprotoServerReserveSigningKey:{lexicon:1,id:"com.atproto.server.reserveSigningKey",defs:{main:{type:"procedure",description:"Reserve a repo signing key, for use with account creation. Necessary so that a DID PLC update operation can be constructed during an account migraiton. Public and does not require auth; implemented by PDS. NOTE: this endpoint may change when full account migration is implemented.",input:{encoding:"application/json",schema:{type:"object",properties:{did:{type:"string",format:"did",description:"The DID to reserve a key for."}}}},output:{encoding:"application/json",schema:{type:"object",required:["signingKey"],properties:{signingKey:{type:"string",description:"The public key for the reserved signing key, in did:key serialization."}}}}}}},ComAtprotoServerResetPassword:{lexicon:1,id:"com.atproto.server.resetPassword",defs:{main:{type:"procedure",description:"Reset a user account password using a token.",input:{encoding:"application/json",schema:{type:"object",required:["token","password"],properties:{token:{type:"string"},password:{type:"string"}}}},errors:[{name:"ExpiredToken"},{name:"InvalidToken"}]}}},ComAtprotoServerRevokeAppPassword:{lexicon:1,id:"com.atproto.server.revokeAppPassword",defs:{main:{type:"procedure",description:"Revoke an App Password by n
21ame.",input:{encoding:"application/json",schema:{type:"object",required:["name"],properties:{name:{type:"string"}}}}}}},ComAtprotoServerUpdateEmail:{lexicon:1,id:"com.atproto.server.updateEmail",defs:{main:{type:"procedure",description:"Update an account's email.",input:{encoding:"application/json",schema:{type:"object",required:["email"],properties:{email:{type:"string"},emailAuthFactor:{type:"boolean"},token:{type:"string",description:"Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed."}}}},errors:[{name:"ExpiredToken"},{name:"InvalidToken"},{name:"TokenRequired"}]}}},ComAtprotoSyncDefs:{lexicon:1,id:"com.atproto.sync.defs",defs:{hostStatus:{type:"string",knownValues:["active","idle","offline","throttled","banned"]}}},ComAtprotoSyncGetBlob:{lexicon:1,id:"com.atproto.sync.getBlob",defs:{main:{type:"query",description:"Get a blob associated with a given account. Returns the full blob as originally uploaded. Does not require auth; implemented by PDS.",parameters:{type:"params",required:["did","cid"],properties:{did:{type:"string",format:"did",description:"The DID of the account."},cid:{type:"string",format:"cid",description:"The CID of the blob to fetch"}}},output:{encoding:"*/*"},errors:[{name:"BlobNotFound"},{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncGetBlocks:{lexicon:1,id:"com.atproto.sync.getBlocks",defs:{main:{type:"query",description:"Get data blocks from a given repo, by CID. For example, intermediate MST nodes, or records. Does not require auth; implemented by PDS.",parameters:{type:"params",required:["did","cids"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."},cids:{type:"array",items:{type:"string",format:"cid"}}}},output:{encoding:"application/vnd.ipld.car"},errors:[{name:"BlockNotFound"},{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncGetCheckout:{lexicon:1,id:"com.atproto.sync.getCheckout",defs:{main:{type:"query",description:"DEPRECATED - please use com.atproto.sync.getRepo instead",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."}}},output:{encoding:"application/vnd.ipld.car"}}}},ComAtprotoSyncGetHead:{lexicon:1,id:"com.atproto.sync.getHead",defs:{main:{type:"query",description:"DEPRECATED - please use com.atproto.sync.getLatestCommit instead",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."}}},output:{encoding:"application/json",schema:{type:"object",required:["root"],properties:{root:{type:"string",format:"cid"}}}},errors:[{name:"HeadNotFound"}]}}},ComAtprotoSyncGetHostStatus:{lexicon:1,id:"com.atproto.sync.getHostStatus",defs:{main:{type:"query",description:"Returns information about a specified upstream host, as consumed by the server. Implemented by relays.",parameters:{type:"params",required:["hostname"],properties:{hostname:{type:"string",description:"Hostname of the host (eg, PDS or relay) being queried."}}},output:{encoding:"application/json",schema:{type:"object",required:["hostname"],properties:{hostname:{type:"string"},seq:{type:"integer",description:"Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)."},accountCount:{type:"integer",description:"Number of accounts on the server which are associated with the upstream host. Note that the upstream may actually have more accounts."},status:{type:"ref",ref:"lex:com.atproto.sync.defs#hostStatus"}}}},errors:[{name:"HostNotFound"}]}}},ComAtprotoSyncGetLatestCommit:{lexicon:1,id:"com.atproto.sync.getLatestCommit",defs:{main:{type:"query",description:"Get the current commit CID & revision of the specified repo. Does not require auth.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."}}},output:{encoding:"application/json",schema:{type:"object",required:["cid","rev"],properties:{cid:{type:"string",format:"cid"},rev:{type:"string",format:"tid"}}}},errors:[{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncGetRecord:{lexicon:1,id:"com.atproto.sync.getRecord",defs:{main:{type:"query",description:"Get data blocks needed to prove the existence or non-existence of record
21in the current version of repo. Does not require auth.",parameters:{type:"params",required:["did","collection","rkey"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."},collection:{type:"string",format:"nsid"},rkey:{type:"string",description:"Record Key",format:"record-key"}}},output:{encoding:"application/vnd.ipld.car"},errors:[{name:"RecordNotFound"},{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncGetRepo:{lexicon:1,id:"com.atproto.sync.getRepo",defs:{main:{type:"query",description:"Download a repository export as CAR file. Optionally only a 'diff' since a previous revision. Does not require auth; implemented by PDS.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."},since:{type:"string",format:"tid",description:"The revision ('rev') of the repo to create a diff from."}}},output:{encoding:"application/vnd.ipld.car"},errors:[{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncGetRepoStatus:{lexicon:1,id:"com.atproto.sync.getRepoStatus",defs:{main:{type:"query",description:"Get the hosting status for a repository, on this server. Expected to be implemented by PDS and Relay.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."}}},output:{encoding:"application/json",schema:{type:"object",required:["did","active"],properties:{did:{type:"string",format:"did"},active:{type:"boolean"},status:{type:"string",description:"If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",knownValues:["takendown","suspended","deleted","deactivated","desynchronized","throttled"]},rev:{type:"string",format:"tid",description:"Optional field, the current rev of the repo, if active=true"}}}},errors:[{name:"RepoNotFound"}]}}},ComAtprotoSyncListBlobs:{lexicon:1,id:"com.atproto.sync.listBlobs",defs:{main:{type:"query",description:"List blob CIDs for an account, since some repo revision. Does not require auth; implemented by PDS.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did",description:"The DID of the repo."},since:{type:"string",format:"tid",description:"Optional revision of the repo to list blobs since."},limit:{type:"integer",minimum:1,maximum:1e3,default:500},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["cids"],properties:{cursor:{type:"string"},cids:{type:"array",items:{type:"string",format:"cid"}}}}},errors:[{name:"RepoNotFound"},{name:"RepoTakendown"},{name:"RepoSuspended"},{name:"RepoDeactivated"}]}}},ComAtprotoSyncListHosts:{lexicon:1,id:"com.atproto.sync.listHosts",defs:{main:{type:"query",description:"Enumerates upstream hosts (eg, PDS or relay instances) that this service consumes from. Implemented by relays.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:1e3,default:200},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["hosts"],properties:{cursor:{type:"string"},hosts:{type:"array",items:{type:"ref",ref:"lex:com.atproto.sync.listHosts#host"},description:"Sort order is not formally specified. Recommended order is by time host was first seen by the server, with oldest first."}}}}},host:{type:"object",required:["hostname"],properties:{hostname:{type:"string",description:"hostname of server; not a URL (no scheme)"},seq:{type:"integer",description:"Recent repo stream event sequence number. May be delayed from actual stream processing (eg, persisted cursor not in-memory cursor)."},accountCount:{type:"integer"},status:{type:"ref",ref:"lex:com.atproto.sync.defs#hostStatus"}}}}},ComAtprotoSyncListRepos:{lexicon:1,id:"com.atproto.sync.listRepos",defs:{main:{type:"query",description:"Enumerates all the DID, rev, and commit CID for all repos hosted by this
21service. Does not require auth; implemented by PDS and Relay.",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:1e3,default:500},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["repos"],properties:{cursor:{type:"string"},repos:{type:"array",items:{type:"ref",ref:"lex:com.atproto.sync.listRepos#repo"}}}}}},repo:{type:"object",required:["did","head","rev"],properties:{did:{type:"string",format:"did"},head:{type:"string",format:"cid",description:"Current repo commit CID"},rev:{type:"string",format:"tid"},active:{type:"boolean"},status:{type:"string",description:"If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",knownValues:["takendown","suspended","deleted","deactivated","desynchronized","throttled"]}}}}},ComAtprotoSyncListReposByCollection:{lexicon:1,id:"com.atproto.sync.listReposByCollection",defs:{main:{type:"query",description:"Enumerates all the DIDs which have records with the given collection NSID.",parameters:{type:"params",required:["collection"],properties:{collection:{type:"string",format:"nsid"},limit:{type:"integer",description:"Maximum size of response set. Recommend setting a large maximum (1000+) when enumerating large DID lists.",minimum:1,maximum:2e3,default:500},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["repos"],properties:{cursor:{type:"string"},repos:{type:"array",items:{type:"ref",ref:"lex:com.atproto.sync.listReposByCollection#repo"}}}}}},repo:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}}}},ComAtprotoSyncNotifyOfUpdate:{lexicon:1,id:"com.atproto.sync.notifyOfUpdate",defs:{main:{type:"procedure",description:"Notify a crawling service of a recent update, and that crawling should resume. Intended use is after a gap between repo stream events caused the crawling service to disconnect. Does not require auth; implemented by Relay. DEPRECATED: just use com.atproto.sync.requestCrawl",input:{encoding:"application/json",schema:{type:"object",required:["hostname"],properties:{hostname:{type:"string",description:"Hostname of the current service (usually a PDS) that is notifying of update."}}}}}}},ComAtprotoSyncRequestCrawl:{lexicon:1,id:"com.atproto.sync.requestCrawl",defs:{main:{type:"procedure",description:"Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth.",input:{encoding:"application/json",schema:{type:"object",required:["hostname"],properties:{hostname:{type:"string",description:"Hostname of the current service (eg, PDS) that is requesting to be crawled."}}}},errors:[{name:"HostBanned"}]}}},ComAtprotoSyncSubscribeRepos:{lexicon:1,id:"com.atproto.sync.subscribeRepos",defs:{main:{type:"subscription",description:"Repository event stream, aka Firehose endpoint. Outputs repo commits with diff data, and identity update events, for all repositories on the current server. See the atproto specifications for details around stream sequencing, repo versioning, CAR diff format, and more. Public and does not require auth; implemented by PDS and Relay.",parameters:{type:"params",properties:{cursor:{type:"integer",description:"The last known event seq number to backfill from."}}},message:{schema:{type:"union",refs:["lex:com.atproto.sync.subscribeRepos#commit","lex:com.atproto.sync.subscribeRepos#sync","lex:com.atproto.sync.subscribeRepos#identity","lex:com.atproto.sync.subscribeRepos#account","lex:com.atproto.sync.subscribeRepos#info"]}},errors:[{name:"FutureCursor"},{name:"ConsumerTooSlow",description:"If the consumer of the stream can not keep up with events, and a backlog gets too large, the server will drop the connection."}]},commit:{type:"object",description:"Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.",required:["seq","rebase","tooBig","repo","commit","rev","since","blocks","ops","blobs","time"],nullable:["since"],properties:{seq:{type:"integer",description:"The stream sequence number of this message."},rebase:{type:"boolean",description:"DEPRECATED -- unused"},tooBig:{type:"boolean",description:"DEPRECATED -- replaced by #sync event and data limits. Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data."},repo:{type:"string",format:"did",description:"The repo this event comes from. Note that all other message types name this field 'did'."},commit:{type:"cid-link",description:"Repo commit object CID."},rev:{type:"string",format:"tid",description:"The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event."},since:{type:"string",format:"tid",description:"The rev of the last emitted commit from this repo (if any)."},blocks:{type:"bytes",description:"CAR file containing relevant blocks, as a diff since the previous repo state. The commit must be included as a block, and the commit block CID must be the first entry in the CAR header 'roots' list.",maxLength:2e6},ops:{type:"array",items:{type:"ref",ref:"lex:com.atproto.sync.subscribeRepos#repoOp",description:"List of repo mutation operations in this commit (eg, records created, updated, or deleted)."},maxLength:200},blobs:{type:"array",items:{type:"cid-link",description:"DEPRECATED -- will soon always be empty. List of new blobs (by CID) referenced by records in this commit."}},prevData:{type:"cid-link",description:"The root CID of the MST tree for the previous commit from this repo (indicated by the 'since' revision field in this message). Corresponds to the 'data' field in the repo commit object. NOTE: this field is effectively required for the 'inductive' version of firehose."},time:{type:"string",format:"datetime",description:"Timestamp of when this message was originally broadcast."}}},sync:{type:"object",description:"Updates the repo to a new state, without necessarily including that state on the firehose. Used to recover from broken commit streams, data loss incidents, or in situations where upstream host does not know recent state of the repository.",required:["seq","did","blocks","rev","time"],properties:{seq:{type:"integer",description:"The stream sequence number of this message."},did:{type:"string",format:"did",description:"The account this repo event corresponds to. Must match that in the commit object."},blocks:{type:"bytes",description:"CAR file containing the commit, as a block. The CAR header must include the commit block CID as the first 'root'.",maxLength:1e4},rev:{type:"string",description:"The rev of the commit. This value must match that in the commit object."},time:{type:"string",format:"datetime",description:"Timestamp of when this message was originally broadcast."}}},identity:{type:"object",description:"Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.",required:["seq","did","time"],properties:{seq:{type:"integer"},did:{type:"string",format:"did"},time:{type:"string",format:"datetime"},handle:{type:"string",format:"handle",description:"The current handle for the account, or 'handle.invali
21d' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details."}}},account:{type:"object",description:"Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.",required:["seq","did","time","active"],properties:{seq:{type:"integer"},did:{type:"string",format:"did"},time:{type:"string",format:"datetime"},active:{type:"boolean",description:"Indicates that the account has a repository which can be fetched from the host that emitted this event."},status:{type:"string",description:"If active=false, this optional field indicates a reason for why the account is not active.",knownValues:["takendown","suspended","deleted","deactivated","desynchronized","throttled"]}}},info:{type:"object",required:["name"],properties:{name:{type:"string",knownValues:["OutdatedCursor"]},message:{type:"string"}}},repoOp:{type:"object",description:"A repo operation, ie a mutation of a single record.",required:["action","path","cid"],nullable:["cid"],properties:{action:{type:"string",knownValues:["create","update","delete"]},path:{type:"string"},cid:{type:"cid-link",description:"For creates and updates, the new record CID. For deletions, null."},prev:{type:"cid-link",description:"For updates and deletes, the previous record CID (required for inductive firehose). For creations, field should not be defined."}}}}},ComAtprotoTempAddReservedHandle:{lexicon:1,id:"com.atproto.temp.addReservedHandle",defs:{main:{type:"procedure",description:"Add a handle to the set of reserved handles.",input:{encoding:"application/json",schema:{type:"object",required:["handle"],properties:{handle:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",properties:{}}}}}},ComAtprotoTempCheckHandleAvailability:{lexicon:1,id:"com.atproto.temp.checkHandleAvailability",defs:{main:{type:"query",description:"Checks whether the provided handle is available. If the handle is not available, available suggestions will be returned. Optional inputs will be used to generate suggestions.",parameters:{type:"params",required:["handle"],properties:{handle:{type:"string",format:"handle",description:"Tentative handle. Will be checked for availability or used to build handle suggestions."},email:{type:"string",description:"User-provided email. Might be used to build handle suggestions."},birthDate:{type:"string",format:"datetime",description:"User-provided birth date. Might be used to build handle suggestions."}}},output:{encoding:"application/json",schema:{type:"object",required:["handle","result"],properties:{handle:{type:"string",format:"handle",description:"Echo of the input handle."},result:{type:"union",refs:["lex:com.atproto.temp.checkHandleAvailability#resultAvailable","lex:com.atproto.temp.checkHandleAvailability#resultUnavailable"]}}}},errors:[{name:"InvalidEmail",description:"An invalid email was provided."}]},resultAvailable:{type:"object",description:"Indicates the provided handle is available.",properties:{}},resultUnavailable:{type:"object",description:"Indicates the provided handle is unavailable and gives suggestions of available handles.",required:["suggestions"],properties:{suggestions:{type:"array",description:"List of suggested handles based on the provided inputs.",items:{type:"ref",ref:"lex:com.atproto.temp.checkHandleAvailability#suggestion"}}}},suggestion:{type:"object",required:["handle","method"],properties:{handle:{type:"string",format:"handle"},method:{type:"string",description:"Method used to build this suggestion. Should be considered opaque to clients. Can be used for metrics."}}}}},ComAtprotoTempCheckSignupQueue:{lexicon:1,id:"com.atproto.temp.checkSignupQueue",defs:{main:{type:"query",description:"Check accounts location in signup queue.",output:{encoding:"application/json",schema:{type:"object",required:["activated"],properties:{activated:{type:"boolean"},placeInQueue:{type:"integer"},estimatedTimeMs:{type:"integer"}}}}}}},ComAtprotoTempDereferenceScope:{lexicon:1,id:"com.atproto.temp.dereferenceScope",defs:{main:{type:"query",description:"Allows finding the oauth permission scope from a reference",parameters:{type:"params",required:["scope"],properties:{scope:{type:"string",description:"The scope reference (starts with 'ref:')"}}},output:{encoding:"application/json",schema:{type:"object",required:["scope"],properties:{scope:{type:"string",description:"The full oauth permission scope"}}}},errors:[{name:"InvalidScopeReference",description:"An invalid scope reference was provided."}]}}},ComAtprotoTempFetchLabels:{lexicon:1,id:"com.atproto.temp.fetchLabels",defs:{main:{type:"query",description:"DEPRECATED: use queryLabels or subscribeLabels instead -- Fetch all labels from a labeler created after a certain date.",parameters:{type:"params",properties:{since:{type:"integer"},limit:{type:"integer",minimum:1,maximum:250,default:50}}},output:{encoding:"application/json",schema:{type:"object",required:["labels"],properties:{labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}}}}}}}},ComAtprotoTempRequestPhoneVerification:{lexicon:1,id:"com.atproto.temp.requestPhoneVerification",defs:{main:{type:"procedure",description:"Request a verification code to be sent to the supplied phone number",input:{encoding:"application/json",schema:{type:"object",required:["phoneNumber"],properties:{phoneNumber:{type:"string"}}}}}}},ComAtprotoTempRevokeAccountCredentials:{lexicon:1,id:"com.atproto.temp.revokeAccountCredentials",defs:{main:{type:"procedure",description:"Revoke sessions, password, and app passwords associated with account. May be resolved by a password reset.",input:{encoding:"application/json",schema:{type:"object",required:["account"],properties:{account:{type:"string",format:"at-identifier"}}}}}}},ToolsOzoneCommunicationCreateTemplate:{lexicon:1,id:"tools.ozone.communication.createTemplate",defs:{main:{type:"procedure",description:"Administrative action to create a new, re-usable communication (email for now) template.",input:{encoding:"application/json",schema:{type:"object",required:["subject","contentMarkdown","name"],properties:{name:{type:"string",description:"Name of the template."}
21,contentMarkdown:{type:"string",description:"Content of the template, markdown supported, can contain variable placeholders."},subject:{type:"string",description:"Subject of the message, used in emails."},lang:{type:"string",format:"language",description:"Message language."},createdBy:{type:"string",format:"did",description:"DID of the user who is creating the template."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.communication.defs#templateView"}},errors:[{name:"DuplicateTemplateName"}]}}},ToolsOzoneCommunicationDefs:{lexicon:1,id:"tools.ozone.communication.defs",defs:{templateView:{type:"object",required:["id","name","contentMarkdown","disabled","lastUpdatedBy","createdAt","updatedAt"],properties:{id:{type:"string"},name:{type:"string",description:"Name of the template."},subject:{type:"string",description:"Content of the template, can contain markdown and variable placeholders."},contentMarkdown:{type:"string",description:"Subject of the message, used in emails."},disabled:{type:"boolean"},lang:{type:"string",format:"language",description:"Message language."},lastUpdatedBy:{type:"string",format:"did",description:"DID of the user who last updated the template."},createdAt:{type:"string",format:"datetime"},updatedAt:{type:"string",format:"datetime"}}}}},ToolsOzoneCommunicationDeleteTemplate:{lexicon:1,id:"tools.ozone.communication.deleteTemplate",defs:{main:{type:"procedure",description:"Delete a communication template.",input:{encoding:"application/json",schema:{type:"object",required:["id"],properties:{id:{type:"string"}}}}}}},ToolsOzoneCommunicationListTemplates:{lexicon:1,id:"tools.ozone.communication.listTemplates",defs:{main:{type:"query",description:"Get list of all communication templates.",output:{encoding:"application/json",schema:{type:"object",required:["communicationTemplates"],properties:{communicationTemplates:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.communication.defs#templateView"}}}}}}}},ToolsOzoneCommunicationUpdateTemplate:{lexicon:1,id:"tools.ozone.communication.updateTemplate",defs:{main:{type:"procedure",description:"Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",input:{encoding:"application/json",schema:{type:"object",required:["id"],properties:{id:{type:"string",description:"ID of the template to be updated."},name:{type:"string",description:"Name of the template."},lang:{type:"string",format:"language",description:"Message language."},contentMarkdown:{type:"string",description:"Content of the template, markdown supported, can contain variable placeholders."},subject:{type:"string",description:"Subject of the message, used in emails."},updatedBy:{type:"string",format:"did",description:"DID of the user who is updating the template."},disabled:{type:"boolean"}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.communication.defs#templateView"}},errors:[{name:"DuplicateTemplateName"}]}}},ToolsOzoneHostingGetAccountHistory:{lexicon:1,id:"tools.ozone.hosting.getAccountHistory",defs:{main:{type:"query",description:"Get account history, e.g. log of updated email addresses or other identity information.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did"},events:{type:"array",items:{type:"string",knownValues:["accountCreated","emailUpdated","emailConfirmed","passwordUpdated","handleUpdated"]}},cursor:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50}}},output:{encoding:"application/json",schema:{type:"object",required:["events"],properties:{cursor:{type:"string"},events:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.hosting.getAccountHistory#event"}}}}}},event:{type:"object",required:["details","createdBy","createdAt"],properties:{details:{type:"union",refs:["lex:tools.ozone.hosting.getAccountHistory#accountCreated","lex:tools.ozone.hosting.getAccountHistory#emailUpdated","lex:tools.ozone.hosting.getAccountHistory#emailConfirmed","lex:tools.ozone.hosting.getAccountHistory#passwordUpdated","lex:tools.ozone.hosting.getAccountHistory#handleUpdated"]},createdBy:{type:"string"},createdAt:{type:"string",format:"datetime"}}},accountCreated:{type:"object",required:[],properties:{email:{type:"string"},handle:{type:"string",format:"handle"}}},emailUpdated:{type:"object",required:["email"],properties:{email:{type:"string"}}},emailConfirmed:{type:"object",required:["email"],properties:{email:{type:"string"}}},passwordUpdated:{type:"object",required:[],properties:{}},handleUpdated:{type:"object",required:["handle"],properties:{handle:{type:"string",format:"handle"}}}}},ToolsOzoneModerationDefs:{lexicon:1,id:"tools.ozone.moderation.defs",defs:{modEventView:{type:"object",required:["id","event","subject","subjectBlobCids","createdBy","createdAt"],properties:{id:{type:"integer"},event:{type:"union",refs:["lex:tools.ozone.moderation.defs#modEventTakedown","lex:tools.ozone.moderation.defs#modEventReverseTakedown","lex:tools.ozone.moderation.defs#modEventComment","lex:tools.ozone.moderation.defs#modEventReport","lex:tools.ozone.moderation.defs#modEventLabel","lex:tools.ozone.moderation.defs#modEventAcknowledge","lex:tools.ozone.moderation.defs#modEventEscalate","lex:tools.ozone.moderation.defs#modEventMute","lex:tools.ozone.moderation.defs#modEventUnmute","lex:tools.ozone.moderation.defs#modEventMuteReporter","lex:tools.ozone.moderation.defs#modEventUnmuteReporter","lex:tools.ozone.moderation.defs#modEventEmail","lex:tools.ozone.moderation.defs#modEventResolveAppeal","lex:tools.ozone.moderation.defs#modEventDivert","lex:tools.ozone.moderation.defs#modEventTag","lex:tools.ozone.moderation.defs#accountEvent","lex:tools.ozone.moderation.defs#identityEvent","lex:tools.ozone.moderation.defs#recordEvent","lex:tools.ozone.moderation.defs#modEventPriorityScore","lex:tools.ozone.moderation.defs#ageAssuranceEvent","lex:tools.ozone.moderation.defs#ageAssuranceOverrideEvent","lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent"]},subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef","lex:chat.bsky.convo.defs#messageRef"]},subjectBlobCids:{type:"array",items:{type:"string"}},createdBy:{type:"string",format:"did"},createdAt:{type:"string",format:"datetime"},creatorHandle:{type:"string"},subjectHandle:{type:"string"},modTool:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modTool"}}},modEventViewDetail:{type:"object",required:["id","event","subject","subjectBlobs","createdBy","createdAt"],properties:{id:{type:"integer"},event:{type:"union",refs:["lex:tools.ozone.moderation.defs#modEventTakedown","lex:tools.ozone.moderation.defs#modEventReverseTakedown","lex:tools.ozone.moderation.defs#modEventComment","lex:tools.ozone.moderation.defs#modEventReport","lex:tools.ozone.moderation.defs#modEventLabel","lex:tools.ozone.moderation.defs#modEventAcknowledge","lex:tools.ozone.moderation.defs#modEventEscalate","lex:tools.ozone.moderation.defs#modEventMute","lex:tools.ozone.moderation.defs#modEventUnmute","lex:tools.ozone.moderation.defs#modEventMuteReporter","lex:tools.ozone.moderation.defs#modEventUnmuteReporter","lex:tools.ozone.moderation.defs#modEventEmail","lex:tools.ozone.moderation.defs#modEventResolveAppeal","lex:tools.ozone.moderation.defs#modEventDivert","lex:tools.ozone.moderation.defs#modEventTag","lex:tools.ozone.moderation.defs#accountEvent","lex:tools.ozone.moderation.defs#identityEvent","lex:tools.ozone.moderation.defs#recordEvent","lex:tools.ozone.moderation.defs#modEventPriorityScore","lex:tools.ozone.moderation.defs#ageAssuranceEvent","lex:tools.ozone.moderation.defs#ageAssuranceOverrideEvent","lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent"]},subject:{type:"union",refs:["lex:tools.ozone.moderation.defs#repoView","lex:tools.ozone.moderation.defs#repoViewNotFound","lex:tools.ozone.moderation.defs#recordView","lex:tools.ozone.moderation.defs#recordViewNotFound"]},subjectBlobs:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#blobView"}},createdBy:{type:"string",format:"did"},createdAt:{type:"string",format:"datetime"},modTool:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modTool"}}},subjectStatusView:{type:"object",required:["id","subject","createdAt","updatedAt","reviewState"],properties:{id:{type:"integer"},subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef","lex:chat.bsky.convo.defs#messageRef"]},hosting:{type:"union",refs:["lex:tools.ozone.moderation.defs#accountHosting","lex:tools.ozone.moderation.defs#recordHosting"]},subjectBlobCids:{type:"array",items:{type:"string",format:"cid"}},subjectRepoHandle:{type:"string"},updatedAt:{type:"string",format:"datetime",description:"Timestamp referencing when the last update was made to the moderation status of the subject"},createdAt:{type:"string",format:"datetime",description:"Timestamp referencing the first moderation status impacting event was emitted on the subject"},reviewState:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectReviewState"},comment:{type:"string",description:"Sticky comment on the subject."},priorityScore:{type:"integer",description:"Numeric value representing the level of priority. Higher score means higher priority.",minimum:0,maximum:100},muteUntil:{type:"string",format:"datetime"},muteReportingUntil:{type:"string",format:"datetime"},lastReviewedBy:{type:"string",format:"did"},lastReviewedAt:{type:"string",format:"datetime"},lastReportedAt:{type:"string",format:"datetime"},lastAppealedAt:{type:"string",format:"datetime",description:"Timestamp referencing when the author of the subject appealed a moderation action"},takendown:{type:"boolean"},appealed:{type:"boolean",description:"True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators."},suspendUntil:{type:"string",format:"datetime"},tags:{type:"array",items:{type:"string"}},accountStats:{description:"Statistics related to the account subject",type:"ref",ref:"lex:tools.ozone.moderation.defs#accountStats"},recordsStats:{description:"Statistics related to the record subjects authored by the subject's account",type:"ref",ref:"lex:tools.ozone.moderation.defs#recordsStats"},ageAssuranceState:{type:"string",description:"Current age assurance state of the subject.",knownValues:["pending","assured","unknown","reset","blocked"]},ageAssuranceUpdatedBy:{type:"string",description:"Whether or not the last successful update to age assurance was made by the user or admin.",knownValues:["admin","user"]}}},subjectView:{description:"Detailed view of a subject. For record subjects, the author's repo and profile will be returned.",type:"object",required:["type","subject"],properties:{type:{type:"ref",ref:"lex:com.atproto.moderation.defs#subjectType"},subject:{type:"string"},status:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectStatusView"},repo:{type:"ref",ref:"lex:tools.ozone.moderation.defs#repoViewDetail"},profile:{type:"union",refs:[]},record:{type:"ref",ref:"lex:tools.ozone.moderation.defs#recordViewDetail"}}},accountStats:{description:"Statistics about a particular account subject",type:"object",properties:{reportCount:{description:"Total number of reports on the account",type:"integer"},appealCount:{description:"Total number of appeals against a moderation action on the account",type:"integer"},suspendCount:{description:"Number of times the account was suspended",type:"integer"},escalateCount:{description:"Number of times the account was escalated",type:"integer"},takedownCount:{description:"Number of times the account was taken down",type:"integer"}}},recordsStats:{description:"Statistics about a set of record subject items",type:"object",properties:{totalReports:{description:"Cumulative sum of the number of reports on the items in the set",type:"integer"},reportedCount:{description:"Number of items that were reported at least once",type:"integer"},escalatedCount:{description:"Number of items that were escalated at least once",type:"integer"},appealedCount:{description:"Number of items that were appealed at least once",type:"integer"},subjectCount:{description:"Total number of item in the set",type:"integer"},pendingCount:{description:'Number of item currently in "reviewOpen" or "reviewEscalated" state',type:"integer"},processedCount:{description:'Number of item currently in "reviewNone" or "reviewClosed" state',type:"integer"},takendownCount:{description:"Number of item currently taken down",type:"integer"}}},subjectReviewState:{type:"string",knownValues:["lex:tools.ozone.moderation.defs#reviewOpen","lex:tools.ozone.moderation.defs#reviewEscalated","lex:tools.ozone.moderation.defs#reviewClosed","lex:tools.ozone.moderation.defs#reviewNone"]},reviewOpen:{type:"token",description:"Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator"},reviewEscalated:{type:"token",description:"Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator"},reviewClosed:{type:"token",description:"Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator"},reviewNone:{type:"token",description:"Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it"},modEventTakedown:{type:"object",description:"Take down a subject permanently or temporarily",properties:{comment:{type:"string"},durationInHours:{type:"integer",description:"Indicates how long the takedown should be in effect before automatically expiring."},acknowledgeAccountSubjects:{type:"boolean",description:"If true, all other reports on content authored by this account will be resolved (acknowledged)."},policies:{type:"array",maxLength:5,items:{type:"string"},description:"Names/Keywords of the policies that drove the decision."}}},modEventReverseTakedown:{type:"object",description:"Revert take down action on a subject",properties:{comment:{type:"string",description:"Describe reasoning behind the reversal."}}},modEventResolveAppeal:{type:"object",description:"Resolve appeal on a subject",properties:{comment:{type:"string",description:"Describe resolution."}}},modEventComment:{type:"object",description:"Add a comment to a subject. An empty comment will clear any previously set sticky comment.",properties:{comment:{type:"string"},sticky:{type:"boolean",description:"Make the comment persistent on the subject"}}},modEventReport:{type:"object",description:"Report a subject",required:["reportType"],properties:{comment:{type:"string"},isReporterMuted:{type:"boolean",description:"Set to true if the reporter was muted from reporting at the time of the event. These reports won't impact the reviewState of the subject."},reportType:{type:"ref",ref:"lex:com.atproto.moderation.defs#reasonType"}}},modEventLabel:{type:"object",description:"Apply/Negate labels on a subject",required:["createLabelVals","negateLabelVals"],properties:{comment:{type:"string"},createLabelVals:{type:"array",items:{type:"string"}},negateLabelVals:{type:"array",items:{type:"string"}},durationInHours:{type:"integer",description:"Indicates how long the label will remain on the subject. Only applies on labels that are being added."}}},modEventPriorityScore:{type:"object",description:"Set priority score of the subject. Higher score means higher priority.",required:["score"],properties:{comment:{type:"string"},score:{type:"integer",minimum:0,maximum:100}}},ageAssuranceEvent:{type:"object",description:"Age assurance info coming directly from users. Only works on DID subjects.",required:["createdAt","status","attemptId"],properties:{createdAt:{type:"string",format:"datetime",description:"The date and time of this write operation."},status:{type:"string",description:"The status of the age assurance process.",knownValues:["unknown","pending","assured"]},attemptId:{type:"string",description:"The unique identifier for this instance of the age assurance flow, in UUID format."},initIp:{type:"string",description:"The IP address used when initiating the AA flow."},initUa:{type:"string",description:"The user agent used whe
21n initiating the AA flow."},completeIp:{type:"string",description:"The IP address used when completing the AA flow."},completeUa:{type:"string",description:"The user agent used when completing the AA flow."}}},ageAssuranceOverrideEvent:{type:"object",description:"Age assurance status override by moderators. Only works on DID subjects.",required:["comment","status"],properties:{status:{type:"string",description:"The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.",knownValues:["assured","reset","blocked"]},comment:{type:"string",description:"Comment describing the reason for the override."}}},revokeAccountCredentialsEvent:{type:"object",description:"Account credentials revocation by moderators. Only works on DID subjects.",required:["comment"],properties:{comment:{type:"string",description:"Comment describing the reason for the revocation."}}},modEventAcknowledge:{type:"object",properties:{comment:{type:"string"},acknowledgeAccountSubjects:{type:"boolean",description:"If true, all other reports on content authored by this account will be resolved (acknowledged)."}}},modEventEscalate:{type:"object",properties:{comment:{type:"string"}}},modEventMute:{type:"object",description:"Mute incoming reports on a subject",required:["durationInHours"],properties:{comment:{type:"string"},durationInHours:{type:"integer",description:"Indicates how long the subject should remain muted."}}},modEventUnmute:{type:"object",description:"Unmute action on a subject",properties:{comment:{type:"string",description:"Describe reasoning behind the reversal."}}},modEventMuteReporter:{type:"object",description:"Mute incoming reports from an account",properties:{comment:{type:"string"},durationInHours:{type:"integer",description:"Indicates how long the account should remain muted. Falsy value here means a permanent mute."}}},modEventUnmuteReporter:{type:"object",description:"Unmute incoming reports from an account",properties:{comment:{type:"string",description:"Describe reasoning behind the reversal."}}},modEventEmail:{type:"object",description:"Keep a log of outgoing email to a user",required:["subjectLine"],properties:{subjectLine:{type:"string",description:"The subject line of the email sent to the user."},content:{type:"string",description:"The content of the email sent to the user."},comment:{type:"string",description:"Additional comment about the outgoing comm."}}},modEventDivert:{type:"object",description:"Divert a record's blobs to a 3rd party service for further scanning/tagging",properties:{comment:{type:"string"}}},modEventTag:{type:"object",description:"Add/Remove a tag on a subject",required:["add","remove"],properties:{add:{type:"array",items:{type:"string"},description:"Tags to be added to the subject. If already exists, won't be duplicated."},remove:{type:"array",items:{type:"string"},description:"Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated."},comment:{type:"string",description:"Additional comment about added/removed tags."}}},accountEvent:{type:"object",description:"Logs account status related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",required:["timestamp","active"],properties:{comment:{type:"string"},active:{type:"boolean",description:"Indicates that the account has a repository which can be fetched from the host that emitted this event."},status:{type:"string",knownValues:["unknown","deactivated","deleted","takendown","suspended","tombstoned"]},timestamp:{type:"string",format:"datetime"}}},identityEvent:{type:"object",description:"Logs identity related events on a repo subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",required:["timestamp"],properties:{comment:{type:"string"},handle:{type:"string",format:"handle"},pdsHost:{type:"string",format:"uri"},tombstone:{type:"boolean"},timestamp:{type:"string",format:"datetime"}}},recordEvent:{type:"object",description:"Logs lifecycle event on a record subject. Normally captured by automod from the firehose and emitted to ozone for historical tracking.",required:["timestamp","op"],properties:{comment:{type:"string"},op:{type:"string",knownValues:["create","update","delete"]},cid:{type:"string",format:"cid"},timestamp:{type:"string",format:"datetime"}}},repoView:{type:"object",required:["did","handle","relatedRecords","indexedAt","moderation"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},email:{type:"string"},relatedRecords:{type:"array",items:{type:"unknown"}},indexedAt:{type:"string",format:"datetime"},moderation:{type:"ref",ref:"lex:tools.ozone.moderation.defs#moderation"},invitedBy:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"}
21,invitesDisabled:{type:"boolean"},inviteNote:{type:"string"},deactivatedAt:{type:"string",format:"datetime"},threatSignatures:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#threatSignature"}}}},repoViewDetail:{type:"object",required:["did","handle","relatedRecords","indexedAt","moderation"],properties:{did:{type:"string",format:"did"},handle:{type:"string",format:"handle"},email:{type:"string"},relatedRecords:{type:"array",items:{type:"unknown"}},indexedAt:{type:"string",format:"datetime"},moderation:{type:"ref",ref:"lex:tools.ozone.moderation.defs#moderationDetail"},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},invitedBy:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"},invites:{type:"array",items:{type:"ref",ref:"lex:com.atproto.server.defs#inviteCode"}},invitesDisabled:{type:"boolean"},inviteNote:{type:"string"},emailConfirmedAt:{type:"string",format:"datetime"},deactivatedAt:{type:"string",format:"datetime"},threatSignatures:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#threatSignature"}}}},repoViewNotFound:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}},recordView:{type:"object",required:["uri","cid","value","blobCids","indexedAt","moderation","repo"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"},blobCids:{type:"array",items:{type:"string",format:"cid"}},indexedAt:{type:"string",format:"datetime"},moderation:{type:"ref",ref:"lex:tools.ozone.moderation.defs#moderation"},repo:{type:"ref",ref:"lex:tools.ozone.moderation.defs#repoView"}}},recordViewDetail:{type:"object",required:["uri","cid","value","blobs","indexedAt","moderation","repo"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"},value:{type:"unknown"},blobs:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#blobView"}},labels:{type:"array",items:{type:"ref",ref:"lex:com.atproto.label.defs#label"}},indexedAt:{type:"string",format:"datetime"},moderation:{type:"ref",ref:"lex:tools.ozone.moderation.defs#moderationDetail"},repo:{type:"ref",ref:"lex:tools.ozone.moderation.defs#repoView"}}},recordViewNotFound:{type:"object",required:["uri"],properties:{uri:{type:"string",format:"at-uri"}}},moderation:{type:"object",properties:{subjectStatus:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectStatusView"}}},moderationDetail:{type:"object",properties:{subjectStatus:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectStatusView"}}},blobView:{type:"object",required:["cid","mimeType","size","createdAt"],properties:{cid:{type:"string",format:"cid"},mimeType:{type:"string"},size:{type:"integer"},createdAt:{type:"string",format:"datetime"},details:{type:"union",refs:["lex:tools.ozone.moderation.defs#imageDetails","lex:tools.ozone.moderation.defs#videoDetails"]},moderation:{type:"ref",ref:"lex:tools.ozone.moderation.defs#moderation"}}},imageDetails:{type:"object",required:["width","height"],properties:{width:{type:"integer"},height:{type:"integer"}}},videoDetails:{type:"object",required:["width","height","length"],properties:{width:{type:"integer"},height:{type:"integer"},length:{type:"integer"}}},accountHosting:{type:"object",required:["status"],properties:{status:{type:"string",knownValues:["takendown","suspended","deleted","deactivated","unknown"]},updatedAt:{type:"string",format:"datetime"},createdAt:{type:"string",format:"datetime"},deletedAt:{type:"string",format:"datetime"},deactivatedAt:{type:"string",format:"datetime"},reactivatedAt:{type:"string",format:"datetime"}}},recordHosting:{type:"object",required:["status"],properties:{status:{type:"string",knownValues:["deleted","unknown"]},updatedAt:{type:"string",format:"datetime"},createdAt:{type:"string",format:"datetime"},deletedAt:{type:"string",format:"datetime"}}},reporterStats:{type:"object",required:["did","accountReportCount","recordReportCount","reportedAccountCount","reportedRecordCount","takendownAccountCount","takendownRecordCount","labeledAccountCount","labeledRecordCount"],properties:{did:{type:"string",format:"did"},accountReportCount:{type:"integer",description:"The total number of reports made by the user on accounts."},recordReportCount:{type:"integer",description:"The total number of reports made by the user on records."},reportedAccountCount:{type:"integer",description:"The total number of accounts reported by the user."},reportedRecordCount:{type:"integer",description:"The total number of records reported by the user."},takendownAccountCount:{type:"integer",description:"The total number of accounts taken down as a result of the user's reports."},takendownRecordCount:{type:"integer",description:"The total number of records taken down as a result of the user's reports."},labeledAccountCount:{type:"integer",description:"The total number of accounts labeled as a result of the user's reports."},labeledRecordCount:{type:"integer",description:"The total number of records labeled as a result of the user's reports."}}},modTool:{type:"object",description:"Moderation tool information for tracing the source of the action",required:["name"],properties:{name:{type:"string",description:"Name/identifier of the source (e.g., 'automod', 'ozone/workspace')"}
21,meta:{type:"unknown",description:"Additional arbitrary metadata about the source"}}},timelineEventPlcCreate:{type:"token",description:"Moderation event timeline event for a PLC create operation"},timelineEventPlcOperation:{type:"token",description:"Moderation event timeline event for generic PLC operation"},timelineEventPlcTombstone:{type:"token",description:"Moderation event timeline event for a PLC tombstone operation"}}},ToolsOzoneModerationEmitEvent:{lexicon:1,id:"tools.ozone.moderation.emitEvent",defs:{main:{type:"procedure",description:"Take a moderation action on an actor.",input:{encoding:"application/json",schema:{type:"object",required:["event","subject","createdBy"],properties:{event:{type:"union",refs:["lex:tools.ozone.moderation.defs#modEventTakedown","lex:tools.ozone.moderation.defs#modEventAcknowledge","lex:tools.ozone.moderation.defs#modEventEscalate","lex:tools.ozone.moderation.defs#modEventComment","lex:tools.ozone.moderation.defs#modEventLabel","lex:tools.ozone.moderation.defs#modEventReport","lex:tools.ozone.moderation.defs#modEventMute","lex:tools.ozone.moderation.defs#modEventUnmute","lex:tools.ozone.moderation.defs#modEventMuteReporter","lex:tools.ozone.moderation.defs#modEventUnmuteReporter","lex:tools.ozone.moderation.defs#modEventReverseTakedown","lex:tools.ozone.moderation.defs#modEventResolveAppeal","lex:tools.ozone.moderation.defs#modEventEmail","lex:tools.ozone.moderation.defs#modEventDivert","lex:tools.ozone.moderation.defs#modEventTag","lex:tools.ozone.moderation.defs#accountEvent","lex:tools.ozone.moderation.defs#identityEvent","lex:tools.ozone.moderation.defs#recordEvent","lex:tools.ozone.moderation.defs#modEventPriorityScore","lex:tools.ozone.moderation.defs#ageAssuranceEvent","lex:tools.ozone.moderation.defs#ageAssuranceOverrideEvent","lex:tools.ozone.moderation.defs#revokeAccountCredentialsEvent"]},subject:{type:"union",refs:["lex:com.atproto.admin.defs#repoRef","lex:com.atproto.repo.strongRef"]},subjectBlobCids:{type:"array",items:{type:"string",format:"cid"}},createdBy:{type:"string",format:"did"},modTool:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modTool"},externalId:{type:"string",description:"An optional external ID for the event, used to deduplicate events from external systems. Fails when an event of same type with the same external ID exists for the same subject."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modEventView"}},errors:[{name:"SubjectHasAction"},{name:"DuplicateExternalId",description:"An event with the same external ID already exists for the subject."}]}}},ToolsOzoneModerationGetAccountTimeline:{lexicon:1,id:"tools.ozone.moderation.getAccountTimeline",defs:{main:{type:"query",description:"Get timeline of all available events of an account. This includes moderation events, account history and did history.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did"}}},output:{encoding:"application/json",schema:{type:"object",required:["timeline"],properties:{timeline:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.getAccountTimeline#timelineItem"}}}}},errors:[{name:"RepoNotFound"}]},timelineItem:{type:"object",required:["day","summary"],properties:{day:{type:"string"},summary:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.getAccountTimeline#timelineItemSummary"}}}},timelineItemSummary:{type:"object",required:["eventSubjectType","eventType","count"],properties:{eventSubjectType:{type:"string",knownValues:["account","record","chat"]},eventType:{type:"string",knownValues:["tools.ozone.moderation.defs#modEventTakedown","tools.ozone.moderation.defs#modEventReverseTakedown","tools.ozone.moderation.defs#modEventComment","tools.ozone.moderation.defs#modEventReport","tools.ozone.moderation.defs#modEventLabel","tools.ozone.moderation.defs#modEventAcknowledge","tools.ozone.moderation.defs#modEventEscalate","tools.ozone.moderation.defs#modEventMute","tools.ozone.moderation.defs#modEventUnmute","tools.ozone.moderation.defs#modEventMuteReporter","tools.ozone.moderation.defs#modEventUnmuteReporter","tools.ozone.moderation.defs#modEventEmail","tools.ozone.moderation.defs#modEventResolveAppeal","tools.ozone.moderation.defs#modEventDivert","tools.ozone.moderation.defs#modEventTag","tools.ozone.moderation.defs#accountEvent","tools.ozone.moderation.defs#identityEvent","tools.ozone.moderation.defs#recordEvent","tools.ozone.moderation.defs#modEventPriorityScore","tools.ozone.moderation.defs#revokeAccountCredentialsEvent","tools.ozone.moderation.defs#ageAssuranceEvent","tools.ozone.moderation.defs#ageAssuranceOverrideEvent","tools.ozone.moderation.defs#timelineEventPlcCreate","tools.ozone.moderation.defs#timelineEventPlcOperation","tools.ozone.moderation.defs#timelineEventPlcTombstone","tools.ozone.hosting.getAccountHistory#accountCreated","tools.ozone.hosting.getAccountHistory#emailConfirmed","tools.ozone.hosting.getAccountHistory#passwordUpdated","tools.ozone.hosting.getAccountHistory#handleUpdated"]},count:{type:"integer"}}}}},ToolsOzoneModerationGetEvent:{lexicon:1,id:"tools.ozone.moderation.getEvent",defs:{main:{type:"query",description:"Get details about a moderation event.",parameters:{type:"params",required:["id"],properties:{id:{type:"integer"}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modEventViewDetail"}}}}},ToolsOzoneModerationGetRecord:{lexicon:1,id:"tools.ozone.moderation.getRecord",defs:{main:{type:"query",description:"Get details about a record.",parameters:{type:"params",required:["uri"],properties:{uri:{type:"string",format:"at-uri"},cid:{type:"string",format:"cid"}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.moderation.defs#recordViewDetail"}},errors:[{name:"RecordNotFound"}]}}},ToolsOzoneModerationGetRecords:{lexicon:1,id:"tools.ozone.moderation.getRecords",defs:{main:{type:"query",description:"Get details about some records.",parameters:{type:"params",required:["uris"],properties:{uris:{type:"array",maxLength:100,items:{type:"string",format:"at-uri"}}}},output:{encoding:"application/json",schema:{type:"object",required:["records"],properties:{records:{type:"array",items:{type:"union",refs:["lex:tools.ozone.moderation.defs#recordViewDetail","lex:tools.ozone.moderation.defs#recordViewNotFound"]}}}}}}}},ToolsOzoneModerationGetRepo:{lexicon:1,id:"tools.ozone.moderation.getRepo",defs:{main:{type:"query",description:"Get details about a repository.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did"}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.moderation.defs#repoViewDetail"}},errors:[{name:"RepoNotFound"}]}}},ToolsOzoneModerationGetReporterStats:{lexicon:1,id:"tools.ozone.moderation.getReporterStats",defs:{main:{type:"query",description:"Get reporter stats for a list of users.",parameters:{type:"params",required:["dids"],properties:{dids:{type:"array",maxLength:100,items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["stats"],properties:{stats:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#reporterStats"}}}}}}}},ToolsOzoneModerationGetRepos:{lexicon:1,id:"tools.ozone.moderation.getRepos",defs:{main:{type:"query",description:"Get details about some repositories.",parameters:{type:"params",required:["dids"],properties:{dids:{type:"array",maxLength:100,items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["repos"],properties:{repos:{type:"array",items:{type:"union",refs:["lex:tools.ozone.moderation.defs#repoViewDetail","lex:tools.ozone.moderation.defs#repoViewNotFound"]}}}}}}}},ToolsOzoneModerationGetSubjects:{lexicon:1,id:"tools.ozone.moderation.getSubjects",defs:{main:{type:"query",description:"Get details about subjects.",parameters:{type:"params",required:["subjects"],properties:{subjects:{type:"array",maxLength:100,minLength:1,items:{type:"string"}}}},output:{encoding:"application/json",schema:{type:"object",required:["subjects"],properties:{subjects:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectView"}}}}}}}},ToolsOzoneModerationQueryEvents:{lexicon:1,id:"tools.ozone.moderation.queryEvents",defs:{main:{type:"query",description:"List moderation events related to a subject.",parameters:{type:"params",properties:{types:{type:"array",items:{type:"string"},description:"The types of events (fully qualified string in the format of tools.ozone.moderation.defs#modEvent<name>) to filter by. If not specified, all events are returned."},createdBy:{type:"string",format:"did"},sortDirection:{type:"string",default:"desc",enum:["asc","desc"],description:"Sort direction for the events. Defaults to descending order of created at timestamp."},createdAfter:{type:"string",format:"datetime",description:"Retrieve events created after a given timestamp"},createdBefore:{type:"string",format:"datetime",description:"Retrieve events created before a given timestamp"},subject:{type:"string",format:"uri"},collections:{type:"array",maxLength:20,description:"If specified, only events where the subject belongs to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",items:{type:"string",format:"nsid"}},subjectType:{type:"string",description:"If specified, only events where the subject is of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.",knownValues:["account","record"]},includeAllUserRecords:{type:"boolean",default:!1,description:"If true, events on all record types (posts, lists, profile etc.) or records from given 'collections' param, owned by the did are returned."},limit:{type:"integer",minimum:1,maximum:100,default:50},hasComment:{type:"boolean",description:"If true, only events with comments are returned"},comment:{type:"string",description:"If specified, only events with comments containing the keyword are returned. Apply || separator to use multiple keywords and match using OR condition."},addedLabels:{type:"array",items:{type:"string"},description:"If specified, only events where all of these labels were added are returned"},removedLabels:{type:"array",items:{type:"string"},description:"If specified, only events where all of these labels were removed are returned"},addedTags:{type:"array",items:{type:"string"},description:"If specified, only events where all of these tags were added are returned"},removedTags:{type:"array",items:{type:"string"},description:"If specified, only events where all of these tags were removed are returned"},reportTypes:{type:"array",items:{type:"string"}},policies:{type:"array",items:{type:"string",description:"If specified, only events where the action policies match any of the given policies are returned"}},modTool:{type:"array",items:{type:"string"},description:"If specified, only events where the modTool name matches any of the given values are returned"},batchId:{type:"string",description:"If specified, only events where the batchId matches the given value are returned"},ageAssuranceState:{type:"string",description:"If specified, only events where the age assurance state matches the given value are returned",knownValues:["pending","assured","unknown","reset","blocked"]},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["events"],properties:{cursor:{type:"string"},events:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#modEventView"}}}}}}}},ToolsOzoneModerationQueryStatuses:{lexicon:1,id:"tools.ozone.moderation.queryStatuses",defs:{main:{type:"query",description:"View moderation statuses of subjects (record or repo).",parameters:{type:"params",properties:{queueCount:{type:"integer",description:"Number of queues being used by moderators. Subjects will be split among all queues."},queueIndex:{type:"integer",description:"Index of the queue to fetch subjects from. Works only when queueCount value is specified."},queueSeed:{type:"string",description:"A seeder to shuffle/balance the queue items."},includeAllUserRecords:{type:"boolean",description:"All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned."},subject:{type:"string",format:"uri",description:"The subject to get the status for."},comment:{type:"string",description:"Search subjects by keyword from comments"},reportedAfter:{type:"string",format:"datetime",description:"Search subjects reported after a given timestamp"},reportedBefore:{type:"string",format:"datetime",description:"Search subjects reported before a given timestamp"},reviewedAfter:{type:"string",format:"datetime",description:"Search subjects reviewed after a given timestamp"},hostingDeletedAfter:{type:"string",format:"datetime",description:"Search subjects where the associated record/account was deleted after a given timestamp"},hostingDeletedBefore:{type:"string",format:"datetime",description:"Search subjects where the associated record/account was deleted before a given timestamp"},hostingUpdatedAfter:{type:"string",format:"datetime",description:"Search subjects where the associated record/account was updated after a given timestamp"},hostingUpdatedBefore:{type:"string",format:"datetime",description:"Search subjects where the associated record/account was updated before a given timestamp"},hostingStatuses:{type:"array",items:{type:"string"},description:"Search subjects by the status of the associated record/account"},reviewedBefore:{type:"string",format:"datetime",description:"Search subjects reviewed before a given timestamp"},includeMuted:{type:"boolean",description:"By default, we don't include muted subjects in the results. Set this to true to include them."},onlyMuted:{type:"boolean",description:"When set to true, only muted subjects and reporters will be returned."},reviewState:{type:"string",description:"Specify when fetching subjects in a certain state"},ignoreSubjects:{type:"array",items:{type:"string",format:"uri"}},lastReviewedBy:{type:"string",format:"did",description:"Get all subject statuses that were reviewed by a specific moderator"},sortField:{type:"string",default:"lastReportedAt",enum:["lastReviewedAt","lastReportedAt","reportedRecordsCount","taken
21downRecordsCount","priorityScore"]},sortDirection:{type:"string",default:"desc",enum:["asc","desc"]},takendown:{type:"boolean",description:"Get subjects that were taken down"},appealed:{type:"boolean",description:"Get subjects in unresolved appealed status"},limit:{type:"integer",minimum:1,maximum:100,default:50},tags:{type:"array",maxLength:25,items:{type:"string",description:"Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters"}},excludeTags:{type:"array",items:{type:"string"}},cursor:{type:"string"},collections:{type:"array",maxLength:20,description:"If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.",items:{type:"string",format:"nsid"}},subjectType:{type:"string",description:"If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.",knownValues:["account","record"]},minAccountSuspendCount:{type:"integer",description:"If specified, only subjects that belong to an account that has at least this many suspensions will be returned."},minReportedRecordsCount:{type:"integer",description:"If specified, only subjects that belong to an account that has at least this many reported records will be returned."},minTakendownRecordsCount:{type:"integer",description:"If specified, only subjects that belong to an account that has at least this many taken down records will be returned."},minPriorityScore:{minimum:0,maximum:100,type:"integer",description:"If specified, only subjects that have priority score value above the given value will be returned."},ageAssuranceState:{type:"string",description:"If specified, only subjects with the given age assurance state will be returned.",knownValues:["pending","assured","unknown","reset","blocked"]}}},output:{encoding:"application/json",schema:{type:"object",required:["subjectStatuses"],properties:{cursor:{type:"string"},subjectStatuses:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#subjectStatusView"}}}}}}}},ToolsOzoneModerationSearchRepos:{lexicon:1,id:"tools.ozone.moderation.searchRepos",defs:{main:{type:"query",description:"Find repositories based on a search term.",parameters:{type:"params",properties:{term:{type:"string",description:"DEPRECATED: use 'q' instead"},q:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["repos"],properties:{cursor:{type:"string"},repos:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.moderation.defs#repoView"}}}}}}}},ToolsOzoneReportDefs:{lexicon:1,id:"tools.ozone.report.defs",defs:{reasonType:{type:"string",knownValues:["tools.ozone.report.defs#reasonAppeal","tools.ozone.report.defs#reasonViolenceAnimalWelfare","tools.ozone.report.defs#reasonViolenceThreats","tools.ozone.report.defs#reasonViolenceGraphicContent","tools.ozone.report.defs#reasonViolenceSelfHarm","tools.ozone.report.defs#reasonViolenceGlorification","tools.ozone.report.defs#reasonViolenceExtremistContent","tools.ozone.report.defs#reasonViolenceTrafficking","tools.ozone.report.defs#reasonViolenceOther","tools.ozone.report.defs#reasonSexualAbuseContent","tools.ozone.report.defs#reasonSexualNCII","tools.ozone.report.defs#reasonSexualSextortion","tools.ozone.report.defs#reasonSexualDeepfake","tools.ozone.report.defs#reasonSexualAnimal","tools.ozone.report.defs#reasonSexualUnlabeled","tools.ozone.report.defs#reasonSexualOther","tools.ozone.report.defs#reasonChildSafetyCSAM","tools.ozone.report.defs#reasonChildSafetyGroom","tools.ozone.report.defs#reasonChildSafetyMinorPrivacy","tools.ozone.report.defs#reasonChildSafetyEndangerment","tools.ozone.report.defs#reasonChildSafetyHarassment","tools.ozone.report.defs#reasonChildSafetyPromotion","tools.ozone.report.defs#reasonChildSafetyOther","tools.ozone.report.defs#reasonHarassmentTroll","tools.ozone.report.defs#reasonHarassmentTargeted","tools.ozone.report.defs#reasonHarassmentHateSpeech","tools.ozone.report.defs#reasonHarassmentDoxxing","tools.ozone.report.defs#reasonHarassmentOther","tools.ozone.report.defs#reasonMisleadingBot","tools.ozone.report.defs#reasonMisleadingImpersonation","tools.ozone.report.defs#reasonMisleadingSpam","tools.ozone.report.defs#reasonMisleadingScam","tools.ozone.report.defs#reasonMisleadingSyntheticContent","tools.ozone.report.defs#reasonMisleadingMisinformation","tools.ozone.report.defs#reasonMisleadingOther","tools.ozone.report.defs#reasonRuleSiteSecurity","tools.ozone.report.defs#reasonRuleStolenContent","tools.ozone.report.defs#reasonRuleProhibitedSales","tools.ozone.report.defs#reasonRuleBanEvasion","tools.ozone.report.defs#reasonRuleOther","tools.ozone.report.defs#reasonCivicElectoralProcess","tools.ozone.report.defs#reasonCivicDisclosure","tools.ozone.report.defs#reasonCivicInterference","tools.ozone.report.defs#reasonCivicMisinformation","tools.ozone.report.defs#reasonCivicImpersonation"]},reasonAppeal:{type:"token",description:"Appeal a previously taken moderation action"},reasonViolenceAnimalWelfare:{type:"token",description:"Animal welfare violations"},reasonViolenceThreats:{type:"token",description:"Threats or incitement"},reasonViolenceGraphicContent:{type:"token",description:"Graphic violent content"},reasonViolenceSelfHarm:{type:"token",description:"Self harm"},reasonViolenceGlorification:{type:"token",description:"Glorification of violence"},reasonViolenceExtremistContent:{type:"token",description:"Extremist content. These reports will be sent only be sent to the application's Moderation Authority."},reasonViolenceTrafficking:{type:"token",description:"Human trafficking"},reasonViolenceOther:{type:"token",description:"Other violent content"},reasonSexualAbuseContent:{type:"token",description:"Adult sexual abuse content"},reasonSexualNCII:{type:"token",description:"Non-consensual intimate imagery"},reasonSexualSextortion:{type:"token",description:"Sextortion"},reasonSexualDeepfake:{type:"token",description:"Deepfake adult content"},reasonSexualAnimal:{type:"token",description:"Animal sexual abuse"},reasonSexualUnlabeled:{type:"token",description:"Unlabelled adult content"},reasonSexualOther:{type:"token",description:"Other sexual violence content"},reasonChildSafetyCSAM:{type:"token",description:"Child sexual abuse material (CSAM). These reports will be sent only be sent to the application's Moderation Authority."},reasonChildSafetyGroom:{type:"token",description:"Grooming or predatory behavior. These reports will be sent only be sent to the application's Moderation Authority."},reasonChildSafetyMinorPrivacy:{type:"token",description:"Privacy violation involving a minor"},reasonChildSafetyEndangerment:{type:"token",description:"Child endangerment. These reports will be sent only be sent to the application's Moderation Authority."},reasonChildSafetyHarassment:{type:"token",description:"Harassment or bullying of minors"},reasonChildSafetyPromotion:{type:"token",description:"Promotion of child exploitation. These reports will be sent only be sent to the application's Moderation Authority."}
21,reasonChildSafetyOther:{type:"token",description:"Other child safety. These reports will be sent only be sent to the application's Moderation Authority."},reasonHarassmentTroll:{type:"token",description:"Trolling"},reasonHarassmentTargeted:{type:"token",description:"Targeted harassment"},reasonHarassmentHateSpeech:{type:"token",description:"Hate speech"},reasonHarassmentDoxxing:{type:"token",description:"Doxxing"},reasonHarassmentOther:{type:"token",description:"Other harassing or hateful content"},reasonMisleadingBot:{type:"token",description:"Fake account or bot"},reasonMisleadingImpersonation:{type:"token",description:"Impersonation"},reasonMisleadingSpam:{type:"token",description:"Spam"},reasonMisleadingScam:{type:"token",description:"Scam"},reasonMisleadingSyntheticContent:{type:"token",description:"Unlabelled gen-AI or synthetic content"},reasonMisleadingMisinformation:{type:"token",description:"Harmful false claims"},reasonMisleadingOther:{type:"token",description:"Other misleading content"},reasonRuleSiteSecurity:{type:"token",description:"Hacking or system attacks"},reasonRuleStolenContent:{type:"token",description:"Stolen content"},reasonRuleProhibitedSales:{type:"token",description:"Promoting or selling prohibited items or services"},reasonRuleBanEvasion:{type:"token",description:"Banned user returning"},reasonRuleOther:{type:"token",description:"Other"},reasonCivicElectoralProcess:{type:"token",description:"Electoral process violations"},reasonCivicDisclosure:{type:"token",description:"Disclosure & transparency violations"},reasonCivicInterference:{type:"token",description:"Voter intimidation or interference"},reasonCivicMisinformation:{type:"token",description:"Election misinformation"},reasonCivicImpersonation:{type:"token",description:"Impersonation of electoral officials/entities"}}},ToolsOzoneSafelinkAddRule:{lexicon:1,id:"tools.ozone.safelink.addRule",defs:{main:{type:"procedure",description:"Add a new URL safety rule",input:{encoding:"application/json",schema:{type:"object",required:["url","pattern","action","reason"],properties:{url:{type:"string",description:"The URL or domain to apply the rule to"},pattern:{type:"ref",ref:"lex:tools.ozone.safelink.defs#patternType"},action:{type:"ref",ref:"lex:tools.ozone.safelink.defs#actionType"},reason:{type:"ref",ref:"lex:tools.ozone.safelink.defs#reasonType"},comment:{type:"string",description:"Optional comment about the decision"},createdBy:{type:"string",format:"did",description:"Author DID. Only respected when using admin auth"}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.safelink.defs#event"}},errors:[{name:"InvalidUrl",description:"The provided URL is invalid"},{name:"RuleAlreadyExists",description:"A rule for this URL/domain already exists"}]}}},ToolsOzoneSafelinkDefs:{lexicon:1,id:"tools.ozone.safelink.defs",defs:{event:{type:"object",description:"An event for URL safety decisions",required:["id","eventType","url","pattern","action","reason","createdBy","createdAt"],properties:{id:{type:"integer",description:"Auto-incrementing row ID"},eventType:{type:"ref",ref:"lex:tools.ozone.safelink.defs#eventType"},url:{type:"string",description:"The URL that this rule applies to"},pattern:{type:"ref",ref:"lex:tools.ozone.safelink.defs#patternType"},action:{type:"ref",ref:"lex:tools.ozone.safelink.defs#actionType"},reason:{type:"ref",ref:"lex:tools.ozone.safelink.defs#reasonType"},createdBy:{type:"string",format:"did",description:"DID of the user who created this rule"},createdAt:{type:"string",format:"datetime"},comment:{type:"string",description:"Optional comment about the decision"}}},eventType:{type:"string",knownValues:["addRule","updateRule","removeRule"]},patternType:{type:"string",knownValues:["domain","url"]},actionType:{type:"string",knownValues:["block","warn","whitelist"]},reasonType:{type:"string",knownValues:["csam","spam","phishing","none"]},urlRule:{type:"object",description:"Input for creating a URL safety rule",required:["url","pattern","action","reason","createdBy","createdAt","updatedAt"],properties:{url:{type:"string",description:"The URL or domain to apply the rule to"},pattern:{type:"ref",ref:"lex:tools.ozone.safelink.defs#patternType"},action:{type:"ref",ref:"lex:tools.ozone.safelink.defs#actionType"},reason:{type:"ref",ref:"lex:tools.ozone.safelink.defs#reasonType"},comment:{type:"string",description:"Optional comment about the decision"},createdBy:{type:"string",format:"did",description:"DID of the user added the rule."}
21,createdAt:{type:"string",format:"datetime",description:"Timestamp when the rule was created"},updatedAt:{type:"string",format:"datetime",description:"Timestamp when the rule was last updated"}}}}},ToolsOzoneSafelinkQueryEvents:{lexicon:1,id:"tools.ozone.safelink.queryEvents",defs:{main:{type:"procedure",description:"Query URL safety audit events",input:{encoding:"application/json",schema:{type:"object",properties:{cursor:{type:"string",description:"Cursor for pagination"},limit:{type:"integer",minimum:1,maximum:100,default:50,description:"Maximum number of results to return"},urls:{type:"array",items:{type:"string"},description:"Filter by specific URLs or domains"},patternType:{type:"string",description:"Filter by pattern type"},sortDirection:{type:"string",knownValues:["asc","desc"],default:"desc",description:"Sort direction"}}}},output:{encoding:"application/json",schema:{type:"object",required:["events"],properties:{cursor:{type:"string",description:"Next cursor for pagination. Only present if there are more results."},events:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.safelink.defs#event"}}}}}}}},ToolsOzoneSafelinkQueryRules:{lexicon:1,id:"tools.ozone.safelink.queryRules",defs:{main:{type:"procedure",description:"Query URL safety rules",input:{encoding:"application/json",schema:{type:"object",properties:{cursor:{type:"string",description:"Cursor for pagination"},limit:{type:"integer",minimum:1,maximum:100,default:50,description:"Maximum number of results to return"},urls:{type:"array",items:{type:"string"},description:"Filter by specific URLs or domains"},patternType:{type:"string",description:"Filter by pattern type"},actions:{type:"array",items:{type:"string"},description:"Filter by action types"},reason:{type:"string",description:"Filter by reason type"},createdBy:{type:"string",format:"did",description:"Filter by rule creator"},sortDirection:{type:"string",knownValues:["asc","desc"],default:"desc",description:"Sort direction"}}}},output:{encoding:"application/json",schema:{type:"object",required:["rules"],properties:{cursor:{type:"string",description:"Next cursor for pagination. Only present if there are more results."},rules:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.safelink.defs#urlRule"}}}}}}}},ToolsOzoneSafelinkRemoveRule:{lexicon:1,id:"tools.ozone.safelink.removeRule",defs:{main:{type:"procedure",description:"Remove an existing URL safety rule",input:{encoding:"application/json",schema:{type:"object",required:["url","pattern"],properties:{url:{type:"string",description:"The URL or domain to remove the rule for"},pattern:{type:"ref",ref:"lex:tools.ozone.safelink.defs#patternType"},comment:{type:"string",description:"Optional comment about why the rule is being removed"},createdBy:{type:"string",format:"did",description:"Optional DID of the user. Only respected when using admin auth."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.safelink.defs#event"}},errors:[{name:"RuleNotFound",description:"No active rule found for this URL/domain"}]}}},ToolsOzoneSafelinkUpdateRule:{lexicon:1,id:"tools.ozone.safelink.updateRule",defs:{main:{type:"procedure",description:"Update an existing URL safety rule",input:{encoding:"application/json",schema:{type:"object",required:["url","pattern","action","reason"],properties:{url:{type:"string",description:"The URL or domain to update the rule for"},pattern:{type:"ref",ref:"lex:tools.ozone.safelink.defs#patternType"},action:{type:"ref",ref:"lex:tools.ozone.safelink.defs#actionType"},reason:{type:"ref",ref:"lex:tools.ozone.safelink.defs#reasonType"},comment:{type:"string",description:"Optional comment about the update"},createdBy:{type:"string",format:"did",description:"Optional DID to credit as the creator. Only respected for admin_token authentication."}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.safelink.defs#event"}},errors:[{name:"RuleNotFound",description:"No active rule found for this URL/domain"}]}}},ToolsOzoneServerGetConfig:{lexicon:1,id:"tools.ozone.server.getConfig",defs:{main:{type:"query",description:"Get details about ozone's server configuration.",output:{encoding:"application/json",schema:{type:"object",properties:{appview:{type:"ref",ref:"lex:tools.ozone.server.getConfig#serviceConfig"},pds:{type:"ref",ref:"lex:tools.ozone.server.getConfig#serviceConfig"},blobDivert:{type:"ref",ref:"lex:tools.ozone.server.getConfig#serviceConfig"},chat:{type:"ref",ref:"lex:tools.ozone.server.getConfig#serviceConfig"},viewer:{type:"ref",ref:"lex:tools.ozone.server.getConfig#viewerConfig"},verifierDid:{type:"string",format:"did",description:"The did of the verifier used for verification."}}}}},serviceConfig:{type:"object",properties:{url:{type:"string",format:"uri"}}},viewerConfig:{type:"object",properties:{role:{type:"string",knownValues:["tools.ozone.team.defs#roleAdmin","tools.ozone.team.defs#roleModerator","tools.ozone.team.defs#roleTriage","tools.ozone.team.defs#roleVerifier"]}}}}},ToolsOzoneSetAddValues:{lexicon:1,id:"tools.ozone.set.addValues",defs:{main:{type:"procedure",description:"Add values to a specific set. Attempting to add values to a set that does not exist will result in an error.",input:{encoding:"application/json",schema:{type:"object",required:["name","values"],properties:{name:{type:"string",description:"Name of the set to add values to"},values:{type:"array",minLength:1,maxLength:1e3,items:{type:"string"}
21,description:"Array of string values to add to the set"}}}}}}},ToolsOzoneSetDefs:{lexicon:1,id:"tools.ozone.set.defs",defs:{set:{type:"object",required:["name"],properties:{name:{type:"string",minLength:3,maxLength:128},description:{type:"string",maxGraphemes:1024,maxLength:10240}}},setView:{type:"object",required:["name","setSize","createdAt","updatedAt"],properties:{name:{type:"string",minLength:3,maxLength:128},description:{type:"string",maxGraphemes:1024,maxLength:10240},setSize:{type:"integer"},createdAt:{type:"string",format:"datetime"},updatedAt:{type:"string",format:"datetime"}}}}},ToolsOzoneSetDeleteSet:{lexicon:1,id:"tools.ozone.set.deleteSet",defs:{main:{type:"procedure",description:"Delete an entire set. Attempting to delete a set that does not exist will result in an error.",input:{encoding:"application/json",schema:{type:"object",required:["name"],properties:{name:{type:"string",description:"Name of the set to delete"}}}},output:{encoding:"application/json",schema:{type:"object",properties:{}}},errors:[{name:"SetNotFound",description:"set with the given name does not exist"}]}}},ToolsOzoneSetDeleteValues:{lexicon:1,id:"tools.ozone.set.deleteValues",defs:{main:{type:"procedure",description:"Delete values from a specific set. Attempting to delete values that are not in the set will not result in an error",input:{encoding:"application/json",schema:{type:"object",required:["name","values"],properties:{name:{type:"string",description:"Name of the set to delete values from"},values:{type:"array",minLength:1,items:{type:"string"},description:"Array of string values to delete from the set"}}}},errors:[{name:"SetNotFound",description:"set with the given name does not exist"}]}}},ToolsOzoneSetGetValues:{lexicon:1,id:"tools.ozone.set.getValues",defs:{main:{type:"query",description:"Get a specific set and its values",parameters:{type:"params",required:["name"],properties:{name:{type:"string"},limit:{type:"integer",minimum:1,maximum:1e3,default:100},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["set","values"],properties:{set:{type:"ref",ref:"lex:tools.ozone.set.defs#setView"},values:{type:"array",items:{type:"string"}},cursor:{type:"string"}}}},errors:[{name:"SetNotFound",description:"set with the given name does not exist"}]}}},ToolsOzoneSetQuerySets:{lexicon:1,id:"tools.ozone.set.querySets",defs:{main:{type:"query",description:"Query available sets",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},namePrefix:{type:"string"},sortBy:{type:"string",enum:["name","createdAt","updatedAt"],default:"name"},sortDirection:{type:"string",default:"asc",enum:["asc","desc"],description:"Defaults to ascending order of name field."}}},output:{encoding:"application/json",schema:{type:"object",required:["sets"],properties:{sets:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.set.defs#setView"}},cursor:{type:"string"}}}}}}},ToolsOzoneSetUpsertSet:{lexicon:1,id:"tools.ozone.set.upsertSet",defs:{main:{type:"procedure",description:"Create or update set metadata",input:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.set.defs#set"}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.set.defs#setView"}}}}},ToolsOzoneSettingDefs:{lexicon:1,id:"tools.ozone.setting.defs",defs:{option:{type:"object",required:["key","value","did","scope","createdBy","lastUpdatedBy"],properties:{key:{type:"string",format:"nsid"},did:{type:"string",format:"did"},value:{type:"unknown"},description:{type:"string",maxGraphemes:1024,maxLength:10240},createdAt:{type:"string",format:"datetime"},updatedAt:{type:"string",format:"datetime"},managerRole:{type:"string",knownValues:["tools.ozone.team.defs#roleModerator","tools.ozone.team.defs#roleTriage","tools.ozone.team.defs#roleAdmin","tools.ozone.team.defs#roleVerifier"]},scope:{type:"string",knownValues:["instance","personal"]},createdBy:{type:"string",format:"did"},lastUpdatedBy:{type:"string",format:"did"}}}}},ToolsOzoneSettingListOptions:{lexicon:1,id:"tools.ozone.setting.listOptions",defs:{main:{type:"query",description:"List settings with optional filtering",parameters:{type:"params",properties:{limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"},scope:{type:"string",knownValues:["instance","personal"],default:"instance"},prefix:{type:"string",description:"Filter keys by prefix"},keys:{type:"array",maxLength:100,items:{type:"string",format:"nsid"},description:"Filter for only the specified keys. Ignored if prefix is provided"}}},output:{encoding:"application/json",schema:{type:"object",required:["options"],properties:{cursor:{type:"string"},options:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.setting.defs#option"}}}}}}}},ToolsOzoneSettingRemoveOptions:{lexicon:1,id:"tools.ozone.setting.removeOptions",defs:{main:{type:"procedure",description:"Delete settings by key",input:{encoding:"application/json",schema:{type:"object",required:["keys","scope"],properties:{keys:{type:"array",minLength:1,maxLength:200,items:{type:"string",format:"nsid"}},scope:{type:"string",knownValues:["instance","personal"]}}}},output:{encoding:"application/json",schema:{type:"object",properties:{}}}}}},ToolsOzoneSettingUpsertOption:{lexicon:1,id:"tools.ozone.setting.upsertOption",defs:{main:{type:"procedure",description:"Create or update setting option",input:{encoding:"application/json",schema:{type:"object",required:["key","scope","value"],properties:{key:{type:"string",format:"nsid"},scope:{type:"string",knownValues:["instance","personal"]},value:{type:"unknown"},description:{type:"string",maxLength:2e3},managerRole:{type:"string",knownValues:["tools.ozone.team.defs#roleModerator","tools.ozone.team.defs#roleTriage","tools.ozone.team.defs#roleVerifier","tools.ozone.team.defs#roleAdmin"]}}}},output:{encoding:"application/json",schema:{type:"object",required:["option"],properties:{option:{type:"ref",ref:"lex:tools.ozone.setting.defs#option"}}}}}}},ToolsOzoneSignatureDefs:{lexicon:1,id:"tools.ozone.signature.defs",defs:{sigDetail:{type:"object",required:["property","value"],properties:{property:{type:"string"},value:{type:"string"}}}}},ToolsOzoneSignatureFindCorrelation:{lexicon:1,id:"tools.ozone.signature.findCorrelation",defs:{main:{type:"query",description:"Find all correlated threat signatures between 2 or more accounts.",parameters:{type:"params",required:["dids"],properties:{dids:{type:"array",items:{type:"string",format:"did"}}}},output:{encoding:"application/json",schema:{type:"object",required:["details"],properties:{details:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.signature.defs#sigDetail"}}}}}}}},ToolsOzoneSignatureFindRelatedAccounts:{lexicon:1,id:"tools.ozone.signature.findRelatedAccounts",defs:{main:{type:"query",description:"Get accounts that share some matching threat signatures with the root account.",parameters:{type:"params",required:["did"],properties:{did:{type:"string",format:"did"},cursor:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50}}},output:{encoding:"application/json",schema:{type:"object",required:["accounts"],properties:{cursor:{type:"string"},accounts:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.signature.findRelatedAccounts#relatedAccount"}}}}}},relatedAccount:{type:"object",required:["account"],properties:{account:{type:"ref",ref:"lex:com.atproto.admin.defs#accountView"},similarities:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.signature.defs#sigDetail"}}}}}},ToolsOzoneSignatureSearchAccounts:{lexicon:1,id:"tools.ozone.signature.searchAccounts",defs:{main:{type:"query",description:"Search for accounts that match one or more threat signature values.",parameters:{type:"params",required:["values"],properties:{values:{type:"array",items:{type:"string"}},cursor:{type:"string"},limit:{type:"integer",minimum:1,maximum:100,default:50}}},output:{encoding:"application/json",schema:{type:"object",required:["accounts"],properties:{cursor:{type:"string"},accounts:{type:"array",items:{type:"ref",ref:"lex:com.atproto.admin.defs#accountView"}}}}}}}},ToolsOzoneTeamAddMember:{lexicon:1,id:"tools.ozone.team.addMember",def
21s:{main:{type:"procedure",description:"Add a member to the ozone team. Requires admin role.",input:{encoding:"application/json",schema:{type:"object",required:["did","role"],properties:{did:{type:"string",format:"did"},role:{type:"string",knownValues:["tools.ozone.team.defs#roleAdmin","tools.ozone.team.defs#roleModerator","tools.ozone.team.defs#roleVerifier","tools.ozone.team.defs#roleTriage"]}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.team.defs#member"}},errors:[{name:"MemberAlreadyExists",description:"Member already exists in the team."}]}}},ToolsOzoneTeamDefs:{lexicon:1,id:"tools.ozone.team.defs",defs:{member:{type:"object",required:["did","role"],properties:{did:{type:"string",format:"did"},disabled:{type:"boolean"},profile:{type:"ref",ref:"lex:app.bsky.actor.defs#profileViewDetailed"},createdAt:{type:"string",format:"datetime"},updatedAt:{type:"string",format:"datetime"},lastUpdatedBy:{type:"string"},role:{type:"string",knownValues:["lex:tools.ozone.team.defs#roleAdmin","lex:tools.ozone.team.defs#roleModerator","lex:tools.ozone.team.defs#roleTriage","lex:tools.ozone.team.defs#roleVerifier"]}}},roleAdmin:{type:"token",description:"Admin role. Highest level of access, can perform all actions."},roleModerator:{type:"token",description:"Moderator role. Can perform most actions."},roleTriage:{type:"token",description:"Triage role. Mostly intended for monitoring and escalating issues."},roleVerifier:{type:"token",description:"Verifier role. Only allowed to issue verifications."}}},ToolsOzoneTeamDeleteMember:{lexicon:1,id:"tools.ozone.team.deleteMember",defs:{main:{type:"procedure",description:"Delete a member from ozone team. Requires admin role.",input:{encoding:"application/json",schema:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"}}}},errors:[{name:"MemberNotFound",description:"The member being deleted does not exist"},{name:"CannotDeleteSelf",description:"You can not delete yourself from the team"}]}}},ToolsOzoneTeamListMembers:{lexicon:1,id:"tools.ozone.team.listMembers",defs:{main:{type:"query",description:"List all members with access to the ozone service.",parameters:{type:"params",properties:{q:{type:"string"},disabled:{type:"boolean"},roles:{type:"array",items:{type:"string"}},limit:{type:"integer",minimum:1,maximum:100,default:50},cursor:{type:"string"}}},output:{encoding:"application/json",schema:{type:"object",required:["members"],properties:{cursor:{type:"string"},members:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.team.defs#member"}}}}}}}},ToolsOzoneTeamUpdateMember:{lexicon:1,id:"tools.ozone.team.updateMember",defs:{main:{type:"procedure",description:"Update a member in the ozone service. Requires admin role.",input:{encoding:"application/json",schema:{type:"object",required:["did"],properties:{did:{type:"string",format:"did"},disabled:{type:"boolean"},role:{type:"string",knownValues:["tools.ozone.team.defs#roleAdmin","tools.ozone.team.defs#roleModerator","tools.ozone.team.defs#roleVerifier","tools.ozone.team.defs#roleTriage"]}}}},output:{encoding:"application/json",schema:{type:"ref",ref:"lex:tools.ozone.team.defs#member"}},errors:[{name:"MemberNotFound",description:"The member being updated does not exist in the team"}]}}},ToolsOzoneVerificationDefs:{lexicon:1,id:"tools.ozone.verification.defs",defs:{verificationView:{type:"object",description:"Verification data for the associated subject.",required:["issuer","uri","subject","handle","displayName","createdAt"],properties:{issuer:{type:"string",description:"The user who issued this verification.",format:"did"},uri:{type:"string",description:"The AT-URI of the verification record.",format:"at-uri"},subject:{type:"string",format:"did",description:"The subject of the verification."},handle:{type:"string",description:"Handle of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current handle matches the one at the time of verifying.",format:"handle"},displayName:{type:"string",description:"Display name of the subject the verification applies to at the moment of verifying, which might not be the same at the time of viewing. The verification is only valid if the current displayName matches the one at the time of verifying."}
21,createdAt:{type:"string",description:"Timestamp when the verification was created.",format:"datetime"},revokeReason:{type:"string",description:"Describes the reason for revocation, also indicating that the verification is no longer valid."},revokedAt:{type:"string",description:"Timestamp when the verification was revoked.",format:"datetime"},revokedBy:{type:"string",description:"The user who revoked this verification.",format:"did"},subjectProfile:{type:"union",refs:[]},issuerProfile:{type:"union",refs:[]},subjectRepo:{type:"union",refs:["lex:tools.ozone.moderation.defs#repoViewDetail","lex:tools.ozone.moderation.defs#repoViewNotFound"]},issuerRepo:{type:"union",refs:["lex:tools.ozone.moderation.defs#repoViewDetail","lex:tools.ozone.moderation.defs#repoViewNotFound"]}}}}},ToolsOzoneVerificationGrantVerifications:{lexicon:1,id:"tools.ozone.verification.grantVerifications",defs:{main:{type:"procedure",description:"Grant verifications to multiple subjects. Allows batch processing of up to 100 verifications at once.",input:{encoding:"application/json",schema:{type:"object",required:["verifications"],properties:{verifications:{type:"array",description:"Array of verification requests to process",maxLength:100,items:{type:"ref",ref:"lex:tools.ozone.verification.grantVerifications#verificationInput"}}}}},output:{encoding:"application/json",schema:{type:"object",required:["verifications","failedVerifications"],properties:{verifications:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.verification.defs#verificationView"}},failedVerifications:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.verification.grantVerifications#grantError"}}}}}},verificationInput:{type:"object",required:["subject","handle","displayName"],properties:{subject:{type:"string",description:"The did of the subject being verified",format:"did"},handle:{type:"string",description:"Handle of the subject the verification applies to at the moment of verifying.",format:"handle"},displayName:{type:"string",description:"Display name of the subject the verification applies to at the moment of verifying."},createdAt:{type:"string",format:"datetime",description:"Timestamp for verification record. Defaults to current time when not specified."}}},grantError:{type:"object",description:"Error object for failed verifications.",required:["error","subject"],properties:{error:{type:"string",description:"Error message describing the reason for failure."},subject:{type:"string",description:"The did of the subject being verified",format:"did"}}}}},ToolsOzoneVerificationListVerifications:{lexicon:1,id:"tools.ozone.verification.listVerifications",defs:{main:{type:"query",description:"List verifications",parameters:{type:"params",properties:{cursor:{type:"string",description:"Pagination cursor"},limit:{type:"integer",description:"Maximum number of results to return",minimum:1,maximum:100,default:50},createdAfter:{type:"string",format:"datetime",description:"Filter to verifications created after this timestamp"},createdBefore:{type:"string",format:"datetime",description:"Filter to verifications created before this timestamp"},issuers:{type:"array",maxLength:100,description:"Filter to verifications from specific issuers",items:{type:"string",format:"did"}},subjects:{type:"array",description:"Filter to specific verified DIDs",maxLength:100,items:{type:"string",format:"did"}},sortDirection:{type:"string",description:"Sort direction for creation date",enum:["asc","desc"],default:"desc"},isRevoked:{type:"boolean",description:"Filter to verifications that are revoked or not. By default, includes both."}}},output:{encoding:"application/json",schema:{type:"object",required:["verifications"],properties:{cursor:{type:"string"},verifications:{type:"array",items:{type:"ref",ref:"lex:tools.ozone.verification.defs#verificationView"}}}}}}}},ToolsOzoneVerificationRevokeVerifications:{lexicon:1,id:"tools.ozone.verification.revokeVerifications",defs:{main:{type:"procedure",description:"Revoke previously granted verifications in batches of up to 100.",input:{encoding:"application/json",schema:{type:"object",required:["uris"],properties:{uris:{type:"array",description:"Array of verification record uris to revoke",maxLength:100,items:{type:"string",description:"The AT-URI of the verification record to revoke.",format:"at-uri"}},revokeReason:{type:"string",description:"Reason for revoking the verification. This is optional and can be omitted if not needed.",maxLength:1e3}}}},output:{encoding:"application/json",schema:{type:"object",required:["revokedVerifications","failedRevocations"],properties:{revokedVerifications:{type:"array",description:"List of verification uris successfully revoked",items:{type:"string",format:"at-uri"}},failedRevocations:{type:"array",description:"List of verification uris that couldn't be revoked, including failure reasons",items:{type:"ref",ref:"lex:tools.ozone.verification.revokeVerifications#revokeError"}}}}}},revokeError:{type:"object",description:"Error object for failed revocations",required:["uri","error"],properties:{uri:{type:"string",description:"The AT-URI of the verification record that failed to revoke.",format:"at-uri"},error:{type:"string",description:"Description of the error that occurred during revocation."}}}}}},r.schemas=Object.values(r.schemaDict),r.lexicons=new o.Lexicons(r.schemas),r.ids={AppBskyActorDefs:"app.bsky.actor.defs",AppBskyActorGetPreferences:"app.bsky.actor.getPreferences",AppBskyActorGetProfile:"app.bsky.actor.getProfile",AppBskyActorGetProfiles:"app.bsky.actor.getProfiles",AppBskyActorGetSuggestions:"app.bsky.actor.getSuggestions",AppBskyActorProfile:"app.bsky.actor.profile",AppBskyActorPutPreferences:"app.bsky.actor.putPreferences",AppBskyActorSearchActors:"app.bsky.actor.searchActors",AppBskyActorSearchActorsTypeahead:"app.bsky.actor.searchActorsTypeahead",AppBskyActorStatus:"app.bsky.actor.status",AppBskyBookmarkCreateBookmark:"app.bsky.bookmark.createBookmark",AppBskyBookmarkDefs:"app.bsky.bookmark.defs",AppBskyBookmarkDeleteBookmark:"app.bsky.bookmark.deleteBookmark",AppBskyBookmarkGetBookmarks:"app.bsky.bookmark.getBookmarks",AppBskyEmbedDefs:"app.bsky.embed.defs",AppBskyEmbedExternal:"app.bsky.embed.external",AppBskyEmbedImages:"app.bsky.embed.images",AppBskyEmbedRecord:"app.bsky.embed.record",AppBskyEmbedRecordWithMedia:"app.bsky.embed.recordWithMedia",AppBskyEmbedVideo:"app.bsky.embed.video",AppBskyFeedDefs:"app.bsky.feed.defs",AppBskyFeedDescribeFeedGenerator:"app.bsky.feed.describeFeedGenerator",AppBskyFeedGenerator:"app.bsky.feed.generator",AppBskyFeedGetActorFeeds:"app.bsky.feed.getActorFeeds",AppBskyFeedGetActorLikes:"app.bsky.feed.getActorLikes",AppBskyFeedGetAuthorFeed:"app.bsky.feed.getAuthorFeed",AppBskyFeedGetFeed:"app.bsky.feed.getFeed",AppBskyFeedGetFeedGenerator:"app.bsky.feed.getFeedGenerator",AppBskyFeedGetFeedGenerators:"app.bsky.feed.getFeedGenerators",AppBskyFeedGetFeedSkeleton:"app.bsky.feed.getFeedSkeleton",AppBskyFeedGetLikes:"app.bsky.feed.getLikes",AppBskyFeedGetListFeed:"app.bsky.feed.getListFeed",AppBskyFeedGetPostThread:"app.bsky.feed.getPostThread",AppBskyFeedGetPosts:"app.bsky.feed.getPosts",AppBskyFeedGetQuotes:"app.bsky.feed.getQuotes",AppBskyFeedGetRepostedBy:"app.bsky.feed.getRepostedBy",AppBskyFeedGetSuggestedFeeds:"app.bsky.feed.getSuggestedFeeds",AppBskyFeedGetTimeline:"app.bsky.feed.getTimeline",AppBskyFeedLike:"app.bsky.feed.like",AppBskyFeedPost:"app.bsky.feed.post",AppBskyFeedPostgate:"app.bsky.feed.postgate",AppBskyFeedRepost:"app.bsky.feed.repost",AppBskyFeedSearchPosts:"app.bsky.feed.searchPosts",AppBskyFeedSendInteractions:"app.bsky.feed.sendInteractions",AppBskyFeedThreadgate:"app.bsky.feed.threadgate",AppBskyGraphBlock:"app.bsky.graph.block",AppBskyGraphDefs:"app.bsky.graph.defs",AppBskyGraphFollow:"app.bsky.graph.follow",AppBskyGraphGetActorStarterPacks:"app.bsky.graph.getActorStarterPacks",AppBskyGraphGetBlocks:"app.bsky.graph.getBlocks",AppBskyGraphGetFollowers:"app.bsky.graph.getFollowers",AppBskyGraphGetFollows:"app.bsky.graph.getFollows",AppBskyGraphGetKnownFollowers:"app.bsky.graph.getKnownFollowers",AppBskyGraphGetList:"app.bsky.graph.getList",AppBskyGraphGetListBlocks:"app.bsky.graph.getListBlocks",AppBskyGraphGetListMutes:"app.bsky.graph.getListMutes",AppBskyGraphGetLists:"app.bsky.graph.getLists",AppBskyGraphGetListsWithMembership:"app.bsky.graph.getListsWithMembership",AppBskyGraphGetMutes:"app.bsky.graph.getMutes",AppBskyGraphGetRelationships:"app.bsky.graph.getRelationships",AppBskyGraphGetStarterPack:"app.bsky.graph.getStarterPack",AppBskyGraphGetStarterPacks:"app.bsky.graph.getStarterPacks",AppBskyGraphGetStarterPacksWithMembership:"app.bsky.graph.getStarterPacksWithMembership",AppBskyGraphGetSuggestedFollowsByActor:"app.bsky.graph.getSuggestedFollowsByActor",AppBskyGraphList:"app.bsky.graph.list",AppBskyGraphListblock:"app.bsky.graph.listblock",AppBskyGraphListitem:"app.bsky.graph.listitem",AppBskyGraphMuteActor:"app.bsky.graph.muteActor",AppBskyGraphMuteActorList:"app.bsky.graph.muteActorList",AppBskyGraphMuteThread:"app.bsky.graph.muteThread",AppBskyGraphSearchStarterPacks:"app.bsky.graph.searchStarterPacks",AppBskyGraphStarterpack:"app.bsky.graph.starterpack",AppBskyGraphUnmuteActor:"app.bsky.graph.unmuteActor",AppBskyGraphUnmuteActorList:"app.bsky.graph.unmuteActorList",AppBskyGraphUnmuteThread:"app.bsky.graph.unmuteThread",AppBskyGraphVerification:"app.bsky.graph.verification",AppBskyLabelerDefs:"app.bsky.labeler.defs",AppBskyLabelerGetServices:"app.bsky.labeler.getServices",AppBskyLabelerService:"app.bsky.labeler.service",AppBskyNotificationDeclaration:"app.bsky.notification.declaration",AppBskyNotificationDefs:"app.bsky.notification.defs",AppBskyNotificationGetPreferences:"app.bsky.notification.getPreferences",AppBskyNotificationGetUnreadCount:"app.bsky.notification.getUnreadCount",AppBskyNotificationListActivitySubscriptions:"app.bsky.notification.listActivitySubscriptions",AppBskyNotificationListNotifications:"app.bsky.notification.listNotifications",AppBskyNotificationPutActivitySubscription:"app.bsky.notification.putActivitySubscription",AppBskyNotificationPutPreferences:"app.bsky.notification.putPreferences",AppBskyNotificationPutPreferencesV2:"app.bsky.notification.putPreferencesV2",AppBskyNotificationRegisterPush:"app.bsky.notification.registerPush",AppBskyNotificationUnregisterPush:"app.bsky.notification.unregisterPush",AppBskyNotificationUpdateSeen:"app.bsky.notification.updateSeen",AppBskyRichtextFacet:"app.bsky.richtext.facet",AppBskyUnspeccedDefs:"app.bsky.unspecced.defs",AppBskyUnspeccedGetAgeAssuranceState:"app.bsky.unspecced.getAgeAssuranceState",AppBskyUnspeccedGetConfig:"app.bsky.unspecced.getConfig",AppBskyUnspeccedGetPopularFeedGenerators:"app.bsky.unspecced.getPopularFeedGenerators",AppBskyUnspeccedGetPostThreadOtherV2:"app.bsky.unspecced.getPostThreadOtherV2",AppBskyUnspeccedGetPostThreadV2:"app.bsky.unspecced.getPostThreadV2",AppBskyUnspeccedGetSuggestedFeeds:"app.bsky.unspecced.getSuggestedFeeds",AppBskyUnspeccedGetSuggestedFeedsSkeleton:"app.bsky.unspecced.getSuggestedFeedsSkeleton",AppBskyUnspeccedGetSuggestedStarterPacks:"app.bsky.unspecced.getSuggestedStarterPacks",AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:"app.bsky.unspecced.getSuggestedStarterPacksSkeleton",AppBskyUnspeccedGetSuggestedUsers:"app.bsky.unspecced.getSuggestedUsers",AppBskyUnspeccedGetSuggestedUsersSkeleton:"app.bsky.unspecced.getSuggestedUsersSkeleton",AppBskyUnspeccedGetSuggestionsSkeleton:"app.bsky.unspecced.getSuggestionsSkeleton",AppBskyUnspeccedGetTaggedSuggestions:"app.bsky.unspecced.getTaggedSuggestions",AppBskyUnspeccedGetTrendingTopics:"app.bsky.unspecced.getTrendingTopics",AppBskyUnspeccedGetTrends:"app.bsky.unspecced.getTrends",AppBskyUnspeccedGetTrendsSkeleton:"app.bsky.unspecced.getTrendsSkeleton",AppBskyUnspeccedInitAgeAssurance:"app.bsky.unspecced.initAgeAssurance",AppBskyUnspeccedSearchActorsSkeleton:"app.bsky.unspecced.searchActorsSkeleton",AppBskyUnspeccedSearchPostsSkeleton:"app.bsky.unspecced.searchPostsSkeleton",AppBskyUnspeccedSearchStarterPacksSkeleton:"app.bsky.unspecced.searchStarterPacksSkeleton",AppBskyVideoDefs:"app.bsky.video.defs",AppBskyVideoGetJobStatus:"app.bsky.video.getJobStatus",AppBskyVideoGet
21UploadLimits:"app.bsky.video.getUploadLimits",AppBskyVideoUploadVideo:"app.bsky.video.uploadVideo",ChatBskyActorDeclaration:"chat.bsky.actor.declaration",ChatBskyActorDefs:"chat.bsky.actor.defs",ChatBskyActorDeleteAccount:"chat.bsky.actor.deleteAccount",ChatBskyActorExportAccountData:"chat.bsky.actor.exportAccountData",ChatBskyConvoAcceptConvo:"chat.bsky.convo.acceptConvo",ChatBskyConvoAddReaction:"chat.bsky.convo.addReaction",ChatBskyConvoDefs:"chat.bsky.convo.defs",ChatBskyConvoDeleteMessageForSelf:"chat.bsky.convo.deleteMessageForSelf",ChatBskyConvoGetConvo:"chat.bsky.convo.getConvo",ChatBskyConvoGetConvoAvailability:"chat.bsky.convo.getConvoAvailability",ChatBskyConvoGetConvoForMembers:"chat.bsky.convo.getConvoForMembers",ChatBskyConvoGetLog:"chat.bsky.convo.getLog",ChatBskyConvoGetMessages:"chat.bsky.convo.getMessages",ChatBskyConvoLeaveConvo:"chat.bsky.convo.leaveConvo",ChatBskyConvoListConvos:"chat.bsky.convo.listConvos",ChatBskyConvoMuteConvo:"chat.bsky.convo.muteConvo",ChatBskyConvoRemoveReaction:"chat.bsky.convo.removeReaction",ChatBskyConvoSendMessage:"chat.bsky.convo.sendMessage",ChatBskyConvoSendMessageBatch:"chat.bsky.convo.sendMessageBatch",ChatBskyConvoUnmuteConvo:"chat.bsky.convo.unmuteConvo",ChatBskyConvoUpdateAllRead:"chat.bsky.convo.updateAllRead",ChatBskyConvoUpdateRead:"chat.bsky.convo.updateRead",ChatBskyModerationGetActorMetadata:"chat.bsky.moderation.getActorMetadata",ChatBskyModerationGetMessageContext:"chat.bsky.moderation.getMessageContext",ChatBskyModerationUpdateActorAccess:"chat.bsky.moderation.updateActorAccess",ComAtprotoAdminDefs:"com.atproto.admin.defs",ComAtprotoAdminDeleteAccount:"com.atproto.admin.deleteAccount",ComAtprotoAdminDisableAccountInvites:"com.atproto.admin.disableAccountInvites",ComAtprotoAdminDisableInviteCodes:"com.atproto.admin.disableInviteCodes",ComAtprotoAdminEnableAccountInvites:"com.atproto.admin.enableAccountInvites",ComAtprotoAdminGetAccountInfo:"com.atproto.admin.getAccountInfo",ComAtprotoAdminGetAccountInfos:"com.atproto.admin.getAccountInfos",ComAtprotoAdminGetInviteCodes:"com.atproto.admin.getInviteCodes",ComAtprotoAdminGetSubjectStatus:"com.atproto.admin.getSubjectStatus",ComAtprotoAdminSearchAccounts:"com.atproto.admin.searchAccounts",ComAtprotoAdminSendEmail:"com.atproto.admin.sendEmail",ComAtprotoAdminUpdateAccountEmail:"com.atproto.admin.updateAccountEmail",ComAtprotoAdminUpdateAccountHandle:"com.atproto.admin.updateAccountHandle",ComAtprotoAdminUpdateAccountPassword:"com.atproto.admin.updateAccountPassword",ComAtprotoAdminUpdateAccountSigningKey:"com.atproto.admin.updateAccountSigningKey",ComAtprotoAdminUpdateSubjectStatus:"com.atproto.admin.updateSubjectStatus",ComAtprotoIdentityDefs:"com.atproto.identity.defs",ComAtprotoIdentityGetRecommendedDidCredentials:"com.atproto.identity.getRecommendedDidCredentials",ComAtprotoIdentityRefreshIdentity:"com.atproto.identity.refreshIdentity",ComAtprotoIdentityRequestPlcOperationSignature:"com.atproto.identity.requestPlcOperationSignature",ComAtprotoIdentityResolveDid:"com.atproto.identity.resolveDid",ComAtprotoIdentityResolveHandle:"com.atproto.identity.resolveHandle",ComAtprotoIdentityResolveIdentity:"com.atproto.identity.resolveIdentity",ComAtprotoIdentitySignPlcOperation:"com.atproto.identity.signPlcOperation",ComAtprotoIdentitySubmitPlcOperation:"com.atproto.identity.submitPlcOperation",ComAtprotoIdentityUpdateHandle:"com.atproto.identity.updateHandle",ComAtprotoLabelDefs:"com.atproto.label.defs",ComAtprotoLabelQueryLabels:"com.atproto.label.queryLabels",ComAtprotoLabelSubscribeLabels:"com.atproto.label.subscribeLabels",ComAtprotoLexiconSchema:"com.atproto.lexicon.schema",ComAtprotoModerationCreateReport:"com.atproto.moderation.createReport",ComAtprotoModerationDefs:"com.atproto.moderation.defs",ComAtprotoRepoApplyWrites:"com.atproto.repo.applyWrites",ComAtprotoRepoCreateRecord:"com.atproto.repo.createRecord",ComAtprotoRepoDefs:"com.atproto.repo.defs",ComAtprotoRepoDeleteRecord:"com.atproto.repo.deleteRecord",ComAtprotoRepoDescribeRepo:"com.atproto.repo.describeRepo",ComAtprotoRepoGetRecord:"com.atproto.repo.getRecord",ComAtprotoRepoImportRepo:"com.atproto.repo.importRepo",ComAtprotoRepoListMissingBlobs:"com.atproto.repo.listMissingBlobs",ComAtprotoRepoListRecords:"com.atproto.repo.listRecords",ComAtprotoRepoPutRecord:"com.atproto.repo.putRecord",ComAtprotoRepoStrongRef:"com.atproto.repo.strongRef",ComAtprotoRepoUploadBlob:"com.atproto.repo.uploadBlob",ComAtprotoServerActivateAccount:"com.atproto.server.activateAccount",ComAtprotoServerCheckAccountStatus:"com.atproto.server.checkAccountStatus",ComAtprotoServerConfirmEmail:"com.atproto.server.confirmEmail",ComAtprotoServerCreateAccount:"com.atproto.server.createAccount",ComAtprotoServerCreateAppPassword:"com.atproto.server.createAppPassword",ComAtprotoServerCreateInviteCode:"com.atproto.server.createInviteCode",ComAtprotoServerCreateInviteCodes:"com.atproto.server.createInviteCodes",ComAtprotoServerCreateSession:"com.atproto.server.createSession",ComAtprotoServerDeactivateAccount:"com.atproto.server.deactivateAccount",ComAtprotoServerDefs:"com.atproto.server.defs",ComAtprotoServerDeleteAccount:"com.atproto.server.deleteAccount",ComAtprotoServerDeleteSession:"com.atproto.server.deleteSession",ComAtprotoServerDescribeServer:"com.atproto.server.describeServer",ComAtprotoServerGetAccountInviteCodes:"com.atproto.server.getAccountInviteCodes",ComAtprotoServerGetServiceAuth:"com.atproto.server.getServiceAuth",ComAtprotoServerGetSession:"com.atproto.server.getSession",ComAtprotoServerListAppPasswords:"com.atproto.server.listAppPasswords",ComAtprotoServerRefreshSession:"com.atproto.server.refreshSession",ComAtprotoServerRequestAccountDelete:"com.atproto.server.requestAccountDelete",ComAtprotoServerRequestEmailConfirmation:"com.atproto.server.requestEmailConfirmation",ComAtprotoServerRequestEmailUpdate:"com.atproto.server.requestEmailUpdate",ComAtprotoServerRequestPasswordReset:"com.atproto.server.requestPasswordReset",ComAtprotoServerReserveSigningKey:"com.atproto.server.reserveSigningKey",ComAtprotoServerResetPassword:"com.atproto.server.resetPassword",ComAtprotoServerRevokeAppPassword:"com.atproto.server.revokeAppPassword",ComAtprotoServerUpdateEmail:"com.atproto.server.updateEmail",ComAtprotoSyncDefs:"com.atproto.sync.defs",ComAtprotoSyncGetBlob:"com.atproto.sync.getBlob",ComAtprotoSyncGetBlocks:"com.atproto.sync.getBlocks",ComAtprotoSyncGetCheckout:"com.atproto.sync.getCheckout",ComAtprotoSyncGetHead:"com.atproto.sync.getHead",ComAtprotoSyncGetHostStatus:"com.atproto.sync.getHostStatus",ComAtprotoSyncGetLatestCommit:"com.atproto.sync.getLatestCommit",ComAtprotoSyncGetRecord:"com.atproto.sync.getRecord",ComAtprotoSyncGetRepo:"com.atproto.sync.getRepo",ComAtprotoSyncGetRepoStatus:"com.atproto.sync.getRepoStatus",ComAtprotoSyncListBlobs:"com.atproto.sync.listBlobs",ComAtprotoSyncListHosts:"com.atproto.sync.listHosts",ComAtprotoSyncListRepos:"com.atproto.sync.listRepos",ComAtprotoSyncListReposByCollection:"com.atproto.sync.listReposByCollection",ComAtprotoSyncNotifyOfUpdate:"com.atproto.sync.notifyOfUpdate",ComAtprotoSyncRequestCrawl:"com.atproto.sync.requestCrawl",ComAtprotoSyncSubscribeRepos:"com.atproto.sync.subscribeRepos",ComAtprotoTempAddReservedHandle:"com.atproto.temp.addReservedHandle",ComAtprotoTempCheckHandleAvailability:"com.atproto.temp.checkHandleAvailability",ComAtprotoTempCheckSignupQueue:"com.atproto.temp.checkSignupQueue",ComAtprotoTempDereferenceScope:"com.atproto.temp.dereferenceScope",ComAtprotoTempFetchLabels:"com.atproto.temp.fetchLabels",ComAtprotoTempRequestPhoneVerification:"com.atproto.temp.requestPhoneVerification",ComAtprotoTempRevokeAccountCredentials:"com.atproto.temp.revokeAccountCredentials",ToolsOzoneCommunicationCreateTemplate:"tools.ozone.communication.createTemplate",ToolsOzoneCommunicationDefs:"tools.ozone.communication.defs",ToolsOzoneCommunicationDeleteTemplate:"tools.ozone.communication.deleteTemplate",ToolsOzoneCommunicationListTemplates:"tools.ozone.communication.listTemplates",ToolsOzoneCommunicationUpdateTemplate:"tools.ozone.communication.updateTemplate",ToolsOzoneHostingGetAccountHistory:"tools.ozone.hosting.getAccountHistory",ToolsOzoneModerationDefs:"tools.ozone.moderation.defs",ToolsOzoneModerationEmitEvent:"tools.ozone.moderation.emitEvent",ToolsOzoneModerationGetAccountTimeline:"tools.ozone.moderation.getAccountTimeline",ToolsOzoneModerationGetEvent:"tools.ozone.moderation.getEvent",ToolsOzoneModerationGetRecord:"tools.ozone.moderation.getRecord",ToolsOzoneModerationGetRecords:"tools.ozone.moderation.getRecords",ToolsOzoneModerationGetRepo:"tools.ozone.moderation.getRepo",ToolsOzoneModerationGetReporterStats:"tools.ozone.moderation.getReporterStats",ToolsOzoneModerationGetRepos:"tools.ozone.moderation.getRepos",ToolsOzoneModerationGetSubjects:"tools.ozone.moderation.getSubjects",ToolsOzoneModerationQueryEvents:"tools.ozone.moderation.queryEvents",ToolsOzoneModerationQueryStatuses:"tools.ozone.moderation.queryStatuses",ToolsOzoneModerationSearchRepos:"tools.ozone.moderation.searchRepos",ToolsOzoneReportDefs:"tools.ozone.report.defs",ToolsOzoneSafelinkAddRule:"tools.ozone.safelink.addRule",ToolsOzoneSafelinkDefs:"tools.ozone.safelink.defs",ToolsOzoneSafelinkQueryEvents:"tools.ozone.safelink.queryEvents",ToolsOzoneSafelinkQueryRules:"tools.ozone.safelink.queryRules",ToolsOzoneSafelinkRemoveRule:"tools.ozone.safelink.removeRule",ToolsOzoneSafelinkUpdateRule:"tools.ozone.safelink.updateRule",ToolsOzoneServerGetConfig:"tools.ozone.server.getConfig",ToolsOzoneSetAddValues:"tools.ozone.set.addValues",ToolsOzoneSetDefs:"tools.ozone.set.defs",ToolsOzoneSetDeleteSet:"tools.ozone.set.deleteSet",ToolsOzoneSetDeleteValues:"tools.ozone.set.deleteValues",ToolsOzoneSetGetValues:"tools.ozone.set.getValues",ToolsOzoneSetQuerySets:"tools.ozone.set.querySets",ToolsOzoneSetUpsertSet:"tools.ozone.set.upsertSet",ToolsOzoneSettingDefs:"tools.ozone.setting.defs",ToolsOzoneSettingListOptions:"tools.ozone.setting.listOptions",ToolsOzoneSettingRemoveOptions:"tools.ozone.setting.removeOptions",ToolsOzoneSettingUpsertOption:"tools.ozone.setting.upsertOption",ToolsOzoneSignatureDefs:"tools.ozone.signature.defs",ToolsOzoneSignatureFindCorrelation:"tools.ozone.signature.findCorrelation",ToolsOzoneSignatureFindRelatedAccounts:"tools.ozone.signature.findRelatedAccounts",ToolsOzoneSignatureSearchAccounts:"tools.ozone.signature.searchAccounts",ToolsOzoneTeamAddMember:"tools.ozone.team.addMember",ToolsOzoneTeamDefs:"tools.ozone.team.defs",ToolsOzoneTeamDeleteMember:"tools.ozone.team.deleteMember",ToolsOzoneTeamListMembers:"tools.ozone.team.listMembers",ToolsOzoneTeamUpdateMember:"tools.ozone.team.updateMember",ToolsOzoneVerificationDefs:"tools.ozone.verification.defs",ToolsOzoneVerificationGrantVerifications:"tools.ozone.verification.grantVerifications",ToolsOzoneVerificationListVerifications:"tools.ozone.verification.listVerifications",ToolsOzoneVerificationRevokeVerifications:"tools.ozone.verification.revokeVerifications"}},847897,(e,t,r)=>{"use strict";
21Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDidError=void 0,r.ensureValidDid=function(e){if(!e.startsWith("did:"))throw new i('DID requires "did:" prefix');if(e.length>2048)throw new i("DID is too long (2048 chars max)");if(e.endsWith(":")||e.endsWith("%"))throw new i('DID can not end with ":" or "%"');if(!/^[a-zA-Z0-9._:%-]*$/.test(e))throw new i("Disallowed characters in DID (ASCII letters, digits, and a couple other characters only)");let{length:t,1:r}=e.split(":");if(t<3)throw new i("DID requires prefix, method, and method-specific content");if(!/^[a-z]+$/.test(r))throw new i("DID method must be lower-case letters")},r.ensureValidDidRegex=function(e){if(!o.test(e))throw new i("DID didn't validate via regex");if(e.length>2048)throw new i("DID is too long (2048 chars max)")},r.isValidDid=function(e){return e.length<=2048&&o.test(e)};let o=/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/;class i extends Error{}r.InvalidDidError=i},315822,(e,t,r)=>{"use strict";function o(e){if(!/^[a-zA-Z0-9.-]*$/.test(e))throw new s("Disallowed characters in handle (ASCII letters, digits, dashes, periods only)");if(e.length>253)throw new s("Handle is too long (253 chars max)");let t=e.split(".");if(t.length<2)throw new s("Handle domain needs at least two parts");for(let e=0;e<t.length;e++){let r=t[e];if(r.length<1)throw new s("Handle parts can not be empty");if(r.length>63)throw new s("Handle part too long (max 63 chars)");if(r.endsWith("-")||r.startsWith("-"))throw new s("Handle parts can not start or end with hyphens");if(e+1===t.length&&!/^[a-zA-Z]/.test(r))throw new s("Handle final component (TLD) must start with ASCII letter")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DisallowedDomainError=r.UnsupportedDomainError=r.ReservedHandleError=r.InvalidHandleError=r.DISALLOWED_TLDS=r.INVALID_HANDLE=void 0,r.ensureValidHandle=o,r.ensureValidHandleRegex=function(e){if(e.length>253)throw new s("Handle is too long (253 chars max)");if(!i.test(e))throw new s("Handle didn't validate via regex")},r.normalizeHandle=n,r.normalizeAndEnsureValidHandle=function(e){let t=n(e);return o(t),t},r.isValidHandle=function(e){return e.length<=253&&i.test(e)},r.isValidTld=function(e){for(let t of r.DISALLOWED_TLDS)if(e.endsWith(t))return!1;return!0}
21,r.INVALID_HANDLE="handle.invalid",r.DISALLOWED_TLDS=[".local",".arpa",".invalid",".localhost",".internal",".example",".alt",".onion"];let i=/^([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 n(e){return e.toLowerCase()}class s extends Error{}r.InvalidHandleError=s,r.ReservedHandleError=class extends Error{},r.UnsupportedDomainError=class extends Error{},r.DisallowedDomainError=class extends Error{}},314040,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtIdentifier=function(e){try{e.startsWith("did:")?(0,o.ensureValidDidRegex)(e):(0,i.ensureValidHandleRegex)(e)}catch(e){throw new i.InvalidHandleError("Invalid DID or handle",{cause:e})}},r.isValidAtIdentifier=function(e){return e.startsWith("did:")?(0,o.isValidDid)(e):(0,i.isValidHandle)(e)};let o=e.r(847897),i=e.r(315822)},971640,(e,t,r)=>{"use strict";function o(e){let t=n(e);if(!t.success)throw new c(t.message);return t.value}function i(e){return a(e).success}function n(e){var t,r,o;if(e.length>317)return{success:!1,message:"NSID is too long (317 chars max)"};if(t=e,!/^[a-zA-Z0-9.-]*$/.test(t))return{success:!1,message:"Disallowed characters in NSID (ASCII letters, digits, dashes, periods only)"};let i=e.split(".");if(i.length<3)return{success:!1,message:"NSID needs at least three parts"};for(let e of i){if(e.length<1)return{success:!1,message:"NSID parts can not be empty"};if(e.length>63)return{success:!1,message:"NSID part too long (max 63 chars)"};if(45===e.charCodeAt(0)||45===(r=e).charCodeAt(r.length-1))return{success:!1,message:"NSID parts can not start or end with hyphen"}}return s(i[0])?{success:!1,message:"NSID first part may not start with a digit"}:!s(o=i[i.length-1])&&!o.includes("-")?{success:!0,value:i}:{success:!1,message:"NSID name part must be only letters and digits (and no leading digit)"}}function s(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function a(e){return e.length>317?{success:!1,message:"NSID is too long (317 chars max)"}:/^[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(e)?{success:!0,value:e}:{success:!1,message:"NSID didn't validate via regex"}}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidNsidError=r.NSID=void 0,r.ensureValidNsid=function(e){let t=n(e);if(!t.success)throw new c(t.message)},r.parseNsid=o,r.isValidNsid=i,r.validateNsid=n,r.ensureValidNsidRegex=function(e){let t=a(e);if(!t.success)throw new c(t.message)},r.validateNsidRegex=a,r.NSID=class e{segments;static parse(t){return new e(t)}static create(t,r){return new e([...t.split(".").reverse(),r].join("."))}static isValid(e){return i(e)}static from(t){return t instanceof e?t:new e(Array.isArray(t)?t.join("."):String(t))}constructor(e){this.segments=o(e)}get authority(){return this.segments.slice(0,this.segments.length-1).reverse().join(".")}get name(){return this.segments.at(this.segments.length-1)}toString(){return this.segments.join(".")}};class c extends Error{}r.InvalidNsidError=c},712845,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtUri=function(e){let t=e.indexOf("#");if(-1!==t){if(47!==e.charCodeAt(t+1))throw Error("ATURI fragment must be non-empty and start with slash");if(e.includes("#",t+1))throw Error('ATURI can have at most one "#", separating fragment out');let r=e.slice(t+1);if(!/^\/[a-zA-Z0-9._~:@!$&')(*+,;=%[\]/-]*$/.test(r))throw Error("Disallowed characters in ATURI fragment (ASCII)")}let r=-1===t?e:e.slice(0,t);if(r.length>8192)throw Error("ATURI is far too long");if(!r.startsWith("at://"))throw Error('ATURI must start with "at://"');if(!/^[a-zA-Z0-9._~:@!$&')(*+,;=%/-]*$/.test(r))throw Error("Disallowed characters in ATURI (ASCII)");let i=r.indexOf("/",5),n=-1===i?r.slice(5):r.slice(5,i);try{(0,o.ensureValidAtIdentifier)(n)}catch(e){throw Error("ATURI authority must be a valid handle or DID",{cause:e})}let a=-1===i?-1:i+1,c=-1===a?-1:r.indexOf("/",a);if(-1!==a){let e=-1===c?r.slice(a):r.slice(a,c);if(0===e.length)throw Error("ATURI can not have a slash after authority without a path segment");
21if(!(0,s.isValidNsid)(e))throw Error("ATURI requires first path segment (if supplied) to be valid NSID")}let l=-1===c?-1:c+1,d=-1===l?-1:r.indexOf("/",l);if(-1!==l&&l===r.length)throw Error("ATURI can not have a slash after collection, unless record key is provided");if(-1!==d)throw Error("ATURI path can have at most two parts, and no trailing slash")},r.ensureValidAtUriRegex=a,r.isValidAtUri=function(e){try{a(e)}catch{return!1}return!0};let o=e.r(314040),i=e.r(847897),n=e.r(315822),s=e.r(971640);function a(e){let t=e.match(/^at:\/\/(?<authority>[a-zA-Z0-9._:%-]+)(\/(?<collection>[a-zA-Z0-9-.]+)(\/(?<rkey>[a-zA-Z0-9._~:@!$&%')(*+,;=-]+))?)?(#(?<fragment>\/[a-zA-Z0-9._~:@!$&%')(*+,;=\-[\]/\\]*))?$/);if(!t||!t.groups)throw Error("ATURI didn't validate via regex");let r=t.groups;try{(0,n.ensureValidHandleRegex)(r.authority)}catch{try{(0,i.ensureValidDidRegex)(r.authority)}catch{throw Error("ATURI authority must be a valid handle or DID")}}if(r.collection&&!(0,s.isValidNsid)(r.collection))throw Error("ATURI collection path segment must be a valid NSID");if(e.length>8192)throw Error("ATURI is far too long")}},901812,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AtUri=r.ATP_URI_REGEX=void 0;let o=e.r(290571),i=e.r(314040),n=e.r(971640);o.__exportStar(e.r(712845),r),r.ATP_URI_REGEX=/^(at:\/\/)?((?:did:[a-z0-9:%-]+)|(?:[a-z0-9][a-z0-9.:-]*))(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;let s=/^(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;function a(e){let t=e.match(r.ATP_URI_REGEX);if(!t)throw Error(`Invalid AT uri: ${e}`);return{host:t[2],hash:t[5],pathname:t[3],searchParams:new URLSearchParams(t[4])}}function c(e){let t=e.match(s);if(!t)throw Error(`Invalid path: ${e}`);return{hash:t[3],pathname:t[1],searchParams:new URLSearchParams(t[2])}}r.AtUri=class e{hash;host;pathname;searchParams;constructor(e,t){const r=void 0!==t?"string"==typeof t?Object.assign(a(t),c(e)):Object.assign({host:t.host},c(e)):a(e);(0,i.ensureValidAtIdentifier)(r.host),this.hash=r.hash??"",this.host=r.host,this.pathname=r.pathname??"",this.searchParams=r.searchParams}static make(t,r,o){let i=t;return r&&(i+="/"+r),o&&(i+="/"+o),new e(i)}get protocol(){return"at:"}get origin(){return`at://${this.host}`}get hostname(){return this.host}set hostname(e){(0,i.ensureValidAtIdentifier)(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]||""}set collection(e){(0,n.ensureValidNsid)(e);let t=this.pathname.split("/").filter(Boolean);t[0]=e,this.pathname=t.join("/")}get rkey(){return this.pathname.split("/").filter(Boolean)[1]||""}set rkey(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||"/";e.startsWith("/")||(e=`/${e}`);let t="";this.searchParams.size&&(t=`?${this.searchParams.toString()}`);let r=this.hash;return r&&!r.startsWith("#")&&(r=`#${r}`),`at://${this.host}${e}${t}${r}`}}},327855,(e,t,r)=>{"use strict";function o(e){let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as ISO 8601");if(t.toISOString().startsWith("-"))throw new s("datetime normalized to a negative time");if(!/^[0-9]{4}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]:[0-6][0-9](.[0-9]{1,20})?(Z|([+-][0-2][0-9]:[0-5][0-9]))$/.test(e))throw new s("datetime didn't validate via regex");if(e.length>64)throw new s("datetime is too long (64 chars max)");if(e.endsWith("-00:00"))throw new s('datetime can not use "-00:00" for UTC timezone');if(e.startsWith("000"))throw new s("datetime so close to year zero not allowed")}function i(e){try{o(e)}catch(e){return!1}return!0}function n(e){if(i(e)){let t=new Date(e).toISOString();if(i(t))return t}if(!/.*(([+-]\d\d:?\d\d)|[a-zA-Z])$/.test(e)){let t=new Date(e+"Z");if(!isNaN(t.getTime())){let e=t.toISOString();if(i(e))return e}}let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as any timestamp format");let r=t.toISOString();if(i(r))return r;
21throw new s("datetime normalized to invalid timestamp string")}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDatetimeError=r.normalizeDatetimeAlways=void 0,r.ensureValidDatetime=o,r.isValidDatetime=i,r.normalizeDatetime=n,r.normalizeDatetimeAlways=e=>{try{return n(e)}catch(e){if(e instanceof s)return new Date(0).toISOString();throw e}};class s extends Error{}r.InvalidDatetimeError=s},639387,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseLanguageString=function(e){let t=e.match(o);if(!t?.groups)return null;let{groups:r}=t;return{grandfathered:r.grandfathered,language:r.language,extlang:r.extlang,script:r.script,region:r.region,variant:r.variant,extension:r.extension,privateUse:r.privateUseA||r.privateUseB}},r.isValidLanguage=function(e){return o.test(e)};let o=/^((?<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|no-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>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>x(-[A-Za-z0-9]{1,8})+))$/},867315,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidRecordKeyError=void 0,r.ensureValidRecordKey=function(e){if(e.length>512||e.length<1)throw new n("record key must be 1 to 512 characters");if(o.has(e))throw new n('record key can not be "." or ".."');if(!i.test(e))throw new n("record key syntax not valid (regex)")},r.isValidRecordKey=function(e){return e.length>=1&&e.length<=512&&i.test(e)&&!o.has(e)};let o=new Set([".",".."]),i=/^[a-zA-Z0-9_~.:-]{1,512}$/;class n extends Error{}r.InvalidRecordKeyError=n},185998,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTidError=void 0,r.ensureValidTid=function(e){if(13!==e.length)throw new i("TID must be 13 characters");if(!o.test(e))throw new i("TID syntax not valid (regex)")},r.isValidTid=function(e){return 13===e.length&&o.test(e)};let o=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/;class i extends Error{}r.InvalidTidError=i},77523,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isValidUri=function(e){return/^\w+:(?:\/\/)?[^\s/][^\s]*$/.test(e)}},950760,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(290571);o.__exportStar(e.r(314040),r),o.__exportStar(e.r(901812),r),o.__exportStar(e.r(327855),r),o.__exportStar(e.r(847897),r),o.__exportStar(e.r(315822),r),o.__exportStar(e.r(971640),r),o.__exportStar(e.r(639387),r),o.__exportStar(e.r(867315),r),o.__exportStar(e.r(185998),r),o.__exportStar(e.r(77523),r)},880384,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},18427,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BSKY_LABELER_DID=void 0,r.BSKY_LABELER_DID="did:plc:ar7c4by46qjdydhdevvrndac"},517097,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.nuxSchema=r.asDid=r.isDid=void 0,r.sanitizeMutedWordValue=function(e){return e.trim().replace(/^#(?!\ufe0f)/,"").replace(/[\r\n\u00AD\u2060\u200D\u200C\u200B]+/,"")},r.savedFeedsToUriArrays=function(e){let t=[],r=[];for(let o of e)o.pinned&&t.push(o.value),r.push(o.value);return{pinned:t,saved:r}},r.getSavedFeedType=function(e){switch(new i.AtUri(e).collection){case"app.bsky.feed.generator":return"feed";case"app.bsky.graph.list":return"list";default:return"unknown"}},r.validateSavedFeed=function(e){if(!e.id)throw Error("Saved feed must have an `id` - use a TID");if(["feed","list"].includes(e.type)){let t=new i.AtUri(e.value),r="app.bsky.feed.generator"===t.collection,o="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&&!o)throw Error(`Saved feed of type 'list' must be a list, got ${t.collection}`)}},r.validateNux=function(e){r.nuxSchema.parse(e)};let o=e.r(589624),i=e.r(950760);r.isDid=e=>"string"==typeof e&&e.startsWith("did:")&&e.includes(":",4)&&e.length>8&&e.length<=2048,r.asDid=e=>{if((0,r.isDid)(e))return e;throw TypeError(`Invalid DID: ${e}`)},r.nuxSchema=o.z.object({id:o.z.string().max(64),completed:o.z.boolean(),data:o.z.string().max(300).optional(),expiresAt:o.z.string().datetime().optional()}).strict()},679813,191602,925633,e=>{"use strict";function t(e,r,o){r=r||[];for(var i=o=o||0;e>=0x80000000;)r[o++]=255&e|128,e/=128;for(;-128&e;)r[o++]=255&e|128,e>>>=7;return r[o]=0|e,t.bytes=o-i+1,r}function r(e,t){var o,i=0,t=t||0,n=0,s=t,a=e.length;do{if(s>=a)throw r.bytes=0,RangeError("Could not decode varint");o=e[s++],i+=n<28?(127&o)<<n:(127&o)*Math.pow(2,n),n+=7}while(o>=128)return r.bytes=s-t,i}let o=(e,t=0)=>[r(e,t),r.bytes],i=(e,r,o=0)=>(t(e,r,o),r),n=e=>{var t;return(t=e)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:t<0x800000000?5:t<0x40000000000?6:t<0x2000000000000?7:t<0x100000000000000?8:t<0x8000000000000000?9:10};e.s(["decode",0,o,"encodeTo",0,i,"encodingLength",0,n],679813),new Uint8Array(0);let s=(e,t)=>{if(e===t)return!0;
21if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},a=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};e.s(["coerce",0,a,"equals",0,s],191602);class c{constructor(e,t,r,o){this.code=e,this.size=t,this.digest=r,this.bytes=o}}e.s(["Digest",0,c,"create",0,(e,t)=>{let r=t.byteLength,o=n(e),s=o+n(r),a=new Uint8Array(s+r);return i(e,a,0),i(r,a,o),a.set(t,s),new c(e,r,t,a)},"decode",0,e=>{let t=a(e),[r,i]=o(t),[n,s]=o(t.subarray(i)),l=t.subarray(i+s);if(l.byteLength!==n)throw Error("Incorrect length");return new c(r,n,l,t)},"equals",0,(e,t)=>e===t||e.code===t.code&&e.size===t.size&&s(e.bytes,t.bytes)],925633)},478737,e=>{"use strict";var t=e.i(679813),r=e.i(925633);let o=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),o=0;o<r.length;o++)r[o]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),s=n.charCodeAt(0);if(255!==r[s])throw TypeError(n+" is ambiguous");r[s]=i}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function p(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var o=0,i=0;e[t]===c;)o++,t++;for(var n=(e.length-t)*l+1>>>0,s=new Uint8Array(n);e[t];){var d=r[e.charCodeAt(t)];if(255===d)return;for(var p=0,u=n-1;(0!==d||p<i)&&-1!==u;u--,p++)d+=a*s[u]>>>0,s[u]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");i=p,t++}if(" "!==e[t]){for(var f=n-i;f!==n&&0===s[f];)f++;for(var h=new Uint8Array(o+(n-f)),m=o;f!==n;)h[m++]=s[f++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,o=0,i=0,n=t.length;i!==n&&0===t[i];)i++,r++;for(var s=(n-i)*d+1>>>0,l=new Uint8Array(s);i!==n;){for(var p=t[i],u=0,f=s-1;(0!==p||u<o)&&-1!==f;f--,u++)p+=256*l[f]>>>0,l[f]=p%a>>>0,p=p/a>>>0;if(0!==p)throw Error("Non-zero carry");o=u,i++}for(var h=s-o;h!==s&&0===l[h];)h++;for(var m=c.repeat(r);h<s;++h)m+=e.charAt(l[h]);return m},decodeUnsafe:p,decode:function(e){var r=p(e);if(r)return r;throw Error(`Non-${t} character`)}}};var i=e.i(191602);class n{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class s{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return c(this,e)}}class a{constructor(e){this.decoders=e}or(e){return c(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let c=(e,t)=>new a({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class l{constructor(e,t,r,o){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=o,this.encoder=new n(e,t,r),this.decoder=new s(e,t,o)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let d=({name:e,prefix:t,encode:r,decode:o})=>new l(e,t,r,o),p=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:s}=o(r,t);return d({prefix:e,name:t,encode:n,decode:e=>(0,i.coerce)(s(e))})},u=({name:e,prefix:t,bitsPerChar:r,alphabet:o})=>d({prefix:t,name:e,encode:e=>((e,t,r)=>{let o="="===t[t.length-1],i=(1<<r)-1,n="",s=0,a=0;for(let o=0;o<e.length;++o)for(a=a<<8|e[o],s+=8;s>r;)s-=r,n+=t[i&a>>s];if(s&&(n+=t[i&a<<r-s]),o)for(;n.length*r&7;)n+="=";return n})(e,o,r),decode:t=>((e,t,r,o)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let n=e.length;for(;"="===e[n-1];)--n;let s=new Uint8Array(n*r/8|0),a=0,c=0,l=0;for(let t=0;t<n;++t){let n=i[e[t]];if(void 0===n)throw SyntaxError(`Non-${o} character`);c=c<<r|n,(a+=r)>=8&&(a-=8,s[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,o,r,e)}),f=p({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"});p({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});let h=u({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5});u({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),u({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),u({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),u({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),u({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),u({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),u({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});
21class m{constructor(e,t,r,o){this.code=t,this.version=e,this.multihash=r,this.bytes=o,this.byteOffset=o.byteOffset,this.byteLength=o.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:S,byteLength:S,code:A,version:A,multihash:A,bytes:A,_baseCache:S,asCID:S})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==v)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==w)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return m.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,o=r.create(e,t);return m.createV1(this.code,o)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&r.equals(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:o}=this;return 0===r?g(t,o,e||f.encoder):b(t,o,e||h.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return E(/^0\.0/,_),!!(e&&(e[x]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof m)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:o,bytes:i}=e;return new m(t,r,o,i||k(t,r,o.bytes))}if(null==e||!0!==e[x])return null;{let{version:t,multihash:o,code:i}=e,n=r.decode(o);return m.create(t,i,n)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===v)return new m(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${v}) block encoding`);case 1:{let o=k(e,t,r.bytes);return new m(e,t,r,o)}default:throw Error("Invalid version")}}static createV0(e){return m.create(0,v,e)}static createV1(e,t){return m.create(1,e,t)}static decode(e){let[t,r]=m.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=m.inspectBytes(e),o=t.size-t.multihashSize,n=(0,i.coerce)(e.subarray(o,o+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let s=n.subarray(t.multihashSize-t.digestSize),a=new r.Digest(t.multihashCode,t.digestSize,s,n);return[0===t.version?m.createV0(a):m.createV1(t.codec,a),e.subarray(t.size)]}static inspectBytes(e){let r=0,o=()=>{let[o,i]=t.decode(e.subarray(r));return r+=i,o},i=o(),n=v;if(18===i?(i=0,r=0):1===i&&(n=o()),0!==i&&1!==i)throw RangeError(`Invalid CID version ${i}`);let s=r,a=o(),c=o(),l=r+c;return{version:i,codec:n,multihashCode:a,digestSize:c,multihashSize:l-s,size:l}}static parse(e,t){let[r,o]=y(e,t),i=m.decode(o);return i._baseCache.set(r,e),i}}let y=(e,t)=>{switch(e[0]){case"Q":{let r=t||f;return[f.prefix,r.decode(`${f.prefix}${e}`)]}case f.prefix:{let r=t||f;return[f.prefix,r.decode(e)]}case h.prefix:{let r=t||h;return[h.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},g=(e,t,r)=>{let{prefix:o}=r;if(o!==f.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(o);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(o,i),i}},b=(e,t,r)=>{let{prefix:o}=r,i=t.get(o);if(null!=i)return i;{let i=r.encode(e);return t.set(o,i),i}},v=112,w=18,k=(e,r,o)=>{let i=t.encodingLength(e),n=i+t.encodingLength(r),s=new Uint8Array(n+o.byteLength);return t.encodeTo(e,s,0),t.encodeTo(r,s,i),s.set(o,n),s},x=Symbol.for("@ipld/js-cid/CID"),A={writable:!1,configurable:!1,enumerable:!0},S={writable:!1,enumerable:!1,configurable:!1},E=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},_=`CID.isCID(v) is deprecated and will be removed in the next major release. 22Following code pattern: 23 24if (CID.isCID(value)) { 25 doSomethingWithCID(value) 26} 27 28Is replaced with: 29 30const cid = CID.asCID(value) 31if (cid) { 32 // Make sure to use cid instead of value 33 doSomethingWithCID(cid) 34} 35`;e.s(["CID",0,m],478737)},891596,e=>{"use strict";var t=e.i(925633);let r=({name:e,code:t,encode:r})=>new o(e,t,r);
35class o{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let r=this.encode(e);return r instanceof Uint8Array?t.create(this.code,r):r.then(e=>t.create(this.code,e))}throw Error("Unknown type, must be binary type")}}let i=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),n=r({name:"sha2-256",code:18,encode:i("SHA-256")}),s=r({name:"sha2-512",code:19,encode:i("SHA-512")});e.s(["sha256",0,n,"sha512",0,s],891596)},941936,(e,t,r)=>{"use strict";function o(e){return null!=e&&"object"==typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=o,r.isPlainObject=function(e){return o(e)&&s(e)},r.isPlainProto=s;let i=Object.prototype,n=Object.prototype.toString;function s(e){let t=Object.getPrototypeOf(e);return null===t||(t===i||null===Object.getPrototypeOf(t))&&"[object Object]"===n.call(e)}},338705,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NodeJSBuffer=void 0;let o="Bu"+"f".repeat(2)+"er";r.NodeJSBuffer=globalThis?.[o]?.prototype instanceof Uint8Array&&"byteLength"in globalThis[o]?globalThis[o]:null},659858,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ui8ConcatNode=void 0,r.ui8ConcatPonyfill=function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),o=0;for(let t of e)r.set(t,o),o+=t.length;return r};let o=e.r(338705).NodeJSBuffer;r.ui8ConcatNode=o?function(e){return o.concat(e)}:null},643448,e=>{"use strict";let t=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),o=0;o<r.length;o++)r[o]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),s=n.charCodeAt(0);if(255!==r[s])throw TypeError(n+" is ambiguous");r[s]=i}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function p(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var o=0,i=0;e[t]===c;)o++,t++;for(var n=(e.length-t)*l+1>>>0,s=new Uint8Array(n);e[t];){var d=r[e.charCodeAt(t)];if(255===d)return;for(var p=0,u=n-1;(0!==d||p<i)&&-1!==u;u--,p++)d+=a*s[u]>>>0,s[u]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");i=p,t++}if(" "!==e[t]){for(var f=n-i;f!==n&&0===s[f];)f++;for(var h=new Uint8Array(o+(n-f)),m=o;f!==n;)h[m++]=s[f++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,o=0,i=0,n=t.length;i!==n&&0===t[i];)i++,r++;for(var s=(n-i)*d+1>>>0,l=new Uint8Array(s);i!==n;){for(var p=t[i],u=0,f=s-1;(0!==p||u<o)&&-1!==f;f--,u++)p+=256*l[f]>>>0,l[f]=p%a>>>0,p=p/a>>>0;if(0!==p)throw Error("Non-zero carry");o=u,i++}for(var h=s-o;h!==s&&0===l[h];)h++;for(var m=c.repeat(r);h<s;++h)m+=e.charAt(l[h]);return m},decodeUnsafe:p,decode:function(e){var r=p(e);if(r)return r;throw Error(`Non-${t} character`)}}},r=new Uint8Array(0),o=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},i=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")},n=e=>new TextEncoder().encode(e),s=e=>new TextDecoder().decode(e);e.s(["coerce",0,i,"empty",0,r,"equals",0,o,"fromHex",0,e=>{let t=e.match(/../g);return t?new Uint8Array(t.map(e=>parseInt(e,16))):r},"fromString",0,n,"isBinary",0,e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),"toHex",0,e=>e.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),"toString",0,s],748225);class a{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class c{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name}
35 decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return d(this,e)}}class l{constructor(e){this.decoders=e}or(e){return d(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let d=(e,t)=>new l({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class p{constructor(e,t,r,o){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=o,this.encoder=new a(e,t,r),this.decoder=new c(e,t,o)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let u=({name:e,prefix:t,encode:r,decode:o})=>new p(e,t,r,o),f=({prefix:e,name:r,alphabet:o})=>{let{encode:n,decode:s}=t(o,r);return u({prefix:e,name:r,encode:n,decode:e=>i(s(e))})},h=({name:e,prefix:t,bitsPerChar:r,alphabet:o})=>u({prefix:t,name:e,encode:e=>((e,t,r)=>{let o="="===t[t.length-1],i=(1<<r)-1,n="",s=0,a=0;for(let o=0;o<e.length;++o)for(a=a<<8|e[o],s+=8;s>r;)s-=r,n+=t[i&a>>s];if(s&&(n+=t[i&a<<r-s]),o)for(;n.length*r&7;)n+="=";return n})(e,o,r),decode:t=>((e,t,r,o)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let n=e.length;for(;"="===e[n-1];)--n;let s=new Uint8Array(n*r/8|0),a=0,c=0,l=0;for(let t=0;t<n;++t){let n=i[e[t]];if(void 0===n)throw SyntaxError(`Non-${o} character`);c=c<<r|n,(a+=r)>=8&&(a-=8,s[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,o,r,e)}),m=u({prefix:"\0",name:"identity",encode:e=>s(e),decode:e=>n(e)});e.s(["identity",0,m],955087);var y=e.i(955087);let g=h({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});e.s(["base2",0,g],16731);var b=e.i(16731);let v=h({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});e.s(["base8",0,v],225129);var w=e.i(225129);let k=f({prefix:"9",name:"base10",alphabet:"0123456789"});e.s(["base10",0,k],537694);var x=e.i(537694);let A=h({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),S=h({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});e.s(["base16",0,A,"base16upper",0,S],176824);var E=e.i(176824);let _=h({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),C=h({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),R=h({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),P=h({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),j=h({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),I=h({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),T=h({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O=h({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),D=h({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});e.s(["base32",0,_,"base32hex",0,j,"base32hexpad",0,T,"base32hexpadupper",0,O,"base32hexupper",0,I,"base32pad",0,R,"base32padupper",0,P,"base32upper",0,C,"base32z",0,D],810675);var M=e.i(810675);let L=f({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),B=f({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});e.s(["base36",0,L,"base36upper",0,B],90461);var z=e.i(90461);let q=f({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),V=f({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});e.s(["base58btc",0,q,"base58flickr",0,V],680592);var N=e.i(680592);let U=h({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),F=h({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),$=h({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),G=h({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});e.s(["base64",0,U,"base64pad",0,F,"base64url",0,$,"base64urlpad",0,G],926793);var H=e.i(926793);let Z=Array.from("ððªâð°ðððððððððððððâð»ð¥ð¾ð¿ðâ¤ðð¤£ððððððð
ððð¥ð¥°ðððð¢ð¤ðððªðâºðð¤ððððð¹ð¤¦ððââ¨ð¤·ð±ðð¸ððððððððð¤©ððð¤ðð¯ðð
35ð¶ðð¤â£ððððªðð¥ððð©ð¡ð¤ªðð¥³ð¥ð¤¤ððð³âððð´ðð¬ððð·ð»ðââ
ð¥ºððð¤ð¦âð£ððâ¹ððð âððºðð»ððððð¹ð£ð«ðððµð¤ðð´ð¤ð¼ð«â½ð¤âðð¤«ðð®ðð»ðð¶ðð²ð¿ð§¡ðâ¡ððââðð°ð¤¨ð¶ð¤ð¶ð°ðð¢ð¤ðð¨ð¨ð¤¬âððºð¤ððð±ðð¶ð¥´â¶â¡âðð¸â¬ð¨ðð¦ð·ðºâ ð
ððµðð¤²ð¤ ð¤§ððµð
ð§ð¾ððð¤ðð¤¯ð·âð§ð¯ððð¤ððâð´ð£ð¸ððð¥ð¤¢ð
ð¡ð©ðð¸ð»ð¤ð¤®ð¼ð¥µð©ððð¼ðð£ð¥"),K=Z.reduce((e,t,r)=>(e[r]=t,e),[]),W=Z.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),X=u({prefix:"ð",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=K[t],"")},decode:function(e){let t=[];for(let r of e){let e=W[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});e.s(["base256emoji",0,X],467739);var J=e.i(467739);function Q(e,t,r){t=t||[];for(var o=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,Q.bytes=r-o+1,t}function Y(e,t){var r,o=0,t=t||0,i=0,n=t,s=e.length;do{if(n>=s)throw Y.bytes=0,RangeError("Could not decode varint");r=e[n++],o+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128)return Y.bytes=n-t,o}let ee=(e,t=0)=>[Y(e,t),Y.bytes],et=(e,t,r=0)=>(Q(e,t,r),t),er=e=>{var t;return(t=e)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:t<0x800000000?5:t<0x40000000000?6:t<0x2000000000000?7:t<0x100000000000000?8:t<0x8000000000000000?9:10};e.s(["decode",0,ee,"encodeTo",0,et,"encodingLength",0,er],621686);let eo=(e,t)=>{let r=t.byteLength,o=er(e),i=o+er(r),n=new Uint8Array(i+r);return et(e,n,0),et(r,n,o),n.set(t,i),new ei(e,r,t,n)};class ei{constructor(e,t,r,o){this.code=e,this.size=t,this.digest=r,this.bytes=o}}e.s(["Digest",0,ei,"create",0,eo,"decode",0,e=>{let t=i(e),[r,o]=ee(t),[n,s]=ee(t.subarray(o)),a=t.subarray(o+s);if(a.byteLength!==n)throw Error("Incorrect length");return new ei(r,n,a,t)},"equals",0,(e,t)=>e===t||e.code===t.code&&e.size===t.size&&o(e.bytes,t.bytes)],865712);let en=({name:e,code:t,encode:r})=>new es(e,t,r);class es{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?eo(this.code,t):t.then(e=>eo(this.code,e))}throw Error("Unknown type, must be binary type")}}e.s(["Hasher",0,es,"from",0,en],793083);let ea=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ec=en({name:"sha2-256",code:18,encode:ea("SHA-256")}),el=en({name:"sha2-512",code:19,encode:ea("SHA-512")});e.s(["sha256",0,ec,"sha512",0,el],592591);var ed=e.i(592591);e.s(["identity",0,{code:0,name:"identity",encode:i,digest:e=>eo(0,i(e))}],661351);var ep=e.i(661351);e.s(["code",0,85,"decode",0,e=>i(e),"encode",0,e=>i(e),"name",0,"raw"],937913),e.i(937913);let eu=new TextEncoder,ef=new TextDecoder;e.s(["code",0,512,"decode",0,e=>JSON.parse(ef.decode(e)),"encode",0,e=>eu.encode(JSON.stringify(e)),"name",0,"json"],225515),e.i(225515),Symbol.for("nodejs.util.inspect.custom"),Symbol.for("@ipld/js-cid/CID"),e.i(621686),e.i(748225),e.i(793083),e.i(865712);let eh={...y,...b,...w,...x,...E,...M,...z,...N,...H,...J};function em(e,t,r,o){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:o}}}({...ed,...ep});let ey=em("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),eg=em("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=new Uint8Array((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),eb={utf8:ey,"utf-8":ey,hex:eh.base16,latin1:eg,ascii:eg,binary:eg,...eh};e.s(["default",0,eb],643448)},120483,e=>{"use strict";var t=e.i(643448);e.s(["fromString",0,function(e,r="utf8"){let o=t.default[r];if(!o)throw Error(`Unsupported encoding "${r}"`);return o.decoder.decode(`${o.prefix}${e}`)}])},762055,(e,t,r)=>{"use strict";
35Object.defineProperty(r,"__esModule",{value:!0}),r.fromBase64Node=r.fromBase64Native=void 0,r.fromBase64Ponyfill=function(e,t="base64"){let r=(0,o.fromString)(e,e.endsWith("=")?`${t}pad`:t);return n(e,r),r};let o=e.r(120483),i=e.r(338705).NodeJSBuffer;function n(e,t){let r=e.endsWith("==")?2:+!!e.endsWith("="),o=Math.floor(3*(e.length-r)/4);if(t.length!==o)throw Error("Invalid base64 string");let i=t.length/3*4;if(e.length>i+(i%4==0?0:4-i%4))throw Error("Invalid base64 string");for(let t=Math.ceil(i);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")}}r.fromBase64Native="function"==typeof Uint8Array.fromBase64?function(e,t="base64"){return Uint8Array.fromBase64(e,{alphabet:t,lastChunkHandling:"loose"})}:null,r.fromBase64Node=i?function(e,t="base64"){let r=i.from(e,t);return n(e,r),new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}:null},773912,e=>{"use strict";var t=e.i(643448);e.s(["toString",0,function(e,r="utf8"){let o=t.default[r];if(!o)throw Error(`Unsupported encoding "${r}"`);return o.encoder.encode(e).substring(1)}])},285187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toBase64Node=r.toBase64Native=void 0,r.toBase64Ponyfill=function(e,t="base64"){return(0,o.toString)(e,t)};let o=e.r(773912),i=e.r(338705).NodeJSBuffer;r.toBase64Native="function"==typeof Uint8Array.prototype.toBase64?function(e,t="base64"){return e.toBase64({alphabet:t,omitPadding:!0})}:null,r.toBase64Node=i?function(e,t="base64"){let r=(e instanceof i?e:i.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},536654,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ui8Concat=r.fromBase64=r.toBase64=void 0,r.ifUint8Array=function(e){if(e instanceof Uint8Array)return e},r.asUint8Array=function(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):e instanceof ArrayBuffer?new Uint8Array(e):void 0},r.ui8Equals=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};let o=e.r(659858),i=e.r(762055),n=e.r(285187);r.toBase64=n.toBase64Native??n.toBase64Node??n.toBase64Ponyfill,r.fromBase64=i.fromBase64Native??i.fromBase64Node??i.fromBase64Ponyfill,r.toBase64===n.toBase64Ponyfill||(r.fromBase64,i.fromBase64Ponyfill),r.ui8Concat=o.ui8ConcatNode??o.ui8ConcatPonyfill},259917,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CID=r.SHA512_MULTIHASH=r.SHA256_MULTIHASH=r.RAW_MULTICODEC=r.DAG_CBOR_MULTICODEC=void 0,r.multihashEquals=c,r.asMultiformatsCID=function(e){return o.CID.asCID(e)??o.CID.create(e.version,e.code,(0,i.create)(e.multihash.code,e.multihash.digest))},r.isRawCid=l,r.isDaslCid=d,r.isCborCid=p,r.checkCid=u,r.isCid=function(e,t){return k(e)&&u(e,t)},r.ifCid=function(e,t){return k(e)&&u(e,t)?e:null},r.asCid=f,r.decodeCid=function(e,t){return f(o.CID.decode(e),t)},r.parseCid=h,r.validateCidString=m,r.parseCidSafe=y,r.ensureValidCidString=function(e,t){if(!m(e,t))throw Error("Invalid CID string")},r.isCidForBytes=g,r.createCid=b,r.cidForCbor=v,r.cidForRawBytes=w,r.cidForRawHash=function(e){if(32!==e.length)throw Error(`Invalid SHA-256 hash length: ${e.length}`);return b(r.RAW_MULTICODEC,n.sha256.code,e)};let o=e.r(478737);Object.defineProperty(r,"CID",{enumerable:!0,get:function(){return o.CID}});let i=e.r(925633),n=e.r(891596),s=e.r(941936),a=e.r(536654);function c(e,t){return e.code===t.code&&(0,a.ui8Equals)(e.digest,t.digest)}function l(e){return 1===e.version&&e.code===r.RAW_MULTICODEC}function d(e){return 1===e.version&&(e.code===r.RAW_MULTICODEC||e.code===r.DAG_CBOR_MULTICODEC)&&e.multihash.code===r.SHA256_MULTIHASH&&32===e.multihash.digest.byteLength}function p(e){return e.code===r.DAG_CBOR_MULTICODEC&&d(e)}function u(e,t){switch(t?.flavor){case void 0:return!0;case"cbor":return p(e);case"dasl":return d(e);case"raw":return l(e);default:throw TypeError(`Unknown CID flavor: ${t?.flavor}`)}}function f(e,t){if(k(e)&&u(e,t))return e;throw Error("Not a valid CID")}function h(e,t){return f(o.CID.parse(e),t)}function m(e,t){return y(e,t)?.toString()===e}function y(e,t){try{return h(e,t)}catch{return null}}async function g(e,t){if(e.multihash.code===n.sha256.code)return c(await n.sha256.digest(t),e.multihash);if(e.multihash.code===n.sha512.code)return c(await n.sha512.digest(t),e.multihash);throw Error("Unsupported CID multihash")}function b(e,t,r){return o.CID.createV1(e,(0,i.create)(t,r))}async function v(e){let t=await n.sha256.digest(e);return o.CID.createV1(r.DAG_CBOR_MULTICODEC,t)}async function w(e){let t=await n.sha256.digest(e);return o.CID.createV1(r.RAW_MULTICODEC,t)}function k(e){if(o.CID.asCID(e))return null!=e.bytes;try{if(!(0,s.isObject)(e)||0!==e.version&&1!==e.version||!x(e.code)||!(0,s.isObject)(e.multihash))return!1;let t=e.multihash;if(!x(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||!(0,a.ui8Equals)(e.bytes.subarray(4),t.digest)||"function"!=typeof e.equals||!0!==e.equals(e))return!1;return!0}catch{return!1}}function x(e){return Number.isInteger(e)&&e>=0&&e<256}r.DAG_CBOR_MULTICODEC=113,r.RAW_MULTICODEC=85,r.SHA256_MULTIHASH=n.sha256.code,r.SHA512_MULTIHASH=n.sha512.code},506187,(e,t,r)=>{"use strict";
35Object.defineProperty(r,"__esModule",{value:!0}),r.isBlobRef=n,r.isLegacyBlobRef=s,r.enumBlobRefs=function*(e,t){let r=t?.allowLegacy===!0,o=[e],a=new Set;do{let e=o.pop();if(null!=e&&"object"==typeof e){if(Array.isArray(e)){if(a.has(e))continue;a.add(e),o.push(...e)}else if((0,i.isPlainProto)(e)){if(a.has(e))continue;if(a.add(e),n(e,t))yield e;else if(r&&s(e))yield e;else for(let t of Object.values(e))null!=t&&o.push(t)}}}while(o.length>0)a.clear()};let o=e.r(259917),i=e.r(941936);function n(e,t){if(!(0,i.isPlainObject)(e)||e?.$type!=="blob")return!1;let{mimeType:r,size:n,ref:s}=e;if("string"!=typeof r||!r.includes("/")||"number"!=typeof n||n<0||!Number.isSafeInteger(n)||"object"!=typeof s||null===s)return!1;for(let t in e)if("$type"!==t&&"mimeType"!==t&&"ref"!==t&&"size"!==t)return!1;return!!(0,o.ifCid)(s,t?.strict===!1?void 0:{flavor:"raw"})}function s(e){if(!(0,i.isPlainObject)(e))return!1;let{cid:t,mimeType:r}=e;if("string"!=typeof t||"string"!=typeof r||0===r.length)return!1;for(let t in e)if("cid"!==t&&"mimeType"!==t)return!1;return!!(0,o.validateCidString)(t)}},951829,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.lexEquals=function e(t,r){if(Object.is(t,r))return!0;if(null==t||null==r||"object"!=typeof t||"object"!=typeof r)return!1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(let o=0;o<t.length;o++)if(!e(t[o],r[o]))return!1;return!0}if(Array.isArray(r))return!1;if(ArrayBuffer.isView(t))return!!ArrayBuffer.isView(r)&&(0,n.ui8Equals)(t,r);if(ArrayBuffer.isView(r))return!1;if((0,o.isCid)(t))return(0,o.ifCid)(r)?.equals(t)===!0;if((0,o.isCid)(r))return!1;if(!(0,i.isPlainObject)(t)||!(0,i.isPlainObject)(r))throw TypeError("Invalid LexValue (expected CID, Uint8Array, or LexMap)");let s=Object.keys(t),a=Object.keys(r);if(s.length!==a.length)return!1;for(let o of s){let i=t[o],n=r[o];if(void 0===i){if(void 0===n&&a.includes(o))continue;return!1}if(void 0===n||!e(i,n))return!1}return!0};let o=e.r(259917),i=e.r(941936),n=e.r(536654)},462560,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LexError=void 0,r.LexError=class extends Error{error;name="LexError";constructor(e,t,r){super(t,r),this.error=e}toString(){return`${this.name}: [${this.error}] ${this.message}`}toJSON(){let{error:e,message:t}=this;return{error:e,message:t||void 0}}toResponse(){return Response.json(this.toJSON(),{status:400})}}},276754,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isLexMap=n,r.isLexArray=function(e){return Array.isArray(e)&&e.every(s)},r.isLexScalar=function(e){switch(typeof e){case"object":return null===e||e instanceof Uint8Array||(0,o.isCid)(e);case"string":case"boolean":return!0;case"number":if(Number.isInteger(e))return!0;default:return!1}},r.isLexValue=s,r.isTypedLexMap=function(e){return n(e)&&"string"==typeof e.$type&&e.$type.length>0};let o=e.r(259917),i=e.r(941936);function n(e){return(0,i.isPlainObject)(e)&&Object.values(e).every(s)}function s(e){let t=[e],r=new Set;do{let e=t.pop();switch(typeof e){case"object":if(null===e);else if((0,i.isPlainProto)(e)){if(r.has(e))return!1;r.add(e),t.push(...Object.values(e))}else if(Array.isArray(e)){if(r.has(e))return!1;r.add(e),t.push(...e)}else if(!(e instanceof Uint8Array||(0,o.isCid)(e)))return!1;break;case"string":case"boolean":break;case"number":if(Number.isInteger(e))break;default:return!1}}while(t.length>0)return r.clear(),!0}},236399,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.utf8FromBase64Node=void 0,r.utf8FromBase64Ponyfill=function(e,t){let r=(0,o.fromString)(e,t);return n.decode(r)};let o=e.r(120483),i=e.r(338705).NodeJSBuffer;r.utf8FromBase64Node=i?function(e,t="base64"){return i.from(e,t).toString("utf8")}:null;let n=new TextDecoder},947025,(e,t,r)=>{"use strict";r.decodeUnicodeData=function(e,t=""){let r=[],o=e.split(",").map(e=>e?parseInt(e,36):0),i=0;for(let e=0;e<o.length;e++)e%2?r.push([i,i+o[e],t?parseInt(t[e>>1],36):0]):i=o[e];return r},r.findUnicodeRangeIndex=function(e,t,r=0,o=t.length-1){for(;r<=o;){let i=r+o>>>1,n=t[i];if(e<n[0])o=i-1;else{if(!(e>n[1]))return i;r=i+1}}return -1}},620096,(e,t,r)=>{"use strict";r.grapheme_ranges=r.GraphemeCategory=void 0;var o=e.r(947025);r.GraphemeCategory={Any:0,CR:1,Control:2,Extend:3,Extended_Pictographic:4,L:5,LF:6,LV:7,LVT:8,Prepend:9,Regional_Indicator:10,SpacingMark:11,T:12,V:13,ZWJ:14},r.grapheme_ranges=(0,o.decodeUnicodeData)(",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,
351hz9,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")},990247,(e,t,r)=>{"use strict";r.consonant_ranges=void 0,r.consonant_ranges=(0,e.r(947025).decodeUnicodeData)("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")},692432,(e,t,r)=>{"use strict";r.countGrapheme=r.countGraphemes=function(e){let t=0;for(let r of s(e))t+=1;return t},r.graphemeSegments=s,r.splitGraphemes=function*(e){for(let t of s(e))yield t.segment};var o=e.r(947025),i=e.r(620096);r.GraphemeCategory=i.GraphemeCategory;var n=e.r(990247);function*s(e){let t=e.codePointAt(0);if(null==t)return;let r=t<=65535?1:2,o=e.length,i=d(t),n=0,s=0,a=!1,c=!1,l=!1,u=0,f=i,h=t;for(;r<o;){n=d(t=e.codePointAt(r));let o=!0;1===i?o=6!==n:2===i||6===i||1===n||2===n||6===n?o=!0:3===n||14===n||11===n||9===i?o=!1:14===i&&4===n?o=!a:10===i&&10===n?o=s++%2==1:5===i?o=5!==n&&13!==n&&7!==n&&8!==n:(7===i||13===i)&&(13===n||12===n)||(8===i||12===i)&&12===n?o=!1:0===n&&c&&l&&p(t)&&(o=!1),o?(yield{segment:e.slice(u,r),index:u,input:e,_hd:h,_catBegin:f,_catEnd:i},a=!1,s=0,u=r,f=n,h=t):14===n&&(3===i||4===i)?a=!0:t>=2325&&(c||0!==i||(c=p(h)),l=!!c&&3===n&&(l||2381===t||2509===t||2637===t||2765===t||2893===t||3149===t||3405===t)),r+=t<=65535?1:2,i=n}u<o&&(yield{segment:e.slice(u),index:u,input:e,_hd:h,_catBegin:f,_catEnd:i})}let a=new Uint8Array(6080),c=new Uint8Array(1536),l=(()=>{let e=0;for(;;){let[t,r,o]=i.grapheme_ranges[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=a,r=e-128>>1):(t=c,r=e-40960>>1),t[r]=1&e?15&t[r]|o<<4:240&t[r]|o}}return e})();function d(e){if(e<128)return e>=32?0:10===e?6:13===e?1:2;if(e<=12287){let t=a[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=c[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=(0,o.findUnicodeRangeIndex)(e,i.grapheme_ranges,l);return t<0?0:i.grapheme_ranges[t][2]}function p(e){return(0,o.findUnicodeRangeIndex)(e,n.consonant_ranges)>=0}
35},470868,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.graphemeLenNative=void 0,r.graphemeLenPonyfill=function(e){return(0,o.countGraphemes)(e)};let o=e.r(692432),i="Segmenter"in Intl&&"function"==typeof Intl.Segmenter?new Intl.Segmenter:null;r.graphemeLenNative=i?function(e){let t=0;for(let r of i.segment(e))t++;return t}:null},86519,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.utf8LenNode=void 0,r.utf8LenCompute=function(e){let t,r=e.length;for(let o=0;o<e.length;o+=1)(t=e.charCodeAt(o))<=127||(t<=2047?r+=1:(r+=2,t>=55296&&t<=56319&&(t=e.charCodeAt(o+1))>=56320&&t<=57343&&o++));return r};let o=e.r(338705);r.utf8LenNode=o.NodeJSBuffer?function(e){return o.NodeJSBuffer.byteLength(e,"utf8")}:null},208921,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.utf8ToBase64Node=void 0,r.utf8ToBase64Ponyfill=function(e,t){let r=a.encode(e);return(0,o.toString)(r,t)};let o=e.r(773912),i=e.r(338705),n=e.r(285187),s=i.NodeJSBuffer;r.utf8ToBase64Node=s?function(e,t){let r=s.from(e,"utf8");return n.toBase64Node(r,t)}:null;let a=new TextEncoder},702370,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.utf8FromBase64=r.utf8ToBase64=r.utf8Len=r.graphemeLen=void 0;let o=e.r(236399),i=e.r(470868),n=e.r(86519),s=e.r(208921);r.graphemeLen=i.graphemeLenNative??i.graphemeLenPonyfill,r.graphemeLen,i.graphemeLenPonyfill,r.utf8Len=n.utf8LenNode??n.utf8LenCompute,r.utf8ToBase64=s.utf8ToBase64Node??s.utf8ToBase64Ponyfill,r.utf8FromBase64=o.utf8FromBase64Node??o.utf8FromBase64Ponyfill},61500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(290571);o.__exportStar(e.r(506187),r),o.__exportStar(e.r(259917),r),o.__exportStar(e.r(951829),r),o.__exportStar(e.r(462560),r),o.__exportStar(e.r(276754),r),o.__exportStar(e.r(941936),r),o.__exportStar(e.r(536654),r),o.__exportStar(e.r(702370),r)},381273,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseLexBytes=function(e){if(e&&"$bytes"in e){for(let t in e)if("$bytes"!==t)return;if("string"!=typeof e.$bytes)throw TypeError("$bytes must be a base64-encoded string");return(0,o.fromBase64)(e.$bytes)}},r.encodeLexBytes=function(e){return{$bytes:(0,o.toBase64)(e)}};let o=e.r(61500)},51654,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},454488,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseLexLink=function(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)throw TypeError("$link must be a base32-encoded CID string");if(0===r.length)throw TypeError("CID string in $link cannot be empty");if(r.length>2048)throw TypeError("CID string in $link is too long");try{return(0,o.parseCid)(r,t)}catch(e){throw TypeError("Invalid CID string in $link",{cause:e})}},r.encodeLexLink=function(e){return{$link:e.toString()}};let o=e.r(61500)},187214,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseBlobRef=function(e,t){if("blob"!==e.$type)return;let r=e?.ref;if(r&&"object"==typeof r){if("$link"in r){let n=(0,i.parseLexLink)(r);if(!n)return;let s={...e,ref:n};if((0,o.isBlobRef)(s,t))return s}if((0,o.isBlobRef)(e))return e}};let o=e.r(61500),i=e.r(454488)},488064,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.lexStringify=function(e){return JSON.stringify(a(e))},r.lexParse=function(e,t={strict:!1}){return JSON.parse(e,function(e,r){switch(typeof r){case"object":if(null===r)return null;if(Array.isArray(r))return r;return c(r,t)??r;case"number":if(Number.isSafeInteger(r))return r;if(t.strict)throw TypeError(`Invalid non-integer number: ${r}`);default:return r}})},r.jsonToLex=function e(t,r={strict:!1}){switch(typeof t){case"object":if(null===t)return null;if(Array.isArray(t)){let n;var o=t,i=r;for(let t=0;t<o.length;t++){let r=o[t],s=e(r,i);s!==r&&(n??(n=Array.from(o)),n[t]=s)}return n??o}return c(t,r)??function(t,r){let o;for(let[i,n]of Object.entries(t)){if("__proto__"===i)throw TypeError("Invalid key: __proto__");
35if(void 0===n){o??(o={...t}),delete o[i];continue}let s=e(n,r);s!==n&&(o??(o={...t}),o[i]=s)}return o??t}(t,r);case"number":if(Number.isSafeInteger(t))return t;if(r.strict)throw TypeError(`Invalid non-integer number: ${t}`);case"boolean":case"string":return t;default:throw TypeError(`Invalid JSON value: ${typeof t}`)}},r.lexToJson=a;let o=e.r(61500),i=e.r(187214),n=e.r(381273),s=e.r(454488);function a(e){switch(typeof e){case"object":if(null===e)return e;if(Array.isArray(e)){let r;var t=e;for(let e=0;e<t.length;e++){let o=t[e],i=a(o);i!==o&&(r??(r=Array.from(t)),r[e]=i)}return r??t}if((0,o.isCid)(e))return(0,s.encodeLexLink)(e);else{if(ArrayBuffer.isView(e))return(0,n.encodeLexBytes)(e);let t;var r=e;for(let[e,o]of Object.entries(r)){if("__proto__"===e)throw TypeError("Invalid key: __proto__");if(void 0===o){t??(t={...r}),delete t[e];continue}let i=a(o);i!==o&&(t??(t={...r}),t[e]=i)}return t??r}case"boolean":case"string":case"number":return e;default:throw TypeError(`Invalid Lex value: ${typeof e}`)}}function c(e,t){if(void 0!==e.$link){let r=(0,s.parseLexLink)(e);if(r)return r;if(t.strict)throw TypeError("Invalid $link object")}else if(void 0!==e.$bytes){let r=(0,n.parseLexBytes)(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=(0,i.parseBlobRef)(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")}}},305468,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(290571);o.__exportStar(e.r(381273),r),o.__exportStar(e.r(51654),r),o.__exportStar(e.r(488064),r),o.__exportStar(e.r(454488),r)},729100,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ipldEquals=r.ipldToJson=r.jsonToIpld=void 0;let o=e.r(61500),i=e.r(305468);r.jsonToIpld=e=>(0,i.jsonToLex)(e,{strict:!1}),r.ipldToJson=e=>void 0===e||Number.isNaN(e)?e:(0,i.lexToJson)(e),r.ipldEquals=(e,t)=>!(!(0,o.lexEquals)(e,t)||Number.isNaN(e))},784316,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.retry=i,r.createRetryable=function(e){return async(t,r)=>i(t,{...r,retryable:e})},r.backoffMs=n;let o=e.r(855169);async function i(e,t={}){let r,{maxRetries:s=3,retryable:a=()=>!0,getWaitMs:c=n}=t,l=0;for(;!r;)try{return await e()}catch(t){let e=c(l);l<s&&null!==e&&a(t)?(l+=1,0!==e&&await (0,o.wait)(e)):r=t}throw r}function n(e,t=100,r=1e3){var o,i;let s;return s=.15*(o=Math.min(Math.pow(2,e)*t,r)),o+(i=-s,Math.random()*(s-i)+i)}},126369,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.def=r.schema=void 0;let o=e.r(589624),i=e.r(61500),n=o.z.unknown().transform((e,t)=>{let r=i.CID.asCID(e);return null==r?(t.addIssue({code:o.z.ZodIssueCode.custom,message:"Not a valid CID"}),o.z.NEVER):r}),s=o.z.object({version:o.z.literal(1),roots:o.z.array(n)});r.schema={cid:n,carHeader:s,bytes:o.z.instanceof(Uint8Array),string:o.z.string(),array:o.z.array(o.z.unknown()),map:o.z.record(o.z.string(),o.z.unknown()),unknown:o.z.unknown()},r.def={cid:{name:"cid",schema:r.schema.cid},carHeader:{name:"CAR header",schema:r.schema.carHeader},bytes:{name:"bytes",schema:r.schema.bytes},string:{name:"string",schema:r.schema.string},map:{name:"map",schema:r.schema.map},unknown:{name:"unknown",schema:r.schema.unknown}}},425500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addHoursToDate=r.lessThanAgoMs=r.DAY=r.HOUR=r.MINUTE=r.SECOND=void 0,r.SECOND=1e3,r.MINUTE=60*r.SECOND,r.HOUR=60*r.MINUTE,r.DAY=24*r.HOUR,r.lessThanAgoMs=(e,t)=>Date.now()<e.getTime()+t,r.addHoursToDate=(e,t)=>{let r=t?new Date(t):new Date;return r.setHours(r.getHours()+e),r}},876131,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDidError=void 0,r.ensureValidDid=function(e){if(!e.startsWith("did:"))throw new i('DID requires "did:" prefix');if(e.length>2048)throw new i("DID is too long (2048 chars max)");if(e.endsWith(":")||e.endsWith("%"))throw new i('DID can not end with ":" or "%"');if(!/^[a-zA-Z0-9._:%-]*$/.test(e))throw new i("Disallowed characters in DID (ASCII letters, digits, and a couple other characters only)");let{length:t,1:r}=e.split(":");if(t<3)throw new i("DID requires prefix, method, and method-specific content");
35if(!/^[a-z]+$/.test(r))throw new i("DID method must be lower-case letters")},r.ensureValidDidRegex=function(e){if(!o.test(e))throw new i("DID didn't validate via regex");if(e.length>2048)throw new i("DID is too long (2048 chars max)")},r.isValidDid=function(e){return e.length<=2048&&o.test(e)};let o=/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/;class i extends Error{}r.InvalidDidError=i},629498,(e,t,r)=>{"use strict";function o(e){if(!/^[a-zA-Z0-9.-]*$/.test(e))throw new s("Disallowed characters in handle (ASCII letters, digits, dashes, periods only)");if(e.length>253)throw new s("Handle is too long (253 chars max)");let t=e.split(".");if(t.length<2)throw new s("Handle domain needs at least two parts");for(let e=0;e<t.length;e++){let r=t[e];if(r.length<1)throw new s("Handle parts can not be empty");if(r.length>63)throw new s("Handle part too long (max 63 chars)");if(r.endsWith("-")||r.startsWith("-"))throw new s("Handle parts can not start or end with hyphens");if(e+1===t.length&&!/^[a-zA-Z]/.test(r))throw new s("Handle final component (TLD) must start with ASCII letter")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DisallowedDomainError=r.UnsupportedDomainError=r.ReservedHandleError=r.InvalidHandleError=r.DISALLOWED_TLDS=r.INVALID_HANDLE=void 0,r.ensureValidHandle=o,r.ensureValidHandleRegex=function(e){if(e.length>253)throw new s("Handle is too long (253 chars max)");if(!i.test(e))throw new s("Handle didn't validate via regex")},r.normalizeHandle=n,r.normalizeAndEnsureValidHandle=function(e){let t=n(e);return o(t),t},r.isValidHandle=function(e){return e.length<=253&&i.test(e)},r.isValidTld=function(e){for(let t of r.DISALLOWED_TLDS)if(e.endsWith(t))return!1;return!0}
35,r.INVALID_HANDLE="handle.invalid",r.DISALLOWED_TLDS=[".local",".arpa",".invalid",".localhost",".internal",".example",".alt",".onion"];let i=/^([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 n(e){return e.toLowerCase()}class s extends Error{}r.InvalidHandleError=s,r.ReservedHandleError=class extends Error{},r.UnsupportedDomainError=class extends Error{},r.DisallowedDomainError=class extends Error{}},509870,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtIdentifier=function(e){try{e.startsWith("did:")?(0,o.ensureValidDidRegex)(e):(0,i.ensureValidHandleRegex)(e)}catch(e){throw new i.InvalidHandleError("Invalid DID or handle",{cause:e})}},r.isValidAtIdentifier=function(e){return e.startsWith("did:")?(0,o.isValidDid)(e):(0,i.isValidHandle)(e)};let o=e.r(876131),i=e.r(629498)},138696,(e,t,r)=>{"use strict";function o(e){let t=n(e);if(!t.success)throw new c(t.message);return t.value}function i(e){return a(e).success}function n(e){var t,r,o;if(e.length>317)return{success:!1,message:"NSID is too long (317 chars max)"};if(t=e,!/^[a-zA-Z0-9.-]*$/.test(t))return{success:!1,message:"Disallowed characters in NSID (ASCII letters, digits, dashes, periods only)"};let i=e.split(".");if(i.length<3)return{success:!1,message:"NSID needs at least three parts"};for(let e of i){if(e.length<1)return{success:!1,message:"NSID parts can not be empty"};if(e.length>63)return{success:!1,message:"NSID part too long (max 63 chars)"};if(45===e.charCodeAt(0)||45===(r=e).charCodeAt(r.length-1))return{success:!1,message:"NSID parts can not start or end with hyphen"}}return s(i[0])?{success:!1,message:"NSID first part may not start with a digit"}:!s(o=i[i.length-1])&&!o.includes("-")?{success:!0,value:i}:{success:!1,message:"NSID name part must be only letters and digits (and no leading digit)"}}function s(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function a(e){return e.length>317?{success:!1,message:"NSID is too long (317 chars max)"}:/^[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(e)?{success:!0,value:e}:{success:!1,message:"NSID didn't validate via regex"}}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidNsidError=r.NSID=void 0,r.ensureValidNsid=function(e){let t=n(e);if(!t.success)throw new c(t.message)},r.parseNsid=o,r.isValidNsid=i,r.validateNsid=n,r.ensureValidNsidRegex=function(e){let t=a(e);if(!t.success)throw new c(t.message)},r.validateNsidRegex=a,r.NSID=class e{segments;static parse(t){return new e(t)}static create(t,r){return new e([...t.split(".").reverse(),r].join("."))}static isValid(e){return i(e)}static from(t){return t instanceof e?t:new e(Array.isArray(t)?t.join("."):String(t))}constructor(e){this.segments=o(e)}get authority(){return this.segments.slice(0,this.segments.length-1).reverse().join(".")}get name(){return this.segments.at(this.segments.length-1)}toString(){return this.segments.join(".")}};class c extends Error{}r.InvalidNsidError=c},386563,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtUri=function(e){let t=e.indexOf("#");if(-1!==t){if(47!==e.charCodeAt(t+1))throw Error("ATURI fragment must be non-empty and start with slash");if(e.includes("#",t+1))throw Error('ATURI can have at most one "#", separating fragment out');let r=e.slice(t+1);if(!/^\/[a-zA-Z0-9._~:@!$&')(*+,;=%[\]/-]*$/.test(r))throw Error("Disallowed characters in ATURI fragment (ASCII)")}let r=-1===t?e:e.slice(0,t);if(r.length>8192)throw Error("ATURI is far too long");if(!r.startsWith("at://"))throw Error('ATURI must start with "at://"');if(!/^[a-zA-Z0-9._~:@!$&')(*+,;=%/-]*$/.test(r))throw Error("Disallowed characters in ATURI (ASCII)");let i=r.indexOf("/",5),n=-1===i?r.slice(5):r.slice(5,i);try{(0,o.ensureValidAtIdentifier)(n)}catch(e){throw Error("ATURI authority must be a valid handle or DID",{cause:e})}let a=-1===i?-1:i+1,c=-1===a?-1:r.indexOf("/",a);if(-1!==a){let e=-1===c?r.slice(a):r.slice(a,c);if(0===e.length)throw Error("ATURI can not have a slash after authority without a path segment");
35if(!(0,s.isValidNsid)(e))throw Error("ATURI requires first path segment (if supplied) to be valid NSID")}let l=-1===c?-1:c+1,d=-1===l?-1:r.indexOf("/",l);if(-1!==l&&l===r.length)throw Error("ATURI can not have a slash after collection, unless record key is provided");if(-1!==d)throw Error("ATURI path can have at most two parts, and no trailing slash")},r.ensureValidAtUriRegex=a,r.isValidAtUri=function(e){try{a(e)}catch{return!1}return!0};let o=e.r(509870),i=e.r(876131),n=e.r(629498),s=e.r(138696);function a(e){let t=e.match(/^at:\/\/(?<authority>[a-zA-Z0-9._:%-]+)(\/(?<collection>[a-zA-Z0-9-.]+)(\/(?<rkey>[a-zA-Z0-9._~:@!$&%')(*+,;=-]+))?)?(#(?<fragment>\/[a-zA-Z0-9._~:@!$&%')(*+,;=\-[\]/\\]*))?$/);if(!t||!t.groups)throw Error("ATURI didn't validate via regex");let r=t.groups;try{(0,n.ensureValidHandleRegex)(r.authority)}catch{try{(0,i.ensureValidDidRegex)(r.authority)}catch{throw Error("ATURI authority must be a valid handle or DID")}}if(r.collection&&!(0,s.isValidNsid)(r.collection))throw Error("ATURI collection path segment must be a valid NSID");if(e.length>8192)throw Error("ATURI is far too long")}},31726,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AtUri=r.ATP_URI_REGEX=void 0;let o=e.r(290571),i=e.r(509870),n=e.r(138696);o.__exportStar(e.r(386563),r),r.ATP_URI_REGEX=/^(at:\/\/)?((?:did:[a-z0-9:%-]+)|(?:[a-z0-9][a-z0-9.:-]*))(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;let s=/^(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;function a(e){let t=e.match(r.ATP_URI_REGEX);if(!t)throw Error(`Invalid AT uri: ${e}`);return{host:t[2],hash:t[5],pathname:t[3],searchParams:new URLSearchParams(t[4])}}function c(e){let t=e.match(s);if(!t)throw Error(`Invalid path: ${e}`);return{hash:t[3],pathname:t[1],searchParams:new URLSearchParams(t[2])}}r.AtUri=class e{hash;host;pathname;searchParams;constructor(e,t){const r=void 0!==t?"string"==typeof t?Object.assign(a(t),c(e)):Object.assign({host:t.host},c(e)):a(e);(0,i.ensureValidAtIdentifier)(r.host),this.hash=r.hash??"",this.host=r.host,this.pathname=r.pathname??"",this.searchParams=r.searchParams}static make(t,r,o){let i=t;return r&&(i+="/"+r),o&&(i+="/"+o),new e(i)}get protocol(){return"at:"}get origin(){return`at://${this.host}`}get hostname(){return this.host}set hostname(e){(0,i.ensureValidAtIdentifier)(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]||""}set collection(e){(0,n.ensureValidNsid)(e);let t=this.pathname.split("/").filter(Boolean);t[0]=e,this.pathname=t.join("/")}get rkey(){return this.pathname.split("/").filter(Boolean)[1]||""}set rkey(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||"/";e.startsWith("/")||(e=`/${e}`);let t="";this.searchParams.size&&(t=`?${this.searchParams.toString()}`);let r=this.hash;return r&&!r.startsWith("#")&&(r=`#${r}`),`at://${this.host}${e}${t}${r}`}}},598730,(e,t,r)=>{"use strict";function o(e){let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as ISO 8601");if(t.toISOString().startsWith("-"))throw new s("datetime normalized to a negative time");if(!/^[0-9]{4}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]:[0-6][0-9](.[0-9]{1,20})?(Z|([+-][0-2][0-9]:[0-5][0-9]))$/.test(e))throw new s("datetime didn't validate via regex");if(e.length>64)throw new s("datetime is too long (64 chars max)");if(e.endsWith("-00:00"))throw new s('datetime can not use "-00:00" for UTC timezone');if(e.startsWith("000"))throw new s("datetime so close to year zero not allowed")}function i(e){try{o(e)}catch(e){return!1}return!0}function n(e){if(i(e)){let t=new Date(e).toISOString();if(i(t))return t}if(!/.*(([+-]\d\d:?\d\d)|[a-zA-Z])$/.test(e)){let t=new Date(e+"Z");if(!isNaN(t.getTime())){let e=t.toISOString();if(i(e))return e}}let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as any timestamp format");let r=t.toISOString();if(i(r))return r;
35throw new s("datetime normalized to invalid timestamp string")}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDatetimeError=r.normalizeDatetimeAlways=void 0,r.ensureValidDatetime=o,r.isValidDatetime=i,r.normalizeDatetime=n,r.normalizeDatetimeAlways=e=>{try{return n(e)}catch(e){if(e instanceof s)return new Date(0).toISOString();throw e}};class s extends Error{}r.InvalidDatetimeError=s},787478,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseLanguageString=function(e){let t=e.match(o);if(!t?.groups)return null;let{groups:r}=t;return{grandfathered:r.grandfathered,language:r.language,extlang:r.extlang,script:r.script,region:r.region,variant:r.variant,extension:r.extension,privateUse:r.privateUseA||r.privateUseB}},r.isValidLanguage=function(e){return o.test(e)};let o=/^((?<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|no-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>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>x(-[A-Za-z0-9]{1,8})+))$/},524799,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidRecordKeyError=void 0,r.ensureValidRecordKey=function(e){if(e.length>512||e.length<1)throw new n("record key must be 1 to 512 characters");if(o.has(e))throw new n('record key can not be "." or ".."');if(!i.test(e))throw new n("record key syntax not valid (regex)")},r.isValidRecordKey=function(e){return e.length>=1&&e.length<=512&&i.test(e)&&!o.has(e)};let o=new Set([".",".."]),i=/^[a-zA-Z0-9_~.:-]{1,512}$/;class n extends Error{}r.InvalidRecordKeyError=n},235502,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTidError=void 0,r.ensureValidTid=function(e){if(13!==e.length)throw new i("TID must be 13 characters");if(!o.test(e))throw new i("TID syntax not valid (regex)")},r.isValidTid=function(e){return 13===e.length&&o.test(e)};let o=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/;class i extends Error{}r.InvalidTidError=i},278597,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isValidUri=function(e){return/^\w+:(?:\/\/)?[^\s/][^\s]*$/.test(e)}},684265,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(290571);o.__exportStar(e.r(509870),r),o.__exportStar(e.r(31726),r),o.__exportStar(e.r(598730),r),o.__exportStar(e.r(876131),r),o.__exportStar(e.r(629498),r),o.__exportStar(e.r(138696),r),o.__exportStar(e.r(787478),r),o.__exportStar(e.r(524799),r),o.__exportStar(e.r(235502),r),o.__exportStar(e.r(278597),r)},574969,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.b64UrlToUtf8=r.utf8ToB64Url=r.validateLanguage=r.parseLanguage=r.utf8Len=r.graphemeLen=void 0;let o=e.r(61500),i=e.r(684265);r.graphemeLen=o.graphemeLen,r.utf8Len=o.utf8Len,r.parseLanguage=i.parseLanguageString,r.validateLanguage=i.isValidLanguage,r.utf8ToB64Url=e=>(0,o.toBase64)(new TextEncoder().encode(e),"base64url"),r.b64UrlToUtf8=e=>new TextDecoder().decode((0,o.fromBase64)(e,"base64url"))},272527,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.didDocument=r.getServiceEndpoint=r.getNotifEndpoint=r.getFeedGenEndpoint=r.getPdsEndpoint=r.getSigningDidKey=r.getVerificationMaterial=r.getSigningKey=r.getHandle=r.getDid=r.isValidDidDoc=void 0;let o=e.r(589624);function i(e,t,r){let o=e[t];if(o)for(let t=0;t<o.length;t++){let i=o[t],n=i.id;if("#"===n[0]?n===r:n.length===e.id.length+r.length&&"#"===n[e.id.length]&&n.endsWith(r)&&n.startsWith(e.id))return i}}r.isValidDidDoc=e=>r.didDocument.safeParse(e).success,r.getDid=e=>{let t=e.id;if("string"!=typeof t)throw Error("No `id` on document");return t},r.getHandle=e=>{let t=e.alsoKnownAs;if(t)for(let e=0;e<t.length;e++){let r=t[e];if(r.startsWith("at://"))return r.slice(5)}},r.getSigningKey=e=>(0,r.getVerificationMaterial)(e,"atproto"),r.getVerificationMaterial=(e,t)=>{let r=i(e,"verificationMethod",`#${t}`);if(r&&r.publicKeyMultibase)return{type:r.type,publicKeyMultibase:r.publicKeyMultibase}},r.getSigningDidKey=e=>{let t=(0,r.getSigningKey)(e);if(t)return`did:key:${t.publicKeyMultibase}`},r.getPdsEndpoint=e=>(0,r.getServiceEndpoint)(e,{id:"#atproto_pds",type:"AtprotoPersonalDataServer"}),r.getFeedGenEndpoint=e=>(0,r.getServiceEndpoint)(e,{id:"#bsky_fg",type:"BskyFeedGenerator"}),r.getNotifEndpoint=e=>(0,r.getServiceEndpoint)(e,{id:"#bsky_notif",type:"BskyNotificationService"}),r.getServiceEndpoint=(e,t)=>
35{let r=i(e,"service",t.id);if(r&&(!t.type||r.type===t.type)&&"string"==typeof r.serviceEndpoint)return n(r.serviceEndpoint)};let n=e=>{if((e.startsWith("http://")||e.startsWith("https://"))&&s(e))return e},s=URL.canParse??(e=>{try{return new URL(e),!0}catch{return!1}}),a=o.z.object({id:o.z.string(),type:o.z.string(),controller:o.z.string(),publicKeyJwk:o.z.record(o.z.string(),o.z.unknown()).optional(),publicKeyMultibase:o.z.string().optional()}),c=o.z.object({id:o.z.string(),type:o.z.string(),serviceEndpoint:o.z.union([o.z.string(),o.z.record(o.z.unknown())])});r.didDocument=o.z.object({"@context":o.z.union([o.z.literal("https://www.w3.org/ns/did/v1"),o.z.array(o.z.string().url())]).optional(),id:o.z.string(),alsoKnownAs:o.z.array(o.z.string()).optional(),verificationMethod:o.z.array(a).optional(),authentication:o.z.array(o.z.union([o.z.string(),a])).optional(),service:o.z.array(c).optional()})},751037,(e,t,r)=>{"use strict";var o,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&i(t,e,r[s]);return n(t,e),t}),a=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.util=r.check=void 0,r.check=s(e.r(840143)),r.util=s(e.r(855169)),a(e.r(270359),r),a(e.r(361469),r),a(e.r(855169),r),a(e.r(680536),r),a(e.r(729100),r),a(e.r(784316),r),a(e.r(126369),r),a(e.r(425500),r),a(e.r(574969),r),a(e.r(272527),r)},533856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDidError=void 0,r.ensureValidDid=function(e){if(!e.startsWith("did:"))throw new i('DID requires "did:" prefix');if(e.length>2048)throw new i("DID is too long (2048 chars max)");if(e.endsWith(":")||e.endsWith("%"))throw new i('DID can not end with ":" or "%"');if(!/^[a-zA-Z0-9._:%-]*$/.test(e))throw new i("Disallowed characters in DID (ASCII letters, digits, and a couple other characters only)");let{length:t,1:r}=e.split(":");if(t<3)throw new i("DID requires prefix, method, and method-specific content");if(!/^[a-z]+$/.test(r))throw new i("DID method must be lower-case letters")},r.ensureValidDidRegex=function(e){if(!o.test(e))throw new i("DID didn't validate via regex");if(e.length>2048)throw new i("DID is too long (2048 chars max)")},r.isValidDid=function(e){return e.length<=2048&&o.test(e)};let o=/^did:[a-z]+:[a-zA-Z0-9._:%-]*[a-zA-Z0-9._-]$/;class i extends Error{}r.InvalidDidError=i},249575,(e,t,r)=>{"use strict";function o(e){if(!/^[a-zA-Z0-9.-]*$/.test(e))throw new s("Disallowed characters in handle (ASCII letters, digits, dashes, periods only)");if(e.length>253)throw new s("Handle is too long (253 chars max)");let t=e.split(".");if(t.length<2)throw new s("Handle domain needs at least two parts");for(let e=0;e<t.length;e++){let r=t[e];if(r.length<1)throw new s("Handle parts can not be empty");if(r.length>63)throw new s("Handle part too long (max 63 chars)");if(r.endsWith("-")||r.startsWith("-"))throw new s("Handle parts can not start or end with hyphens");if(e+1===t.length&&!/^[a-zA-Z]/.test(r))throw new s("Handle final component (TLD) must start with ASCII letter")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DisallowedDomainError=r.UnsupportedDomainError=r.ReservedHandleError=r.InvalidHandleError=r.DISALLOWED_TLDS=r.INVALID_HANDLE=void 0,r.ensureValidHandle=o,r.ensureValidHandleRegex=function(e){if(e.length>253)throw new s("Handle is too long (253 chars max)");if(!i.test(e))throw new s("Handle didn't validate via regex")},r.normalizeHandle=n,r.normalizeAndEnsureValidHandle=function(e){let t=n(e);return o(t),t},r.isValidHandle=function(e){return e.length<=253&&i.test(e)},r.isValidTld=function(e){for(let t of r.DISALLOWED_TLDS)if(e.endsWith(t))return!1;return!0}
35,r.INVALID_HANDLE="handle.invalid",r.DISALLOWED_TLDS=[".local",".arpa",".invalid",".localhost",".internal",".example",".alt",".onion"];let i=/^([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 n(e){return e.toLowerCase()}class s extends Error{}r.InvalidHandleError=s,r.ReservedHandleError=class extends Error{},r.UnsupportedDomainError=class extends Error{},r.DisallowedDomainError=class extends Error{}},897753,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtIdentifier=function(e){try{e.startsWith("did:")?(0,o.ensureValidDidRegex)(e):(0,i.ensureValidHandleRegex)(e)}catch(e){throw new i.InvalidHandleError("Invalid DID or handle",{cause:e})}},r.isValidAtIdentifier=function(e){return e.startsWith("did:")?(0,o.isValidDid)(e):(0,i.isValidHandle)(e)};let o=e.r(533856),i=e.r(249575)},327778,(e,t,r)=>{"use strict";function o(e){let t=n(e);if(!t.success)throw new c(t.message);return t.value}function i(e){return a(e).success}function n(e){var t,r,o;if(e.length>317)return{success:!1,message:"NSID is too long (317 chars max)"};if(t=e,!/^[a-zA-Z0-9.-]*$/.test(t))return{success:!1,message:"Disallowed characters in NSID (ASCII letters, digits, dashes, periods only)"};let i=e.split(".");if(i.length<3)return{success:!1,message:"NSID needs at least three parts"};for(let e of i){if(e.length<1)return{success:!1,message:"NSID parts can not be empty"};if(e.length>63)return{success:!1,message:"NSID part too long (max 63 chars)"};if(45===e.charCodeAt(0)||45===(r=e).charCodeAt(r.length-1))return{success:!1,message:"NSID parts can not start or end with hyphen"}}return s(i[0])?{success:!1,message:"NSID first part may not start with a digit"}:!s(o=i[i.length-1])&&!o.includes("-")?{success:!0,value:i}:{success:!1,message:"NSID name part must be only letters and digits (and no leading digit)"}}function s(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function a(e){return e.length>317?{success:!1,message:"NSID is too long (317 chars max)"}:/^[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(e)?{success:!0,value:e}:{success:!1,message:"NSID didn't validate via regex"}}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidNsidError=r.NSID=void 0,r.ensureValidNsid=function(e){let t=n(e);if(!t.success)throw new c(t.message)},r.parseNsid=o,r.isValidNsid=i,r.validateNsid=n,r.ensureValidNsidRegex=function(e){let t=a(e);if(!t.success)throw new c(t.message)},r.validateNsidRegex=a,r.NSID=class e{segments;static parse(t){return new e(t)}static create(t,r){return new e([...t.split(".").reverse(),r].join("."))}static isValid(e){return i(e)}static from(t){return t instanceof e?t:new e(Array.isArray(t)?t.join("."):String(t))}constructor(e){this.segments=o(e)}get authority(){return this.segments.slice(0,this.segments.length-1).reverse().join(".")}get name(){return this.segments.at(this.segments.length-1)}toString(){return this.segments.join(".")}};class c extends Error{}r.InvalidNsidError=c},303679,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ensureValidAtUri=function(e){let t=e.indexOf("#");if(-1!==t){if(47!==e.charCodeAt(t+1))throw Error("ATURI fragment must be non-empty and start with slash");if(e.includes("#",t+1))throw Error('ATURI can have at most one "#", separating fragment out');let r=e.slice(t+1);if(!/^\/[a-zA-Z0-9._~:@!$&')(*+,;=%[\]/-]*$/.test(r))throw Error("Disallowed characters in ATURI fragment (ASCII)")}let r=-1===t?e:e.slice(0,t);if(r.length>8192)throw Error("ATURI is far too long");if(!r.startsWith("at://"))throw Error('ATURI must start with "at://"');if(!/^[a-zA-Z0-9._~:@!$&')(*+,;=%/-]*$/.test(r))throw Error("Disallowed characters in ATURI (ASCII)");let i=r.indexOf("/",5),n=-1===i?r.slice(5):r.slice(5,i);try{(0,o.ensureValidAtIdentifier)(n)}catch(e){throw Error("ATURI authority must be a valid handle or DID",{cause:e})}let a=-1===i?-1:i+1,c=-1===a?-1:r.indexOf("/",a);if(-1!==a){let e=-1===c?r.slice(a):r.slice(a,c);if(0===e.length)throw Error("ATURI can not have a slash after authority without a path segment");
35if(!(0,s.isValidNsid)(e))throw Error("ATURI requires first path segment (if supplied) to be valid NSID")}let l=-1===c?-1:c+1,d=-1===l?-1:r.indexOf("/",l);if(-1!==l&&l===r.length)throw Error("ATURI can not have a slash after collection, unless record key is provided");if(-1!==d)throw Error("ATURI path can have at most two parts, and no trailing slash")},r.ensureValidAtUriRegex=a,r.isValidAtUri=function(e){try{a(e)}catch{return!1}return!0};let o=e.r(897753),i=e.r(533856),n=e.r(249575),s=e.r(327778);function a(e){let t=e.match(/^at:\/\/(?<authority>[a-zA-Z0-9._:%-]+)(\/(?<collection>[a-zA-Z0-9-.]+)(\/(?<rkey>[a-zA-Z0-9._~:@!$&%')(*+,;=-]+))?)?(#(?<fragment>\/[a-zA-Z0-9._~:@!$&%')(*+,;=\-[\]/\\]*))?$/);if(!t||!t.groups)throw Error("ATURI didn't validate via regex");let r=t.groups;try{(0,n.ensureValidHandleRegex)(r.authority)}catch{try{(0,i.ensureValidDidRegex)(r.authority)}catch{throw Error("ATURI authority must be a valid handle or DID")}}if(r.collection&&!(0,s.isValidNsid)(r.collection))throw Error("ATURI collection path segment must be a valid NSID");if(e.length>8192)throw Error("ATURI is far too long")}},162921,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AtUri=r.ATP_URI_REGEX=void 0;let o=e.r(290571),i=e.r(897753),n=e.r(327778);o.__exportStar(e.r(303679),r),r.ATP_URI_REGEX=/^(at:\/\/)?((?:did:[a-z0-9:%-]+)|(?:[a-z0-9][a-z0-9.:-]*))(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;let s=/^(\/[^?#\s]*)?(\?[^#\s]+)?(#[^\s]+)?$/i;function a(e){let t=e.match(r.ATP_URI_REGEX);if(!t)throw Error(`Invalid AT uri: ${e}`);return{host:t[2],hash:t[5],pathname:t[3],searchParams:new URLSearchParams(t[4])}}function c(e){let t=e.match(s);if(!t)throw Error(`Invalid path: ${e}`);return{hash:t[3],pathname:t[1],searchParams:new URLSearchParams(t[2])}}r.AtUri=class e{hash;host;pathname;searchParams;constructor(e,t){const r=void 0!==t?"string"==typeof t?Object.assign(a(t),c(e)):Object.assign({host:t.host},c(e)):a(e);(0,i.ensureValidAtIdentifier)(r.host),this.hash=r.hash??"",this.host=r.host,this.pathname=r.pathname??"",this.searchParams=r.searchParams}static make(t,r,o){let i=t;return r&&(i+="/"+r),o&&(i+="/"+o),new e(i)}get protocol(){return"at:"}get origin(){return`at://${this.host}`}get hostname(){return this.host}set hostname(e){(0,i.ensureValidAtIdentifier)(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]||""}set collection(e){(0,n.ensureValidNsid)(e);let t=this.pathname.split("/").filter(Boolean);t[0]=e,this.pathname=t.join("/")}get rkey(){return this.pathname.split("/").filter(Boolean)[1]||""}set rkey(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||"/";e.startsWith("/")||(e=`/${e}`);let t="";this.searchParams.size&&(t=`?${this.searchParams.toString()}`);let r=this.hash;return r&&!r.startsWith("#")&&(r=`#${r}`),`at://${this.host}${e}${t}${r}`}}},625123,(e,t,r)=>{"use strict";function o(e){let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as ISO 8601");if(t.toISOString().startsWith("-"))throw new s("datetime normalized to a negative time");if(!/^[0-9]{4}-[01][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]:[0-6][0-9](.[0-9]{1,20})?(Z|([+-][0-2][0-9]:[0-5][0-9]))$/.test(e))throw new s("datetime didn't validate via regex");if(e.length>64)throw new s("datetime is too long (64 chars max)");if(e.endsWith("-00:00"))throw new s('datetime can not use "-00:00" for UTC timezone');if(e.startsWith("000"))throw new s("datetime so close to year zero not allowed")}function i(e){try{o(e)}catch(e){return!1}return!0}function n(e){if(i(e)){let t=new Date(e).toISOString();if(i(t))return t}if(!/.*(([+-]\d\d:?\d\d)|[a-zA-Z])$/.test(e)){let t=new Date(e+"Z");if(!isNaN(t.getTime())){let e=t.toISOString();if(i(e))return e}}let t=new Date(e);if(isNaN(t.getTime()))throw new s("datetime did not parse as any timestamp format");let r=t.toISOString();if(i(r))return r;
35throw new s("datetime normalized to invalid timestamp string")}Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidDatetimeError=r.normalizeDatetimeAlways=void 0,r.ensureValidDatetime=o,r.isValidDatetime=i,r.normalizeDatetime=n,r.normalizeDatetimeAlways=e=>{try{return n(e)}catch(e){if(e instanceof s)return new Date(0).toISOString();throw e}};class s extends Error{}r.InvalidDatetimeError=s},400455,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseLanguageString=function(e){let t=e.match(o);if(!t?.groups)return null;let{groups:r}=t;return{grandfathered:r.grandfathered,language:r.language,extlang:r.extlang,script:r.script,region:r.region,variant:r.variant,extension:r.extension,privateUse:r.privateUseA||r.privateUseB}},r.isValidLanguage=function(e){return o.test(e)};let o=/^((?<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|no-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>x(-[A-Za-z0-9]{1,8})+))?)|(?<privateUseB>x(-[A-Za-z0-9]{1,8})+))$/},817005,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidRecordKeyError=void 0,r.ensureValidRecordKey=function(e){if(e.length>512||e.length<1)throw new n("record key must be 1 to 512 characters");if(o.has(e))throw new n('record key can not be "." or ".."');if(!i.test(e))throw new n("record key syntax not valid (regex)")},r.isValidRecordKey=function(e){return e.length>=1&&e.length<=512&&i.test(e)&&!o.has(e)};let o=new Set([".",".."]),i=/^[a-zA-Z0-9_~.:-]{1,512}$/;class n extends Error{}r.InvalidRecordKeyError=n},665582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InvalidTidError=void 0,r.ensureValidTid=function(e){if(13!==e.length)throw new i("TID must be 13 characters");if(!o.test(e))throw new i("TID syntax not valid (regex)")},r.isValidTid=function(e){return 13===e.length&&o.test(e)};let o=/^[234567abcdefghij][234567abcdefghijklmnopqrstuvwxyz]{12}$/;class i extends Error{}r.InvalidTidError=i},42404,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isValidUri=function(e){return/^\w+:(?:\/\/)?[^\s/][^\s]*$/.test(e)}},332007,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(290571);o.__exportStar(e.r(897753),r),o.__exportStar(e.r(162921),r),o.__exportStar(e.r(625123),r),o.__exportStar(e.r(533856),r),o.__exportStar(e.r(249575),r),o.__exportStar(e.r(327778),r),o.__exportStar(e.r(400455),r),o.__exportStar(e.r(817005),r),o.__exportStar(e.r(665582),r),o.__exportStar(e.r(42404),r)},84070,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toLexUri=function(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}`},r.requiredPropertiesRefinement=function(e,t){if(void 0!==e.required){if(!Array.isArray(e.required))return void t.addIssue({code:o.z.ZodIssueCode.invalid_type,received:typeof e.required,expected:"array"});if(void 0===e.properties){e.required.length>0&&t.addIssue({code:o.z.ZodIssueCode.custom,message:"Required fields defined but no properties defined"});return}for(let r of e.required)void 0===e.properties[r]&&t.addIssue({code:o.z.ZodIssueCode.custom,message:`Required field "${r}" not defined`})}};let o=e.r(589624)},128999,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LexiconDefNotFoundError=r.InvalidLexiconError=r.ValidationError=r.lexiconDoc=r.lexUserType=r.lexRecord=r.lexXrpcSubscription=r.lexXrpcProcedure=r.lexXrpcQuery=r.lexXrpcError=r.lexXrpcBody=r.lexXrpcParameters=r.lexPermissionSet=r.lexObject=r.lexToken=r.lexPrimitiveArray=r.lexArray=r.lexBlob=r.lexRefVariant=r.lexRefUnion=r.lexRef=r.lexIpldType=r.lexCidLink=r.lexBytes=r.lexPrimitive=r.lexUnknown=r.lexString=r.lexStringFormat=r.lexInteger=r.lexBoolean=r.lexLang=r.languageSchema=void 0,r.isValidLexiconDoc=function(e){return r.lexiconDoc.safeParse(e).success},r.isObj=c,r.isDiscriminatedObject=function(e){return c(e)&&"$type"in e&&"string"==typeof e.$type},r.parseLexiconDoc=function(e){return r.lexiconDoc.parse(e),e};let o=e.r(589624),i=e.r(751037),n=e.r(332007),s=e.r(84070);r.languageSchema=o.z.string().refine(i.validateLanguage,"Invalid BCP47 language tag"),r.lexLang=o.z.record(r.languageSchema,o.z.string().optional()),r.lexBoolean=o.z.object({type:o.z.literal("boolean"),description:o.z.string().optional(),default:o.z.boolean().optional(),const:o.z.boolean().optional()}),r.lexInteger=o.z.object({type:o.z.literal("integer"),description:o.z.string().optional(),default:o.z.number().int().optional(),minimum:o.z.number().int().optional(),maximum:o.z.number().int().optional(),enum:o.z.number().int().array().optional(),const:o.z.number().int().optional()}
35),r.lexStringFormat=o.z.enum(["datetime","uri","at-uri","did","handle","at-identifier","nsid","cid","language","tid","record-key"]),r.lexString=o.z.object({type:o.z.literal("string"),format:r.lexStringFormat.optional(),description:o.z.string().optional(),default:o.z.string().optional(),minLength:o.z.number().int().optional(),maxLength:o.z.number().int().optional(),minGraphemes:o.z.number().int().optional(),maxGraphemes:o.z.number().int().optional(),enum:o.z.string().array().optional(),const:o.z.string().optional(),knownValues:o.z.string().array().optional()}),r.lexUnknown=o.z.object({type:o.z.literal("unknown"),description:o.z.string().optional()}),r.lexPrimitive=o.z.discriminatedUnion("type",[r.lexBoolean,r.lexInteger,r.lexString,r.lexUnknown]),r.lexBytes=o.z.object({type:o.z.literal("bytes"),description:o.z.string().optional(),maxLength:o.z.number().optional(),minLength:o.z.number().optional()}),r.lexCidLink=o.z.object({type:o.z.literal("cid-link"),description:o.z.string().optional()}),r.lexIpldType=o.z.discriminatedUnion("type",[r.lexBytes,r.lexCidLink]),r.lexRef=o.z.object({type:o.z.literal("ref"),description:o.z.string().optional(),ref:o.z.string()}),r.lexRefUnion=o.z.object({type:o.z.literal("union"),description:o.z.string().optional(),refs:o.z.string().array(),closed:o.z.boolean().optional()}),r.lexRefVariant=o.z.discriminatedUnion("type",[r.lexRef,r.lexRefUnion]),r.lexBlob=o.z.object({type:o.z.literal("blob"),description:o.z.string().optional(),accept:o.z.string().array().optional(),maxSize:o.z.number().optional()}),r.lexArray=o.z.object({type:o.z.literal("array"),description:o.z.string().optional(),items:o.z.discriminatedUnion("type",[r.lexBoolean,r.lexInteger,r.lexString,r.lexUnknown,r.lexBytes,r.lexCidLink,r.lexRef,r.lexRefUnion,r.lexBlob]),minLength:o.z.number().int().optional(),maxLength:o.z.number().int().optional()}),r.lexPrimitiveArray=r.lexArray.merge(o.z.object({items:r.lexPrimitive})),r.lexToken=o.z.object({type:o.z.literal("token"),description:o.z.string().optional()}),r.lexObject=o.z.object({type:o.z.literal("object"),description:o.z.string().optional(),required:o.z.string().array().optional(),nullable:o.z.string().array().optional(),properties:o.z.record(o.z.string(),o.z.discriminatedUnion("type",[r.lexArray,r.lexBoolean,r.lexInteger,r.lexString,r.lexUnknown,r.lexBytes,r.lexCidLink,r.lexRef,r.lexRefUnion,r.lexBlob]))}).superRefine(s.requiredPropertiesRefinement);let a=o.z.intersection(o.z.object({type:o.z.literal("permission"),resource:o.z.string().nonempty()}),o.z.record(o.z.string(),o.z.union([o.z.array(o.z.union([o.z.string(),o.z.number().int(),o.z.boolean()])),o.z.boolean(),o.z.number().int(),o.z.string()]).optional()));function c(e){return null!=e&&"object"==typeof e}r.lexPermissionSet=o.z.object({type:o.z.literal("permission-set"),description:o.z.string().optional(),title:o.z.string().optional(),"title:lang":r.lexLang.optional(),detail:o.z.string().optional(),"detail:lang":r.lexLang.optional(),permissions:o.z.array(a)}),r.lexXrpcParameters=o.z.object({type:o.z.literal("params"),description:o.z.string().optional(),required:o.z.string().array().optional(),properties:o.z.record(o.z.string(),o.z.discriminatedUnion("type",[r.lexPrimitiveArray,r.lexBoolean,r.lexInteger,r.lexString,r.lexUnknown]))}).superRefine(s.requiredPropertiesRefinement),r.lexXrpcBody=o.z.object({description:o.z.string().optional(),encoding:o.z.string(),schema:o.z.union([r.lexRefVariant,r.lexObject]).optional()}),r.lexXrpcError=o.z.object({name:o.z.string(),description:o.z.string().optional()}),r.lexXrpcQuery=o.z.object({type:o.z.literal("query"),description:o.z.string().optional(),parameters:r.lexXrpcParameters.optional(),output:r.lexXrpcBody.optional(),errors:r.lexXrpcError.array().optional()}),r.lexXrpcProcedure=o.z.object({type:o.z.literal("procedure"),description:o.z.string().optional(),parameters:r.lexXrpcParameters.optional(),input:r.lexXrpcBody.optional(),output:r.lexXrpcBody.optional(),errors:r.lexXrpcError.array().optional()}),r.lexXrpcSubscription=o.z.object({type:o.z.literal("subscription"),description:o.z.string().optional(),parameters:r.lexXrpcParameters.optional(),message:o.z.object({description:o.z.string().optional(),schema:r.lexRefUnion}),errors:r.lexXrpcError.array().optional()}),r.lexRecord=o.z.object({type:o.z.literal("record"),description:o.z.string().optional(),key:o.z.string().optional(),record:r.lexObject}),r.lexUserType=o.z.custom(e=>{if(e&&"object"==typeof e&&void 0!==e.type)switch(e.type){case"re
35cord":return r.lexRecord.parse(e);case"permission-set":return r.lexPermissionSet.parse(e);case"query":return r.lexXrpcQuery.parse(e);case"procedure":return r.lexXrpcProcedure.parse(e);case"subscription":return r.lexXrpcSubscription.parse(e);case"blob":return r.lexBlob.parse(e);case"array":return r.lexArray.parse(e);case"token":return r.lexToken.parse(e);case"object":return r.lexObject.parse(e);case"boolean":return r.lexBoolean.parse(e);case"integer":return r.lexInteger.parse(e);case"string":return r.lexString.parse(e);case"bytes":return r.lexBytes.parse(e);case"cid-link":return r.lexCidLink.parse(e);case"unknown":return r.lexUnknown.parse(e)}},e=>e&&"object"==typeof e?void 0===e.type?{message:"Must have a type",fatal:!0}:"string"!=typeof e.type?{message:"Type property must be a string",fatal:!0}:{message:`Invalid type: ${e.type} must be one of: record, query, procedure, subscription, blob, array, token, object, boolean, integer, string, bytes, cid-link, unknown`,fatal:!0}:{message:"Must be an object",fatal:!0}),r.lexiconDoc=o.z.object({lexicon:o.z.literal(1),id:o.z.string().refine(n.isValidNsid,{message:"Must be a valid NSID"}),revision:o.z.number().optional(),description:o.z.string().optional(),defs:o.z.record(o.z.string(),r.lexUserType)}).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."}),r.ValidationError=class extends Error{},r.InvalidLexiconError=class extends Error{},r.LexiconDefNotFoundError=class extends Error{}},342114,e=>{"use strict";function t(e,r,o){r=r||[];for(var i=o=o||0;e>=0x80000000;)r[o++]=255&e|128,e/=128;for(;-128&e;)r[o++]=255&e|128,e>>>=7;return r[o]=0|e,t.bytes=o-i+1,r}function r(e,t){var o,i=0,t=t||0,n=0,s=t,a=e.length;do{if(s>=a)throw r.bytes=0,RangeError("Could not decode varint");o=e[s++],i+=n<28?(127&o)<<n:(127&o)*Math.pow(2,n),n+=7}while(o>=128)return r.bytes=s-t,i}let o=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},i=(e,t=0)=>[r(e,t),r.bytes],n=(e,r,o=0)=>(t(e,r,o),r);new Uint8Array(0);let s=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw Error("Unknown type, must be binary type")};class a{constructor(e,t,r,o){this.code=e,this.size=t,this.digest=r,this.bytes=o}}let c=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),o=0;o<r.length;o++)r[o]=255;for(var i=0;i<e.length;i++){var n=e.charAt(i),s=n.charCodeAt(0);if(255!==r[s])throw TypeError(n+" is ambiguous");r[s]=i}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function p(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var o=0,i=0;e[t]===c;)o++,t++;for(var n=(e.length-t)*l+1>>>0,s=new Uint8Array(n);e[t];){var d=r[e.charCodeAt(t)];if(255===d)return;for(var p=0,u=n-1;(0!==d||p<i)&&-1!==u;u--,p++)d+=a*s[u]>>>0,s[u]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");i=p,t++}if(" "!==e[t]){for(var f=n-i;f!==n&&0===s[f];)f++;for(var h=new Uint8Array(o+(n-f)),m=o;f!==n;)h[m++]=s[f++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,o=0,i=0,n=t.length;i!==n&&0===t[i];)i++,r++;for(var s=(n-i)*d+1>>>0,l=new Uint8Array(s);i!==n;){for(var p=t[i],u=0,f=s-1;(0!==p||u<o)&&-1!==f;f--,u++)p+=256*l[f]>>>0,l[f]=p%a>>>0,p=p/a>>>0;if(0!==p)throw Error("Non-zero carry");o=u,i++}for(var h=s-o;h!==s&&0===l[h];)h++;for(var m=c.repeat(r);h<s;++h)m+=e.charAt(l[h]);return m},decodeUnsafe:p,decode:function(e){var r=p(e);if(r)return r;throw Error(`Non-${t} character`)}}};class l{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class d{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name}
35 decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return u(this,e)}}class p{constructor(e){this.decoders=e}or(e){return u(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let u=(e,t)=>new p({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class f{constructor(e,t,r,o){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=o,this.encoder=new l(e,t,r),this.decoder=new d(e,t,o)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let h=({name:e,prefix:t,encode:r,decode:o})=>new f(e,t,r,o),m=({prefix:e,name:t,alphabet:r})=>{let{encode:o,decode:i}=c(r,t);return h({prefix:e,name:t,encode:o,decode:e=>s(i(e))})},y=({name:e,prefix:t,bitsPerChar:r,alphabet:o})=>h({prefix:t,name:e,encode:e=>((e,t,r)=>{let o="="===t[t.length-1],i=(1<<r)-1,n="",s=0,a=0;for(let o=0;o<e.length;++o)for(a=a<<8|e[o],s+=8;s>r;)s-=r,n+=t[i&a>>s];if(s&&(n+=t[i&a<<r-s]),o)for(;n.length*r&7;)n+="=";return n})(e,o,r),decode:t=>((e,t,r,o)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let n=e.length;for(;"="===e[n-1];)--n;let s=new Uint8Array(n*r/8|0),a=0,c=0,l=0;for(let t=0;t<n;++t){let n=i[e[t]];if(void 0===n)throw SyntaxError(`Non-${o} character`);c=c<<r|n,(a+=r)>=8&&(a-=8,s[l++]=255&c>>a)}if(a>=r||255&c<<8-a)throw SyntaxError("Unexpected end of data");return s})(t,o,r,e)}),g=m({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"});m({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});let b=y({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5});y({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),y({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),y({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),y({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),y({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),y({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),y({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),y({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});class v{constructor(e,t,r,o){this.code=t,this.version=e,this.multihash=r,this.bytes=o,this.byteOffset=o.byteOffset,this.byteLength=o.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:R,byteLength:R,code:C,version:C,multihash:C,bytes:C,_baseCache:R,asCID:R})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==A)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==S)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return v.createV0(t)}}toV1(){switch(this.version){case 0:{let e,t,r,i,{code:s,digest:c}=this.multihash,l=(e=c.byteLength,i=new Uint8Array((r=(t=o(s))+o(e))+e),n(s,i,0),n(e,i,t),i.set(c,r),new a(s,e,c,i));return v.createV1(this.code,l)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){var t,r;return e&&this.code===e.code&&this.version===e.version&&((t=this.multihash)===(r=e.multihash)||t.code===r.code&&t.size===r.size&&((e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0})(t.bytes,r.bytes))}toString(e){let{bytes:t,version:r,_baseCache:o}=this;return 0===r?k(t,o,e||g.encoder):x(t,o,e||b.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return P(/^0\.0/,j),!!(e&&(e[_]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof v)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:o,bytes:i}=e;return new v(t,r,o,i||E(t,r,o.bytes))}if(null==e||!0!==e[_])return null;{let{version:t,multihash:r,code:o}=e,n=(e=>{let t=s(e),[r,o]=i(t),[n,c]=i(t.subarray(o)),l=t.subarray(o+c);if(l.byteLength!==n)throw Error("Incorrect length");return new a(r,n,l,t)})(r);return v.create(t,o,n)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===A)return new v(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${A}) block encoding`);case 1:{let o=E(e,t,r.bytes);return new v(e,t,r,o)}default:throw Error("Invalid version")}}static createV0(e){return v.create(0,A,e)}static createV1(e,t){return v.create(1,e,t)}static decode(e){let[t,r]=v.decodeFirst(e);
35if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=v.inspectBytes(e),r=t.size-t.multihashSize,o=s(e.subarray(r,r+t.multihashSize));if(o.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=o.subarray(t.multihashSize-t.digestSize),n=new a(t.multihashCode,t.digestSize,i,o);return[0===t.version?v.createV0(n):v.createV1(t.codec,n),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,o]=i(e.subarray(t));return t+=o,r},o=r(),n=A;if(18===o?(o=0,t=0):1===o&&(n=r()),0!==o&&1!==o)throw RangeError(`Invalid CID version ${o}`);let s=t,a=r(),c=r(),l=t+c;return{version:o,codec:n,multihashCode:a,digestSize:c,multihashSize:l-s,size:l}}static parse(e,t){let[r,o]=w(e,t),i=v.decode(o);return i._baseCache.set(r,e),i}}let w=(e,t)=>{switch(e[0]){case"Q":{let r=t||g;return[g.prefix,r.decode(`${g.prefix}${e}`)]}case g.prefix:{let r=t||g;return[g.prefix,r.decode(e)]}case b.prefix:{let r=t||b;return[b.prefix,r.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},k=(e,t,r)=>{let{prefix:o}=r;if(o!==g.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(o);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(o,i),i}},x=(e,t,r)=>{let{prefix:o}=r,i=t.get(o);if(null!=i)return i;{let i=r.encode(e);return t.set(o,i),i}},A=112,S=18,E=(e,t,r)=>{let i=o(e),s=i+o(t),a=new Uint8Array(s+r.byteLength);return n(e,a,0),n(t,a,i),a.set(r,s),a},_=Symbol.for("@ipld/js-cid/CID"),C={writable:!1,configurable:!1,enumerable:!0},R={writable:!1,enumerable:!1,configurable:!1},P=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},j=`CID.isCID(v) is deprecated and will be removed in the next major release. 36Following code pattern: 37 38if (CID.isCID(value)) { 39 doSomethingWithCID(value) 40} 41 42Is replaced with: 43 44const cid = CID.asCID(value) 45if (cid) { 46 // Make sure to use cid instead of value 47 doSomethingWithCID(cid) 48} 49`;e.s(["CID",0,v],342114)},679926,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.BlobRef=r.jsonBlobRef=r.untypedJsonBlobRef=r.typedJsonBlobRef=void 0;let o=e.r(342114),i=e.r(589624),n=e.r(751037);r.typedJsonBlobRef=i.z.object({$type:i.z.literal("blob"),ref:n.schema.cid,mimeType:i.z.string(),size:i.z.number()}).strict(),r.untypedJsonBlobRef=i.z.object({cid:i.z.string(),mimeType:i.z.string()}).strict(),r.jsonBlobRef=i.z.union([r.typedJsonBlobRef,r.untypedJsonBlobRef]),r.BlobRef=class e{constructor(e,t,r,o){Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"mimeType",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"original",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.original=o??{$type:"blob",ref:e,mimeType:t,size:r}}static asBlobRef(t){return n.check.is(t,r.jsonBlobRef)?e.fromJsonRef(t):null}static fromJsonRef(t){return n.check.is(t,r.typedJsonBlobRef)?new e(t.ref,t.mimeType,t.size):new e(o.CID.parse(t.cid),t.mimeType,-1,t)}ipld(){return this.original}toJSON(){return(0,n.ipldToJson)(this.ipld())}}},857013,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.blob=function(e,t,r,n){return n&&n instanceof o.BlobRef?{success:!0,value:n}:{success:!1,error:new i.ValidationError(`${t} should be a blob ref`)}};let o=e.r(679926),i=e.r(128999)},697561,(e,t,r)=>{(()=>{"use strict";var e={d:(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function o(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 i(e){var t=/\D/.exec(e);return t?t[0]:""}function n(e,t,r){void 0===t&&(t=":"),void 0===r&&(r=!1);var o,n=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 n.test(e);
49if(/Z$/.test(e))return n.test(e.replace("Z",""));var s=e.includes("+"),a=e.split(/[+-]/),c=a[0],l=a[1];return n.test(c)&&(void 0===(o=i(l))&&(o=":"),new RegExp(s?"^(0(?!(2"+o+"4)|0"+o+"3)|1(?=([0-1]|2(?="+o+"[04])|[34](?="+o+"0))))([03469](?="+o+"[03])|[17](?="+o+"0)|2(?="+o+"[04])|5(?="+o+"[034])|8(?="+o+"[04]))"+o+"([03](?=0)|4(?=5))[05]$":"^(0(?=[^0])|1(?=[0-2]))([39](?="+o+"[03])|[0-24-8](?="+o+"00))"+o+"[03]0$").test(l))}function s(e){var t=e.split("T"),r=t[0],s=t[1],a=o(r,i(r));if(!s)return!1;var c,l=Array.isArray(c=s.match(/([^Z+\-\d])(?=\d+\1)/))?c[0]:"";return a&&n(s,l,!0)}function a(e,t){return void 0===t&&(t="-"),RegExp("^[0-9]{4}"+t+"(0(?=[^0])|1(?=[0-2]))[0-9]$").test(e)}for(var c in e.r(t),e.d(t,{isValidDate:()=>o,isValidISODateString:()=>s,isValidTime:()=>n,isValidYearMonth:()=>a}),t)r[c]=t[c];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})()},14639,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.datetime=function(e,t){try{if(!(0,o.isValidISODateString)(t))throw Error()}catch{return{success:!1,error:new a.ValidationError(`${e} must be an valid atproto datetime (both RFC-3339 and ISO-8601)`)}}return{success:!0,value:t}},r.uri=function(e,t){return(0,s.isValidUri)(t)?{success:!0,value:t}:{success:!1,error:new a.ValidationError(`${e} must be a uri`)}},r.atUri=function(e,t){try{(0,s.ensureValidAtUri)(t)}catch{return{success:!1,error:new a.ValidationError(`${e} must be a valid at-uri`)}}return{success:!0,value:t}},r.did=c,r.handle=l,r.atIdentifier=function(e,t){if(t.startsWith("did:")){let r=c(e,t);if(r.success)return r}else{let r=l(e,t);if(r.success)return r}return{success:!1,error:new a.ValidationError(`${e} must be a valid did or a handle`)}},r.nsid=function(e,t){return(0,s.isValidNsid)(t)?{success:!0,value:t}:{success:!1,error:new a.ValidationError(`${e} must be a valid nsid`)}},r.cid=function(e,t){try{i.CID.parse(t)}catch{return{success:!1,error:new a.ValidationError(`${e} must be a cid string`)}}return{success:!0,value:t}},r.language=function(e,t){return(0,n.validateLanguage)(t)?{success:!0,value:t}:{success:!1,error:new a.ValidationError(`${e} must be a well-formed BCP 47 language tag`)}},r.tid=function(e,t){return(0,s.isValidTid)(t)?{success:!0,value:t}:{success:!1,error:new a.ValidationError(`${e} must be a valid TID`)}},r.recordKey=function(e,t){try{(0,s.ensureValidRecordKey)(t)}catch{return{success:!1,error:new a.ValidationError(`${e} must be a valid Record Key`)}}return{success:!0,value:t}};let o=e.r(697561),i=e.r(342114),n=e.r(751037),s=e.r(332007),a=e.r(128999);function c(e,t){try{(0,s.ensureValidDid)(t)}catch{return{success:!1,error:new a.ValidationError(`${e} must be a valid did`)}}return{success:!0,value:t}}function l(e,t){try{(0,s.ensureValidHandle)(t)}catch{return{success:!1,error:new a.ValidationError(`${e} must be a valid handle`)}}return{success:!0,value:t}}},527645,(e,t,r)=>{"use strict";var o,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&i(t,e,r[s]);return n(t,e),t});Object.defineProperty(r,"__esModule",{value:!0}),r.validate=function(e,t,r,o){var i,n,s,p,u,f,h,m,y,g,b,v,w;switch(r.type){case"boolean":let k;return i=t,n=r,"undefined"==(k=typeof(s=o))?"boolean"==typeof n.default?{success:!0,value:n.default}:{success:!1,error:new l.ValidationError(`${i} must be a boolean`)}:"boolean"!==k?{success:!1,error:new l.ValidationError(`${i} must be a boolean`)}:"boolean"==typeof n.const&&s!==n.const?{success:!1,error:new l.ValidationError(`${i} must be ${n.const}`)}:{success:!0,value:s};
49case"integer":return p=t,u=r,void 0===(f=o)?"number"==typeof u.default?{success:!0,value:u.default}:{success:!1,error:new l.ValidationError(`${p} must be an integer`)}:Number.isInteger(f)?"number"==typeof u.const&&f!==u.const?{success:!1,error:new l.ValidationError(`${p} must be ${u.const}`)}:Array.isArray(u.enum)&&!u.enum.includes(f)?{success:!1,error:new l.ValidationError(`${p} must be one of (${u.enum.join("|")})`)}:"number"==typeof u.maximum&&f>u.maximum?{success:!1,error:new l.ValidationError(`${p} can not be greater than ${u.maximum}`)}:"number"==typeof u.minimum&&f<u.minimum?{success:!1,error:new l.ValidationError(`${p} can not be less than ${u.minimum}`)}:{success:!0,value:f}:{success:!1,error:new l.ValidationError(`${p} must be an integer`)};case"string":return function(e,t,r){if(void 0===r)return"string"==typeof t.default?{success:!0,value:t.default}:{success:!1,error:new l.ValidationError(`${e} must be a string`)};if("string"!=typeof r)return{success:!1,error:new l.ValidationError(`${e} must be a string`)};if("string"==typeof t.const&&r!==t.const)return{success:!1,error:new l.ValidationError(`${e} must be ${t.const}`)};if(Array.isArray(t.enum)&&!t.enum.includes(r))return{success:!1,error:new l.ValidationError(`${e} must be one of (${t.enum.join("|")})`)};if("number"==typeof t.minLength||"number"==typeof t.maxLength){if("number"==typeof t.minLength&&3*r.length<t.minLength)return{success:!1,error:new l.ValidationError(`${e} must not be shorter than ${t.minLength} characters`)};let o=!1;if(void 0===t.minLength&&"number"==typeof t.maxLength&&3*r.length<=t.maxLength&&(o=!0),!o){let o=(0,c.utf8Len)(r);if("number"==typeof t.maxLength&&o>t.maxLength)return{success:!1,error:new l.ValidationError(`${e} must not be longer than ${t.maxLength} characters`)};if("number"==typeof t.minLength&&o<t.minLength)return{success:!1,error:new l.ValidationError(`${e} must not be shorter than ${t.minLength} characters`)}}}if("number"==typeof t.maxGraphemes||"number"==typeof t.minGraphemes){let o=!1,i=!1;if("number"==typeof t.maxGraphemes&&(o=!(r.length<=t.maxGraphemes)),"number"==typeof t.minGraphemes)if(r.length<t.minGraphemes)return{success:!1,error:new l.ValidationError(`${e} must not be shorter than ${t.minGraphemes} graphemes`)};else i=!0;if(o||i){let o=(0,c.graphemeLen)(r);if("number"==typeof t.maxGraphemes&&o>t.maxGraphemes)return{success:!1,error:new l.ValidationError(`${e} must not be longer than ${t.maxGraphemes} graphemes`)};if("number"==typeof t.minGraphemes&&o<t.minGraphemes)return{success:!1,error:new l.ValidationError(`${e} must not be shorter than ${t.minGraphemes} graphemes`)}}}if("string"==typeof t.format)switch(t.format){case"datetime":return d.datetime(e,r);case"uri":return d.uri(e,r);case"at-uri":return d.atUri(e,r);case"did":return d.did(e,r);case"handle":return d.handle(e,r);case"at-identifier":return d.atIdentifier(e,r);case"nsid":return d.nsid(e,r);case"cid":return d.cid(e,r);case"language":return d.language(e,r);case"tid":return d.tid(e,r);case"record-key":return d.recordKey(e,r)}return{success:!0,value:r}}(t,r,o);case"bytes":return h=t,m=r,(y=o)&&y instanceof Uint8Array?"number"==typeof m.maxLength&&y.byteLength>m.maxLength?{success:!1,error:new l.ValidationError(`${h} must not be larger than ${m.maxLength} bytes`)}:"number"==typeof m.minLength&&y.byteLength<m.minLength?{success:!1,error:new l.ValidationError(`${h} must not be smaller than ${m.minLength} bytes`)}:{success:!0,value:y}:{success:!1,error:new l.ValidationError(`${h} must be a byte array`)};case"cid-link":return g=t,b=o,null===a.CID.asCID(b)?{success:!1,error:new l.ValidationError(`${g} must be a CID`)}:{success:!0,value:b};case"unknown":return v=t,(w=o)&&"object"==typeof w?{success:!0,value:w}:{success:!1,error:new l.ValidationError(`${v} must be an object`)};default:return{success:!1,error:new l.ValidationError(`Unexpected lexicon type: ${r.type}`)}}};let a=e.r(342114),c=e.r(751037),l=e.r(128999),d=s(e.r(14639))},803375,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.validate=a,r.array=c,r.object=l,r.validateOneOf=d;let o=e.r(128999),i=e.r(84070),n=e.r(857013),s=e.r(527645);function a(e,t,r,o){switch(r.type){case"object":return l(e,t,r,o);case"array":return c(e,t,r,o);case"blob":return(0,n.blob)(e,t,r,o);default:return(0,s.validate)(e,t,r,o)}}function c(e,t,r,i){if(!Array.isArray(i))return{success:!1,error:new o.ValidationError(`${t} must be an array`)};if("number"==typeof r.maxLength&&i.length>r.maxLength)return{success:!1,error:new o.ValidationError(`${t} must not have more than ${r.maxLength} elements`)};if("number"==typeof r.minLength&&i.length<r.minLength)return{success:!1,error:new o.ValidationError(`${t} must not have fewer than ${r.minLength} elements`)};let n=r.items;for(let r=0;r<i.length;r++){let o=i[r],s=d(e,`${t}/${r}`,n,o);if(!s.success)return s}return{success:!0,value:i}}
49function l(e,t,r,i){if(!(0,o.isObj)(i))return{success:!1,error:new o.ValidationError(`${t} must be an object`)};let n=i;if("properties"in r&&null!=r.properties)for(let s in r.properties){let a=i[s];if(null===a&&r.nullable?.includes(s))continue;let c=r.properties[s];if(void 0===a&&!r.required?.includes(s)){if("integer"!==c.type&&"boolean"!==c.type&&"string"!==c.type)continue;else if(void 0===c.default)continue}let l=d(e,`${t}/${s}`,c,a),p=l.success?l.value:a;if(void 0===p){if(r.required?.includes(s))return{success:!1,error:new o.ValidationError(`${t} must have the property "${s}"`)}}else if(!l.success)return l;p!==a&&(n===i&&(n={...i}),n[s]=p)}return{success:!0,value:n}}function d(e,t,r,i,n=!1){let s;if("union"===r.type){if(!(0,o.isDiscriminatedObject)(i))return{success:!1,error:new o.ValidationError(`${t} must be an object which includes the "$type" property`)};if(!p(r.refs,i.$type))return r.closed?{success:!1,error:new o.ValidationError(`${t} $type must be one of ${r.refs.join(", ")}`)}:{success:!0,value:i};s=e.getDefOrThrow(i.$type)}else s="ref"===r.type?e.getDefOrThrow(r.ref):r;return n?l(e,t,s,i):a(e,t,s,i)}let p=(e,t)=>{let r=(0,i.toLexUri)(t);return!!e.includes(r)||(r.endsWith("#main")?e.includes(r.slice(0,-5)):!r.includes("#")&&e.includes(`${r}#main`))}},76541,(e,t,r)=>{"use strict";var o,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=e.e&&e.e.__importStar||(o=function(e){return(o=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=o(e),s=0;s<r.length;s++)"default"!==r[s]&&i(t,e,r[s]);return n(t,e),t});Object.defineProperty(r,"__esModule",{value:!0}),r.params=function(e,t,r,o){let i=o&&"object"==typeof o?o:{},n=new Set(r.required??[]),s=i;if("object"==typeof r.properties)for(let o in r.properties){let d=r.properties[o],p="array"===d.type?(0,c.array)(e,o,d,i[o]):l.validate(e,o,d,i[o]),u=p.success?p.value:i[o],f=void 0===u;if(f&&n.has(o))return{success:!1,error:new a.ValidationError(`${t} must have the property "${o}"`)};if(!f&&!p.success)return p;u!==i[o]&&(s===i&&(s={...i}),s[o]=u)}return{success:!0,value:s}};let a=e.r(128999),c=e.r(803375),l=s(e.r(527645))},740934,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertValidRecord=function(e,t,r){let i=(0,o.object)(e,"Record",t.record,r);if(!i.success)throw i.error;return i.value},r.assertValidXrpcParams=function(e,t,r){if(t.parameters){let o=(0,i.params)(e,"Params",t.parameters,r);if(!o.success)throw o.error;return o.value}},r.assertValidXrpcInput=function(e,t,r){if(t.input?.schema)return n(e,"Input",t.input.schema,r,!0)},r.assertValidXrpcOutput=function(e,t,r){if(t.output?.schema)return n(e,"Output",t.output.schema,r,!0)},r.assertValidXrpcMessage=function(e,t,r){if(t.message?.schema)return n(e,"Message",t.message.schema,r,!0)};let o=e.r(803375),i=e.r(76541);function n(e,t,r,i,s=!1){let a=(0,o.validateOneOf)(e,t,r,i,s);if(!a.success)throw a.error;return a.value}},738052,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Lexicons=void 0;let o=e.r(128999),i=e.r(84070),n=e.r(740934),s=e.r(803375);class a{constructor(e){if(Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"defs",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),e)for(const t of e)this.add(t)}[Symbol.iterator](){return this.docs.values()}add(e){let t=(0,i.toLexUri)(e.id);if(this.docs.has(t))throw Error(`${t} has already been registered`);for(let[r,o]of(function e(t,r){for(let o in t)"ref"===t.type?t.ref=(0,i.toLexUri)(t.ref,r):"union"===t.type?t.refs=t.refs.map(e=>(0,i.toLexUri)(e,r)):Array.isArray(t[o])?t[o]=t[o].map(t=>"string"==typeof t?t.startsWith("#")?(0,i.toLexUri)(t,r):t:t&&"object"==typeof t?e(t,r):t):t[o]&&"object"==typeof t[o]&&
49(t[o]=e(t[o],r));return t}(e,t),this.docs.set(t,e),c(e)))this.defs.set(r,o)}remove(e){e=(0,i.toLexUri)(e);let t=this.docs.get(e);if(!t)throw Error(`Unable to remove "${e}": does not exist`);for(let[e,r]of c(t))this.defs.delete(e);this.docs.delete(e)}get(e){return e=(0,i.toLexUri)(e),this.docs.get(e)}getDef(e){return e=(0,i.toLexUri)(e),this.defs.get(e)}getDefOrThrow(e,t){let r=this.getDef(e);if(!r)throw new o.LexiconDefNotFoundError(`Lexicon not found: ${e}`);if(t&&!t.includes(r.type))throw new o.InvalidLexiconError(`Not a ${t.join(" or ")} lexicon: ${e}`);return r}validate(e,t){if(!(0,o.isObj)(t))throw new o.ValidationError("Value must be an object");let r=(0,i.toLexUri)(e),n=this.getDefOrThrow(r,["record","object"]);if("record"===n.type)return(0,s.object)(this,"Record",n.record,t);if("object"===n.type)return(0,s.object)(this,"Object",n,t);throw new o.InvalidLexiconError("Definition must be a record or object")}assertValidRecord(e,t){if(!(0,o.isObj)(t))throw new o.ValidationError("Record must be an object");if(!("$type"in t))throw new o.ValidationError("Record/$type must be a string");let{$type:r}=t;if("string"!=typeof r)throw new o.ValidationError("Record/$type must be a string");let s=(0,i.toLexUri)(e);if((0,i.toLexUri)(r)!==s)throw new o.ValidationError(`Invalid $type: must be ${s}, got ${r}`);let a=this.getDefOrThrow(s,["record"]);return(0,n.assertValidRecord)(this,a,t)}assertValidXrpcParams(e,t){e=(0,i.toLexUri)(e);let r=this.getDefOrThrow(e,["query","procedure","subscription"]);return(0,n.assertValidXrpcParams)(this,r,t)}assertValidXrpcInput(e,t){e=(0,i.toLexUri)(e);let r=this.getDefOrThrow(e,["procedure"]);return(0,n.assertValidXrpcInput)(this,r,t)}assertValidXrpcOutput(e,t){e=(0,i.toLexUri)(e);let r=this.getDefOrThrow(e,["query","procedure"]);return(0,n.assertValidXrpcOutput)(this,r,t)}assertValidXrpcMessage(e,t){e=(0,i.toLexUri)(e);let r=this.getDefOrThrow(e,["subscription"]);return(0,n.assertValidXrpcMessage)(this,r,t)}resolveLexUri(e,t){return e=(0,i.toLexUri)(e),(0,i.toLexUri)(t,e)}}function*c(e){for(let t in e.defs)yield[`lex:${e.id}#${t}`,e.defs[t]],"main"===t&&(yield[`lex:${e.id}`,e.defs[t]])}r.Lexicons=a},463130,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.jsonStringToLex=r.jsonToLex=r.stringifyLex=r.lexToJson=r.ipldToLex=r.lexToIpld=void 0;let o=e.r(342114),i=e.r(751037),n=e.r(679926);r.lexToIpld=e=>{if(Array.isArray(e))return e.map(e=>(0,r.lexToIpld)(e));if(e&&"object"==typeof e){if(e instanceof n.BlobRef)return e.original;if(o.CID.asCID(e)||e instanceof Uint8Array)return e;let t={};for(let o of Object.keys(e))t[o]=(0,r.lexToIpld)(e[o]);return t}return e},r.ipldToLex=e=>{if(Array.isArray(e))return e.map(e=>(0,r.ipldToLex)(e));if(e&&"object"==typeof e){if(("blob"===e.$type||"string"==typeof e.cid&&"string"==typeof e.mimeType)&&i.check.is(e,n.jsonBlobRef))return n.BlobRef.fromJsonRef(e);if(o.CID.asCID(e)||e instanceof Uint8Array)return e;let t={};for(let o of Object.keys(e))t[o]=(0,r.ipldToLex)(e[o]);return t}return e},r.lexToJson=e=>(0,i.ipldToJson)((0,r.lexToIpld)(e)),r.stringifyLex=e=>JSON.stringify((0,r.lexToJson)(e)),r.jsonToLex=e=>(0,r.ipldToLex)((0,i.jsonToIpld)(e)),r.jsonStringToLex=e=>(0,r.jsonToLex)(JSON.parse(e))},230596,(e,t,r)=>{"use strict";var o=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(128999),r),i(e.r(738052),r),i(e.r(679926),r),i(e.r(463130),r)},277087,(e,t,r)=>{"use strict";var o,i;Object.defineProperty(r,"__esModule",{value:!0}),r.XRPCInvalidResponseError=r.XRPCError=r.XRPCResponse=r.ResponseTypeStrings=r.ResponseType=r.errorResponseBody=void 0,r.httpResponseCodeToEnum=s,r.httpResponseCodeToName=a,r.httpResponseCodeToString=c;let n=e.r(589624);function s(e){if(e in o)return e;if(e>=100&&e<200)return o.XRPCNotSupported;if(e>=200&&e<300)return o.Success;if(e>=300&&e<400)return o.XRPCNotSupported;if(e>=400&&e<500)return o.InvalidRequest;else return o.InternalServerError}function a(e){return o[s(e)]}function c(e){return r.ResponseTypeStrings[s(e)]}r.errorResponseBody=n.z.object({error:n.z.string().optional(),message:n.z.string().optional()}),(i=o||(r.ResponseType=o={}))[i.Unknown=1]="Unknown",i[i.InvalidResponse=2]="InvalidResponse",i[i.Success=200]="Success",i[i.InvalidRequest=400]="InvalidRequest",i[i.AuthenticationRequired=401]="AuthenticationRequired",i[i.Forbidden=403]="Forbidden",i[i.XRPCNotSupported=404]="XRPCNotSupported",i[i.NotAcceptable=406]="NotAcceptable",i[i.PayloadTooLarge=413]="PayloadTooLarge",i[i.UnsupportedMediaType=415]="UnsupportedMediaType",i[i.RateLimitExceeded=429]="RateLimitExceeded",i[i.InternalServerError=500]="InternalServerError",i[i.MethodNotImplemented=501]="MethodNotImplemented",i[i.UpstreamFailure=502]="UpstreamFailure",i[i.NotEnoughResources=503]="NotEnoughResources",i[i.UpstreamTimeout=504]="UpstreamTimeout",r.ResponseTypeStrings={[o.Unknown]:"Unknown",[o.InvalidResponse]:"Invalid Response",[o.Success]:"Success",[o.InvalidRequest]:"Invalid Request",[o.AuthenticationRequired]:"Authentication Required",[o.Forbidden]:"Forbidden",[o.XRPCNotSupported]:"XRPC Not Supported",[o.NotAcceptable]:"Not Acceptable",[o.PayloadTooLarge]:"Payload Too Large",[o.UnsupportedMediaType]:"Unsupported Media Type",[o.RateLimitExceeded]:"Rate Limit Exceeded",[o.InternalServerError]:"Internal Server Error",[o.MethodNotImplemented]:"Method Not Implemented",[o.UpstreamFailure]:"Upstream Failure",[o.NotEnoughResources]:"Not Enough Resources",[o.UpstreamTimeout]:"Upstream Timeout"},r.XRPCResponse=class{constructor(e,t){Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:t}
49),Object.defineProperty(this,"success",{enumerable:!0,configurable:!0,writable:!0,value:!0})}};class l extends Error{constructor(e,t=a(e),r,o,i){super(r||t||c(e),i),Object.defineProperty(this,"error",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:o}),Object.defineProperty(this,"success",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.status=s(e);const n=i?.cause;void 0===this.cause&&void 0!==n&&(this.cause=n)}static from(e,t){if(e instanceof l)return e;let r=e instanceof Error?e:void 0,i=e instanceof Response?e:e?.response instanceof Response?e.response:void 0,n=r?.statusCode??r?.status??i?.status;return new l("number"==typeof n?s(n):t??o.Unknown,void 0,r?.message??String(e),i?Object.fromEntries(i.headers.entries()):void 0,{cause:e})}}r.XRPCError=l,r.XRPCInvalidResponseError=class extends l{constructor(e,t,i){super(o.InvalidResponse,r.ResponseTypeStrings[o.InvalidResponse],"The server gave an invalid response and may be out of date.",void 0,{cause:t}),Object.defineProperty(this,"lexiconNsid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"validationError",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"responseBody",{enumerable:!0,configurable:!0,writable:!0,value:i})}}},662954,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isErrorResponseBody=function(e){return i.errorResponseBody.safeParse(e).success},r.getMethodSchemaHTTPMethod=function(e){return"procedure"===e.type?"post":"get"},r.constructMethodCallUri=function(e,t,r,o){return new URL(s(e,t,o),r).toString()},r.constructMethodCallUrl=s,r.encodeQueryParam=a,r.constructMethodCallHeaders=function(e,t,r){let o=new Headers;if(r?.headers)for(let e in r.headers){if(o.has(e))throw TypeError(`Duplicate header: ${e}`);let t=r.headers[e];null!=t&&o.set(e,t)}if("procedure"===e.type){if(r?.encoding)o.set("content-type",r.encoding);else if(!o.has("content-type")&&void 0!==t)if(t instanceof ArrayBuffer||t instanceof n||ArrayBuffer.isView(t))o.set("content-type","application/octet-stream");else if(t instanceof FormData)o.set("content-type","multipart/form-data");else if(t instanceof URLSearchParams)o.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");else if(c(t))o.set("content-type",t.type||"application/octet-stream");else if("string"==typeof t)o.set("content-type","text/plain;charset=UTF-8");else if(d(t))o.set("content-type","application/octet-stream");else if("boolean"==typeof t||"number"==typeof t||"string"==typeof t||"object"==typeof t)o.set("content-type","application/json");else throw new i.XRPCError(i.ResponseType.InvalidRequest,`Unsupported data type: ${typeof t}`)}return o},r.combineHeaders=function(e,t){let r;if(!t)return e;for(let[o,i]of t){if(void 0===i||(r??(r=new Headers(e)),r.has(o)))continue;let t="function"==typeof i?i():i;if("string"==typeof t)r.set(o,t);else if(null===t)r.delete(o);else throw TypeError(`Invalid "${o}" header value: ${typeof t}`)}return r??e},r.isBodyInit=l,r.isIterable=d,r.encodeMethodCallBody=function(e,t){let r=e.get("content-type");if(!r)return;if(void 0===t)throw new i.XRPCError(i.ResponseType.InvalidRequest,"A request body is expected but none was provided");if(l(t))return t instanceof FormData&&"multipart/form-data"===r&&e.delete("content-type"),t;if(d(t)){var s=t;if("from"in n&&"function"==typeof n.from)return n.from(s);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 co
49de to use a different body type.")}if(r.startsWith("text/"))return new TextEncoder().encode(String(t));if(r.startsWith("application/json")){let e=(0,o.stringifyLex)(t);if(void 0===e)throw new i.XRPCError(i.ResponseType.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 i.XRPCError(i.ResponseType.InvalidRequest,`Unable to encode ${a} as ${r} data`)},r.httpResponseBodyParse=function(e,t){try{if(e){if(e.includes("application/json")){let e=new TextDecoder().decode(t);return(0,o.jsonStringToLex)(e)}if(e.startsWith("text/"))return new TextDecoder().decode(t)}if(t instanceof ArrayBuffer)return new Uint8Array(t);return t}catch(e){throw new i.XRPCError(i.ResponseType.InvalidResponse,void 0,`Failed to parse response body: ${String(e)}`,void 0,{cause:e})}};let o=e.r(230596),i=e.r(277087),n=globalThis.ReadableStream||class{constructor(){throw Error("ReadableStream is not supported in this environment")}};function s(e,t,r){let o=`/xrpc/${encodeURIComponent(e)}`;if(!r)return o;let i=[];for(let[e,o]of Object.entries(r)){let r=t.parameters?.properties?.[e];if(!r)throw Error(`Invalid query parameter: ${e}`);if(void 0!==o)if("array"===r.type)for(let t of Array.isArray(o)?o:[o])i.push([e,a(r.items.type,t)]);else i.push([e,a(r.type,o)])}return i.length?`${o}?${new URLSearchParams(i).toString()}`:o}function a(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 c(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 l(e){switch(typeof e){case"string":return!0;case"object":return e instanceof ArrayBuffer||e instanceof FormData||e instanceof URLSearchParams||e instanceof n||ArrayBuffer.isView(e)||c(e);default:return!1}}function d(e){return null!=e&&"object"==typeof e&&(Symbol.iterator in e||Symbol.asyncIterator in e)}},667475,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.buildFetchHandler=function(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:i=globalThis.fetch}="string"==typeof e||e instanceof URL?{service:e}:e;if("function"!=typeof i)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 s=new URL(e,"function"==typeof t?t():t),a=(0,o.combineHeaders)(r.headers,n);return i(s,{...r,headers:a})}};let o=e.r(662954)},483771,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.XrpcClient=void 0;let o=e.r(230596),i=e.r(667475),n=e.r(277087),s=e.r(662954);r.XrpcClient=class{constructor(e,t){Object.defineProperty(this,"fetchHandler",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"lex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fetchHandler=(0,i.buildFetchHandler)(e),this.lex=t instanceof o.Lexicons?t:new o.Lexicons(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 a=this.lex.getDefOrThrow(e);if(!a||"query"!==a.type&&"procedure"!==a.type)throw TypeError(`Invalid lexicon: ${e}. Must be a query or procedure.`);let c=(0,s.constructMethodCallUrl)(e,a,t),l=(0,s.getMethodSchemaHTTPMethod)(a),d=(0,s.constructMethodCallHeaders)(a,r,i),p=(0,s.encodeMethodCallBody)(d,r),u={method:l,headers:(0,s.combineHeaders)(d,this.headers),body:p,duplex:"half",redirect:"follow",signal:i?.signal};try{let t=await this.fetchHandler.call(void 0,c,u),r=t.status,i=Object.fromEntries(t.headers.entries()),a=await t.arrayBuffer(),l=(0,s.httpResponseBodyParse)(t.headers.get("content-type"),a),d=(0,n.httpResponseCodeToEnum)(r);if(d!==n.ResponseType.Success){let{error:e,message:t}=l&&(0,s.isErrorResponseBody)(l)?l:{};throw new n.XRPCError(d,e,t,i)}try{this.lex.assertValidXrpcOutput(e,l)}catch(t){if(t instanceof o.ValidationError)throw new n.XRPCInvalidResponseError(e,t,l);throw t}return new n.XRPCResponse(l,i)}catch(e){throw n.XRPCError.from(e)}}}},389843,(e,t,r)=>{"use strict";
49Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceClient=r.Client=void 0;let o=e.r(230596),i=e.r(662954),n=e.r(483771);r.Client=class{constructor(){Object.defineProperty(this,"lex",{enumerable:!0,configurable:!0,writable:!0,value:new o.Lexicons})}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,o,i){return this.service(e).call(t,r,o,i)}service(e){return new s(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 s extends n.XrpcClient{constructor(e,t){super(async(e,t)=>{let r=(0,i.combineHeaders)(t.headers,Object.entries(this.headers));return fetch(new URL(e,this.uri),{...t,headers:r})},e.lex),Object.defineProperty(this,"baseClient",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"uri",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.uri="string"==typeof t?new URL(t):t}}r.ServiceClient=s},639829,(e,t,r)=>{"use strict";var o=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(389843),r),i(e.r(667475),r),i(e.r(277087),r),i(e.r(662954),r),i(e.r(483771),r),r.default=new(e.r(389843)).Client},248787,265658,e=>{"use strict";var t,r,o,i=w(),n=e=>y(e,i),s=w();n.write=e=>y(e,s);var a=w();n.onStart=e=>y(e,a);var c=w();n.onFrame=e=>y(e,c);var l=w();n.onFinish=e=>y(e,l);var d=[];n.setTimeout=(e,t)=>{let r=n.now()+t,o=()=>{let e=d.findIndex(e=>e.cancel==o);~e&&d.splice(e,1),h-=!!~e},i={time:r,handler:e,cancel:o};return d.splice(p(r),0,i),h+=1,g(),i};var p=e=>~(~d.findIndex(t=>t.time>e)||~d.length);n.cancel=e=>{a.delete(e),c.delete(e),l.delete(e),i.delete(e),s.delete(e)},n.sync=e=>{m=!0,n.batchedUpdates(e),m=!1},n.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function o(...e){t=e,n.onStart(r)}return o.handler=e,o.cancel=()=>{a.delete(r),t=null},o};var u="u">typeof window?window.requestAnimationFrame:()=>{};n.use=e=>u=e,n.now="u">typeof performance?()=>performance.now():Date.now,n.batchedUpdates=e=>e(),n.catch=console.error,n.frameLoop="always",n.advance=()=>{"demand"!==n.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):v()};var f=-1,h=0,m=!1;function y(e,t){m?(t.delete(e),e(0)):(t.add(e),g())}function g(){f<0&&(f=0,"demand"!==n.frameLoop&&u(b))}function b(){~f&&(u(b),n.batchedUpdates(v))}function v(){let e=f,t=p(f=n.now());(t&&(k(d.splice(0,t),e=>e.handler()),h-=t),h)?(a.flush(),i.flush(e?Math.min(64,f-e):16.667),c.flush(),s.flush(),l.flush()):f=-1}function w(){let e=new Set,t=e;return{add(r){h+=+!(t!=e||e.has(r)),e.add(r)},delete:r=>(h-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,h-=t.size,k(t,t=>t(r)&&e.add(t)),h+=e.size,t=e)}}}function k(e,t){e.forEach(e=>{try{t(e)}catch(e){n.catch(e)}})}var x=e.i(271645),A=Object.defineProperty,S={},E={assign:()=>z,colors:()=>M,createStringInterpolator:()=>t,skipAnimation:()=>L,to:()=>r,willAdvance:()=>B};for(var _ in E)A(S,_,{get:E[_],enumerable:!0});function C(){}var R={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function P(e,t){if(R.arr(e)){if(!R.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}function j(e,t,r){if(R.arr(e)){for(let o=0;o<e.length;o++)t.call(r,e[o],`${o}`);return}for(let o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o)}var I=e=>R.und(e)?[]:R.arr(e)?e:[e];function T(e,t){if(e.size){let r=Array.from(e);e.clear(),r.forEach(t)}}var O=(e,...t)=>T(e,e=>e(...t)),D=()=>"u"<typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),M=null,
49L=!1,B=C,z=e=>{e.to&&(r=e.to),e.now&&(n.now=e.now),void 0!==e.colors&&(M=e.colors),null!=e.skipAnimation&&(L=e.skipAnimation),e.createStringInterpolator&&(t=e.createStringInterpolator),e.requestAnimationFrame&&n.use(e.requestAnimationFrame),e.batchedUpdates&&(n.batchedUpdates=e.batchedUpdates),e.willAdvance&&(B=e.willAdvance),e.frameLoop&&(n.frameLoop=e.frameLoop)},q=new Set,V=[],N=[],U=0,F={get idle(){return!q.size&&!V.length},start(e){U>e.priority?(q.add(e),n.onStart($)):(G(e),n(Z))},advance:Z,sort(e){if(U)n.onFrame(()=>F.sort(e));else{let t=V.indexOf(e);~t&&(V.splice(t,1),H(e))}},clear(){V=[],q.clear()}};function $(){q.forEach(G),q.clear(),n(Z)}function G(e){V.includes(e)||H(e)}function H(e){var t,r;let o;V.splice((t=V,r=t=>t.priority>e.priority,(o=t.findIndex(r))<0?t.length:o),0,e)}function Z(e){let t=N;for(let r=0;r<V.length;r++){let o=V[r];U=o.priority,!o.idle&&(B(o),o.advance(e),o.idle||t.push(o))}return U=0,(N=V).length=0,(V=t).length>0}var K="[-+]?\\d*\\.?\\d+",W=K+"%";function X(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var J=RegExp("rgb"+X(K,K,K)),Q=RegExp("rgba"+X(K,K,K,K)),Y=RegExp("hsl"+X(K,W,W)),ee=RegExp("hsla"+X(K,W,W,K)),et=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,er=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,eo=/^#([0-9a-fA-F]{6})$/,ei=/^#([0-9a-fA-F]{8})$/;function en(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}function es(e,t,r){let o=r<.5?r*(1+t):r+t-r*t,i=2*r-o;return Math.round(255*en(i,o,e+1/3))<<24|Math.round(255*en(i,o,e))<<16|Math.round(255*en(i,o,e-1/3))<<8}function ea(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function el(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ed(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function ep(e){let t,r="number"==typeof e?e>>>0===e&&e>=0&&e<=0xffffffff?e:null:(t=eo.exec(e))?parseInt(t[1]+"ff",16)>>>0:M&&void 0!==M[e]?M[e]:(t=J.exec(e))?(ea(t[1])<<24|ea(t[2])<<16|ea(t[3])<<8|255)>>>0:(t=Q.exec(e))?(ea(t[1])<<24|ea(t[2])<<16|ea(t[3])<<8|el(t[4]))>>>0:(t=et.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ei.exec(e))?parseInt(t[1],16)>>>0:(t=er.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Y.exec(e))?(255|es(ec(t[1]),ed(t[2]),ed(t[3])))>>>0:(t=ee.exec(e))?(es(ec(t[1]),ed(t[2]),ed(t[3]))|el(t[4]))>>>0:null;if(null===r)return e;let o=(0xff000000&(r=r||0))>>>24,i=(0xff0000&r)>>>16,n=(65280&r)>>>8,s=(255&r)/255;return`rgba(${o}, ${i}, ${n}, ${s})`}var eu=(e,r,o)=>{if(R.fun(e))return e;if(R.arr(e))return eu({range:e,output:r,extrapolate:o});if(R.str(e.output[0]))return t(e);let i=e.output,n=e.range||[0,1],s=e.extrapolateLeft||e.extrapolate||"extend",a=e.extrapolateRight||e.extrapolate||"extend",c=e.easing||(e=>e);return t=>{let r=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(t,n);return function(e,t,r,o,i,n,s,a,c){let l=c?c(e):e;if(l<t)if("identity"===s)return l;else"clamp"===s&&(l=t);if(l>r)if("identity"===a)return l;else"clamp"===a&&(l=r);return o===i?o:t===r?e<=t?o:i:(t===-1/0?l=-l:r===1/0?l-=t:l=(l-t)/(r-t),l=n(l),o===-1/0?l=-l:i===1/0?l+=o:l=l*(i-o)+o,l)}(t,n[r],n[r+1],i[r],i[r+1],c,s,a,e.map)}},ef=Symbol.for("FluidValue.get"),eh=Symbol.for("FluidValue.observers"),em=e=>!!(e&&e[ef]),ey=e=>e&&e[ef]?e[ef]():e,eg=e=>e[eh]||null;function eb(e,t){let r=e[eh];r&&r.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var ev=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ew(this,e)}},ew=(e,t)=>eA(e,ef,t);function ek(e,t){if(e[ef]){let r=e[eh];r||eA(e,eh,r=new Set),!r.has(t)&&(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function ex(e,t){let r=e[eh];if(r&&r.has(t)){let o=r.size-1;o?r.delete(t):e[eh]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var eA=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),eS=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,e_=RegExp(`(${eS.source})(%|[a-z]+)`,"i"),eC=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eR=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eP=e=>{let[t,r]=ej(e);if(!t||D())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(r&&r.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(e)return e}else if(r&&eR.test(r))return eP(r);else if(r)return r;return e},ej=e=>{let t=eR.exec(e);if(!t)return[,];let[,r,o]=t;return[r,o]},eI=(e,t,r,o,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(o)}, ${i})`,eT=e=>{o||(o=M?RegExp(`(${Object.keys(M).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>ey(e).replace(eR,eP).replace(eE,ep).replace(o,ep)),r=t.map(e=>e.match(eS).map(Number)),i=r[0].map((e,t)=>r.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>eu({...e,output:t}));return e=>{let r=!e_.test(t[0])&&t.find(e=>e_.test(e))?.replace(eS,""),o=0;return t[0].replace(eS,()=>`${i[o++](e)}${r||""}`).replace(eC,eI)}},eO="react-spring: ",eD=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eO}once requires a function parameter`);return(...r)=>{t||(e(...r),t=!0)}},eM=eD(console.warn),eL=eD(console.warn);function eB(e){return R.str(e)&&("#"==e[0]||/\d/.test(e)||!D()&&eR.test(e)||e in(M||{}))}var ez=D()?x.useEffect:x.useLayoutEffect;function eq(){let e,t=(0,x.useState)()[1],r=(e=(0,x.useRef)(!1),ez(()=>(e.current=!0,()=>{e.current=!1}),[]),e);return()=>{r.current&&t(Math.random())}}var eV=e=>(0,x.useEffect)(e,eN),eN=[];function eU(e){let t=(0,x.useRef)(void 0);return(0,x.useEffect)(()=>{t.current=e}),t.current}var eF=Symbol.for("Animated:node"),e$=e=>e&&e[eF],eG=(e,t)=>Object.defineProperty(e,eF,{value:t,writable:!0,configurable:!0}),eH=e=>e&&e[eF]&&e[eF].getPayload(),eZ=class{constructor(){eG(this,this)}getPayload(){return this.payload||[]}},eK=class e extends eZ{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,R.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}
49setValue(e,t){return R.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,R.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},eW=class e extends eK{constructor(e){super(0),this._string=null,this._toString=eu({output:[e,e]})}static create(t){return new e(t)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(R.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=eu({output:[this.getValue(),e]})),this._value=0,super.reset()}},eX={dependencies:null},eJ=class extends eZ{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return j(this.source,(r,o)=>{r&&r[eF]===r?t[o]=r.getValue(e):em(r)?t[o]=ey(r):e||(t[o]=r)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){let e;this.payload&&(e=this.payload,e.forEach(e=>e.reset()))}_makePayload(e){if(e){let t=new Set;return j(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){let t;eX.dependencies&&em(e)&&eX.dependencies.add(e);let r=eH(e);r&&(t=e=>this.add(e),r.forEach(t))}},eQ=class e extends eJ{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,r)=>t.setValue(e[r])).some(Boolean):(super.setValue(e.map(eY)),!0)}};function eY(e){return(eB(e)?eW:eK).create(e)}function e0(e){let t=e$(e);return t?t.constructor:R.arr(e)?eQ:eB(e)?eW:eK}var e1=(e,t)=>{let r=!R.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,x.forwardRef)((o,i)=>{var s,a;let c,l=(0,x.useRef)(null),d=r&&(0,x.useCallback)(e=>{var t,r;t=i,r=e,t&&(R.fun(t)?t(r):t.current=r),l.current=r},[i]),[p,u]=(s=o,a=t,eX.dependencies=c=new Set,s.style&&(s={...s,style:a.createAnimatedStyle(s.style)}),s=new eJ(s),eX.dependencies=null,[s,c]),f=eq(),h=()=>{let e=l.current;r&&!e||!1===(!!e&&t.applyAnimatedValues(e,p.getValue(!0)))&&f()},m=new e2(h,u),y=(0,x.useRef)(void 0);ez(()=>{let e;return y.current=m,e=e=>ek(e,m),u.forEach(e),()=>{if(y.current){let e;e=y.current.deps,e.forEach(e=>ex(e,y.current)),n.cancel(y.current.update)}}}),(0,x.useEffect)(h,[]),eV(()=>()=>{let e,t=y.current;e=t.deps,e.forEach(e=>ex(e,t))});let g=t.getComponentProps(p.getValue());return x.createElement(e,{...g,ref:d})})},e2=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&n.write(this.update)}},e3=Symbol.for("AnimatedComponent"),e9=e=>R.str(e)?e:e&&R.str(e.displayName)?e.displayName:R.fun(e)&&e.name||null;function e7(e,...t){return R.fun(e)?e(...t):e}var e5=(e,t)=>!0===e||!!(t&&e&&(R.fun(e)?e(t):I(e).includes(t))),e6=(e,t)=>R.obj(e)?t&&e[t]:e,e8=(e,t)=>
49!0===e.default?e[t]:e.default?e.default[t]:void 0,e4=e=>e,te=(e,t=e4)=>{let r=tt;e.default&&!0!==e.default&&(r=Object.keys(e=e.default));let o={};for(let i of r){let r=t(e[i],i);R.und(r)||(o[i]=r)}return o},tt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tr={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function to(e){let t=function(e){let t={},r=0;if(j(e,(e,o)=>{!tr[o]&&(t[o]=e,r++)}),r)return t}(e);if(t){let r={to:t};return j(e,(e,o)=>o in t||(r[o]=e)),r}return{...e}}function ti(e){return e=ey(e),R.arr(e)?e.map(ti):eB(e)?S.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tn(e){for(let t in e)return!0;return!1}function ts(e){return R.fun(e)||R.arr(e)&&R.obj(e[0])}function ta(e,t){e.ref?.delete(e),t?.delete(e)}function tc(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var tl={tension:170,friction:26,mass:1,damping:1,easing:e=>e,clamp:!1},td=class{constructor(){this.velocity=0,Object.assign(this,tl)}};function tp(e,t){if(R.und(t.decay)){let r=!R.und(t.tension)||!R.und(t.friction);!r&&R.und(t.frequency)&&R.und(t.damping)&&R.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var tu=[],tf=class{constructor(){this.changed=!1,this.values=tu,this.toValues=null,this.fromValues=tu,this.config=new td,this.immediate=!1}};function th(e,{key:t,props:r,defaultProps:o,state:i,actions:s}){return new Promise((a,c)=>{let l,d,p=e5(r.cancel??o?.cancel,t);if(p)h();else{R.und(r.pause)||(i.paused=e5(r.pause,t));let e=o?.pause;!0!==e&&(e=i.paused||e5(e,t)),l=e7(r.delay||0,t),e?(i.resumeQueue.add(f),s.pause()):(s.resume(),f())}function u(){i.resumeQueue.add(f),i.timeouts.delete(d),d.cancel(),l=d.time-n.now()}function f(){l>0&&!S.skipAnimation?(i.delayed=!0,d=n.setTimeout(h,l),i.pauseQueue.add(u),i.timeouts.add(d)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(u),i.timeouts.delete(d),e<=(i.cancelId||0)&&(p=!0);try{s.start({...r,callId:e,cancel:p},a)}catch(e){c(e)}}})}var tm=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tb(e.get()):t.every(e=>e.noop)?ty(e.get()):tg(e.get(),t.every(e=>e.finished)),ty=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tg=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),tb=e=>({value:e,cancelled:!0,finished:!1});function tv(e,t,r,o){let{callId:i,parentId:s,onRest:a}=t,{asyncTo:c,promise:l}=r;return s||e!==c||t.reset?r.promise=(async()=>{let d,p,u;r.asyncId=i,r.asyncTo=e;let f=te(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>(d=e,p=t)),m=e=>{let t=i<=(r.cancelId||0)&&tb(o)||i!==r.asyncId&&tg(o,!1);if(t)throw e.result=t,p(e),e},y=(e,t)=>{let n=new tk,s=new tx;return(async()=>{if(S.skipAnimation)throw tw(r),s.result=tg(o,!1),p(s),s;m(n);let a=R.obj(e)?{...e}:{...t,to:e};a.parentId=i,j(f,(e,t)=>{R.und(a[t])&&(a[t]=e)});let c=await o.start(a);return m(n),r.paused&&await new Promise(e=>{r.resumeQueue.add(e)}),c})()};if(S.skipAnimation)return tw(r),tg(o,!1);try{let t;t=R.arr(e)?(async e=>{for(let t of e)await y(t)})(e):Promise.resolve(e(y,o.stop.bind(o))),await Promise.all([t.then(d),h]),u=tg(o.get(),!0,!1)}catch(e){if(e instanceof tk)u=e.result;else if(e instanceof tx)u=e.result;else throw e}finally{i==r.asyncId&&(r.asyncId=s,r.asyncTo=s?c:void 0,r.promise=s?l:void 0)}return R.fun(a)&&n.batchedUpdates(()=>{a(u,o,o.item)}),u})():l}function tw(e,t){T(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tk=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tx=class extends Error{constructor(){super("SkipAnimationSignal")}},tA=1,tS=class extends ev{constructor(){super(...arguments),this.id=tA++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=e$(this);return e&&e.getValue()}to(...e){return S.to(this,e)}interpolate(...e){return eM(`${eO}
49The "interpolate" function is deprecated in v9 (use "to" instead)`),S.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){eb(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||F.sort(this),eb(this,{type:"priority",parent:this,priority:e})}},tE=Symbol.for("SpringPhase"),t_=e=>(1&e[tE])>0,tC=e=>(2&e[tE])>0,tR=e=>(4&e[tE])>0,tP=(e,t)=>t?e[tE]|=3:e[tE]&=-3,tj=(e,t)=>t?e[tE]|=4:e[tE]&=-5,tI=class extends tS{constructor(e,t){if(super(),this.animation=new tf,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!R.und(e)||!R.und(t)){const r=R.obj(e)?{...e}:{...t,from:e};R.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(tC(this)||this._state.asyncTo)||tR(this)}get goal(){return ey(this.animation.to)}get velocity(){let e=e$(this);return e instanceof eK?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return t_(this)}get isAnimating(){return tC(this)}get isPaused(){return tR(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1,o=this.animation,{toValues:i}=o,{config:n}=o,s=eH(o.to);!s&&em(o.to)&&(i=I(ey(o.to))),o.values.forEach((a,c)=>{if(a.done)return;let l=a.constructor==eW?1:s?s[c].lastPosition:i[c],d=o.immediate,p=l;if(!d){let t;if(p=a.lastPosition,n.tension<=0){a.done=!0;return}let r=a.elapsedTime+=e,i=o.fromValues[c],s=null!=a.v0?a.v0:a.v0=R.arr(n.velocity)?n.velocity[c]:n.velocity,u=n.precision||(i==l?.005:Math.min(1,.001*Math.abs(l-i)));if(R.und(n.duration))if(n.decay){let e=!0===n.decay?.998:n.decay,o=Math.exp(-(1-e)*r);p=i+s/(1-e)*(1-o),d=Math.abs(a.lastPosition-p)<=u,t=s*o}else{t=null==a.lastVelocity?s:a.lastVelocity;let r=n.restVelocity||u/10,o=n.clamp?0:n.bounce,c=!R.und(o),f=i==l?a.v0>0:i<l,h=Math.ceil(e/1);for(let e=0;e<h&&!(!(Math.abs(t)>r)&&(d=Math.abs(l-p)<=u));++e){c&&(p==l||p>l==f)&&(t=-t*o,p=l);let e=(-(1e-6*n.tension)*(p-l)+-(.001*n.friction)*t)/n.mass;t+=+e,p+=+t}}else{let o=1;n.duration>0&&(this._memoizedDuration!==n.duration&&(this._memoizedDuration=n.duration,a.durationProgress>0&&(a.elapsedTime=n.duration*a.durationProgress,r=a.elapsedTime+=e)),a.durationProgress=o=(o=(n.progress||0)+r/this._memoizedDuration)>1?1:o<0?0:o),t=((p=i+n.easing(o)*(l-i))-a.lastPosition)/e,d=1==o}a.lastVelocity=t,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),d=!0)}s&&!s[c].done&&(d=!1),d?a.done=!0:t=!1,a.setValue(p,n.round)&&(r=!0)});let a=e$(this),c=a.getValue();if(t){let e=ey(o.to);(c!==e||r)&&!n.decay?(a.setValue(e),this._onChange(e)):r&&n.decay&&this._onChange(c),this._stop()}else r&&this._onChange(c)}set(e){return n.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tC(this)){let{to:e,config:t}=this.animation;n.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return R.und(e)?(r=this.queue||[],this.queue=[]):r=[R.obj(e)?e:{...t,to:e}],Promise.all(r.map(e=>this._update(e))).then(e=>tm(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tw(this._state,e&&this._lastCallId),n.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:r,from:o}=e;(null==(r=R.obj(r)?r[t]:r)||ts(r))&&(r=void 0),null==(o=R.obj(o)?o[t]:o)&&(o=void 0);let i={to:r,from:o};return!t_(this)&&(e.reverse&&([r,o]=[o,r]),o=ey(o),R.und(o)?e$(this)||this._set(r):this._set(o)),i}_update({...e},t){let{key:r,defaultProps:o}=this;e.default&&Object.assign(o,te(e,(e,t)=>/^on/.test(t)?e6(e,r):e)),tB(this,e,"onProps"),tz(this,"onProps",e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did
49you forget to pass your component to `animated(...)` before animating its props?");let n=this._state;return th(++this._lastCallId,{key:r,props:e,defaultProps:o,state:n,actions:{pause:()=>{tR(this)||(tj(this,!0),O(n.pauseQueue),tz(this,"onPause",tg(this,tT(this,this.animation.to)),this))},resume:()=>{tR(this)&&(tj(this,!1),tC(this)&&this._resume(),O(n.resumeQueue),tz(this,"onResume",tg(this,tT(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(r=>{if(e.loop&&r.finished&&!(t&&r.noop)){let t=tO(e);if(t)return this._update(t,!0)}return r})}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(tb(this));let o=!R.und(e.to),i=!R.und(e.from);if(o||i)if(!(t.callId>this._lastToId))return r(tb(this));else this._lastToId=t.callId;let{key:s,defaultProps:a,animation:c}=this,{to:l,from:d}=c,{to:p=l,from:u=d}=e;i&&!o&&(!t.default||R.und(p))&&(p=u),t.reverse&&([p,u]=[u,p]);let f=!P(u,d);f&&(c.from=u),u=ey(u);let h=!P(p,l);h&&this._focus(p);let m=ts(t.to),{config:y}=c,{decay:g,velocity:b}=y;(o||i)&&(y.velocity=0),t.config&&!m&&function(e,t,r){for(let o in r&&(tp(r={...r},t),t={...r,...t}),tp(e,t),Object.assign(e,t),tl)null==e[o]&&(e[o]=tl[o]);let{frequency:o,damping:i}=e,{mass:n}=e;R.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*n,e.friction=4*Math.PI*i*n/o)}(y,e7(t.config,s),t.config!==a.config?e7(a.config,s):void 0);let v=e$(this);if(!v||R.und(p))return r(tg(this,!0));let w=R.und(t.reset)?i&&!t.default:!R.und(u)&&e5(t.reset,s),k=w?u:this.get(),x=ti(p),A=R.num(x)||R.arr(x)||eB(x),S=!m&&(!A||e5(a.immediate||t.immediate,s));if(h){let e=e0(p);if(e!==v.constructor)if(S)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}let E=v.constructor,_=em(p),C=!1;if(!_){let e=w||!t_(this)&&f;(h||e)&&(_=!(C=P(ti(k),x))),(P(c.immediate,S)||S)&&P(y.decay,g)&&P(y.velocity,b)||(_=!0)}if(C&&tC(this)&&(c.changed&&!w?_=!0:_||this._stop(l)),!m&&((_||em(l))&&(c.values=v.getPayload(),c.toValues=em(p)?null:E==eW?[1]:I(x)),c.immediate!=S&&(c.immediate=S,S||w||this._set(l)),_)){let e,{onRest:o}=c;e=e=>tB(this,t,e),tL.forEach(e);let i=tg(this,tT(this,l));O(this._pendingCalls,i),this._pendingCalls.add(r),c.changed&&n.batchedUpdates(()=>{c.changed=!w,o?.(i,this),w?e7(a.onRest,i):c.onStart?.(i,this)})}w&&this._set(k),m?r(tv(t.to,t,this._state,this)):_?this._start():tC(this)&&!h?this._pendingCalls.add(r):r(ty(k))}_focus(e){let t=this.animation;e!==t.to&&(eg(this)&&this._detach(),t.to=e,eg(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;em(t)&&(ek(t,this),t instanceof tS&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;em(e)&&ex(e,this)}_set(e,t=!0){let r=ey(e);if(!R.und(r)){let e=e$(this);if(!e||!P(r,e.getValue())){let o=e0(r);e&&e.constructor==o?e.setValue(r):eG(this,o.create(r)),e&&n.batchedUpdates(()=>{this._onChange(r,t)})}}return e$(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tz(this,"onStart",tg(this,tT(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),e7(this.animation.onChange,e,this)),e7(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;e$(this).reset(ey(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),!tC(this)&&(tP(this,!0),tR(this)||this._resume())}_resume(){S.skipAnimation?this.finish():F.start(this)}_stop(e,t){if(tC(this)){let r;tP(this,!1);let o=this.animation;r=o.values,r.forEach(e=>{e.done=!0}),o.toValues&&(o.onChange=o.onPause=o.onResume=void 0),eb(this,{type:"idle",parent:this});let i=t?tb(this.get()):tg(this.get(),tT(this,e??o.to));O(this._pendingCalls,i),o.changed&&(o.changed=!1,tz(this,"onRest",i,this))}}};function tT(e,t){let r=ti(t);return P(ti(e.get()),r)}function tO(e,t=e.loop,r=e.to){let o=e7(t);if(o){let i=!0!==o&&to(o),n=(i||e).reverse,s=!i||i.reset;return tD({...e,loop:t,default:!1,pause:void 0,to:!n||ts(r)?r:void 0,from:s?e.from:void 0,reset:s,...i})}}function tD(e){let{to:t,from:r}=e=to(e),o=new Set;return R.obj(t)&&tM(t,o),R.obj(r)&&tM(r,o),e.keys=o.size?Array.from(o):null,e}function tM(e,t){j(e,(e,r)=>null!=e&&t.add(r))}var tL=["onStart","onRest","onChange","onPause","onResume"];function tB(e,t,r){e.animation[r]=t[r]!==e8(t,r)?e6(t[r],e.key):void 0}function tz(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var tq=["onStart","onChange","onRest"],tV=1,tN=class{constructor(e,t){this.id=tV++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,r)=>e[r]=t.get()),e}set(e){for(let t in e){let r=e[t];R.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(tD(e)),this}start(e){let{queue:t}=this;return(e?t=I(e).map(tD):this.queue=[],this._flush)?this._flush(this,t):(tK(this,t),tU(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let r,o=this.springs;r=I(t),r.forEach(t=>o[t].stop(!!e))}else tw(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(R.und(e))this.start({pause:!0});else{let t,r=this.springs;
49t=I(e),t.forEach(e=>r[e].pause())}return this}resume(e){if(R.und(e))this.start({pause:!1});else{let t,r=this.springs;t=I(e),t.forEach(e=>r[e].resume())}return this}each(e){j(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:r}=this._events,o=this._active.size>0,i=this._changed.size>0;(o&&!this._started||i&&!this._started)&&(this._started=!0,T(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let n=!o&&this._started,s=i||n&&r.size?this.get():null;i&&t.size&&T(t,([e,t])=>{t.value=s,e(t,this,this._item)}),n&&(this._started=!1,T(r,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}n.onFrame(this._onFrame)}};function tU(e,t){return Promise.all(t.map(t=>tF(e,t))).then(t=>tm(e,t))}async function tF(e,t,r){let{keys:o,to:i,from:s,loop:a,onRest:c,onResolve:l}=t,d=R.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===s&&(t.from=null);let p=R.arr(i)||R.fun(i)?i:void 0;if(p)t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0);else tq.forEach(r=>{let o=t[r];if(R.fun(o)){let i=e._events[r];t[r]=({finished:e,cancelled:t})=>{let r=i.get(o);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(o,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[r]=t[r])}});let u=e._state;!u.paused===t.pause?(u.paused=t.pause,O(t.pause?u.pauseQueue:u.resumeQueue)):u.paused&&(t.pause=!0);let f=(o||Object.keys(e.springs)).map(r=>e.springs[r].start(t)),h=!0===t.cancel||!0===e8(t,"cancel");(p||h&&u.asyncId)&&f.push(th(++e._lastAsyncId,{props:t,state:u,actions:{pause:C,resume:C,start(t,r){h?(tw(u,e._lastAsyncId),r(tb(e))):(t.onRest=c,r(tv(p,t,u,e)))}}})),u.paused&&await new Promise(e=>{u.resumeQueue.add(e)});let m=tm(e,await Promise.all(f));if(a&&m.finished&&!(r&&m.noop)){let r=tO(t,a,i);if(r)return tK(e,[r]),tF(e,r,!0)}return l&&n.batchedUpdates(()=>l(m,e,e.item)),m}function t$(e,t){let r,o,i={...e.springs};return t&&(r=I(t),o=e=>{R.und(e.keys)&&(e=tD(e)),R.obj(e.to)||(e={...e,to:void 0}),tZ(i,e,e=>tH(e))},r.forEach(o)),tG(e,i),i}function tG(e,t){j(t,(t,r)=>{e.springs[r]||(e.springs[r]=t,ek(t,e))})}function tH(e,t){let r=new tI;return r.key=e,t&&ek(r,t),r}function tZ(e,t,r){let o;t.keys&&(o=t.keys,o.forEach(o=>{(e[o]||(e[o]=r(o)))._prepareNode(t)}))}function tK(e,t){t.forEach(t=>{tZ(e.springs,t,t=>tH(t,e))})}var tW=x.createContext({pause:!1,immediate:!1}),tX=()=>{let e=[],t=function(t){let o;eL(`${eO}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let i=[];return o=(e,o)=>{if(R.und(t))i.push(e.start());else{let n=r(t,e,o);n&&i.push(e.start(n))}},e.forEach(o),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){let t;return t=e=>e.pause(...arguments),e.forEach(t),this},t.resume=function(){let t;return t=e=>e.resume(...arguments),e.forEach(t),this},t.set=function(t){e.forEach((e,r)=>{let o=R.fun(t)?t(r,e):t;o&&e.set(o)})},t.start=function(t){let r,o=[];return r=(e,r)=>{if(R.und(t))o.push(e.start());else{let i=this._getProps(t,e,r);i&&o.push(e.start(i))}},e.forEach(r),o},t.stop=function(){let t;return t=e=>e.stop(...arguments),e.forEach(t),this},t.update=function(t){let r;return r=(e,r)=>e.update(this._getProps(t,e,r)),e.forEach(r),this};let r=function(e,t,r){return R.fun(e)?e(r,t):e};return t._getProps=r,t},tJ=1,tQ=class extends tS{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=eu(...t);const r=this._get();eG(this,e0(r).create(r))}advance(e){let t=this._get();P(t,this.get())||(e$(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&t0(this._active)&&t1(this)}_get(){let e=R.arr(this.source)?this.source.map(ey):I(ey(this.source));return this.calc(...e)}_start(){if(this.idle&&!t0(this._active)){let e;this.idle=!1,e=eH(this),e.forEach(e=>{e.done=!1}),S.skipAnimation?(n.batchedUpdates(()=>this.advance()),t1(this)):F.start(this)}}_attach(){let e,t,r=1;e=I(this.source),t=e=>{em(e)&&ek(e,this),e instanceof tS&&(e.idle||this._active.add(e),r=Math.max(r,e.priority+1))},e.forEach(t),this.priority=r,this._start()}_detach(){let e,t;e=I(this.source),t=e=>{em(e)&&ex(e,this)},e.forEach(t),this._active.clear(),t1(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=I(this.source).reduce((e,t)=>
49Math.max(e,(t instanceof tS?t.priority:0)+1),0))}};function tY(e){return!1!==e.idle}function t0(e){return!e.size||Array.from(e).every(tY)}function t1(e){if(!e.idle){let t;e.idle=!0,t=eH(e),t.forEach(e=>{e.done=!0}),eb(e,{type:"idle",parent:e})}}S.assign({createStringInterpolator:eT,to:(e,t)=>new tQ(e,t)}),F.advance,e.s(["to",0,(e,...t)=>new tQ(e,t),"useSpring",0,function(e,t){let r=R.fun(e),[[o],i]=function(e,t,r){let o=R.fun(t)&&t;o&&!r&&(r=[]);let i=(0,x.useMemo)(()=>o||3==arguments.length?tX():void 0,[]),n=(0,x.useRef)(0),s=eq(),a=(0,x.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let r=t$(e,t);return!(n.current>0)||a.queue.length||Object.keys(r).some(t=>!e.springs[t])?new Promise(o=>{tG(e,r),a.queue.push(()=>{o(tU(e,t))}),s()}):tU(e,t)}}),[]),c=(0,x.useRef)([...a.ctrls]),l=(0,x.useRef)([]);l.current??(l.current=[]);let d=eU(e)||0;function p(e,r){for(let i=e;i<r;i++){let e=c.current[i]||(c.current[i]=new tN(null,a.flush)),r=o?o(i,e):t[i];r&&(l.current[i]=function(e){let t=tD(e);return R.und(t.default)&&(t.default=te(t)),t}(r))}}(0,x.useMemo)(()=>{let t;t=c.current.slice(e,d),t.forEach(e=>{ta(e,i),e.stop(!0)}),c.current.length=e,p(d,e)},[e]),(0,x.useMemo)(()=>{p(0,Math.min(d,e))},r);let u=c.current.map((e,t)=>t$(e,l.current[t])),f=(0,x.useContext)(tW),h=eU(f),m=f!==h&&tn(f);ez(()=>{let e;n.current++,a.ctrls=c.current;let{queue:t}=a;t.length&&(a.queue=[],t.forEach(e=>e()));e=c.current,e.forEach((e,t)=>{i?.add(e),m&&e.start({default:f});let r=l.current[t];r&&(tc(e,r.ref),e.ref?e.queue.push(r):e.start(r)),l.current[t]=null})}),eV(()=>()=>{let e;e=a.ctrls,e.forEach(e=>e.stop(!0))});let y=u.map(e=>({...e}));return i?[y,i]:y}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[o,i]:o},"useTransition",0,function(e,t,r){let o,i=R.fun(t)&&t,{reset:n,sort:s,trail:a=0,expires:c=!0,exitBeforeEnter:l=!1,onDestroyed:d,ref:p,config:u}=i?i():t,f=(0,x.useMemo)(()=>i||3==arguments.length?tX():void 0,[]),h=I(e),m=[],y=(0,x.useRef)(null),g=n?null:y.current;ez(()=>{y.current=m}),eV(()=>{let e;return e=e=>{f?.add(e.ctrl),e.ctrl.ref=f},m.forEach(e),()=>{let e;e=y.current,e.forEach(e=>{e.expired&&clearTimeout(e.expirationId),ta(e.ctrl,f),e.ctrl.stop(!0)})}});let b=function(e,{key:t,keys:r=t},o){if(null===r){let t=new Set;return e.map(e=>{let r=o&&o.find(r=>r.item===e&&"leave"!==r.phase&&!t.has(r));return r?(t.add(r),r.key):tJ++})}return R.und(r)?e:R.fun(r)?e.map(r):I(r)}(h,i?i():t,g),v=n&&y.current||[];ez(()=>{let e;return e=({ctrl:e,item:t,key:r})=>{ta(e,f),e7(d,t,r)},v.forEach(e)});let w=[];if(g&&g.forEach((e,t)=>{e.expired?(clearTimeout(e.expirationId),v.push(e)):~(t=w[t]=b.indexOf(e.key))&&(m[t]=e)}),o=(e,t)=>{m[t]||(m[t]={key:b[t],item:e,phase:"mount",ctrl:new tN},m[t].ctrl.item=e)},h.forEach(o),w.length){let e=-1,{leave:r}=i?i():t;w.forEach((t,o)=>{let i=g[o];~t?(e=m.indexOf(i),m[e]={...i,item:h[t]}):r&&m.splice(++e,0,i)})}R.fun(s)&&m.sort((e,t)=>s(e.item,t.item));let k=-a,A=eq(),S=te(t),E=new Map,_=(0,x.useRef)(new Map),C=(0,x.useRef)(!1);m.forEach((e,r)=>{let o,n,s=e.key,d=e.phase,f=i?i():t,h=e7(f.delay||0,s);if("mount"==d)o=f.enter,n="enter";else{let e=0>b.indexOf(s);if("leave"!=d)if(e)o=f.leave,n="leave";else{if(!(o=f.update))return;n="update"}else{if(e)return;o=f.enter,n="enter"}}if(o=e7(o,e.item,r),!(o=R.obj(o)?to(o):{to:o}).config){let t=u||S.config;o.config=e7(t,e.item,r,n)}k+=a;let m={...S,delay:h+k,ref:p,immediate:f.immediate,reset:!1,...o};if("enter"==n&&R.und(m.from)){let o=i?i():t;m.from=e7(R.und(o.initial)||g?o.from:o.initial,e.item,r)}let{onResolve:v}=m;m.onResolve=e=>{e7(v,e);let t=y.current,r=t.find(e=>e.key===s);if(r&&(!e.cancelled||"update"==r.phase)&&r.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==r.phase){let t=e7(c,r.item);if(!1!==t){let o=!0===t?0:t;if(r.expired=!0,!e&&o>0){o<=0x7fffffff&&(r.expirationId=setTimeout(A,o));return}}}e&&t.some(e=>e.expired)&&(_.current.delete(r),l&&(C.current=!0),A())}};let w=t$(e.ctrl,m);"leave"===n&&l?_.current.set(e,{phase:n,springs:w,payload:m}):E.set(e,{phase:n,springs:w,payload:m})});let P=(0,x.useContext)(tW),j=eU(P),T=P!==j&&tn(P);ez(()=>{T&&m.forEach(e=>{e.ctrl.start({default:P})})}
49,[P]),E.forEach((e,t)=>{if(_.current.size){let e=m.findIndex(e=>e.key===t.key);m.splice(e,1)}}),ez(()=>{let e;e=_.current.size?_.current:E,e.forEach(({phase:e,payload:t},r)=>{let{ctrl:o}=r;r.phase=e,f?.add(o),T&&"enter"==e&&o.start({default:P}),t&&(tc(o,t.ref),(o.ref||f)&&!C.current?o.update(t):(o.start(t),C.current&&(C.current=!1)))})},n?void 0:r);let O=e=>x.createElement(x.Fragment,null,m.map((t,r)=>{let{springs:o}=E.get(t)||t.ctrl,i=e({...o},t.item,t,r);return i&&i.type?x.createElement(i.type,{...i.props,key:R.str(t.key)||R.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i}));return f?[O,f]:O}],265658);var t2=e.i(174080),t3=/^--/,t9={},t7={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t5=["Webkit","Ms","Moz","O"];t7=Object.keys(t7).reduce((e,t)=>(t5.forEach(r=>e[r+t.charAt(0).toUpperCase()+t.substring(1)]=e[t]),e),t7);var t6=/^(matrix|translate|scale|rotate|skew)/,t8=/^(translate)/,t4=/^(rotate|skew)/,re=(e,t)=>R.num(e)&&0!==e?e+t:e,rt=(e,t)=>R.arr(e)?e.every(e=>rt(e,t)):R.num(e)?e===t:parseFloat(e)===t,rr=class extends eJ{constructor({x:e,y:t,z:r,...o}){const i=[],n=[];(e||t||r)&&(i.push([e||0,t||0,r||0]),n.push(e=>[`translate3d(${e.map(e=>re(e,"px")).join(",")})`,rt(e,0)])),j(o,(e,t)=>{if("transform"===t)i.push([e||""]),n.push(e=>[e,""===e]);else if(t6.test(t)){if(delete o[t],R.und(e))return;let r=t8.test(t)?"px":t4.test(t)?"deg":"";i.push(I(e)),n.push("rotate3d"===t?([e,t,o,i])=>[`rotate3d(${e},${t},${o},${re(i,r)})`,rt(i,0)]:e=>[`${t}(${e.map(e=>re(e,r)).join(",")})`,rt(e,+!!t.startsWith("scale"))])}}),i.length&&(o.transform=new ro(i,n)),super(o)}},ro=class extends ev{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e,t,r="",o=!0;return e=this.inputs,t=(e,t)=>{let i=ey(e[0]),[n,s]=this.transforms[t](R.arr(i)?i:e.map(ey));r+=" "+n,o=o&&s},e.forEach(t),o?"none":r}observerAdded(e){let t,r;1==e&&(t=this.inputs,r=e=>{let t;return t=e=>em(e)&&ek(e,this),e.forEach(t)},t.forEach(r))}observerRemoved(e){let t,r;0==e&&(t=this.inputs,r=e=>{let t;return t=e=>em(e)&&ex(e,this),e.forEach(t)},t.forEach(r))}eventObserved(e){"change"==e.type&&(this._value=null),eb(this,e)}};S.assign({batchedUpdates:t2.unstable_batchedUpdates,createStringInterpolator:eT,colors:{transparent:0,aliceblue:0xf0f8ffff,antiquewhite:0xfaebd7ff,aqua:0xffffff,aquamarine:0x7fffd4ff,azure:0xf0ffffff,beige:0xf5f5dcff,bisque:0xffe4c4ff,black:255,blanchedalmond:0xffebcdff,blue:65535,blueviolet:0x8a2be2ff,brown:0xa52a2aff,burlywood:0xdeb887ff,burntsienna:0xea7e5dff,cadetblue:0x5f9ea0ff,chartreuse:0x7fff00ff,chocolate:0xd2691eff,coral:0xff7f50ff,cornflowerblue:0x6495edff,cornsilk:0xfff8dcff,crimson:0xdc143cff,cyan:0xffffff,darkblue:35839,darkcyan:9145343,darkgoldenrod:0xb8860bff,darkgray:0xa9a9a9ff,darkgreen:6553855,darkgrey:0xa9a9a9ff,darkkhaki:0xbdb76bff,darkmagenta:0x8b008bff,darkolivegreen:0x556b2fff,darkorange:0xff8c00ff,darkorchid:0x9932ccff,darkred:0x8b0000ff,darksalmon:0xe9967aff,darkseagreen:0x8fbc8fff,darkslateblue:0x483d8bff,darkslategray:0x2f4f4fff,darkslategrey:0x2f4f4fff,darkturquoise:0xced1ff,darkviolet:0x9400d3ff,deeppink:0xff1493ff,deepskyblue:0xbfffff,dimgray:0x696969ff,dimgrey:0x696969ff,dodgerblue:0x1e90ffff,firebrick:0xb22222ff,floralwhite:0xfffaf0ff,forestgreen:0x228b22ff,fuchsia:0xff00ffff,gainsboro:0xdcdcdcff,ghostwhite:0xf8f8ffff,gold:0xffd700ff,goldenrod:0xdaa520ff,gray:0x808080ff,green:8388863,greenyellow:0xadff2fff,grey:0x808080ff,honeydew:0xf0fff0ff,hotpink:0xff69b4ff,indianred:0xcd5c5cff,indigo:0x4b0082ff,ivory:0xfffff0ff,khaki:0xf0e68cff,lavender:0xe6e6faff,lavenderblush:0xfff0f5ff,lawngreen:0x7cfc00ff,lemonchiffon:0xfffacdff,lightblue:0xadd8e6ff,lightcoral:0xf08080ff,lightcyan:0xe0ffffff,lightgoldenrodyellow:0xfafad2ff,lightgray:0xd3d3d3ff,lightgreen:0x90ee90ff,lightgrey:0xd3d3d3ff,lightpink:0xffb6c1ff,lightsalmon:0xffa07aff,lightseagreen:0x20b2aaff,lightskyblue:0x87cefaff,lightslategray:0x778899ff,lightslategrey:0x778899ff,lightsteelblue:0xb0c4deff,lightyellow:0xffffe0ff,lime:0xff00ff,limegreen:0x32cd32ff,linen:0xfaf0e6ff,magenta:0xff00ffff,maroon:0x800000ff,mediumaquamarine:0x66cdaaff,mediumblue:52735,mediumorchid:0xba55d3ff,mediumpurple:0x9370dbff,mediumseagreen:0x3cb371ff,mediumslateblue:0x7b68eeff,mediumspringgreen:0xfa9aff,mediumturquoise:0x48d1ccff,mediumvioletred:0xc71585ff,midnightblue:0x191970ff,mintcream:0xf5fffaff,mistyrose:0xffe4e1ff,moccasin:0xffe4b5ff,navajowhite:0xffdeadff,navy:33023,oldlace:0xfdf5e6ff,olive:0x808000ff,olivedrab:0x6b8e23ff,orange:0xffa500ff,orangered:0xff4500ff,orchid:0xda70d6ff,palegoldenrod:0xeee8aaff,palegreen:0x98fb98ff,paleturquoise:0xafeeeeff,palevioletred:0xdb7093ff,papayawhip:0xffefd5ff,peachpuff:0xffdab9ff,peru:0xcd853fff,pink:0xffc0cbff,plum:0xdda0ddff,powderblue:0xb0e0e6ff,purple:0x800080ff,rebeccapurple:0x663399ff,red:0xff0000ff,rosybrown:0xbc8f8fff,royalblue:0x4169e1ff,saddlebrown:0x8b4513ff,salmon:0xfa8072ff,sandybrown:0xf4a460ff,seagreen:0x2e8b57ff,seashell:0xfff5eeff,sienna:0xa0522dff,silver:0xc0c0c0ff,skyblue:0x87ceebff,slateblue:0x6a5acdff,slategray:0x708090ff,slategrey:0x708090ff,snow:0xfffafaff,springgreen:0xff7fff,steelblue:0x4682b4ff,tan:0xd2b48cff,teal:8421631,thistle:0xd8bfd8ff,tomato:0xff6347ff,turquoise:0x40e0d0ff,violet:0xee82eeff,wheat:0xf5deb3ff,white:0xffffffff,whitesmoke:0xf5f5f5ff,yellow:0xffff00ff,yellowgreen:0x9acd32ff}});var ri=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new eJ(e),getComponentProps:o=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:o},n=e=>{let t=e9(e)||"Anonymous";return(e=R.str(e)?n[e]||(n[e]=e1(e,i)):e[e3]||(e[e3]=e1(e,i))).displayName=`Animated(${t})`,e};return j(e,(t,r)=>{R.arr(e)&&(r=e9(t)),n[r]=n(t)}),{animated:n}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:o,style:i,children:n,scrollTop:s,scrollLeft:a,viewBox:c,...l}=t,d=Object.values(l),p=Object.keys(l).map(t=>r||e.hasAttribute(t)?t:t9[t]||(t9[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==n&&(e.textContent=n),i)if(i.hasOwnProperty(t)){var u;let r=null==(u=i[t])||"boolean"==typeof u||""===u?"":"number"!=typeof u||0===u||t3.test(t)||t7.hasOwnProperty(t)&&t7[t]?(""+u).trim():u+"px";t3.test(t)?e.style.setProperty(t,r):e.style[t]=r}
49p.forEach((t,r)=>{e.setAttribute(t,d[r])}),void 0!==o&&(e.className=o),void 0!==s&&(e.scrollTop=s),void 0!==a&&(e.scrollLeft=a),void 0!==c&&e.setAttribute("viewBox",c)},createAnimatedStyle:e=>new rr(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}).animated;e.s(["animated",0,ri],248787)},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var i in o)Object.defineProperty(r,i,{enumerable:!0,get:o[i]});let n=e.r(132120),s=e.r(92245),a=e.r(235326)},467034,(e,t,r)=>{var o={872:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],o=t[1];return(r+o)*3/4-o},t.toByteArray=function(e){var t,r,n=c(e),s=n[0],a=n[1],l=new i((s+a)*3/4-a),d=0,p=a>0?s-4:s;for(r=0;r<p;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],l[d++]=t>>16&255,l[d++]=t>>8&255,l[d++]=255&t;return 2===a&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,l[d++]=255&t),1===a&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,l[d++]=t>>8&255,l[d++]=255&t),l},t.fromByteArray=function(e){for(var t,o=e.length,i=o%3,n=[],s=0,a=o-i;s<a;s+=16383)n.push(function(e,t,o){for(var i,n=[],s=t;s<o;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),n.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return n.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?n.push(r[(t=e[o-1])>>2]+r[t<<4&63]+"=="):2===i&&n.push(r[(t=(e[o-2]<<8)+e[o-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),n.join("")};for(var r=[],o=[],i="u">typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=n.length;s<a;++s)r[s]=n[s],o[n.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var o=r===t?0:4-r%4;return[r,o]}o[45]=62,o[95]=63},230:function(e,t,r){"use strict";var o=r(872),i=r(321),n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e){var o=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var n=0|f(o,i),c=s(n),l=c.write(o,i);return l!==n&&(c=c.slice(0,l)),c}if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,r){var o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),o}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var d=e.valueOf&&e.valueOf();if(null!=d&&d!==e)return a.from(d,t,r);var h=function(e){if(a.isBuffer(e)){var t=0|u(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(h)return h;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');
vendor: 16,509 bytes, line 49
49if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|u(e))}function p(e){for(var t=e.length<0?0:0|u(e.length),r=s(t),o=0;o<t;o+=1)r[o]=255&e[o];return r}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(l(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return d(e)},a.allocUnsafeSlow=function(e){return d(e)};function u(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return C(e).length;default:if(i)return o?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var i,n,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var o=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>o)&&(r=o);for(var i="",n=t;n<r;++n)i+=j[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(127&e[i]);return o}(this,t,r);case"latin1":case"binary":return function(e,t,r){var o="";r=Math.min(e.length,r);for(var i=t;i<r;++i)o+=String.fromCharCode(e[i]);return o}(this,t,r);case"base64":return i=this,n=t,s=r,0===n&&s===i.length?o.fromByteArray(i):o.fromByteArray(i.slice(n,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var o=e.slice(t,r),i="",n=0;n<o.length;n+=2)i+=String.fromCharCode(o[n]+256*o[n+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function y(e,t,r,o,i){var n;if(0===e.length)return -1;if("string"==typeof r?(o=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(n=r*=1)!=n&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,r,o,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return g(e,[t],r,o,i)}throw TypeError("val must be string, number or Buffer")}function g(e,t,r,o,i){var n,s=1,a=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;s=2,a/=2,c/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var d=-1;for(n=r;n<a;n++)if(l(e,n)===l(t,-1===d?0:n-d)){if(-1===d&&(d=n),n-d+1===c)return d*s}else -1!==d&&(n-=n-d),d=-1}else for(r+c>a&&(r=a-c),n=r;n>=0;n--){for(var p=!0,u=0;u<c;u++)if(l(e,n+u)!==l(t,u)){p=!1;break}if(p)return n}return -1}a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,o=t.length,i=0,n=Math.min(r,o);i<n;++i)if(e[i]!==t[i]){r=e[i],o=t[i];break}return r<o?-1:+(o<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,o=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var n=e[r];if(P(n,Uint8Array)&&(n=a.from(n)),!a.isBuffer(n))throw TypeError('"list" argument must be an Array of Buffers');n.copy(o,i),i+=n.length}return o},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(e,t,r,o,i){if(P(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||r>e.length||o<0||i>this.length)throw RangeError("out of range index");if(o>=i&&t>=r)return 0;if(o>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var n=i-o,s=r-t,c=Math.min(n,s),l=this.slice(o,i),d=e.slice(t,r),p=0;p<c;++p)if(l[p]!==d[p]){n=l[p],s=d[p];break}return n<s?-1:+(s<n)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function b(e,t,r){r=Math.min(e.length,r);for(var o=[],i=t;i<r;){var n,s,a,c,l=e[i],d=null,p=l>239?4:l>223?3:l>191?2:1;if(i+p<=r)switch(p){case 1:l<128&&(d=l);break;case 2:(192&(n=e[i+1]))==128&&(c=(31&l)<<6|63&n)>127&&(d=c);break;case 3:n=e[i+1],s=e[i+2],(192&n)==128&&(192&s)==128&&(c=(15&l)<<12|(63&n)<<6|63&s)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:n=e[i+1],s=e[i+2],a=e[i+3],(192&n)==128&&(192&s)==128&&(192&a)==128&&(c=(15&l)<<18|(63&n)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(d=c)}null===d?(d=65533,p=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),i+=p}var u=o,f=u.length;if(f<=4096)return String.fromCharCode.apply(String,u);for(var h="",m=0;m<f;)h+=String.fromCharCode.apply(String,u.slice(m,m+=4096));return h}function v(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,o,i,n){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<n)throw RangeError('"value" argument is out of bounds');if(r+o>e.length)throw RangeError("Index out of range")}function k(e,t,r,o,i,n){if(r+o>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,o,n){return t*=1,r>>>=0,n||k(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,o,23,4),r+4}function A(e,t,r,o,n){return t*=1,r>>>=0,n||k(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,o,52,8),r+8}a.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===o&&(o="utf8")):(o=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,n,s,a,c,l,d,p,u=this.length-t;if((void 0===r||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var f=!1;;)switch(o){case"hex":return function(e,t,r,o){r=Number(r)||0;var i=e.length-r;o?(o=Number(o))>i&&(o=i):o=i;var n=t.length;o>n/2&&(o=n/2);for(var s=0;s<o;++s){var a,c=parseInt(t.substr(2*s,2),16);if((a=c)!=a)break;e[r+s]=c}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,n=r,R(E(e,this.length-i),this,i,n);case"ascii":return s=t,a=r,R(_(e),this,s,a);case"latin1":case"binary":return function(e,t,r,o){return R(_(t),e,r,o)}(this,e,t,r);case"base64":return c=t,l=r,R(C(e),this,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,p=r,R(function(e,t){for(var r,o,i=[],n=0;n<e.length&&!((t-=2)<0);++n)o=(r=e.charCodeAt(n))>>8,i.push(r%256),i.push(o);return i}(e,this.length-d),this,d,p);default:if(f)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var o=this.subarray(e,t);return Object.setPrototypeOf(o,a.prototype),o},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var o=this[e],i=1,n=0;++n<t&&(i*=256);)o+=this[e+n]*i;return o},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUInt8=function(e,t){return e>>>=0,t||v(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||v(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var o=this[e],i=1,n=0;++n<t&&(i*=256);)o+=this[e+n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||v(e,t,this.length);for(var o=t,i=1,n=this[e+--o];o>0&&(i*=256);)n+=this[e+--o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readInt8=function(e,t){return(e>>>=0,t||v(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||v(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||v(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||v(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||v(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,o){if(e*=1,t>>>=0,r>>>=0,!o){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var n=1,s=0;for(this[t]=255&e;++s<r&&(n*=256);)this[t+s]=e/n&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,o){if(e*=1,t>>>=0,r>>>=0,!o){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var n=r-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,o){if(e*=1,t>>>=0,!o){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var n=0,s=1,a=0;for(this[t]=255&e;++n<r&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,o){if(e*=1,t>>>=0,!o){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var n=r-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,o){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);var i=o-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,o);else if(this===e&&r<t&&t<o)for(var n=i-1;n>=0;--n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,o),t);return i},a.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!a.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){var i,n=e.charCodeAt(0);("utf8"===o&&n<128||"latin1"===o)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,o),c=s.length;
49if(0===c)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%c]}return this};var S=/[^+/0-9A-Za-z-_]/g;function E(e,t){t=t||1/0;for(var r,o=e.length,i=null,n=[],s=0;s<o;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===o){(t-=3)>-1&&n.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&n.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&n.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;n.push(r)}else if(r<2048){if((t-=2)<0)break;n.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;n.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;n.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return n}function _(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function C(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function R(e,t,r,o){for(var i=0;i<o&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var o=16*r,i=0;i<16;++i)t[o+i]=e[r]+e[i];return t}()},321:function(e,t){t.read=function(e,t,r,o,i){var n,s,a=8*i-o-1,c=(1<<a)-1,l=c>>1,d=-7,p=r?i-1:0,u=r?-1:1,f=e[t+p];for(p+=u,n=f&(1<<-d)-1,f>>=-d,d+=a;d>0;n=256*n+e[t+p],p+=u,d-=8);for(s=n&(1<<-d)-1,n>>=-d,d+=o;d>0;s=256*s+e[t+p],p+=u,d-=8);if(0===n)n=1-l;else{if(n===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,o),n-=l}return(f?-1:1)*s*Math.pow(2,n-o)},t.write=function(e,t,r,o,i,n){var s,a,c,l=8*n-i-1,d=(1<<l)-1,p=d>>1,u=5960464477539062e-23*(23===i),f=o?0:n-1,h=o?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+p>=1?t+=u/c:t+=u*Math.pow(2,1-p),t*c>=2&&(s++,c/=2),s+p>=d?(a=0,s=d):s+p>=1?(a=(t*c-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=h,a/=256,i-=8);for(s=s<<i|a,l+=i;l>0;e[r+f]=255&s,f+=h,s/=256,l-=8);e[r+f-h]|=128*m}}},i={};function n(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{o[e](r,r.exports,n),s=!1}finally{s&&delete i[e]}return r.exports}n.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=n(230)},516015,(e,t,r)=>{},898547,(e,t,r)=>{var o=e.i(247167);e.r(516015);var i=e.r(271645),n=i&&"object"==typeof i&&"default"in i?i:{default:i},s=void 0!==o.default&&o.default.env&&!0,a=function(e){return"[object String]"===Object.prototype.toString.call(e)},c=function(){function e(e){var t=void 0===e?{}:e,r=t.name,o=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,n=void 0===i?s:i;l(a(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-deleted-rule____{}",l("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var c="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=c?c.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}
49,r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(l(a(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var o=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,o))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var r="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(o){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var o=this._tags[e];l(o,"old rule at index `"+e+"` not found"),o.textContent=t}return e},r.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"u">
49typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&l(a(t),"makeStyleTag accepts only strings as second parameter");var o=document.createElement("style");this._nonce&&o.setAttribute("nonce",this._nonce),o.type="text/css",o.setAttribute("data-"+e,""),t&&o.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(o,r):i.appendChild(o),o},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var d=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},p={};function u(e,t){if(!t)return"jsx-"+e;var r=String(t),o=e+r;return p[o]||(p[o]="jsx-"+d(e+"-"+r)),p[o]}function f(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return p[r]||(p[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),p[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,o=void 0===r?null:r,i=t.optimizeForSpeed,n=void 0!==i&&i;this._sheet=o||new c({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),o&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),o=r.styleId,i=r.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var n=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=n,this._instancesCounts[o]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var o=this._fromServer&&this._fromServer[r];o?(o.parentNode.removeChild(o),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],o=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,o=e.id;if(r){var i=u(o,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return f(i,e)}):[f(i,t)]}}return{styleId:u(o),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=i.createContext(null);function y(){return new h}function g(){return i.useContext(m)}m.displayName="StyleSheetContext";var b=n.default.useInsertionEffect||n.default.useLayoutEffect,v="u">typeof window?y():void 0;function w(e){var t=v||g();return t&&("u"<typeof window?t.add(e):b(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}w.dynamic=function(e){return e.map(function(e){return u(e[0],e[1])}).join(" ")},r.StyleRegistry=function(e){var t=e.registry,r=e.children,o=i.useContext(m),s=i.useState(function(){return o||t||y()})[0];return n.default.createElement(m.Provider,{value:s},r)},r.createStyleRegistry=y,r.style=w,r.useStyleRegistry=g},437902,(e,t,r)=>{t.exports=e.r(898547).style},290571,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]}
vendor: 8,404 bytes, line 49
49)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function o(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]]);return r}function n(e,t,r,o){var i,n=arguments.length,s=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,o);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(n<3?i(s):n>3?i(t,r,s):i(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s}function s(e,t){return function(r,o){t(r,o,e)}}function a(e,t,r,o,i,n){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=o.kind,l="getter"===c?"get":"setter"===c?"set":"value",d=!t&&e?o.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,o.name):{}),u=!1,f=r.length-1;f>=0;f--){var h={};for(var m in o)h[m]="access"===m?{}:o[m];for(var m in o.access)h.access[m]=o.access[m];h.addInitializer=function(e){if(u)throw TypeError("Cannot add initializers after decoration has completed");n.push(s(e||null))};var y=(0,r[f])("accessor"===c?{get:p.get,set:p.set}:p[l],h);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(a=s(y.get))&&(p.get=a),(a=s(y.set))&&(p.set=a),(a=s(y.init))&&i.unshift(a)}else(a=s(y))&&("field"===c?i.unshift(a):p[l]=a)}d&&Object.defineProperty(d,o.name,p),u=!0}function c(e,t,r){for(var o=arguments.length>2,i=0;i<t.length;i++)r=o?t[i].call(e,r):t[i].call(e);return o?r:void 0}function l(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,o){return new(r||(r=Promise))(function(i,n){function s(e){try{c(o.next(e))}catch(e){n(e)}}function a(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((o=o.apply(e,t||[])).next())})}function f(e,t){var r,o,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){var l=[a,c];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=2&l[0]?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){n=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(6===l[0]&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e],o=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}var h=Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||h(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,i,n=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(o=n.next()).done;)s.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<r;t++)for(var n=arguments[t],s=0,a=n.length;s<a;s++,i++)o[i]=n[s];return o}function w(e,t,r){if(r||2==arguments.length)for(var o,i=0,n=t.length;i<n;i++)!o&&i in t||(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function x(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=r.apply(e,t||[]),n=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),o[Symbol.asyncIterator]=function(){return this},o;function s(e,t){i[e]&&(o[e]=function(t){return new Promise(function(r,o){n.push([e,t,r,o])>1||a(e,t)})},t&&(o[e]=t(o[e])))}function a(e,t){try{var r;(r=i[e](t)).value instanceof k?Promise.resolve(r.value.v).then(c,l):d(n[0][2],r)}catch(e){d(n[0][3],e)}}function c(e){a("next",e)}function l(e){a("throw",e)}function d(e,t){e(t),n.shift(),n.length&&a(n[0][0],n[0][1])}}function A(e){var t,r;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){t[o]=e[o]?function(t){return(r=!r)?{value:k(e[o](t)),done:!1}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(r){t[r]=e[r]&&function(t){return new Promise(function(o,i){var n,s,a;n=o,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){n({value:e,done:a})},s)})}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},C=function(e){return(C=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=C(e),o=0;o<r.length;o++)"default"!==r[o]&&h(t,e,r[o]);return _(t,e),t}function P(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r,o){if("a"===r&&!o)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}function I(e,t,r,o,i){if("m"===o)throw TypeError("Private method is not writable");if("a"===o&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,r):i?i.value=r:t.set(e,r),r}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function O(e,t,r){if(null!=t){var o,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");
49if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(void 0===o){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],r&&(i=o)}if("function"!=typeof o)throw TypeError("Object not disposable.");i&&(o=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:o,async:r})}else r&&e.stack.push({async:!0});return t}var D="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var o=Error(r);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};function M(e){function t(t){e.error=e.hasError?new D(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,o=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===o)return o=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var n=r.dispose.call(r.value);if(r.async)return o|=2,Promise.resolve(n).then(i,function(e){return t(e),i()})}else o|=1}catch(e){t(e)}if(1===o)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function L(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,o,i,n){return r?t?".jsx":".js":!o||i&&n?o+i+"."+n.toLowerCase()+"js":e}):e}let B={__extends:r,__assign:o,__rest:i,__decorate:n,__param:s,__esDecorate:a,__runInitializers:c,__propKey:l,__setFunctionName:d,__metadata:p,__awaiter:u,__generator:f,__createBinding:h,__exportStar:m,__values:y,__read:g,__spread:b,__spreadArrays:v,__spreadArray:w,__await:k,__asyncGenerator:x,__asyncDelegator:A,__asyncValues:S,__makeTemplateOb
49ject:E,__importStar:R,__importDefault:P,__classPrivateFieldGet:j,__classPrivateFieldSet:I,__classPrivateFieldIn:T,__addDisposableResource:O,__disposeResources:M,__rewriteRelativeImportExtension:L};e.s(["__addDisposableResource",0,O,"__assign",()=>o,"__asyncDelegator",0,A,"__asyncGenerator",0,x,"__asyncValues",0,S,"__await",0,k,"__awaiter",0,u,"__classPrivateFieldGet",0,j,"__classPrivateFieldIn",0,T,"__classPrivateFieldSet",0,I,"__createBinding",0,h,"__decorate",0,n,"__disposeResources",0,M,"__esDecorate",0,a,"__exportStar",0,m,"__extends",0,r,"__generator",0,f,"__importDefault",0,P,"__importStar",0,R,"__makeTemplateObject",0,E,"__metadata",0,p,"__param",0,s,"__propKey",0,l,"__read",0,g,"__rest",0,i,"__rewriteRelativeImportExtension",0,L,"__runInitializers",0,c,"__setFunctionName",0,d,"__spread",0,b,"__spreadArray",0,w,"__spreadArrays",0,v,"__values",0,y,"default",0,B])},616009,877116,786581,850050,399993,968575,765381,297907,789522,849074,218961,709646,597016,152820,22175,e=>{"use strict";let t,r=()=>new Map,o=e=>{let t=r();return e.forEach((e,r)=>{t.set(r,e)}),t},i=(e,t,r)=>{let o=e.get(t);return void 0===o&&e.set(t,o=r()),o},n=(e,t)=>{let r=[];for(let[o,i]of e)r.push(t(i,o));return r},s=(e,t)=>{for(let[r,o]of e)if(t(o,r))return!0;return!1};e.s(["any",0,s,"copy",0,o,"create",0,r,"map",0,n,"setIfUndefined",0,i],877116);let a=()=>new Set;e.s(["create",0,a,"from",0,e=>new Set(e)],786581);let c=e=>e[e.length-1],l=(e,t)=>{for(let r=0;r<t.length;r++)e.push(t[r])},d=Array.from,p=Array.isArray;class u{constructor(){this._observers=r()}on(e,t){return i(this._observers,e,a).add(t),t}once(e,t){let r=(...o)=>{this.off(e,r),t(...o)};this.on(e,r)}off(e,t){let r=this._observers.get(e);void 0!==r&&(r.delete(t),0===r.size&&this._observers.delete(e))}emit(e,t){return d((this._observers.get(e)||r()).values()).forEach(e=>e(...t))}destroy(){this._observers=r()}}e.s(["Observable",0,class{constructor(){this._observers=r()}on(e,t){i(this._observers,e,a).add(t)}once(e,t){let r=(...o)=>{this.off(e,r),t(...o)};this.on(e,r)}off(e,t){let r=this._observers.get(e);void 0!==r&&(r.delete(t),0===r.size&&this._observers.delete(e))}emit(e,t){return d((this._observers.get(e)||r()).values()).forEach(e=>e(...t))}destroy(){this._observers=r()}},"ObservableV2",0,u],850050);let f=Math.floor,h=Math.ceil,m=Math.abs,y=Math.round,g=Math.log10,b=(e,t)=>e<t?e:t,v=(e,t)=>e>t?e:t,w=e=>0!==e?e<0:1/e<0;e.s(["abs",0,m,"ceil",0,h,"exp10",0,e=>Math.pow(10,e),"floor",0,f,"isNegativeZero",0,w,"log10",0,g,"max",0,v,"min",0,b,"round",0,y],399993);let k=Number.MAX_SAFE_INTEGER,x=Number.isInteger||(e=>"number"==typeof e&&isFinite(e)&&f(e)===e);(0,String.fromCharCode)(65535);let A=/^\s*/g,S=/([A-Z])/g,E=(e,t)=>e.replace(S,e=>`${t}${e.toLowerCase()}`).replace(A,""),_="u">typeof TextEncoder?new TextEncoder:null,C=_?e=>_.encode(e):e=>{let t=unescape(encodeURIComponent(e)),r=t.length,o=new Uint8Array(r);for(let e=0;e<r;e++)o[e]=t.codePointAt(e);return o},R="u"<typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});R&&1===R.decode(new Uint8Array).length&&(R=null);class P{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}let j=()=>new P,I=e=>{let t=new Uint8Array((e=>{let t=e.cpos;for(let r=0;r<e.bufs.length;r++)t+=e.bufs[r].length;return t})(e)),r=0;for(let o=0;o<e.bufs.length;o++){let i=e.bufs[o];t.set(i,r),r+=i.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),r),t},T=(e,t)=>{let r=e.cbuf.length;e.cpos===r&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(2*r),e.cpos=0),e.cbuf[e.cpos++]=t},O=(e,t)=>{for(;t>127;)T(e,128|127&t),t=f(t/128);T(e,127&t)},D=(e,t)=>{let r=w(t);for(r&&(t=-t),T(e,128*(t>63)|64*!!r|63&t),t=f(t/64);t>0;)T(e,128*(t>127)|127&t),t=f(t/128)},M=new Uint8Array(3e4),L=M.length/3,B=_&&_.encodeInto?(e,t)=>{if(t.length<L){let r=_.encodeInto(t,M).written||0;O(e,r);for(let t=0;t<r;t++)T(e,M[t])}else q(e,C(t))}:(e,t)=>{let r=unescape(encodeURIComponent(t)),o=r.length;O(e,o);for(let t=0;t<o;t++)T(e,r.codePointAt(t))},z=(e,t)=>{let r=e.cbuf.length,o=e.cpos,i=b(r-o,t.length),n=t.length-i;e.cbuf.set(t.subarray(0,i),o),e.cpos+=i,n>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(v(2*r,n)),e.cbuf.set(t.subarray(i)),e.cpos=n)},q=(e,t)=>
49{O(e,t.byteLength),z(e,t)},V=(e,t)=>{let r;(r=e.cbuf.length)-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(2*v(r,t)),e.cpos=0);let o=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,o},N=new DataView(new ArrayBuffer(4)),U=(e,t)=>{switch(typeof t){case"string":T(e,119),B(e,t);break;case"number":if(x(t)&&0x7fffffff>=m(t))T(e,125),D(e,t);else if(N.setFloat32(0,t),N.getFloat32(0)===t)T(e,124),V(e,4).setFloat32(0,t,!1);else T(e,123),V(e,8).setFloat64(0,t,!1);break;case"bigint":T(e,122),V(e,8).setBigInt64(0,t,!1);break;case"object":if(null===t)T(e,126);else if(p(t)){T(e,117),O(e,t.length);for(let r=0;r<t.length;r++)U(e,t[r])}else if(t instanceof Uint8Array)T(e,116),q(e,t);else{T(e,118);let r=Object.keys(t);O(e,r.length);for(let o=0;o<r.length;o++){let i=r[o];B(e,i),U(e,t[i])}}break;case"boolean":T(e,t?120:121);break;default:T(e,127)}};class F extends P{constructor(e){super(),this.w=e,this.s=null,this.count=0}write(e){this.s===e?this.count++:(this.count>0&&O(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}let $=e=>{e.count>0&&(D(e.encoder,1===e.count?e.s:-e.s),e.count>1&&O(e.encoder,e.count-2))};class G{constructor(){this.encoder=new P,this.s=0,this.count=0}write(e){this.s===e?this.count++:($(this),this.count=1,this.s=e)}toUint8Array(){return $(this),I(this.encoder)}}let H=e=>{if(e.count>0){let t=2*e.diff+ +(1!==e.count);D(e.encoder,t),e.count>1&&O(e.encoder,e.count-2)}};class Z{constructor(){this.encoder=new P,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(H(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return H(this),I(this.encoder)}}class K{constructor(){this.sarr=[],this.s="",this.lensE=new G}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){let e=new P;return this.sarr.push(this.s),this.s="",B(e,this.sarr.join("")),z(e,this.lensE.toUint8Array()),I(e)}}e.s(["IntDiffOptRleEncoder",0,Z,"RleEncoder",0,F,"StringEncoder",0,K,"UintOptRleEncoder",0,G,"createEncoder",0,j,"encode",0,e=>{let t=j();return e(t),I(t)},"toUint8Array",0,I,"write",0,T,"writeAny",0,U,"writeBinaryEncoder",0,(e,t)=>z(e,I(t)),"writeUint8",0,T,"writeUint8Array",0,z,"writeVarInt",0,D,"writeVarString",0,B,"writeVarUint",0,O,"writeVarUint8Array",0,q],968575);let W=e=>Error(e),X=()=>{throw W("Method unimplemented")},J=()=>{throw W("Unexpected case")};e.s(["create",0,W,"methodUnimplemented",0,X,"unexpectedCase",0,J],765381);let Q=W("Unexpected end of array"),Y=W("Integer out of Range");class ee{constructor(e){this.arr=e,this.pos=0}}let et=e=>new ee(e),er=e=>e.pos!==e.arr.length,eo=e=>{var t;let r;return t=en(e),r=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t),e.pos+=t,r},ei=e=>e.arr[e.pos++],en=e=>{let t=0,r=1,o=e.arr.length;for(;e.pos<o;){let o=e.arr[e.pos++];if(t+=(127&o)*r,r*=128,o<128)return t;if(t>k)throw Y}throw Q},es=e=>{let t=e.arr[e.pos++],r=63&t,o=64,i=(64&t)>0?-1:1;if((128&t)==0)return i*r;let n=e.arr.length;for(;e.pos<n;){if(r+=(127&(t=e.arr[e.pos++]))*o,o*=128,t<128)return i*r;if(r>k)throw Y}throw Q},ea=R?e=>R.decode(eo(e)):e=>{let t=en(e);if(0===t)return"";{let r=String.fromCodePoint(ei(e));if(--t<100)for(;t--;)r+=String.fromCodePoint(ei(e));else for(;t>0;){let o=t<1e4?t:1e4,i=e.arr.subarray(e.pos,e.pos+o);e.pos+=o,r+=String.fromCodePoint.apply(null,i),t-=o}return decodeURIComponent(escape(r))}},ec=(e,t)=>{let r=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,r},el=[e=>void 0,e=>null,es,e=>ec(e,4).getFloat32(0,!1),e=>ec(e,8).getFloat64(0,!1),e=>ec(e,8).getBigInt64(0,!1),e=>!1,e=>!0,ea,e=>{let t=en(e),r={};for(let o=0;o<t;o++)r[ea(e)]=ed(e);return r},e=>{let t=en(e),r=[];for(let o=0;o<t;o++)r.push(ed(e));return r},eo],ed=e=>el[127-ei(e)](e);class ep extends ee{constructor(e,t){super(e),this.reader=t,this.s=null,this.count=0}read(){return 0===this.count&&(this.s=this.reader(this),er(this)?this.count=en(this)+1:this.count=-1),this.count--,this.s}}class eu extends ee{constructor(e){super(e),this.s=0,this.count=0}read(){if(0===this.count){this.s=es(this);let e=w(this.s);this.count=1,e&&(this.s=-this.s,this.count=en(this)+2)}return this.count--,this.s}}class ef extends ee{constructor(e){super(e),this.s=0,this.count=0,this.diff=0}read(){if(0===this.count){let e=es(this);this.diff=f(e/2),this.count=1,1&e&&(this.count=en(this)+2)}return this.s+=this.diff,this.count--,this.s}}class eh{constructor(e){this.decoder=new eu(e),this.str=ea(this.decoder),this.spos=0}read(){let e=this.spos+this.decoder.read(),t=this.str.slice(this.spos,e);return this.spos=e,t}}e.s(["IntDiffOptRleDecoder",0,ef,"RleDecoder",0,ep,"StringDecoder",0,eh,"UintOptRleDecoder",0,eu,"createDecoder",0,et,"hasContent",0,er,"readAny",0,ed,"readUint8",0,ei,"readVarInt",0,es,"readVarString",0,ea,"readVarUint",0,en,"readVarUint8Array",0,eo],297907),crypto.subtle;let em=crypto.getRandomValues.bind(crypto),ey=Math.random,eg=()=>
49em(new Uint32Array(1))[0],eb=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^eg()&15>>e/4).toString(16));e.s(["oneOf",0,e=>e[f(ey()*e.length)],"uint32",0,eg,"uuidv4",0,eb],789522);let ev=Date.now;e.s(["getUnixTime",0,ev],849074);let ew=e=>new Promise(e);Promise.all.bind(Promise);var ek=e.i(247167);let ex=e=>void 0===e?null:e,eA=new class{constructor(){this.map=new Map}setItem(e,t){this.map.set(e,t)}getItem(e){return this.map.get(e)}};try{"u">typeof localStorage&&localStorage&&(eA=localStorage)}catch(e){}let eS=eA,eE=Object.assign,e_=Object.keys,eC=(e,t)=>{for(let r in e)t(e[r],r)},eR=e=>e_(e).length,eP=e=>{for(let t in e)return!1;return!0},ej=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),eI=(e,t)=>e===t||e_(e).length===e_(t).length&&((e,t)=>{for(let r in e)if(!t(e[r],r))return!1;return!0})(e,(e,r)=>(void 0!==e||ej(t,r))&&t[r]===e);e.s(["assign",0,eE,"equalFlat",0,eI,"forEach",0,eC,"hasProperty",0,ej,"isEmpty",0,eP,"keys",0,e_,"length",0,eR],218961);let eT=(e,t,r=0)=>{try{for(;r<e.length;r++)e[r](...t)}finally{r<e.length&&eT(e,t,r+1)}},eO=e=>e,eD=(e,t)=>e===t,eM=(e,t)=>{if(null==e||null==t)return eD(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;break;case Set:if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;break;case Map:if(e.size!==t.size)return!1;for(let r of e.keys())if(!t.has(r)||!eM(e.get(r),t.get(r)))return!1;break;case Object:if(eR(e)!==eR(t))return!1;for(let r in e)if(!ej(e,r)||!eM(e[r],t[r]))return!1;break;case Array:if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!eM(e[r],t[r]))return!1;break;default:return!1}return!0},eL=(e,t)=>t.includes(e);e.s(["callAll",0,eT,"equalityDeep",0,eM,"equalityStrict",0,eD,"id",0,eO,"isOneOf",0,eL,"nop",0,()=>{}],709646);let eB=void 0!==ek.default&&ek.default.release&&/node|io\.js/.test(ek.default.release.name)&&"[object process]"===Object.prototype.toString.call(void 0!==ek.default?ek.default:0),ez="u">typeof window&&"u">typeof document&&!eB;"u">typeof navigator&&/Mac/.test(navigator.platform);let eq=[],eV=e=>(()=>{if(void 0===t)if(eB){t=r();let e=ek.default.argv,o=null;for(let r=0;r<e.length;r++){let i=e[r];"-"===i[0]?(null!==o&&t.set(o,""),o=i):null!==o?(t.set(o,i),o=null):eq.push(i)}null!==o&&t.set(o,"")}else"object"==typeof location?(t=r(),(location.search||"?").slice(1).split("&").forEach(e=>{if(0!==e.length){let[r,o]=e.split("=");t.set(`--${E(r,"-")}`,o),t.set(`-${E(r,"-")}`,o)}})):t=r();return t})().has(e),eN=e=>eB?ex(ek.default.env[e.toUpperCase().replaceAll("-","_")]):ex(eS.getItem(e));eV("--production")||eN("production");let eU=eB&&eL(ek.default.env.FORCE_COLOR,["true","1","2"]),eF=!eV("--no-colors")&&(!eB||ek.default.stdout.isTTY||eU)&&(!eB||eV("--color")||eU||null!==eN("COLORTERM")||(eN("TERM")||"").includes("color"));e.s(["getVariable",0,eN,"isBrowser",0,ez,"supportsColor",0,eF],597016);class e${constructor(e,t){this.left=e,this.right=t}}let eG=(e,t)=>new e$(e,t),eH="u">typeof document?document:{};"u">typeof DOMParser&&new DOMParser;let eZ=(e,t)=>(eW(e,(e=>{let t=eH.createDocumentFragment();for(let r=0;r<e.length;r++)eW(t,e[r]);return t})(t)),e),eK=e=>n(e,(e,t)=>`${t}:${e};`).join(""),eW=(e,t)=>e.appendChild(t);eH.ELEMENT_NODE,eH.TEXT_NODE,eH.CDATA_SECTION_NODE,eH.COMMENT_NODE,eH.DOCUMENT_NODE,eH.DOCUMENT_TYPE_NODE,eH.DOCUMENT_FRAGMENT_NODE,e.s(["addEventListener",0,(e,t,r)=>e.addEventListener(t,r),"append",0,eZ,"doc",0,eH,"element",0,(e,t=[],r=[])=>{var o;let i;return eZ((o=eH.createElement(e),i=(e,t)=>{!1===t?o.removeAttribute(e):!0===t?o.setAttribute(e,""):o.setAttribute(e,t)},t.forEach(e=>i(e.left,e.right)),o),r)},"mapToStyleString",0,eK,"text",0,e=>eH.createTextNode(e)],152820);let eX=[],eJ=()=>{for(let e=0;e<eX.length;e++)eX[e]();eX=[]},eQ=e=>class{constructor(e){this._=e}destroy(){e(this._)}},eY=eQ(clearTimeout);eQ(clearInterval),eQ(e=>"u">typeof requestAnimationFrame&&cancelAnimationFrame(e)),eQ(e=>"u">typeof cancelIdleCallback&&cancelIdleCallback(e)),e.s(["enqueue",0,e=>{eX.push(e),1===eX.length&&setTimeout(eJ,0)},"timeout",0,(e,t)=>new eY(setTimeout(t,e))],22175);let e0=Symbol,e1=e0(),e2=e0(),e3=e0(),e9=e0(),e7=e0(),e5=e0(),e6=e0(),e8=e0(),e4=e0();ev();let te={[e1]:eG("font-weight","bold"),[e2]:eG("font-weight","normal"),[e3]:eG("color","blue"),[e7]:eG("color","green"),[e9]:eG("color","grey"),[e5]:eG("color","red"),[e6]:eG("color","purple"),[e8]:eG("color","orange"),[e4]:eG("color","black")},tt=eF?e=>{1===e.length&&e[0]?.constructor===Function&&(e=e[0]());let t=[],o=[],i=r(),n=[],s=0;for(;s<e.length;
49s++){let r=e[s],n=te[r];if(void 0!==n)i.set(n.left,n.right);else{if(void 0===r)break;if(r.constructor===String||r.constructor===Number){let e=eK(i);s>0||e.length>0?(t.push("%c"+r),o.push(e)):t.push(r)}else break}}for(s>0&&(n=o).unshift(t.join(""));s<e.length;s++){let t=e[s];t instanceof Symbol||n.push(t)}return n}:e=>{1===e.length&&e[0]?.constructor===Function&&(e=e[0]());let t=[],r=[],o=0;for(;o<e.length;o++){let i=e[o];void 0===i?t.push("undefined"):i.constructor===String||i.constructor===Number?t.push(i):i.constructor===Object&&r.push(JSON.stringify(i))}return r},tr=a(),to=e=>({[Symbol.iterator](){return this},next:e}),ti=(e,t)=>to(()=>{let{done:r,value:o}=e.next();return{done:r,value:r?void 0:t(o)}});class tn{constructor(e,t){this.clock=e,this.len=t}}class ts{constructor(){this.clients=new Map}}let ta=(e,t,r)=>t.clients.forEach((t,o)=>{let i=e.doc.store.clients.get(o);for(let o=0;o<t.length;o++){let n=t[o];t0(e,i,n.clock,n.len,r)}}),tc=(e,t)=>{let r=e.clients.get(t.client);return void 0!==r&&null!==((e,t)=>{let r=0,o=e.length-1;for(;r<=o;){let i=f((r+o)/2),n=e[i],s=n.clock;if(s<=t){if(t<s+n.len)return i;r=i+1}else o=i-1}return null})(r,t.clock)},tl=e=>{e.clients.forEach(e=>{let t,r;for(e.sort((e,t)=>e.clock-t.clock),t=1,r=1;t<e.length;t++){let o=e[r-1],i=e[t];o.clock+o.len>=i.clock?o.len=v(o.len,i.clock+i.len-o.clock):(r<t&&(e[r]=i),r++)}e.length=r})},td=e=>{let t=new ts;for(let r=0;r<e.length;r++)e[r].clients.forEach((o,i)=>{if(!t.clients.has(i)){let n=o.slice();for(let t=r+1;t<e.length;t++)l(n,e[t].clients.get(i)||[]);t.clients.set(i,n)}});return tl(t),t},tp=(e,t,r,o)=>{i(e.clients,t,()=>[]).push(new tn(r,o))},tu=()=>new ts,tf=e=>{let t=tu();return e.clients.forEach((e,r)=>{let o=[];for(let t=0;t<e.length;t++){let r=e[t];if(r.deleted){let i=r.id.clock,n=r.length;if(t+1<e.length)for(let r=e[t+1];t+1<e.length&&r.deleted;r=e[++t+1])n+=r.length;o.push(new tn(i,n))}}o.length>0&&t.clients.set(r,o)}),t},th=(e,t)=>{O(e.restEncoder,t.clients.size),d(t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,r])=>{e.resetDsCurVal(),O(e.restEncoder,t);let o=r.length;O(e.restEncoder,o);for(let t=0;t<o;t++){let o=r[t];e.writeDsClock(o.clock),e.writeDsLen(o.len)}})},tm=e=>{let t=new ts,r=en(e.restDecoder);for(let o=0;o<r;o++){e.resetDsCurVal();let r=en(e.restDecoder),o=en(e.restDecoder);if(o>0){let n=i(t.clients,r,()=>[]);for(let t=0;t<o;t++)n.push(new tn(e.readDsClock(),e.readDsLen()))}}return t},ty=(e,t,r)=>{let o=new ts,i=en(e.restDecoder);for(let n=0;n<i;n++){e.resetDsCurVal();let i=en(e.restDecoder),n=en(e.restDecoder),s=r.clients.get(i)||[],a=tZ(r,i);for(let r=0;r<n;r++){let r=e.readDsClock(),n=r+e.readDsLen();if(r<a){a<n&&tp(o,i,a,n-a);let e=tW(s,r),c=s[e];for(!c.deleted&&c.id.clock<r&&(s.splice(e+1,0,oy(t,c,r-c.id.clock)),e++);e<s.length;)if((c=s[e++]).id.clock<n)c.deleted||(n<c.id.clock+c.length&&s.splice(e,0,oy(t,c,n-c.id.clock)),c.delete(t));else break}else tp(o,i,r,n-r)}}if(o.clients.size>0){let e=new tE;return O(e.restEncoder,0),th(e,o),e.toUint8Array()}return null};class tg extends u{constructor({guid:e=eb(),collectionid:t=null,gc:r=!0,gcFilter:o=()=>!0,meta:i=null,autoLoad:n=!1,shouldLoad:s=!0}={}){super(),this.gc=r,this.gcFilter=o,this.clientID=eg(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new tG,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=s,this.autoLoad=n,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=ew(e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const a=()=>ew(e=>{let t=r=>{(void 0===r||!0===r)&&(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=a()),this.isSynced=void 0===e||!0===e,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=a()}load(){let e=this._item;null===e||this.shouldLoad||t5(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(d(this.subdocs).map(e=>e.guid))}transact(e,t=null){return t5(this,e,t)}get(e,t=rg){let r=i(this.share,e,()=>{let e=new t;return e._integrate(this,null),e}),o=r.constructor;if(t!==rg&&o!==t)if(o===rg){let o=new t;
49o._map=r._map,r._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=o}),o._start=r._start;for(let e=o._start;null!==e;e=e.right)e.parent=o;return o._length=r._length,this.share.set(e,o),o._integrate(this,null),o}else throw Error(`Type with the name ${e} has already been defined with a different constructor`);return r}getArray(e=""){return this.get(e,rO)}getText(e=""){return this.get(e,rJ)}getMap(e=""){return this.get(e,rM)}getXmlElement(e=""){return this.get(e,r0)}getXmlFragment(e=""){return this.get(e,rY)}toJSON(){let e={};return this.share.forEach((t,r)=>{e[r]=t.toJSON()}),e}destroy(){d(this.subdocs).forEach(e=>e.destroy());let e=this._item;if(null!==e){this._item=null;let t=e.content;t.doc=new tg({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,t5(e.parent.doc,r=>{let o=t.doc;e.deleted||r.subdocsAdded.add(o),r.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class tb{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return en(this.restDecoder)}readDsLen(){return en(this.restDecoder)}}class tv extends tb{readLeftID(){return tM(en(this.restDecoder),en(this.restDecoder))}readRightID(){return tM(en(this.restDecoder),en(this.restDecoder))}readClient(){return en(this.restDecoder)}readInfo(){return ei(this.restDecoder)}readString(){return ea(this.restDecoder)}readParentInfo(){return 1===en(this.restDecoder)}readTypeRef(){return en(this.restDecoder)}readLen(){return en(this.restDecoder)}readAny(){return ed(this.restDecoder)}readBuf(){var e=eo(this.restDecoder);let t=new Uint8Array(e.byteLength);return t.set(e),t}readJSON(){return JSON.parse(ea(this.restDecoder))}readKey(){return ea(this.restDecoder)}}class tw{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=en(this.restDecoder),this.dsCurrVal}readDsLen(){let e=en(this.restDecoder)+1;return this.dsCurrVal+=e,e}}class tk extends tw{constructor(e){super(e),this.keys=[],en(e),this.keyClockDecoder=new ef(eo(e)),this.clientDecoder=new eu(eo(e)),this.leftClockDecoder=new ef(eo(e)),this.rightClockDecoder=new ef(eo(e)),this.infoDecoder=new ep(eo(e),ei),this.stringDecoder=new eh(eo(e)),this.parentInfoDecoder=new ep(eo(e),ei),this.typeRefDecoder=new eu(eo(e)),this.lenDecoder=new eu(eo(e))}readLeftID(){return new tO(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new tO(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return ed(this.restDecoder)}readBuf(){return eo(this.restDecoder)}readJSON(){return ed(this.restDecoder)}readKey(){let e=this.keyClockDecoder.read();if(e<this.keys.length)return this.keys[e];{let e=this.stringDecoder.read();return this.keys.push(e),e}}}class tx{constructor(){this.restEncoder=j()}toUint8Array(){return I(this.restEncoder)}resetDsCurVal(){}writeDsClock(e){O(this.restEncoder,e)}writeDsLen(e){O(this.restEncoder,e)}}class tA extends tx{writeLeftID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeRightID(e){O(this.restEncoder,e.client),O(this.restEncoder,e.clock)}writeClient(e){O(this.restEncoder,e)}writeInfo(e){T(this.restEncoder,e)}writeString(e){B(this.restEncoder,e)}writeParentInfo(e){O(this.restEncoder,+!!e)}writeTypeRef(e){O(this.restEncoder,e)}writeLen(e){O(this.restEncoder,e)}writeAny(e){U(this.restEncoder,e)}writeBuf(e){q(this.restEncoder,e)}writeJSON(e){B(this.restEncoder,JSON.stringify(e))}writeKey(e){B(this.restEncoder,e)}}class tS{constructor(){this.restEncoder=j(),this.dsCurrVal=0}toUint8Array(){return I(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(e){let t=e-this.dsCurrVal;this.dsCurrVal=e,O(this.restEncoder,t)}writeDsLen(e){0===e&&J(),O(this.restEncoder,e-1),this.dsCurrVal+=e}}class tE extends tS{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new Z,this.clientEncoder=new G,this.leftClockEncoder=new Z,this.rightClockEncoder=new Z,this.infoEncoder=new F(T),this.stringEncoder=new K,this.parentInfoEncoder=new F(T),this.typeRefEncoder=new G,this.lenEncoder=new G}toUint8Array(){let e=j();return O(e,0),q(e,this.keyClockEncoder.toUint8Array()),q(e,this.clientEncoder.toUint8Array()),q(e,this.leftClockEncoder.toUint8Array()),q(e,this.rightClockEncoder.toUint8Array()),q(e,I(this.infoEncoder)),q(e,this.stringEncoder.toUint8Array()),q(e,I(this.parentInfoEncoder)),q(e,this.typeRefEncoder.toUint8Array()),q(e,this.lenEncoder.toUint8Array()),z(e,I(this.restEncoder)),I(e)}writeLeftID(e){this.clientEncoder.write(e.client),this.leftClockEncoder.write(e.clock)}writeRightID(e){this.clientEncoder.write(e.client),this.rightClockEncoder.write(e.clock)}writeClient(e){this.clientEncoder.write(e)}writeInfo(e){this.infoEncoder.write(e)}writeString(e){this.stringEncoder.write(e)}writeParentInfo(e){this.parentInfoEncoder.write(+!!e)}writeTypeRef(e){this.typeRefEncoder.write(e)}writeLen(e){this.lenEncoder.write(e)}writeAny(e){U(this.restEncoder,e)}writeBuf(e){q(this.restEncoder,e)}writeJSON(e){U(this.restEncoder,e)}writeKey(e){let t=this.keyMap.get(e);void 0===t?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(e)):this.keyClockEncoder.write(t)}}let t_=(e,t,r)=>{let o=new Map;r.forEach((e,r)=>{tZ(t,r)>e&&o.set(r,e)}),tH(t).forEach((e,t)=>{r.has(t)||o.set(t,0)}),O(e.restEncoder,o.size),d(o.entries()).sort((e,t)=>
49t[0]-e[0]).forEach(([r,o])=>{((e,t,r,o)=>{o=v(o,t[0].id.clock);let i=tW(t,o);O(e.restEncoder,t.length-i),e.writeClient(r),O(e.restEncoder,o);let n=t[i];n.write(e,o-n.id.clock);for(let r=i+1;r<t.length;r++)t[r].write(e,0)})(e,t.clients.get(r),r,o)})},tC=(e,t,o,n=tk)=>{let s=et(t);((e,t,o,n=new tk(e))=>t5(t,e=>{e.local=!1;let t=!1,o=e.doc,s=o.store,a=((e,t,r)=>{let o=[],n=d(r.keys()).sort((e,t)=>e-t);if(0===n.length)return null;let s=()=>{if(0===n.length)return null;let e=r.get(n[n.length-1]);for(;e.refs.length===e.i;){if(n.pop(),!(n.length>0))return null;e=r.get(n[n.length-1])}return e},a=s();if(null===a)return null;let c=new tG,l=new Map,p=(e,t)=>{let r=l.get(e);(null==r||r>t)&&l.set(e,t)},u=a.refs[a.i++],f=new Map,h=()=>{for(let e of o){let t=e.id.client,o=r.get(t);o?(o.i--,c.clients.set(t,o.refs.slice(o.i)),r.delete(t),o.i=0,o.refs=[]):c.clients.set(t,[e]),n=n.filter(e=>e!==t)}o.length=0};for(;;){if(u.constructor!==ox){let n=i(f,u.id.client,()=>tZ(t,u.id.client))-u.id.clock;if(n<0)o.push(u),p(u.id.client,u.id.clock-1),h();else{let i=u.getMissing(e,t);if(null!==i){o.push(u);let e=r.get(i)||{refs:[],i:0};if(e.refs.length===e.i)p(i,tZ(t,i)),h();else{u=e.refs[e.i++];continue}}else(0===n||n<u.length)&&(u.integrate(e,n),f.set(u.id.client,u.id.clock+u.length))}}if(o.length>0)u=o.pop();else if(null!==a&&a.i<a.refs.length)u=a.refs[a.i++];else{if(null===(a=s()))break;u=a.refs[a.i++]}}if(c.clients.size>0){let e=new tE;return t_(e,c,new Map),O(e.restEncoder,0),{missing:l,update:e.toUint8Array()}}return null})(e,s,((e,t)=>{let o=r(),i=en(e.restDecoder);for(let r=0;r<i;r++){let r=en(e.restDecoder),i=Array(r),n=e.readClient(),s=en(e.restDecoder);o.set(n,{i:0,refs:i});for(let o=0;o<r;o++){let r=e.readInfo();switch(31&r){case 0:{let t=e.readLen();i[o]=new r7(tM(n,s),t),s+=t;break}case 10:{let t=en(e.restDecoder);i[o]=new ox(tM(n,s),t),s+=t;break}default:{let a=(192&r)==0,c=new ov(tM(n,s),null,(128&r)==128?e.readLeftID():null,null,(64&r)==64?e.readRightID():null,a?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,a&&(32&r)==32?e.readString():null,ow(e,r));i[o]=c,s+=c.length}}}}return o})(n,o)),c=s.pendingStructs;if(c){for(let[e,r]of c.missing)if(r<tZ(s,e)){t=!0;break}if(a){for(let[e,t]of a.missing){let r=c.missing.get(e);(null==r||r>t)&&c.missing.set(e,t)}c.update=ri([c.update,a.update])}}else s.pendingStructs=a;let l=ty(n,e,s);if(s.pendingDs){let t=new tk(et(s.pendingDs));en(t.restDecoder);let r=ty(t,e,s);l&&r?s.pendingDs=ri([l,r]):s.pendingDs=l||r}else s.pendingDs=l;if(t){let t=s.pendingStructs.update;s.pendingStructs=null,tC(e.doc,t)}},o,!1))(s,e,o,new n(s))},tR=e=>(e=>{let t=new Map,r=en(e.restDecoder);for(let o=0;o<r;o++){let r=en(e.restDecoder),o=en(e.restDecoder);t.set(r,o)}return t})(new tb(et(e)));class tP{constructor(){this.l=[]}}let tj=()=>new tP,tI=(e,t)=>{let r=e.l,o=r.length;e.l=r.filter(e=>t!==e),o===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},tT=(e,t,r)=>eT(e.l,[t,r]);class tO{constructor(e,t){this.client=e,this.clock=t}}let tD=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,tM=(e,t)=>new tO(e,t),tL=e=>{for(let[t,r]of e.doc.share.entries())if(r===e)return t;throw J()},tB=(e,t)=>{for(;null!==t;){if(t.parent===e)return!0;t=t.parent._item}return!1};class tz{constructor(e,t,r,o=0){this.type=e,this.tname=t,this.item=r,this.assoc=o}}class tq{constructor(e,t,r=0){this.type=e,this.index=t,this.assoc=r}}let tV=(e,t,r)=>{let o=null,i=null;return null===e._item?i=tL(e):o=tM(e._item.id.client,e._item.id.clock),new tz(o,i,t,r)};class tN{constructor(e,t){this.ds=e,this.sv=t}}let tU=(e,t)=>new tN(e,t);tU(tu(),new Map);let tF=(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!tc(t.ds,e.id),t$=(e,t)=>{let r=i(e.meta,t$,a),o=e.doc.store;r.has(t)||(t.sv.forEach((t,r)=>{t<tZ(o,r)&&tQ(e,tM(r,t))}),ta(e,t.ds,e=>{}),r.add(t))};class tG{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}let tH=e=>{let t=new Map;return e.clients.forEach((e,r)=>{let o=e[e.length-1];t.set(r,o.id.clock+o.length)}),t},tZ=(e,t)=>{let r=e.clients.get(t);if(void 0===r)return 0;let o=r[r.length-1];return o.id.clock+o.length},tK=(e,t)=>{let r=e.clients.get(t.id.client);if(void 0===r)r=[],e.clients.set(t.id.client,r);else{let e=r[r.length-1];if(e.id.clock+e.length!==t.id.clock)throw J()}r.push(t)},tW=(e,t)=>{let r=0,o=e.length-1,i=e[o],n=i.id.clock;if(n===t)return o;let s=f(t/(n+i.length-1)*o);for(;r<=o;){if((n=(i=e[s]).id.clock)<=t){if(t<n+i.length)return s;r=s+1}else o=s-1;s=f((r+o)/2)}throw J()},tX=(e,t)=>{let r=e.clients.get(t.client);return r[tW(r,t.clock)]},tJ=(e,t,r)=>{let o=tW(t,r),i=t[o];return i.id.clock<r&&i instanceof ov?(t.splice(o+1,0,oy(e,i,r-i.id.clock)),o+1):o},tQ=(e,t)=>{let r=e.doc.store.clients.get(t.client);return r[tJ(e,r,t.clock)]},tY=(e,t,r)=>{let o=t.clients.get(r.client),i=tW(o,r.clock),n=o[i];return r.clock!==n.id.clock+n.length-1&&n.constructor!==r7&&o.splice(i+1,0,oy(e,n,r.clock-n.id.clock+1)),n},t0=(e,t,r,o,i)=>{let n;if(0===o)return;let s=r+o,a=tJ(e,t,r);
49do s<(n=t[a++]).id.clock+n.length&&tJ(e,t,s),i(n);while(a<t.length&&t[a].id.clock<s)};class t1{constructor(e,t,r){this.doc=e,this.deleteSet=new ts,this.beforeState=tH(e.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=t,this.meta=new Map,this.local=r,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}}let t2=(e,t)=>(0!==t.deleteSet.clients.size||!!s(t.afterState,(e,r)=>t.beforeState.get(r)!==e))&&(tl(t.deleteSet),t_(e,t.doc.store,t.beforeState),th(e,t.deleteSet),!0),t3=(e,t,r)=>{let o=t._item;(null===o||o.id.clock<(e.beforeState.get(o.id.client)||0)&&!o.deleted)&&i(e.changed,t,a).add(r)},t9=(e,t)=>{let r=e[t],o=e[t-1],i=t;for(;i>0;r=o,o=e[--i-1]){if(o.deleted===r.deleted&&o.constructor===r.constructor&&o.mergeWith(r)){r instanceof ov&&null!==r.parentSub&&r.parent._map.get(r.parentSub)===r&&r.parent._map.set(r.parentSub,o);continue}break}let n=t-i;return n&&e.splice(t+1-n,n),n},t7=(e,t)=>{if(t<e.length){let r=e[t],o=r.doc,i=o.store,n=r.deleteSet,s=r._mergeStructs;try{tl(n),r.afterState=tH(r.doc.store),o.emit("beforeObserverCalls",[r,o]);let e=[];r.changed.forEach((t,o)=>e.push(()=>{null!==o._item&&o._item.deleted||o._callObserver(r,t)})),e.push(()=>{r.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&((e=e.filter(e=>null===e.target._item||!e.target._item.deleted)).forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),tT(t._dEH,e,r))})}),e.push(()=>o.emit("afterTransaction",[r,o])),eT(e,[]),r._needFormattingCleanup&&rK(r)}finally{o.gc&&((e,t,r)=>{for(let[o,i]of e.clients.entries()){let e=t.clients.get(o);for(let o=i.length-1;o>=0;o--){let n=i[o],s=n.clock+n.len;for(let o=tW(e,n.clock),i=e[o];o<e.length&&i.id.clock<s;i=e[++o]){let i=e[o];if(n.clock+n.len<=i.id.clock)break;i instanceof ov&&i.deleted&&!i.keep&&r(i)&&i.gc(t,!1)}}}})(n,i,o.gcFilter),n.clients.forEach((e,t)=>{let r=i.clients.get(t);for(let t=e.length-1;t>=0;t--){let o=e[t],i=b(r.length-1,1+tW(r,o.clock+o.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=o.clock;t=r[e])e-=1+t9(r,e)}}),r.afterState.forEach((e,t)=>{let o=r.beforeState.get(t)||0;if(o!==e){let e=i.clients.get(t),r=v(tW(e,o),1);for(let t=e.length-1;t>=r;)t-=1+t9(e,t)}});for(let e=s.length-1;e>=0;e--){let{client:t,clock:r}=s[e].id,o=i.clients.get(t),n=tW(o,r);!(n+1<o.length&&t9(o,n+1)>1)&&n>0&&t9(o,n)}if(r.local||r.afterState.get(o.clientID)===r.beforeState.get(o.clientID)||(((...e)=>{console.log(...tt(e)),tr.forEach(t=>t.print(e))})(e8,e1,"[yjs] ",e2,e5,"Changed the client-id because another client seems to be using it."),o.clientID=eg()),o.emit("afterTransactionCleanup",[r,o]),o._observers.has("update")){let e=new tA;t2(e,r)&&o.emit("update",[e.toUint8Array(),r.origin,o,r])}if(o._observers.has("updateV2")){let e=new tE;t2(e,r)&&o.emit("updateV2",[e.toUint8Array(),r.origin,o,r])}let{subdocsAdded:a,subdocsLoaded:c,subdocsRemoved:l}=r;(a.size>0||l.size>0||c.size>0)&&(a.forEach(e=>{e.clientID=o.clientID,null==e.collectionid&&(e.collectionid=o.collectionid),o.subdocs.add(e)}),l.forEach(e=>o.subdocs.delete(e)),o.emit("subdocs",[{loaded:c,added:a,removed:l},o,r]),l.forEach(e=>e.destroy())),e.length<=t+1?(o._transactionCleanups=[],o.emit("afterAllTransactions",[o,e])):t7(e,t+1)}}},t5=(e,t,r=null,o=!0)=>{let i=e._transactionCleanups,n=!1,s=null;null===e._transaction&&(n=!0,e._transaction=new t1(e,r,o),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{s=t(e._transaction)}finally{if(n){let t=e._transaction===i[0];e._transaction=null,t&&t7(i,0)}}return s};class t6{constructor(e,t){this.insertions=t,this.deletions=e,this.meta=new Map}}let t8=(e,t,r)=>{ta(e,r.deletions,e=>{e instanceof ov&&t.scope.some(t=>tB(t,e))&&om(e,!1)})},t4=(e,t,r)=>{let o=null,i=e.doc,n=e.scope;if(t5(i,r=>{for(;t.length>0&&null===e.currStackItem;){let o=i.store,s=t.pop(),a=new Set,c=[],l=!1;ta(r,s.insertions,e=>{if(e instanceof ov){if(null!==e.redone){let{item:t,diff:i}=oh(o,e.id);i>0&&(t=tQ(r,tM(t.id.client,t.id.clock+i))),e=t}!e.deleted&&n.some(t=>tB(t,e))&&c.push(e)}}
49),ta(r,s.deletions,e=>{e instanceof ov&&n.some(t=>tB(t,e))&&!tc(s.insertions,e.id)&&a.add(e)}),a.forEach(t=>{l=null!==ob(r,t,a,s.insertions,e.ignoreRemoteMapChanges,e)||l});for(let t=c.length-1;t>=0;t--){let o=c[t];e.deleteFilter(o)&&(o.delete(r),l=!0)}e.currStackItem=l?s:null}r.changed.forEach((e,t)=>{e.has(null)&&t._searchMarker&&(t._searchMarker.length=0)}),o=r},e),null!=e.currStackItem){let t=o.changedParentTypes;e.emit("stack-item-popped",[{stackItem:e.currStackItem,type:r,changedParentTypes:t,origin:e},e]),e.currStackItem=null}return e.currStackItem};class re{constructor(e,t){this.gen=function*(e){let t=en(e.restDecoder);for(let r=0;r<t;r++){let t=en(e.restDecoder),r=e.readClient(),o=en(e.restDecoder);for(let i=0;i<t;i++){let t=e.readInfo();if(10===t){let t=en(e.restDecoder);yield new ox(tM(r,o),t),o+=t}else if((31&t)!=0){let i=(192&t)==0,n=new ov(tM(r,o),null,(128&t)==128?e.readLeftID():null,null,(64&t)==64?e.readRightID():null,i?e.readParentInfo()?e.readString():e.readLeftID():null,i&&(32&t)==32?e.readString():null,ow(e,t));yield n,o+=n.length}else{let t=e.readLen();yield new r7(tM(r,o),t),o+=t}}}}(e),this.curr=null,this.done=!1,this.filterSkips=t,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&null!==this.curr&&this.curr.constructor===ox)return this.curr}}class rt{constructor(e){this.currClient=0,this.startClock=0,this.written=0,this.encoder=e,this.clientStructs=[]}}let rr=e=>ri(e,tv,tA),ro=(e,t)=>{if(e.constructor===r7){let{client:r,clock:o}=e.id;return new r7(tM(r,o+t),e.length-t)}if(e.constructor===ox){let{client:r,clock:o}=e.id;return new ox(tM(r,o+t),e.length-t)}{let{client:r,clock:o}=e.id;return new ov(tM(r,o+t),null,tM(r,o+t-1),null,e.rightOrigin,e.parent,e.parentSub,e.content.splice(t))}},ri=(e,t=tk,r=tE)=>{if(1===e.length)return e[0];let o=e.map(e=>new t(et(e))),i=o.map(e=>new re(e,!0)),n=null,s=new r,a=new rt(s);for(;(i=i.filter(e=>null!==e.curr)).sort((e,t)=>{if(e.curr.id.client!==t.curr.id.client)return t.curr.id.client-e.curr.id.client;{let r=e.curr.id.clock-t.curr.id.clock;return 0===r?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===ox?1:-1:r}}),0!==i.length;){let e=i[0],t=e.curr.id.client;if(null!==n){let r=e.curr,o=!1;for(;null!==r&&r.id.clock+r.length<=n.struct.id.clock+n.struct.length&&r.id.client>=n.struct.id.client;)r=e.next(),o=!0;if(null===r||r.id.client!==t||o&&r.id.clock>n.struct.id.clock+n.struct.length)continue;if(t!==n.struct.id.client)rs(a,n.struct,n.offset),n={struct:r,offset:0},e.next();else if(n.struct.id.clock+n.struct.length<r.id.clock)if(n.struct.constructor===ox)n.struct.length=r.id.clock+r.length-n.struct.id.clock;else{rs(a,n.struct,n.offset);let e=r.id.clock-n.struct.id.clock-n.struct.length;n={struct:new ox(tM(t,n.struct.id.clock+n.struct.length),e),offset:0}}else{let t=n.struct.id.clock+n.struct.length-r.id.clock;t>0&&(n.struct.constructor===ox?n.struct.length-=t:r=ro(r,t)),n.struct.mergeWith(r)||(rs(a,n.struct,n.offset),n={struct:r,offset:0},e.next())}}else n={struct:e.curr,offset:0},e.next();for(let r=e.curr;null!==r&&r.id.client===t&&r.id.clock===n.struct.id.clock+n.struct.length&&r.constructor!==ox;r=e.next())rs(a,n.struct,n.offset),n={struct:r,offset:0}}return null!==n&&(rs(a,n.struct,n.offset),n=null),ra(a),th(s,td(o.map(e=>tm(e)))),s.toUint8Array()},rn=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:I(e.encoder.restEncoder)}),e.encoder.restEncoder=j(),e.written=0)},rs=(e,t,r)=>{e.written>0&&e.currClient!==t.id.client&&rn(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),O(e.encoder.restEncoder,t.id.clock+r)),t.write(e.encoder,r),e.written++},ra=e=>{rn(e);let t=e.encoder.restEncoder;O(t,e.clientStructs.length);for(let r=0;r<e.clientStructs.length;r++){let o=e.clientStructs[r];O(t,o.written),z(t,o.restEncoder)}},rc="You must not compute changes after the event-handler fired.";class rl{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=rd(this.currentTarget,this.target))}deletes(e){return tc(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw W(rc);let e=new Map,t=this.target;this.transaction.changed.get(t).forEach(r=>{if(null!==r){let o,i,n=t._map.get(r);if(this.adds(n)){let e=n.left;for(;null!==e&&this.adds(e);)e=e.left;if(this.deletes(n))if(!(null!==e&&this.deletes(e)))return;else o="delete",i=c(e.content.getContent());else null!==e&&this.deletes(e)?(o="update",i=c(e.content.getContent())):(o="add",i=void 0)}else{if(!this.deletes(n))return;o="delete",i=c(n.content.getContent())}e.set(r,{action:o,oldValue:i})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw W(rc);let t=this.target,r=a(),o=a(),i=[];if(e={added:r,deleted:o,delta:i,keys:this.keys},this.transaction.changed.get(t).has(null)){let e=null,n=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&((null===e||void 0===e.delete)&&(n(),e={delete:0}),e.delete+=i.length,o.add(i)):this.adds(i)?((null===e||void 0===e.insert)&&(n(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),r.add(i)):((null===e||void 0===e.retain)&&(n(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&n()}this._changes=e}return e}}let rd=(e,t)=>{let r=[];for(;null!==t._item&&t!==e;){if(null!==t._item.parentSub)r.unshift(t._item.parentSub);else{let e=0,o=t._item.parent._start;for(;o!==t._item&&null!==o;)!o.deleted&&e++,o=o.right;r.unshift(e)}t=t._item.parent}return r},rp=0;class ru{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=rp++}}let rf=(e,t,r)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=r,e.timestamp=rp++},rh=(e,t)=>{if(null===e._start||0===t||null===e._searchMarker)return null;let r=0===e._searchMarker.length?null:e._searchMarker.reduce((e,r)=>m(t-e.index)<m(t-r.index)?e:r),o=e._start,i=0;for(null!==r&&(o=r.p,i=r.index,r.timestamp=rp++);null!==o.right&&i<t;){if(!o.deleted&&o.countable){if(t<i+o.length)break;i+=o.length}o=o.right}for(;null!==o.left&&i>t;)!(o=o.left).deleted&&o.countable&&(i-=o.length);for(;null!==o.left&&o.left.id.client===o.id.client&&o.left.id.clock+o.left.length===o.id.clock;)!(o=o.left).deleted&&o.countable&&(i-=o.length);if(null!==r&&m(r.index-i)<o.parent.length/80)return rf(r,o,i),r;var n=e._searchMarker,s=o,a=i;if(n.length>=80){let e=n.reduce((e,t)=>
49e.timestamp<t.timestamp?e:t);return rf(e,s,a),e}{let e=new ru(s,a);return n.push(e),e}},rm=(e,t,r)=>{for(let o=e.length-1;o>=0;o--){let i=e[o];if(r>0){let t=i.p;for(t.marker=!1;t&&(t.deleted||!t.countable);)(t=t.left)&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(o,1);continue}i.p=t,t.marker=!0}(t<i.index||r>0&&t===i.index)&&(i.index=v(t,i.index+r))}},ry=(e,t,r)=>{let o=e,n=t.changedParentTypes;for(;i(n,e,()=>[]).push(r),null!==e._item;)e=e._item.parent;tT(o._eH,r,t)};class rg{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=tj(),this._dEH=tj(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw X()}clone(){throw X()}_write(e){}get _first(){let e=this._start;for(;null!==e&&e.deleted;)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){let t;t=this._eH,t.l.push(e)}observeDeep(e){let t;t=this._dEH,t.l.push(e)}unobserve(e){tI(this._eH,e)}unobserveDeep(e){tI(this._dEH,e)}toJSON(){}}let rb=(e,t,r)=>{t<0&&(t=e._length+t),r<0&&(r=e._length+r);let o=r-t,i=[],n=e._start;for(;null!==n&&o>0;){if(n.countable&&!n.deleted){let e=n.content.getContent();if(e.length<=t)t-=e.length;else{for(let r=t;r<e.length&&o>0;r++)i.push(e[r]),o--;t=0}}n=n.right}return i},rv=e=>{let t=[],r=e._start;for(;null!==r;){if(r.countable&&!r.deleted){let e=r.content.getContent();for(let r=0;r<e.length;r++)t.push(e[r])}r=r.right}return t},rw=(e,t)=>{let r=0,o=e._start;for(;null!==o;){if(o.countable&&!o.deleted){let i=o.content.getContent();for(let o=0;o<i.length;o++)t(i[o],r++,e)}o=o.right}},rk=(e,t)=>{let r=[];return rw(e,(o,i)=>{r.push(t(o,i,e))}),r},rx=(e,t)=>{let r=rh(e,t),o=e._start;for(null!==r&&(o=r.p,t-=r.index);null!==o;o=o.right)if(!o.deleted&&o.countable){if(t<o.length)return o.content.getContent()[t];t-=o.length}},rA=(e,t,r,o)=>{let i=r,n=e.doc,s=n.clientID,a=n.store,c=null===r?t._start:r.right,l=[],d=()=>{l.length>0&&((i=new ov(tM(s,tZ(a,s)),i,i&&i.lastId,c,c&&c.id,t,null,new oo(l))).integrate(e,0),l=[])};o.forEach(r=>{if(null===r)l.push(r);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:l.push(r);break;default:switch(d(),r.constructor){case Uint8Array:case ArrayBuffer:(i=new ov(tM(s,tZ(a,s)),i,i&&i.lastId,c,c&&c.id,t,null,new r5(new Uint8Array(r)))).integrate(e,0);break;case tg:(i=new ov(tM(s,tZ(a,s)),i,i&&i.lastId,c,c&&c.id,t,null,new r4(r))).integrate(e,0);break;default:if(r instanceof rg)(i=new ov(tM(s,tZ(a,s)),i,i&&i.lastId,c,c&&c.id,t,null,new of(r))).integrate(e,0);else throw Error("Unexpected content type in insert operation")}}}),d()},rS=(e,t,r,o)=>{if(r>t._length)throw W("Length exceeded!");if(0===r)return t._searchMarker&&rm(t._searchMarker,r,o.length),rA(e,t,null,o);let i=r,n=rh(t,r),s=t._start;for(null!==n&&(s=n.p,0==(r-=n.index)&&(r+=(s=s.prev)&&s.countable&&!s.deleted?s.length:0));null!==s;s=s.right)if(!s.deleted&&s.countable){if(r<=s.length){r<s.length&&tQ(e,tM(s.id.client,s.id.clock+r));break}r-=s.length}return t._searchMarker&&rm(t._searchMarker,i,o.length),rA(e,t,s,o)},rE=(e,t,r,o)=>{if(0===o)return;let i=r,n=o,s=rh(t,r),a=t._start;for(null!==s&&(a=s.p,r-=s.index);null!==a&&r>0;a=a.right)!a.deleted&&a.countable&&(r<a.length&&tQ(e,tM(a.id.client,a.id.clock+r)),r-=a.length);for(;o>0&&null!==a;)a.deleted||(o<a.length&&tQ(e,tM(a.id.client,a.id.clock+o)),a.delete(e),o-=a.length),a=a.right;if(o>0)throw W("Length exceeded!");t._searchMarker&&rm(t._searchMarker,i,-n+o)},r_=(e,t,r)=>{let o=t._map.get(r);void 0!==o&&o.delete(e)},rC=(e,t,r,o)=>{let i,n=t._map.get(r)||null,s=e.doc,a=s.clientID;if(null==o)i=new oo([o]);else switch(o.constructor){case Number:case Object:case Boolean:case Array:case String:i=new oo([o]);break;case Uint8Array:i=new r5(o);break;case tg:i=new r4(o);break;default:if(o instanceof rg)i=new of(o);else throw Error("Unexpected content type")}new ov(tM(a,tZ(s.store,a)),n,n&&n.lastId,null,null,t,r,i).integrate(e,0)},rR=(e,t)=>{let r=e._map.get(t);return void 0===r||r.deleted?void 0:r.content.getContent()[r.length-1]},rP=e=>{let t={};
49return e._map.forEach((e,r)=>{e.deleted||(t[r]=e.content.getContent()[e.length-1])}),t},rj=(e,t)=>{let r=e._map.get(t);return void 0!==r&&!r.deleted},rI=e=>{let t,r;return t=e.entries(),r=e=>!e[1].deleted,to(()=>{let e;do e=t.next();while(!e.done&&!r(e.value))return e})};class rT extends rl{constructor(e,t){super(e,t),this._transaction=t}}class rO extends rg{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){let t=new rO;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new rO}clone(){let e=new rO;return e.insert(0,this.toArray().map(e=>e instanceof rg?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(e,t){super._callObserver(e,t),ry(this,e,new rT(this,e))}insert(e,t){null!==this.doc?t5(this.doc,r=>{rS(r,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?t5(this.doc,t=>{((e,t,r)=>{let o=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start}).p;if(o)for(;o.right;)o=o.right;return rA(e,t,o,r)})(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?t5(this.doc,r=>{rE(r,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return rx(this,e)}toArray(){return rv(this)}slice(e=0,t=this.length){return rb(this,e,t)}toJSON(){return this.map(e=>e instanceof rg?e.toJSON():e)}map(e){return rk(this,e)}forEach(e){rw(this,e)}[Symbol.iterator](){let e,t,r;return e=this._start,t=null,r=0,{[Symbol.iterator](){return this},next:()=>{if(null===t){for(;null!==e&&e.deleted;)e=e.right;if(null===e)return{done:!0,value:void 0};t=e.content.getContent(),r=0,e=e.right}let o=t[r++];return t.length<=r&&(t=null),{done:!1,value:o}}}}_write(e){e.writeTypeRef(os)}}class rD extends rl{constructor(e,t,r){super(e,t),this.keysChanged=r}}class rM extends rg{constructor(e){super(),this._prelimContent=null,void 0===e?this._prelimContent=new Map:this._prelimContent=new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new rM}clone(){let e=new rM;return this.forEach((t,r)=>{e.set(r,t instanceof rg?t.clone():t)}),e}_callObserver(e,t){ry(this,e,new rD(this,e,t))}toJSON(){let e={};return this._map.forEach((t,r)=>{if(!t.deleted){let o=t.content.getContent()[t.length-1];e[r]=o instanceof rg?o.toJSON():o}}),e}get size(){return[...rI(this._map)].length}keys(){return ti(rI(this._map),e=>e[0])}values(){return ti(rI(this._map),e=>e[1].content.getContent()[e[1].length-1])}entries(){return ti(rI(this._map),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this._map.forEach((t,r)=>{t.deleted||e(t.content.getContent()[t.length-1],r,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?t5(this.doc,t=>{r_(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?t5(this.doc,r=>{rC(r,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return rR(this,e)}has(e){return rj(this,e)}clear(){null!==this.doc?t5(this.doc,e=>{this.forEach(function(t,r,o){r_(e,o,r)})}):this._prelimContent.clear()}_write(e){e.writeTypeRef(oa)}}let rL=(e,t)=>e===t||"object"==typeof e&&"object"==typeof t&&e&&t&&eI(e,t);class rB{constructor(e,t,r,o){this.left=e,this.right=t,this.index=r,this.currentAttributes=o}forward(){null===this.right&&J(),this.right.content.constructor===ot?this.right.deleted||rN(this.currentAttributes,this.right.content):this.right.deleted||(this.index+=this.right.length),this.left=this.right,this.right=this.right.right}}let rz=(e,t,r)=>{for(;null!==t.right&&r>0;)t.right.content.constructor===ot?t.right.deleted||rN(t.currentAttributes,t.right.content):t.right.deleted||(r<t.right.length&&tQ(e,tM(t.right.id.client,t.right.id.clock+r)),t.index+=t.right.length,r-=t.right.length),t.left=t.right,t.right=t.right.right;return t},rq=(e,t,r,o)=>{let i=new Map,n=o?rh(t,r):null;return n?rz(e,new rB(n.p.left,n.p,n.index,i),r-n.index):rz(e,new rB(null,t._start,0,i),r)},rV=(e,t,r,o)=>{for(;null!==r.right&&(!0===r.right.deleted||r.right.content.constructor===ot&&rL(o.get(r.right.content.key),r.right.content.value));)r.right.deleted||o.delete(r.right.content.key),r.forward();let i=e.doc,n=i.clientID;o.forEach((o,s)=>{let a=r.left,c=r.right,l=new ov(tM(n,tZ(i.store,n)),a,a&&a.lastId,c,c&&c.id,t,null,new ot(s,o));l.integrate(e,0),r.right=l,r.forward()})},rN=(e,t)=>{let{key:r,value:o}=t;null===o?e.delete(r):e.set(r,o)},rU=(e,t)=>{for(;null!==e.right&&(e.right.deleted||e.right.content.constructor===ot&&rL(t[e.right.content.key]??null,e.right.content.value));){;e.forward()}},rF=(e,t,r,o)=>{let i=e.doc,n=i.clientID,s=new Map;for(let a in o){let c=o[a],l=r.currentAttributes.get(a)??null;if(!rL(l,c)){s.set(a,l);let{left:o,right:d}=r;r.right=new ov(tM(n,tZ(i.store,n)),o,o&&o.lastId,d,d&&d.id,t,null,new ot(a,c)),r.right.integrate(e,0),r.forward()}}return s},r$=(e,t,r,o,i)=>
49{r.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});let n=e.doc,s=n.clientID;rU(r,i);let a=rF(e,t,r,i),c=o.constructor===String?new oi(o):o instanceof rg?new of(o):new oe(o),{left:l,right:d,index:p}=r;t._searchMarker&&rm(t._searchMarker,r.index,c.getLength()),(d=new ov(tM(s,tZ(n.store,s)),l,l&&l.lastId,d,d&&d.id,t,null,c)).integrate(e,0),r.right=d,r.index=p,r.forward(),rV(e,t,r,a)},rG=(e,t,r,o,i)=>{let n=e.doc,s=n.clientID;rU(r,i);let a=rF(e,t,r,i);for(;null!==r.right&&(o>0||a.size>0&&(r.right.deleted||r.right.content.constructor===ot));){if(!r.right.deleted)if(r.right.content.constructor===ot){let{key:t,value:n}=r.right.content,s=i[t];if(void 0!==s){if(rL(s,n))a.delete(t);else{if(0===o)break;a.set(t,n)}r.right.delete(e)}else r.currentAttributes.set(t,n)}else o<r.right.length&&tQ(e,tM(r.right.id.client,r.right.id.clock+o)),o-=r.right.length;r.forward()}if(o>0){let i="";for(;o>0;o--)i+="\n";r.right=new ov(tM(s,tZ(n.store,s)),r.left,r.left&&r.left.lastId,r.right,r.right&&r.right.id,t,null,new oi(i)),r.right.integrate(e,0),r.forward()}rV(e,t,r,a)},rH=(e,t,o,i,n)=>{let s=t,a=r();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===ot){let e=s.content;a.set(e.key,e)}s=s.right}let c=0,l=!1;for(;t!==s;){if(o===t&&(l=!0),!t.deleted){let r=t.content;if(r.constructor===ot){let{key:o,value:s}=r,d=i.get(o)??null;(a.get(o)!==r||d===s)&&(t.delete(e),c++,l||(n.get(o)??null)!==s||d===s||(null===d?n.delete(o):n.set(o,d))),l||t.deleted||rN(n,r)}}t=t.right}return c},rZ=e=>{let t=0;return t5(e.doc,i=>{let n=e._start,s=e._start,a=r(),c=o(a);for(;s;)!1===s.deleted&&(s.content.constructor===ot?rN(c,s.content):(t+=rH(i,n,s,a,c),a=o(c),n=s)),s=s.right}),t},rK=e=>{let t=new Set,r=e.doc;for(let[o,i]of e.afterState.entries()){let n=e.beforeState.get(o)||0;i!==n&&t0(e,r.store.clients.get(o),n,i,e=>{e.deleted||e.content.constructor!==ot||e.constructor===r7||t.add(e.parent)})}t5(r,r=>{for(let o of(ta(e,e.deleteSet,e=>{if(e instanceof r7||!e.parent._hasFormatting||t.has(e.parent))return;let o=e.parent;if(e.content.constructor===ot)t.add(o);else{for(var i=e;i&&i.right&&(i.right.deleted||!i.right.countable);)i=i.right;let t=new Set;for(;i&&(i.deleted||!i.countable);){if(!i.deleted&&i.content.constructor===ot){let e=i.content.key;t.has(e)?i.delete(r):t.add(e)}i=i.left}}}),t))rZ(o)})},rW=(e,t,r)=>{let i=r,n=o(t.currentAttributes),s=t.right;for(;r>0&&null!==t.right;){if(!1===t.right.deleted)switch(t.right.content.constructor){case of:case oe:case oi:r<t.right.length&&tQ(e,tM(t.right.id.client,t.right.id.clock+r)),r-=t.right.length,t.right.delete(e)}t.forward()}s&&rH(e,s,t.right,n,t.currentAttributes);let a=(t.left||t.right).parent;return a._searchMarker&&rm(a._searchMarker,t.index,-i+r),t};class rX extends rl{constructor(e,t,r){super(e,t),this.childListChanged=!1,this.keysChanged=new Set,r.forEach(e=>{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){let e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){let e=this.target.doc,t=[];t5(e,e=>{let r=new Map,o=new Map,i=this.target._start,n=null,s={},a="",c=0,l=0,d=()=>{if(null!==n){let e=null;switch(n){case"delete":l>0&&(e={delete:l}),l=0;break;case"insert":("object"==typeof a||a.length>0)&&(e={insert:a},r.size>0&&(e.attributes={},r.forEach((t,r)=>{null!==t&&(e.attributes[r]=t)}))),a="";break;case"retain":c>0&&(e={retain:c},eP(s)||(e.attributes=eE({},s))),c=0}e&&t.push(e),n=null}};for(;null!==i;){switch(i.content.constructor){case of:case oe:this.adds(i)?this.deletes(i)||(d(),n="insert",a=i.content.getContent()[0],d()):this.deletes(i)?("delete"!==n&&(d(),n="delete"),l+=1):i.deleted||("retain"!==n&&(d(),n="retain"),c+=1);break;case oi:this.adds(i)?this.deletes(i)||("insert"!==n&&(d(),n="insert"),a+=i.content.str):this.deletes(i)?("delete"!==n&&(d(),n="delete"),l+=i.length):i.deleted||("retain"!==n&&(d(),n="retain"),c+=i.length);break;case ot:{let{key:t,value:a}=i.content;if(this.adds(i))this.deletes(i)||(rL(r.get(t)??null,a)?null!==a&&i.delete(e):("retain"===n&&d(),rL(a,o.get(t)??null)?delete s[t]:s[t]=a));else if(this.deletes(i)){o.set(t,a);let e=r.get(t)??null;rL(e,a)||("retain"===n&&d(),s[t]=e)}else if(!i.deleted){o.set(t,a);let r=s[t];void 0!==r&&(rL(r,a)?null!==r&&i.delete(e):("retain"===n&&d(),null===a?delete s[t]:s[t]=a))}i.deleted||("insert"===n&&d(),rN(r,i.content))}}i=i.right}for(d();t.length>0;){let e=t[t.length-1];if(void 0!==e.retain&&void 0===e.attributes)t.pop();else break}}),this._delta=t}return this._delta}}class rJ extends rg{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(e,t){super._integrate(e,t);
49try{this._pending.forEach(e=>e())}catch(e){console.error(e)}this._pending=null}_copy(){return new rJ}clone(){let e=new rJ;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);let r=new rX(this,e,t);ry(this,e,r),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){let e="",t=this._start;for(;null!==t;)!t.deleted&&t.countable&&t.content.constructor===oi&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?t5(this.doc,r=>{let o=new rB(null,this._start,0,new Map);for(let i=0;i<e.length;i++){let n=e[i];if(void 0!==n.insert){let s=t||"string"!=typeof n.insert||i!==e.length-1||null!==o.right||"\n"!==n.insert.slice(-1)?n.insert:n.insert.slice(0,-1);("string"!=typeof s||s.length>0)&&r$(r,this,o,s,n.attributes||{})}else void 0!==n.retain?rG(r,this,o,n.retain,n.attributes||{}):void 0!==n.delete&&rW(r,o,n.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,r){let o=[],i=new Map,n=this.doc,s="",a=this._start;function c(){if(s.length>0){let e={},t=!1;i.forEach((r,o)=>{t=!0,e[o]=r});let r={insert:s};t&&(r.attributes=e),o.push(r),s=""}}let l=()=>{for(;null!==a;){if(tF(a,e)||void 0!==t&&tF(a,t))switch(a.content.constructor){case oi:{let o=i.get("ychange");void 0===e||tF(a,e)?void 0===t||tF(a,t)?void 0!==o&&(c(),i.delete("ychange")):(void 0===o||o.user!==a.id.client||"added"!==o.type)&&(c(),i.set("ychange",r?r("added",a.id):{type:"added"})):(void 0===o||o.user!==a.id.client||"removed"!==o.type)&&(c(),i.set("ychange",r?r("removed",a.id):{type:"removed"})),s+=a.content.str;break}case of:case oe:{c();let e={insert:a.content.getContent()[0]};if(i.size>0){let t={};e.attributes=t,i.forEach((e,r)=>{t[r]=e})}o.push(e);break}case ot:tF(a,e)&&(c(),rN(i,a.content))}a=a.right}c()};return e||t?t5(n,r=>{e&&t$(r,e),t&&t$(r,t),l()},"cleanup"):l(),o}insert(e,t,r){if(t.length<=0)return;let o=this.doc;null!==o?t5(o,o=>{let i=rq(o,this,e,!r);r||(r={},i.currentAttributes.forEach((e,t)=>{r[t]=e})),r$(o,this,i,t,r)}):this._pending.push(()=>this.insert(e,t,r))}insertEmbed(e,t,r){let o=this.doc;null!==o?t5(o,o=>{let i=rq(o,this,e,!r);r$(o,this,i,t,r||{})}):this._pending.push(()=>this.insertEmbed(e,t,r||{}))}delete(e,t){if(0===t)return;let r=this.doc;null!==r?t5(r,r=>{rW(r,rq(r,this,e,!0),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,r){if(0===t)return;let o=this.doc;null!==o?t5(o,o=>{let i=rq(o,this,e,!1);null!==i.right&&rG(o,this,i,t,r)}):this._pending.push(()=>this.format(e,t,r))}removeAttribute(e){null!==this.doc?t5(this.doc,t=>{r_(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?t5(this.doc,r=>{rC(r,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return rR(this,e)}getAttributes(){return rP(this)}_write(e){e.writeTypeRef(oc)}}class rQ{constructor(e,t=()=>!0){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do if(t=e.content.type,e.deleted||t.constructor!==r0&&t.constructor!==rY||null===t._start)for(;null!==e;)if(null!==e.right){e=e.right;break}else e=e.parent===this._root?null:e.parent._item;else e=t._start;while(null!==e&&(e.deleted||!this._filter(e.content.type)))return(this._firstCall=!1,null===e)?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class rY extends rg{constructor(){super(),this._prelimContent=[]}get firstChild(){let e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new rY}clone(){let e=new rY;return e.insert(0,this.toArray().map(e=>e instanceof rg?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new rQ(this,e)}querySelector(e){e=e.toUpperCase();let t=new rQ(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e).next();return t.done?null:t.value}querySelectorAll(e){return e=e.toUpperCase(),d(new rQ(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){ry(this,e,new r1(this,t,e))}toString(){return rk(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},r){let o=e.createDocumentFragment();return void 0!==r&&r._createAssociation(o,this),rw(this,i=>{o.insertBefore(i.toDOM(e,t,r),null)}),o}insert(e,t){null!==this.doc?t5(this.doc,r=>{rS(r,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)t5(this.doc,r=>{rA(r,this,e&&e instanceof rg?e._item:e,t)});else{let r=this._prelimContent,o=null===e?0:r.findIndex(t=>t===e)+1;if(0===o&&null!==e)throw W("Reference item not found");r.splice(o,0,...t)}}delete(e,t=1){null!==this.doc?t5(this.doc,r=>{rE(r,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return rv(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return rx(this,e)}slice(e=0,t=this.length){return rb(this,e,t)}forEach(e){rw(this,e)}_write(e){e.writeTypeRef(od)}}class r0 extends rY{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}
49_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new r0(this.nodeName)}clone(){let e=new r0(this.nodeName);return eC(this.getAttributes(),(t,r)=>{"string"==typeof t&&e.setAttribute(r,t)}),e.insert(0,this.toArray().map(e=>e instanceof rg?e.clone():e)),e}toString(){let e=this.getAttributes(),t=[],r=[];for(let t in e)r.push(t);r.sort();let o=r.length;for(let i=0;i<o;i++){let o=r[i];t.push(o+'="'+e[o]+'"')}let i=this.nodeName.toLocaleLowerCase(),n=t.length>0?" "+t.join(" "):"";return`<${i}${n}>${super.toString()}</${i}>`}removeAttribute(e){null!==this.doc?t5(this.doc,t=>{r_(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?t5(this.doc,r=>{rC(r,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return rR(this,e)}hasAttribute(e){return rj(this,e)}getAttributes(e){let t;return e?(t={},this._map.forEach((r,o)=>{let i=r;for(;null!==i&&(!e.sv.has(i.id.client)||i.id.clock>=(e.sv.get(i.id.client)||0));)i=i.left;null!==i&&tF(i,e)&&(t[o]=i.content.getContent()[i.length-1])}),t):rP(this)}toDOM(e=document,t={},r){let o=e.createElement(this.nodeName),i=this.getAttributes();for(let e in i){let t=i[e];"string"==typeof t&&o.setAttribute(e,t)}return rw(this,i=>{o.appendChild(i.toDOM(e,t,r))}),void 0!==r&&r._createAssociation(o,this),o}_write(e){e.writeTypeRef(ol),e.writeKey(this.nodeName)}}class r1 extends rl{constructor(e,t,r){super(e,r),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class r2 extends rM{constructor(e){super(),this.hookName=e}_copy(){return new r2(this.hookName)}clone(){let e=new r2(this.hookName);return this.forEach((t,r)=>{e.set(r,t)}),e}toDOM(e=document,t={},r){let o,i=t[this.hookName];return(o=void 0!==i?i.createDom(this):document.createElement(this.hookName)).setAttribute("data-yjs-hook",this.hookName),void 0!==r&&r._createAssociation(o,this),o}_write(e){e.writeTypeRef(op),e.writeKey(this.hookName)}}class r3 extends rJ{get nextSibling(){let e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){let e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new r3}clone(){let e=new r3;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,r){let o=e.createTextNode(this.toString());return void 0!==r&&r._createAssociation(o,this),o}toString(){return this.toDelta().map(e=>{let t=[];for(let r in e.attributes){let o=[];for(let t in e.attributes[r])o.push({key:t,value:e.attributes[r][t]});o.sort((e,t)=>e.key<t.key?-1:1),t.push({nodeName:r,attrs:o})}t.sort((e,t)=>e.nodeName<t.nodeName?-1:1);let r="";for(let e=0;e<t.length;e++){let o=t[e];r+=`<${o.nodeName}`;for(let e=0;e<o.attrs.length;e++){let t=o.attrs[e];r+=` ${t.key}="${t.value}"`}r+=">"}r+=e.insert;for(let e=t.length-1;e>=0;e--)r+=`</${t[e].nodeName}>`;return r}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(ou)}}class r9{constructor(e,t){this.id=e,this.length=t}get deleted(){throw X()}mergeWith(e){return!1}write(e,t,r){throw X()}integrate(e,t){throw X()}}class r7 extends r9{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),tK(e.doc.store,this)}write(e,t){e.writeInfo(0),e.writeLen(this.length-t)}getMissing(e,t){return null}}class r5{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new r5(this.content)}splice(e){throw X()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}class r6{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new r6(this.len)}splice(e){let t=new r6(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){tp(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}let r8=(e,t)=>new tg({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class r4{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new r4(r8(this.doc.guid,this.opts))}splice(e){throw X()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}class oe{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new oe(this.embed)}splice(e){throw X()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}
49class ot{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new ot(this.key,this.value)}splice(e){throw X()}mergeWith(e){return!1}integrate(e,t){let r=t.parent;r._searchMarker=null,r._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}class or{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new or(this.arr)}splice(e){let t=new or(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let r=this.arr.length;e.writeLen(r-t);for(let o=t;o<r;o++){let t=this.arr[o];e.writeString(void 0===t?"undefined":JSON.stringify(t))}}getRef(){return 2}}class oo{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new oo(this.arr)}splice(e){let t=new oo(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){let r=this.arr.length;e.writeLen(r-t);for(let o=t;o<r;o++){let t=this.arr[o];e.writeAny(t)}}getRef(){return 8}}class oi{constructor(e){this.str=e}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new oi(this.str)}splice(e){let t=new oi(this.str.slice(e));this.str=this.str.slice(0,e);let r=this.str.charCodeAt(e-1);return r>=55296&&r<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}let on=[e=>new rO,e=>new rM,e=>new rJ,e=>new r0(e.readKey()),e=>new rY,e=>new r2(e.readKey()),e=>new r3],os=0,oa=1,oc=2,ol=3,od=4,op=5,ou=6;class of{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}
49copy(){return new of(this.type._copy())}splice(e){throw X()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;for(;null!==t;)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;for(;null!==t;)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{for(;null!==t;)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}let oh=(e,t)=>{let r,o=t,i=0;do i>0&&(o=tM(o.client,o.clock+i)),r=tX(e,o),i=o.clock-r.id.clock,o=r.redone;while(null!==o&&r instanceof ov)return{item:r,diff:i}},om=(e,t)=>{for(;null!==e&&e.keep!==t;)e.keep=t,e=e.parent._item},oy=(e,t,r)=>{let{client:o,clock:i}=t.id,n=new ov(tM(o,i+r),t,tM(o,i+r-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(r));return t.deleted&&n.markDeleted(),t.keep&&(n.keep=!0),null!==t.redone&&(n.redone=tM(t.redone.client,t.redone.clock+r)),t.right=n,null!==n.right&&(n.right.left=n),e._mergeStructs.push(n),null!==n.parentSub&&null===n.right&&n.parent._map.set(n.parentSub,n),t.length=r,n},og=(e,t)=>((e,t)=>{for(let r=0;r<e.length;r++)if(t(e[r],r,e))return!0;return!1})(e,e=>tc(e.deletions,t)),ob=(e,t,r,o,i,n)=>{let s,a=e.doc,c=a.store,l=a.clientID,d=t.redone;if(null!==d)return tQ(e,d);let p=t.parent._item,u=null;if(null!==p&&!0===p.deleted){if(null===p.redone&&(!r.has(p)||null===ob(e,p,r,o,i,n)))return null;for(;null!==p.redone;)p=tQ(e,p.redone)}let f=null===p?t.parent:p.content.type;if(null===t.parentSub){for(u=t.left,s=t;null!==u;){let t=u;for(;null!==t&&t.parent._item!==p;)t=null===t.redone?null:tQ(e,t.redone);if(null!==t&&t.parent._item===p){u=t;break}u=u.left}for(;null!==s;){let t=s;for(;null!==t&&t.parent._item!==p;)t=null===t.redone?null:tQ(e,t.redone);if(null!==t&&t.parent._item===p){s=t;break}s=s.right}}else if(s=null,t.right&&!i){for(u=t;null!==u&&null!==u.right&&(u.right.redone||tc(o,u.right.id)||og(n.undoStack,u.right.id)||og(n.redoStack,u.right.id));)for(u=u.right;u.redone;)u=tQ(e,u.redone);if(u&&null!==u.right)return null}else u=f._map.get(t.parentSub)||null;let h=tZ(c,l),m=tM(l,h),y=new ov(m,u,u&&u.lastId,s,s&&s.id,f,t.parentSub,t.content.copy());return t.redone=m,om(y,!0),y.integrate(e,0),y};class ov extends r9{constructor(e,t,r,o,i,n,s,a){super(e,a.getLength()),this.origin=r,this.left=t,this.right=o,this.rightOrigin=i,this.parent=n,this.parentSub=s,this.redone=null,this.content=a,this.info=2*!!this.content.isCountable()}set marker(e){(8&this.info)>0!==e&&(this.info^=8)}get marker(){return(8&this.info)>0}get keep(){return(1&this.info)>0}set keep(e){this.keep!==e&&(this.info^=1)}get countable(){return(2&this.info)>0}get deleted(){return(4&this.info)>0}set deleted(e){this.deleted!==e&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=tZ(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=tZ(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===tO&&this.id.client!==this.parent.client&&this.parent.clock>=tZ(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=tY(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=tQ(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===r7||this.right&&this.right.constructor===r7)this.parent=null;else if(this.parent){if(this.parent.constructor===tO){let e=tX(t,this.parent);e.constructor===r7?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===ov&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===ov&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=tY(e,e.doc.store,tM(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,r=this.left;if(null!==r)t=r.right;else if(null!==this.parentSub)for(t=this.parent._map.get(this.parentSub)||null;null!==t&&null!==t.left;)t=t.left;else t=this.parent._start;let o=new Set,i=new Set;for(;null!==t&&t!==this.right;){if(i.add(t),o.add(t),tD(this.origin,t.origin)){if(t.id.client<this.id.client)r=t,o.clear();else if(tD(this.rightOrigin,t.rightOrigin))break}else if(null!==t.origin&&i.has(tX(e.doc.store,t.origin)))o.has(tX(e.doc.store,t.origin))||(r=t,o.clear());else break;t=t.right}this.left=r}if(null!==this.left){let e=this.left.right;this.right=e,this.left.right=this}else{let e;if(null!==this.parentSub)for(e=this.parent._map.get(this.parentSub)||null;null!==e&&null!==e.left;)e=e.left;else e=this.parent._start,this.parent._start=this;this.right=e}null!==this.right?this.right.left=this:null!==this.parentSub&&(this.parent._map.set(this.parentSub,this),null!==this.left&&this.left.delete(e)),null===this.parentSub&&this.countable&&!this.deleted&&(this.parent._length+=this.length),tK(e.doc.store,this),this.content.integrate(e,this),t3(e,this.parent,this.parentSub),(null!==this.parent._item&&this.parent._item.deleted||null!==this.parentSub&&null!==this.right)&&this.delete(e)}else new r7(this.id,this.length).integrate(e,0)}get next(){let e=this.right;for(;null!==e&&e.deleted;)e=e.right;return e}get prev(){let e=this.left;for(;null!==e&&e.deleted;)e=e.left;return e}get lastId(){return 1===this.length?this.id:tM(this.id.client,this.id.clock+this.length-1)}mergeWith(e){if(this.constructor===e.constructor&&tD(e.origin,this.lastId)&&this.right===e&&tD(this.rightOrigin,e.rightOrigin)&&this.id.client===e.id.client&&this.id.clock+this.length===e.id.clock&&this.deleted===e.deleted&&null===this.redone&&null===e.redone&&this.content.constructor===e.content.constructor&&this.content.mergeWith(e.content)){let t=this.parent._searchMarker;return t&&t.forEach(t=>{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){let t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),tp(e.deleteSet,this.id.client,this.id.clock,this.length),t3(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw J();if(this.content.gc(e),t){var r;let t;r=new r7(this.id,this.length),(t=e.clients.get(this.id.client))[tW(t,this.id.clock)]=r}else this.content=new r6(this.length)}write(e,t){let r=t>0?tM(this.id.client,this.id.clock+t-1):this.origin,o=this.rightOrigin,i=this.parentSub,n=31&this.content.getRef()|128*(null!==r)|64*(null!==o)|32*(null!==i);if(e.writeInfo(n),null!==r&&e.writeLeftID(r),null!==o&&e.writeRightID(o),null===r&&null===o){let t=this.parent;if(void 0!==t._item){let r=t._item;if(null===r){let r=tL(t);e.writeParentInfo(!0),e.writeString(r)}
49else e.writeParentInfo(!1),e.writeLeftID(r.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===tO?(e.writeParentInfo(!1),e.writeLeftID(t)):J();null!==i&&e.writeString(i)}this.content.write(e,t)}}let ow=(e,t)=>ok[31&t](e),ok=[()=>{J()},e=>new r6(e.readLen()),e=>{let t=e.readLen(),r=[];for(let o=0;o<t;o++){let t=e.readString();"undefined"===t?r.push(void 0):r.push(JSON.parse(t))}return new or(r)},e=>new r5(e.readBuf()),e=>new oi(e.readString()),e=>new oe(e.readJSON()),e=>new ot(e.readKey(),e.readJSON()),e=>new of(on[e.readTypeRef()](e)),e=>{let t=e.readLen(),r=[];for(let o=0;o<t;o++)r.push(e.readAny());return new oo(r)},e=>new r4(r8(e.readString(),e.readAny())),()=>{J()}];class ox extends r9{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){J()}write(e,t){e.writeInfo(10),O(e.restEncoder,this.length-t)}getMissing(e,t){return null}}let oA="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,oS="__ $YJS$ __";!0===oA[oS]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),oA[oS]=!0,e.s(["ContentFormat",0,ot,"ContentString",0,oi,"Doc",0,tg,"Item",0,ov,"RelativePosition",0,tz,"Snapshot",0,tN,"UndoManager",0,class extends u{constructor(e,{captureTimeout:t=500,captureTransaction:r=e=>!0,deleteFilter:o=()=>!0,trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:n=!1,doc:s=p(e)?e[0].doc:e.doc}={}){super(),this.scope=[],this.doc=s,this.addToScope(e),this.deleteFilter=o,i.add(this),this.trackedOrigins=i,this.captureTransaction=r,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=n,this.captureTimeout=t,this.afterTransactionHandler=e=>{if(!this.captureTransaction(e)||!this.scope.some(t=>e.changedParentTypes.has(t))||!this.trackedOrigins.has(e.origin)&&(!e.origin||!this.trackedOrigins.has(e.origin.constructor)))return;let t=this.undoing,r=this.redoing,o=t?this.redoStack:this.undoStack;t?this.stopCapturing():r||this.clear(!1,!0);let i=new ts;e.afterState.forEach((t,r)=>{let o=e.beforeState.get(r)||0,n=t-o;n>0&&tp(i,r,o,n)});let n=ev(),s=!1;if(this.lastChange>0&&n-this.lastChange<this.captureTimeout&&o.length>0&&!t&&!r){let t=o[o.length-1];t.deletions=td([t.deletions,e.deleteSet]),t.insertions=td([t.insertions,i])}else o.push(new t6(e.deleteSet,i)),s=!0;t||r||(this.lastChange=n),ta(e,e.deleteSet,e=>{e instanceof ov&&this.scope.some(t=>tB(t,e))&&om(e,!0)});let a=[{stackItem:o[o.length-1],origin:e.origin,type:t?"redo":"undo",changedParentTypes:e.changedParentTypes},this];s?this.emit("stack-item-added",a):this.emit("stack-item-updated",a)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(e){(e=p(e)?e:[e]).forEach(e=>{this.scope.every(t=>t!==e)&&(e.doc!==this.doc&&((...e)=>{console.warn(...tt(e)),e.unshift(e8),tr.forEach(t=>t.print(e))})("[yjs#509] Not same Y.Doc"),this.scope.push(e))})}addTrackedOrigin(e){this.trackedOrigins.add(e)}removeTrackedOrigin(e){this.trackedOrigins.delete(e)}clear(e=!0,t=!0){(e&&this.canUndo()||t&&this.canRedo())&&this.doc.transact(r=>{e&&(this.undoStack.forEach(e=>t8(r,this,e)),this.undoStack=[]),t&&(this.redoStack.forEach(e=>t8(r,this,e)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:e,redoStackCleared:t}])})}stopCapturing(){this.lastChange=0}undo(){let e;this.undoing=!0;try{e=t4(this,this.undoStack,"undo")}finally{this.undoing=!1}return e}redo(){let e;this.redoing=!0;try{e=t4(this,this.redoStack,"redo")}finally{this.redoing=!1}return e}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}},"XmlElement",0,r0,"XmlFragment",0,rY,"XmlText",0,r3,"applyUpdate",0,(e,t,r)=>tC(e,t,r,tv),"compareRelativePositions",0,(e,t)=>e===t||null!==e&&null!==t&&e.tname===t.tname&&tD(e.item,t.item)&&tD(e.type,t.type)&&e.assoc===t.assoc,"createAbsolutePositionFromRelativePosition",0,(e,t,r=!0)=>
49{let o=t.store,i=e.item,n=e.type,s=e.tname,a=e.assoc,c=null,l=0;if(null!==i){if(tZ(o,i.client)<=i.clock)return null;let e=r?oh(o,i):{item:tX(o,i),diff:0},t=e.item;if(!(t instanceof ov))return null;if(null===(c=t.parent)._item||!c._item.deleted){l=t.deleted||!t.countable?0:e.diff+(a>=0?0:1);let r=t.left;for(;null!==r;)!r.deleted&&r.countable&&(l+=r.length),r=r.left}}else{if(null!==s)c=t.get(s);else if(null!==n){if(tZ(o,n.client)<=n.clock)return null;let{item:e}=r?oh(o,n):{item:tX(o,n)};if(!(e instanceof ov)||!(e.content instanceof of))return null;c=e.content.type}else throw J();l=a>=0?c._length:0}return((e,t,r=0)=>new tq(e,t,r))(c,l,e.assoc)},"createDeleteSet",0,tu,"createID",0,tM,"createRelativePositionFromJSON",0,e=>new tz(null==e.type?null:tM(e.type.client,e.type.clock),e.tname||null,null==e.item?null:tM(e.item.client,e.item.clock),null==e.assoc?0:e.assoc),"createRelativePositionFromTypeIndex",0,(e,t,r=0)=>{let o=e._start;if(r<0){if(0===t)return tV(e,null,r);t--}for(;null!==o;){if(!o.deleted&&o.countable){if(o.length>t)return tV(e,tM(o.id.client,o.id.clock+t),r);t-=o.length}if(null===o.right&&r<0)return tV(e,o.lastId,r);o=o.right}return tV(e,null,r)},"createSnapshot",0,tU,"encodeStateAsUpdate",0,(e,t)=>((e,t=new Uint8Array([0]),r=new tE)=>{((e,t,r=new Map)=>{t_(e,t.store,r),th(e,tf(t.store))})(r,e,tR(t));let o=[r.toUint8Array()];if(e.store.pendingDs&&o.push(e.store.pendingDs),e.store.pendingStructs&&o.push(((e,t,r=tk,o=tE)=>{let i=tR(t),n=new o,s=new rt(n),a=new r(et(e)),c=new re(a,!1);for(;c.curr;){let e=c.curr,t=e.id.client,r=i.get(t)||0;if(c.curr.constructor===ox){c.next();continue}if(e.id.clock+e.length>r)for(rs(s,e,v(r-e.id.clock,0)),c.next();c.curr&&c.curr.id.client===t;)rs(s,c.curr,0),c.next();else for(;c.curr&&c.curr.id.client===t&&c.curr.id.clock+c.curr.length<=r;)c.next()}return ra(s),th(n,tm(a)),n.toUint8Array()})(e.store.pendingStructs.update,t)),o.length>1){if(r.constructor===tA)return rr(o.map((e,t)=>0===t?e:((e,t,r,o)=>{let i=new r(et(e)),n=new re(i,!1),s=new o,a=new rt(s);for(let e=n.curr;null!==e;e=n.next())rs(a,t(e),0);return ra(a),th(s,tm(i)),s.toUint8Array()})(e,eO,tk,tA)));else if(r.constructor===tE)return ri(o)}return o[0]})(e,t,new tA),"findRootTypeKey",0,tL,"isDeleted",0,tc,"isParentOf",0,tB,"iterateDeletedStructs",0,ta,"mergeUpdates",0,rr,"snapshot",0,e=>tU(tf(e.store),tH(e.store)),"typeListToArraySnapshot",0,(e,t)=>{let r=[],o=e._start;for(;null!==o;){if(o.countable&&tF(o,t)){let e=o.content.getContent();for(let t=0;t<e.length;t++)r.push(e[t])}o=o.right}return r}],616009)},131645,(e,t,r)=>{"use strict";var o,i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.getParsedType=r.ZodParsedType=r.objectUtil=r.util=void 0,(n=o||(r.util=o={})).assertEqual=e=>{},n.assertIs=function(e){},n.assertNever=function(e){throw Error()},n.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},n.getValidEnumValues=e=>{let t=n.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let o of t)r[o]=e[o];return n.objectValues(r)},n.objectValues=e=>n.objectKeys(e).map(function(t){return e[t]}),n.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},n.find=(e,t)=>{for(let r of e)if(t(r))return r},n.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,n.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},n.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(i||(r.objectUtil=i={})).mergeShapes=(e,t)=>({...e,...t}),r.ZodParsedType=o.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),r.getParsedType=e=>{switch(typeof e){case"undefined":return r.ZodParsedType.undefined;case"string":return r.ZodParsedType.string;case"number":return Number.isNaN(e)?r.ZodParsedType.nan:r.ZodParsedType.number;case"boolean":return r.ZodParsedType.boolean;case"function":return r.ZodParsedType.function;case"bigint":return r.ZodParsedType.bigint;case"symbol":return r.ZodParsedType.symbol;case"object":if(Array.isArray(e))return r.ZodParsedType.array;if(null===e)return r.ZodParsedType.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.ZodParsedType.promise;if("u">typeof Map&&e instanceof Map)return r.ZodParsedType.map;if("u">typeof Set&&e instanceof Set)return r.ZodParsedType.set;if("u">typeof Date&&e instanceof Date)return r.ZodParsedType.date;return r.ZodParsedType.object;default:return r.ZodParsedType.unknown}}},119978,(e,t,r)=>{"use strict";
49Object.defineProperty(r,"__esModule",{value:!0}),r.ZodError=r.quotelessJson=r.ZodIssueCode=void 0;let o=e.r(131645);r.ZodIssueCode=o.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),r.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},o=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(o);else if("invalid_return_type"===i.code)o(i.returnTypeError);else if("invalid_arguments"===i.code)o(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,o=0;for(;o<i.path.length;){let r=i.path[o];o===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],o++}}};return o(this),r}static assert(e){if(!(e instanceof i))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,o.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let o of this.issues)if(o.path.length>0){let r=o.path[0];t[r]=t[r]||[],t[r].push(e(o))}else r.push(e(o));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}r.ZodError=i,i.create=e=>new i(e)},641455,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=e.r(119978),i=e.r(131645);r.default=(e,t)=>{let r;switch(e.code){case o.ZodIssueCode.invalid_type:r=e.received===i.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.ZodIssueCode.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.util.jsonStringifyReplacer)}`;break;case o.ZodIssueCode.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.util.joinValues(e.keys,", ")}`;break;case o.ZodIssueCode.invalid_union:r="Invalid input";break;case o.ZodIssueCode.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.util.joinValues(e.options)}`;break;case o.ZodIssueCode.invalid_enum_value:r=`Invalid enum value. Expected ${i.util.joinValues(e.options)}, received '${e.received}'`;break;case o.ZodIssueCode.invalid_arguments:r="Invalid function arguments";break;case o.ZodIssueCode.invalid_return_type:r="Invalid function return type";break;case o.ZodIssueCode.invalid_date:r="Invalid date";break;case o.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.util.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.ZodIssueCode.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.ZodIssueCode.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.ZodIssueCode.custom:r="Invalid input";break;case o.ZodIssueCode.invalid_intersection_types:r="Intersection results could not be merged";break;case o.ZodIssueCode.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case o.ZodIssueCode.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.util.assertNever(e)}return{message:r}}},739397,(e,t,r)=>{"use strict";
49var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.defaultErrorMap=void 0,r.setErrorMap=function(e){n=e},r.getErrorMap=function(){return n};let i=o(e.r(641455));r.defaultErrorMap=i.default;let n=i.default},465654,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isAsync=r.isValid=r.isDirty=r.isAborted=r.OK=r.DIRTY=r.INVALID=r.ParseStatus=r.EMPTY_PATH=r.makeIssue=void 0,r.addIssueToContext=function(e,t){let o=(0,i.getErrorMap)(),s=(0,r.makeIssue)({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,o,o===n.default?void 0:n.default].filter(e=>!!e)});e.common.issues.push(s)};let i=e.r(739397),n=o(e.r(641455));r.makeIssue=e=>{let{data:t,path:r,errorMaps:o,issueData:i}=e,n=[...r,...i.path||[]],s={...i,path:n};if(void 0!==i.message)return{...i,path:n,message:i.message};let a="";for(let e of o.filter(e=>!!e).slice().reverse())a=e(s,{data:t,defaultError:a}).message;return{...i,path:n,message:a}},r.EMPTY_PATH=[];class s{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let o=[];for(let i of t){if("aborted"===i.status)return r.INVALID;"dirty"===i.status&&e.dirty(),o.push(i.value)}return{status:e.value,value:o}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,o=await e.value;r.push({key:t,value:o})}return s.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let o={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return r.INVALID;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(o[t.value]=n.value)}return{status:e.value,value:o}}}r.ParseStatus=s,r.INVALID=Object.freeze({status:"aborted"}),r.DIRTY=e=>({status:"dirty",value:e}),r.OK=e=>({status:"valid",value:e}),r.isAborted=e=>"aborted"===e.status,r.isDirty=e=>"dirty"===e.status,r.isValid=e=>"valid"===e.status,r.isAsync=e=>"u">typeof Promise&&e instanceof Promise},716939,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0})},448794,(e,t,r)=>{"use strict";var o,i;Object.defineProperty(r,"__esModule",{value:!0}),r.errorUtil=void 0,(i=o||(r.errorUtil=o={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},i.toString=e=>"string"==typeof e?e:e?.message},74897,(e,t,r)=>{"use strict";var o,i;let n;Object.defineProperty(r,"__esModule",{value:!0}),r.discriminatedUnion=r.date=r.boolean=r.bigint=r.array=r.any=r.coerce=r.ZodFirstPartyTypeKind=r.late=r.ZodSchema=r.Schema=r.ZodReadonly=r.ZodPipeline=r.ZodBranded=r.BRAND=r.ZodNaN=r.ZodCatch=r.ZodDefault=r.ZodNullable=r.ZodOptional=r.ZodTransformer=r.ZodEffects=r.ZodPromise=r.ZodNativeEnum=r.ZodEnum=r.ZodLiteral=r.ZodLazy=r.ZodFunction=r.ZodSet=r.ZodMap=r.ZodRecord=r.ZodTuple=r.ZodIntersection=r.ZodDiscriminatedUnion=r.ZodUnion=r.ZodObject=r.ZodArray=r.ZodVoid=r.ZodNever=r.ZodUnknown=r.ZodAny=r.ZodNull=r.ZodUndefined=r.ZodSymbol=r.ZodDate=r.ZodBoolean=r.ZodBigInt=r.ZodNumber=r.ZodString=r.ZodType=void 0,r.NEVER=r.void=r.unknown=r.union=r.undefined=r.tuple=r.transformer=r.symbol=r.string=r.strictObject=r.set=r.record=r.promise=r.preprocess=r.pipeline=r.ostring=r.optional=r.onumber=r.oboolean=r.object=r.number=r.nullable=r.null=r.never=r.nativeEnum=r.nan=r.map=r.literal=r.lazy=r.intersection=r.instanceof=r.function=r.enum=r.effect=void 0,r.datetimeRegex=T,r.custom=eb;let s=e.r(119978),a=e.r(739397),c=e.r(448794),l=e.r(465654),d=e.r(131645);class p{constructor(e,t,r,o){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let u=(e,t)=>{if((0,l.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s.ZodError(e.common.issues);return this._error=t,this._error}}};function f(e){if(!e)return{};
49let{errorMap:t,invalid_type_error:r,required_error:o,description:i}=e;if(t&&(r||o))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:n}=e;return"invalid_enum_value"===t.code?{message:n??i.defaultError}:void 0===i.data?{message:n??o??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:n??r??i.defaultError}},description:i}}class h{get description(){return this._def.description}_getType(e){return(0,d.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,d.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new l.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,d.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,l.isAsync)(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,d.getParsedType)(e)},o=this._parseSync({data:e,path:r.path,parent:r});return u(r,o)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,d.getParsedType)(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return(0,l.isValid)(r)?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,l.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,d.getParsedType)(e)},o=this._parse({data:e,path:r.path,parent:r});return u(r,await ((0,l.isAsync)(o)?o:Promise.resolve(o)))}refine(e,t){return this._refinement((r,o)=>{let i=e(r),n=()=>o.addIssue({code:s.ZodIssueCode.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"u">typeof Promise&&i instanceof Promise?i.then(e=>!!e||(n(),!1)):!!i||(n(),!1)})}refinement(e,t){return this._refinement((r,o)=>!!e(r)||(o.addIssue("function"==typeof t?t(r,o):t),!1))}_refinement(e){return new ec({schema:this,typeName:o.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return el.create(this,this._def)}nullable(){return ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return G.create(this)}promise(){return ea.create(this,this._def)}or(e){return Z.create([this,e],this._def)}and(e){return X.create(this,e,this._def)}transform(e){return new ec({...f(this._def),schema:this,typeName:o.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ep({...f(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:o.ZodDefault})}brand(){return new eh({typeName:o.ZodBranded,type:this,...f(this._def)})}catch(e){return new eu({...f(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:o.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return em.create(this,e)}readonly(){return ey.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}r.ZodType=h,r.Schema=h,r.ZodSchema=h;let m=/^c[^\s-]{8,}
49$/i,y=/^[0-9a-z]+$/,g=/^[0-9A-HJKMNP-TV-Z]{26}$/i,b=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v=/^[a-z0-9_-]{21}$/i,w=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,k=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,x=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,A=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,S=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,E=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,_=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,C=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,R=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",j=RegExp(`^${P}$`);function I(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function T(e){let t=`${P}T${I(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class O extends h{_parse(e){var t,r,o,i;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==d.ZodParsedType.string){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.string,received:t.parsedType}),l.INVALID}let c=new l.ParseStatus;for(let p of this._def.checks)if("min"===p.kind)e.data.length<p.value&&(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),c.dirty());else if("max"===p.kind)e.data.length>p.value&&(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!1,message:p.message}),c.dirty());else if("length"===p.kind){let t=e.data.length>p.value,r=e.data.length<p.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.too_big,maximum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}):r&&(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.too_small,minimum:p.value,type:"string",inclusive:!0,exact:!0,message:p.message}),c.dirty())}else if("email"===p.kind)x.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"email",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("emoji"===p.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"emoji",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("uuid"===p.kind)b.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"uuid",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("nanoid"===p.kind)v.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"nanoid",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("cuid"===p.kind)m.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"cuid",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("cuid2"===p.kind)y.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"cuid2",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("ulid"===p.kind)g.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"ulid",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty());else if("url"===p.kind)try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"url",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty()}else"regex"===p.kind?(p.regex.lastIndex=0,p.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"regex",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty())):"trim"===p.kind?e.data=e.data.trim():"includes"===p.kind?e.data.includes(p.value,p.position)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:{includes:p.value,position:p.position},message:p.message}),c.dirty()):"toLowerCase"===p.kind?e.data=e.data.toLowerCase():"toUpperCase"===p.kind?e.data=e.data.toUpperCase():"startsWith"===p.kind?e.data.startsWith(p.value)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:{startsWith:p.value},message:p.message}),c.dirty()):"endsWith"===p.kind?e.data.endsWith(p.value)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:{endsWith:p.value},message:p.message}),c.dirty()):"datetime"===p.kind?T(p).test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:"datetime",message:p.message}),c.dirty()):"date"===p.kind?j.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:"date",message:p.message}),c.dirty()):"time"===p.kind?RegExp(`^${I(p)}$`).test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{code:s.ZodIssueCode.invalid_string,validation:"time",message:p.message}),c.dirty()):"duration"===p.kind?k.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"duration",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty()):"ip"===p.kind?(t=e.data,!(("v4"===(r=p.version)||!r)&&A.test(t)||("v6"===r||!r)&&E.test(t))&&1&&(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"ip",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty())):"jwt"===p.kind?!function(e,t){if(!w.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(o));if("object"!=typeof i||null===i||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)return!1;return!0}catch{return!1}}(e.data,p.alg)&&(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"jwt",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty()):"cidr"===p.kind?(o=e.data,!(("v4"===(i=p.version)||!i)&&S.test(o)||("v6"===i||!i)&&_.test(o))&&1&&(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"cidr",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty())):"base64"===p.kind?C.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"base64",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty()):"base64url"===p.kind?R.test(e.data)||(a=this._getOrReturnCtx(e,a),(0,l.addIssueToContext)(a,{validation:"base64url",code:s.ZodIssueCode.invalid_string,message:p.message}),c.dirty()):d.util.assertNever(p);return{status:c.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:s.ZodIssueCode.invalid_string,...c.errorUtil.errToObj(r)})}_addCheck(e){return new O({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...c.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...c.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...c.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...c.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...c.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...c.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...c.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...c.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...c.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...c.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...c.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...c.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...c.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...c.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...c.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...c.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...c.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...c.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...c.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...c.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...c.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...c.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...c.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,c.errorUtil.errToObj(e))}trim(){return new O({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new O({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}
49get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}r.ZodString=O,O.create=e=>new O({checks:[],typeName:o.ZodString,coerce:e?.coerce??!1,...f(e)});class D extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==d.ZodParsedType.number){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.number,received:t.parsedType}),l.INVALID}let r=new l.ParseStatus;for(let o of this._def.checks)"int"===o.kind?d.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):"min"===o.kind?(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):"max"===o.kind?(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):"multipleOf"===o.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,i=r>o?r:o;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}(e.data,o.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_finite,message:o.message}),r.dirty()):d.util.assertNever(o);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,c.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.errorUtil.toString(t))}setLimit(e,t,r,o){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.errorUtil.toString(o)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:c.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:c.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:c.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:c.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:c.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:c.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:c.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:c.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&d.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}r.ZodNumber=D,D.create=e=>new D({checks:[],typeName:o.ZodNumber,coerce:e?.coerce||!1,...f(e)});class M extends h{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==d.ZodParsedType.bigint)return this._getInvalidInput(e);let r=new l.ParseStatus;for(let o of this._def.checks)"min"===o.kind?(o.inclusive?e.data<o.value:e.data<=o.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):"max"===o.kind?(o.inclusive?e.data>o.value:e.data>=o.value)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):d.util.assertNever(o);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.bigint,received:t.parsedType}),l.INVALID}gte(e,t){return this.setLimit("min",e,!0,c.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.errorUtil.toString(t))}setLimit(e,t,r,o){return new M({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.errorUtil.toString(o)}]})}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}
49positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:c.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:c.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:c.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:c.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}r.ZodBigInt=M,M.create=e=>new M({checks:[],typeName:o.ZodBigInt,coerce:e?.coerce??!1,...f(e)});class L extends h{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==d.ZodParsedType.boolean){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.boolean,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}r.ZodBoolean=L,L.create=e=>new L({typeName:o.ZodBoolean,coerce:e?.coerce||!1,...f(e)});class B extends h{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==d.ZodParsedType.date){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.date,received:t.parsedType}),l.INVALID}if(Number.isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_date}),l.INVALID}let r=new l.ParseStatus;for(let o of this._def.checks)"min"===o.kind?e.data.getTime()<o.value&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):"max"===o.kind?e.data.getTime()>o.value&&(t=this._getOrReturnCtx(e,t),(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):d.util.assertNever(o);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:c.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:c.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}r.ZodDate=B,B.create=e=>new B({checks:[],coerce:e?.coerce||!1,typeName:o.ZodDate,...f(e)});class z extends h{_parse(e){if(this._getType(e)!==d.ZodParsedType.symbol){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.symbol,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}r.ZodSymbol=z,z.create=e=>new z({typeName:o.ZodSymbol,...f(e)});class q extends h{_parse(e){if(this._getType(e)!==d.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.undefined,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}r.ZodUndefined=q,q.create=e=>new q({typeName:o.ZodUndefined,...f(e)});class V extends h{_parse(e){if(this._getType(e)!==d.ZodParsedType.null){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.null,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}r.ZodNull=V,V.create=e=>new V({typeName:o.ZodNull,...f(e)});class N extends h{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,l.OK)(e.data)}}r.ZodAny=N,N.create=e=>new N({typeName:o.ZodAny,...f(e)});class U extends h{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,l.OK)(e.data)}}r.ZodUnknown=U,U.create=e=>new U({typeName:o.ZodUnknown,...f(e)});class F extends h{_parse(e){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.never,received:t.parsedType}),l.INVALID}}r.ZodNever=F,F.create=e=>new F({typeName:o.ZodNever,...f(e)});class $ extends h{_parse(e){if(this._getType(e)!==d.ZodParsedType.undefined){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.void,received:t.parsedType}),l.INVALID}return(0,l.OK)(e.data)}}r.ZodVoid=$,$.create=e=>new $({typeName:o.ZodVoid,...f(e)});class G extends h{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),o=this._def;if(t.parsedType!==d.ZodParsedType.array)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.array,received:t.parsedType}),l.INVALID;if(null!==o.exactLength){let e=t.data.length>o.exactLength.value,i=t.data.length<o.exactLength.value;(e||i)&&((0,l.addIssueToContext)(t,{code:e?s.ZodIssueCode.too_big:s.ZodIssueCode.too_small,minimum:i?o.exactLength.value:void 0,maximum:e?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(null!==o.minLength&&t.data.length<o.minLength.value&&((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),null!==o.maxLength&&t.data.length>o.maxLength.value&&((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>o.type._parseAsync(new p(t,e,t.path,r)))).then(e=>l.ParseStatus.mergeArray(r,e));let i=[...t.data].map((e,r)=>o.type._parseSync(new p(t,e,t.path,r)));return l.ParseStatus.mergeArray(r,i)}
49get element(){return this._def.type}min(e,t){return new G({...this._def,minLength:{value:e,message:c.errorUtil.toString(t)}})}max(e,t){return new G({...this._def,maxLength:{value:e,message:c.errorUtil.toString(t)}})}length(e,t){return new G({...this._def,exactLength:{value:e,message:c.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}r.ZodArray=G,G.create=(e,t)=>new G({type:e,minLength:null,maxLength:null,exactLength:null,typeName:o.ZodArray,...f(t)});class H extends h{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=d.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==d.ZodParsedType.object){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.object,received:t.parsedType}),l.INVALID}let{status:t,ctx:r}=this._processInputParams(e),{shape:o,keys:i}=this._getCached(),n=[];if(!(this._def.catchall instanceof F&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||n.push(e);let a=[];for(let e of i){let t=o[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new p(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof F){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of n)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)n.length>0&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.unrecognized_keys,keys:n}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of n){let o=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new p(r,o,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key,o=await t.value;e.push({key:r,value:o,alwaysSet:t.alwaysSet})}return e}).then(e=>l.ParseStatus.mergeObjectSync(t,e)):l.ParseStatus.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return c.errorUtil.errToObj,new H({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let o=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:c.errorUtil.errToObj(e).message??o}:{message:o}}}:{}})}strip(){return new H({...this._def,unknownKeys:"strip"})}passthrough(){return new H({...this._def,unknownKeys:"passthrough"})}extend(e){return new H({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new H({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:o.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new H({...this._def,catchall:e})}pick(e){let t={};for(let r of d.util.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new H({...this._def,shape:()=>t})}omit(e){let t={};for(let r of d.util.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new H({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof H){let r={};for(let o in t.shape){let i=t.shape[o];r[o]=el.create(e(i))}return new H({...t._def,shape:()=>r})}if(t instanceof G)return new G({...t._def,type:e(t.element)});if(t instanceof el)return el.create(e(t.unwrap()));if(t instanceof ed)return ed.create(e(t.unwrap()));if(t instanceof J)return J.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of d.util.objectKeys(this.shape)){let o=this.shape[r];e&&!e[r]?t[r]=o:t[r]=o.optional()}return new H({...this._def,shape:()=>t})}required(e){let t={};for(let r of d.util.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof el;)e=e._def.innerType;t[r]=e}return new H({...this._def,shape:()=>t})}keyof(){return ei(d.util.objectKeys(this.shape))}}r.ZodObject=H,H.create=(e,t)=>new H({shape:()=>e,unknownKeys:"strip",catchall:F.create(),typeName:o.ZodObject,...f(t)}),H.strictCreate=(e,t)=>new H({shape:()=>e,unknownKeys:"strict",catchall:F.create(),typeName:o.ZodObject,...f(t)}),H.lazycreate=(e,t)=>
49new H({shape:e,unknownKeys:"strip",catchall:F.create(),typeName:o.ZodObject,...f(t)});class Z extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s.ZodError(e.ctx.common.issues));return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:r}),l.INVALID});{let e,o=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},n=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:r}),r.common.issues.length&&o.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=o.map(e=>new s.ZodError(e));return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union,unionErrors:i}),l.INVALID}}get options(){return this._def.options}}r.ZodUnion=Z,Z.create=(e,t)=>new Z({options:e,typeName:o.ZodUnion,...f(t)});let K=e=>{if(e instanceof er)return K(e.schema);if(e instanceof ec)return K(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof en)return e.options;if(e instanceof es)return d.util.objectValues(e.enum);else if(e instanceof ep)return K(e._def.innerType);else if(e instanceof q)return[void 0];else if(e instanceof V)return[null];else if(e instanceof el)return[void 0,...K(e.unwrap())];else if(e instanceof ed)return[null,...K(e.unwrap())];else if(e instanceof eh)return K(e.unwrap());else if(e instanceof ey)return K(e.unwrap());else if(e instanceof eu)return K(e._def.innerType);else return[]};class W extends h{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==d.ZodParsedType.object)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.object,received:t.parsedType}),l.INVALID;let r=this.discriminator,o=t.data[r],i=this.optionsMap.get(o);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),l.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=K(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of t){if(i.has(o))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);i.set(o,r)}}return new W({typeName:o.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...f(r)})}}r.ZodDiscriminatedUnion=W;class X extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),o=(e,o)=>{if((0,l.isAborted)(e)||(0,l.isAborted)(o))return l.INVALID;let i=function e(t,r){let o=(0,d.getParsedType)(t),i=(0,d.getParsedType)(r);if(t===r)return{valid:!0,data:t};if(o===d.ZodParsedType.object&&i===d.ZodParsedType.object){let o=d.util.objectKeys(r),i=d.util.objectKeys(t).filter(e=>-1!==o.indexOf(e)),n={...t,...r};for(let o of i){let i=e(t[o],r[o]);if(!i.valid)return{valid:!1};n[o]=i.data}return{valid:!0,data:n}}if(o===d.ZodParsedType.array&&i===d.ZodParsedType.array){if(t.length!==r.length)return{valid:!1};let o=[];for(let i=0;i<t.length;i++){let n=e(t[i],r[i]);if(!n.valid)return{valid:!1};o.push(n.data)}return{valid:!0,data:o}}if(o===d.ZodParsedType.date&&i===d.ZodParsedType.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,o.value);return i.valid?(((0,l.isDirty)(e)||(0,l.isDirty)(o))&&t.dirty(),{status:t.value,value:i.data}):((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_intersection_types}),l.INVALID)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>o(e,t)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}r.ZodIntersection=X,X.create=(e,t,r)=>new X({left:e,right:t,typeName:o.ZodIntersection,...f(r)});class J extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==d.ZodParsedType.array)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.array,received:r.parsedType}),l.INVALID;if(r.data.length<this._def.items.length)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.INVALID;!this._def.rest&&r.data.length>this._def.items.length&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let o=[...r.data].map((e,t)=>{let o=this._def.items[t]||this._def.rest;return o?o._parse(new p(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(o).then(e=>l.ParseStatus.mergeArray(t,e)):l.ParseStatus.mergeArray(t,o)}get items(){return this._def.items}
49rest(e){return new J({...this._def,rest:e})}}r.ZodTuple=J,J.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new J({items:e,typeName:o.ZodTuple,rest:null,...f(t)})};class Q extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==d.ZodParsedType.object)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.object,received:r.parsedType}),l.INVALID;let o=[],i=this._def.keyType,n=this._def.valueType;for(let e in r.data)o.push({key:i._parse(new p(r,e,r.path,e)),value:n._parse(new p(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?l.ParseStatus.mergeObjectAsync(t,o):l.ParseStatus.mergeObjectSync(t,o)}get element(){return this._def.valueType}static create(e,t,r){return new Q(t instanceof h?{keyType:e,valueType:t,typeName:o.ZodRecord,...f(r)}:{keyType:O.create(),valueType:e,typeName:o.ZodRecord,...f(t)})}}r.ZodRecord=Q;class Y extends h{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==d.ZodParsedType.map)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.map,received:r.parsedType}),l.INVALID;let o=this._def.keyType,i=this._def.valueType,n=[...r.data.entries()].map(([e,t],n)=>({key:o._parse(new p(r,e,r.path,[n,"key"])),value:i._parse(new p(r,t,r.path,[n,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of n){let o=await r.key,i=await r.value;if("aborted"===o.status||"aborted"===i.status)return l.INVALID;("dirty"===o.status||"dirty"===i.status)&&t.dirty(),e.set(o.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of n){let o=r.key,i=r.value;if("aborted"===o.status||"aborted"===i.status)return l.INVALID;("dirty"===o.status||"dirty"===i.status)&&t.dirty(),e.set(o.value,i.value)}return{status:t.value,value:e}}}}r.ZodMap=Y,Y.create=(e,t,r)=>new Y({valueType:t,keyType:e,typeName:o.ZodMap,...f(r)});class ee extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==d.ZodParsedType.set)return(0,l.addIssueToContext)(r,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.set,received:r.parsedType}),l.INVALID;let o=this._def;null!==o.minSize&&r.data.size<o.minSize.value&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),t.dirty()),null!==o.maxSize&&r.data.size>o.maxSize.value&&((0,l.addIssueToContext)(r,{code:s.ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),t.dirty());let i=this._def.valueType;function n(e){let r=new Set;for(let o of e){if("aborted"===o.status)return l.INVALID;"dirty"===o.status&&t.dirty(),r.add(o.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new p(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>n(e)):n(a)}min(e,t){return new ee({...this._def,minSize:{value:e,message:c.errorUtil.toString(t)}})}max(e,t){return new ee({...this._def,maxSize:{value:e,message:c.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}r.ZodSet=ee,ee.create=(e,t)=>new ee({valueType:e,minSize:null,maxSize:null,typeName:o.ZodSet,...f(t)});class et extends h{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==d.ZodParsedType.function)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.function,received:t.parsedType}),l.INVALID;function r(e,r){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:s.ZodIssueCode.invalid_arguments,argumentsError:r}})}function o(e,r){return(0,l.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,a.getErrorMap)(),a.defaultErrorMap].filter(e=>!!e),issueData:{code:s.ZodIssueCode.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},n=t.data;if(this._def.returns instanceof ea){let e=this;return(0,l.OK)(async function(...t){let a=new s.ZodError([]),c=await e._def.args.parseAsync(t,i).c
49atch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(n,this,c);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw a.addIssue(o(l,e)),a})})}{let e=this;return(0,l.OK)(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new s.ZodError([r(t,a.error)]);let c=Reflect.apply(n,this,a.data),l=e._def.returns.safeParse(c,i);if(!l.success)throw new s.ZodError([o(c,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new et({...this._def,args:J.create(e).rest(U.create())})}returns(e){return new et({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new et({args:e||J.create([]).rest(U.create()),returns:t||U.create(),typeName:o.ZodFunction,...f(r)})}}r.ZodFunction=et;class er extends h{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}r.ZodLazy=er,er.create=(e,t)=>new er({getter:e,typeName:o.ZodLazy,...f(t)});class eo extends h{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_literal,expected:this._def.value}),l.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ei(e,t){return new en({values:e,typeName:o.ZodEnum,...f(t)})}r.ZodLiteral=eo,eo.create=(e,t)=>new eo({value:e,typeName:o.ZodLiteral,...f(t)});class en extends h{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,l.addIssueToContext)(t,{expected:d.util.joinValues(r),received:t.parsedType,code:s.ZodIssueCode.invalid_type}),l.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return(0,l.addIssueToContext)(t,{received:t.data,code:s.ZodIssueCode.invalid_enum_value,options:r}),l.INVALID}return(0,l.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return en.create(e,{...this._def,...t})}exclude(e,t=this._def){return en.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}r.ZodEnum=en,en.create=ei;class es extends h{_parse(e){let t=d.util.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==d.ZodParsedType.string&&r.parsedType!==d.ZodParsedType.number){let e=d.util.objectValues(t);return(0,l.addIssueToContext)(r,{expected:d.util.joinValues(e),received:r.parsedType,code:s.ZodIssueCode.invalid_type}),l.INVALID}if(this._cache||(this._cache=new Set(d.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=d.util.objectValues(t);return(0,l.addIssueToContext)(r,{received:r.data,code:s.ZodIssueCode.invalid_enum_value,options:e}),l.INVALID}return(0,l.OK)(e.data)}get enum(){return this._def.values}}r.ZodNativeEnum=es,es.create=(e,t)=>new es({values:e,typeName:o.ZodNativeEnum,...f(t)});class ea extends h{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==d.ZodParsedType.promise&&!1===t.common.async)return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.promise,received:t.parsedType}),l.INVALID;let r=t.parsedType===d.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,l.OK)(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}r.ZodPromise=ea,ea.create=(e,t)=>new ea({type:e,typeName:o.ZodPromise,...f(t)});class ec extends h{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===o.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),o=this._def.effect||null,i={addIssue:e=>{(0,l.addIssueToContext)(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===o.type){let e=o.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return l.INVALID;let o=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===o.status?l.INVALID:"dirty"===o.status||"dirty"===t.value?(0,l.DIRTY)(o.value):o});{if("aborted"===t.value)return l.INVALID;let o=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===o.status?l.INVALID:"dirty"===o.status||"dirty"===t.value?(0,l.DIRTY)(o.value):o}}if("refinement"===o.type){let e=e=>
49{let t=o.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?l.INVALID:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===o.status?l.INVALID:("dirty"===o.status&&t.dirty(),e(o.value),{status:t.value,value:o.value})}}if("transform"===o.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>(0,l.isValid)(e)?Promise.resolve(o.transform(e.value,i)).then(e=>({status:t.value,value:e})):l.INVALID);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!(0,l.isValid)(e))return l.INVALID;let n=o.transform(e.value,i);if(n instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:n}}d.util.assertNever(o)}}r.ZodEffects=ec,r.ZodTransformer=ec,ec.create=(e,t,r)=>new ec({schema:e,typeName:o.ZodEffects,effect:t,...f(r)}),ec.createWithPreprocess=(e,t,r)=>new ec({schema:t,effect:{type:"preprocess",transform:e},typeName:o.ZodEffects,...f(r)});class el extends h{_parse(e){return this._getType(e)===d.ZodParsedType.undefined?(0,l.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodOptional=el,el.create=(e,t)=>new el({innerType:e,typeName:o.ZodOptional,...f(t)});class ed extends h{_parse(e){return this._getType(e)===d.ZodParsedType.null?(0,l.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}r.ZodNullable=ed,ed.create=(e,t)=>new ed({innerType:e,typeName:o.ZodNullable,...f(t)});class ep extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===d.ZodParsedType.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}r.ZodDefault=ep,ep.create=(e,t)=>new ep({innerType:e,typeName:o.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...f(t)});class eu extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return(0,l.isAsync)(o)?o.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s.ZodError(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===o.status?o.value:this._def.catchValue({get error(){return new s.ZodError(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}r.ZodCatch=eu,eu.create=(e,t)=>new eu({innerType:e,typeName:o.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...f(t)});class ef extends h{_parse(e){if(this._getType(e)!==d.ZodParsedType.nan){let t=this._getOrReturnCtx(e);return(0,l.addIssueToContext)(t,{code:s.ZodIssueCode.invalid_type,expected:d.ZodParsedType.nan,received:t.parsedType}),l.INVALID}return{status:"valid",value:e.data}}}r.ZodNaN=ef,ef.create=e=>new ef({typeName:o.ZodNaN,...f(e)}),r.BRAND=Symbol("zod_brand");class eh extends h{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}r.ZodBranded=eh;class em extends h{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),(0,l.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?l.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:o.ZodPipeline})}}r.ZodPipeline=em;class ey extends h{_parse(e){let t=this._def.innerType._parse(e),r=e=>((0,l.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,l.isAsync)(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eg(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function eb(e,t={},r){return e?N.create().superRefine((o,i)=>
49{let n=e(o);if(n instanceof Promise)return n.then(e=>{if(!e){let e=eg(t,o),n=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:n})}});if(!n){let e=eg(t,o),n=e.fatal??r??!0;i.addIssue({code:"custom",...e,fatal:n})}}):N.create()}r.ZodReadonly=ey,ey.create=(e,t)=>new ey({innerType:e,typeName:o.ZodReadonly,...f(t)}),r.late={object:H.lazycreate},(i=o||(r.ZodFirstPartyTypeKind=o={})).ZodString="ZodString",i.ZodNumber="ZodNumber",i.ZodNaN="ZodNaN",i.ZodBigInt="ZodBigInt",i.ZodBoolean="ZodBoolean",i.ZodDate="ZodDate",i.ZodSymbol="ZodSymbol",i.ZodUndefined="ZodUndefined",i.ZodNull="ZodNull",i.ZodAny="ZodAny",i.ZodUnknown="ZodUnknown",i.ZodNever="ZodNever",i.ZodVoid="ZodVoid",i.ZodArray="ZodArray",i.ZodObject="ZodObject",i.ZodUnion="ZodUnion",i.ZodDiscriminatedUnion="ZodDiscriminatedUnion",i.ZodIntersection="ZodIntersection",i.ZodTuple="ZodTuple",i.ZodRecord="ZodRecord",i.ZodMap="ZodMap",i.ZodSet="ZodSet",i.ZodFunction="ZodFunction",i.ZodLazy="ZodLazy",i.ZodLiteral="ZodLiteral",i.ZodEnum="ZodEnum",i.ZodEffects="ZodEffects",i.ZodNativeEnum="ZodNativeEnum",i.ZodOptional="ZodOptional",i.ZodNullable="ZodNullable",i.ZodDefault="ZodDefault",i.ZodCatch="ZodCatch",i.ZodPromise="ZodPromise",i.ZodBranded="ZodBranded",i.ZodPipeline="ZodPipeline",i.ZodReadonly="ZodReadonly",r.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>eb(t=>t instanceof e,t);let ev=O.create;r.string=ev;let ew=D.create;r.number=ew,r.nan=ef.create,r.bigint=M.create;let ek=L.create;r.boolean=ek,r.date=B.create,r.symbol=z.create,r.undefined=q.create,r.null=V.create,r.any=N.create,r.unknown=U.create,r.never=F.create,r.void=$.create,r.array=G.create,r.object=H.create,r.strictObject=H.strictCreate,r.union=Z.create,r.discriminatedUnion=W.create,r.intersection=X.create,r.tuple=J.create,r.record=Q.create,r.map=Y.create,r.set=ee.create,r.function=et.create,r.lazy=er.create,r.literal=eo.create,r.enum=en.create,r.nativeEnum=es.create,r.promise=ea.create;let ex=ec.create;r.effect=ex,r.transformer=ex,r.optional=el.create,r.nullable=ed.create,r.preprocess=ec.createWithPreprocess,r.pipeline=em.create,r.ostring=()=>ev().optional(),r.onumber=()=>ew().optional(),r.oboolean=()=>ek().optional(),r.coerce={string:e=>O.create({...e,coerce:!0}),number:e=>D.create({...e,coerce:!0}),boolean:e=>L.create({...e,coerce:!0}),bigint:e=>M.create({...e,coerce:!0}),date:e=>B.create({...e,coerce:!0})},r.NEVER=l.INVALID},156557,(e,t,r)=>{"use strict";var o=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(739397),r),i(e.r(465654),r),i(e.r(716939),r),i(e.r(131645),r),i(e.r(74897),r),i(e.r(119978),r)},589624,(e,t,r)=>{"use strict";var o=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),i=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return i(t,e),t},s=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.z=void 0;let a=n(e.r(156557));r.z=a,s(e.r(156557),r),r.default=a},840143,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=r.assure=r.create=r.is=void 0,r.is=(e,t)=>t.safeParse(e).success,r.create=e=>t=>e.safeParse(t).success,r.assure=(e,t)=>
49e.parse(t),r.isObject=e=>"object"==typeof e&&null!==e},855169,(e,t,r)=>{"use strict";function o(e){return e instanceof Error?e.message:String(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.parseIntWithFallback=r.dedupeStrs=r.range=r.chunkArray=r.errHasMsg=r.isErrnoException=r.asyncFilter=r.s32decode=r.s32encode=r.streamToBuffer=r.flattenUint8Arrays=r.bailableWait=r.wait=r.jitter=r.noUndefinedVals=void 0,r.aggregateErrors=function(e,t){return 1===e.length?e[0]instanceof Error?e[0]:Error(t??o(e[0]),{cause:e[0]}):AggregateError(e,t??`Multiple errors: ${e.map(o).join("\n")}`)},r.omit=function(e,t){if(!e)return e;let r={},o=Object.keys(e);for(let i=0;i<o.length;i++){let n=o[i];t.includes(n)||(r[n]=e[n])}return r},r.noUndefinedVals=e=>{for(let t of Object.keys(e))void 0===e[t]&&delete e[t];return e},r.jitter=e=>Math.round((Math.random()-.5)*e*2),r.wait=e=>new Promise(t=>setTimeout(t,e)),r.bailableWait=e=>{let t,r=new Promise(r=>{let o=setTimeout(r,e);t=()=>{clearTimeout(o),r()}});return{bail:t,wait:()=>r}},r.flattenUint8Arrays=e=>{let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{t.set(e,r),r+=e.length}),t};let i=async e=>{let t=[];for await(let r of e)t.push(r);return(0,r.flattenUint8Arrays)(t)};r.streamToBuffer=i;let n="234567abcdefghijklmnopqrstuvwxyz";r.s32encode=e=>{let t="";for(;e;){let r=e%32;e=Math.floor(e/32),t=n.charAt(r)+t}return t},r.s32decode=e=>{let t=0;for(let r of e)t=32*t+n.indexOf(r);return t},r.asyncFilter=async(e,t)=>{let r=await Promise.all(e.map(e=>t(e)));return e.filter((e,t)=>r[t])},r.isErrnoException=e=>!!e&&e.code,r.errHasMsg=(e,t)=>!!e&&"object"==typeof e&&e.message===t,r.chunkArray=(e,t)=>e.reduce((e,r,o)=>{let i=Math.floor(o/t);return e[i]||(e[i]=[]),e[i].push(r),e},[]),r.range=e=>{let t=[];for(let r=0;r<e;r++)t.push(r);return t},r.dedupeStrs=e=>[...new Set(e)],r.parseIntWithFallback=(e,t)=>{let r=parseInt(e||"",10);return isNaN(r)?t:r}},270359,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mapDefined=void 0,r.keyBy=function(e,t){return e.reduce((e,r)=>(e.set(r[t],r),e),new Map)},r.mapDefined=(e,t)=>{let r=[];for(let o of e){let e=t(o);void 0!==e&&r.push(e)}return r}},361469,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncBufferFullError=r.AsyncBuffer=r.allComplete=r.createDeferrables=r.createDeferrable=r.readFromGenerator=void 0,r.allFulfilled=function(e){return Promise.allSettled(e).then(n)},r.handleAllSettledErrors=n,r.isRejectedResult=s,r.isFulfilledResult=c;let o=e.r(855169);r.readFromGenerator=async(e,t,r=Promise.resolve(),i=Number.MAX_SAFE_INTEGER)=>{let n,s=[],a=!1,c=async()=>{if(await t(s.at(-1)))return!0;let e=(0,o.bailableWait)(20);
49return await e.wait(),n=e.bail,!a&&await c()},l=new Promise(e=>{r.then(()=>{c().then(()=>e())})});try{for(;s.length<i;){let t=await Promise.race([e.next(),l]);if(!t||t.done)break;s.push(t.value)}}finally{a=!0,n&&n()}return s},r.createDeferrable=()=>{let e,t=new Promise(t=>{e=()=>t()});return{resolve:e,complete:t}},r.createDeferrables=e=>{let t=[];for(let o=0;o<e;o++)t.push((0,r.createDeferrable)());return t},r.allComplete=async e=>{await Promise.all(e.map(e=>e.complete))},r.AsyncBuffer=class{constructor(e){Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"buffer",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"promise",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolve",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"closed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"toThrow",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.promise=Promise.resolve(),this.resolve=()=>null,this.resetPromise()}get curr(){return this.buffer}get size(){return this.buffer.length}get isClosed(){return this.closed}resetPromise(){this.promise=new Promise(e=>this.resolve=e)}push(e){this.buffer.push(e),this.resolve()}pushMany(e){e.forEach(e=>this.buffer.push(e)),this.resolve()}async *events(){for(;;){if(this.closed&&0===this.buffer.length)if(!this.toThrow)return;else throw this.toThrow;if(await this.promise,this.toThrow)throw this.toThrow;if(this.maxSize&&this.size>this.maxSize)throw new i(this.maxSize);let[e,...t]=this.buffer;e?(this.buffer=t,yield e):this.resetPromise()}}throw(e){this.toThrow=e,this.closed=!0,this.resolve()}close(){this.closed=!0,this.resolve()}};class i extends Error{constructor(e){super(`ReachedMaxBufferSize: ${e}`)}}function n(e){if(e.every(c))return e.map(l);let t=e.filter(s).map(a);throw(0,o.aggregateErrors)(t)}function s(e){return"rejected"===e.status}function a(e){return e.reason}function c(e){return"fulfilled"===e.status}function l(e){return e.value}r.AsyncBufferFullError=i},680536,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TID=void 0;let o=e.r(855169),i=0,n=0,s=null;function a(e){return e.replaceAll("-","")}r.TID=class e{constructor(e){Object.defineProperty(this,"str",{enumerable:!0,configurable:!0,writable:!0,value:void 0});const t=a(e);if(13!==t.length)throw Error(`Poorly formatted TID: ${t.length} length`);this.str=t}static next(t){let r=Math.max(Date.now(),i);r===i&&n++,i=r;let o=1e3*r+n;null===s&&(s=Math.floor(32*Math.random()));let a=e.fromTime(o,s);return!t||a.newerThan(t)?a:e.fromTime(t.timestamp()+1,s)}static nextStr(t){return e.next(t?new e(t):void 0).toString()}static fromTime(t,r){return new e(`${(0,o.s32encode)(t)}${(0,o.s32encode)(r).padStart(2,"2")}`)}static fromStr(t){return new e(t)}static oldestFirst(e,t){return e.compareTo(t)}static newestFirst(e,t){return t.compareTo(e)}static is(e){return 13===a(e).length}timestamp(){return(0,o.s32decode)(this.str.slice(0,11))}clockid(){return(0,o.s32decode)(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)}}},768834,e=>{"use strict";var t=e.i(271645);let r=e=>{let t,r=new Set,o=(e,o)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=o?o:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,n={setState:o,getState:i,getInitialState:()=>s,subscribe:e=>(r.add(e),()=>r.delete(e))},s=t=e(o,i,n);return n},o=e=>{let o=e?r(e):r,i=e=>(function(e,r=e=>e){let o=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>r(e.getState()),[e,r]),t.default.useCallback(()=>r(e.getInitialState()),[e,r]));return t.default.useDebugValue(o),o})(o,e);return Object.assign(i,o),i};e.s(["create",0,e=>e?o(e):o],768834)},255512,e=>{"use strict";e.s(["hasSessionMarker",0,function(){return!("u"<typeof document)&&document.cookie.split("; ").some(e=>e.startsWith("leaflet_session="))}])},760524,e=>{"use strict";function t(e){return null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function r(e){let t=null;return()=>(null==t&&(t=e()),t)}e.i(247167);
49let o=r(function(){return t(/^Mac/i)}),i=r(function(){return t(/^iPhone/i)}),n=r(function(){return t(/^iPad/i)||o()&&navigator.maxTouchPoints>1}),s=r(function(){return i()||n()});e.s(["isIOS",0,s,"isMac",0,o])},885718,(e,t,r)=>{t.exports={content:["./app/**/*.{ts,tsx}","./components/**/*.{ts,tsx}"],theme:{screens:{sm:"640px",md:"960px",lg:"1280px"},borderRadius:{none:"0",md:"0.25rem",lg:"0.5rem",full:"9999px"},colors:{inherit:"inherit",transparent:"transparent",current:"currentColor",primary:"rgb(var(--primary))",secondary:"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 25%)",tertiary:"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 55%)",border:"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 75%)","border-light":"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 85%)",white:"#FFFFFF","accent-1":"rgb(var(--accent-1))","accent-2":"rgb(var(--accent-2))","accent-contrast":"rgb(var(--accent-contrast))","bg-leaflet":"rgb(var(--bg-leaflet))","bg-page":"rgb(var(--bg-page))","bg-light":"color-mix(in oklab, rgb(var(--primary)), rgb(var(--bg-page)) 95%)","bg-accent":"color-mix(in oklab, rgb(var(--accent-contrast)), rgb(var(--bg-page)) 85%)","highlight-1":"var(--highlight-1)","highlight-2":"rgb(var(--highlight-2))","highlight-3":"rgb(var(--highlight-3))",test:"#E18181","test-blue":"#48D1EF"},fontSize:{xs:".75rem",sm:".875rem",base:"1rem",lg:"1.125rem",xl:"1.625rem","2xl":"2rem"},extend:{boxShadow:{sm:"0.9px 1.5px 1.7px -1.8px rgba(var(--primary), 0.2), 4.2px 6.9px 7.8px -3.5px rgba(var(--primary), 0.15);",md:"1.2px 2.5px 2.7px -1.8px rgba(var(--primary), 0.1), 5.6px 11.6px 12.5px -3.5px rgba(var(--primary), 0.15);"},fontFamily:{sans:["var(--theme-font, var(--font-quattro))"],serif:["Garamond"]}}},plugins:[]}}]);
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.