taskin 2.2.2 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
* pinia v2.3.1
|
|
19
19
|
* (c) 2025 Eduardo San Martin Morote
|
|
20
20
|
* @license MIT
|
|
21
|
-
*/let E1;const Ls=t=>E1=t,T1=Symbol();function Wr(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ln;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ln||(Ln={}));function s2(){const t=Il(!0),e=t.run(()=>jr({}));let n=[],s=[];const r=di({install(i){Ls(r),r._a=i,i.provide(T1,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const I1=()=>{};function Co(t,e,n,s=I1){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&kl()&&Ja(r),r}function qe(t,...e){t.slice().forEach(n=>{n(...e)})}const r2=t=>t(),Oo=Symbol(),wr=Symbol();function Vr(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,s)=>t.set(s,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Wr(r)&&Wr(s)&&t.hasOwnProperty(n)&&!it(s)&&!pe(s)?t[n]=Vr(r,s):t[n]=s}return t}const i2=Symbol();function o2(t){return!Wr(t)||!t.hasOwnProperty(i2)}const{assign:xe}=Object;function l2(t){return!!(it(t)&&t.effect)}function a2(t,e,n,s){const{state:r,actions:i,getters:o}=e,l=n.state.value[t];let a;function d(){l||(n.state.value[t]=r?r():{});const u=mc(n.state.value[t]);return xe(u,i,Object.keys(o||{}).reduce((h,v)=>(h[v]=di(at(()=>{Ls(n);const w=n._s.get(t);return o[v].call(w,w)})),h),{}))}return a=k1(t,d,e,n,s,!0),a}function k1(t,e,n={},s,r,i){let o;const l=xe({actions:{}},n),a={deep:!0};let d,u,h=[],v=[],w;const E=s.state.value[t];!i&&!E&&(s.state.value[t]={});let R;function ot(B){let U;d=u=!1,typeof B=="function"?(B(s.state.value[t]),U={type:Ln.patchFunction,storeId:t,events:w}):(Vr(s.state.value[t],B),U={type:Ln.patchObject,payload:B,storeId:t,events:w});const ut=R=Symbol();Kl().then(()=>{R===ut&&(d=!0)}),u=!0,qe(h,U,s.state.value[t])}const $=i?function(){const{state:U}=n,ut=U?U():{};this.$patch(Lt=>{xe(Lt,ut)})}:I1;function q(){o.stop(),h=[],v=[],s._s.delete(t)}const tt=(B,U="")=>{if(Oo in B)return B[wr]=U,B;const ut=function(){Ls(s);const Lt=Array.from(arguments),Gt=[],we=[];function yn(F){Gt.push(F)}function ss(F){we.push(F)}qe(v,{args:Lt,name:ut[wr],store:W,after:yn,onError:ss});let lt;try{lt=B.apply(this&&this.$id===t?this:W,Lt)}catch(F){throw qe(we,F),F}return lt instanceof Promise?lt.then(F=>(qe(Gt,F),F)).catch(F=>(qe(we,F),Promise.reject(F))):(qe(Gt,lt),lt)};return ut[Oo]=!0,ut[wr]=U,ut},O={_p:s,$id:t,$onAction:Co.bind(null,v),$patch:ot,$reset:$,$subscribe(B,U={}){const ut=Co(h,B,U.detached,()=>Lt()),Lt=o.run(()=>us(()=>s.state.value[t],Gt=>{(U.flush==="sync"?u:d)&&B({storeId:t,type:Ln.direct,events:w},Gt)},xe({},a,U)));return ut},$dispose:q},W=Ds(O);s._s.set(t,W);const _t=(s._a&&s._a.runWithContext||r2)(()=>s._e.run(()=>(o=Il()).run(()=>e({action:tt}))));for(const B in _t){const U=_t[B];if(it(U)&&!l2(U)||pe(U))i||(E&&o2(U)&&(it(U)?U.value=E[B]:Vr(U,E[B])),s.state.value[t][B]=U);else if(typeof U=="function"){const ut=tt(U,B);_t[B]=ut,l.actions[B]=U}}return xe(W,_t),xe(H(W),_t),Object.defineProperty(W,"$state",{get:()=>s.state.value[t],set:B=>{ot(U=>{xe(U,B)})}}),s._p.forEach(B=>{xe(W,o.run(()=>B({store:W,app:s._a,pinia:s,options:l})))}),E&&i&&n.hydrate&&n.hydrate(W.$state,E),d=!0,u=!0,W}/*! #__NO_SIDE_EFFECTS__ */function c2(t,e,n){let s,r;const i=typeof e=="function";s=t,r=i?n:e;function o(l,a){const d=kc();return l=l||(d?Rn(T1,null):null),l&&Ls(l),l=E1,l._s.has(s)||(i?k1(s,e,r,l):a2(s,r,l)),l._s.get(s)}return o.$id=s,o}const Wt=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n};var ln=typeof self<"u"?self:{};function Be(){throw Error("Invalid UTF8")}function Mo(t,e){return e=String.fromCharCode.apply(null,e),t==null?e:t+e}let cs,xr;const u2=typeof TextDecoder<"u";let Po;const f2=typeof TextEncoder<"u";function C1(t){if(f2)t=(Po||(Po=new TextEncoder)).encode(t);else{let n=0;const s=new Uint8Array(3*t.length);for(let r=0;r<t.length;r++){var e=t.charCodeAt(r);if(e<128)s[n++]=e;else{if(e<2048)s[n++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&r<t.length){const i=t.charCodeAt(++r);if(i>=56320&&i<=57343){e=1024*(e-55296)+i-56320+65536,s[n++]=e>>18|240,s[n++]=e>>12&63|128,s[n++]=e>>6&63|128,s[n++]=63&e|128;continue}r--}e=65533}s[n++]=e>>12|224,s[n++]=e>>6&63|128}s[n++]=63&e|128}}t=n===s.length?s:s.subarray(0,n)}return t}var wi,bs;t:{for(var Ro=["CLOSURE_FLAGS"],Sr=ln,Ar=0;Ar<Ro.length;Ar++)if((Sr=Sr[Ro[Ar]])==null){bs=null;break t}bs=Sr}var Jn,Do=bs&&bs[610401301];wi=Do!=null&&Do;const No=ln.navigator;function Kr(t){return!!wi&&!!Jn&&Jn.brands.some((({brand:e})=>e&&e.indexOf(t)!=-1))}function Ut(t){var e;return(e=ln.navigator)&&(e=e.userAgent)||(e=""),e.indexOf(t)!=-1}function Ie(){return!!wi&&!!Jn&&Jn.brands.length>0}function Er(){return Ie()?Kr("Chromium"):(Ut("Chrome")||Ut("CriOS"))&&!(!Ie()&&Ut("Edge"))||Ut("Silk")}function Us(t){return Us[" "](t),t}Jn=No&&No.userAgentData||null,Us[" "]=function(){};var d2=!Ie()&&(Ut("Trident")||Ut("MSIE"));!Ut("Android")||Er(),Er(),Ut("Safari")&&(Er()||!Ie()&&Ut("Coast")||!Ie()&&Ut("Opera")||!Ie()&&Ut("Edge")||(Ie()?Kr("Microsoft Edge"):Ut("Edg/"))||Ie()&&Kr("Opera"));var O1={},kn=null;function h2(t){const e=t.length;let n=3*e/4;n%3?n=Math.floor(n):"=.".indexOf(t[e-1])!=-1&&(n="=.".indexOf(t[e-2])!=-1?n-2:n-1);const s=new Uint8Array(n);let r=0;return(function(i,o){function l(d){for(;a<i.length;){const u=i.charAt(a++),h=kn[u];if(h!=null)return h;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return d}M1();let a=0;for(;;){const d=l(-1),u=l(0),h=l(64),v=l(64);if(v===64&&d===-1)break;o(d<<2|u>>4),h!=64&&(o(u<<4&240|h>>2),v!=64&&o(h<<6&192|v))}})(t,(function(i){s[r++]=i})),r!==n?s.subarray(0,r):s}function M1(){if(!kn){kn={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let n=0;n<5;n++){const s=t.concat(e[n].split(""));O1[n]=s;for(let r=0;r<s.length;r++){const i=s[r];kn[i]===void 0&&(kn[i]=r)}}}}var P1=typeof Uint8Array<"u",R1=!d2&&typeof btoa=="function";function jo(t){if(!R1){var e;e===void 0&&(e=0),M1(),e=O1[e];var n=Array(Math.floor(t.length/3)),s=e[64]||"";let a=0,d=0;for(;a<t.length-2;a+=3){var r=t[a],i=t[a+1],o=t[a+2],l=e[r>>2];r=e[(3&r)<<4|i>>4],i=e[(15&i)<<2|o>>6],o=e[63&o],n[d++]=l+r+i+o}switch(l=0,o=s,t.length-a){case 2:o=e[(15&(l=t[a+1]))<<2]||s;case 1:t=t[a],n[d]=e[t>>2]+e[(3&t)<<4|l>>4]+o+s}return n.join("")}for(e="",n=0,s=t.length-10240;n<s;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return e+=String.fromCharCode.apply(null,n?t.subarray(n):t),btoa(e)}const $o=/[-_.]/g,p2={"-":"+",_:"/",".":"="};function g2(t){return p2[t]||""}function D1(t){if(!R1)return h2(t);$o.test(t)&&(t=t.replace($o,g2)),t=atob(t);const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function qn(t){return P1&&t!=null&&t instanceof Uint8Array}var Hs={};function zr(){return Fo||(Fo=new Qn(null,Hs))}function xi(t){N1(Hs);var e=t.g;return(e=e==null||qn(e)?e:typeof e=="string"?D1(e):null)==null?e:t.g=e}var Qn=class{h(){return new Uint8Array(xi(this)||0)}constructor(t,e){if(N1(e),this.g=t,t!=null&&t.length===0)throw Error("ByteString should be constructed with non-empty values")}};let Fo,Bo;function N1(t){if(t!==Hs)throw Error("illegal external caller")}function j1(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function _2(t){return j1(t=Error(t),"warning"),t}function Si(t){if(t!=null){var e=Bo??(Bo={}),n=e[t]||0;n>=5||(e[t]=n+1,j1(t=Error(),"incident"),(function(s){ln.setTimeout((()=>{throw s}),0)})(t))}}var Ws=typeof Symbol=="function"&&typeof Symbol()=="symbol";function fn(t,e,n=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&t?Symbol.for(t):t!=null?Symbol(t):Symbol():e}var m2=fn("jas",void 0,!0),Lo=fn(void 0,"0di"),An=fn(void 0,"1oa"),ws=fn(void 0,Symbol()),y2=fn(void 0,"0actk"),$1=fn(void 0,"8utk");const j=Ws?m2:"Ea",F1={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},B1=Object.defineProperties;function Vs(t,e){Ws||j in t||B1(t,F1),t[j]|=e}function ae(t,e){Ws||j in t||B1(t,F1),t[j]=e}function ts(t){return Vs(t,34),t}function v2(t,e){ae(e,-15615&(0|t))}function Jr(t,e){ae(e,-15581&(34|t))}function Ks(){return typeof BigInt=="function"}function We(t){return Array.prototype.slice.call(t)}var Ai,es={};function zs(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&t.constructor===Object}const Uo=[];function Ei(t){if(2&t)throw Error()}ae(Uo,55),Ai=Object.freeze(Uo);class Ho{constructor(e,n,s){this.g=e,this.h=n,this.l=s}next(){const e=this.g.next();return e.done||(e.value=this.h.call(this.l,e.value)),e}[Symbol.iterator](){return this}}function Ti(t){return ws?t[ws]:void 0}function Js(t){return t.Na=!0,t}var b2=Js((t=>typeof t=="number")),Wo=Js((t=>typeof t=="string")),w2=Js((t=>typeof t=="boolean")),qs=typeof ln.BigInt=="function"&&typeof ln.BigInt(0)=="bigint";function Oe(t){var e=t;if(Wo(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(b2(e)&&!Number.isSafeInteger(e))throw Error(String(e));return qs?BigInt(t):t=w2(t)?t?"1":"0":Wo(t)?t.trim()||"0":String(t)}var x2=Js((t=>qs?t>=A2&&t<=T2:t[0]==="-"?Vo(t,S2):Vo(t,E2)));const S2=Number.MIN_SAFE_INTEGER.toString(),A2=qs?BigInt(Number.MIN_SAFE_INTEGER):void 0,E2=Number.MAX_SAFE_INTEGER.toString(),T2=qs?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Vo(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let n=0;n<t.length;n++){const s=t[n],r=e[n];if(s>r)return!1;if(s<r)return!0}}const I2=typeof Uint8Array.prototype.slice=="function";let xs,G=0,rt=0;function Ko(t){const e=t>>>0;G=e,rt=(t-e)/4294967296>>>0}function Ve(t){if(t<0){Ko(-t);const[e,n]=Oi(G,rt);G=e>>>0,rt=n>>>0}else Ko(t)}function Ii(t){const e=xs||(xs=new DataView(new ArrayBuffer(8)));e.setFloat32(0,+t,!0),rt=0,G=e.getUint32(0,!0)}function ki(t,e){const n=4294967296*e+(t>>>0);return Number.isSafeInteger(n)?n:Gn(t,e)}function Ci(t,e){const n=2147483648&e;return n&&(e=~e>>>0,(t=1+~t>>>0)==0&&(e=e+1>>>0)),typeof(t=ki(t,e))=="number"?n?-t:t:n?"-"+t:t}function Gn(t,e){if(t>>>=0,(e>>>=0)<=2097151)var n=""+(4294967296*e+t);else Ks()?n=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(n=16777215&(t>>>24|e<<8))+6710656*(e=e>>16&65535),n+=8147497*e,e*=2,t>=1e7&&(n+=t/1e7>>>0,t%=1e7),n>=1e7&&(e+=n/1e7>>>0,n%=1e7),n=e+zo(n)+zo(t));return n}function zo(t){return t=String(t),"0000000".slice(t.length)+t}function L1(){var t=G,e=rt;if(2147483648&e)if(Ks())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{const[n,s]=Oi(t,e);t="-"+Gn(n,s)}else t=Gn(t,e);return t}function Gs(t){if(t.length<16)Ve(Number(t));else if(Ks())t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,rt=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+(t[0]==="-");rt=G=0;const n=t.length;for(let s=e,r=(n-e)%6+e;r<=n;s=r,r+=6){const i=Number(t.slice(s,r));rt*=1e6,G=1e6*G+i,G>=4294967296&&(rt+=Math.trunc(G/4294967296),rt>>>=0,G>>>=0)}if(e){const[s,r]=Oi(G,rt);G=s,rt=r}}}function Oi(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}const Ss=typeof BigInt=="function"?BigInt.asIntN:void 0,k2=typeof BigInt=="function"?BigInt.asUintN:void 0,Me=Number.isSafeInteger,Mi=Number.isFinite,an=Math.trunc,C2=Oe(0);function Xs(t){return t==null||typeof t=="number"?t:t==="NaN"||t==="Infinity"||t==="-Infinity"?Number(t):void 0}function O2(t){return t==null||typeof t=="boolean"?t:typeof t=="number"?!!t:void 0}const M2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function As(t){switch(typeof t){case"bigint":return!0;case"number":return Mi(t);case"string":return M2.test(t);default:return!1}}function Ys(t){if(t==null)return t;if(typeof t=="string"&&t)t=+t;else if(typeof t!="number")return;return Mi(t)?0|t:void 0}function U1(t){if(t==null)return t;if(typeof t=="string"&&t)t=+t;else if(typeof t!="number")return;return Mi(t)?t>>>0:void 0}function Jo(t){if(t[0]==="-")return!1;const e=t.length;return e<20||e===20&&Number(t.substring(0,6))<184467}function H1(t){const e=t.length;return t[0]==="-"?e<20||e===20&&Number(t.substring(0,7))>-922337:e<19||e===19&&Number(t.substring(0,6))<922337}function W1(t){return H1(t)?t:(Gs(t),L1())}function V1(t){return t=an(t),Me(t)||(Ve(t),t=Ci(G,rt)),t}function P2(t){var e=an(Number(t));return Me(e)?String(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),W1(t))}function qo(t){var e=an(Number(t));return Me(e)?Oe(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),Ks()?Oe(Ss(64,BigInt(t))):Oe(W1(t)))}function Go(t){if(Me(t))t=Oe(V1(t));else{if(t=an(t),Me(t))t=String(t);else{const e=String(t);H1(e)?t=e:(Ve(t),t=L1())}t=Oe(t)}return t}function R2(t){if(t==null)return t;var e=typeof t;if(e==="bigint")return String(k2(64,t));if(As(t)){if(e==="string")return e=an(Number(t)),Me(e)&&e>=0?t=String(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),Jo(t)||(Gs(t),t=Gn(G,rt))),t;if(e==="number")return(t=an(t))>=0&&Me(t)?t:(function(n){if(n<0){Ve(n);var s=Gn(G,rt);return n=Number(s),Me(n)?n:s}return Jo(s=String(n))?s:(Ve(n),ki(G,rt))})(t)}}function K1(t){return t==null||typeof t=="string"?t:void 0}function z1(t,e,n,s){if(t!=null&&typeof t=="object"&&t.W===es)return t;if(!Array.isArray(t))return n?2&s?((t=e[Lo])||(ts((t=new e).u),t=e[Lo]=t),e=t):e=new e:e=void 0,e;let r=n=0|t[j];return r===0&&(r|=32&s),r|=2&s,r!==n&&ae(t,r),new e(t)}function D2(t,e,n){if(e)t:{if(!As(e=t))throw _2("int64");switch(typeof e){case"string":e=qo(e);break t;case"bigint":e=Oe(Ss(64,e));break t;default:e=Go(e)}}else t=typeof(e=t),e=e==null?e:t==="bigint"?Oe(Ss(64,e)):As(e)?t==="string"?qo(e):Go(e):void 0;return(t=e)==null?n?C2:void 0:t}function N2(t){return t}const j2={};let $2=(function(){try{return Us(new class extends Map{constructor(){super()}}),!1}catch{return!0}})();class Tr{constructor(){this.g=new Map}get(e){return this.g.get(e)}set(e,n){return this.g.set(e,n),this.size=this.g.size,this}delete(e){return e=this.g.delete(e),this.size=this.g.size,e}clear(){this.g.clear(),this.size=this.g.size}has(e){return this.g.has(e)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(e,n){return this.g.forEach(e,n)}[Symbol.iterator](){return this.entries()}}const F2=$2?(Object.setPrototypeOf(Tr.prototype,Map.prototype),Object.defineProperties(Tr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Tr):class extends Map{constructor(){super()}};function Xo(t){return t}function Ir(t){if(2&t.M)throw Error("Cannot mutate an immutable Map")}var oe=class extends F2{constructor(t,e,n=Xo,s=Xo){super();let r=0|t[j];r|=64,ae(t,r),this.M=r,this.I=e,this.S=n,this.X=this.I?B2:s;for(let i=0;i<t.length;i++){const o=t[i],l=n(o[0],!1,!0);let a=o[1];e?a===void 0&&(a=null):a=s(o[1],!1,!0,void 0,void 0,r),super.set(l,a)}}La(){var t=H2;if(this.size!==0)return Array.from(super.entries(),(e=>(e[0]=t(e[0]),e[1]=t(e[1]),e)))}da(t=L2){const e=[],n=super.entries();for(var s;!(s=n.next()).done;)(s=s.value)[0]=t(s[0]),s[1]=t(s[1]),e.push(s);return e}clear(){Ir(this),super.clear()}delete(t){return Ir(this),super.delete(this.S(t,!0,!1))}entries(){if(this.I){var t=super.keys();t=new Ho(t,U2,this)}else t=super.entries();return t}values(){if(this.I){var t=super.keys();t=new Ho(t,oe.prototype.get,this)}else t=super.values();return t}forEach(t,e){this.I?super.forEach(((n,s,r)=>{t.call(e,r.get(s),s,r)})):super.forEach(t,e)}set(t,e){return Ir(this),(t=this.S(t,!0,!1))==null?this:e==null?(super.delete(t),this):super.set(t,this.X(e,!0,!0,this.I,!1,this.M))}Ja(t){const e=this.S(t[0],!1,!0);t=t[1],t=this.I?t===void 0?null:t:this.X(t,!1,!0,void 0,!1,this.M),super.set(e,t)}has(t){return super.has(this.S(t,!1,!1))}get(t){t=this.S(t,!1,!1);const e=super.get(t);if(e!==void 0){var n=this.I;return n?((n=this.X(e,!1,!0,n,this.pa,this.M))!==e&&super.set(t,n),n):e}}[Symbol.iterator](){return this.entries()}};function B2(t,e,n,s,r,i){return t=z1(t,s,n,i),r&&(t=Ri(t)),t}function L2(t){return t}function U2(t){return[t,this.get(t)]}let Yo,J1,qr,Zo;function Qo(){return Yo||(Yo=new oe(ts([]),void 0,void 0,void 0,j2))}function Gr(t,e,n,s,r){if(t!=null){if(Array.isArray(t)){const i=0|t[j];return t.length===0&&1&i?void 0:r&&2&i?t:Pi(t,e,n,s!==void 0,r)}return e(t,s)}}function Pi(t,e,n,s,r){const i=s||n?0|t[j]:0,o=s?!!(32&i):void 0;let l=0;const a=(s=We(t)).length;for(let E=0;E<a;E++){var d=s[E];if(E===a-1&&zs(d)){var u=e,h=n,v=o,w=r;let R;for(let ot in d){const $=Gr(d[ot],u,h,v,w);$!=null&&((R??(R={}))[ot]=$)}d=R}else d=Gr(s[E],e,n,o,r);s[E]=d,d!=null&&(l=E+1)}return l<a&&(s.length=l),n&&((t=Ti(t))&&(s[ws]=We(t)),n(i,s)),s}function H2(t){return Gr(t,q1,void 0,void 0,!1)}function q1(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return x2(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(qn(t))return qn(t)&&Si($1),jo(t);if(t.W===es)return G1(t);if(t instanceof Qn){const e=t.g;return e==null?"":typeof e=="string"?e:t.g=jo(e)}return t instanceof oe?t.La():void 0}return t}function G1(t){var e=t.u;t=Pi(e,q1,void 0,void 0,!1);var n=0|e[j];if((e=t.length)&&!(512&n)){var s=t[e-1],r=!1;zs(s)?(e--,r=!0):s=void 0;var i=e-(n=512&n?0:-1),o=(J1??N2)(i,n,t,s);if(s&&(t[e]=void 0),i<o&&s){for(var l in i=!0,s){const a=+l;a<=o?(t[r=a+n]=s[l],e=Math.max(r+1,e),r=!1,delete s[l]):i=!1}i&&(s=void 0)}for(i=e-1;e>0;i=e-1)if((l=t[i])==null)e--,r=!0;else{if(!((i-=n)>=o))break;(s??(s={}))[i]=l,e--,r=!0}r&&(t.length=e),s&&t.push(s)}return t}function Pe(t,e,n){return t=X1(t,e[0],e[1],n?1:2),e!==qr&&n&&Vs(t,8192),t}function X1(t,e,n,s){if(t==null){var r=96;n?(t=[n],r|=512):t=[],e&&(r=-16760833&r|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(8192&(r=0|t[j])||!(64&r)||2&r||Si(y2),1024&r)throw Error("farr");if(64&r)return t;if(s===1||s===2||(r|=64),n&&(r|=512,n!==t[0]))throw Error("mid");t:{var i=(n=t).length;if(i){var o=i-1;if(zs(s=n[o])){if((o-=e=512&(r|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var l in s)(i=+l)<o&&(n[i+e]=s[l],delete s[l]);r=-16760833&r|(1023&o)<<14;break t}}if(e){if((l=Math.max(e,i-(512&r?0:-1)))>1024)throw Error("spvt");r=-16760833&r|(1023&l)<<14}}}return ae(t,r),t}function Xr(t,e,n=Jr){if(t!=null){if(P1&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){var s=0|t[j];return 2&s?t:(e&&(e=s===0||!!(32&s)&&!(64&s||!(16&s))),e?(ae(t,34|s),4&s&&Object.freeze(t),t):Pi(t,Xr,4&s?Jr:n,!0,!0))}return t.W===es?t=2&(s=0|(n=t.u)[j])?t:new t.constructor(Zs(n,s,!0)):t instanceof oe&&!(2&t.M)&&(n=ts(t.da(Xr)),t=new oe(n,t.I,t.S,t.X)),t}}function Zs(t,e,n){const s=n||2&e?Jr:v2,r=!!(32&e);return t=(function(i,o,l){const a=We(i);var d=a.length;const u=256&o?a[d-1]:void 0;for(d+=u?-1:0,o=512&o?1:0;o<d;o++)a[o]=l(a[o]);if(u){o=a[o]={};for(const h in u)o[h]=l(u[h])}return(i=Ti(i))&&(a[ws]=We(i)),a})(t,e,(i=>Xr(i,r,s))),Vs(t,32|(n?2:0)),t}function Ri(t){const e=t.u,n=0|e[j];return 2&n?new t.constructor(Zs(e,n,!1)):t}function dn(t,e,n){if(n===-1)return null;const s=n+(512&e?0:-1),r=t.length-1;return s>=r&&256&e?t[r][n]:s<=r?t[s]:void 0}function W2(t,e,n){const s=t.u;let r=0|s[j];return Ei(r),jt(s,r,e,n),t}function jt(t,e,n,s){const r=512&e?0:-1,i=n+r;var o=t.length-1;return i>=o&&256&e?(t[o][n]=s,e):i<=o?(t[i]=s,e):(s!==void 0&&(n>=(o=e>>14&1023||536870912)?s!=null&&(t[o+r]={[n]:s},ae(t,e|=256)):t[i]=s),e)}function V2(t,e,n){return t=dn(t,e,n),Array.isArray(t)?t:Ai}function K2(t,e){return t===0&&(t=Q1(t,e)),1|t}function z2(t){return!!(2&t)&&!!(4&t)||!!(1024&t)}function Y1(t){t=We(t);for(let e=0;e<t.length;e++){const n=t[e]=We(t[e]);Array.isArray(n[1])&&(n[1]=ts(n[1]))}return t}function hn(t,e,n,s){Ei(e);let r=V2(t,e,n);const i=r!==Ai;if(64&e||!(8192&e)||!i){const o=i?0|r[j]:0;let l=o;(!i||2&l||z2(l)||4&l&&!(32&l))&&(r=We(r),l=Q1(l,e),e=jt(t,e,n,r)),l=-13&K2(l,e),l=Z2(s?-17&l:16|l,e,!0),l!==o&&ae(r,l)}return r}function J2(t){if(Ws)return t[An]??(t[An]=new Map);if(An in t)return t[An];const e=new Map;return Object.defineProperty(t,An,{value:e}),e}function q2(t,e,n,s){const r=J2(t),i=G2(r,t,e,n);return i!==s&&(i&&(e=jt(t,e,i)),r.set(n,s)),e}function G2(t,e,n,s){let r=t.get(s);if(r!=null)return r;r=0;for(let i=0;i<s.length;i++){const o=s[i];dn(e,n,o)!=null&&(r!==0&&(n=jt(e,n,r)),r=o)}return t.set(s,r),r}function Di(t,e,n){let s=0|t[j];const r=dn(t,s,n);let i;if(r!=null&&r.W===es)return(e=Ri(r))!==r&&jt(t,s,n,e),e.u;if(Array.isArray(r)){const o=0|r[j];i=2&o?Pe(Zs(r,o,!1),e,!0):64&o?r:Pe(i,e,!0)}else i=Pe(void 0,e,!0);return i!==r&&jt(t,s,n,i),i}function X2(t,e,n){let s=0|(t=t.u)[j];const r=dn(t,s,n);return(e=z1(r,e,!1,s))!==r&&e!=null&&jt(t,s,n,e),e}function Y2(t,e,n){if((e=X2(t,e,n))==null)return e;let s=0|(t=t.u)[j];if(!(2&s)){const r=Ri(e);r!==e&&jt(t,s,n,e=r)}return e}function Z1(t,e,n,s){return s==null&&(s=void 0),W2(t,n,s)}function Q1(t,e){return-1025&(t=32|(2&e?2|t:-3&t))}function Z2(t,e,n){return 32&e&&n||(t&=-33),t}function Ni(){return Error("Failed to read varint, encoding is invalid.")}function ta(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function ea(t){if(typeof t=="string")return{buffer:D1(t),O:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),O:!1};if(t.constructor===Uint8Array)return{buffer:t,O:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),O:!1};if(t.constructor===Qn)return{buffer:xi(t)||new Uint8Array(0),O:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function ji(t,e){let n,s=0,r=0,i=0;const o=t.h;let l=t.g;do n=o[l++],s|=(127&n)<<i,i+=7;while(i<32&&128&n);for(i>32&&(r|=(127&n)>>4),i=3;i<32&&128&n;i+=7)n=o[l++],r|=(127&n)<<i;if(Qs(t,l),n<128)return e(s>>>0,r>>>0);throw Ni()}function na(t){let e=0,n=t.g;const s=n+10,r=t.h;for(;n<s;){const i=r[n++];if(e|=i,(128&i)==0)return Qs(t,n),!!(127&e)}throw Ni()}function De(t){const e=t.h;let n=t.g,s=e[n++],r=127&s;if(128&s&&(s=e[n++],r|=(127&s)<<7,128&s&&(s=e[n++],r|=(127&s)<<14,128&s&&(s=e[n++],r|=(127&s)<<21,128&s&&(s=e[n++],r|=s<<28,128&s&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw Ni();return Qs(t,n),r}function Ke(t){return De(t)>>>0}function Yr(t){var e=t.h;const n=t.g,s=e[n],r=e[n+1],i=e[n+2];return e=e[n+3],Qs(t,t.g+4),(s<<0|r<<8|i<<16|e<<24)>>>0}function Zr(t){var e=Yr(t);t=2*(e>>31)+1;const n=e>>>23&255;return e&=8388607,n==255?e?NaN:t*(1/0):n==0?1401298464324817e-60*t*e:t*Math.pow(2,n-150)*(e+8388608)}function Q2(t){return De(t)}function Qs(t,e){if(t.g=e,e>t.l)throw ta(t.l,e)}function sa(t,e){if(e<0)throw Error(`Tried to read a negative byte length: ${e}`);const n=t.g,s=n+e;if(s>t.l)throw ta(e,t.l-n);return t.g=s,n}function tf(t,e){if(e==0)return zr();var n=sa(t,e);return t.aa&&t.m?n=t.h.subarray(n,n+e):(t=t.h,n=n===(e=n+e)?new Uint8Array(0):I2?t.slice(n,e):new Uint8Array(t.subarray(n,e))),n.length==0?zr():new Qn(n,Hs)}oe.prototype.toJSON=void 0;function ns(t,e,n){const s=t.g.l,r=Ke(t.g),i=t.g.g+r;let o=i-s;if(o<=0&&(t.g.l=i,n(e,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${r} bytes, instead read ${r-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=i,t.g.l=s,e}function $i(t){var e=Ke(t.g),n=sa(t=t.g,e);if(t=t.h,u2){var s,r=t;(s=xr)||(s=xr=new TextDecoder("utf-8",{fatal:!0})),e=n+e,r=n===0&&e===r.length?r:r.subarray(n,e);try{var i=s.decode(r)}catch(l){if(cs===void 0){try{s.decode(new Uint8Array([128]))}catch{}try{s.decode(new Uint8Array([97])),cs=!0}catch{cs=!1}}throw!cs&&(xr=void 0),l}}else{e=(i=n)+e,n=[];let l,a=null;for(;i<e;){var o=t[i++];o<128?n.push(o):o<224?i>=e?Be():(l=t[i++],o<194||(192&l)!=128?(i--,Be()):n.push((31&o)<<6|63&l)):o<240?i>=e-1?Be():(l=t[i++],(192&l)!=128||o===224&&l<160||o===237&&l>=160||(192&(s=t[i++]))!=128?(i--,Be()):n.push((15&o)<<12|(63&l)<<6|63&s)):o<=244?i>=e-2?Be():(l=t[i++],(192&l)!=128||l-144+(o<<28)>>30!=0||(192&(s=t[i++]))!=128||(192&(r=t[i++]))!=128?(i--,Be()):(o=(7&o)<<18|(63&l)<<12|(63&s)<<6|63&r,o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o)))):Be(),n.length>=8192&&(a=Mo(a,n),n.length=0)}i=Mo(a,n)}return i}function ra(t){const e=Ke(t.g);return tf(t.g,e)}function tr(t,e,n){var s=Ke(t.g);for(s=t.g.g+s;t.g.g<s;)n.push(e(t.g))}var le=class{constructor(t,e){this.u=X1(t,e)}toJSON(){try{var t=G1(this)}finally{J1=void 0}return t}l(){var t=mf;return t.g?t.l(this,t.g,t.h):t.l(this,t.h,t.defaultValue)}clone(){const t=this.u;return new this.constructor(Zs(t,0|t[j],!1))}O(){return!!(2&(0|this.u[j]))}};function tl(t){return t?/^\d+$/.test(t)?(Gs(t),new Qr(G,rt)):null:el||(el=new Qr(0,0))}le.prototype.W=es,le.prototype.toString=function(){return this.u.toString()};var Qr=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let el;function nl(t){return t?/^-?\d+$/.test(t)?(Gs(t),new ti(G,rt)):null:sl||(sl=new ti(0,0))}var ti=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let sl;function nn(t,e,n){for(;n>0||e>127;)t.g.push(127&e|128),e=(e>>>7|n<<25)>>>0,n>>>=7;t.g.push(e)}function pn(t,e){for(;e>127;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function er(t,e){if(e>=0)pn(t,e);else{for(let n=0;n<9;n++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function Xn(t,e){t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function cn(t,e){e.length!==0&&(t.l.push(e),t.h+=e.length)}function Bt(t,e,n){pn(t.g,8*e+n)}function Fi(t,e){return Bt(t,e,2),e=t.g.end(),cn(t,e),e.push(t.h),e}function Bi(t,e){var n=e.pop();for(n=t.h+t.g.length()-n;n>127;)e.push(127&n|128),n>>>=7,t.h++;e.push(n),t.h++}function nr(t,e,n){Bt(t,e,2),pn(t.g,n.length),cn(t,t.g.end()),cn(t,n)}function Es(t,e,n,s){n!=null&&(e=Fi(t,e),s(n,t),Bi(t,e))}function Jt(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Li=Jt(),ia=Jt(),Ui=Jt(),Hi=Jt(),oa=Jt(),la=Jt(),Wi=Jt(),aa=Jt(),ca=Jt(),gn=class{constructor(t,e,n){this.g=t,this.h=e,t=Li,this.l=!!t&&n===t||!1}};function sr(t,e){return new gn(t,e,Li)}function ua(t,e,n,s,r){Es(t,n,fa(e,s),r)}const ef=sr((function(t,e,n,s,r){return t.h===2&&(ns(t,Di(e,s,n),r),!0)}),ua),nf=sr((function(t,e,n,s,r){return t.h===2&&(ns(t,Di(e,s,n),r),!0)}),ua);var rr=Symbol(),rl=Symbol();let ei;function ir(t,e,n,s){var r=s[t];if(r)return r;(r={}).Ma=s,r.T=(function(h){switch(typeof h){case"boolean":return qr||(qr=[0,void 0,!0]);case"number":return h>0?void 0:h===0?Zo||(Zo=[0,void 0]):[-h,void 0];case"string":return[0,h];case"object":return h}})(s[0]);var i=s[1];let o=1;i&&i.constructor===Object&&(r.ga=i,typeof(i=s[++o])=="function"&&(r.la=!0,ei??(ei=s[o+1]),i=s[o+=2]));const l={};for(;i&&Array.isArray(i)&&i.length&&typeof i[0]=="number"&&i[0]>0;){for(var a=0;a<i.length;a++)l[i[a]]=i;i=s[++o]}for(a=1;i!==void 0;){let h;typeof i=="number"&&(a+=i,i=s[++o]);var d=void 0;if(i instanceof gn?h=i:(h=ef,o--),h==null?void 0:h.l){i=s[++o],d=s;var u=o;typeof i=="function"&&(i=i(),d[u]=i),d=i}for(u=a+1,typeof(i=s[++o])=="number"&&i<0&&(u-=i,i=s[++o]);a<u;a++){const v=l[a];d?n(r,a,h,d,v):e(r,a,h,v)}}return s[t]=r}function sf(t){return Array.isArray(t)?t[0]instanceof gn?t:[nf,t]:[t,void 0]}function fa(t,e){return t instanceof le?t.u:Array.isArray(t)?Pe(t,e,!1):void 0}function or(t,e,n){t[e]=n.h}function lr(t,e,n,s){let r,i;const o=n.h;t[e]=(l,a,d)=>o(l,a,d,i||(i=ir(rr,or,lr,s).T),r||(r=da(s)))}function da(t){let e=t[rl];if(!e){const n=ir(rr,or,lr,t);e=(s,r)=>ha(s,r,n),t[rl]=e}return e}function ha(t,e,n){(function(s,r,i){const o=512&r?0:-1,l=s.length,a=l+((r=64&r?256&r:!!l&&zs(s[l-1]))?-1:0);for(let d=0;d<a;d++)i(d-o,s[d]);if(r){s=s[l-1];for(const d in s)!isNaN(d)&&i(+d,s[d])}})(t,0|t[j]|(n.T[1]?512:0),((s,r)=>{if(r!=null){var i=(function(o,l){var a=o[l];if(a)return a;if((a=o.ga)&&(a=a[l])){var d=(a=sf(a))[0].h;if(a=a[1]){const u=da(a),h=ir(rr,or,lr,a).T;a=o.la?ei(h,u):(v,w,E)=>d(v,w,E,h,u)}else a=d;return o[l]=a}})(n,s);i&&i(e,r,s)}})),(t=Ti(t))&&(function(s,r){cn(s,s.g.end());for(let i=0;i<r.length;i++)cn(s,xi(r[i])||new Uint8Array(0))})(e,t)}function _n(t,e){if(Array.isArray(e)){var n=0|e[j];if(4&n)return e;for(var s=0,r=0;s<e.length;s++){const i=t(e[s]);i!=null&&(e[r++]=i)}return r<s&&(e.length=r),ae(e,-6145&(5|n)),2&n&&Object.freeze(e),e}}function At(t,e,n){return new gn(t,e,n)}function mn(t,e,n){return new gn(t,e,n)}function Et(t,e,n){jt(t,0|t[j],e,n)}var rf=sr((function(t,e,n,s,r){return t.h===2&&(t=ns(t,Pe([void 0,void 0],s,!0),r),Ei(s=0|e[j]),(r=dn(e,s,n))instanceof oe?(2&r.M)!=0?((r=r.da()).push(t),jt(e,s,n,r)):r.Ja(t):Array.isArray(r)?(2&(0|r[j])&&jt(e,s,n,r=Y1(r)),r.push(t)):jt(e,s,n,[t]),!0)}),(function(t,e,n,s,r){if(e instanceof oe)e.forEach(((i,o)=>{Es(t,n,Pe([o,i],s,!1),r)}));else if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];Array.isArray(o)&&Es(t,n,Pe(o,s,!1),r)}}));function pa(t,e,n){if(e=(function(s){if(s==null)return s;const r=typeof s;if(r==="bigint")return String(Ss(64,s));if(As(s)){if(r==="string")return P2(s);if(r==="number")return V1(s)}})(e),e!=null&&(typeof e=="string"&&nl(e),e!=null))switch(Bt(t,n,0),typeof e){case"number":t=t.g,Ve(e),nn(t,G,rt);break;case"bigint":n=BigInt.asUintN(64,e),n=new ti(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),nn(t.g,n.h,n.g);break;default:n=nl(e),nn(t.g,n.h,n.g)}}function ga(t,e,n){(e=Ys(e))!=null&&e!=null&&(Bt(t,n,0),er(t.g,e))}function _a(t,e,n){(e=O2(e))!=null&&(Bt(t,n,0),t.g.g.push(e?1:0))}function ma(t,e,n){(e=K1(e))!=null&&nr(t,n,C1(e))}function ya(t,e,n,s,r){Es(t,n,fa(e,s),r)}function va(t,e,n){e==null||typeof e=="string"||e instanceof Qn||(qn(e)?qn(e)&&Si($1):e=void 0),e!=null&&nr(t,n,ea(e).buffer)}function ba(t,e,n){return(t.h===5||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Zr,e):e.push(Zr(t.g)),!0)}var de=At((function(t,e,n){if(t.h!==1)return!1;var s=t.g;t=Yr(s);const r=Yr(s);s=2*(r>>31)+1;const i=r>>>20&2047;return t=4294967296*(1048575&r)+t,Et(e,n,i==2047?t?NaN:s*(1/0):i==0?5e-324*s*t:s*Math.pow(2,i-1075)*(t+4503599627370496)),!0}),(function(t,e,n){(e=Xs(e))!=null&&(Bt(t,n,1),t=t.g,(n=xs||(xs=new DataView(new ArrayBuffer(8)))).setFloat64(0,+e,!0),G=n.getUint32(0,!0),rt=n.getUint32(4,!0),Xn(t,G),Xn(t,rt))}),Jt()),$t=At((function(t,e,n){return t.h===5&&(Et(e,n,Zr(t.g)),!0)}),(function(t,e,n){(e=Xs(e))!=null&&(Bt(t,n,5),t=t.g,Ii(e),Xn(t,G))}),Wi);mn(ba,(function(t,e,n){if((e=_n(Xs,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&(Bt(s,r,5),s=s.g,Ii(i),Xn(s,G))}}),Wi);mn(ba,(function(t,e,n){if((e=_n(Xs,e))!=null&&e.length){Bt(t,n,2),pn(t.g,4*e.length);for(let s=0;s<e.length;s++)n=t.g,Ii(e[s]),Xn(n,G)}}),Wi);var Ts=At((function(t,e,n){return t.h===0&&(Et(e,n,ji(t.g,Ci)),!0)}),pa,la),kr=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=ji(t.g,Ci))===0?void 0:t),!0)}),pa,la),of=At((function(t,e,n){return t.h===0&&(Et(e,n,ji(t.g,ki)),!0)}),(function(t,e,n){if((e=R2(e))!=null&&(typeof e=="string"&&tl(e),e!=null))switch(Bt(t,n,0),typeof e){case"number":t=t.g,Ve(e),nn(t,G,rt);break;case"bigint":n=BigInt.asUintN(64,e),n=new Qr(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),nn(t.g,n.h,n.g);break;default:n=tl(e),nn(t.g,n.h,n.g)}}),Jt()),Mt=At((function(t,e,n){return t.h===0&&(Et(e,n,De(t.g)),!0)}),ga,Hi),Vi=mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,De,e):e.push(De(t.g)),!0)}),(function(t,e,n){if((e=_n(Ys,e))!=null&&e.length){n=Fi(t,n);for(let s=0;s<e.length;s++)er(t.g,e[s]);Bi(t,n)}}),Hi),Ye=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=De(t.g))===0?void 0:t),!0)}),ga,Hi),nt=At((function(t,e,n){return t.h===0&&(Et(e,n,na(t.g)),!0)}),_a,ia),sn=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=na(t.g))===!1?void 0:t),!0)}),_a,ia),kt=mn((function(t,e,n){return t.h===2&&(t=$i(t),hn(e,0|e[j],n,!1).push(t),!0)}),(function(t,e,n){if((e=_n(K1,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&nr(s,r,C1(i))}}),Ui),ke=At((function(t,e,n){return t.h===2&&(Et(e,n,(t=$i(t))===""?void 0:t),!0)}),ma,Ui),et=At((function(t,e,n){return t.h===2&&(Et(e,n,$i(t)),!0)}),ma,Ui),Vt=(function(t,e,n=Li){return new gn(t,e,n)})((function(t,e,n,s,r){return t.h===2&&(s=Pe(void 0,s,!0),hn(e,0|e[j],n,!0).push(s),ns(t,s,r),!0)}),(function(t,e,n,s,r){if(Array.isArray(e))for(let i=0;i<e.length;i++)ya(t,e[i],n,s,r)})),J=sr((function(t,e,n,s,r,i){return t.h===2&&(q2(e,0|e[j],i,n),ns(t,e=Di(e,s,n),r),!0)}),ya),lf=At((function(t,e,n){return t.h===2&&(Et(e,n,ra(t)),!0)}),va,aa);mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Ke,e):e.push(Ke(t.g)),!0)}),(function(t,e,n){if((e=_n(U1,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&(Bt(s,r,0),pn(s.g,i))}}),oa);var af=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=Ke(t.g))===0?void 0:t),!0)}),(function(t,e,n){(e=U1(e))!=null&&e!=null&&(Bt(t,n,0),pn(t.g,e))}),oa),re=At((function(t,e,n){return t.h===0&&(Et(e,n,De(t.g)),!0)}),(function(t,e,n){(e=Ys(e))!=null&&(e=parseInt(e,10),Bt(t,n,0),er(t.g,e))}),ca);class cf{constructor(e,n){this.h=e,this.g=n,this.l=Y2,this.m=Z1,this.defaultValue=void 0}register(){Us(this)}}function uf(t,e){return new cf(t,e)}function ar(t){return function(){const e=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const o=this.g;return this.g=[],o}}}};ha(this.u,e,ir(rr,or,lr,t)),cn(e,e.g.end());const n=new Uint8Array(e.h),s=e.l,r=s.length;let i=0;for(let o=0;o<r;o++){const l=s[o];n.set(l,i),i+=l.length}return e.l=[n],n}}var il=[0,ke,At((function(t,e,n){return t.h===2&&(Et(e,n,(t=ra(t))===zr()?void 0:t),!0)}),(function(t,e,n){if(e!=null){if(e instanceof le){const s=e.Oa;return void(s&&(e=s(e),e!=null&&nr(t,n,ea(e).buffer)))}if(Array.isArray(e))return}va(t,e,n)}),aa)],wa=[0,Mt,re,nt,-1,Vi,re,-1],xa=[0,nt,et,nt,re,-1,mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Q2,e):e.push(De(t.g)),!0)}),(function(t,e,n){if((e=_n(Ys,e))!=null&&e.length){n=Fi(t,n);for(let s=0;s<e.length;s++)er(t.g,e[s]);Bi(t,n)}}),ca),et,-1,[0,nt,-1],re,nt,-1],Sa=[0,et,-2],Aa=[0],Ea=[0,Mt,nt,1,nt,-3],dt={};dt[336783863]=[0,et,nt,-1,Mt,[0,[1,2,3,4,5,6,7,8,9],J,Aa,J,xa,J,Sa,J,Ea,J,wa,J,[0,et,-2],J,[0,et,re],J,[0,re,et,-1],J,[0,re,-1]],[0,et],nt,[0,[1,3],[2,4],J,[0,Vi],-1,J,[0,kt],-1,Vt,[0,et,-1]],et];var ol=[0,kr,-1,sn,-3,kr,Vi,ke,Ye,kr,-1,sn,Ye,sn,-2,ke],Un=[-1,{}],ll=[0,et,1,Un],al=[0,et,kt,Un],ff=class extends le{constructor(t){super(t,500)}o(t){return Z1(this,0,1001,t)}},df=[-500,Vt,[-500,ke,-1,kt,-3,[-2,dt,nt],Vt,il,Ye,-1,ll,al,Vt,[0,ke,sn],ke,ol,Ye,kt,987,kt],4,Vt,[-500,et,-1,[-1,{}],998,et],Vt,[-500,et,kt,-1,[-2,{},nt],997,kt,-1],Ye,Vt,[-500,et,kt,Un,998,kt],kt,Ye,ll,al,Vt,[0,ke,-1,Un],kt,-2,ol,ke,-1,sn,[0,sn,af],978,Un,Vt,il];ff.prototype.g=ar(df);var hf=class extends le{constructor(t){super(t)}};hf.prototype.g=ar([0,$t,-4,Ts]);var Ta=[0,et,Mt,$t,kt,-1],pf=[0,nt,-1],gf=[1,2,3,4,5],Ia=[0,lf,et,[0,Mt,Ts,-1],[0,of,Ts]],ct=[0,Ia,nt,[0,gf,J,Ea,J,xa,J,wa,J,Aa,J,Sa],re],Ki=[0,ct,$t,-1,Mt];dt[502141897]=Ki;var zi=[0,ct,$t,[0,ct],nt],ka=[0,ct,Ki,zi,$t,[0,[0,Ia]]];dt[508968150]=ka,dt[508968149]=zi;dt[513916220]=[0,ct,ka,Mt];var Ca=[0,ct,Ta];dt[478825465]=Ca;var cl=[0,ct,[0,ct],Ca,-1],Oa=[0,ct,$t,Mt],Ji=[0,ct,$t],Ma=[0,ct,Oa,Ji,$t];dt[479097054]=[0,ct,Ma,cl],dt[463370452]=cl,dt[464864288]=Oa;dt[462713202]=Ma,dt[474472470]=Ji;var _f=class extends le{constructor(t){super(t)}},qi=[0,ct,$t,-1,Mt],ni=[0,ct,$t,nt];_f.prototype.g=ar([0,ct,Ji,[0,ct],Ki,zi,qi,ni]);dt[456383383]=[0,ct,Ta];dt[476348187]=[0,ct,pf];var ul=class extends le{constructor(t){super(t)}},Pa=[0,re,-1],mf=uf(458105876,class extends le{constructor(t){super(t)}g(){var t=this.u;const e=0|t[j],n=2&e;return t=(function(s,r,i){var o=ul;const l=2&r;let a=!1;if(i==null){if(l)return Qo();i=[]}else if(i.constructor===oe){if((2&i.M)==0||l)return i;i=i.da()}else Array.isArray(i)?a=!!(2&(0|i[j])):i=[];if(l){if(!i.length)return Qo();a||(a=!0,ts(i))}else a&&(a=!1,i=Y1(i));return a||(64&(0|i[j])?i[j]&=-33:32&r&&Vs(i,32)),jt(s,r,2,o=new oe(i,o,D2,void 0)),o})(t,e,dn(t,e,2)),!n&&ul&&(t.pa=!0),t}});dt[458105876]=[0,Pa,rf,[!0,Ts,[0,et,-1,kt]]];dt[458105758]=[0,ct,et,Pa];dt[443442058]=[0,ct,et,Mt,$t,kt,-1,nt,$t],dt[514774813]=qi;dt[516587230]=[0,ct,qi,ni,$t],dt[518928384]=ni;function qt(...t){return t.map((([e,n])=>({start:e,end:n})))}var yf=qt([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),vf=qt([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),bf=qt([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]);qt([474,475],[475,476],[476,477],[477,474]);var wf=qt([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),xf=qt([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]);qt([469,470],[470,471],[471,472],[472,469]);var Sf=qt([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]);[...yf,...vf,...bf,...wf,...xf,...Sf];qt([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);qt([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);qt([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);var Ge=[0,Mt,-2],Is=[0,de,-3,nt,de,-1],fl=[0,Is],dl=[0,Is,Mt,-1],hl=[0,de,-1,nt],Af=[1,2,3,4,5,6,7,8,9,10,14,15],Ef=class extends le{constructor(t){super(t)}};Ef.prototype.g=ar([0,Vt,[0,Af,J,Is,J,[0,Is,Ge],J,fl,J,[0,fl,Ge],J,hl,J,[0,de,-3,nt,re],J,[0,de,-3,nt],J,[0,et,de,-2,nt,Mt,nt,-1,2,de,Ge],J,dl,J,[0,dl,Ge],de,Ge,et,J,[0,de,-3,nt,Ge,-1],J,[0,Vt,hl]],et,[0,et,Mt,-1,nt]]);const Tf=["title"],If=["src","alt"],kf={key:1,class:"avatar__initials"},Cf=Ft({__name:"Avatar",props:{name:{},src:{default:void 0},size:{default:"md"}},setup(t){const e=t,n=at(()=>{const s=e.name.trim().split(" ");return s.length>=2?`${s[0][0]}${s[s.length-1][0]}`.toUpperCase():e.name.slice(0,2).toUpperCase()});return(s,r)=>(I(),M("div",{class:Ot(["avatar",`avatar--${t.size}`]),title:t.name},[t.src?(I(),M("img",{key:0,class:"avatar__image",src:t.src,alt:t.name},null,8,If)):(I(),M("span",kf,z(n.value),1))],10,Tf))}}),Of=Wt(Cf,[["__scopeId","data-v-a70f049d"]]),Mf=Ft({__name:"Badge",props:{variant:{default:"default"},size:{default:"md"}},setup(t){const e=t,n=at(()=>({fontSize:{sm:"0.75rem",md:"0.875rem",lg:"1rem"}[e.size]}));return(s,r)=>(I(),M("span",{class:Ot(["badge",`badge--${t.variant}`]),style:un(n.value)},[jn(s.$slots,"default",{},void 0)],6))}}),Cr=Wt(Mf,[["__scopeId","data-v-714e24a1"]]),Pf={class:"progress-bar"},Rf={class:"progress-bar__track"},Df={key:0,class:"progress-bar__label"},Nf=Ft({__name:"ProgressBar",props:{percentage:{},variant:{default:"primary"},showLabel:{type:Boolean,default:!0}},setup(t){const e=Math.min(100,Math.max(0,t.percentage));return(n,s)=>(I(),M("div",Pf,[T("div",Rf,[T("div",{class:Ot(["progress-bar__fill",`progress-bar__fill--${t.variant}`]),style:un({width:`${bt(e)}%`})},[t.showLabel?(I(),M("span",Df,z(bt(e))+"%",1)):ft("",!0)],6)])]))}}),jf=Wt(Nf,[["__scopeId","data-v-ce7cc6b9"]]),$f={class:"day-bar__header"},Ff={class:"day-bar__date"},Bf={class:"day-bar__hours"},Lf={class:"day-bar__progress"},Uf={key:0,class:"day-bar__description"},Hf=Ft({__name:"DayBar",props:{day:{},maxHours:{default:8},variant:{default:"default"}},setup(t){const e=t,n=i=>{const o=new Date,l=new Date(o);l.setDate(l.getDate()-1);const a=new Date(i);return a.toDateString()===o.toDateString()?"Hoje":a.toDateString()===l.toDateString()?"Ontem":a.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:void 0})},s=at(()=>Math.min(e.day.hours/e.maxHours*100,100)),r=at(()=>{const i=e.day.hours/e.maxHours;return i>=1?"success":i>=.75?"primary":i>=.5?"warning":"danger"});return(i,o)=>(I(),M("div",{class:Ot(["day-bar",`day-bar--${t.variant}`])},[T("div",$f,[T("span",Ff,z(n(t.day.date)),1),T("span",Bf,z(t.day.hours)+"h",1)]),T("div",Lf,[T("div",{class:Ot(["day-bar__fill",`day-bar__fill--${r.value}`]),style:un({width:`${s.value}%`})},null,6)]),t.variant==="default"&&t.day.description?(I(),M("p",Uf,z(t.day.description),1)):ft("",!0)],2))}}),Wf=Wt(Hf,[["__scopeId","data-v-8cc39d72"]]),Vf={class:"project-breadcrumb"},Kf={key:0,class:"project-breadcrumb__separator"},zf=Ft({__name:"ProjectBreadcrumb",props:{project:{},maxSegments:{default:3},separator:{default:"/"}},setup(t){const e=t,n=at(()=>e.project.segments.length<=e.maxSegments?e.project.segments:[e.project.segments[0],"...",...e.project.segments.slice(-e.maxSegments+1)]);return(s,r)=>(I(),M("div",Vf,[(I(!0),M(pt,null,Nn(n.value,(i,o)=>(I(),M("span",{class:"project-breadcrumb__item",key:`segment-${o}`},[T("span",{class:Ot(["project-breadcrumb__segment",{"project-breadcrumb__segment--ellipsis":i==="..."}])},z(i),3),o<n.value.length-1?(I(),M("span",Kf,z(t.separator),1)):ft("",!0)]))),128))]))}}),Jf=Wt(zf,[["__scopeId","data-v-ae1036f5"]]),qf={class:"task-header__info"},Gf={class:"task-header__name"},Xf={key:0,class:"task-header__email"},Yf=Ft({__name:"TaskHeader",props:{assignee:{},size:{default:"md"}},setup(t){return(e,n)=>(I(),M("div",{class:Ot(["task-header",`task-header--${t.size}`])},[St(bt(Of),{name:t.assignee.name,src:t.assignee.avatar,size:t.size},null,8,["name","src","size"]),T("div",qf,[T("span",Gf,z(t.assignee.name),1),t.assignee.email?(I(),M("span",Xf,z(t.assignee.email),1)):ft("",!0)])],2))}}),Zf=Wt(Yf,[["__scopeId","data-v-743d664f"]]),Qf={class:"time-estimate__item"},t3={class:"time-estimate__value"},e3={key:0,class:"time-estimate__separator"},n3={key:1,class:"time-estimate__separator"},s3={class:"time-estimate__item"},r3={class:"time-estimate__value time-estimate__value--spent"},i3={key:2,class:"time-estimate__separator"},o3={key:3,class:"time-estimate__separator"},l3={class:"time-estimate__item"},a3={class:"time-estimate__value time-estimate__value--remaining"},c3=Ft({__name:"TimeEstimate",props:{estimate:{},variant:{default:"default"}},setup(t){const e=r=>`${r}h`,n=r=>r.estimated===0?0:Math.round(r.spent/r.estimated*100),s=r=>{const i=n(r);return i>=100?"danger":i>=80?"warning":"ok"};return(r,i)=>(I(),M("div",{class:Ot(["time-estimate",[`time-estimate--${t.variant}`,`time-estimate--${s(t.estimate)}`]])},[T("div",Qf,[i[0]||(i[0]=T("span",{class:"time-estimate__label"},"Estimado",-1)),T("span",t3,z(e(t.estimate.estimated)),1)]),t.variant==="default"?(I(),M("div",e3,"→")):(I(),M("div",n3,"/")),T("div",s3,[i[1]||(i[1]=T("span",{class:"time-estimate__label"},"Gasto",-1)),T("span",r3,z(e(t.estimate.spent)),1)]),t.variant==="default"?(I(),M("div",i3,"→")):(I(),M("div",o3,"/")),T("div",l3,[i[2]||(i[2]=T("span",{class:"time-estimate__label"},"Restante",-1)),T("span",a3,z(e(t.estimate.remaining)),1)])],2))}}),u3=Wt(c3,[["__scopeId","data-v-ea3429d0"]]),f3={class:"dashboard-header"},d3={class:"header-content"},h3={class:"header-title"},p3={class:"connection-status"},g3={class:"status-text"},_3=["disabled"],m3={key:0,class:"error-banner"},y3={class:"error-message"},v3=Ft({__name:"DashboardHeader",props:{title:{default:"Dashboard"},status:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},retryText:{default:"Tentar novamente"},retryingText:{default:"Reconectando..."}},emits:["retry"],setup(t){return(e,n)=>(I(),M("header",f3,[T("div",d3,[T("h1",h3,z(t.title),1),T("div",p3,[T("span",{class:Ot(["status-indicator",`status-indicator--${t.status}`])},null,2),T("span",g3,z(t.statusText),1),t.showRetry?(I(),M("button",{key:0,class:"retry-button",disabled:t.isRetrying,onClick:n[0]||(n[0]=s=>e.$emit("retry"))},z(t.isRetrying?t.retryingText:t.retryText),9,_3)):ft("",!0)])]),t.errorMessage?(I(),M("div",m3,[n[1]||(n[1]=T("span",{class:"error-icon"},"⚠️",-1)),T("span",y3,z(t.errorMessage),1)])):ft("",!0)]))}}),b3=Wt(v3,[["__scopeId","data-v-c7d8a980"]]),w3={class:"task-card__header"},x3={class:"task-card__header-left"},S3={class:"task-card__title"},A3={key:1,class:"task-card__progress"},E3={key:3,class:"task-card__days"},T3={class:"task-card__days-list"},I3={key:4,class:"task-card__dates"},k3={key:0,class:"task-card__date"},C3={class:"task-card__date-value"},O3={key:1,class:"task-card__date"},M3={class:"task-card__date-value"},P3={key:5,class:"task-card__tags"},R3={key:6,class:"task-card__warnings"},D3=Ft({__name:"TaskCard",props:{task:{},id:{},number:{},title:{},status:{},assignee:{},project:{},estimates:{},progress:{},tags:{},warnings:{},dueDate:{},startDate:{},variant:{default:"default"}},setup(t){const e=t,n=at(()=>e.task?{...e.task,...e.id&&{id:e.id},...e.number!==void 0&&{number:e.number},...e.title&&{title:e.title},...e.status&&{status:e.status},...e.assignee&&{assignee:e.assignee},...e.project&&{project:e.project},...e.estimates&&{estimates:e.estimates},...e.progress&&{progress:e.progress},...e.tags&&{tags:e.tags},...e.warnings&&{warnings:e.warnings}}:{id:e.id||"",number:e.number||0,title:e.title||"",status:e.status||"pending",assignee:e.assignee,project:e.project||{segments:[]},estimates:e.estimates,progress:e.progress,tags:e.tags||[],warnings:e.warnings||[],dates:{created:new Date,...e.dueDate&&{dueDate:typeof e.dueDate=="string"?new Date(e.dueDate):e.dueDate},...e.startDate&&{started:typeof e.startDate=="string"?new Date(e.startDate):e.startDate}}}),s={pending:"default","in-progress":"primary",paused:"warning",done:"success",blocked:"danger"},r=at(()=>{var a;const d=((a=n.value.progress)==null?void 0:a.percentage)||0;return n.value.status==="blocked"?"danger":n.value.status==="done"||d>=75?"success":d>=50?"primary":d>=25?"warning":"danger"}),i=at(()=>({pending:"Pendente","in-progress":"Em Progresso",paused:"Pausada",done:"Concluída",blocked:"Bloqueada"})[n.value.status]),o=at(()=>n.value.warnings&&n.value.warnings.length>0),l=a=>(typeof a=="string"?new Date(a):a).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"});return(a,d)=>{var u;return I(),M("div",{class:Ot(["task-card",[`task-card--${t.variant}`,`task-card--${n.value.status}`,{"task-card--has-warnings":o.value}]])},[T("div",w3,[T("div",x3,[St(bt(Cr),{variant:s[n.value.status],size:"md"},{default:Pn(()=>[Bn(" #"+z(n.value.number),1)]),_:1},8,["variant"]),St(bt(Cr),{variant:"info",size:"sm"},{default:Pn(()=>[Bn(z(i.value),1)]),_:1})]),n.value.assignee?(I(),Ht(bt(Zf),{key:0,assignee:n.value.assignee,size:"sm"},null,8,["assignee"])):ft("",!0)]),T("h3",S3,z(n.value.title),1),n.value.project?(I(),Ht(bt(Jf),{key:0,class:"task-card__project",project:n.value.project,"max-segments":3},null,8,["project"])):ft("",!0),n.value.progress?(I(),M("div",A3,[St(bt(jf),{percentage:n.value.progress.percentage,variant:r.value,"show-label":""},null,8,["percentage","variant"])])):ft("",!0),n.value.estimates?(I(),Ht(bt(u3),{key:2,class:"task-card__estimates",estimate:n.value.estimates,variant:"compact"},null,8,["estimate"])):ft("",!0),(u=n.value.progress)!=null&&u.dayLogs&&n.value.progress.dayLogs.length>0?(I(),M("div",E3,[d[0]||(d[0]=T("h4",{class:"task-card__days-title"},"Progresso Diário",-1)),T("div",T3,[(I(!0),M(pt,null,Nn(n.value.progress.dayLogs.slice(-3),(h,v)=>(I(),Ht(bt(Wf),{key:v,day:h,"max-hours":8,variant:"compact"},null,8,["day"]))),128))])])):ft("",!0),n.value.dates?(I(),M("div",I3,[n.value.dates.dueDate?(I(),M("div",k3,[d[1]||(d[1]=T("span",{class:"task-card__date-label"},"Prazo:",-1)),T("span",C3,z(l(n.value.dates.dueDate)),1)])):ft("",!0),n.value.dates.started?(I(),M("div",O3,[d[2]||(d[2]=T("span",{class:"task-card__date-label"},"Início:",-1)),T("span",M3,z(l(n.value.dates.started)),1)])):ft("",!0)])):ft("",!0),n.value.tags&&n.value.tags.length>0?(I(),M("div",P3,[(I(!0),M(pt,null,Nn(n.value.tags,h=>(I(),Ht(bt(Cr),{key:h,variant:"default",size:"sm"},{default:Pn(()=>[Bn(z(h),1)]),_:2},1024))),128))])):ft("",!0),o.value?(I(),M("div",R3,[(I(!0),M(pt,null,Nn(n.value.warnings,(h,v)=>(I(),M("div",{class:"task-card__warning",key:v}," ⚠️ "+z(h),1))),128))])):ft("",!0)],2)}}}),N3=Wt(D3,[["__scopeId","data-v-5221bc49"]]),j3={class:"dashboard-layout"},$3={class:"dashboard-main"},F3=Ft({__name:"DashboardLayout",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1}},emits:["retry"],setup(t){return(e,n)=>(I(),M("div",j3,[St(b3,{title:t.title,status:t.connectionStatus,"status-text":t.statusText,"error-message":t.errorMessage,"show-retry":t.showRetry,"is-retrying":t.isRetrying,onRetry:n[0]||(n[0]=s=>e.$emit("retry"))},null,8,["title","status","status-text","error-message","show-retry","is-retrying"]),T("main",$3,[jn(e.$slots,"default",{},void 0)])]))}}),B3=Wt(F3,[["__scopeId","data-v-78602c1a"]]),L3={class:"task-grid-container"},U3={class:"task-grid-header"},H3={class:"task-grid-title"},W3={class:"task-grid-stats"},V3={class:"stat stat--total"},K3={class:"stat__value"},z3={key:0,class:"stat stat--in-progress"},J3={class:"stat__value"},q3={key:1,class:"stat stat--blocked"},G3={class:"stat__value"},X3={key:2,class:"stat stat--paused"},Y3={class:"stat__value"},Z3={key:0,class:"task-grid-loading"},Q3={key:1,class:"task-grid-empty"},t4={class:"empty-message"},e4={key:3,class:"task-grid-footer"},n4=Ft({__name:"TaskGrid",props:{tasks:{},columns:{default:3},gap:{default:"md"},loading:{type:Boolean,default:!1},emptyMessage:{default:"Nenhuma tarefa encontrada"},variant:{default:"default"}},setup(t){const e=t,n=at(()=>["task-grid",{1:"task-grid--cols-1",2:"task-grid--cols-2",3:"task-grid--cols-3",4:"task-grid--cols-4"}[e.columns],`task-grid--gap-${e.gap}`]),s=at(()=>({inProgress:e.tasks.filter(i=>i.status==="in-progress"),blocked:e.tasks.filter(i=>i.status==="blocked"),paused:e.tasks.filter(i=>i.status==="paused"),pending:e.tasks.filter(i=>i.status==="pending"),done:e.tasks.filter(i=>i.status==="done")})),r=at(()=>({total:e.tasks.length,inProgress:s.value.inProgress.length,blocked:s.value.blocked.length,paused:s.value.paused.length,pending:s.value.pending.length,done:s.value.done.length}));return(i,o)=>(I(),M("div",L3,[T("div",U3,[T("h2",H3,[jn(i.$slots,"title",{},()=>[o[0]||(o[0]=Bn(" Tarefas em Andamento ",-1))])]),T("div",W3,[T("div",V3,[T("span",K3,z(r.value.total),1),o[1]||(o[1]=T("span",{class:"stat__label"},"Total",-1))]),r.value.inProgress>0?(I(),M("div",z3,[T("span",J3,z(r.value.inProgress),1),o[2]||(o[2]=T("span",{class:"stat__label"},"Em Progresso",-1))])):ft("",!0),r.value.blocked>0?(I(),M("div",q3,[T("span",G3,z(r.value.blocked),1),o[3]||(o[3]=T("span",{class:"stat__label"},"Bloqueadas",-1))])):ft("",!0),r.value.paused>0?(I(),M("div",X3,[T("span",Y3,z(r.value.paused),1),o[4]||(o[4]=T("span",{class:"stat__label"},"Pausadas",-1))])):ft("",!0)])]),t.loading?(I(),M("div",Z3,[...o[5]||(o[5]=[T("div",{class:"spinner"},null,-1),T("p",null,"Carregando tarefas...",-1)])])):t.tasks.length===0?(I(),M("div",Q3,[o[6]||(o[6]=T("div",{class:"empty-icon"},"📋",-1)),T("p",t4,z(t.emptyMessage),1),jn(i.$slots,"empty-action",{},void 0)])):(I(),M("div",{key:2,class:Ot(n.value)},[(I(!0),M(pt,null,Nn(t.tasks,l=>(I(),Ht(bt(N3),{key:l.id,task:l,variant:t.variant},null,8,["task","variant"]))),128))],2)),i.$slots.footer?(I(),M("div",e4,[jn(i.$slots,"footer",{},void 0)])):ft("",!0)]))}}),s4=Wt(n4,[["__scopeId","data-v-1d8c0daf"]]),r4={key:0,class:"loading-state"},i4={key:1,class:"empty-state"},o4=Ft({__name:"Dashboard",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},tasks:{}},emits:["retry"],setup(t){return(e,n)=>(I(),Ht(B3,{title:t.title,"connection-status":t.connectionStatus,"status-text":t.statusText,"error-message":t.errorMessage,"show-retry":t.showRetry,"is-retrying":t.isRetrying,onRetry:n[0]||(n[0]=s=>e.$emit("retry"))},{default:Pn(()=>[t.isLoading&&(t.tasks??[]).length===0?(I(),M("div",r4,[...n[1]||(n[1]=[T("div",{class:"spinner"},null,-1),T("p",null,"Carregando tarefas...",-1)])])):!t.isLoading&&(t.tasks??[]).length===0?(I(),M("div",i4,[...n[2]||(n[2]=[T("p",{class:"empty-icon"},"📋",-1),T("h2",null,"Nenhuma tarefa encontrada",-1),T("p",null,"Conecte-se ao servidor para visualizar suas tarefas.",-1)])])):(I(),Ht(s4,{key:2,tasks:t.tasks??[]},null,8,["tasks"]))]),_:1},8,["title","connection-status","status-text","error-message","show-retry","is-retrying"]))}}),l4=Wt(o4,[["__scopeId","data-v-2590008a"]]),pl=5e3,a4=1e4,c4=3e4,gl=5e3,u4=100,f4=500,En=new Map,Tn=new Map,Or=new Map,Mr=new Map,d4=c2("taskin-tasks",{state:()=>({tasks:[],loading:!1,connected:!1,error:null,reconnectAttempts:0,lastSync:null}),getters:{taskById(t){return e=>t.tasks.find(n=>n.id===e)},tasksByStatus(t){return e=>t.tasks.filter(n=>n.status===e)},connectionStatus(t){return{connected:t.connected,error:t.error,reconnectAttempts:t.reconnectAttempts}}},actions:{connect(t){const e=this.$id;En.has(e)&&this.disconnect(),Tn.set(e,{autoReconnect:!0,reconnectDelay:pl,maxReconnectAttempts:0,debug:!1,...t}),this._connect()},_connect(){const t=this.$id,e=Tn.get(t);if(e){this._log("Connecting to",e.wsUrl);try{const n=new WebSocket(e.wsUrl);En.set(t,n),n.onopen=()=>{this._log("Connected"),this.connected=!0,this.error=null,this.reconnectAttempts=0,this.send({type:"list"}),this._startHeartbeat()},n.onmessage=s=>{try{const r=JSON.parse(s.data);this.handleMessage(r)}catch(r){this._log("Error parsing message:",r)}},n.onerror=s=>{this._log("WebSocket error:",s),this.handleError(new Error("WebSocket connection error"))},n.onclose=()=>{this._log("Disconnected"),this.connected=!1,this._stopHeartbeat(),e.autoReconnect&&this.reconnect()}}catch(n){this.handleError(n instanceof Error?n:new Error(String(n)))}}},disconnect(){const t=this.$id;this._log("Disconnecting"),this._stopHeartbeat();const e=En.get(t);if(e){const n=Tn.get(t);n&&(n.autoReconnect=!1),e.close(),En.delete(t)}this.connected=!1},send(t){const e=this.$id,n=En.get(e);if(!n||n.readyState!==WebSocket.OPEN){this._log("Cannot send message: not connected");return}const s={...t,timestamp:Date.now()};this._log("Sending:",s),n.send(JSON.stringify(s))},handleMessage(t){var e;switch(this._log("Received:",t),t.type){case"tasks":this.tasks=t.payload||[],this._log("Received tasks:",this.tasks.length),this.tasks.length>0&&this._log("First task sample:",JSON.stringify(this.tasks[0],null,2)),this.lastSync=Date.now(),this.loading=!1;break;case"task:found":if(t.payload){const n=t.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0?this.tasks[s]=n:this.tasks.push(n)}break;case"task:updated":if(t.payload){const n=t.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0&&(this.tasks[s]=n)}break;case"task:created":if(t.payload){const n=t.payload;this.tasks.push(n)}break;case"task:deleted":if(t.payload){const n=t.payload.id;this.tasks=this.tasks.filter(s=>s.id!==n)}break;case"error":this.error=((e=t.payload)==null?void 0:e.message)||"Unknown error",this._log("Server error:",this.error);break;case"pong":Mr.set(this.$id,Date.now());break;default:this._log("Unknown message type:",t.type)}},handleError(t){this._log("Error:",t.message),this.error=t.message,this.connected=!1},reconnect(){const t=Tn.get(this.$id);if(!t)return;const e=t.maxReconnectAttempts||0;if(e>0&&this.reconnectAttempts>=e){this._log("Max reconnection attempts reached"),this.error="Max reconnection attempts reached";return}this.reconnectAttempts++;const n=t.reconnectDelay||pl;this._log(`Reconnecting in ${n}ms (attempt ${this.reconnectAttempts})`),setTimeout(()=>{this._connect()},n)},_startHeartbeat(){const t=this.$id;this._stopHeartbeat(),Mr.set(t,Date.now());const e=setInterval(()=>{const n=Date.now();if(n-(Mr.get(t)||n)>c4){this._log("Heartbeat timeout, reconnecting"),this.disconnect(),this.reconnect();return}this.send({type:"ping"})},a4);Or.set(t,e)},_stopHeartbeat(){const t=this.$id,e=Or.get(t);e&&(clearInterval(e),Or.delete(t))},_log(...t){const e=Tn.get(this.$id);e!=null&&e.debug&&console.log("[PiniaTaskProvider]",...t)},async findTask(t){const e=this.tasks.find(n=>n.id===t);if(e)return e;if(this.connected)return new Promise(n=>{const s=`find-${t}-${Date.now()}`,r=setTimeout(()=>{n(void 0)},gl);this.send({type:"find",payload:{taskId:t},requestId:s}),setTimeout(()=>{clearTimeout(r),n(this.tasks.find(i=>i.id===t))},f4)})},async getAllTasks(){return this.tasks.length>0?this.tasks:this.connected?(this.loading=!0,this.send({type:"list"}),new Promise(t=>{const e=setTimeout(()=>{this.loading=!1,t(this.tasks)},gl),n=setInterval(()=>{(!this.loading||this.tasks.length>0)&&(clearTimeout(e),clearInterval(n),this.loading=!1,t(this.tasks))},u4)})):this.tasks},async updateTask(t){if(!this.connected)throw new Error("Not connected to server");const e=this.tasks.findIndex(n=>n.id===t.id);e>=0&&(this.tasks[e]=t),this.send({type:"update",payload:t})}}}),h4=d4,p4=Ft({__name:"App",setup(t){const e=jr(window.VITE_WS_URL||"ws://localhost:3001"),n=jr(5e3),s=h4(),r=at(()=>s.connectionStatus),i=at(()=>r.value.connected),o=at(()=>r.value.error),l=at(()=>s.tasks.map(w=>{let E=0;switch(w.status){case"done":E=100;break;case"in-progress":E=50;break;case"paused":E=30;break;case"pending":E=0;break;case"blocked":E=20;break}const R={id:w.id,number:parseInt(w.id,10)||0,title:w.title,description:w.content,status:w.status,assignee:w.assignee?{id:w.assignee.id,name:w.assignee.name}:void 0,dates:{created:w.createdAt||new Date().toISOString()},tags:w.type?[w.type]:[],progress:{percentage:E}};return console.log("Mapped task:",R.id,"assignee:",R.assignee),R})),a=at(()=>s.loading);e1(()=>{s.connect({wsUrl:e.value,autoReconnect:!0,reconnectDelay:n.value})}),gi(()=>{s.disconnect()});const d=()=>{s.getAllTasks()},u=at(()=>i.value?"connected":o.value?"error":"connecting"),h=at(()=>i.value?"Conectado":o.value?"Erro de conexão":"Conectando...");return(v,w)=>(I(),Ht(bt(l4),{title:"Taskin Dashboard","connection-status":u.value,"status-text":h.value,"error-message":o.value||"","show-retry":!!o.value,"is-retrying":a.value,"is-loading":a.value,tasks:l.value,onRetry:d},null,8,["connection-status","status-text","error-message","show-retry","is-retrying","is-loading","tasks"]))}}),g4=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},_4=g4(p4,[["__scopeId","data-v-3d922bc5"]]),Ra=t2(_4),m4=s2();Ra.use(m4);Ra.mount("#app");
|
|
21
|
+
*/let E1;const Ls=t=>E1=t,T1=Symbol();function Wr(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Ln;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Ln||(Ln={}));function s2(){const t=Il(!0),e=t.run(()=>jr({}));let n=[],s=[];const r=di({install(i){Ls(r),r._a=i,i.provide(T1,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return this._a?n.push(i):s.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const I1=()=>{};function Co(t,e,n,s=I1){t.push(e);const r=()=>{const i=t.indexOf(e);i>-1&&(t.splice(i,1),s())};return!n&&kl()&&Ja(r),r}function qe(t,...e){t.slice().forEach(n=>{n(...e)})}const r2=t=>t(),Oo=Symbol(),wr=Symbol();function Vr(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,s)=>t.set(s,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const s=e[n],r=t[n];Wr(r)&&Wr(s)&&t.hasOwnProperty(n)&&!it(s)&&!pe(s)?t[n]=Vr(r,s):t[n]=s}return t}const i2=Symbol();function o2(t){return!Wr(t)||!t.hasOwnProperty(i2)}const{assign:xe}=Object;function l2(t){return!!(it(t)&&t.effect)}function a2(t,e,n,s){const{state:r,actions:i,getters:o}=e,l=n.state.value[t];let a;function d(){l||(n.state.value[t]=r?r():{});const u=mc(n.state.value[t]);return xe(u,i,Object.keys(o||{}).reduce((h,v)=>(h[v]=di(at(()=>{Ls(n);const w=n._s.get(t);return o[v].call(w,w)})),h),{}))}return a=k1(t,d,e,n,s,!0),a}function k1(t,e,n={},s,r,i){let o;const l=xe({actions:{}},n),a={deep:!0};let d,u,h=[],v=[],w;const E=s.state.value[t];!i&&!E&&(s.state.value[t]={});let R;function ot(B){let U;d=u=!1,typeof B=="function"?(B(s.state.value[t]),U={type:Ln.patchFunction,storeId:t,events:w}):(Vr(s.state.value[t],B),U={type:Ln.patchObject,payload:B,storeId:t,events:w});const ut=R=Symbol();Kl().then(()=>{R===ut&&(d=!0)}),u=!0,qe(h,U,s.state.value[t])}const $=i?function(){const{state:U}=n,ut=U?U():{};this.$patch(Lt=>{xe(Lt,ut)})}:I1;function q(){o.stop(),h=[],v=[],s._s.delete(t)}const tt=(B,U="")=>{if(Oo in B)return B[wr]=U,B;const ut=function(){Ls(s);const Lt=Array.from(arguments),Gt=[],we=[];function yn(F){Gt.push(F)}function ss(F){we.push(F)}qe(v,{args:Lt,name:ut[wr],store:W,after:yn,onError:ss});let lt;try{lt=B.apply(this&&this.$id===t?this:W,Lt)}catch(F){throw qe(we,F),F}return lt instanceof Promise?lt.then(F=>(qe(Gt,F),F)).catch(F=>(qe(we,F),Promise.reject(F))):(qe(Gt,lt),lt)};return ut[Oo]=!0,ut[wr]=U,ut},O={_p:s,$id:t,$onAction:Co.bind(null,v),$patch:ot,$reset:$,$subscribe(B,U={}){const ut=Co(h,B,U.detached,()=>Lt()),Lt=o.run(()=>us(()=>s.state.value[t],Gt=>{(U.flush==="sync"?u:d)&&B({storeId:t,type:Ln.direct,events:w},Gt)},xe({},a,U)));return ut},$dispose:q},W=Ds(O);s._s.set(t,W);const _t=(s._a&&s._a.runWithContext||r2)(()=>s._e.run(()=>(o=Il()).run(()=>e({action:tt}))));for(const B in _t){const U=_t[B];if(it(U)&&!l2(U)||pe(U))i||(E&&o2(U)&&(it(U)?U.value=E[B]:Vr(U,E[B])),s.state.value[t][B]=U);else if(typeof U=="function"){const ut=tt(U,B);_t[B]=ut,l.actions[B]=U}}return xe(W,_t),xe(H(W),_t),Object.defineProperty(W,"$state",{get:()=>s.state.value[t],set:B=>{ot(U=>{xe(U,B)})}}),s._p.forEach(B=>{xe(W,o.run(()=>B({store:W,app:s._a,pinia:s,options:l})))}),E&&i&&n.hydrate&&n.hydrate(W.$state,E),d=!0,u=!0,W}/*! #__NO_SIDE_EFFECTS__ */function c2(t,e,n){let s,r;const i=typeof e=="function";s=t,r=i?n:e;function o(l,a){const d=kc();return l=l||(d?Rn(T1,null):null),l&&Ls(l),l=E1,l._s.has(s)||(i?k1(s,e,r,l):a2(s,r,l)),l._s.get(s)}return o.$id=s,o}const Wt=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n};var ln=typeof self<"u"?self:{};function Be(){throw Error("Invalid UTF8")}function Mo(t,e){return e=String.fromCharCode.apply(null,e),t==null?e:t+e}let cs,xr;const u2=typeof TextDecoder<"u";let Po;const f2=typeof TextEncoder<"u";function C1(t){if(f2)t=(Po||(Po=new TextEncoder)).encode(t);else{let n=0;const s=new Uint8Array(3*t.length);for(let r=0;r<t.length;r++){var e=t.charCodeAt(r);if(e<128)s[n++]=e;else{if(e<2048)s[n++]=e>>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&r<t.length){const i=t.charCodeAt(++r);if(i>=56320&&i<=57343){e=1024*(e-55296)+i-56320+65536,s[n++]=e>>18|240,s[n++]=e>>12&63|128,s[n++]=e>>6&63|128,s[n++]=63&e|128;continue}r--}e=65533}s[n++]=e>>12|224,s[n++]=e>>6&63|128}s[n++]=63&e|128}}t=n===s.length?s:s.subarray(0,n)}return t}var wi,bs;t:{for(var Ro=["CLOSURE_FLAGS"],Sr=ln,Ar=0;Ar<Ro.length;Ar++)if((Sr=Sr[Ro[Ar]])==null){bs=null;break t}bs=Sr}var Jn,Do=bs&&bs[610401301];wi=Do!=null&&Do;const No=ln.navigator;function Kr(t){return!!wi&&!!Jn&&Jn.brands.some((({brand:e})=>e&&e.indexOf(t)!=-1))}function Ut(t){var e;return(e=ln.navigator)&&(e=e.userAgent)||(e=""),e.indexOf(t)!=-1}function Ie(){return!!wi&&!!Jn&&Jn.brands.length>0}function Er(){return Ie()?Kr("Chromium"):(Ut("Chrome")||Ut("CriOS"))&&!(!Ie()&&Ut("Edge"))||Ut("Silk")}function Us(t){return Us[" "](t),t}Jn=No&&No.userAgentData||null,Us[" "]=function(){};var d2=!Ie()&&(Ut("Trident")||Ut("MSIE"));!Ut("Android")||Er(),Er(),Ut("Safari")&&(Er()||!Ie()&&Ut("Coast")||!Ie()&&Ut("Opera")||!Ie()&&Ut("Edge")||(Ie()?Kr("Microsoft Edge"):Ut("Edg/"))||Ie()&&Kr("Opera"));var O1={},kn=null;function h2(t){const e=t.length;let n=3*e/4;n%3?n=Math.floor(n):"=.".indexOf(t[e-1])!=-1&&(n="=.".indexOf(t[e-2])!=-1?n-2:n-1);const s=new Uint8Array(n);let r=0;return(function(i,o){function l(d){for(;a<i.length;){const u=i.charAt(a++),h=kn[u];if(h!=null)return h;if(!/^[\s\xa0]*$/.test(u))throw Error("Unknown base64 encoding at char: "+u)}return d}M1();let a=0;for(;;){const d=l(-1),u=l(0),h=l(64),v=l(64);if(v===64&&d===-1)break;o(d<<2|u>>4),h!=64&&(o(u<<4&240|h>>2),v!=64&&o(h<<6&192|v))}})(t,(function(i){s[r++]=i})),r!==n?s.subarray(0,r):s}function M1(){if(!kn){kn={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"];for(let n=0;n<5;n++){const s=t.concat(e[n].split(""));O1[n]=s;for(let r=0;r<s.length;r++){const i=s[r];kn[i]===void 0&&(kn[i]=r)}}}}var P1=typeof Uint8Array<"u",R1=!d2&&typeof btoa=="function";function jo(t){if(!R1){var e;e===void 0&&(e=0),M1(),e=O1[e];var n=Array(Math.floor(t.length/3)),s=e[64]||"";let a=0,d=0;for(;a<t.length-2;a+=3){var r=t[a],i=t[a+1],o=t[a+2],l=e[r>>2];r=e[(3&r)<<4|i>>4],i=e[(15&i)<<2|o>>6],o=e[63&o],n[d++]=l+r+i+o}switch(l=0,o=s,t.length-a){case 2:o=e[(15&(l=t[a+1]))<<2]||s;case 1:t=t[a],n[d]=e[t>>2]+e[(3&t)<<4|l>>4]+o+s}return n.join("")}for(e="",n=0,s=t.length-10240;n<s;)e+=String.fromCharCode.apply(null,t.subarray(n,n+=10240));return e+=String.fromCharCode.apply(null,n?t.subarray(n):t),btoa(e)}const $o=/[-_.]/g,p2={"-":"+",_:"/",".":"="};function g2(t){return p2[t]||""}function D1(t){if(!R1)return h2(t);$o.test(t)&&(t=t.replace($o,g2)),t=atob(t);const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}function qn(t){return P1&&t!=null&&t instanceof Uint8Array}var Hs={};function zr(){return Fo||(Fo=new Qn(null,Hs))}function xi(t){N1(Hs);var e=t.g;return(e=e==null||qn(e)?e:typeof e=="string"?D1(e):null)==null?e:t.g=e}var Qn=class{h(){return new Uint8Array(xi(this)||0)}constructor(t,e){if(N1(e),this.g=t,t!=null&&t.length===0)throw Error("ByteString should be constructed with non-empty values")}};let Fo,Bo;function N1(t){if(t!==Hs)throw Error("illegal external caller")}function j1(t,e){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=e}function _2(t){return j1(t=Error(t),"warning"),t}function Si(t){if(t!=null){var e=Bo??(Bo={}),n=e[t]||0;n>=5||(e[t]=n+1,j1(t=Error(),"incident"),(function(s){ln.setTimeout((()=>{throw s}),0)})(t))}}var Ws=typeof Symbol=="function"&&typeof Symbol()=="symbol";function fn(t,e,n=!1){return typeof Symbol=="function"&&typeof Symbol()=="symbol"?n&&Symbol.for&&t?Symbol.for(t):t!=null?Symbol(t):Symbol():e}var m2=fn("jas",void 0,!0),Lo=fn(void 0,"0di"),An=fn(void 0,"1oa"),ws=fn(void 0,Symbol()),y2=fn(void 0,"0actk"),$1=fn(void 0,"8utk");const j=Ws?m2:"Ea",F1={Ea:{value:0,configurable:!0,writable:!0,enumerable:!1}},B1=Object.defineProperties;function Vs(t,e){Ws||j in t||B1(t,F1),t[j]|=e}function ae(t,e){Ws||j in t||B1(t,F1),t[j]=e}function ts(t){return Vs(t,34),t}function v2(t,e){ae(e,-15615&(0|t))}function Jr(t,e){ae(e,-15581&(34|t))}function Ks(){return typeof BigInt=="function"}function We(t){return Array.prototype.slice.call(t)}var Ai,es={};function zs(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&t.constructor===Object}const Uo=[];function Ei(t){if(2&t)throw Error()}ae(Uo,55),Ai=Object.freeze(Uo);class Ho{constructor(e,n,s){this.g=e,this.h=n,this.l=s}next(){const e=this.g.next();return e.done||(e.value=this.h.call(this.l,e.value)),e}[Symbol.iterator](){return this}}function Ti(t){return ws?t[ws]:void 0}function Js(t){return t.Na=!0,t}var b2=Js((t=>typeof t=="number")),Wo=Js((t=>typeof t=="string")),w2=Js((t=>typeof t=="boolean")),qs=typeof ln.BigInt=="function"&&typeof ln.BigInt(0)=="bigint";function Oe(t){var e=t;if(Wo(e)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e))throw Error(String(e))}else if(b2(e)&&!Number.isSafeInteger(e))throw Error(String(e));return qs?BigInt(t):t=w2(t)?t?"1":"0":Wo(t)?t.trim()||"0":String(t)}var x2=Js((t=>qs?t>=A2&&t<=T2:t[0]==="-"?Vo(t,S2):Vo(t,E2)));const S2=Number.MIN_SAFE_INTEGER.toString(),A2=qs?BigInt(Number.MIN_SAFE_INTEGER):void 0,E2=Number.MAX_SAFE_INTEGER.toString(),T2=qs?BigInt(Number.MAX_SAFE_INTEGER):void 0;function Vo(t,e){if(t.length>e.length)return!1;if(t.length<e.length||t===e)return!0;for(let n=0;n<t.length;n++){const s=t[n],r=e[n];if(s>r)return!1;if(s<r)return!0}}const I2=typeof Uint8Array.prototype.slice=="function";let xs,G=0,rt=0;function Ko(t){const e=t>>>0;G=e,rt=(t-e)/4294967296>>>0}function Ve(t){if(t<0){Ko(-t);const[e,n]=Oi(G,rt);G=e>>>0,rt=n>>>0}else Ko(t)}function Ii(t){const e=xs||(xs=new DataView(new ArrayBuffer(8)));e.setFloat32(0,+t,!0),rt=0,G=e.getUint32(0,!0)}function ki(t,e){const n=4294967296*e+(t>>>0);return Number.isSafeInteger(n)?n:Gn(t,e)}function Ci(t,e){const n=2147483648&e;return n&&(e=~e>>>0,(t=1+~t>>>0)==0&&(e=e+1>>>0)),typeof(t=ki(t,e))=="number"?n?-t:t:n?"-"+t:t}function Gn(t,e){if(t>>>=0,(e>>>=0)<=2097151)var n=""+(4294967296*e+t);else Ks()?n=""+(BigInt(e)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(n=16777215&(t>>>24|e<<8))+6710656*(e=e>>16&65535),n+=8147497*e,e*=2,t>=1e7&&(n+=t/1e7>>>0,t%=1e7),n>=1e7&&(e+=n/1e7>>>0,n%=1e7),n=e+zo(n)+zo(t));return n}function zo(t){return t=String(t),"0000000".slice(t.length)+t}function L1(){var t=G,e=rt;if(2147483648&e)if(Ks())t=""+(BigInt(0|e)<<BigInt(32)|BigInt(t>>>0));else{const[n,s]=Oi(t,e);t="-"+Gn(n,s)}else t=Gn(t,e);return t}function Gs(t){if(t.length<16)Ve(Number(t));else if(Ks())t=BigInt(t),G=Number(t&BigInt(4294967295))>>>0,rt=Number(t>>BigInt(32)&BigInt(4294967295));else{const e=+(t[0]==="-");rt=G=0;const n=t.length;for(let s=e,r=(n-e)%6+e;r<=n;s=r,r+=6){const i=Number(t.slice(s,r));rt*=1e6,G=1e6*G+i,G>=4294967296&&(rt+=Math.trunc(G/4294967296),rt>>>=0,G>>>=0)}if(e){const[s,r]=Oi(G,rt);G=s,rt=r}}}function Oi(t,e){return e=~e,t?t=1+~t:e+=1,[t,e]}const Ss=typeof BigInt=="function"?BigInt.asIntN:void 0,k2=typeof BigInt=="function"?BigInt.asUintN:void 0,Me=Number.isSafeInteger,Mi=Number.isFinite,an=Math.trunc,C2=Oe(0);function Xs(t){return t==null||typeof t=="number"?t:t==="NaN"||t==="Infinity"||t==="-Infinity"?Number(t):void 0}function O2(t){return t==null||typeof t=="boolean"?t:typeof t=="number"?!!t:void 0}const M2=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function As(t){switch(typeof t){case"bigint":return!0;case"number":return Mi(t);case"string":return M2.test(t);default:return!1}}function Ys(t){if(t==null)return t;if(typeof t=="string"&&t)t=+t;else if(typeof t!="number")return;return Mi(t)?0|t:void 0}function U1(t){if(t==null)return t;if(typeof t=="string"&&t)t=+t;else if(typeof t!="number")return;return Mi(t)?t>>>0:void 0}function Jo(t){if(t[0]==="-")return!1;const e=t.length;return e<20||e===20&&Number(t.substring(0,6))<184467}function H1(t){const e=t.length;return t[0]==="-"?e<20||e===20&&Number(t.substring(0,7))>-922337:e<19||e===19&&Number(t.substring(0,6))<922337}function W1(t){return H1(t)?t:(Gs(t),L1())}function V1(t){return t=an(t),Me(t)||(Ve(t),t=Ci(G,rt)),t}function P2(t){var e=an(Number(t));return Me(e)?String(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),W1(t))}function qo(t){var e=an(Number(t));return Me(e)?Oe(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),Ks()?Oe(Ss(64,BigInt(t))):Oe(W1(t)))}function Go(t){if(Me(t))t=Oe(V1(t));else{if(t=an(t),Me(t))t=String(t);else{const e=String(t);H1(e)?t=e:(Ve(t),t=L1())}t=Oe(t)}return t}function R2(t){if(t==null)return t;var e=typeof t;if(e==="bigint")return String(k2(64,t));if(As(t)){if(e==="string")return e=an(Number(t)),Me(e)&&e>=0?t=String(e):((e=t.indexOf("."))!==-1&&(t=t.substring(0,e)),Jo(t)||(Gs(t),t=Gn(G,rt))),t;if(e==="number")return(t=an(t))>=0&&Me(t)?t:(function(n){if(n<0){Ve(n);var s=Gn(G,rt);return n=Number(s),Me(n)?n:s}return Jo(s=String(n))?s:(Ve(n),ki(G,rt))})(t)}}function K1(t){return t==null||typeof t=="string"?t:void 0}function z1(t,e,n,s){if(t!=null&&typeof t=="object"&&t.W===es)return t;if(!Array.isArray(t))return n?2&s?((t=e[Lo])||(ts((t=new e).u),t=e[Lo]=t),e=t):e=new e:e=void 0,e;let r=n=0|t[j];return r===0&&(r|=32&s),r|=2&s,r!==n&&ae(t,r),new e(t)}function D2(t,e,n){if(e)t:{if(!As(e=t))throw _2("int64");switch(typeof e){case"string":e=qo(e);break t;case"bigint":e=Oe(Ss(64,e));break t;default:e=Go(e)}}else t=typeof(e=t),e=e==null?e:t==="bigint"?Oe(Ss(64,e)):As(e)?t==="string"?qo(e):Go(e):void 0;return(t=e)==null?n?C2:void 0:t}function N2(t){return t}const j2={};let $2=(function(){try{return Us(new class extends Map{constructor(){super()}}),!1}catch{return!0}})();class Tr{constructor(){this.g=new Map}get(e){return this.g.get(e)}set(e,n){return this.g.set(e,n),this.size=this.g.size,this}delete(e){return e=this.g.delete(e),this.size=this.g.size,e}clear(){this.g.clear(),this.size=this.g.size}has(e){return this.g.has(e)}entries(){return this.g.entries()}keys(){return this.g.keys()}values(){return this.g.values()}forEach(e,n){return this.g.forEach(e,n)}[Symbol.iterator](){return this.entries()}}const F2=$2?(Object.setPrototypeOf(Tr.prototype,Map.prototype),Object.defineProperties(Tr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),Tr):class extends Map{constructor(){super()}};function Xo(t){return t}function Ir(t){if(2&t.M)throw Error("Cannot mutate an immutable Map")}var oe=class extends F2{constructor(t,e,n=Xo,s=Xo){super();let r=0|t[j];r|=64,ae(t,r),this.M=r,this.I=e,this.S=n,this.X=this.I?B2:s;for(let i=0;i<t.length;i++){const o=t[i],l=n(o[0],!1,!0);let a=o[1];e?a===void 0&&(a=null):a=s(o[1],!1,!0,void 0,void 0,r),super.set(l,a)}}La(){var t=H2;if(this.size!==0)return Array.from(super.entries(),(e=>(e[0]=t(e[0]),e[1]=t(e[1]),e)))}da(t=L2){const e=[],n=super.entries();for(var s;!(s=n.next()).done;)(s=s.value)[0]=t(s[0]),s[1]=t(s[1]),e.push(s);return e}clear(){Ir(this),super.clear()}delete(t){return Ir(this),super.delete(this.S(t,!0,!1))}entries(){if(this.I){var t=super.keys();t=new Ho(t,U2,this)}else t=super.entries();return t}values(){if(this.I){var t=super.keys();t=new Ho(t,oe.prototype.get,this)}else t=super.values();return t}forEach(t,e){this.I?super.forEach(((n,s,r)=>{t.call(e,r.get(s),s,r)})):super.forEach(t,e)}set(t,e){return Ir(this),(t=this.S(t,!0,!1))==null?this:e==null?(super.delete(t),this):super.set(t,this.X(e,!0,!0,this.I,!1,this.M))}Ja(t){const e=this.S(t[0],!1,!0);t=t[1],t=this.I?t===void 0?null:t:this.X(t,!1,!0,void 0,!1,this.M),super.set(e,t)}has(t){return super.has(this.S(t,!1,!1))}get(t){t=this.S(t,!1,!1);const e=super.get(t);if(e!==void 0){var n=this.I;return n?((n=this.X(e,!1,!0,n,this.pa,this.M))!==e&&super.set(t,n),n):e}}[Symbol.iterator](){return this.entries()}};function B2(t,e,n,s,r,i){return t=z1(t,s,n,i),r&&(t=Ri(t)),t}function L2(t){return t}function U2(t){return[t,this.get(t)]}let Yo,J1,qr,Zo;function Qo(){return Yo||(Yo=new oe(ts([]),void 0,void 0,void 0,j2))}function Gr(t,e,n,s,r){if(t!=null){if(Array.isArray(t)){const i=0|t[j];return t.length===0&&1&i?void 0:r&&2&i?t:Pi(t,e,n,s!==void 0,r)}return e(t,s)}}function Pi(t,e,n,s,r){const i=s||n?0|t[j]:0,o=s?!!(32&i):void 0;let l=0;const a=(s=We(t)).length;for(let E=0;E<a;E++){var d=s[E];if(E===a-1&&zs(d)){var u=e,h=n,v=o,w=r;let R;for(let ot in d){const $=Gr(d[ot],u,h,v,w);$!=null&&((R??(R={}))[ot]=$)}d=R}else d=Gr(s[E],e,n,o,r);s[E]=d,d!=null&&(l=E+1)}return l<a&&(s.length=l),n&&((t=Ti(t))&&(s[ws]=We(t)),n(i,s)),s}function H2(t){return Gr(t,q1,void 0,void 0,!1)}function q1(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return x2(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(qn(t))return qn(t)&&Si($1),jo(t);if(t.W===es)return G1(t);if(t instanceof Qn){const e=t.g;return e==null?"":typeof e=="string"?e:t.g=jo(e)}return t instanceof oe?t.La():void 0}return t}function G1(t){var e=t.u;t=Pi(e,q1,void 0,void 0,!1);var n=0|e[j];if((e=t.length)&&!(512&n)){var s=t[e-1],r=!1;zs(s)?(e--,r=!0):s=void 0;var i=e-(n=512&n?0:-1),o=(J1??N2)(i,n,t,s);if(s&&(t[e]=void 0),i<o&&s){for(var l in i=!0,s){const a=+l;a<=o?(t[r=a+n]=s[l],e=Math.max(r+1,e),r=!1,delete s[l]):i=!1}i&&(s=void 0)}for(i=e-1;e>0;i=e-1)if((l=t[i])==null)e--,r=!0;else{if(!((i-=n)>=o))break;(s??(s={}))[i]=l,e--,r=!0}r&&(t.length=e),s&&t.push(s)}return t}function Pe(t,e,n){return t=X1(t,e[0],e[1],n?1:2),e!==qr&&n&&Vs(t,8192),t}function X1(t,e,n,s){if(t==null){var r=96;n?(t=[n],r|=512):t=[],e&&(r=-16760833&r|(1023&e)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(8192&(r=0|t[j])||!(64&r)||2&r||Si(y2),1024&r)throw Error("farr");if(64&r)return t;if(s===1||s===2||(r|=64),n&&(r|=512,n!==t[0]))throw Error("mid");t:{var i=(n=t).length;if(i){var o=i-1;if(zs(s=n[o])){if((o-=e=512&(r|=256)?0:-1)>=1024)throw Error("pvtlmt");for(var l in s)(i=+l)<o&&(n[i+e]=s[l],delete s[l]);r=-16760833&r|(1023&o)<<14;break t}}if(e){if((l=Math.max(e,i-(512&r?0:-1)))>1024)throw Error("spvt");r=-16760833&r|(1023&l)<<14}}}return ae(t,r),t}function Xr(t,e,n=Jr){if(t!=null){if(P1&&t instanceof Uint8Array)return e?t:new Uint8Array(t);if(Array.isArray(t)){var s=0|t[j];return 2&s?t:(e&&(e=s===0||!!(32&s)&&!(64&s||!(16&s))),e?(ae(t,34|s),4&s&&Object.freeze(t),t):Pi(t,Xr,4&s?Jr:n,!0,!0))}return t.W===es?t=2&(s=0|(n=t.u)[j])?t:new t.constructor(Zs(n,s,!0)):t instanceof oe&&!(2&t.M)&&(n=ts(t.da(Xr)),t=new oe(n,t.I,t.S,t.X)),t}}function Zs(t,e,n){const s=n||2&e?Jr:v2,r=!!(32&e);return t=(function(i,o,l){const a=We(i);var d=a.length;const u=256&o?a[d-1]:void 0;for(d+=u?-1:0,o=512&o?1:0;o<d;o++)a[o]=l(a[o]);if(u){o=a[o]={};for(const h in u)o[h]=l(u[h])}return(i=Ti(i))&&(a[ws]=We(i)),a})(t,e,(i=>Xr(i,r,s))),Vs(t,32|(n?2:0)),t}function Ri(t){const e=t.u,n=0|e[j];return 2&n?new t.constructor(Zs(e,n,!1)):t}function dn(t,e,n){if(n===-1)return null;const s=n+(512&e?0:-1),r=t.length-1;return s>=r&&256&e?t[r][n]:s<=r?t[s]:void 0}function W2(t,e,n){const s=t.u;let r=0|s[j];return Ei(r),jt(s,r,e,n),t}function jt(t,e,n,s){const r=512&e?0:-1,i=n+r;var o=t.length-1;return i>=o&&256&e?(t[o][n]=s,e):i<=o?(t[i]=s,e):(s!==void 0&&(n>=(o=e>>14&1023||536870912)?s!=null&&(t[o+r]={[n]:s},ae(t,e|=256)):t[i]=s),e)}function V2(t,e,n){return t=dn(t,e,n),Array.isArray(t)?t:Ai}function K2(t,e){return t===0&&(t=Q1(t,e)),1|t}function z2(t){return!!(2&t)&&!!(4&t)||!!(1024&t)}function Y1(t){t=We(t);for(let e=0;e<t.length;e++){const n=t[e]=We(t[e]);Array.isArray(n[1])&&(n[1]=ts(n[1]))}return t}function hn(t,e,n,s){Ei(e);let r=V2(t,e,n);const i=r!==Ai;if(64&e||!(8192&e)||!i){const o=i?0|r[j]:0;let l=o;(!i||2&l||z2(l)||4&l&&!(32&l))&&(r=We(r),l=Q1(l,e),e=jt(t,e,n,r)),l=-13&K2(l,e),l=Z2(s?-17&l:16|l,e,!0),l!==o&&ae(r,l)}return r}function J2(t){if(Ws)return t[An]??(t[An]=new Map);if(An in t)return t[An];const e=new Map;return Object.defineProperty(t,An,{value:e}),e}function q2(t,e,n,s){const r=J2(t),i=G2(r,t,e,n);return i!==s&&(i&&(e=jt(t,e,i)),r.set(n,s)),e}function G2(t,e,n,s){let r=t.get(s);if(r!=null)return r;r=0;for(let i=0;i<s.length;i++){const o=s[i];dn(e,n,o)!=null&&(r!==0&&(n=jt(e,n,r)),r=o)}return t.set(s,r),r}function Di(t,e,n){let s=0|t[j];const r=dn(t,s,n);let i;if(r!=null&&r.W===es)return(e=Ri(r))!==r&&jt(t,s,n,e),e.u;if(Array.isArray(r)){const o=0|r[j];i=2&o?Pe(Zs(r,o,!1),e,!0):64&o?r:Pe(i,e,!0)}else i=Pe(void 0,e,!0);return i!==r&&jt(t,s,n,i),i}function X2(t,e,n){let s=0|(t=t.u)[j];const r=dn(t,s,n);return(e=z1(r,e,!1,s))!==r&&e!=null&&jt(t,s,n,e),e}function Y2(t,e,n){if((e=X2(t,e,n))==null)return e;let s=0|(t=t.u)[j];if(!(2&s)){const r=Ri(e);r!==e&&jt(t,s,n,e=r)}return e}function Z1(t,e,n,s){return s==null&&(s=void 0),W2(t,n,s)}function Q1(t,e){return-1025&(t=32|(2&e?2|t:-3&t))}function Z2(t,e,n){return 32&e&&n||(t&=-33),t}function Ni(){return Error("Failed to read varint, encoding is invalid.")}function ta(t,e){return Error(`Tried to read past the end of the data ${e} > ${t}`)}function ea(t){if(typeof t=="string")return{buffer:D1(t),O:!1};if(Array.isArray(t))return{buffer:new Uint8Array(t),O:!1};if(t.constructor===Uint8Array)return{buffer:t,O:!1};if(t.constructor===ArrayBuffer)return{buffer:new Uint8Array(t),O:!1};if(t.constructor===Qn)return{buffer:xi(t)||new Uint8Array(0),O:!0};if(t instanceof Uint8Array)return{buffer:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),O:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers")}function ji(t,e){let n,s=0,r=0,i=0;const o=t.h;let l=t.g;do n=o[l++],s|=(127&n)<<i,i+=7;while(i<32&&128&n);for(i>32&&(r|=(127&n)>>4),i=3;i<32&&128&n;i+=7)n=o[l++],r|=(127&n)<<i;if(Qs(t,l),n<128)return e(s>>>0,r>>>0);throw Ni()}function na(t){let e=0,n=t.g;const s=n+10,r=t.h;for(;n<s;){const i=r[n++];if(e|=i,(128&i)==0)return Qs(t,n),!!(127&e)}throw Ni()}function De(t){const e=t.h;let n=t.g,s=e[n++],r=127&s;if(128&s&&(s=e[n++],r|=(127&s)<<7,128&s&&(s=e[n++],r|=(127&s)<<14,128&s&&(s=e[n++],r|=(127&s)<<21,128&s&&(s=e[n++],r|=s<<28,128&s&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++]&&128&e[n++])))))throw Ni();return Qs(t,n),r}function Ke(t){return De(t)>>>0}function Yr(t){var e=t.h;const n=t.g,s=e[n],r=e[n+1],i=e[n+2];return e=e[n+3],Qs(t,t.g+4),(s<<0|r<<8|i<<16|e<<24)>>>0}function Zr(t){var e=Yr(t);t=2*(e>>31)+1;const n=e>>>23&255;return e&=8388607,n==255?e?NaN:t*(1/0):n==0?1401298464324817e-60*t*e:t*Math.pow(2,n-150)*(e+8388608)}function Q2(t){return De(t)}function Qs(t,e){if(t.g=e,e>t.l)throw ta(t.l,e)}function sa(t,e){if(e<0)throw Error(`Tried to read a negative byte length: ${e}`);const n=t.g,s=n+e;if(s>t.l)throw ta(e,t.l-n);return t.g=s,n}function tf(t,e){if(e==0)return zr();var n=sa(t,e);return t.aa&&t.m?n=t.h.subarray(n,n+e):(t=t.h,n=n===(e=n+e)?new Uint8Array(0):I2?t.slice(n,e):new Uint8Array(t.subarray(n,e))),n.length==0?zr():new Qn(n,Hs)}oe.prototype.toJSON=void 0;function ns(t,e,n){const s=t.g.l,r=Ke(t.g),i=t.g.g+r;let o=i-s;if(o<=0&&(t.g.l=i,n(e,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error(`Message parsing ended unexpectedly. Expected to read ${r} bytes, instead read ${r-o} bytes, either the data ended unexpectedly or the message misreported its own length`);return t.g.g=i,t.g.l=s,e}function $i(t){var e=Ke(t.g),n=sa(t=t.g,e);if(t=t.h,u2){var s,r=t;(s=xr)||(s=xr=new TextDecoder("utf-8",{fatal:!0})),e=n+e,r=n===0&&e===r.length?r:r.subarray(n,e);try{var i=s.decode(r)}catch(l){if(cs===void 0){try{s.decode(new Uint8Array([128]))}catch{}try{s.decode(new Uint8Array([97])),cs=!0}catch{cs=!1}}throw!cs&&(xr=void 0),l}}else{e=(i=n)+e,n=[];let l,a=null;for(;i<e;){var o=t[i++];o<128?n.push(o):o<224?i>=e?Be():(l=t[i++],o<194||(192&l)!=128?(i--,Be()):n.push((31&o)<<6|63&l)):o<240?i>=e-1?Be():(l=t[i++],(192&l)!=128||o===224&&l<160||o===237&&l>=160||(192&(s=t[i++]))!=128?(i--,Be()):n.push((15&o)<<12|(63&l)<<6|63&s)):o<=244?i>=e-2?Be():(l=t[i++],(192&l)!=128||l-144+(o<<28)>>30!=0||(192&(s=t[i++]))!=128||(192&(r=t[i++]))!=128?(i--,Be()):(o=(7&o)<<18|(63&l)<<12|(63&s)<<6|63&r,o-=65536,n.push(55296+(o>>10&1023),56320+(1023&o)))):Be(),n.length>=8192&&(a=Mo(a,n),n.length=0)}i=Mo(a,n)}return i}function ra(t){const e=Ke(t.g);return tf(t.g,e)}function tr(t,e,n){var s=Ke(t.g);for(s=t.g.g+s;t.g.g<s;)n.push(e(t.g))}var le=class{constructor(t,e){this.u=X1(t,e)}toJSON(){try{var t=G1(this)}finally{J1=void 0}return t}l(){var t=mf;return t.g?t.l(this,t.g,t.h):t.l(this,t.h,t.defaultValue)}clone(){const t=this.u;return new this.constructor(Zs(t,0|t[j],!1))}O(){return!!(2&(0|this.u[j]))}};function tl(t){return t?/^\d+$/.test(t)?(Gs(t),new Qr(G,rt)):null:el||(el=new Qr(0,0))}le.prototype.W=es,le.prototype.toString=function(){return this.u.toString()};var Qr=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let el;function nl(t){return t?/^-?\d+$/.test(t)?(Gs(t),new ti(G,rt)):null:sl||(sl=new ti(0,0))}var ti=class{constructor(t,e){this.h=t>>>0,this.g=e>>>0}};let sl;function nn(t,e,n){for(;n>0||e>127;)t.g.push(127&e|128),e=(e>>>7|n<<25)>>>0,n>>>=7;t.g.push(e)}function pn(t,e){for(;e>127;)t.g.push(127&e|128),e>>>=7;t.g.push(e)}function er(t,e){if(e>=0)pn(t,e);else{for(let n=0;n<9;n++)t.g.push(127&e|128),e>>=7;t.g.push(1)}}function Xn(t,e){t.g.push(e>>>0&255),t.g.push(e>>>8&255),t.g.push(e>>>16&255),t.g.push(e>>>24&255)}function cn(t,e){e.length!==0&&(t.l.push(e),t.h+=e.length)}function Bt(t,e,n){pn(t.g,8*e+n)}function Fi(t,e){return Bt(t,e,2),e=t.g.end(),cn(t,e),e.push(t.h),e}function Bi(t,e){var n=e.pop();for(n=t.h+t.g.length()-n;n>127;)e.push(127&n|128),n>>>=7,t.h++;e.push(n),t.h++}function nr(t,e,n){Bt(t,e,2),pn(t.g,n.length),cn(t,t.g.end()),cn(t,n)}function Es(t,e,n,s){n!=null&&(e=Fi(t,e),s(n,t),Bi(t,e))}function Jt(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Li=Jt(),ia=Jt(),Ui=Jt(),Hi=Jt(),oa=Jt(),la=Jt(),Wi=Jt(),aa=Jt(),ca=Jt(),gn=class{constructor(t,e,n){this.g=t,this.h=e,t=Li,this.l=!!t&&n===t||!1}};function sr(t,e){return new gn(t,e,Li)}function ua(t,e,n,s,r){Es(t,n,fa(e,s),r)}const ef=sr((function(t,e,n,s,r){return t.h===2&&(ns(t,Di(e,s,n),r),!0)}),ua),nf=sr((function(t,e,n,s,r){return t.h===2&&(ns(t,Di(e,s,n),r),!0)}),ua);var rr=Symbol(),rl=Symbol();let ei;function ir(t,e,n,s){var r=s[t];if(r)return r;(r={}).Ma=s,r.T=(function(h){switch(typeof h){case"boolean":return qr||(qr=[0,void 0,!0]);case"number":return h>0?void 0:h===0?Zo||(Zo=[0,void 0]):[-h,void 0];case"string":return[0,h];case"object":return h}})(s[0]);var i=s[1];let o=1;i&&i.constructor===Object&&(r.ga=i,typeof(i=s[++o])=="function"&&(r.la=!0,ei??(ei=s[o+1]),i=s[o+=2]));const l={};for(;i&&Array.isArray(i)&&i.length&&typeof i[0]=="number"&&i[0]>0;){for(var a=0;a<i.length;a++)l[i[a]]=i;i=s[++o]}for(a=1;i!==void 0;){let h;typeof i=="number"&&(a+=i,i=s[++o]);var d=void 0;if(i instanceof gn?h=i:(h=ef,o--),h==null?void 0:h.l){i=s[++o],d=s;var u=o;typeof i=="function"&&(i=i(),d[u]=i),d=i}for(u=a+1,typeof(i=s[++o])=="number"&&i<0&&(u-=i,i=s[++o]);a<u;a++){const v=l[a];d?n(r,a,h,d,v):e(r,a,h,v)}}return s[t]=r}function sf(t){return Array.isArray(t)?t[0]instanceof gn?t:[nf,t]:[t,void 0]}function fa(t,e){return t instanceof le?t.u:Array.isArray(t)?Pe(t,e,!1):void 0}function or(t,e,n){t[e]=n.h}function lr(t,e,n,s){let r,i;const o=n.h;t[e]=(l,a,d)=>o(l,a,d,i||(i=ir(rr,or,lr,s).T),r||(r=da(s)))}function da(t){let e=t[rl];if(!e){const n=ir(rr,or,lr,t);e=(s,r)=>ha(s,r,n),t[rl]=e}return e}function ha(t,e,n){(function(s,r,i){const o=512&r?0:-1,l=s.length,a=l+((r=64&r?256&r:!!l&&zs(s[l-1]))?-1:0);for(let d=0;d<a;d++)i(d-o,s[d]);if(r){s=s[l-1];for(const d in s)!isNaN(d)&&i(+d,s[d])}})(t,0|t[j]|(n.T[1]?512:0),((s,r)=>{if(r!=null){var i=(function(o,l){var a=o[l];if(a)return a;if((a=o.ga)&&(a=a[l])){var d=(a=sf(a))[0].h;if(a=a[1]){const u=da(a),h=ir(rr,or,lr,a).T;a=o.la?ei(h,u):(v,w,E)=>d(v,w,E,h,u)}else a=d;return o[l]=a}})(n,s);i&&i(e,r,s)}})),(t=Ti(t))&&(function(s,r){cn(s,s.g.end());for(let i=0;i<r.length;i++)cn(s,xi(r[i])||new Uint8Array(0))})(e,t)}function _n(t,e){if(Array.isArray(e)){var n=0|e[j];if(4&n)return e;for(var s=0,r=0;s<e.length;s++){const i=t(e[s]);i!=null&&(e[r++]=i)}return r<s&&(e.length=r),ae(e,-6145&(5|n)),2&n&&Object.freeze(e),e}}function At(t,e,n){return new gn(t,e,n)}function mn(t,e,n){return new gn(t,e,n)}function Et(t,e,n){jt(t,0|t[j],e,n)}var rf=sr((function(t,e,n,s,r){return t.h===2&&(t=ns(t,Pe([void 0,void 0],s,!0),r),Ei(s=0|e[j]),(r=dn(e,s,n))instanceof oe?(2&r.M)!=0?((r=r.da()).push(t),jt(e,s,n,r)):r.Ja(t):Array.isArray(r)?(2&(0|r[j])&&jt(e,s,n,r=Y1(r)),r.push(t)):jt(e,s,n,[t]),!0)}),(function(t,e,n,s,r){if(e instanceof oe)e.forEach(((i,o)=>{Es(t,n,Pe([o,i],s,!1),r)}));else if(Array.isArray(e))for(let i=0;i<e.length;i++){const o=e[i];Array.isArray(o)&&Es(t,n,Pe(o,s,!1),r)}}));function pa(t,e,n){if(e=(function(s){if(s==null)return s;const r=typeof s;if(r==="bigint")return String(Ss(64,s));if(As(s)){if(r==="string")return P2(s);if(r==="number")return V1(s)}})(e),e!=null&&(typeof e=="string"&&nl(e),e!=null))switch(Bt(t,n,0),typeof e){case"number":t=t.g,Ve(e),nn(t,G,rt);break;case"bigint":n=BigInt.asUintN(64,e),n=new ti(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),nn(t.g,n.h,n.g);break;default:n=nl(e),nn(t.g,n.h,n.g)}}function ga(t,e,n){(e=Ys(e))!=null&&e!=null&&(Bt(t,n,0),er(t.g,e))}function _a(t,e,n){(e=O2(e))!=null&&(Bt(t,n,0),t.g.g.push(e?1:0))}function ma(t,e,n){(e=K1(e))!=null&&nr(t,n,C1(e))}function ya(t,e,n,s,r){Es(t,n,fa(e,s),r)}function va(t,e,n){e==null||typeof e=="string"||e instanceof Qn||(qn(e)?qn(e)&&Si($1):e=void 0),e!=null&&nr(t,n,ea(e).buffer)}function ba(t,e,n){return(t.h===5||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Zr,e):e.push(Zr(t.g)),!0)}var de=At((function(t,e,n){if(t.h!==1)return!1;var s=t.g;t=Yr(s);const r=Yr(s);s=2*(r>>31)+1;const i=r>>>20&2047;return t=4294967296*(1048575&r)+t,Et(e,n,i==2047?t?NaN:s*(1/0):i==0?5e-324*s*t:s*Math.pow(2,i-1075)*(t+4503599627370496)),!0}),(function(t,e,n){(e=Xs(e))!=null&&(Bt(t,n,1),t=t.g,(n=xs||(xs=new DataView(new ArrayBuffer(8)))).setFloat64(0,+e,!0),G=n.getUint32(0,!0),rt=n.getUint32(4,!0),Xn(t,G),Xn(t,rt))}),Jt()),$t=At((function(t,e,n){return t.h===5&&(Et(e,n,Zr(t.g)),!0)}),(function(t,e,n){(e=Xs(e))!=null&&(Bt(t,n,5),t=t.g,Ii(e),Xn(t,G))}),Wi);mn(ba,(function(t,e,n){if((e=_n(Xs,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&(Bt(s,r,5),s=s.g,Ii(i),Xn(s,G))}}),Wi);mn(ba,(function(t,e,n){if((e=_n(Xs,e))!=null&&e.length){Bt(t,n,2),pn(t.g,4*e.length);for(let s=0;s<e.length;s++)n=t.g,Ii(e[s]),Xn(n,G)}}),Wi);var Ts=At((function(t,e,n){return t.h===0&&(Et(e,n,ji(t.g,Ci)),!0)}),pa,la),kr=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=ji(t.g,Ci))===0?void 0:t),!0)}),pa,la),of=At((function(t,e,n){return t.h===0&&(Et(e,n,ji(t.g,ki)),!0)}),(function(t,e,n){if((e=R2(e))!=null&&(typeof e=="string"&&tl(e),e!=null))switch(Bt(t,n,0),typeof e){case"number":t=t.g,Ve(e),nn(t,G,rt);break;case"bigint":n=BigInt.asUintN(64,e),n=new Qr(Number(n&BigInt(4294967295)),Number(n>>BigInt(32))),nn(t.g,n.h,n.g);break;default:n=tl(e),nn(t.g,n.h,n.g)}}),Jt()),Mt=At((function(t,e,n){return t.h===0&&(Et(e,n,De(t.g)),!0)}),ga,Hi),Vi=mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,De,e):e.push(De(t.g)),!0)}),(function(t,e,n){if((e=_n(Ys,e))!=null&&e.length){n=Fi(t,n);for(let s=0;s<e.length;s++)er(t.g,e[s]);Bi(t,n)}}),Hi),Ye=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=De(t.g))===0?void 0:t),!0)}),ga,Hi),nt=At((function(t,e,n){return t.h===0&&(Et(e,n,na(t.g)),!0)}),_a,ia),sn=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=na(t.g))===!1?void 0:t),!0)}),_a,ia),kt=mn((function(t,e,n){return t.h===2&&(t=$i(t),hn(e,0|e[j],n,!1).push(t),!0)}),(function(t,e,n){if((e=_n(K1,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&nr(s,r,C1(i))}}),Ui),ke=At((function(t,e,n){return t.h===2&&(Et(e,n,(t=$i(t))===""?void 0:t),!0)}),ma,Ui),et=At((function(t,e,n){return t.h===2&&(Et(e,n,$i(t)),!0)}),ma,Ui),Vt=(function(t,e,n=Li){return new gn(t,e,n)})((function(t,e,n,s,r){return t.h===2&&(s=Pe(void 0,s,!0),hn(e,0|e[j],n,!0).push(s),ns(t,s,r),!0)}),(function(t,e,n,s,r){if(Array.isArray(e))for(let i=0;i<e.length;i++)ya(t,e[i],n,s,r)})),J=sr((function(t,e,n,s,r,i){return t.h===2&&(q2(e,0|e[j],i,n),ns(t,e=Di(e,s,n),r),!0)}),ya),lf=At((function(t,e,n){return t.h===2&&(Et(e,n,ra(t)),!0)}),va,aa);mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Ke,e):e.push(Ke(t.g)),!0)}),(function(t,e,n){if((e=_n(U1,e))!=null)for(let o=0;o<e.length;o++){var s=t,r=n,i=e[o];i!=null&&(Bt(s,r,0),pn(s.g,i))}}),oa);var af=At((function(t,e,n){return t.h===0&&(Et(e,n,(t=Ke(t.g))===0?void 0:t),!0)}),(function(t,e,n){(e=U1(e))!=null&&e!=null&&(Bt(t,n,0),pn(t.g,e))}),oa),re=At((function(t,e,n){return t.h===0&&(Et(e,n,De(t.g)),!0)}),(function(t,e,n){(e=Ys(e))!=null&&(e=parseInt(e,10),Bt(t,n,0),er(t.g,e))}),ca);class cf{constructor(e,n){this.h=e,this.g=n,this.l=Y2,this.m=Z1,this.defaultValue=void 0}register(){Us(this)}}function uf(t,e){return new cf(t,e)}function ar(t){return function(){const e=new class{constructor(){this.l=[],this.h=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const o=this.g;return this.g=[],o}}}};ha(this.u,e,ir(rr,or,lr,t)),cn(e,e.g.end());const n=new Uint8Array(e.h),s=e.l,r=s.length;let i=0;for(let o=0;o<r;o++){const l=s[o];n.set(l,i),i+=l.length}return e.l=[n],n}}var il=[0,ke,At((function(t,e,n){return t.h===2&&(Et(e,n,(t=ra(t))===zr()?void 0:t),!0)}),(function(t,e,n){if(e!=null){if(e instanceof le){const s=e.Oa;return void(s&&(e=s(e),e!=null&&nr(t,n,ea(e).buffer)))}if(Array.isArray(e))return}va(t,e,n)}),aa)],wa=[0,Mt,re,nt,-1,Vi,re,-1],xa=[0,nt,et,nt,re,-1,mn((function(t,e,n){return(t.h===0||t.h===2)&&(e=hn(e,0|e[j],n,!1),t.h==2?tr(t,Q2,e):e.push(De(t.g)),!0)}),(function(t,e,n){if((e=_n(Ys,e))!=null&&e.length){n=Fi(t,n);for(let s=0;s<e.length;s++)er(t.g,e[s]);Bi(t,n)}}),ca),et,-1,[0,nt,-1],re,nt,-1],Sa=[0,et,-2],Aa=[0],Ea=[0,Mt,nt,1,nt,-3],dt={};dt[336783863]=[0,et,nt,-1,Mt,[0,[1,2,3,4,5,6,7,8,9],J,Aa,J,xa,J,Sa,J,Ea,J,wa,J,[0,et,-2],J,[0,et,re],J,[0,re,et,-1],J,[0,re,-1]],[0,et],nt,[0,[1,3],[2,4],J,[0,Vi],-1,J,[0,kt],-1,Vt,[0,et,-1]],et];var ol=[0,kr,-1,sn,-3,kr,Vi,ke,Ye,kr,-1,sn,Ye,sn,-2,ke],Un=[-1,{}],ll=[0,et,1,Un],al=[0,et,kt,Un],ff=class extends le{constructor(t){super(t,500)}o(t){return Z1(this,0,1001,t)}},df=[-500,Vt,[-500,ke,-1,kt,-3,[-2,dt,nt],Vt,il,Ye,-1,ll,al,Vt,[0,ke,sn],ke,ol,Ye,kt,987,kt],4,Vt,[-500,et,-1,[-1,{}],998,et],Vt,[-500,et,kt,-1,[-2,{},nt],997,kt,-1],Ye,Vt,[-500,et,kt,Un,998,kt],kt,Ye,ll,al,Vt,[0,ke,-1,Un],kt,-2,ol,ke,-1,sn,[0,sn,af],978,Un,Vt,il];ff.prototype.g=ar(df);var hf=class extends le{constructor(t){super(t)}};hf.prototype.g=ar([0,$t,-4,Ts]);var Ta=[0,et,Mt,$t,kt,-1],pf=[0,nt,-1],gf=[1,2,3,4,5],Ia=[0,lf,et,[0,Mt,Ts,-1],[0,of,Ts]],ct=[0,Ia,nt,[0,gf,J,Ea,J,xa,J,wa,J,Aa,J,Sa],re],Ki=[0,ct,$t,-1,Mt];dt[502141897]=Ki;var zi=[0,ct,$t,[0,ct],nt],ka=[0,ct,Ki,zi,$t,[0,[0,Ia]]];dt[508968150]=ka,dt[508968149]=zi;dt[513916220]=[0,ct,ka,Mt];var Ca=[0,ct,Ta];dt[478825465]=Ca;var cl=[0,ct,[0,ct],Ca,-1],Oa=[0,ct,$t,Mt],Ji=[0,ct,$t],Ma=[0,ct,Oa,Ji,$t];dt[479097054]=[0,ct,Ma,cl],dt[463370452]=cl,dt[464864288]=Oa;dt[462713202]=Ma,dt[474472470]=Ji;var _f=class extends le{constructor(t){super(t)}},qi=[0,ct,$t,-1,Mt],ni=[0,ct,$t,nt];_f.prototype.g=ar([0,ct,Ji,[0,ct],Ki,zi,qi,ni]);dt[456383383]=[0,ct,Ta];dt[476348187]=[0,ct,pf];var ul=class extends le{constructor(t){super(t)}},Pa=[0,re,-1],mf=uf(458105876,class extends le{constructor(t){super(t)}g(){var t=this.u;const e=0|t[j],n=2&e;return t=(function(s,r,i){var o=ul;const l=2&r;let a=!1;if(i==null){if(l)return Qo();i=[]}else if(i.constructor===oe){if((2&i.M)==0||l)return i;i=i.da()}else Array.isArray(i)?a=!!(2&(0|i[j])):i=[];if(l){if(!i.length)return Qo();a||(a=!0,ts(i))}else a&&(a=!1,i=Y1(i));return a||(64&(0|i[j])?i[j]&=-33:32&r&&Vs(i,32)),jt(s,r,2,o=new oe(i,o,D2,void 0)),o})(t,e,dn(t,e,2)),!n&&ul&&(t.pa=!0),t}});dt[458105876]=[0,Pa,rf,[!0,Ts,[0,et,-1,kt]]];dt[458105758]=[0,ct,et,Pa];dt[443442058]=[0,ct,et,Mt,$t,kt,-1,nt,$t],dt[514774813]=qi;dt[516587230]=[0,ct,qi,ni,$t],dt[518928384]=ni;function qt(...t){return t.map((([e,n])=>({start:e,end:n})))}var yf=qt([61,146],[146,91],[91,181],[181,84],[84,17],[17,314],[314,405],[405,321],[321,375],[375,291],[61,185],[185,40],[40,39],[39,37],[37,0],[0,267],[267,269],[269,270],[270,409],[409,291],[78,95],[95,88],[88,178],[178,87],[87,14],[14,317],[317,402],[402,318],[318,324],[324,308],[78,191],[191,80],[80,81],[81,82],[82,13],[13,312],[312,311],[311,310],[310,415],[415,308]),vf=qt([263,249],[249,390],[390,373],[373,374],[374,380],[380,381],[381,382],[382,362],[263,466],[466,388],[388,387],[387,386],[386,385],[385,384],[384,398],[398,362]),bf=qt([276,283],[283,282],[282,295],[295,285],[300,293],[293,334],[334,296],[296,336]);qt([474,475],[475,476],[476,477],[477,474]);var wf=qt([33,7],[7,163],[163,144],[144,145],[145,153],[153,154],[154,155],[155,133],[33,246],[246,161],[161,160],[160,159],[159,158],[158,157],[157,173],[173,133]),xf=qt([46,53],[53,52],[52,65],[65,55],[70,63],[63,105],[105,66],[66,107]);qt([469,470],[470,471],[471,472],[472,469]);var Sf=qt([10,338],[338,297],[297,332],[332,284],[284,251],[251,389],[389,356],[356,454],[454,323],[323,361],[361,288],[288,397],[397,365],[365,379],[379,378],[378,400],[400,377],[377,152],[152,148],[148,176],[176,149],[149,150],[150,136],[136,172],[172,58],[58,132],[132,93],[93,234],[234,127],[127,162],[162,21],[21,54],[54,103],[103,67],[67,109],[109,10]);[...yf,...vf,...bf,...wf,...xf,...Sf];qt([127,34],[34,139],[139,127],[11,0],[0,37],[37,11],[232,231],[231,120],[120,232],[72,37],[37,39],[39,72],[128,121],[121,47],[47,128],[232,121],[121,128],[128,232],[104,69],[69,67],[67,104],[175,171],[171,148],[148,175],[118,50],[50,101],[101,118],[73,39],[39,40],[40,73],[9,151],[151,108],[108,9],[48,115],[115,131],[131,48],[194,204],[204,211],[211,194],[74,40],[40,185],[185,74],[80,42],[42,183],[183,80],[40,92],[92,186],[186,40],[230,229],[229,118],[118,230],[202,212],[212,214],[214,202],[83,18],[18,17],[17,83],[76,61],[61,146],[146,76],[160,29],[29,30],[30,160],[56,157],[157,173],[173,56],[106,204],[204,194],[194,106],[135,214],[214,192],[192,135],[203,165],[165,98],[98,203],[21,71],[71,68],[68,21],[51,45],[45,4],[4,51],[144,24],[24,23],[23,144],[77,146],[146,91],[91,77],[205,50],[50,187],[187,205],[201,200],[200,18],[18,201],[91,106],[106,182],[182,91],[90,91],[91,181],[181,90],[85,84],[84,17],[17,85],[206,203],[203,36],[36,206],[148,171],[171,140],[140,148],[92,40],[40,39],[39,92],[193,189],[189,244],[244,193],[159,158],[158,28],[28,159],[247,246],[246,161],[161,247],[236,3],[3,196],[196,236],[54,68],[68,104],[104,54],[193,168],[168,8],[8,193],[117,228],[228,31],[31,117],[189,193],[193,55],[55,189],[98,97],[97,99],[99,98],[126,47],[47,100],[100,126],[166,79],[79,218],[218,166],[155,154],[154,26],[26,155],[209,49],[49,131],[131,209],[135,136],[136,150],[150,135],[47,126],[126,217],[217,47],[223,52],[52,53],[53,223],[45,51],[51,134],[134,45],[211,170],[170,140],[140,211],[67,69],[69,108],[108,67],[43,106],[106,91],[91,43],[230,119],[119,120],[120,230],[226,130],[130,247],[247,226],[63,53],[53,52],[52,63],[238,20],[20,242],[242,238],[46,70],[70,156],[156,46],[78,62],[62,96],[96,78],[46,53],[53,63],[63,46],[143,34],[34,227],[227,143],[123,117],[117,111],[111,123],[44,125],[125,19],[19,44],[236,134],[134,51],[51,236],[216,206],[206,205],[205,216],[154,153],[153,22],[22,154],[39,37],[37,167],[167,39],[200,201],[201,208],[208,200],[36,142],[142,100],[100,36],[57,212],[212,202],[202,57],[20,60],[60,99],[99,20],[28,158],[158,157],[157,28],[35,226],[226,113],[113,35],[160,159],[159,27],[27,160],[204,202],[202,210],[210,204],[113,225],[225,46],[46,113],[43,202],[202,204],[204,43],[62,76],[76,77],[77,62],[137,123],[123,116],[116,137],[41,38],[38,72],[72,41],[203,129],[129,142],[142,203],[64,98],[98,240],[240,64],[49,102],[102,64],[64,49],[41,73],[73,74],[74,41],[212,216],[216,207],[207,212],[42,74],[74,184],[184,42],[169,170],[170,211],[211,169],[170,149],[149,176],[176,170],[105,66],[66,69],[69,105],[122,6],[6,168],[168,122],[123,147],[147,187],[187,123],[96,77],[77,90],[90,96],[65,55],[55,107],[107,65],[89,90],[90,180],[180,89],[101,100],[100,120],[120,101],[63,105],[105,104],[104,63],[93,137],[137,227],[227,93],[15,86],[86,85],[85,15],[129,102],[102,49],[49,129],[14,87],[87,86],[86,14],[55,8],[8,9],[9,55],[100,47],[47,121],[121,100],[145,23],[23,22],[22,145],[88,89],[89,179],[179,88],[6,122],[122,196],[196,6],[88,95],[95,96],[96,88],[138,172],[172,136],[136,138],[215,58],[58,172],[172,215],[115,48],[48,219],[219,115],[42,80],[80,81],[81,42],[195,3],[3,51],[51,195],[43,146],[146,61],[61,43],[171,175],[175,199],[199,171],[81,82],[82,38],[38,81],[53,46],[46,225],[225,53],[144,163],[163,110],[110,144],[52,65],[65,66],[66,52],[229,228],[228,117],[117,229],[34,127],[127,234],[234,34],[107,108],[108,69],[69,107],[109,108],[108,151],[151,109],[48,64],[64,235],[235,48],[62,78],[78,191],[191,62],[129,209],[209,126],[126,129],[111,35],[35,143],[143,111],[117,123],[123,50],[50,117],[222,65],[65,52],[52,222],[19,125],[125,141],[141,19],[221,55],[55,65],[65,221],[3,195],[195,197],[197,3],[25,7],[7,33],[33,25],[220,237],[237,44],[44,220],[70,71],[71,139],[139,70],[122,193],[193,245],[245,122],[247,130],[130,33],[33,247],[71,21],[21,162],[162,71],[170,169],[169,150],[150,170],[188,174],[174,196],[196,188],[216,186],[186,92],[92,216],[2,97],[97,167],[167,2],[141,125],[125,241],[241,141],[164,167],[167,37],[37,164],[72,38],[38,12],[12,72],[38,82],[82,13],[13,38],[63,68],[68,71],[71,63],[226,35],[35,111],[111,226],[101,50],[50,205],[205,101],[206,92],[92,165],[165,206],[209,198],[198,217],[217,209],[165,167],[167,97],[97,165],[220,115],[115,218],[218,220],[133,112],[112,243],[243,133],[239,238],[238,241],[241,239],[214,135],[135,169],[169,214],[190,173],[173,133],[133,190],[171,208],[208,32],[32,171],[125,44],[44,237],[237,125],[86,87],[87,178],[178,86],[85,86],[86,179],[179,85],[84,85],[85,180],[180,84],[83,84],[84,181],[181,83],[201,83],[83,182],[182,201],[137,93],[93,132],[132,137],[76,62],[62,183],[183,76],[61,76],[76,184],[184,61],[57,61],[61,185],[185,57],[212,57],[57,186],[186,212],[214,207],[207,187],[187,214],[34,143],[143,156],[156,34],[79,239],[239,237],[237,79],[123,137],[137,177],[177,123],[44,1],[1,4],[4,44],[201,194],[194,32],[32,201],[64,102],[102,129],[129,64],[213,215],[215,138],[138,213],[59,166],[166,219],[219,59],[242,99],[99,97],[97,242],[2,94],[94,141],[141,2],[75,59],[59,235],[235,75],[24,110],[110,228],[228,24],[25,130],[130,226],[226,25],[23,24],[24,229],[229,23],[22,23],[23,230],[230,22],[26,22],[22,231],[231,26],[112,26],[26,232],[232,112],[189,190],[190,243],[243,189],[221,56],[56,190],[190,221],[28,56],[56,221],[221,28],[27,28],[28,222],[222,27],[29,27],[27,223],[223,29],[30,29],[29,224],[224,30],[247,30],[30,225],[225,247],[238,79],[79,20],[20,238],[166,59],[59,75],[75,166],[60,75],[75,240],[240,60],[147,177],[177,215],[215,147],[20,79],[79,166],[166,20],[187,147],[147,213],[213,187],[112,233],[233,244],[244,112],[233,128],[128,245],[245,233],[128,114],[114,188],[188,128],[114,217],[217,174],[174,114],[131,115],[115,220],[220,131],[217,198],[198,236],[236,217],[198,131],[131,134],[134,198],[177,132],[132,58],[58,177],[143,35],[35,124],[124,143],[110,163],[163,7],[7,110],[228,110],[110,25],[25,228],[356,389],[389,368],[368,356],[11,302],[302,267],[267,11],[452,350],[350,349],[349,452],[302,303],[303,269],[269,302],[357,343],[343,277],[277,357],[452,453],[453,357],[357,452],[333,332],[332,297],[297,333],[175,152],[152,377],[377,175],[347,348],[348,330],[330,347],[303,304],[304,270],[270,303],[9,336],[336,337],[337,9],[278,279],[279,360],[360,278],[418,262],[262,431],[431,418],[304,408],[408,409],[409,304],[310,415],[415,407],[407,310],[270,409],[409,410],[410,270],[450,348],[348,347],[347,450],[422,430],[430,434],[434,422],[313,314],[314,17],[17,313],[306,307],[307,375],[375,306],[387,388],[388,260],[260,387],[286,414],[414,398],[398,286],[335,406],[406,418],[418,335],[364,367],[367,416],[416,364],[423,358],[358,327],[327,423],[251,284],[284,298],[298,251],[281,5],[5,4],[4,281],[373,374],[374,253],[253,373],[307,320],[320,321],[321,307],[425,427],[427,411],[411,425],[421,313],[313,18],[18,421],[321,405],[405,406],[406,321],[320,404],[404,405],[405,320],[315,16],[16,17],[17,315],[426,425],[425,266],[266,426],[377,400],[400,369],[369,377],[322,391],[391,269],[269,322],[417,465],[465,464],[464,417],[386,257],[257,258],[258,386],[466,260],[260,388],[388,466],[456,399],[399,419],[419,456],[284,332],[332,333],[333,284],[417,285],[285,8],[8,417],[346,340],[340,261],[261,346],[413,441],[441,285],[285,413],[327,460],[460,328],[328,327],[355,371],[371,329],[329,355],[392,439],[439,438],[438,392],[382,341],[341,256],[256,382],[429,420],[420,360],[360,429],[364,394],[394,379],[379,364],[277,343],[343,437],[437,277],[443,444],[444,283],[283,443],[275,440],[440,363],[363,275],[431,262],[262,369],[369,431],[297,338],[338,337],[337,297],[273,375],[375,321],[321,273],[450,451],[451,349],[349,450],[446,342],[342,467],[467,446],[293,334],[334,282],[282,293],[458,461],[461,462],[462,458],[276,353],[353,383],[383,276],[308,324],[324,325],[325,308],[276,300],[300,293],[293,276],[372,345],[345,447],[447,372],[352,345],[345,340],[340,352],[274,1],[1,19],[19,274],[456,248],[248,281],[281,456],[436,427],[427,425],[425,436],[381,256],[256,252],[252,381],[269,391],[391,393],[393,269],[200,199],[199,428],[428,200],[266,330],[330,329],[329,266],[287,273],[273,422],[422,287],[250,462],[462,328],[328,250],[258,286],[286,384],[384,258],[265,353],[353,342],[342,265],[387,259],[259,257],[257,387],[424,431],[431,430],[430,424],[342,353],[353,276],[276,342],[273,335],[335,424],[424,273],[292,325],[325,307],[307,292],[366,447],[447,345],[345,366],[271,303],[303,302],[302,271],[423,266],[266,371],[371,423],[294,455],[455,460],[460,294],[279,278],[278,294],[294,279],[271,272],[272,304],[304,271],[432,434],[434,427],[427,432],[272,407],[407,408],[408,272],[394,430],[430,431],[431,394],[395,369],[369,400],[400,395],[334,333],[333,299],[299,334],[351,417],[417,168],[168,351],[352,280],[280,411],[411,352],[325,319],[319,320],[320,325],[295,296],[296,336],[336,295],[319,403],[403,404],[404,319],[330,348],[348,349],[349,330],[293,298],[298,333],[333,293],[323,454],[454,447],[447,323],[15,16],[16,315],[315,15],[358,429],[429,279],[279,358],[14,15],[15,316],[316,14],[285,336],[336,9],[9,285],[329,349],[349,350],[350,329],[374,380],[380,252],[252,374],[318,402],[402,403],[403,318],[6,197],[197,419],[419,6],[318,319],[319,325],[325,318],[367,364],[364,365],[365,367],[435,367],[367,397],[397,435],[344,438],[438,439],[439,344],[272,271],[271,311],[311,272],[195,5],[5,281],[281,195],[273,287],[287,291],[291,273],[396,428],[428,199],[199,396],[311,271],[271,268],[268,311],[283,444],[444,445],[445,283],[373,254],[254,339],[339,373],[282,334],[334,296],[296,282],[449,347],[347,346],[346,449],[264,447],[447,454],[454,264],[336,296],[296,299],[299,336],[338,10],[10,151],[151,338],[278,439],[439,455],[455,278],[292,407],[407,415],[415,292],[358,371],[371,355],[355,358],[340,345],[345,372],[372,340],[346,347],[347,280],[280,346],[442,443],[443,282],[282,442],[19,94],[94,370],[370,19],[441,442],[442,295],[295,441],[248,419],[419,197],[197,248],[263,255],[255,359],[359,263],[440,275],[275,274],[274,440],[300,383],[383,368],[368,300],[351,412],[412,465],[465,351],[263,467],[467,466],[466,263],[301,368],[368,389],[389,301],[395,378],[378,379],[379,395],[412,351],[351,419],[419,412],[436,426],[426,322],[322,436],[2,164],[164,393],[393,2],[370,462],[462,461],[461,370],[164,0],[0,267],[267,164],[302,11],[11,12],[12,302],[268,12],[12,13],[13,268],[293,300],[300,301],[301,293],[446,261],[261,340],[340,446],[330,266],[266,425],[425,330],[426,423],[423,391],[391,426],[429,355],[355,437],[437,429],[391,327],[327,326],[326,391],[440,457],[457,438],[438,440],[341,382],[382,362],[362,341],[459,457],[457,461],[461,459],[434,430],[430,394],[394,434],[414,463],[463,362],[362,414],[396,369],[369,262],[262,396],[354,461],[461,457],[457,354],[316,403],[403,402],[402,316],[315,404],[404,403],[403,315],[314,405],[405,404],[404,314],[313,406],[406,405],[405,313],[421,418],[418,406],[406,421],[366,401],[401,361],[361,366],[306,408],[408,407],[407,306],[291,409],[409,408],[408,291],[287,410],[410,409],[409,287],[432,436],[436,410],[410,432],[434,416],[416,411],[411,434],[264,368],[368,383],[383,264],[309,438],[438,457],[457,309],[352,376],[376,401],[401,352],[274,275],[275,4],[4,274],[421,428],[428,262],[262,421],[294,327],[327,358],[358,294],[433,416],[416,367],[367,433],[289,455],[455,439],[439,289],[462,370],[370,326],[326,462],[2,326],[326,370],[370,2],[305,460],[460,455],[455,305],[254,449],[449,448],[448,254],[255,261],[261,446],[446,255],[253,450],[450,449],[449,253],[252,451],[451,450],[450,252],[256,452],[452,451],[451,256],[341,453],[453,452],[452,341],[413,464],[464,463],[463,413],[441,413],[413,414],[414,441],[258,442],[442,441],[441,258],[257,443],[443,442],[442,257],[259,444],[444,443],[443,259],[260,445],[445,444],[444,260],[467,342],[342,445],[445,467],[459,458],[458,250],[250,459],[289,392],[392,290],[290,289],[290,328],[328,460],[460,290],[376,433],[433,435],[435,376],[250,290],[290,392],[392,250],[411,416],[416,433],[433,411],[341,463],[463,464],[464,341],[453,464],[464,465],[465,453],[357,465],[465,412],[412,357],[343,412],[412,399],[399,343],[360,363],[363,440],[440,360],[437,399],[399,456],[456,437],[420,456],[456,363],[363,420],[401,435],[435,288],[288,401],[372,383],[383,353],[353,372],[339,255],[255,249],[249,339],[448,261],[261,255],[255,448],[133,243],[243,190],[190,133],[133,155],[155,112],[112,133],[33,246],[246,247],[247,33],[33,130],[130,25],[25,33],[398,384],[384,286],[286,398],[362,398],[398,414],[414,362],[362,463],[463,341],[341,362],[263,359],[359,467],[467,263],[263,249],[249,255],[255,263],[466,467],[467,260],[260,466],[75,60],[60,166],[166,75],[238,239],[239,79],[79,238],[162,127],[127,139],[139,162],[72,11],[11,37],[37,72],[121,232],[232,120],[120,121],[73,72],[72,39],[39,73],[114,128],[128,47],[47,114],[233,232],[232,128],[128,233],[103,104],[104,67],[67,103],[152,175],[175,148],[148,152],[119,118],[118,101],[101,119],[74,73],[73,40],[40,74],[107,9],[9,108],[108,107],[49,48],[48,131],[131,49],[32,194],[194,211],[211,32],[184,74],[74,185],[185,184],[191,80],[80,183],[183,191],[185,40],[40,186],[186,185],[119,230],[230,118],[118,119],[210,202],[202,214],[214,210],[84,83],[83,17],[17,84],[77,76],[76,146],[146,77],[161,160],[160,30],[30,161],[190,56],[56,173],[173,190],[182,106],[106,194],[194,182],[138,135],[135,192],[192,138],[129,203],[203,98],[98,129],[54,21],[21,68],[68,54],[5,51],[51,4],[4,5],[145,144],[144,23],[23,145],[90,77],[77,91],[91,90],[207,205],[205,187],[187,207],[83,201],[201,18],[18,83],[181,91],[91,182],[182,181],[180,90],[90,181],[181,180],[16,85],[85,17],[17,16],[205,206],[206,36],[36,205],[176,148],[148,140],[140,176],[165,92],[92,39],[39,165],[245,193],[193,244],[244,245],[27,159],[159,28],[28,27],[30,247],[247,161],[161,30],[174,236],[236,196],[196,174],[103,54],[54,104],[104,103],[55,193],[193,8],[8,55],[111,117],[117,31],[31,111],[221,189],[189,55],[55,221],[240,98],[98,99],[99,240],[142,126],[126,100],[100,142],[219,166],[166,218],[218,219],[112,155],[155,26],[26,112],[198,209],[209,131],[131,198],[169,135],[135,150],[150,169],[114,47],[47,217],[217,114],[224,223],[223,53],[53,224],[220,45],[45,134],[134,220],[32,211],[211,140],[140,32],[109,67],[67,108],[108,109],[146,43],[43,91],[91,146],[231,230],[230,120],[120,231],[113,226],[226,247],[247,113],[105,63],[63,52],[52,105],[241,238],[238,242],[242,241],[124,46],[46,156],[156,124],[95,78],[78,96],[96,95],[70,46],[46,63],[63,70],[116,143],[143,227],[227,116],[116,123],[123,111],[111,116],[1,44],[44,19],[19,1],[3,236],[236,51],[51,3],[207,216],[216,205],[205,207],[26,154],[154,22],[22,26],[165,39],[39,167],[167,165],[199,200],[200,208],[208,199],[101,36],[36,100],[100,101],[43,57],[57,202],[202,43],[242,20],[20,99],[99,242],[56,28],[28,157],[157,56],[124,35],[35,113],[113,124],[29,160],[160,27],[27,29],[211,204],[204,210],[210,211],[124,113],[113,46],[46,124],[106,43],[43,204],[204,106],[96,62],[62,77],[77,96],[227,137],[137,116],[116,227],[73,41],[41,72],[72,73],[36,203],[203,142],[142,36],[235,64],[64,240],[240,235],[48,49],[49,64],[64,48],[42,41],[41,74],[74,42],[214,212],[212,207],[207,214],[183,42],[42,184],[184,183],[210,169],[169,211],[211,210],[140,170],[170,176],[176,140],[104,105],[105,69],[69,104],[193,122],[122,168],[168,193],[50,123],[123,187],[187,50],[89,96],[96,90],[90,89],[66,65],[65,107],[107,66],[179,89],[89,180],[180,179],[119,101],[101,120],[120,119],[68,63],[63,104],[104,68],[234,93],[93,227],[227,234],[16,15],[15,85],[85,16],[209,129],[129,49],[49,209],[15,14],[14,86],[86,15],[107,55],[55,9],[9,107],[120,100],[100,121],[121,120],[153,145],[145,22],[22,153],[178,88],[88,179],[179,178],[197,6],[6,196],[196,197],[89,88],[88,96],[96,89],[135,138],[138,136],[136,135],[138,215],[215,172],[172,138],[218,115],[115,219],[219,218],[41,42],[42,81],[81,41],[5,195],[195,51],[51,5],[57,43],[43,61],[61,57],[208,171],[171,199],[199,208],[41,81],[81,38],[38,41],[224,53],[53,225],[225,224],[24,144],[144,110],[110,24],[105,52],[52,66],[66,105],[118,229],[229,117],[117,118],[227,34],[34,234],[234,227],[66,107],[107,69],[69,66],[10,109],[109,151],[151,10],[219,48],[48,235],[235,219],[183,62],[62,191],[191,183],[142,129],[129,126],[126,142],[116,111],[111,143],[143,116],[118,117],[117,50],[50,118],[223,222],[222,52],[52,223],[94,19],[19,141],[141,94],[222,221],[221,65],[65,222],[196,3],[3,197],[197,196],[45,220],[220,44],[44,45],[156,70],[70,139],[139,156],[188,122],[122,245],[245,188],[139,71],[71,162],[162,139],[149,170],[170,150],[150,149],[122,188],[188,196],[196,122],[206,216],[216,92],[92,206],[164,2],[2,167],[167,164],[242,141],[141,241],[241,242],[0,164],[164,37],[37,0],[11,72],[72,12],[12,11],[12,38],[38,13],[13,12],[70,63],[63,71],[71,70],[31,226],[226,111],[111,31],[36,101],[101,205],[205,36],[203,206],[206,165],[165,203],[126,209],[209,217],[217,126],[98,165],[165,97],[97,98],[237,220],[220,218],[218,237],[237,239],[239,241],[241,237],[210,214],[214,169],[169,210],[140,171],[171,32],[32,140],[241,125],[125,237],[237,241],[179,86],[86,178],[178,179],[180,85],[85,179],[179,180],[181,84],[84,180],[180,181],[182,83],[83,181],[181,182],[194,201],[201,182],[182,194],[177,137],[137,132],[132,177],[184,76],[76,183],[183,184],[185,61],[61,184],[184,185],[186,57],[57,185],[185,186],[216,212],[212,186],[186,216],[192,214],[214,187],[187,192],[139,34],[34,156],[156,139],[218,79],[79,237],[237,218],[147,123],[123,177],[177,147],[45,44],[44,4],[4,45],[208,201],[201,32],[32,208],[98,64],[64,129],[129,98],[192,213],[213,138],[138,192],[235,59],[59,219],[219,235],[141,242],[242,97],[97,141],[97,2],[2,141],[141,97],[240,75],[75,235],[235,240],[229,24],[24,228],[228,229],[31,25],[25,226],[226,31],[230,23],[23,229],[229,230],[231,22],[22,230],[230,231],[232,26],[26,231],[231,232],[233,112],[112,232],[232,233],[244,189],[189,243],[243,244],[189,221],[221,190],[190,189],[222,28],[28,221],[221,222],[223,27],[27,222],[222,223],[224,29],[29,223],[223,224],[225,30],[30,224],[224,225],[113,247],[247,225],[225,113],[99,60],[60,240],[240,99],[213,147],[147,215],[215,213],[60,20],[20,166],[166,60],[192,187],[187,213],[213,192],[243,112],[112,244],[244,243],[244,233],[233,245],[245,244],[245,128],[128,188],[188,245],[188,114],[114,174],[174,188],[134,131],[131,220],[220,134],[174,217],[217,236],[236,174],[236,198],[198,134],[134,236],[215,177],[177,58],[58,215],[156,143],[143,124],[124,156],[25,110],[110,7],[7,25],[31,228],[228,25],[25,31],[264,356],[356,368],[368,264],[0,11],[11,267],[267,0],[451,452],[452,349],[349,451],[267,302],[302,269],[269,267],[350,357],[357,277],[277,350],[350,452],[452,357],[357,350],[299,333],[333,297],[297,299],[396,175],[175,377],[377,396],[280,347],[347,330],[330,280],[269,303],[303,270],[270,269],[151,9],[9,337],[337,151],[344,278],[278,360],[360,344],[424,418],[418,431],[431,424],[270,304],[304,409],[409,270],[272,310],[310,407],[407,272],[322,270],[270,410],[410,322],[449,450],[450,347],[347,449],[432,422],[422,434],[434,432],[18,313],[313,17],[17,18],[291,306],[306,375],[375,291],[259,387],[387,260],[260,259],[424,335],[335,418],[418,424],[434,364],[364,416],[416,434],[391,423],[423,327],[327,391],[301,251],[251,298],[298,301],[275,281],[281,4],[4,275],[254,373],[373,253],[253,254],[375,307],[307,321],[321,375],[280,425],[425,411],[411,280],[200,421],[421,18],[18,200],[335,321],[321,406],[406,335],[321,320],[320,405],[405,321],[314,315],[315,17],[17,314],[423,426],[426,266],[266,423],[396,377],[377,369],[369,396],[270,322],[322,269],[269,270],[413,417],[417,464],[464,413],[385,386],[386,258],[258,385],[248,456],[456,419],[419,248],[298,284],[284,333],[333,298],[168,417],[417,8],[8,168],[448,346],[346,261],[261,448],[417,413],[413,285],[285,417],[326,327],[327,328],[328,326],[277,355],[355,329],[329,277],[309,392],[392,438],[438,309],[381,382],[382,256],[256,381],[279,429],[429,360],[360,279],[365,364],[364,379],[379,365],[355,277],[277,437],[437,355],[282,443],[443,283],[283,282],[281,275],[275,363],[363,281],[395,431],[431,369],[369,395],[299,297],[297,337],[337,299],[335,273],[273,321],[321,335],[348,450],[450,349],[349,348],[359,446],[446,467],[467,359],[283,293],[293,282],[282,283],[250,458],[458,462],[462,250],[300,276],[276,383],[383,300],[292,308],[308,325],[325,292],[283,276],[276,293],[293,283],[264,372],[372,447],[447,264],[346,352],[352,340],[340,346],[354,274],[274,19],[19,354],[363,456],[456,281],[281,363],[426,436],[436,425],[425,426],[380,381],[381,252],[252,380],[267,269],[269,393],[393,267],[421,200],[200,428],[428,421],[371,266],[266,329],[329,371],[432,287],[287,422],[422,432],[290,250],[250,328],[328,290],[385,258],[258,384],[384,385],[446,265],[265,342],[342,446],[386,387],[387,257],[257,386],[422,424],[424,430],[430,422],[445,342],[342,276],[276,445],[422,273],[273,424],[424,422],[306,292],[292,307],[307,306],[352,366],[366,345],[345,352],[268,271],[271,302],[302,268],[358,423],[423,371],[371,358],[327,294],[294,460],[460,327],[331,279],[279,294],[294,331],[303,271],[271,304],[304,303],[436,432],[432,427],[427,436],[304,272],[272,408],[408,304],[395,394],[394,431],[431,395],[378,395],[395,400],[400,378],[296,334],[334,299],[299,296],[6,351],[351,168],[168,6],[376,352],[352,411],[411,376],[307,325],[325,320],[320,307],[285,295],[295,336],[336,285],[320,319],[319,404],[404,320],[329,330],[330,349],[349,329],[334,293],[293,333],[333,334],[366,323],[323,447],[447,366],[316,15],[15,315],[315,316],[331,358],[358,279],[279,331],[317,14],[14,316],[316,317],[8,285],[285,9],[9,8],[277,329],[329,350],[350,277],[253,374],[374,252],[252,253],[319,318],[318,403],[403,319],[351,6],[6,419],[419,351],[324,318],[318,325],[325,324],[397,367],[367,365],[365,397],[288,435],[435,397],[397,288],[278,344],[344,439],[439,278],[310,272],[272,311],[311,310],[248,195],[195,281],[281,248],[375,273],[273,291],[291,375],[175,396],[396,199],[199,175],[312,311],[311,268],[268,312],[276,283],[283,445],[445,276],[390,373],[373,339],[339,390],[295,282],[282,296],[296,295],[448,449],[449,346],[346,448],[356,264],[264,454],[454,356],[337,336],[336,299],[299,337],[337,338],[338,151],[151,337],[294,278],[278,455],[455,294],[308,292],[292,415],[415,308],[429,358],[358,355],[355,429],[265,340],[340,372],[372,265],[352,346],[346,280],[280,352],[295,442],[442,282],[282,295],[354,19],[19,370],[370,354],[285,441],[441,295],[295,285],[195,248],[248,197],[197,195],[457,440],[440,274],[274,457],[301,300],[300,368],[368,301],[417,351],[351,465],[465,417],[251,301],[301,389],[389,251],[394,395],[395,379],[379,394],[399,412],[412,419],[419,399],[410,436],[436,322],[322,410],[326,2],[2,393],[393,326],[354,370],[370,461],[461,354],[393,164],[164,267],[267,393],[268,302],[302,12],[12,268],[312,268],[268,13],[13,312],[298,293],[293,301],[301,298],[265,446],[446,340],[340,265],[280,330],[330,425],[425,280],[322,426],[426,391],[391,322],[420,429],[429,437],[437,420],[393,391],[391,326],[326,393],[344,440],[440,438],[438,344],[458,459],[459,461],[461,458],[364,434],[434,394],[394,364],[428,396],[396,262],[262,428],[274,354],[354,457],[457,274],[317,316],[316,402],[402,317],[316,315],[315,403],[403,316],[315,314],[314,404],[404,315],[314,313],[313,405],[405,314],[313,421],[421,406],[406,313],[323,366],[366,361],[361,323],[292,306],[306,407],[407,292],[306,291],[291,408],[408,306],[291,287],[287,409],[409,291],[287,432],[432,410],[410,287],[427,434],[434,411],[411,427],[372,264],[264,383],[383,372],[459,309],[309,457],[457,459],[366,352],[352,401],[401,366],[1,274],[274,4],[4,1],[418,421],[421,262],[262,418],[331,294],[294,358],[358,331],[435,433],[433,367],[367,435],[392,289],[289,439],[439,392],[328,462],[462,326],[326,328],[94,2],[2,370],[370,94],[289,305],[305,455],[455,289],[339,254],[254,448],[448,339],[359,255],[255,446],[446,359],[254,253],[253,449],[449,254],[253,252],[252,450],[450,253],[252,256],[256,451],[451,252],[256,341],[341,452],[452,256],[414,413],[413,463],[463,414],[286,441],[441,414],[414,286],[286,258],[258,441],[441,286],[258,257],[257,442],[442,258],[257,259],[259,443],[443,257],[259,260],[260,444],[444,259],[260,467],[467,445],[445,260],[309,459],[459,250],[250,309],[305,289],[289,290],[290,305],[305,290],[290,460],[460,305],[401,376],[376,435],[435,401],[309,250],[250,392],[392,309],[376,411],[411,433],[433,376],[453,341],[341,464],[464,453],[357,453],[453,465],[465,357],[343,357],[357,412],[412,343],[437,343],[343,399],[399,437],[344,360],[360,440],[440,344],[420,437],[437,456],[456,420],[360,420],[420,363],[363,360],[361,401],[401,288],[288,361],[265,372],[372,353],[353,265],[390,339],[339,249],[249,390],[339,448],[448,255],[255,339]);qt([0,1],[1,2],[2,3],[3,4],[0,5],[5,6],[6,7],[7,8],[5,9],[9,10],[10,11],[11,12],[9,13],[13,14],[14,15],[15,16],[13,17],[0,17],[17,18],[18,19],[19,20]);qt([0,1],[1,2],[2,3],[3,7],[0,4],[4,5],[5,6],[6,8],[9,10],[11,12],[11,13],[13,15],[15,17],[15,19],[15,21],[17,19],[12,14],[14,16],[16,18],[16,20],[16,22],[18,20],[11,23],[12,24],[23,24],[23,25],[24,26],[25,27],[26,28],[27,29],[28,30],[29,31],[30,32],[27,31],[28,32]);var Ge=[0,Mt,-2],Is=[0,de,-3,nt,de,-1],fl=[0,Is],dl=[0,Is,Mt,-1],hl=[0,de,-1,nt],Af=[1,2,3,4,5,6,7,8,9,10,14,15],Ef=class extends le{constructor(t){super(t)}};Ef.prototype.g=ar([0,Vt,[0,Af,J,Is,J,[0,Is,Ge],J,fl,J,[0,fl,Ge],J,hl,J,[0,de,-3,nt,re],J,[0,de,-3,nt],J,[0,et,de,-2,nt,Mt,nt,-1,2,de,Ge],J,dl,J,[0,dl,Ge],de,Ge,et,J,[0,de,-3,nt,Ge,-1],J,[0,Vt,hl]],et,[0,et,Mt,-1,nt]]);const Tf=["title"],If=["src","alt"],kf={key:1,class:"avatar__initials"},Cf=Ft({__name:"Avatar",props:{name:{},src:{default:void 0},size:{default:"md"}},setup(t){const e=t,n=at(()=>{const s=e.name.trim().split(" ");return s.length>=2?`${s[0][0]}${s[s.length-1][0]}`.toUpperCase():e.name.slice(0,2).toUpperCase()});return(s,r)=>(I(),M("div",{class:Ot(["avatar",`avatar--${t.size}`]),title:t.name},[t.src?(I(),M("img",{key:0,class:"avatar__image",src:t.src,alt:t.name},null,8,If)):(I(),M("span",kf,z(n.value),1))],10,Tf))}}),Of=Wt(Cf,[["__scopeId","data-v-a70f049d"]]),Mf=Ft({__name:"Badge",props:{variant:{default:"default"},size:{default:"md"}},setup(t){const e=t,n=at(()=>({fontSize:{sm:"0.75rem",md:"0.875rem",lg:"1rem"}[e.size]}));return(s,r)=>(I(),M("span",{class:Ot(["badge",`badge--${t.variant}`]),style:un(n.value)},[jn(s.$slots,"default",{},void 0)],6))}}),Cr=Wt(Mf,[["__scopeId","data-v-714e24a1"]]),Pf={class:"progress-bar"},Rf={class:"progress-bar__track"},Df={key:0,class:"progress-bar__label"},Nf=Ft({__name:"ProgressBar",props:{percentage:{},variant:{default:"primary"},showLabel:{type:Boolean,default:!0}},setup(t){const e=Math.min(100,Math.max(0,t.percentage));return(n,s)=>(I(),M("div",Pf,[T("div",Rf,[T("div",{class:Ot(["progress-bar__fill",`progress-bar__fill--${t.variant}`]),style:un({width:`${bt(e)}%`})},[t.showLabel?(I(),M("span",Df,z(bt(e))+"%",1)):ft("",!0)],6)])]))}}),jf=Wt(Nf,[["__scopeId","data-v-ce7cc6b9"]]),$f={class:"day-bar__header"},Ff={class:"day-bar__date"},Bf={class:"day-bar__hours"},Lf={class:"day-bar__progress"},Uf={key:0,class:"day-bar__description"},Hf=Ft({__name:"DayBar",props:{day:{},maxHours:{default:8},variant:{default:"default"}},setup(t){const e=t,n=i=>{const o=new Date,l=new Date(o);l.setDate(l.getDate()-1);const a=new Date(i);return a.toDateString()===o.toDateString()?"Hoje":a.toDateString()===l.toDateString()?"Ontem":a.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:void 0})},s=at(()=>Math.min(e.day.hours/e.maxHours*100,100)),r=at(()=>{const i=e.day.hours/e.maxHours;return i>=1?"success":i>=.75?"primary":i>=.5?"warning":"danger"});return(i,o)=>(I(),M("div",{class:Ot(["day-bar",`day-bar--${t.variant}`])},[T("div",$f,[T("span",Ff,z(n(t.day.date)),1),T("span",Bf,z(t.day.hours)+"h",1)]),T("div",Lf,[T("div",{class:Ot(["day-bar__fill",`day-bar__fill--${r.value}`]),style:un({width:`${s.value}%`})},null,6)]),t.variant==="default"&&t.day.description?(I(),M("p",Uf,z(t.day.description),1)):ft("",!0)],2))}}),Wf=Wt(Hf,[["__scopeId","data-v-8cc39d72"]]),Vf={class:"project-breadcrumb"},Kf={key:0,class:"project-breadcrumb__separator"},zf=Ft({__name:"ProjectBreadcrumb",props:{project:{},maxSegments:{default:3},separator:{default:"/"}},setup(t){const e=t,n=at(()=>e.project.segments.length<=e.maxSegments?e.project.segments:[e.project.segments[0],"...",...e.project.segments.slice(-e.maxSegments+1)]);return(s,r)=>(I(),M("div",Vf,[(I(!0),M(pt,null,Nn(n.value,(i,o)=>(I(),M("span",{class:"project-breadcrumb__item",key:`segment-${o}`},[T("span",{class:Ot(["project-breadcrumb__segment",{"project-breadcrumb__segment--ellipsis":i==="..."}])},z(i),3),o<n.value.length-1?(I(),M("span",Kf,z(t.separator),1)):ft("",!0)]))),128))]))}}),Jf=Wt(zf,[["__scopeId","data-v-ae1036f5"]]),qf={class:"task-header__info"},Gf={class:"task-header__name"},Xf={key:0,class:"task-header__email"},Yf=Ft({__name:"TaskHeader",props:{assignee:{},size:{default:"md"}},setup(t){return(e,n)=>(I(),M("div",{class:Ot(["task-header",`task-header--${t.size}`])},[St(bt(Of),{name:t.assignee.name,src:t.assignee.avatar,size:t.size},null,8,["name","src","size"]),T("div",qf,[T("span",Gf,z(t.assignee.name),1),t.assignee.email?(I(),M("span",Xf,z(t.assignee.email),1)):ft("",!0)])],2))}}),Zf=Wt(Yf,[["__scopeId","data-v-743d664f"]]),Qf={class:"time-estimate__item"},t3={class:"time-estimate__value"},e3={key:0,class:"time-estimate__separator"},n3={key:1,class:"time-estimate__separator"},s3={class:"time-estimate__item"},r3={class:"time-estimate__value time-estimate__value--spent"},i3={key:2,class:"time-estimate__separator"},o3={key:3,class:"time-estimate__separator"},l3={class:"time-estimate__item"},a3={class:"time-estimate__value time-estimate__value--remaining"},c3=Ft({__name:"TimeEstimate",props:{estimate:{},variant:{default:"default"}},setup(t){const e=r=>`${r}h`,n=r=>r.estimated===0?0:Math.round(r.spent/r.estimated*100),s=r=>{const i=n(r);return i>=100?"danger":i>=80?"warning":"ok"};return(r,i)=>(I(),M("div",{class:Ot(["time-estimate",[`time-estimate--${t.variant}`,`time-estimate--${s(t.estimate)}`]])},[T("div",Qf,[i[0]||(i[0]=T("span",{class:"time-estimate__label"},"Estimado",-1)),T("span",t3,z(e(t.estimate.estimated)),1)]),t.variant==="default"?(I(),M("div",e3,"→")):(I(),M("div",n3,"/")),T("div",s3,[i[1]||(i[1]=T("span",{class:"time-estimate__label"},"Gasto",-1)),T("span",r3,z(e(t.estimate.spent)),1)]),t.variant==="default"?(I(),M("div",i3,"→")):(I(),M("div",o3,"/")),T("div",l3,[i[2]||(i[2]=T("span",{class:"time-estimate__label"},"Restante",-1)),T("span",a3,z(e(t.estimate.remaining)),1)])],2))}}),u3=Wt(c3,[["__scopeId","data-v-ea3429d0"]]),f3={class:"dashboard-header"},d3={class:"header-content"},h3={class:"header-title"},p3={class:"connection-status"},g3={class:"status-text"},_3=["disabled"],m3={key:0,class:"error-banner"},y3={class:"error-message"},v3=Ft({__name:"DashboardHeader",props:{title:{default:"Dashboard"},status:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},retryText:{default:"Tentar novamente"},retryingText:{default:"Reconectando..."}},emits:["retry"],setup(t){return(e,n)=>(I(),M("header",f3,[T("div",d3,[T("h1",h3,z(t.title),1),T("div",p3,[T("span",{class:Ot(["status-indicator",`status-indicator--${t.status}`])},null,2),T("span",g3,z(t.statusText),1),t.showRetry?(I(),M("button",{key:0,class:"retry-button",disabled:t.isRetrying,onClick:n[0]||(n[0]=s=>e.$emit("retry"))},z(t.isRetrying?t.retryingText:t.retryText),9,_3)):ft("",!0)])]),t.errorMessage?(I(),M("div",m3,[n[1]||(n[1]=T("span",{class:"error-icon"},"⚠️",-1)),T("span",y3,z(t.errorMessage),1)])):ft("",!0)]))}}),b3=Wt(v3,[["__scopeId","data-v-c7d8a980"]]),w3={class:"task-card__header"},x3={class:"task-card__header-left"},S3={class:"task-card__title"},A3={key:1,class:"task-card__progress"},E3={key:3,class:"task-card__days"},T3={class:"task-card__days-list"},I3={key:4,class:"task-card__dates"},k3={key:0,class:"task-card__date"},C3={class:"task-card__date-value"},O3={key:1,class:"task-card__date"},M3={class:"task-card__date-value"},P3={key:5,class:"task-card__tags"},R3={key:6,class:"task-card__warnings"},D3=Ft({__name:"TaskCard",props:{task:{},id:{},number:{},title:{},status:{},assignee:{},project:{},estimates:{},progress:{},tags:{},warnings:{},dueDate:{},startDate:{},variant:{default:"default"}},setup(t){const e=t,n=at(()=>e.task?{...e.task,...e.id&&{id:e.id},...e.number!==void 0&&{number:e.number},...e.title&&{title:e.title},...e.status&&{status:e.status},...e.assignee&&{assignee:e.assignee},...e.project&&{project:e.project},...e.estimates&&{estimates:e.estimates},...e.progress&&{progress:e.progress},...e.tags&&{tags:e.tags},...e.warnings&&{warnings:e.warnings}}:{id:e.id||"",number:e.number||0,title:e.title||"",status:e.status||"pending",assignee:e.assignee,project:e.project||{segments:[]},estimates:e.estimates,progress:e.progress,tags:e.tags||[],warnings:e.warnings||[],dates:{created:new Date,...e.dueDate&&{dueDate:typeof e.dueDate=="string"?new Date(e.dueDate):e.dueDate},...e.startDate&&{started:typeof e.startDate=="string"?new Date(e.startDate):e.startDate}}}),s={pending:"default","in-progress":"primary",paused:"warning",done:"success",blocked:"danger"},r=at(()=>{var a;const d=((a=n.value.progress)==null?void 0:a.percentage)||0;return n.value.status==="blocked"?"danger":n.value.status==="done"||d>=75?"success":d>=50?"primary":d>=25?"warning":"danger"}),i=at(()=>({pending:"Pendente","in-progress":"Em Progresso",paused:"Pausada",done:"Concluída",blocked:"Bloqueada"})[n.value.status]),o=at(()=>n.value.warnings&&n.value.warnings.length>0),l=a=>(typeof a=="string"?new Date(a):a).toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit"});return(a,d)=>{var u;return I(),M("div",{class:Ot(["task-card",[`task-card--${t.variant}`,`task-card--${n.value.status}`,{"task-card--has-warnings":o.value}]])},[T("div",w3,[T("div",x3,[St(bt(Cr),{variant:s[n.value.status],size:"md"},{default:Pn(()=>[Bn(" #"+z(n.value.number),1)]),_:1},8,["variant"]),St(bt(Cr),{variant:"info",size:"sm"},{default:Pn(()=>[Bn(z(i.value),1)]),_:1})]),n.value.assignee?(I(),Ht(bt(Zf),{key:0,assignee:n.value.assignee,size:"sm"},null,8,["assignee"])):ft("",!0)]),T("h3",S3,z(n.value.title),1),n.value.project?(I(),Ht(bt(Jf),{key:0,class:"task-card__project",project:n.value.project,"max-segments":3},null,8,["project"])):ft("",!0),n.value.progress?(I(),M("div",A3,[St(bt(jf),{percentage:n.value.progress.percentage,variant:r.value,"show-label":""},null,8,["percentage","variant"])])):ft("",!0),n.value.estimates?(I(),Ht(bt(u3),{key:2,class:"task-card__estimates",estimate:n.value.estimates,variant:"compact"},null,8,["estimate"])):ft("",!0),(u=n.value.progress)!=null&&u.dayLogs&&n.value.progress.dayLogs.length>0?(I(),M("div",E3,[d[0]||(d[0]=T("h4",{class:"task-card__days-title"},"Progresso Diário",-1)),T("div",T3,[(I(!0),M(pt,null,Nn(n.value.progress.dayLogs.slice(-3),(h,v)=>(I(),Ht(bt(Wf),{key:v,day:h,"max-hours":8,variant:"compact"},null,8,["day"]))),128))])])):ft("",!0),n.value.dates?(I(),M("div",I3,[n.value.dates.dueDate?(I(),M("div",k3,[d[1]||(d[1]=T("span",{class:"task-card__date-label"},"Prazo:",-1)),T("span",C3,z(l(n.value.dates.dueDate)),1)])):ft("",!0),n.value.dates.started?(I(),M("div",O3,[d[2]||(d[2]=T("span",{class:"task-card__date-label"},"Início:",-1)),T("span",M3,z(l(n.value.dates.started)),1)])):ft("",!0)])):ft("",!0),n.value.tags&&n.value.tags.length>0?(I(),M("div",P3,[(I(!0),M(pt,null,Nn(n.value.tags,h=>(I(),Ht(bt(Cr),{key:h,variant:"default",size:"sm"},{default:Pn(()=>[Bn(z(h),1)]),_:2},1024))),128))])):ft("",!0),o.value?(I(),M("div",R3,[(I(!0),M(pt,null,Nn(n.value.warnings,(h,v)=>(I(),M("div",{class:"task-card__warning",key:v}," ⚠️ "+z(h),1))),128))])):ft("",!0)],2)}}}),N3=Wt(D3,[["__scopeId","data-v-5221bc49"]]),j3={class:"dashboard-layout"},$3={class:"dashboard-main"},F3=Ft({__name:"DashboardLayout",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1}},emits:["retry"],setup(t){return(e,n)=>(I(),M("div",j3,[St(b3,{title:t.title,status:t.connectionStatus,"status-text":t.statusText,"error-message":t.errorMessage,"show-retry":t.showRetry,"is-retrying":t.isRetrying,onRetry:n[0]||(n[0]=s=>e.$emit("retry"))},null,8,["title","status","status-text","error-message","show-retry","is-retrying"]),T("main",$3,[jn(e.$slots,"default",{},void 0)])]))}}),B3=Wt(F3,[["__scopeId","data-v-78602c1a"]]),L3={class:"task-grid-container"},U3={class:"task-grid-header"},H3={class:"task-grid-title"},W3={class:"task-grid-stats"},V3={class:"stat stat--total"},K3={class:"stat__value"},z3={key:0,class:"stat stat--in-progress"},J3={class:"stat__value"},q3={key:1,class:"stat stat--blocked"},G3={class:"stat__value"},X3={key:2,class:"stat stat--paused"},Y3={class:"stat__value"},Z3={key:0,class:"task-grid-loading"},Q3={key:1,class:"task-grid-empty"},t4={class:"empty-message"},e4={key:3,class:"task-grid-footer"},n4=Ft({__name:"TaskGrid",props:{tasks:{},columns:{default:3},gap:{default:"md"},loading:{type:Boolean,default:!1},emptyMessage:{default:"Nenhuma tarefa encontrada"},variant:{default:"default"}},setup(t){const e=t,n=at(()=>["task-grid",{1:"task-grid--cols-1",2:"task-grid--cols-2",3:"task-grid--cols-3",4:"task-grid--cols-4"}[e.columns],`task-grid--gap-${e.gap}`]),s=at(()=>({inProgress:e.tasks.filter(i=>i.status==="in-progress"),blocked:e.tasks.filter(i=>i.status==="blocked"),paused:e.tasks.filter(i=>i.status==="paused"),pending:e.tasks.filter(i=>i.status==="pending"),done:e.tasks.filter(i=>i.status==="done")})),r=at(()=>({total:e.tasks.length,inProgress:s.value.inProgress.length,blocked:s.value.blocked.length,paused:s.value.paused.length,pending:s.value.pending.length,done:s.value.done.length}));return(i,o)=>(I(),M("div",L3,[T("div",U3,[T("h2",H3,[jn(i.$slots,"title",{},()=>[o[0]||(o[0]=Bn(" Tarefas em Andamento ",-1))])]),T("div",W3,[T("div",V3,[T("span",K3,z(r.value.total),1),o[1]||(o[1]=T("span",{class:"stat__label"},"Total",-1))]),r.value.inProgress>0?(I(),M("div",z3,[T("span",J3,z(r.value.inProgress),1),o[2]||(o[2]=T("span",{class:"stat__label"},"Em Progresso",-1))])):ft("",!0),r.value.blocked>0?(I(),M("div",q3,[T("span",G3,z(r.value.blocked),1),o[3]||(o[3]=T("span",{class:"stat__label"},"Bloqueadas",-1))])):ft("",!0),r.value.paused>0?(I(),M("div",X3,[T("span",Y3,z(r.value.paused),1),o[4]||(o[4]=T("span",{class:"stat__label"},"Pausadas",-1))])):ft("",!0)])]),t.loading?(I(),M("div",Z3,[...o[5]||(o[5]=[T("div",{class:"spinner"},null,-1),T("p",null,"Carregando tarefas...",-1)])])):t.tasks.length===0?(I(),M("div",Q3,[o[6]||(o[6]=T("div",{class:"empty-icon"},"📋",-1)),T("p",t4,z(t.emptyMessage),1),jn(i.$slots,"empty-action",{},void 0)])):(I(),M("div",{key:2,class:Ot(n.value)},[(I(!0),M(pt,null,Nn(t.tasks,l=>(I(),Ht(bt(N3),{key:l.id,task:l,variant:t.variant},null,8,["task","variant"]))),128))],2)),i.$slots.footer?(I(),M("div",e4,[jn(i.$slots,"footer",{},void 0)])):ft("",!0)]))}}),s4=Wt(n4,[["__scopeId","data-v-1d8c0daf"]]),r4={key:0,class:"loading-state"},i4={key:1,class:"empty-state"},o4=Ft({__name:"Dashboard",props:{title:{default:"Dashboard"},connectionStatus:{default:"disconnected"},statusText:{default:"Desconectado"},errorMessage:{default:""},showRetry:{type:Boolean,default:!1},isRetrying:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},tasks:{}},emits:["retry"],setup(t){return(e,n)=>(I(),Ht(B3,{title:t.title,"connection-status":t.connectionStatus,"status-text":t.statusText,"error-message":t.errorMessage,"show-retry":t.showRetry,"is-retrying":t.isRetrying,onRetry:n[0]||(n[0]=s=>e.$emit("retry"))},{default:Pn(()=>[t.isLoading&&(t.tasks??[]).length===0?(I(),M("div",r4,[...n[1]||(n[1]=[T("div",{class:"spinner"},null,-1),T("p",null,"Carregando tarefas...",-1)])])):!t.isLoading&&(t.tasks??[]).length===0?(I(),M("div",i4,[...n[2]||(n[2]=[T("p",{class:"empty-icon"},"📋",-1),T("h2",null,"Nenhuma tarefa encontrada",-1),T("p",null,"Conecte-se ao servidor para visualizar suas tarefas.",-1)])])):(I(),Ht(s4,{key:2,tasks:t.tasks??[]},null,8,["tasks"]))]),_:1},8,["title","connection-status","status-text","error-message","show-retry","is-retrying"]))}}),l4=Wt(o4,[["__scopeId","data-v-2590008a"]]),pl=5e3,a4=1e4,c4=3e4,gl=5e3,u4=100,f4=500,En=new Map,Tn=new Map,Or=new Map,Mr=new Map,d4=c2("taskin-tasks",{state:()=>({tasks:[],loading:!1,connected:!1,error:null,reconnectAttempts:0,lastSync:null}),getters:{taskById(t){return e=>t.tasks.find(n=>n.id===e)},tasksByStatus(t){return e=>t.tasks.filter(n=>n.status===e)},connectionStatus(t){return{connected:t.connected,error:t.error,reconnectAttempts:t.reconnectAttempts}}},actions:{connect(t){const e=this.$id;En.has(e)&&this.disconnect(),Tn.set(e,{autoReconnect:!0,reconnectDelay:pl,maxReconnectAttempts:0,debug:!1,...t}),this._connect()},_connect(){const t=this.$id,e=Tn.get(t);if(e){this._log("Connecting to",e.wsUrl);try{const n=new WebSocket(e.wsUrl);En.set(t,n),n.onopen=()=>{this._log("Connected"),this.connected=!0,this.error=null,this.reconnectAttempts=0,this.send({type:"list"}),this._startHeartbeat()},n.onmessage=s=>{try{const r=JSON.parse(s.data);this.handleMessage(r)}catch(r){this._log("Error parsing message:",r)}},n.onerror=s=>{this._log("WebSocket error:",s),this.handleError(new Error("WebSocket connection error"))},n.onclose=()=>{this._log("Disconnected"),this.connected=!1,this._stopHeartbeat(),e.autoReconnect&&this.reconnect()}}catch(n){this.handleError(n instanceof Error?n:new Error(String(n)))}}},disconnect(){const t=this.$id;this._log("Disconnecting"),this._stopHeartbeat();const e=En.get(t);if(e){const n=Tn.get(t);n&&(n.autoReconnect=!1),e.close(),En.delete(t)}this.connected=!1},send(t){const e=this.$id,n=En.get(e);if(!n||n.readyState!==WebSocket.OPEN){this._log("Cannot send message: not connected");return}const s={...t,timestamp:Date.now()};this._log("Sending:",s),n.send(JSON.stringify(s))},handleMessage(t){var e;switch(this._log("Received:",t),t.type){case"tasks":this.tasks=t.payload||[],this._log("Received tasks:",this.tasks.length),this.tasks.length>0&&this._log("First task sample:",JSON.stringify(this.tasks[0],null,2)),this.lastSync=Date.now(),this.loading=!1;break;case"task:found":if(t.payload){const n=t.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0?this.tasks[s]=n:this.tasks.push(n)}break;case"task:updated":if(t.payload){const n=t.payload,s=this.tasks.findIndex(r=>r.id===n.id);s>=0&&(this.tasks[s]=n)}break;case"task:created":if(t.payload){const n=t.payload;this.tasks.push(n)}break;case"task:deleted":if(t.payload){const n=t.payload.id;this.tasks=this.tasks.filter(s=>s.id!==n)}break;case"error":this.error=((e=t.payload)==null?void 0:e.message)||"Unknown error",this._log("Server error:",this.error);break;case"pong":Mr.set(this.$id,Date.now());break;default:this._log("Unknown message type:",t.type)}},handleError(t){this._log("Error:",t.message),this.error=t.message,this.connected=!1},reconnect(){const t=Tn.get(this.$id);if(!t)return;const e=t.maxReconnectAttempts||0;if(e>0&&this.reconnectAttempts>=e){this._log("Max reconnection attempts reached"),this.error="Max reconnection attempts reached";return}this.reconnectAttempts++;const n=t.reconnectDelay||pl;this._log(`Reconnecting in ${n}ms (attempt ${this.reconnectAttempts})`),setTimeout(()=>{this._connect()},n)},_startHeartbeat(){const t=this.$id;this._stopHeartbeat(),Mr.set(t,Date.now());const e=setInterval(()=>{const n=Date.now();if(n-(Mr.get(t)||n)>c4){this._log("Heartbeat timeout, reconnecting"),this.disconnect(),this.reconnect();return}this.send({type:"ping"})},a4);Or.set(t,e)},_stopHeartbeat(){const t=this.$id,e=Or.get(t);e&&(clearInterval(e),Or.delete(t))},_log(...t){const e=Tn.get(this.$id);e!=null&&e.debug&&console.log("[PiniaTaskProvider]",...t)},async findTask(t){const e=this.tasks.find(n=>n.id===t);if(e)return e;if(this.connected)return new Promise(n=>{const s=`find-${t}-${Date.now()}`,r=setTimeout(()=>{n(void 0)},gl);this.send({type:"find",payload:{taskId:t},requestId:s}),setTimeout(()=>{clearTimeout(r),n(this.tasks.find(i=>i.id===t))},f4)})},async getAllTasks(){return this.tasks.length>0?this.tasks:this.connected?(this.loading=!0,this.send({type:"list"}),new Promise(t=>{const e=setTimeout(()=>{this.loading=!1,t(this.tasks)},gl),n=setInterval(()=>{(!this.loading||this.tasks.length>0)&&(clearTimeout(e),clearInterval(n),this.loading=!1,t(this.tasks))},u4)})):this.tasks},async updateTask(t){if(!this.connected)throw new Error("Not connected to server");const e=this.tasks.findIndex(n=>n.id===t.id);e>=0&&(this.tasks[e]=t),this.send({type:"update",payload:t})}}}),h4=d4,p4=Ft({__name:"App",setup(t){const e=jr(window.VITE_WS_URL||void 0||"ws://localhost:3001"),n=jr(5e3),s=h4(),r=at(()=>s.connectionStatus),i=at(()=>r.value.connected),o=at(()=>r.value.error),l=at(()=>s.tasks.map(w=>{let E=0;switch(w.status){case"done":E=100;break;case"in-progress":E=50;break;case"paused":E=30;break;case"pending":E=0;break;case"blocked":E=20;break}const R={id:w.id,number:parseInt(w.id,10)||0,title:w.title,description:w.content,status:w.status,assignee:w.assignee?{id:w.assignee.id,name:w.assignee.name}:void 0,dates:{created:w.createdAt||new Date().toISOString()},tags:w.type?[w.type]:[],progress:{percentage:E}};return console.log("Mapped task:",R.id,"assignee:",R.assignee),R})),a=at(()=>s.loading);e1(()=>{s.connect({wsUrl:e.value,autoReconnect:!0,reconnectDelay:n.value})}),gi(()=>{s.disconnect()});const d=()=>{s.getAllTasks()},u=at(()=>i.value?"connected":o.value?"error":"connecting"),h=at(()=>i.value?"Conectado":o.value?"Erro de conexão":"Conectando...");return(v,w)=>(I(),Ht(bt(l4),{title:"Taskin Dashboard","connection-status":u.value,"status-text":h.value,"error-message":o.value||"","show-retry":!!o.value,"is-retrying":a.value,"is-loading":a.value,tasks:l.value,onRetry:d},null,8,["connection-status","status-text","error-message","show-retry","is-retrying","is-loading","tasks"]))}}),g4=(t,e)=>{const n=t.__vccOpts||t;for(const[s,r]of e)n[s]=r;return n},_4=g4(p4,[["__scopeId","data-v-3d922bc5"]]),Ra=t2(_4),m4=s2();Ra.use(m4);Ra.mount("#app");
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Taskin Dashboard</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-xyfhDpFX.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-CBcTtQiR.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/index.js
CHANGED
|
@@ -106,18 +106,9 @@ async function fixTaskFile(filePath) {
|
|
|
106
106
|
const content = await readFile(filePath, "utf-8");
|
|
107
107
|
const locale = detectLocale(content);
|
|
108
108
|
const i18n = getI18n(locale);
|
|
109
|
-
const statusPattern = new RegExp(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
);
|
|
113
|
-
const typePattern = new RegExp(
|
|
114
|
-
`##\\s*(?:Type|${i18n.type})\\s*\\n\\s*([^\\n\\r]+)`,
|
|
115
|
-
"i"
|
|
116
|
-
);
|
|
117
|
-
const assigneePattern = new RegExp(
|
|
118
|
-
`##\\s*(?:Assignee|${i18n.assignee})\\s*\\n\\s*([^\\n\\r]+)`,
|
|
119
|
-
"i"
|
|
120
|
-
);
|
|
109
|
+
const statusPattern = new RegExp(`##\\s*(?:Status|${i18n.status})\\s*\\n\\s*([^\\n\\r]+)`, "i");
|
|
110
|
+
const typePattern = new RegExp(`##\\s*(?:Type|${i18n.type})\\s*\\n\\s*([^\\n\\r]+)`, "i");
|
|
111
|
+
const assigneePattern = new RegExp(`##\\s*(?:Assignee|${i18n.assignee})\\s*\\n\\s*([^\\n\\r]+)`, "i");
|
|
121
112
|
const hasSectionStatus = statusPattern.test(content);
|
|
122
113
|
const hasSectionType = typePattern.test(content);
|
|
123
114
|
const hasSectionAssignee = assigneePattern.test(content);
|
|
@@ -177,18 +168,9 @@ async function fixTaskFile(filePath) {
|
|
|
177
168
|
].join("\n");
|
|
178
169
|
}
|
|
179
170
|
if (needsSpaceFix) {
|
|
180
|
-
newContent = newContent.replace(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
);
|
|
184
|
-
newContent = newContent.replace(
|
|
185
|
-
/^(Type|Tipo):\s*(.+?)([ \t]*)$/im,
|
|
186
|
-
(_, key, value) => `${key}: ${value.trim()} `
|
|
187
|
-
);
|
|
188
|
-
newContent = newContent.replace(
|
|
189
|
-
/^(Assignee|Responsável):\s*(.+?)([ \t]*)$/im,
|
|
190
|
-
(_, key, value) => `${key}: ${value.trim()} `
|
|
191
|
-
);
|
|
171
|
+
newContent = newContent.replace(/^(Status|Tipo):\s*(.+?)([ \t]*)$/im, (_, key, value) => `${key}: ${value.trim()} `);
|
|
172
|
+
newContent = newContent.replace(/^(Type|Tipo):\s*(.+?)([ \t]*)$/im, (_, key, value) => `${key}: ${value.trim()} `);
|
|
173
|
+
newContent = newContent.replace(/^(Assignee|Responsável):\s*(.+?)([ \t]*)$/im, (_, key, value) => `${key}: ${value.trim()} `);
|
|
192
174
|
}
|
|
193
175
|
const finalContentRaw = newContent.replace(/\n{3,}/g, "\n\n").trim() + "\n";
|
|
194
176
|
const originalContentRaw = content.replace(/\n{3,}/g, "\n\n").trim() + "\n";
|
|
@@ -221,14 +203,8 @@ async function validateTaskFile(filePath) {
|
|
|
221
203
|
const locale = detectLocale(content);
|
|
222
204
|
const i18n = getI18n(locale);
|
|
223
205
|
const hasTitleSection = lines.some((line) => line.trim().startsWith("# "));
|
|
224
|
-
const inlineStatusPattern = new RegExp(
|
|
225
|
-
|
|
226
|
-
"im"
|
|
227
|
-
);
|
|
228
|
-
const sectionStatusPattern = new RegExp(
|
|
229
|
-
`##\\s*(?:Status|${i18n.status})`,
|
|
230
|
-
"i"
|
|
231
|
-
);
|
|
206
|
+
const inlineStatusPattern = new RegExp(`^(?:Status|${i18n.status}):\\s*.+$`, "im");
|
|
207
|
+
const sectionStatusPattern = new RegExp(`##\\s*(?:Status|${i18n.status})`, "i");
|
|
232
208
|
const hasInlineStatus = inlineStatusPattern.test(content);
|
|
233
209
|
const hasSectionStatus = sectionStatusPattern.test(content);
|
|
234
210
|
const hasDescriptionSection = content.includes("## Description") || content.includes("## Descri\xE7\xE3o");
|
|
@@ -242,9 +218,7 @@ async function validateTaskFile(filePath) {
|
|
|
242
218
|
});
|
|
243
219
|
}
|
|
244
220
|
if (hasSectionStatus) {
|
|
245
|
-
const statusLineIdx = lines.findIndex(
|
|
246
|
-
(line) => sectionStatusPattern.test(line.trim())
|
|
247
|
-
);
|
|
221
|
+
const statusLineIdx = lines.findIndex((line) => sectionStatusPattern.test(line.trim()));
|
|
248
222
|
issues.push({
|
|
249
223
|
file: filePath,
|
|
250
224
|
line: statusLineIdx >= 0 ? statusLineIdx + 1 : void 0,
|
|
@@ -273,9 +247,7 @@ ${i18n.status}: <todo|in-progress|done>`
|
|
|
273
247
|
"blocked",
|
|
274
248
|
"canceled"
|
|
275
249
|
].includes(statusValue)) {
|
|
276
|
-
const statusLineIdx = lines.findIndex(
|
|
277
|
-
(line) => inlineStatusPattern.test(line.trim())
|
|
278
|
-
);
|
|
250
|
+
const statusLineIdx = lines.findIndex((line) => inlineStatusPattern.test(line.trim()));
|
|
279
251
|
issues.push({
|
|
280
252
|
file: filePath,
|
|
281
253
|
line: statusLineIdx >= 0 ? statusLineIdx + 1 : void 0,
|
|
@@ -322,15 +294,9 @@ ${i18n.status}: <todo|in-progress|done>`
|
|
|
322
294
|
return issues;
|
|
323
295
|
}
|
|
324
296
|
function createLintResult(allIssues) {
|
|
325
|
-
const errorCount = allIssues.filter(
|
|
326
|
-
|
|
327
|
-
).length;
|
|
328
|
-
const warningCount = allIssues.filter(
|
|
329
|
-
(issue) => issue.severity === "warning"
|
|
330
|
-
).length;
|
|
331
|
-
const infoCount = allIssues.filter(
|
|
332
|
-
(issue) => issue.severity === "info"
|
|
333
|
-
).length;
|
|
297
|
+
const errorCount = allIssues.filter((issue) => issue.severity === "error").length;
|
|
298
|
+
const warningCount = allIssues.filter((issue) => issue.severity === "warning").length;
|
|
299
|
+
const infoCount = allIssues.filter((issue) => issue.severity === "info").length;
|
|
334
300
|
return {
|
|
335
301
|
valid: errorCount === 0,
|
|
336
302
|
issues: allIssues,
|
|
@@ -7291,11 +7257,15 @@ ${result.error.message}`);
|
|
|
7291
7257
|
}
|
|
7292
7258
|
/**
|
|
7293
7259
|
* Get automation level from config
|
|
7294
|
-
* Returns 'assisted' as default if not configured
|
|
7260
|
+
* Returns 'assisted' as default if not configured or if config loading fails
|
|
7295
7261
|
*/
|
|
7296
7262
|
getAutomationLevel() {
|
|
7297
|
-
|
|
7298
|
-
|
|
7263
|
+
try {
|
|
7264
|
+
const config = this.loadConfig();
|
|
7265
|
+
return config.automation?.level ?? "assisted";
|
|
7266
|
+
} catch {
|
|
7267
|
+
return "assisted";
|
|
7268
|
+
}
|
|
7299
7269
|
}
|
|
7300
7270
|
/**
|
|
7301
7271
|
* Set automation level in config
|
|
@@ -7312,8 +7282,12 @@ ${result.error.message}`);
|
|
|
7312
7282
|
* Get automation configuration
|
|
7313
7283
|
*/
|
|
7314
7284
|
getAutomationConfig() {
|
|
7315
|
-
|
|
7316
|
-
|
|
7285
|
+
try {
|
|
7286
|
+
const config = this.loadConfig();
|
|
7287
|
+
return config.automation ?? { level: "assisted" };
|
|
7288
|
+
} catch {
|
|
7289
|
+
return { level: "assisted" };
|
|
7290
|
+
}
|
|
7317
7291
|
}
|
|
7318
7292
|
/**
|
|
7319
7293
|
* Set automation configuration
|
|
@@ -8024,41 +7998,38 @@ init_esm_shims();
|
|
|
8024
7998
|
// ../utils/dist/security.js
|
|
8025
7999
|
init_esm_shims();
|
|
8026
8000
|
import { z } from "zod";
|
|
8027
|
-
var HostSchema = z.string().refine(
|
|
8028
|
-
(host
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
return hostnameRegex.test(host);
|
|
8042
|
-
},
|
|
8043
|
-
{
|
|
8044
|
-
message: "Invalid host. Must be localhost, a valid IPv4 address, or hostname."
|
|
8001
|
+
var HostSchema = z.string().refine((host) => {
|
|
8002
|
+
if (!host || host.length === 0)
|
|
8003
|
+
return false;
|
|
8004
|
+
if (host === "localhost")
|
|
8005
|
+
return true;
|
|
8006
|
+
const parts = host.split(".");
|
|
8007
|
+
const allNumeric = parts.every((p) => /^\d+$/.test(p));
|
|
8008
|
+
if (allNumeric) {
|
|
8009
|
+
if (parts.length !== 4)
|
|
8010
|
+
return false;
|
|
8011
|
+
return parts.every((part) => {
|
|
8012
|
+
const num = parseInt(part, 10);
|
|
8013
|
+
return !isNaN(num) && num >= 0 && num <= 255 && part === num.toString();
|
|
8014
|
+
});
|
|
8045
8015
|
}
|
|
8046
|
-
)
|
|
8016
|
+
const hostnameRegex = /^[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.[a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
|
|
8017
|
+
return hostnameRegex.test(host);
|
|
8018
|
+
}, {
|
|
8019
|
+
message: "Invalid host. Must be localhost, a valid IPv4 address, or hostname."
|
|
8020
|
+
});
|
|
8047
8021
|
var PortSchema = z.union([
|
|
8048
8022
|
z.number().int().min(1).max(65535),
|
|
8049
8023
|
z.string().regex(/^\d+$/).transform((val) => parseInt(val, 10)).pipe(z.number().int().min(1).max(65535))
|
|
8050
8024
|
]);
|
|
8051
|
-
var WebSocketUrlSchema = z.string().refine(
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
},
|
|
8060
|
-
{ message: "Invalid WebSocket URL. Must use ws:// or wss:// protocol." }
|
|
8061
|
-
);
|
|
8025
|
+
var WebSocketUrlSchema = z.string().refine((url) => {
|
|
8026
|
+
try {
|
|
8027
|
+
const parsed = new URL(url);
|
|
8028
|
+
return parsed.protocol === "ws:" || parsed.protocol === "wss:";
|
|
8029
|
+
} catch {
|
|
8030
|
+
return false;
|
|
8031
|
+
}
|
|
8032
|
+
}, { message: "Invalid WebSocket URL. Must use ws:// or wss:// protocol." });
|
|
8062
8033
|
var TaskIdSchema = z.string().min(1).max(100).regex(/^[a-zA-Z0-9_-]+$/, {
|
|
8063
8034
|
message: "Task ID must contain only alphanumeric characters, hyphens, and underscores."
|
|
8064
8035
|
});
|
|
@@ -8066,25 +8037,23 @@ var UserIdSchema = z.string().min(1).max(100).regex(/^[a-zA-Z0-9._-]+$/, {
|
|
|
8066
8037
|
message: "User ID must contain only alphanumeric characters, dots, hyphens, and underscores."
|
|
8067
8038
|
});
|
|
8068
8039
|
var EmailSchema = z.string().email().max(254);
|
|
8069
|
-
var SafePathSchema = z.string().refine(
|
|
8070
|
-
(filePath
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
|
|
8085
|
-
|
|
8086
|
-
}
|
|
8087
|
-
);
|
|
8040
|
+
var SafePathSchema = z.string().refine((filePath) => {
|
|
8041
|
+
if (!filePath || filePath.length === 0)
|
|
8042
|
+
return false;
|
|
8043
|
+
const dangerousPatterns = [
|
|
8044
|
+
/\.\./,
|
|
8045
|
+
// Parent directory (..)
|
|
8046
|
+
/~\//,
|
|
8047
|
+
// Home directory
|
|
8048
|
+
/^\//,
|
|
8049
|
+
// Absolute path
|
|
8050
|
+
/^[A-Za-z]:\\/
|
|
8051
|
+
// Windows absolute path
|
|
8052
|
+
];
|
|
8053
|
+
return !dangerousPatterns.some((pattern) => pattern.test(filePath));
|
|
8054
|
+
}, {
|
|
8055
|
+
message: "Invalid path. Must be a relative path without traversal patterns."
|
|
8056
|
+
});
|
|
8088
8057
|
var DashboardOptionsSchema = z.object({
|
|
8089
8058
|
host: HostSchema.optional(),
|
|
8090
8059
|
port: PortSchema.optional(),
|
|
@@ -8446,10 +8415,13 @@ var UserRegistry = class {
|
|
|
8446
8415
|
}
|
|
8447
8416
|
};
|
|
8448
8417
|
|
|
8449
|
-
//
|
|
8418
|
+
// ../task-manager/dist/index.js
|
|
8450
8419
|
init_esm_shims();
|
|
8451
8420
|
|
|
8452
|
-
//
|
|
8421
|
+
// ../task-manager/dist/metrics.types.js
|
|
8422
|
+
init_esm_shims();
|
|
8423
|
+
|
|
8424
|
+
// ../task-manager/dist/task-manager.js
|
|
8453
8425
|
init_esm_shims();
|
|
8454
8426
|
var TaskManager = class {
|
|
8455
8427
|
taskProvider;
|
|
@@ -8488,13 +8460,13 @@ var TaskManager = class {
|
|
|
8488
8460
|
}
|
|
8489
8461
|
};
|
|
8490
8462
|
|
|
8491
|
-
//
|
|
8463
|
+
// ../task-manager/dist/task-manager.types.js
|
|
8492
8464
|
init_esm_shims();
|
|
8493
8465
|
|
|
8494
|
-
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.
|
|
8466
|
+
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.4/node_modules/@opentask/taskin-task-server-ws/dist/index.js
|
|
8495
8467
|
init_esm_shims();
|
|
8496
8468
|
|
|
8497
|
-
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.
|
|
8469
|
+
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.4/node_modules/@opentask/taskin-task-server-ws/dist/task-server-ws.js
|
|
8498
8470
|
init_esm_shims();
|
|
8499
8471
|
import { randomUUID } from "crypto";
|
|
8500
8472
|
import { WebSocket, WebSocketServer } from "ws";
|
|
@@ -8835,10 +8807,10 @@ var TaskWebSocketServer = class {
|
|
|
8835
8807
|
}
|
|
8836
8808
|
};
|
|
8837
8809
|
|
|
8838
|
-
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.
|
|
8810
|
+
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.4/node_modules/@opentask/taskin-task-server-ws/dist/task-server-ws.mock.js
|
|
8839
8811
|
init_esm_shims();
|
|
8840
8812
|
|
|
8841
|
-
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.
|
|
8813
|
+
// ../../node_modules/.pnpm/@opentask+taskin-task-server-ws@0.1.4/node_modules/@opentask/taskin-task-server-ws/dist/task-server-ws.types.js
|
|
8842
8814
|
init_esm_shims();
|
|
8843
8815
|
|
|
8844
8816
|
// src/commands/dashboard.ts
|
|
@@ -9065,13 +9037,13 @@ async function startDashboard(options) {
|
|
|
9065
9037
|
// src/commands/export.ts
|
|
9066
9038
|
init_esm_shims();
|
|
9067
9039
|
|
|
9068
|
-
//
|
|
9040
|
+
// ../git-utils/dist/src/index.js
|
|
9069
9041
|
init_esm_shims();
|
|
9070
9042
|
|
|
9071
|
-
//
|
|
9043
|
+
// ../git-utils/dist/src/git.js
|
|
9072
9044
|
init_esm_shims();
|
|
9073
9045
|
|
|
9074
|
-
//
|
|
9046
|
+
// ../git-utils/dist/src/git-analyzer.js
|
|
9075
9047
|
init_esm_shims();
|
|
9076
9048
|
import { exec } from "child_process";
|
|
9077
9049
|
import { promisify } from "util";
|
|
@@ -9379,10 +9351,10 @@ ${body}` : subject;
|
|
|
9379
9351
|
}
|
|
9380
9352
|
};
|
|
9381
9353
|
|
|
9382
|
-
//
|
|
9354
|
+
// ../git-utils/dist/src/git-analyzer.types.js
|
|
9383
9355
|
init_esm_shims();
|
|
9384
9356
|
|
|
9385
|
-
//
|
|
9357
|
+
// ../git-utils/dist/src/git.types.js
|
|
9386
9358
|
init_esm_shims();
|
|
9387
9359
|
|
|
9388
9360
|
// src/commands/export.ts
|
|
@@ -9470,6 +9442,7 @@ function registerExportCommand(program2) {
|
|
|
9470
9442
|
|
|
9471
9443
|
// src/commands/finish.ts
|
|
9472
9444
|
init_esm_shims();
|
|
9445
|
+
import { execSync } from "child_process";
|
|
9473
9446
|
import path9 from "path";
|
|
9474
9447
|
|
|
9475
9448
|
// src/lib/sound-player.ts
|
|
@@ -9545,43 +9518,75 @@ async function finishTask(taskId, options) {
|
|
|
9545
9518
|
error("Task is already done");
|
|
9546
9519
|
process.exit(1);
|
|
9547
9520
|
}
|
|
9521
|
+
const configManager = new ConfigManager(monorepoRoot);
|
|
9522
|
+
const behavior = configManager.getAutomationBehavior();
|
|
9548
9523
|
if (!options.skipUpdate) {
|
|
9549
9524
|
info("Marking task as done...");
|
|
9550
9525
|
const updatedTask = await taskManager.finishTask(task.id);
|
|
9551
9526
|
success(`Task ${updatedTask.id} completed successfully! \u{1F389}`);
|
|
9552
9527
|
success(`Status changed to: ${updatedTask.status}`);
|
|
9528
|
+
if (behavior.autoCommitStatusChange) {
|
|
9529
|
+
try {
|
|
9530
|
+
execSync(
|
|
9531
|
+
`git add TASKS/task-${normalizedId}-*.md && git commit -m "docs(TASKS): task-${normalizedId} - atualiza status para done [skip-ci]"`,
|
|
9532
|
+
{ cwd: process.cwd(), stdio: "ignore" }
|
|
9533
|
+
);
|
|
9534
|
+
success("\u2713 Auto-committed status change");
|
|
9535
|
+
} catch {
|
|
9536
|
+
}
|
|
9537
|
+
}
|
|
9538
|
+
if (behavior.autoCommitFinish) {
|
|
9539
|
+
const commitType = task.type || "feat";
|
|
9540
|
+
try {
|
|
9541
|
+
execSync("git add .", { cwd: process.cwd(), stdio: "ignore" });
|
|
9542
|
+
execSync(
|
|
9543
|
+
`git commit -m "${commitType}(task-${normalizedId}): ${task.title}"`,
|
|
9544
|
+
{ cwd: process.cwd(), stdio: "ignore" }
|
|
9545
|
+
);
|
|
9546
|
+
success("\u2713 Auto-committed completed work");
|
|
9547
|
+
} catch {
|
|
9548
|
+
}
|
|
9549
|
+
}
|
|
9553
9550
|
} else {
|
|
9554
9551
|
info("Skipping status update (--skip-update flag)");
|
|
9555
9552
|
}
|
|
9556
9553
|
console.log();
|
|
9557
|
-
|
|
9558
|
-
|
|
9559
|
-
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9554
|
+
if (!behavior.autoCommitFinish || options.skipUpdate) {
|
|
9555
|
+
info("Next steps (suggestions):");
|
|
9556
|
+
if (!options.skipUpdate) {
|
|
9557
|
+
const commitType = task.type || "feat";
|
|
9558
|
+
console.log(
|
|
9559
|
+
colors.secondary(
|
|
9560
|
+
` 1. Commit the status change: git add TASKS/task-${normalizedId}-*.md && git commit -m "docs(TASKS): task-${normalizedId} - atualiza status para done [skip-ci]"`
|
|
9561
|
+
)
|
|
9562
|
+
);
|
|
9563
|
+
console.log(colors.secondary(" 2. Review your changes"));
|
|
9564
|
+
console.log(
|
|
9565
|
+
colors.secondary(
|
|
9566
|
+
` 3. Commit your work: git add . && git commit -m "${commitType}(task-${normalizedId}): ${task.title}"`
|
|
9567
|
+
)
|
|
9568
|
+
);
|
|
9569
|
+
console.log(colors.secondary(" 4. Push: git push"));
|
|
9570
|
+
console.log(colors.secondary(" 5. Create a Pull Request"));
|
|
9571
|
+
} else {
|
|
9572
|
+
const commitType = task.type || "feat";
|
|
9573
|
+
console.log(colors.secondary(" 1. Review your changes"));
|
|
9574
|
+
console.log(
|
|
9575
|
+
colors.secondary(
|
|
9576
|
+
` 2. Commit your work: git add . && git commit -m "${commitType}(task-${normalizedId}): ${task.title}"`
|
|
9577
|
+
)
|
|
9578
|
+
);
|
|
9579
|
+
console.log(colors.secondary(" 3. Push: git push"));
|
|
9580
|
+
console.log(colors.secondary(" 4. Create a Pull Request"));
|
|
9581
|
+
}
|
|
9582
|
+
console.log();
|
|
9573
9583
|
} else {
|
|
9574
|
-
|
|
9575
|
-
|
|
9576
|
-
console.log(
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
)
|
|
9580
|
-
);
|
|
9581
|
-
console.log(colors.secondary(" 3. Push: git push"));
|
|
9582
|
-
console.log(colors.secondary(" 4. Create a Pull Request"));
|
|
9584
|
+
info("All commits done automatically (autopilot mode)");
|
|
9585
|
+
info("Next steps:");
|
|
9586
|
+
console.log(colors.secondary(" 1. Push: git push"));
|
|
9587
|
+
console.log(colors.secondary(" 2. Create a Pull Request"));
|
|
9588
|
+
console.log();
|
|
9583
9589
|
}
|
|
9584
|
-
console.log();
|
|
9585
9590
|
success("Great work! \u{1F680}");
|
|
9586
9591
|
console.log();
|
|
9587
9592
|
if (options.sound !== false) {
|
|
@@ -9606,7 +9611,7 @@ init_esm_shims();
|
|
|
9606
9611
|
|
|
9607
9612
|
// src/lib/provider-installer/provider-installer.ts
|
|
9608
9613
|
init_esm_shims();
|
|
9609
|
-
import { execSync } from "child_process";
|
|
9614
|
+
import { execSync as execSync2 } from "child_process";
|
|
9610
9615
|
import { existsSync as existsSync4 } from "fs";
|
|
9611
9616
|
function detectPackageManager() {
|
|
9612
9617
|
if (existsSync4("pnpm-lock.yaml")) {
|
|
@@ -9655,7 +9660,7 @@ function installProvider(provider) {
|
|
|
9655
9660
|
default:
|
|
9656
9661
|
command = `npm install ${packageName}`;
|
|
9657
9662
|
}
|
|
9658
|
-
|
|
9663
|
+
execSync2(command, { stdio: "inherit" });
|
|
9659
9664
|
console.log(`\u2705 ${packageName} installed successfully!
|
|
9660
9665
|
`);
|
|
9661
9666
|
} catch (error2) {
|
|
@@ -10184,10 +10189,10 @@ function getTypeColor(type) {
|
|
|
10184
10189
|
// src/commands/mcp-server.ts
|
|
10185
10190
|
init_esm_shims();
|
|
10186
10191
|
|
|
10187
|
-
//
|
|
10192
|
+
// ../task-server-mcp/dist/index.js
|
|
10188
10193
|
init_esm_shims();
|
|
10189
10194
|
|
|
10190
|
-
//
|
|
10195
|
+
// ../task-server-mcp/dist/task-server-mcp.js
|
|
10191
10196
|
init_esm_shims();
|
|
10192
10197
|
|
|
10193
10198
|
// ../../node_modules/.pnpm/@modelcontextprotocol+sdk@1.25.2_hono@4.11.4_zod@3.25.76/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js
|
|
@@ -13510,7 +13515,7 @@ var StdioServerTransport = class {
|
|
|
13510
13515
|
}
|
|
13511
13516
|
};
|
|
13512
13517
|
|
|
13513
|
-
//
|
|
13518
|
+
// ../task-server-mcp/dist/task-server-mcp.js
|
|
13514
13519
|
var TaskMCPServer = class {
|
|
13515
13520
|
server;
|
|
13516
13521
|
taskManager;
|
|
@@ -13905,7 +13910,7 @@ Let me start by marking the task as done using the finish_task tool.`
|
|
|
13905
13910
|
}
|
|
13906
13911
|
};
|
|
13907
13912
|
|
|
13908
|
-
//
|
|
13913
|
+
// ../task-server-mcp/dist/task-server-mcp.types.js
|
|
13909
13914
|
init_esm_shims();
|
|
13910
13915
|
|
|
13911
13916
|
// src/commands/mcp-server.ts
|
|
@@ -14164,7 +14169,7 @@ Add any relevant notes or links here.
|
|
|
14164
14169
|
|
|
14165
14170
|
// src/commands/pause.ts
|
|
14166
14171
|
init_esm_shims();
|
|
14167
|
-
import { execSync as
|
|
14172
|
+
import { execSync as execSync3 } from "child_process";
|
|
14168
14173
|
import path13 from "path";
|
|
14169
14174
|
var pauseCommand = defineCommand({
|
|
14170
14175
|
name: "pause <task-id>",
|
|
@@ -14210,18 +14215,27 @@ async function pauseTask(taskId, options) {
|
|
|
14210
14215
|
process.exit(1);
|
|
14211
14216
|
}
|
|
14212
14217
|
const commitMessage = options.message || `WIP: task-${normalizedId} - ${task.title}`;
|
|
14218
|
+
const configManager = new ConfigManager(monorepoRoot);
|
|
14219
|
+
const behavior = configManager.getAutomationBehavior();
|
|
14213
14220
|
if (options.skipCommit) {
|
|
14214
14221
|
info("Would create commit with message:");
|
|
14215
14222
|
console.log(colors.highlight(` "${commitMessage}"`));
|
|
14216
14223
|
console.log();
|
|
14217
14224
|
info("Use without --skip-commit to actually commit");
|
|
14225
|
+
} else if (!behavior.autoCommitPause) {
|
|
14226
|
+
info("Commit suggestion (manual mode):");
|
|
14227
|
+
console.log(
|
|
14228
|
+
colors.secondary(` git add -A && git commit -m "${commitMessage}"`)
|
|
14229
|
+
);
|
|
14230
|
+
console.log();
|
|
14231
|
+
info("Status will be updated to pending");
|
|
14218
14232
|
} else {
|
|
14219
14233
|
info("Creating commit...");
|
|
14220
14234
|
console.log(colors.secondary(` Message: "${commitMessage}"`));
|
|
14221
14235
|
console.log();
|
|
14222
14236
|
try {
|
|
14223
|
-
|
|
14224
|
-
|
|
14237
|
+
execSync3("git add -A", { cwd: process.cwd(), stdio: "ignore" });
|
|
14238
|
+
execSync3(`git commit -m "${commitMessage}"`, {
|
|
14225
14239
|
cwd: process.cwd(),
|
|
14226
14240
|
stdio: "ignore"
|
|
14227
14241
|
});
|
|
@@ -14230,7 +14244,7 @@ async function pauseTask(taskId, options) {
|
|
|
14230
14244
|
const updatedTask = { ...task, status: "pending" };
|
|
14231
14245
|
await taskProvider.updateTask(updatedTask);
|
|
14232
14246
|
success("Task paused successfully!");
|
|
14233
|
-
|
|
14247
|
+
success("\u2713 Auto-committed work in progress");
|
|
14234
14248
|
info("Status updated to pending");
|
|
14235
14249
|
console.log();
|
|
14236
14250
|
info("Next steps:");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taskin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Task management system integrated with Git workflows",
|
|
5
5
|
"motivation": "Provide a CLI tool for task management integrated with Git workflows",
|
|
6
6
|
"solve": "Simplifies task tracking and management directly from the command line",
|
|
@@ -68,9 +68,6 @@
|
|
|
68
68
|
"LICENSE"
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@opentask/taskin-git-utils": "^2.1.1",
|
|
72
|
-
"@opentask/taskin-task-manager": "^1.0.9",
|
|
73
|
-
"@opentask/taskin-task-server-mcp": "^0.1.7",
|
|
74
71
|
"@opentask/taskin-task-server-ws": "^0.1.4",
|
|
75
72
|
"@types/express": "^5.0.5",
|
|
76
73
|
"@types/inquirer": "^9.0.9",
|
|
@@ -82,8 +79,11 @@
|
|
|
82
79
|
"play-sound": "^1.1.6",
|
|
83
80
|
"ws": "^8.18.3",
|
|
84
81
|
"zod": "^3.25.76",
|
|
85
|
-
"@opentask/taskin-file-system-provider": "2.2.
|
|
82
|
+
"@opentask/taskin-file-system-provider": "2.2.2",
|
|
83
|
+
"@opentask/taskin-git-utils": "2.1.1",
|
|
84
|
+
"@opentask/taskin-task-manager": "1.0.9",
|
|
86
85
|
"@opentask/taskin-types": "1.0.6",
|
|
86
|
+
"@opentask/taskin-task-server-mcp": "0.1.8",
|
|
87
87
|
"@opentask/taskin-utils": "1.1.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"vitest": "^1.6.1"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
|
+
"install": "echo 'Installing taskin-cli dependencies...'",
|
|
97
98
|
"build": "pnpm run build:dashboard && tsup",
|
|
98
99
|
"build:dashboard": "cd ../dashboard && pnpm run build:app && cd ../cli && rm -rf dashboard-dist && cp -r ../dashboard/dist-app dashboard-dist",
|
|
99
100
|
"clean": "rm -rf dist dashboard-dist coverage .turbo test-temp-e2e",
|