(function(){var t={7604:function(t,e,n){var r;!function(){"use strict";var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(t){return a(c(t),arguments)}function o(t,e){return i.apply(null,[t].concat(e||[]))}function a(t,e){var n,r,o,a,u,c,l,f,h,p=1,d=t.length,g="";for(r=0;r=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase();break}s.json.test(a.type)?g+=n:(!s.number.test(a.type)||f&&!a.sign?h="":(h=f?"+":"-",n=n.toString().replace(s.sign,"")),c=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(h+n).length,u=a.width&&l>0?c.repeat(l):"",g+=a.align?h+n+u:"0"===c?h+u+n:u+h+n)}return g}var u=Object.create(null);function c(t){if(u[t])return u[t];var e,n=t,r=[],i=0;while(n){if(null!==(e=s.text.exec(n)))r.push(e[0]);else if(null!==(e=s.modulo.exec(n)))r.push("%");else{if(null===(e=s.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){i|=1;var o=[],a=e[2],c=[];if(null===(c=s.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1]);while(""!==(a=a.substring(c[0].length)))if(null!==(c=s.key_access.exec(a)))o.push(c[1]);else{if(null===(c=s.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(c[1])}e[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return u[t]=r}e.sprintf=i,e.vsprintf=o,"undefined"!==typeof window&&(window["sprintf"]=i,window["vsprintf"]=o,r=function(){return{sprintf:i,vsprintf:o}}.call(e,n,e,t),void 0===r||(t.exports=r))}()},3585:function(t,e,n){n(4114),n(6573),n(8100),n(7936),n(9479),n(7467),n(4732),n(9577),function(e){t.exports=e()}((function(){return function(){function t(e,n,r){function s(o,a){if(!n[o]){if(!e[o]){var u=void 0;if(!a&&u)return require(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,(function(t){var n=e[o][1][t];return s(n||t)}),l,l.exports,t,e,n,r)}return n[o].exports}for(var i=void 0,o=0;o=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function u(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&s))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},n.buf2binstring=function(t){return u(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,s=e.length;n4)c[r++]=65533,n+=i-1;else{s&=2===i?31:3===i?15:7;while(i>1&&n1?c[r++]=65533:s<65536?c[r++]=s:(s-=65536,c[r++]=55296|s>>10&1023,c[r++]=56320|1023&s)}return u(c,r)},n.utf8border=function(t,e){var n;e=e||t.length,e>t.length&&(e=t.length),n=e-1;while(n>=0&&128===(192&t[n]))n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":1}],3:[function(t,e,n){"use strict";function r(t,e,n,r){var s=65535&t,i=t>>>16&65535,o=0;while(0!==n){o=n>2e3?2e3:n,n-=o;do{s=s+e[r++]|0,i=i+s|0}while(--o);s%=65521,i%=65521}return s|i<<16}e.exports=r},{}],4:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(t,e,n){"use strict";function r(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}var s=r();function i(t,e,n,r){var i=s,o=r+n;t^=-1;for(var a=r;a>>8^i[255&(t^e[a])];return~t}e.exports=i},{}],6:[function(t,e,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=r},{}],7:[function(t,e,n){"use strict";var r=30,s=12;e.exports=function(t,e){var n,i,o,a,u,c,l,f,h,p,d,g,m,y,v,b,w,x,S,C,O,k,A,E,F;n=t.state,i=t.next_in,E=t.input,o=i+(t.avail_in-5),a=t.next_out,F=t.output,u=a-(e-t.avail_out),c=a+(t.avail_out-257),l=n.dmax,f=n.wsize,h=n.whave,p=n.wnext,d=n.window,g=n.hold,m=n.bits,y=n.lencode,v=n.distcode,b=(1<>>24,g>>>=S,m-=S,S=x>>>16&255,0===S)F[a++]=65535&x;else{if(!(16&S)){if(0===(64&S)){x=y[(65535&x)+(g&(1<>>=S,m-=S),m<15&&(g+=E[i++]<>>24,g>>>=S,m-=S,S=x>>>16&255,!(16&S)){if(0===(64&S)){x=v[(65535&x)+(g&(1<l){t.msg="invalid distance too far back",n.mode=r;break t}if(g>>>=S,m-=S,S=a-u,O>S){if(S=O-S,S>h&&n.sane){t.msg="invalid distance too far back",n.mode=r;break t}if(k=0,A=d,0===p){if(k+=f-S,S2)F[a++]=A[k++],F[a++]=A[k++],F[a++]=A[k++],C-=3;C&&(F[a++]=A[k++],C>1&&(F[a++]=A[k++]))}else{k=a-O;do{F[a++]=F[k++],F[a++]=F[k++],F[a++]=F[k++],C-=3}while(C>2);C&&(F[a++]=F[k++],C>1&&(F[a++]=F[k++]))}break}}break}}while(i>3,i-=C,m-=C<<3,g&=(1<>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=S,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):y}function at(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,ot(t)):y}function ut(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?y:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):y}function ct(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,n=ut(t,e),n!==d&&(t.state=null),n):y}function lt(t){return ct(t,rt)}var ft,ht,pt=!0;function dt(t){if(pt){var e;ft=new r.Buf32(512),ht=new r.Buf32(32),e=0;while(e<144)t.lens[e++]=8;while(e<256)t.lens[e++]=9;while(e<280)t.lens[e++]=7;while(e<288)t.lens[e++]=8;a(c,t.lens,0,288,ft,0,t.work,{bits:9}),e=0;while(e<32)t.lens[e++]=5;a(l,t.lens,0,32,ht,0,t.work,{bits:5}),pt=!1}t.lencode=ft,t.lenbits=9,t.distcode=ht,t.distbits=5}function gt(t,e,n,s){var i,o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>s&&(i=s),r.arraySet(o.window,e,n-s,i,o.wnext),s-=i,s?(r.arraySet(o.window,e,n-s,s,0),o.wnext=s,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=i(n.check,Et,2,0),at=0,ut=0,n.mode=C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&at)<<8)+(at>>8))%31){t.msg="incorrect header check",n.mode=J;break}if((15&at)!==x){t.msg="unknown compression method",n.mode=J;break}if(at>>>=4,ut-=4,St=8+(15&at),0===n.wbits)n.wbits=St;else if(St>n.wbits){t.msg="invalid window size",n.mode=J;break}n.dmax=1<>8&1),512&n.flags&&(Et[0]=255&at,Et[1]=at>>>8&255,n.check=i(n.check,Et,2,0)),at=0,ut=0,n.mode=O;case O:while(ut<32){if(0===it)break t;it--,at+=tt[nt++]<>>8&255,Et[2]=at>>>16&255,Et[3]=at>>>24&255,n.check=i(n.check,Et,4,0)),at=0,ut=0,n.mode=k;case k:while(ut<16){if(0===it)break t;it--,at+=tt[nt++]<>8),512&n.flags&&(Et[0]=255&at,Et[1]=at>>>8&255,n.check=i(n.check,Et,2,0)),at=0,ut=0,n.mode=A;case A:if(1024&n.flags){while(ut<16){if(0===it)break t;it--,at+=tt[nt++]<>>8&255,n.check=i(n.check,Et,2,0)),at=0,ut=0}else n.head&&(n.head.extra=null);n.mode=E;case E:if(1024&n.flags&&(ft=n.length,ft>it&&(ft=it),ft&&(n.head&&(St=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,ft,St)),512&n.flags&&(n.check=i(n.check,tt,ft,nt)),it-=ft,nt+=ft,n.length-=ft),n.length))break t;n.length=0,n.mode=F;case F:if(2048&n.flags){if(0===it)break t;ft=0;do{St=tt[nt+ft++],n.head&&St&&n.length<65536&&(n.head.name+=String.fromCharCode(St))}while(St&&ft>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=I;break;case R:while(ut<32){if(0===it)break t;it--,at+=tt[nt++]<>>=7&ut,ut-=7&ut,n.mode=Z;break}while(ut<3){if(0===it)break t;it--,at+=tt[nt++]<>>=1,ut-=1,3&at){case 0:n.mode=M;break;case 1:if(dt(n),n.mode=V,e===p){at>>>=2,ut-=2;break t}break;case 2:n.mode=N;break;case 3:t.msg="invalid block type",n.mode=J}at>>>=2,ut-=2;break;case M:at>>>=7&ut,ut-=7&ut;while(ut<32){if(0===it)break t;it--,at+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&at,at=0,ut=0,n.mode=j,e===p)break t;case j:n.mode=_;case _:if(ft=n.length,ft){if(ft>it&&(ft=it),ft>ot&&(ft=ot),0===ft)break t;r.arraySet(et,tt,nt,ft,rt),it-=ft,nt+=ft,ot-=ft,rt+=ft,n.length-=ft;break}n.mode=I;break;case N:while(ut<14){if(0===it)break t;it--,at+=tt[nt++]<>>=5,ut-=5,n.ndist=1+(31&at),at>>>=5,ut-=5,n.ncode=4+(15&at),at>>>=4,ut-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=B;case B:while(n.have>>=3,ut-=3}while(n.have<19)n.lens[Ft[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ot={bits:n.lenbits},Ct=a(u,n.lens,0,19,n.lencode,0,n.work,Ot),n.lenbits=Ot.bits,Ct){t.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=U;case U:while(n.have>>24,yt=At>>>16&255,vt=65535&At,mt<=ut)break;if(0===it)break t;it--,at+=tt[nt++]<>>=mt,ut-=mt,n.lens[n.have++]=vt;else{if(16===vt){kt=mt+2;while(ut>>=mt,ut-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=J;break}St=n.lens[n.have-1],ft=3+(3&at),at>>>=2,ut-=2}else if(17===vt){kt=mt+3;while(ut>>=mt,ut-=mt,St=0,ft=3+(7&at),at>>>=3,ut-=3}else{kt=mt+7;while(ut>>=mt,ut-=mt,St=0,ft=11+(127&at),at>>>=7,ut-=7}if(n.have+ft>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=J;break}while(ft--)n.lens[n.have++]=St}}if(n.mode===J)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Ot={bits:n.lenbits},Ct=a(c,n.lens,0,n.nlen,n.lencode,0,n.work,Ot),n.lenbits=Ot.bits,Ct){t.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Ot={bits:n.distbits},Ct=a(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ot),n.distbits=Ot.bits,Ct){t.msg="invalid distances set",n.mode=J;break}if(n.mode=V,e===p)break t;case V:n.mode=G;case G:if(it>=6&&ot>=258){t.next_out=rt,t.avail_out=ot,t.next_in=nt,t.avail_in=it,n.hold=at,n.bits=ut,o(t,lt),rt=t.next_out,et=t.output,ot=t.avail_out,nt=t.next_in,tt=t.input,it=t.avail_in,at=n.hold,ut=n.bits,n.mode===I&&(n.back=-1);break}for(n.back=0;;){if(At=n.lencode[at&(1<>>24,yt=At>>>16&255,vt=65535&At,mt<=ut)break;if(0===it)break t;it--,at+=tt[nt++]<>bt)],mt=At>>>24,yt=At>>>16&255,vt=65535&At,bt+mt<=ut)break;if(0===it)break t;it--,at+=tt[nt++]<>>=bt,ut-=bt,n.back+=bt}if(at>>>=mt,ut-=mt,n.back+=mt,n.length=vt,0===yt){n.mode=Y;break}if(32&yt){n.back=-1,n.mode=I;break}if(64&yt){t.msg="invalid literal/length code",n.mode=J;break}n.extra=15&yt,n.mode=W;case W:if(n.extra){kt=n.extra;while(ut>>=n.extra,ut-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=z;case z:for(;;){if(At=n.distcode[at&(1<>>24,yt=At>>>16&255,vt=65535&At,mt<=ut)break;if(0===it)break t;it--,at+=tt[nt++]<>bt)],mt=At>>>24,yt=At>>>16&255,vt=65535&At,bt+mt<=ut)break;if(0===it)break t;it--,at+=tt[nt++]<>>=bt,ut-=bt,n.back+=bt}if(at>>>=mt,ut-=mt,n.back+=mt,64&yt){t.msg="invalid distance code",n.mode=J;break}n.offset=vt,n.extra=15&yt,n.mode=H;case H:if(n.extra){kt=n.extra;while(ut>>=n.extra,ut-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=J;break}n.mode=q;case q:if(0===ot)break t;if(ft=lt-ot,n.offset>ft){if(ft=n.offset-ft,ft>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=J;break}ft>n.wnext?(ft-=n.wnext,ht=n.wsize-ft):ht=n.wnext-ft,ft>n.length&&(ft=n.length),pt=n.window}else pt=et,ht=rt-n.offset,ft=n.length;ft>ot&&(ft=ot),ot-=ft,n.length-=ft;do{et[rt++]=pt[ht++]}while(--ft);0===n.length&&(n.mode=G);break;case Y:if(0===ot)break t;et[rt++]=n.length,ot--,n.mode=G;break;case Z:if(n.wrap){while(ut<32){if(0===it)break t;it--,at|=tt[nt++]<=1;L--)if(0!==V[L])break;if(I>L&&(I=L),0===L)return g[m++]=20971520,g[m++]=20971520,v.bits=1,0;for(R=1;R0&&(t===a||1!==L))return-1;for(G[1]=0,T=1;Ti||t===c&&_>o)return 1;for(;;){k=T-M,y[P]O?(A=W[z+y[P]],E=B[U+y[P]]):(A=96,E=0),b=1<>M)+w]=k<<24|A<<16|E}while(0!==w);b=1<>=1;if(0!==b?(N&=b-1,N+=b):N=0,P++,0===--V[T]){if(T===L)break;T=e[n+y[P]]}if(T>I&&(N&S)!==x){0===M&&(M=I),C+=R,D=T-M,j=1<i||t===c&&_>o)return 1;x=N&S,g[x]=I<<24|D<<16|C-m}}return 0!==N&&(g[C+N]=T-M<<24|64<<16),v.bits=I,0}},{"../utils/common":1}],10:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(t,e,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=r},{}],"/lib/inflate.js":[function(t,e,n){"use strict";var r=t("./zlib/inflate"),s=t("./utils/common"),i=t("./utils/strings"),o=t("./zlib/constants"),a=t("./zlib/messages"),u=t("./zlib/zstream"),c=t("./zlib/gzheader"),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);if(this.header=new c,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary),n!==o.Z_OK)))throw new Error(a[n])}function h(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}function p(t,e){return e=e||{},e.raw=!0,h(t,e)}f.prototype.push=function(t,e){var n,a,u,c,f,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"===typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new s.Buf8(p),h.next_out=0,h.avail_out=p),n=r.inflate(h,o.Z_NO_FLUSH),n===o.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==o.Z_STREAM_END&&(0!==h.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(u=i.utf8border(h.output,h.next_out),c=h.next_out-u,f=i.buf2string(h.output,u),h.next_out=c,h.avail_out=p-c,c&&s.arraySet(h.output,h.output,u,c,0),this.onData(f)):this.onData(s.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=f,n.inflate=h,n.inflateRaw=p,n.ungzip=h},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")}))},5339:function(t,e,n){n(4114),n(6573),n(8100),n(7936),n(7467),n(4732),n(9577),function(e){t.exports=e()}((function(){return function(){function t(e,n,r){function s(o,a){if(!n[o]){if(!e[o]){var u=void 0;if(!a&&u)return require(o,!0);if(i)return i(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[o]={exports:{}};e[o][0].call(l.exports,(function(t){var n=e[o][1][t];return s(n||t)}),l,l.exports,t,e,n,r)}return n[o].exports}for(var i=void 0,o=0;o0},a.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var t=this.buf_ptr_,e=this.input_.read(this.buf_,t,r);if(e<0)throw new Error("Unexpected end of input");if(e=8)this.val_>>>=8,this.val_|=this.buf_[this.pos_&i]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},a.prototype.readBits=function(t){32-this.bit_pos_>>this.bit_pos_&o[t];return this.bit_pos_+=t,e},e.exports=a},{}],2:[function(t,e,n){n.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(t,e,n){var r=t("./streams").BrotliInput,s=t("./streams").BrotliOutput,i=t("./bit_reader"),o=t("./dictionary"),a=t("./huffman").HuffmanCode,u=t("./huffman").BrotliBuildHuffmanTable,c=t("./context"),l=t("./prefix"),f=t("./transform"),h=8,p=16,d=256,g=704,m=26,y=6,v=2,b=8,w=255,x=1080,S=18,C=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),O=16,k=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),A=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),E=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function F(t){var e;return 0===t.readBits(1)?16:(e=t.readBits(3),e>0?17+e:(e=t.readBits(3),e>0?8+e:17))}function T(t){if(t.readBits(1)){var e=t.readBits(3);return 0===e?1:t.readBits(e)+(1<1&&0===i)throw new Error("Invalid size byte");s.meta_block_length|=i<<8*r}}else for(r=0;r4&&0===o)throw new Error("Invalid size nibble");s.meta_block_length|=o<<4*r}return++s.meta_block_length,s.input_end||s.is_metadata||(s.is_uncompressed=t.readBits(1)),s}function L(t,e,n){var r;return n.fillBitWindow(),e+=n.val_>>>n.bit_pos_&w,r=t[e].bits-b,r>0&&(n.bit_pos_+=b,e+=t[e].value,e+=n.val_>>>n.bit_pos_&(1<0){var g,m=0;if(r.readMoreInput(),r.fillBitWindow(),m+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=f[m].bits,g=255&f[m].value,g>g);else{var y,v,b=g-14,w=0;if(g===p&&(w=i),c!==w&&(o=0,c=w),y=o,o>0&&(o-=2,o<<=b),o+=r.readBits(b)+3,v=o-y,s+v>e)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var x=0;x0;++p){var v,w=C[p],x=0;r.fillBitWindow(),x+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=y[x].bits,v=y[x].value,d[w]=v,0!==v&&(g-=32>>v,++m)}if(1!==m&&0!==g)throw new Error("[ReadHuffmanCode] invalid num_codes or space");I(d,t,o,r)}if(i=u(e,n,b,o,t),0===i)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return i}function M(t,e,n){var r,s;return r=L(t,e,n),s=l.kBlockLengthPrefixCode[r].nbits,l.kBlockLengthPrefixCode[r].offset+n.readBits(s)}function j(t,e,n){var r;return t>>5]),this.htrees=new Uint32Array(e)}function U(t,e){var n,r,s,i={num_htrees:null,context_map:null},o=0;e.readMoreInput();var u=i.num_htrees=T(e)+1,c=i.context_map=new Uint8Array(t);if(u<=1)return i;for(n=e.readBits(1),n&&(o=e.readBits(4)+1),r=[],s=0;s=t)throw new Error("[DecodeContextMap] i >= context_map_size");c[s]=0,++s}}else c[s]=l-o,++s}return e.readBits(1)&&N(c,t),i}function V(t,e,n,r,s,i,o){var a,u=2*n,c=n,l=L(e,n*x,o);a=0===l?s[u+(1&i[c])]:1===l?s[u+(i[c]-1&1)]+1:l-2,a>=t&&(a-=t),r[n]=a,s[u+(1&i[c])]=a,++i[c]}function G(t,e,n,r,s,o){var a,u=s+1,c=n&s,l=o.pos_&i.IBUF_MASK;if(e<8||o.bit_pos_+(e<<3)0)o.readMoreInput(),r[c++]=o.readBits(8),c===u&&(t.write(r,u),c=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");while(o.bit_pos_<32)r[c]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++c,--e;if(a=o.bit_end_pos_-o.bit_pos_>>3,l+a>i.IBUF_MASK){for(var f=i.IBUF_MASK+1-l,h=0;h=u){t.write(r,u),c-=u;for(h=0;h=u){if(a=u-c,o.input_.read(r,c,a)e.buffer.length){var wt=new Uint8Array(C+nt);wt.set(e.buffer),e.buffer=wt}if(k=bt.input_end,Y=bt.is_uncompressed,bt.is_metadata)for(W(S);nt>0;--nt)S.readMoreInput(),S.readBits(8);else if(0!==nt)if(Y)S.bit_pos_=S.bit_pos_+7&-8,G(e,nt,C,h,u,S),C+=nt;else{for(n=0;n<3;++n)it[n]=T(S)+1,it[n]>=2&&(D(it[n]+2,b,n*x,S),D(m,w,n*x,S),rt[n]=M(w,n*x,S),at[n]=1);for(S.readMoreInput(),Z=S.readBits(2),K=O+(S.readBits(4)<0){var Ct,Ot,kt,At,Et,Ft,Tt,Pt,Rt,Lt,It,Dt,Mt;for(S.readMoreInput(),0===rt[1]&&(V(it[1],b,1,st,ot,at,S),rt[1]=M(w,x,S),et=z[1].htrees[st[1]]),--rt[1],Ct=L(z[1].codes,et,S),Ot=Ct>>6,Ot>=2?(Ot-=2,Tt=-1):Tt=0,kt=l.kInsertRangeLut[Ot]+(Ct>>3&7),At=l.kCopyRangeLut[Ot]+(7&Ct),Et=l.kInsertLengthPrefixCode[kt].offset+S.readBits(l.kInsertLengthPrefixCode[kt].nbits),Ft=l.kCopyLengthPrefixCode[At].offset+S.readBits(l.kCopyLengthPrefixCode[At].nbits),_=h[C-1&u],N=h[C-2&u],Rt=0;Rt4?3:Ft-2),mt=lt[gt+It],Tt=L(z[2].codes,z[2].htrees[mt],S),Tt>=K)Tt-=K,Mt=Tt&X,Tt>>=Z,Dt=1+(Tt>>1),jt=(2+(1&Tt)<E){if(!(Ft>=o.minDictionaryWordLength&&Ft<=o.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+C+" distance: "+Pt+" len: "+Ft+" bytes left: "+nt);var jt=o.offsetsByLength[Ft],_t=Pt-E-1,Nt=o.sizeBitsByLength[Ft],Bt=(1<>Nt;if(jt+=Ut*Ft,!(Vt=p){e.write(h,s);for(var Wt=0;Wt0&&(P[3&I]=Pt,++I),Ft>nt)throw new Error("Invalid backward reference. pos: "+C+" distance: "+Pt+" len: "+Ft+" bytes left: "+nt);for(Rt=0;Rt>=1;return(t&n-1)+n}function o(t,e,n,s,i){do{s-=n,t[e+s]=new r(i.bits,i.value)}while(s>0)}function a(t,e,n){var r=1<0;--S[f])l=new r(255&f,65535&w[h++]),o(t,e+p,d,v,l),p=i(p,f);for(m=b-1,g=-1,f=n+1,d=2;f<=s;++f,d<<=1)for(;S[f]>0;--S[f])(p&m)!==g&&(e+=v,y=a(S,f,n),v=1<>n),d,v,l),p=i(p,f);return b}},{}],8:[function(t,e,n){"use strict";n.byteLength=l,n.toByteArray=h,n.fromByteArray=g;for(var r=[],s=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function h(t){for(var e,n=c(t),r=n[0],o=n[1],a=new i(f(t,r,o)),u=0,l=o>0?r-4:r,h=0;h>16&255,a[u++]=e>>8&255,a[u++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[u++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[u++]=e>>8&255,a[u++]=255&e),a}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,s=[],i=e;iu?u:a+o));return 1===s?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===s&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],9:[function(t,e,n){function r(t,e){this.offset=t,this.nbits=e}n.kBlockLengthPrefixCode=[new r(1,2),new r(5,2),new r(9,2),new r(13,2),new r(17,3),new r(25,3),new r(33,3),new r(41,3),new r(49,4),new r(65,4),new r(81,4),new r(97,4),new r(113,5),new r(145,5),new r(177,5),new r(209,5),new r(241,6),new r(305,6),new r(369,7),new r(497,8),new r(753,9),new r(1265,10),new r(2289,11),new r(4337,12),new r(8433,13),new r(16625,24)],n.kInsertLengthPrefixCode=[new r(0,0),new r(1,0),new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,1),new r(8,1),new r(10,2),new r(14,2),new r(18,3),new r(26,3),new r(34,4),new r(50,4),new r(66,5),new r(98,5),new r(130,6),new r(194,7),new r(322,8),new r(578,9),new r(1090,10),new r(2114,12),new r(6210,14),new r(22594,24)],n.kCopyLengthPrefixCode=[new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,0),new r(7,0),new r(8,0),new r(9,0),new r(10,1),new r(12,1),new r(14,2),new r(18,2),new r(22,3),new r(30,3),new r(38,4),new r(54,4),new r(70,5),new r(102,5),new r(134,6),new r(198,7),new r(326,8),new r(582,9),new r(1094,10),new r(2118,24)],n.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],n.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(t,e,n){function r(t){this.buffer=t,this.pos=0}function s(t){this.buffer=t,this.pos=0}r.prototype.read=function(t,e,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;rthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(t.subarray(0,e),this.pos),this.pos+=e,e},n.BrotliOutput=s},{}],11:[function(t,e,n){var r=t("./dictionary"),s=0,i=1,o=2,a=3,u=4,c=5,l=6,f=7,h=8,p=9,d=10,g=11,m=12,y=13,v=14,b=15,w=16,x=17,S=18,C=20;function O(t,e,n){this.prefix=new Uint8Array(t.length),this.transform=e,this.suffix=new Uint8Array(n.length);for(var r=0;r'),new O("",s,"\n"),new O("",a,""),new O("",s,"]"),new O("",s," for "),new O("",v,""),new O("",o,""),new O("",s," a "),new O("",s," that "),new O(" ",d,""),new O("",s,". "),new O(".",s,""),new O(" ",s,", "),new O("",b,""),new O("",s," with "),new O("",s,"'"),new O("",s," from "),new O("",s," by "),new O("",w,""),new O("",x,""),new O(" the ",s,""),new O("",u,""),new O("",s,". The "),new O("",g,""),new O("",s," on "),new O("",s," as "),new O("",s," is "),new O("",f,""),new O("",i,"ing "),new O("",s,"\n\t"),new O("",s,":"),new O(" ",s,". "),new O("",s,"ed "),new O("",C,""),new O("",S,""),new O("",l,""),new O("",s,"("),new O("",d,", "),new O("",h,""),new O("",s," at "),new O("",s,"ly "),new O(" the ",s," of "),new O("",c,""),new O("",p,""),new O(" ",d,", "),new O("",d,'"'),new O(".",s,"("),new O("",g," "),new O("",d,'">'),new O("",s,'="'),new O(" ",s,"."),new O(".com/",s,""),new O(" the ",s," of the "),new O("",d,"'"),new O("",s,". This "),new O("",s,","),new O(".",s," "),new O("",d,"("),new O("",d,"."),new O("",s," not "),new O(" ",s,'="'),new O("",s,"er "),new O(" ",g," "),new O("",s,"al "),new O(" ",g,""),new O("",s,"='"),new O("",g,'"'),new O("",d,". "),new O(" ",s,"("),new O("",s,"ful "),new O(" ",d,". "),new O("",s,"ive "),new O("",s,"less "),new O("",g,"'"),new O("",s,"est "),new O(" ",d,"."),new O("",g,'">'),new O(" ",s,"='"),new O("",d,","),new O("",s,"ize "),new O("",g,"."),new O(" ",s,""),new O(" ",s,","),new O("",d,'="'),new O("",g,'="'),new O("",s,"ous "),new O("",g,", "),new O("",d,"='"),new O(" ",d,","),new O(" ",g,'="'),new O(" ",g,", "),new O("",g,","),new O("",g,"("),new O("",g,". "),new O(" ",g,"."),new O("",g,"='"),new O(" ",g,". "),new O(" ",d,'="'),new O(" ",g,"='"),new O(" ",d,"='")];function A(t,e){return t[e]<192?(t[e]>=97&&t[e]<=122&&(t[e]^=32),1):t[e]<224?(t[e+1]^=32,2):(t[e+2]^=5,3)}n.kTransforms=k,n.kNumTransforms=k.length,n.transformDictionaryWord=function(t,e,n,s,i){var o,a=k[i].prefix,u=k[i].suffix,c=k[i].transform,l=cs&&(l=s);var y=0;while(y0){var v=A(t,o);o+=v,s-=v}var b=0;while(b{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n}},9306:function(t,e,n){"use strict";var r=n(4901),s=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(s(t)+" is not a function")}},3506:function(t,e,n){"use strict";var r=n(3925),s=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},7080:function(t,e,n){"use strict";var r=n(4402).has;t.exports=function(t){return r(t),t}},679:function(t,e,n){"use strict";var r=n(1625),s=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new s("Incorrect invocation")}},8551:function(t,e,n){"use strict";var r=n(34),s=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(s(t)+" is not an object")}},7811:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7394:function(t,e,n){"use strict";var r=n(4576),s=n(6706),i=n(2195),o=r.ArrayBuffer,a=r.TypeError;t.exports=o&&s(o.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new a("ArrayBuffer expected");return t.byteLength}},3238:function(t,e,n){"use strict";var r=n(4576),s=n(7811),i=n(7394),o=r.DataView;t.exports=function(t){if(!s||0!==i(t))return!1;try{return new o(t),!1}catch(e){return!0}}},5169:function(t,e,n){"use strict";var r=n(3238),s=TypeError;t.exports=function(t){if(r(t))throw new s("ArrayBuffer is detached");return t}},5636:function(t,e,n){"use strict";var r=n(4576),s=n(9504),i=n(6706),o=n(7696),a=n(5169),u=n(7394),c=n(4483),l=n(1548),f=r.structuredClone,h=r.ArrayBuffer,p=r.DataView,d=Math.min,g=h.prototype,m=p.prototype,y=s(g.slice),v=i(g,"resizable","get"),b=i(g,"maxByteLength","get"),w=s(m.getInt8),x=s(m.setInt8);t.exports=(l||c)&&function(t,e,n){var r,s=u(t),i=void 0===e?s:o(e),g=!v||!v(t);if(a(t),l&&(t=f(t,{transfer:[t]}),s===i&&(n||g)))return t;if(s>=i&&(!n||g))r=y(t,0,i);else{var m=n&&!g&&b?{maxByteLength:b(t)}:void 0;r=new h(i,m);for(var S=new p(t),C=new p(r),O=d(i,s),k=0;k2?n:r(e),o=new t(i);while(i>s)o[s]=e[s++];return o}},9617:function(t,e,n){"use strict";var r=n(5397),s=n(5610),i=n(6198),o=function(t){return function(e,n,o){var a=r(e),u=i(a);if(0===u)return!t&&-1;var c,l=s(o,u);if(t&&n!==n){while(u>l)if(c=a[l++],c!==c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},4527:function(t,e,n){"use strict";var r=n(3724),s=n(4376),i=TypeError,o=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!o(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7628:function(t,e,n){"use strict";var r=n(6198);t.exports=function(t,e){for(var n=r(t),s=new e(n),i=0;i=a||c<0)throw new i("Incorrect index");for(var l=new e(a),f=0;fn)throw e("Maximum allowed index exceeded");return t}},5002:function(t){"use strict";t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8574:function(t,e,n){"use strict";var r=n(4215);t.exports="NODE"===r},2839:function(t,e,n){"use strict";var r=n(4576),s=r.navigator,i=s&&s.userAgent;t.exports=i?String(i):""},9519:function(t,e,n){"use strict";var r,s,i=n(4576),o=n(2839),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(r=l.split("."),s=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(s=+r[1]))),t.exports=s},4215:function(t,e,n){"use strict";var r=n(4576),s=n(2839),i=n(2195),o=function(t){return s.slice(0,t.length)===t};t.exports=function(){return o("Bun/")?"BUN":o("Cloudflare-Workers")?"CLOUDFLARE":o("Deno/")?"DENO":o("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},6193:function(t,e,n){"use strict";var r=n(9504),s=Error,i=r("".replace),o=function(t){return String(new s(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!s.prepareStackTrace)while(e--)t=i(t,a,"");return t}},6249:function(t,e,n){"use strict";var r=n(9039),s=n(6980);t.exports=!r((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},6518:function(t,e,n){"use strict";var r=n(4576),s=n(7347).f,i=n(6699),o=n(6840),a=n(9433),u=n(7740),c=n(2796);t.exports=function(t,e){var n,l,f,h,p,d,g=t.target,m=t.global,y=t.stat;if(l=m?r:y?r[g]||a(g,{}):r[g]&&r[g].prototype,l)for(f in e){if(p=e[f],t.dontCallGetSet?(d=s(l,f),h=d&&d.value):h=l[f],n=c(m?f:g+(y?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;u(p,h)}(t.sham||h&&h.sham)&&i(p,"sham",!0),o(l,f,p,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},6080:function(t,e,n){"use strict";var r=n(7476),s=n(9306),i=n(616),o=r(r.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){"use strict";var r=n(9039);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,n){"use strict";var r=n(616),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},350:function(t,e,n){"use strict";var r=n(3724),s=n(9297),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!r||r&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6706:function(t,e,n){"use strict";var r=n(9504),s=n(9306);t.exports=function(t,e,n){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},7476:function(t,e,n){"use strict";var r=n(2195),s=n(9504);t.exports=function(t){if("Function"===r(t))return s(t)}},9504:function(t,e,n){"use strict";var r=n(616),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);t.exports=r?o:function(t){return function(){return i.apply(t,arguments)}}},9429:function(t,e,n){"use strict";var r=n(4576),s=n(8574);t.exports=function(t){if(s){try{return r.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},7751:function(t,e,n){"use strict";var r=n(4576),s=n(4901),i=function(t){return s(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},851:function(t,e,n){"use strict";var r=n(6955),s=n(5966),i=n(4117),o=n(6269),a=n(8227),u=a("iterator");t.exports=function(t){if(!i(t))return s(t,u)||s(t,"@@iterator")||o[r(t)]}},81:function(t,e,n){"use strict";var r=n(9565),s=n(9306),i=n(8551),o=n(6823),a=n(851),u=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(s(n))return i(r(n,t));throw new u(o(t)+" is not iterable")}},5966:function(t,e,n){"use strict";var r=n(9306),s=n(4117);t.exports=function(t,e){var n=t[e];return s(n)?void 0:r(n)}},3789:function(t,e,n){"use strict";var r=n(9306),s=n(8551),i=n(9565),o=n(1291),a=n(1767),u="Invalid size",c=RangeError,l=TypeError,f=Math.max,h=function(t,e){this.set=t,this.size=f(e,0),this.has=r(t.has),this.keys=r(t.keys)};h.prototype={getIterator:function(){return a(s(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){s(t);var e=+t.size;if(e!==e)throw new l(u);var n=o(e);if(n<0)throw new c(u);return new h(t,n)}},4576:function(t,e,n){"use strict";var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var r=n(9504),s=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},421:function(t){"use strict";t.exports={}},397:function(t,e,n){"use strict";var r=n(7751);t.exports=r("document","documentElement")},5917:function(t,e,n){"use strict";var r=n(3724),s=n(9039),i=n(4055);t.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,n){"use strict";var r=n(9504),s=n(9039),i=n(2195),o=Object,a=r("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},3167:function(t,e,n){"use strict";var r=n(4901),s=n(34),i=n(2967);t.exports=function(t,e,n){var o,a;return i&&r(o=e.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},3706:function(t,e,n){"use strict";var r=n(9504),s=n(4901),i=n(7629),o=r(Function.toString);s(i.inspectSource)||(i.inspectSource=function(t){return o(t)}),t.exports=i.inspectSource},1181:function(t,e,n){"use strict";var r,s,i,o=n(8622),a=n(4576),u=n(34),c=n(6699),l=n(9297),f=n(7629),h=n(6119),p=n(421),d="Object already initialized",g=a.TypeError,m=a.WeakMap,y=function(t){return i(t)?s(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=s(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}};if(o||f.state){var b=f.state||(f.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new g(d);return e.facade=t,b.set(t,e),e},s=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var w=h("state");p[w]=!0,r=function(t,e){if(l(t,w))throw new g(d);return e.facade=t,c(t,w,e),e},s=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:s,has:i,enforce:y,getterFor:v}},4209:function(t,e,n){"use strict";var r=n(8227),s=n(6269),i=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},4376:function(t,e,n){"use strict";var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},1108:function(t,e,n){"use strict";var r=n(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){"use strict";var r=n(9504),s=n(9039),i=n(4901),o=n(6955),a=n(7751),u=n(3706),c=function(){},l=a("Reflect","construct"),f=/^\s*(?:class|function)\b/,h=r(f.exec),p=!f.test(c),d=function(t){if(!i(t))return!1;try{return l(c,[],t),!0}catch(e){return!1}},g=function(t){if(!i(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(f,u(t))}catch(e){return!0}};g.sham=!0,t.exports=!l||s((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?g:d},2796:function(t,e,n){"use strict";var r=n(9039),s=n(4901),i=/#|\.prototype\./,o=function(t,e){var n=u[a(t)];return n===l||n!==c&&(s(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},4117:function(t){"use strict";t.exports=function(t){return null===t||void 0===t}},34:function(t,e,n){"use strict";var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},3925:function(t,e,n){"use strict";var r=n(34);t.exports=function(t){return r(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,n){"use strict";var r=n(7751),s=n(4901),i=n(1625),o=n(7040),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return s(e)&&i(e.prototype,a(t))}},507:function(t,e,n){"use strict";var r=n(9565);t.exports=function(t,e,n){var s,i,o=n?t:t.iterator,a=t.next;while(!(s=r(a,o)).done)if(i=e(s.value),void 0!==i)return i}},2652:function(t,e,n){"use strict";var r=n(6080),s=n(9565),i=n(8551),o=n(6823),a=n(4209),u=n(6198),c=n(1625),l=n(81),f=n(851),h=n(9539),p=TypeError,d=function(t,e){this.stopped=t,this.result=e},g=d.prototype;t.exports=function(t,e,n){var m,y,v,b,w,x,S,C=n&&n.that,O=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),F=r(e,C),T=function(t){return m&&h(m,"normal",t),new d(!0,t)},P=function(t){return O?(i(t),E?F(t[0],t[1],T):F(t[0],t[1])):E?F(t,T):F(t)};if(k)m=t.iterator;else if(A)m=t;else{if(y=f(t),!y)throw new p(o(t)+" is not iterable");if(a(y)){for(v=0,b=u(t);b>v;v++)if(w=P(t[v]),w&&c(g,w))return w;return new d(!1)}m=l(t,y)}x=k?t.next:m.next;while(!(S=s(x,m)).done){try{w=P(S.value)}catch(R){h(m,"throw",R)}if("object"==typeof w&&w&&c(g,w))return w}return new d(!1)}},9539:function(t,e,n){"use strict";var r=n(9565),s=n(8551),i=n(5966);t.exports=function(t,e,n){var o,a;s(t);try{if(o=i(t,"return"),!o){if("throw"===e)throw n;return n}o=r(o,t)}catch(u){a=!0,o=u}if("throw"===e)throw n;if(a)throw o;return s(o),n}},9462:function(t,e,n){"use strict";var r=n(9565),s=n(2360),i=n(6699),o=n(6279),a=n(8227),u=n(1181),c=n(5966),l=n(7657).IteratorPrototype,f=n(2529),h=n(9539),p=a("toStringTag"),d="IteratorHelper",g="WrapForValidIterator",m=u.set,y=function(t){var e=u.getterFor(t?g:d);return o(s(l),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(s){throw n.done=!0,s}},return:function(){var n=e(this),s=n.iterator;if(n.done=!0,t){var i=c(s,"return");return i?r(i,s):f(void 0,!0)}if(n.inner)try{h(n.inner.iterator,"normal")}catch(o){return h(s,"throw",o)}return s&&h(s,"normal"),f(void 0,!0)}})},v=y(!0),b=y(!1);i(b,p,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?g:d,s.returnHandlerResult=!!n,s.nextHandler=t,s.counter=0,s.done=!1,m(this,s)};return r.prototype=e?v:b,r}},713:function(t,e,n){"use strict";var r=n(9565),s=n(9306),i=n(8551),o=n(1767),a=n(9462),u=n(6319),c=a((function(){var t=this.iterator,e=i(r(this.next,t)),n=this.done=!!e.done;if(!n)return u(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return i(this),s(t),new c(o(this),{mapper:t})}},7657:function(t,e,n){"use strict";var r,s,i,o=n(9039),a=n(4901),u=n(34),c=n(2360),l=n(2787),f=n(6840),h=n(8227),p=n(6395),d=h("iterator"),g=!1;[].keys&&(i=[].keys(),"next"in i?(s=l(l(i)),s!==Object.prototype&&(r=s)):g=!0);var m=!u(r)||o((function(){var t={};return r[d].call(t)!==t}));m?r={}:p&&(r=c(r)),a(r[d])||f(r,d,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,n){"use strict";var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){"use strict";var r=n(9504),s=n(9039),i=n(4901),o=n(9297),a=n(3724),u=n(350).CONFIGURABLE,c=n(3706),l=n(1181),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),v=a&&!s((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(s){}var r=f(t);return o(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return i(this)&&h(this).source||c(this)}),"toString")},2248:function(t,e,n){"use strict";var r=n(9504),s=Map.prototype;t.exports={Map:Map,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s["delete"]),proto:s}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},2603:function(t,e,n){"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},2360:function(t,e,n){"use strict";var r,s=n(8551),i=n(6801),o=n(8727),a=n(421),u=n(397),c=n(4055),l=n(6119),f=">",h="<",p="prototype",d="script",g=l("IE_PROTO"),m=function(){},y=function(t){return h+d+f+t+h+"/"+d+f},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&r?v(r):b():v(r);var t=o.length;while(t--)delete w[p][o[t]];return w()};a[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=s(t),n=new m,m[p]=null,n[g]=t):n=w(),void 0===e?n:i.f(n,e)}},6801:function(t,e,n){"use strict";var r=n(3724),s=n(8686),i=n(4913),o=n(8551),a=n(5397),u=n(1072);e.f=r&&!s?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=u(e),c=s.length,l=0;while(c>l)i.f(t,n=s[l++],r[n]);return t}},4913:function(t,e,n){"use strict";var r=n(3724),s=n(5917),i=n(8686),o=n(8551),a=n(6969),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",p="writable";e.f=r?i?function(t,e,n){if(o(t),e=a(e),o(n),"function"===typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(o(t),e=a(e),o(n),s)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var r=n(3724),s=n(9565),i=n(8773),o=n(6980),a=n(5397),u=n(6969),c=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),l)try{return f(t,e)}catch(n){}if(c(t,e))return o(!s(i.f,t,e),t[e])}},8480:function(t,e,n){"use strict";var r=n(1828),s=n(8727),i=s.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){"use strict";var r=n(9297),s=n(4901),i=n(8981),o=n(6119),a=n(2211),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(r(e,u))return e[u];var n=e.constructor;return s(n)&&e instanceof n?n.prototype:e instanceof c?l:null}},1625:function(t,e,n){"use strict";var r=n(9504);t.exports=r({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var r=n(9504),s=n(9297),i=n(5397),o=n(9617).indexOf,a=n(421),u=r([].push);t.exports=function(t,e){var n,r=i(t),c=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&u(l,n);while(e.length>c)s(r,n=e[c++])&&(~o(l,n)||u(l,n));return l}},1072:function(t,e,n){"use strict";var r=n(1828),s=n(8727);t.exports=Object.keys||function(t){return r(t,s)}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);e.f=s?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2967:function(t,e,n){"use strict";var r=n(6706),s=n(34),i=n(7750),o=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),s(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},4270:function(t,e,n){"use strict";var r=n(9565),s=n(4901),i=n(34),o=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&s(n=t.toString)&&!i(a=r(n,t)))return a;if(s(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&s(n=t.toString)&&!i(a=r(n,t)))return a;throw new o("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var r=n(7751),s=n(9504),i=n(8480),o=n(3717),a=n(8551),u=s([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?u(e,n(t)):e}},7979:function(t,e,n){"use strict";var r=n(8551);t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},1034:function(t,e,n){"use strict";var r=n(9565),s=n(9297),i=n(1625),o=n(7979),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||s(t,"flags")||!i(a,t)?e:r(o,t)}},7750:function(t,e,n){"use strict";var r=n(4117),s=TypeError;t.exports=function(t){if(r(t))throw new s("Can't call method on "+t);return t}},9286:function(t,e,n){"use strict";var r=n(4402),s=n(8469),i=r.Set,o=r.add;t.exports=function(t){var e=new i;return s(t,(function(t){o(e,t)})),e}},3440:function(t,e,n){"use strict";var r=n(7080),s=n(4402),i=n(9286),o=n(5170),a=n(3789),u=n(8469),c=n(507),l=s.has,f=s.remove;t.exports=function(t){var e=r(this),n=a(t),s=i(e);return o(e)<=n.size?u(e,(function(t){n.includes(t)&&f(s,t)})):c(n.getIterator(),(function(t){l(e,t)&&f(s,t)})),s}},4402:function(t,e,n){"use strict";var r=n(9504),s=Set.prototype;t.exports={Set:Set,add:r(s.add),has:r(s.has),remove:r(s["delete"]),proto:s}},8750:function(t,e,n){"use strict";var r=n(7080),s=n(4402),i=n(5170),o=n(3789),a=n(8469),u=n(507),c=s.Set,l=s.add,f=s.has;t.exports=function(t){var e=r(this),n=o(t),s=new c;return i(e)>n.size?u(n.getIterator(),(function(t){f(e,t)&&l(s,t)})):a(e,(function(t){n.includes(t)&&l(s,t)})),s}},4449:function(t,e,n){"use strict";var r=n(7080),s=n(4402).has,i=n(5170),o=n(3789),a=n(8469),u=n(507),c=n(9539);t.exports=function(t){var e=r(this),n=o(t);if(i(e)<=n.size)return!1!==a(e,(function(t){if(n.includes(t))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(t){if(s(e,t))return c(l,"normal",!1)}))}},3838:function(t,e,n){"use strict";var r=n(7080),s=n(5170),i=n(8469),o=n(3789);t.exports=function(t){var e=r(this),n=o(t);return!(s(e)>n.size)&&!1!==i(e,(function(t){if(!n.includes(t))return!1}),!0)}},8527:function(t,e,n){"use strict";var r=n(7080),s=n(4402).has,i=n(5170),o=n(3789),a=n(507),u=n(9539);t.exports=function(t){var e=r(this),n=o(t);if(i(e)92||"NODE"===o&&i>94||"BROWSER"===o&&i>97)return!1;var t=new ArrayBuffer(8),e=a(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength}))},4495:function(t,e,n){"use strict";var r=n(9519),s=n(9039),i=n(4576),o=i.String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},5610:function(t,e,n){"use strict";var r=n(1291),s=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?s(n+e,0):i(n,e)}},5854:function(t,e,n){"use strict";var r=n(2777),s=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new s("Can't convert number to bigint");return BigInt(e)}},7696:function(t,e,n){"use strict";var r=n(1291),s=n(8014),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=s(e);if(e!==n)throw new i("Wrong length or index");return n}},5397:function(t,e,n){"use strict";var r=n(7055),s=n(7750);t.exports=function(t){return r(s(t))}},1291:function(t,e,n){"use strict";var r=n(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},8014:function(t,e,n){"use strict";var r=n(1291),s=Math.min;t.exports=function(t){var e=r(t);return e>0?s(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var r=n(7750),s=Object;t.exports=function(t){return s(r(t))}},2777:function(t,e,n){"use strict";var r=n(9565),s=n(34),i=n(757),o=n(5966),a=n(4270),u=n(8227),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var n,u=o(t,l);if(u){if(void 0===e&&(e="default"),n=r(u,t,e),!s(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,n){"use strict";var r=n(2777),s=n(757);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+""}},2140:function(t,e,n){"use strict";var r=n(8227),s=r("toStringTag"),i={};i[s]="z",t.exports="[object z]"===String(i)},655:function(t,e,n){"use strict";var r=n(6955),s=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},3392:function(t,e,n){"use strict";var r=n(9504),s=0,i=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},7040:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var r=n(3724),s=n(9039);t.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t1&&!h(arguments[1])?m(arguments[1]):void 0,s=r?r.transfer:void 0;void 0!==s&&(e=new _,n=pt(s,e));var i=ht(t,e);return n&&dt(n),i}})},4603:function(t,e,n){"use strict";var r=n(6840),s=n(9504),i=n(655),o=n(2812),a=URLSearchParams,u=a.prototype,c=s(u.append),l=s(u["delete"]),f=s(u.forEach),h=s([].push),p=new a("a=1&a=2&b=3");p["delete"]("a",1),p["delete"]("b",void 0),p+""!=="a=2"&&r(u,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return l(this,t);var r=[];f(this,(function(t,e){h(r,{key:e,value:t})})),o(e,1);var s,a=i(t),u=i(n),p=0,d=0,g=!1,m=r.length;while(pt in e}const e={},r=[],s=()=>{},i=()=>!1,o=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),a=t=>t.startsWith("onUpdate:"),u=Object.assign,c=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},l=Object.prototype.hasOwnProperty,f=(t,e)=>l.call(t,e),h=Array.isArray,d=t=>"[object Map]"===O(t),g=t=>"[object Set]"===O(t),m=t=>"[object Date]"===O(t),y=t=>"[object RegExp]"===O(t),v=t=>"function"===typeof t,b=t=>"string"===typeof t,w=t=>"symbol"===typeof t,x=t=>null!==t&&"object"===typeof t,S=t=>(x(t)||v(t))&&v(t.then)&&v(t.catch),C=Object.prototype.toString,O=t=>C.call(t),k=t=>O(t).slice(8,-1),A=t=>"[object Object]"===O(t),E=t=>b(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,F=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},P=/-(\w)/g,R=T((t=>t.replace(P,((t,e)=>e?e.toUpperCase():"")))),L=/\B([A-Z])/g,I=T((t=>t.replace(L,"-$1").toLowerCase())),D=T((t=>t.charAt(0).toUpperCase()+t.slice(1))),M=T((t=>{const e=t?`on${D(t)}`:"";return e})),j=(t,e)=>!Object.is(t,e),_=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},B=t=>{const e=parseFloat(t);return isNaN(e)?t:e},U=t=>{const e=b(t)?Number(t):NaN;return isNaN(e)?t:e};let V;const G=()=>V||(V="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});function W(t){if(h(t)){const e={};for(let n=0;n{if(t){const n=t.split(H);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}function Z(t){let e="";if(b(t))e=t;else if(h(t))for(let n=0;n$(t,e)))}const et=t=>!(!t||!0!==t["__v_isRef"]),nt=t=>b(t)?t:null==t?"":h(t)||x(t)&&(t.toString===C||!v(t.toString))?et(t)?nt(t.value):JSON.stringify(t,rt,2):String(t),rt=(t,e)=>et(e)?rt(t,e.value):d(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,n],r)=>(t[st(e,r)+" =>"]=n,t)),{})}:g(e)?{[`Set(${e.size})`]:[...e.values()].map((t=>st(t)))}:w(e)?st(e):!x(e)||h(e)||A(e)?e:String(e),st=(t,e="")=>{var n;return w(t)?`Symbol(${null!=(n=t.description)?n:e})`:t};let it,ot;class at{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=it,!t&&it&&(this.index=(it.scopes||(it.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t0)return;if(pt){let t=pt;pt=void 0;while(t){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;while(ht){let n=ht;ht=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(e){t||(t=e)}n=r}}if(t)throw t}function vt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function bt(t){let e,n=t.depsTail,r=n;while(r){const t=r.prevDep;-1===r.version?(r===n&&(n=t),St(r),Ct(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=t}t.deps=e,t.depsTail=n}function wt(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(xt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function xt(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===Tt)return;t.globalVersion=Tt;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!wt(t))return void(t.flags&=-3);const n=ot,r=Ot;ot=t,Ot=!0;try{vt(t);const n=t.fn(t._value);(0===e.version||j(n,t._value))&&(t._value=n,e.version++)}catch(s){throw e.version++,s}finally{ot=n,Ot=r,bt(t),t.flags&=-3}}function St(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let t=n.computed.deps;t;t=t.nextDep)St(t,!0)}e||--n.sc||!n.map||n.map.delete(n.key)}function Ct(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Ot=!0;const kt=[];function At(){kt.push(Ot),Ot=!1}function Et(){const t=kt.pop();Ot=void 0===t||t}function Ft(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=ot;ot=void 0;try{e()}finally{ot=t}}}let Tt=0;class Pt{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Rt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ot||!Ot||ot===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==ot)e=this.activeLink=new Pt(ot,this),ot.deps?(e.prevDep=ot.depsTail,ot.depsTail.nextDep=e,ot.depsTail=e):ot.deps=ot.depsTail=e,Lt(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=ot.depsTail,e.nextDep=void 0,ot.depsTail.nextDep=e,ot.depsTail=e,ot.deps===e&&(ot.deps=t)}return e}trigger(t){this.version++,Tt++,this.notify(t)}notify(t){mt();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{yt()}}}function Lt(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)Lt(t)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const It=new WeakMap,Dt=Symbol(""),Mt=Symbol(""),jt=Symbol("");function _t(t,e,n){if(Ot&&ot){let e=It.get(t);e||It.set(t,e=new Map);let r=e.get(n);r||(e.set(n,r=new Rt),r.map=e,r.key=n),r.track()}}function Nt(t,e,n,r,s,i){const o=It.get(t);if(!o)return void Tt++;const a=t=>{t&&t.trigger()};if(mt(),"clear"===e)o.forEach(a);else{const s=h(t),i=s&&E(n);if(s&&"length"===n){const t=Number(r);o.forEach(((e,n)=>{("length"===n||n===jt||!w(n)&&n>=t)&&a(e)}))}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),i&&a(o.get(jt)),e){case"add":s?i&&a(o.get("length")):(a(o.get(Dt)),d(t)&&a(o.get(Mt)));break;case"delete":s||(a(o.get(Dt)),d(t)&&a(o.get(Mt)));break;case"set":d(t)&&a(o.get(Dt));break}}yt()}function Bt(t){const e=Ae(t);return e===t?e:(_t(e,"iterate",jt),Oe(t)?e:e.map(Fe))}function Ut(t){return _t(t=Ae(t),"iterate",jt),t}const Vt={__proto__:null,[Symbol.iterator](){return Gt(this,Symbol.iterator,Fe)},concat(...t){return Bt(this).concat(...t.map((t=>h(t)?Bt(t):t)))},entries(){return Gt(this,"entries",(t=>(t[1]=Fe(t[1]),t)))},every(t,e){return zt(this,"every",t,e,void 0,arguments)},filter(t,e){return zt(this,"filter",t,e,(t=>t.map(Fe)),arguments)},find(t,e){return zt(this,"find",t,e,Fe,arguments)},findIndex(t,e){return zt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return zt(this,"findLast",t,e,Fe,arguments)},findLastIndex(t,e){return zt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return zt(this,"forEach",t,e,void 0,arguments)},includes(...t){return qt(this,"includes",t)},indexOf(...t){return qt(this,"indexOf",t)},join(t){return Bt(this).join(t)},lastIndexOf(...t){return qt(this,"lastIndexOf",t)},map(t,e){return zt(this,"map",t,e,void 0,arguments)},pop(){return Yt(this,"pop")},push(...t){return Yt(this,"push",t)},reduce(t,...e){return Ht(this,"reduce",t,e)},reduceRight(t,...e){return Ht(this,"reduceRight",t,e)},shift(){return Yt(this,"shift")},some(t,e){return zt(this,"some",t,e,void 0,arguments)},splice(...t){return Yt(this,"splice",t)},toReversed(){return Bt(this).toReversed()},toSorted(t){return Bt(this).toSorted(t)},toSpliced(...t){return Bt(this).toSpliced(...t)},unshift(...t){return Yt(this,"unshift",t)},values(){return Gt(this,"values",Fe)}};function Gt(t,e,n){const r=Ut(t),s=r[e]();return r===t||Oe(t)||(s._next=s.next,s.next=()=>{const t=s._next();return t.value&&(t.value=n(t.value)),t}),s}const Wt=Array.prototype;function zt(t,e,n,r,s,i){const o=Ut(t),a=o!==t&&!Oe(t),u=o[e];if(u!==Wt[e]){const e=u.apply(t,i);return a?Fe(e):e}let c=n;o!==t&&(a?c=function(e,r){return n.call(this,Fe(e),r,t)}:n.length>2&&(c=function(e,r){return n.call(this,e,r,t)}));const l=u.call(o,c,r);return a&&s?s(l):l}function Ht(t,e,n,r){const s=Ut(t);let i=n;return s!==t&&(Oe(t)?n.length>3&&(i=function(e,r,s){return n.call(this,e,r,s,t)}):i=function(e,r,s){return n.call(this,e,Fe(r),s,t)}),s[e](i,...r)}function qt(t,e,n){const r=Ae(t);_t(r,"iterate",jt);const s=r[e](...n);return-1!==s&&!1!==s||!ke(n[0])?s:(n[0]=Ae(n[0]),r[e](...n))}function Yt(t,e,n=[]){At(),mt();const r=Ae(t)[e].apply(t,n);return yt(),Et(),r}const Zt=t("__proto__,__v_isRef,__isVue"),Kt=new Set(Object.getOwnPropertyNames(Symbol).filter((t=>"arguments"!==t&&"caller"!==t)).map((t=>Symbol[t])).filter(w));function Xt(t){w(t)||(t=String(t));const e=Ae(this);return _t(e,"has",t),e.hasOwnProperty(t)}class Jt{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t["__v_skip"];const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===e)return!r;if("__v_isReadonly"===e)return r;if("__v_isShallow"===e)return s;if("__v_raw"===e)return n===(r?s?ge:de:s?pe:he).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=h(t);if(!r){let t;if(i&&(t=Vt[e]))return t;if("hasOwnProperty"===e)return Xt}const o=Reflect.get(t,e,Pe(t)?t:n);return(w(e)?Kt.has(e):Zt(e))?o:(r||_t(t,"get",e),s?o:Pe(o)?i&&E(e)?o:o.value:x(o)?r?we(o):ve(o):o)}}class Qt extends Jt{constructor(t=!1){super(!1,t)}set(t,e,n,r){let s=t[e];if(!this._isShallow){const e=Ce(s);if(Oe(n)||Ce(n)||(s=Ae(s),n=Ae(n)),!h(t)&&Pe(s)&&!Pe(n))return!e&&(s.value=n,!0)}const i=h(t)&&E(e)?Number(e)t,se=t=>Reflect.getPrototypeOf(t);function ie(t,e,n){return function(...r){const s=this["__v_raw"],i=Ae(s),o=d(i),a="entries"===t||t===Symbol.iterator&&o,u="keys"===t&&o,c=s[t](...r),l=n?re:e?Te:Fe;return!e&&_t(i,"iterate",u?Mt:Dt),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:a?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function oe(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function ae(t,e){const n={get(n){const r=this["__v_raw"],s=Ae(r),i=Ae(n);t||(j(n,i)&&_t(s,"get",n),_t(s,"get",i));const{has:o}=se(s),a=e?re:t?Te:Fe;return o.call(s,n)?a(r.get(n)):o.call(s,i)?a(r.get(i)):void(r!==s&&r.get(n))},get size(){const e=this["__v_raw"];return!t&&_t(Ae(e),"iterate",Dt),Reflect.get(e,"size",e)},has(e){const n=this["__v_raw"],r=Ae(n),s=Ae(e);return t||(j(e,s)&&_t(r,"has",e),_t(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)},forEach(n,r){const s=this,i=s["__v_raw"],o=Ae(i),a=e?re:t?Te:Fe;return!t&&_t(o,"iterate",Dt),i.forEach(((t,e)=>n.call(r,a(t),a(e),s)))}};u(n,t?{add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear")}:{add(t){e||Oe(t)||Ce(t)||(t=Ae(t));const n=Ae(this),r=se(n),s=r.has.call(n,t);return s||(n.add(t),Nt(n,"add",t,t)),this},set(t,n){e||Oe(n)||Ce(n)||(n=Ae(n));const r=Ae(this),{has:s,get:i}=se(r);let o=s.call(r,t);o||(t=Ae(t),o=s.call(r,t));const a=i.call(r,t);return r.set(t,n),o?j(n,a)&&Nt(r,"set",t,n,a):Nt(r,"add",t,n),this},delete(t){const e=Ae(this),{has:n,get:r}=se(e);let s=n.call(e,t);s||(t=Ae(t),s=n.call(e,t));const i=r?r.call(e,t):void 0,o=e.delete(t);return s&&Nt(e,"delete",t,void 0,i),o},clear(){const t=Ae(this),e=0!==t.size,n=void 0,r=t.clear();return e&&Nt(t,"clear",void 0,void 0,n),r}});const r=["keys","values","entries",Symbol.iterator];return r.forEach((r=>{n[r]=ie(r,t,e)})),n}function ue(t,e){const n=ae(t,e);return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(f(n,r)&&r in e?n:e,r,s)}const ce={get:ue(!1,!1)},le={get:ue(!1,!0)},fe={get:ue(!0,!1)};const he=new WeakMap,pe=new WeakMap,de=new WeakMap,ge=new WeakMap;function me(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ye(t){return t["__v_skip"]||!Object.isExtensible(t)?0:me(k(t))}function ve(t){return Ce(t)?t:xe(t,!1,te,ce,he)}function be(t){return xe(t,!1,ne,le,pe)}function we(t){return xe(t,!0,ee,fe,de)}function xe(t,e,n,r,s){if(!x(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const i=s.get(t);if(i)return i;const o=ye(t);if(0===o)return t;const a=new Proxy(t,2===o?r:n);return s.set(t,a),a}function Se(t){return Ce(t)?Se(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Ce(t){return!(!t||!t["__v_isReadonly"])}function Oe(t){return!(!t||!t["__v_isShallow"])}function ke(t){return!!t&&!!t["__v_raw"]}function Ae(t){const e=t&&t["__v_raw"];return e?Ae(e):t}function Ee(t){return!f(t,"__v_skip")&&Object.isExtensible(t)&&N(t,"__v_skip",!0),t}const Fe=t=>x(t)?ve(t):t,Te=t=>x(t)?we(t):t;function Pe(t){return!!t&&!0===t["__v_isRef"]}function Re(t){return Le(t,!1)}function Le(t,e){return Pe(t)?t:new Ie(t,e)}class Ie{constructor(t,e){this.dep=new Rt,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=e?t:Ae(t),this._value=e?t:Fe(t),this["__v_isShallow"]=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this["__v_isShallow"]||Oe(t)||Ce(t);t=n?t:Ae(t),j(t,e)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function De(t){return Pe(t)?t.value:t}const Me={get:(t,e,n)=>"__v_raw"===e?t:De(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return Pe(s)&&!Pe(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function je(t){return Se(t)?t:new Proxy(t,Me)}class _e{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new Rt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Tt-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!e,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ot===this))return gt(this,!0),!0}get value(){const t=this.dep.track();return xt(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ne(t,e,n=!1){let r,s;v(t)?r=t:(r=t.get,s=t.set);const i=new _e(r,s,n);return i}const Be={},Ue=new WeakMap;let Ve;function Ge(t,e=!1,n=Ve){if(n){let e=Ue.get(n);e||Ue.set(n,e=[]),e.push(t)}else 0}function We(t,n,r=e){const{immediate:i,deep:o,once:a,scheduler:u,augmentJob:l,call:f}=r,p=t=>o?t:Oe(t)||!1===o||0===o?ze(t,1):ze(t);let d,g,m,y,b=!1,w=!1;if(Pe(t)?(g=()=>t.value,b=Oe(t)):Se(t)?(g=()=>p(t),b=!0):h(t)?(w=!0,b=t.some((t=>Se(t)||Oe(t))),g=()=>t.map((t=>Pe(t)?t.value:Se(t)?p(t):v(t)?f?f(t,2):t():void 0))):g=v(t)?n?f?()=>f(t,2):t:()=>{if(m){At();try{m()}finally{Et()}}const e=Ve;Ve=d;try{return f?f(t,3,[y]):t(y)}finally{Ve=e}}:s,n&&o){const t=g,e=!0===o?1/0:o;g=()=>ze(t(),e)}const x=ct(),S=()=>{d.stop(),x&&x.active&&c(x.effects,d)};if(a&&n){const t=n;n=(...e)=>{t(...e),S()}}let C=w?new Array(t.length).fill(Be):Be;const O=t=>{if(1&d.flags&&(d.dirty||t))if(n){const t=d.run();if(o||b||(w?t.some(((t,e)=>j(t,C[e]))):j(t,C))){m&&m();const e=Ve;Ve=d;try{const e=[t,C===Be?void 0:w&&C[0]===Be?[]:C,y];f?f(n,3,e):n(...e),C=t}finally{Ve=e}}}else d.run()};return l&&l(O),d=new ft(g),d.scheduler=u?()=>u(O,!1):O,y=t=>Ge(t,!1,d),m=d.onStop=()=>{const t=Ue.get(d);if(t){if(f)f(t,4);else for(const e of t)e();Ue.delete(d)}},n?i?O(!0):C=d.run():u?u(O.bind(null,!0),!0):d.run(),S.pause=d.pause.bind(d),S.resume=d.resume.bind(d),S.stop=S,S}function ze(t,e=1/0,n){if(e<=0||!x(t)||t["__v_skip"])return t;if(n=n||new Set,n.has(t))return t;if(n.add(t),e--,Pe(t))ze(t.value,e,n);else if(h(t))for(let r=0;r{ze(t,e,n)}));else if(A(t)){for(const r in t)ze(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&ze(t[r],e,n)}return t}function He(t,e,n,r){try{return r?t(...r):t()}catch(s){Ye(s,e,n)}}function qe(t,e,n,r){if(v(t)){const s=He(t,e,n,r);return s&&S(s)&&s.catch((t=>{Ye(t,e,n)})),s}if(h(t)){const s=[];for(let i=0;i>>1,s=Ke[r],i=ln(s);i=ln(n)?Ke.push(t):Ke.splice(rn(e),0,t),t.flags|=1,on()}}function on(){en||(en=tn.then(fn))}function an(t){h(t)?Je.push(...t):Qe&&-1===t.id?Qe.splice($e+1,0,t):1&t.flags||(Je.push(t),t.flags|=1),on()}function un(t,e,n=Xe+1){for(0;nln(t)-ln(e)));if(Je.length=0,Qe)return void Qe.push(...t);for(Qe=t,$e=0;$enull==t.id?2&t.flags?-1:1/0:t.id;function fn(t){try{for(Xe=0;Xe{r._d&&Ks(-1);const s=dn(e);let i;try{i=t(...n)}finally{dn(s),r._d&&Ks(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function mn(t,n){if(null===hn)return t;const r=Di(hn),s=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,wn=t=>t&&(t.disabled||""===t.disabled),xn=t=>t&&(t.defer||""===t.defer),Sn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,Cn=t=>"function"===typeof MathMLElement&&t instanceof MathMLElement,On=(t,e)=>{const n=t&&t.to;if(b(n)){if(e){const t=e(n);return t}return null}return n},kn={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,i,o,a,u,c){const{mc:l,pc:f,pbc:h,o:{insert:p,querySelector:d,createText:g,createComment:m}}=c,y=wn(e.props);let{shapeFlag:v,children:b,dynamicChildren:w}=e;if(null==t){const t=e.el=g(""),c=e.anchor=g("");p(t,n,r),p(c,n,r);const f=(t,e)=>{16&v&&(s&&s.isCE&&(s.ce._teleportTarget=t),l(b,t,e,s,i,o,a,u))},h=()=>{const t=e.target=On(e.props,d),n=Pn(t,e,g,p);t&&("svg"!==o&&Sn(t)?o="svg":"mathml"!==o&&Cn(t)&&(o="mathml"),y||(f(t,n),Tn(e,!1)))};y&&(f(n,c),Tn(e,!0)),xn(e.props)?hs((()=>{h(),e.el.__isMounted=!0}),i):h()}else{if(xn(e.props)&&!t.el.__isMounted)return void hs((()=>{kn.process(t,e,n,r,s,i,o,a,u,c),delete t.el.__isMounted}),i);e.el=t.el,e.targetStart=t.targetStart;const l=e.anchor=t.anchor,p=e.target=t.target,g=e.targetAnchor=t.targetAnchor,m=wn(t.props),v=m?n:p,b=m?l:g;if("svg"===o||Sn(p)?o="svg":("mathml"===o||Cn(p))&&(o="mathml"),w?(h(t.dynamicChildren,w,v,s,i,o,a),vs(t,e,!0)):u||f(t,e,v,b,s,i,o,a,!1),y)m?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):An(e,n,l,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=On(e.props,d);t&&An(e,t,null,c,0)}else m&&An(e,p,g,c,1);Tn(e,y)}},remove(t,e,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:u,targetStart:c,targetAnchor:l,target:f,props:h}=t;if(f&&(s(c),s(l)),i&&s(u),16&o){const t=i||!wn(h);for(let s=0;s{t.isMounted=!0})),cr((()=>{t.isUnmounting=!0})),t}const Dn=[Function,Array],Mn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dn,onEnter:Dn,onAfterEnter:Dn,onEnterCancelled:Dn,onBeforeLeave:Dn,onLeave:Dn,onAfterLeave:Dn,onLeaveCancelled:Dn,onBeforeAppear:Dn,onAppear:Dn,onAfterAppear:Dn,onAppearCancelled:Dn},jn=t=>{const e=t.subTree;return e.component?jn(e.component):e},_n={name:"BaseTransition",props:Mn,setup(t,{slots:e}){const n=bi(),r=In();return()=>{const s=e.default&&Hn(e.default(),!0);if(!s||!s.length)return;const i=Nn(s),o=Ae(t),{mode:a}=o;if(r.isLeaving)return Gn(i);const u=Wn(i);if(!u)return Gn(i);let c=Vn(u,o,r,n,(t=>c=t));u.type!==Gs&&zn(u,c);let l=n.subTree&&Wn(n.subTree);if(l&&l.type!==Gs&&!ti(u,l)&&jn(n).type!==Gs){let t=Vn(l,o,r,n);if(zn(l,t),"out-in"===a&&u.type!==Gs)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete t.afterLeave,l=void 0},Gn(i);"in-out"===a&&u.type!==Gs?t.delayLeave=(t,e,n)=>{const s=Un(r,l);s[String(l.key)]=l,t[Rn]=()=>{e(),t[Rn]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function Nn(t){let e=t[0];if(t.length>1){let n=!1;for(const r of t)if(r.type!==Gs){0,e=r,n=!0;break}}return e}const Bn=_n;function Un(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Vn(t,e,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:p,onLeave:d,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:w}=e,x=String(t.key),S=Un(n,t),C=(t,e)=>{t&&qe(t,r,9,e)},O=(t,e)=>{const n=e[1];C(t,e),h(t)?t.every((t=>t.length<=1))&&n():t.length<=1&&n()},k={mode:o,persisted:a,beforeEnter(e){let r=u;if(!n.isMounted){if(!i)return;r=y||u}e[Rn]&&e[Rn](!0);const s=S[x];s&&ti(t,s)&&s.el[Rn]&&s.el[Rn](),C(r,[e])},enter(t){let e=c,r=l,s=f;if(!n.isMounted){if(!i)return;e=v||c,r=b||l,s=w||f}let o=!1;const a=t[Ln]=e=>{o||(o=!0,C(e?s:r,[t]),k.delayedLeave&&k.delayedLeave(),t[Ln]=void 0)};e?O(e,[t,a]):a()},leave(e,r){const s=String(t.key);if(e[Ln]&&e[Ln](!0),n.isUnmounting)return r();C(p,[e]);let i=!1;const o=e[Rn]=n=>{i||(i=!0,r(),C(n?m:g,[e]),e[Rn]=void 0,S[s]===t&&delete S[s])};S[s]=t,d?O(d,[e,o]):o()},clone(t){const i=Vn(t,e,n,r,s);return s&&s(i),i}};return k}function Gn(t){if(Kn(t))return t=ai(t),t.children=null,t}function Wn(t){if(!Kn(t))return bn(t.type)&&t.children?Nn(t.children):t;const{shapeFlag:e,children:n}=t;if(n){if(16&e)return n[0];if(32&e&&v(n.default))return n.default()}}function zn(t,e){6&t.shapeFlag&&t.component?(t.transition=e,zn(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Hn(t,e=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;iYn(t,n&&(h(n)?n[e]:n),r,s,i)));if(Zn(s)&&!i)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&Yn(t,n,r,s.component.subTree));const o=4&s.shapeFlag?Di(s.component):s.el,a=i?null:o,{i:u,r:l}=t;const p=n&&n.r,d=u.refs===e?u.refs={}:u.refs,g=u.setupState,m=Ae(g),y=g===e?()=>!1:t=>f(m,t);if(null!=p&&p!==l&&(b(p)?(d[p]=null,y(p)&&(g[p]=null)):Pe(p)&&(p.value=null)),v(l))He(l,u,12,[a,d]);else{const e=b(l),n=Pe(l);if(e||n){const s=()=>{if(t.f){const n=e?y(l)?g[l]:d[l]:l.value;i?h(n)&&c(n,o):h(n)?n.includes(o)||n.push(o):e?(d[l]=[o],y(l)&&(g[l]=d[l])):(l.value=[o],t.k&&(d[t.k]=l.value))}else e?(d[l]=a,y(l)&&(g[l]=a)):n&&(l.value=a,t.k&&(d[t.k]=a))};a?(s.id=-1,hs(s,r)):s()}else 0}}G().requestIdleCallback,G().cancelIdleCallback;const Zn=t=>!!t.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;const Kn=t=>t.type.__isKeepAlive;RegExp,RegExp;function Xn(t,e){return h(t)?t.some((t=>Xn(t,e))):b(t)?t.split(",").includes(e):!!y(t)&&(t.lastIndex=0,t.test(e))}function Jn(t,e){$n(t,"a",e)}function Qn(t,e){$n(t,"da",e)}function $n(t,e,n=vi){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(rr(e,r,n),n){let t=n.parent;while(t&&t.parent)Kn(t.parent.vnode)&&tr(r,e,n,t),t=t.parent}}function tr(t,e,n,r){const s=rr(e,t,r,!0);lr((()=>{c(r[e],s)}),n)}function er(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function nr(t){return 128&t.shapeFlag?t.ssContent:t}function rr(t,e,n=vi,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...r)=>{At();const s=Si(n),i=qe(e,n,t,r);return s(),Et(),i});return r?s.unshift(i):s.push(i),i}}const sr=t=>(e,n=vi)=>{Ei&&"sp"!==t||rr(t,((...t)=>e(...t)),n)},ir=sr("bm"),or=sr("m"),ar=sr("bu"),ur=sr("u"),cr=sr("bum"),lr=sr("um"),fr=sr("sp"),hr=sr("rtg"),pr=sr("rtc");function dr(t,e=vi){rr("ec",t,e)}const gr=Symbol.for("v-ndc");function mr(t,e,n,r){let s;const i=n&&n[r],o=h(t);if(o||b(t)){const n=o&&Se(t);let r=!1;n&&(r=!Oe(t),t=Ut(t)),s=new Array(t.length);for(let o=0,a=t.length;oe(t,n,void 0,i&&i[n])));else{const n=Object.keys(t);s=new Array(n.length);for(let r=0,o=n.length;r!$s(t)||t.type!==Gs&&!(t.type===Us&&!vr(t.children))))?t:null}const br=t=>t?Oi(t)?Di(t):br(t.parent):null,wr=u(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>br(t.parent),$root:t=>br(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Rr(t),$forceUpdate:t=>t.f||(t.f=()=>{sn(t.update)}),$nextTick:t=>t.n||(t.n=nn.bind(t.proxy)),$watch:t=>As.bind(t)}),xr=(t,n)=>t!==e&&!t.__isScriptSetup&&f(t,n),Sr={get({_:t},n){if("__v_skip"===n)return!0;const{ctx:r,setupState:s,data:i,props:o,accessCache:a,type:u,appContext:c}=t;let l;if("$"!==n[0]){const u=a[n];if(void 0!==u)switch(u){case 1:return s[n];case 2:return i[n];case 4:return r[n];case 3:return o[n]}else{if(xr(s,n))return a[n]=1,s[n];if(i!==e&&f(i,n))return a[n]=2,i[n];if((l=t.propsOptions[0])&&f(l,n))return a[n]=3,o[n];if(r!==e&&f(r,n))return a[n]=4,r[n];Ar&&(a[n]=0)}}const h=wr[n];let p,d;return h?("$attrs"===n&&_t(t.attrs,"get",""),h(t)):(p=u.__cssModules)&&(p=p[n])?p:r!==e&&f(r,n)?(a[n]=4,r[n]):(d=c.config.globalProperties,f(d,n)?d[n]:void 0)},set({_:t},n,r){const{data:s,setupState:i,ctx:o}=t;return xr(i,n)?(i[n]=r,!0):s!==e&&f(s,n)?(s[n]=r,!0):!f(t.props,n)&&(("$"!==n[0]||!(n.slice(1)in t))&&(o[n]=r,!0))},has({_:{data:t,setupState:n,accessCache:r,ctx:s,appContext:i,propsOptions:o}},a){let u;return!!r[a]||t!==e&&f(t,a)||xr(n,a)||(u=o[0])&&f(u,a)||f(s,a)||f(wr,a)||f(i.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:f(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Cr(){return Or().slots}function Or(){const t=bi();return t.setupContext||(t.setupContext=Ii(t))}function kr(t){return h(t)?t.reduce(((t,e)=>(t[e]=null,t)),{}):t}let Ar=!0;function Er(t){const e=Rr(t),n=t.proxy,r=t.ctx;Ar=!1,e.beforeCreate&&Tr(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:u,provide:c,inject:l,created:f,beforeMount:p,mounted:d,beforeUpdate:g,updated:m,activated:y,deactivated:b,beforeDestroy:w,beforeUnmount:S,destroyed:C,unmounted:O,render:k,renderTracked:A,renderTriggered:E,errorCaptured:F,serverPrefetch:T,expose:P,inheritAttrs:R,components:L,directives:I,filters:D}=e,M=null;if(l&&Fr(l,r,M),a)for(const s in a){const t=a[s];v(t)&&(r[s]=t.bind(n))}if(i){0;const e=i.call(n,n);0,x(e)&&(t.data=ve(e))}if(Ar=!0,o)for(const h in o){const t=o[h],e=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):s;0;const i=!v(t)&&v(t.set)?t.set.bind(n):s,a=_i({get:e,set:i});Object.defineProperty(r,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t})}if(u)for(const s in u)Pr(u[s],r,n,s);if(c){const t=v(c)?c.call(n):c;Reflect.ownKeys(t).forEach((e=>{Hr(e,t[e])}))}function j(t,e){h(e)?e.forEach((e=>t(e.bind(n)))):e&&t(e.bind(n))}if(f&&Tr(f,t,"c"),j(ir,p),j(or,d),j(ar,g),j(ur,m),j(Jn,y),j(Qn,b),j(dr,F),j(pr,A),j(hr,E),j(cr,S),j(lr,O),j(fr,T),h(P))if(P.length){const e=t.exposed||(t.exposed={});P.forEach((t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})}))}else t.exposed||(t.exposed={});k&&t.render===s&&(t.render=k),null!=R&&(t.inheritAttrs=R),L&&(t.components=L),I&&(t.directives=I),T&&qn(t)}function Fr(t,e,n=s){h(t)&&(t=jr(t));for(const r in t){const n=t[r];let s;s=x(n)?"default"in n?qr(n.from||r,n.default,!0):qr(n.from||r):qr(n),Pe(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[r]=s}}function Tr(t,e,n){qe(h(t)?t.map((t=>t.bind(e.proxy))):t.bind(e.proxy),e,n)}function Pr(t,e,n,r){let s=r.includes(".")?Es(n,r):()=>n[r];if(b(t)){const n=e[t];v(n)&&Os(s,n)}else if(v(t))Os(s,t.bind(n));else if(x(t))if(h(t))t.forEach((t=>Pr(t,e,n,r)));else{const r=v(t.handler)?t.handler.bind(n):e[t.handler];v(r)&&Os(s,r,t)}else 0}function Rr(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let u;return a?u=a:s.length||n||r?(u={},s.length&&s.forEach((t=>Lr(u,t,o,!0))),Lr(u,e,o)):u=e,x(e)&&i.set(e,u),u}function Lr(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Lr(t,i,n,!0),s&&s.forEach((e=>Lr(t,e,n,!0)));for(const o in e)if(r&&"expose"===o);else{const r=Ir[o]||n&&n[o];t[o]=r?r(t[o],e[o]):e[o]}return t}const Ir={data:Dr,props:Br,emits:Br,methods:Nr,computed:Nr,beforeCreate:_r,created:_r,beforeMount:_r,mounted:_r,beforeUpdate:_r,updated:_r,beforeDestroy:_r,beforeUnmount:_r,destroyed:_r,unmounted:_r,activated:_r,deactivated:_r,errorCaptured:_r,serverPrefetch:_r,components:Nr,directives:Nr,watch:Ur,provide:Dr,inject:Mr};function Dr(t,e){return e?t?function(){return u(v(t)?t.call(this,this):t,v(e)?e.call(this,this):e)}:e:t}function Mr(t,e){return Nr(jr(t),jr(e))}function jr(t){if(h(t)){const e={};for(let n=0;n1)return n&&v(e)?e.call(r&&r.proxy):e}else 0}const Yr={},Zr=()=>Object.create(Yr),Kr=t=>Object.getPrototypeOf(t)===Yr;function Xr(t,e,n,r=!1){const s={},i=Zr();t.propsDefaults=Object.create(null),Qr(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:be(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function Jr(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Ae(s),[u]=t.propsOptions;let c=!1;if(!(r||o>0)||16&o){let r;Qr(t,e,s,i)&&(c=!0);for(const i in a)e&&(f(e,i)||(r=I(i))!==i&&f(e,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(s[i]=$r(u,a,i,void 0,t,!0)):delete s[i]);if(i!==a)for(const t in i)e&&f(e,t)||(delete i[t],c=!0)}else if(8&o){const n=t.vnode.dynamicProps;for(let r=0;r{p=!0;const[e,r]=es(t,n,!0);u(c,e),r&&l.push(...r)};!s&&n.mixins.length&&n.mixins.forEach(e),t.extends&&e(t.extends),t.mixins&&t.mixins.forEach(e)}if(!a&&!p)return x(t)&&i.set(t,r),r;if(h(a))for(let r=0;r"_"===t[0]||"$stable"===t,ss=t=>h(t)?t.map(li):[li(t)],is=(t,e,n)=>{if(e._n)return e;const r=gn(((...t)=>ss(e(...t))),n);return r._c=!1,r},os=(t,e,n)=>{const r=t._ctx;for(const s in t){if(rs(s))continue;const n=t[s];if(v(n))e[s]=is(s,n,r);else if(null!=n){0;const t=ss(n);e[s]=()=>t}}},as=(t,e)=>{const n=ss(e);t.slots.default=()=>n},us=(t,e,n)=>{for(const r in e)(n||"_"!==r)&&(t[r]=e[r])},cs=(t,e,n)=>{const r=t.slots=Zr();if(32&t.vnode.shapeFlag){const t=e._;t?(us(r,e,n),n&&N(r,"_",t,!0)):os(e,r)}else e&&as(t,e)},ls=(t,n,r)=>{const{vnode:s,slots:i}=t;let o=!0,a=e;if(32&s.shapeFlag){const t=n._;t?r&&1===t?o=!1:us(i,n,r):(o=!n.$stable,os(n,i)),a=n}else n&&(as(t,n),a={default:1});if(o)for(const e in i)rs(e)||null!=a[e]||delete i[e]};function fs(){"boolean"!==typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(G().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const hs=Bs;function ps(t){return ds(t)}function ds(t,n){fs();const i=G();i.__VUE__=!0;const{insert:o,remove:a,patchProp:u,createElement:c,createText:l,createComment:f,setText:h,setElementText:p,parentNode:d,nextSibling:g,setScopeId:m=s,insertStaticContent:y}=t,v=(t,e,n,r=null,s=null,i=null,o=void 0,a=null,u=!!e.dynamicChildren)=>{if(t===e)return;t&&!ti(t,e)&&(r=K(t),z(t,s,i,!0),t=null),-2===e.patchFlag&&(u=!1,e.dynamicChildren=null);const{type:c,ref:l,shapeFlag:f}=e;switch(c){case Vs:b(t,e,n,r);break;case Gs:w(t,e,n,r);break;case Ws:null==t&&x(e,n,r,o);break;case Us:L(t,e,n,r,s,i,o,a,u);break;default:1&f?O(t,e,n,r,s,i,o,a,u):6&f?I(t,e,n,r,s,i,o,a,u):(64&f||128&f)&&c.process(t,e,n,r,s,i,o,a,u,Q)}null!=l&&s&&Yn(l,t&&t.ref,i,e||t,!e)},b=(t,e,n,r)=>{if(null==t)o(e.el=l(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&h(n,e.children)}},w=(t,e,n,r)=>{null==t?o(e.el=f(e.children||""),n,r):e.el=t.el},x=(t,e,n,r)=>{[t.el,t.anchor]=y(t.children,e,n,r,t.el,t.anchor)},S=({el:t,anchor:e},n,r)=>{let s;while(t&&t!==e)s=g(t),o(t,n,r),t=s;o(e,n,r)},C=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=g(t),a(t),t=n;a(e)},O=(t,e,n,r,s,i,o,a,u)=>{"svg"===e.type?o="svg":"math"===e.type&&(o="mathml"),null==t?k(e,n,r,s,i,o,a,u):T(t,e,s,i,o,a,u)},k=(t,e,n,r,s,i,a,l)=>{let f,h;const{props:d,shapeFlag:g,transition:m,dirs:y}=t;if(f=t.el=c(t.type,i,d&&d.is,d),8&g?p(f,t.children):16&g&&E(t.children,f,null,r,s,gs(t,i),a,l),y&&yn(t,null,r,"created"),A(f,t,t.scopeId,a,r),d){for(const t in d)"value"===t||F(t)||u(f,t,null,d[t],i,r);"value"in d&&u(f,"value",null,d.value,i),(h=d.onVnodeBeforeMount)&&di(h,r,t)}y&&yn(t,null,r,"beforeMount");const v=ys(s,m);v&&m.beforeEnter(f),o(f,e,n),((h=d&&d.onVnodeMounted)||v||y)&&hs((()=>{h&&di(h,r,t),v&&m.enter(f),y&&yn(t,null,r,"mounted")}),s)},A=(t,e,n,r,s)=>{if(n&&m(t,n),r)for(let i=0;i{for(let c=u;c{const c=n.el=t.el;let{patchFlag:l,dynamicChildren:f,dirs:h}=n;l|=16&t.patchFlag;const d=t.props||e,g=n.props||e;let m;if(r&&ms(r,!1),(m=g.onVnodeBeforeUpdate)&&di(m,r,n,t),h&&yn(n,t,r,"beforeUpdate"),r&&ms(r,!0),(d.innerHTML&&null==g.innerHTML||d.textContent&&null==g.textContent)&&p(c,""),f?P(t.dynamicChildren,f,c,r,s,gs(n,i),o):a||B(t,n,c,null,r,s,gs(n,i),o,!1),l>0){if(16&l)R(c,d,g,r,i);else if(2&l&&d.class!==g.class&&u(c,"class",null,g.class,i),4&l&&u(c,"style",d.style,g.style,i),8&l){const t=n.dynamicProps;for(let e=0;e{m&&di(m,r,n,t),h&&yn(n,t,r,"updated")}),s)},P=(t,e,n,r,s,i,o)=>{for(let a=0;a{if(n!==r){if(n!==e)for(const e in n)F(e)||e in r||u(t,e,n[e],null,i,s);for(const e in r){if(F(e))continue;const o=r[e],a=n[e];o!==a&&"value"!==e&&u(t,e,a,o,i,s)}"value"in r&&u(t,"value",n.value,r.value,i)}},L=(t,e,n,r,s,i,a,u,c)=>{const f=e.el=t?t.el:l(""),h=e.anchor=t?t.anchor:l("");let{patchFlag:p,dynamicChildren:d,slotScopeIds:g}=e;g&&(u=u?u.concat(g):g),null==t?(o(f,n,r),o(h,n,r),E(e.children||[],n,h,s,i,a,u,c)):p>0&&64&p&&d&&t.dynamicChildren?(P(t.dynamicChildren,d,n,s,i,a,u),(null!=e.key||s&&e===s.subTree)&&vs(t,e,!0)):B(t,e,n,h,s,i,a,u,c)},I=(t,e,n,r,s,i,o,a,u)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?s.ctx.activate(e,n,r,o,u):D(e,n,r,s,i,o,u):M(t,e,u)},D=(t,e,n,r,s,i,o)=>{const a=t.component=yi(t,r,s);if(Kn(t)&&(a.ctx.renderer=Q),Fi(a,!1,o),a.asyncDep){if(s&&s.registerDep(a,j,o),!t.el){const t=a.subTree=si(Gs);w(null,t,e,n)}}else j(a,t,e,n,s,i,o)},M=(t,e,n)=>{const r=e.component=t.component;if(Ms(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void N(r,e,n);r.next=e,r.update()}else e.el=t.el,r.vnode=e},j=(t,e,n,r,s,i,o)=>{const a=()=>{if(t.isMounted){let{next:e,bu:n,u:r,parent:u,vnode:c}=t;{const n=ws(t);if(n)return e&&(e.el=c.el,N(t,e,o)),void n.asyncDep.then((()=>{t.isUnmounted||a()}))}let l,f=e;0,ms(t,!1),e?(e.el=c.el,N(t,e,o)):e=c,n&&_(n),(l=e.props&&e.props.onVnodeBeforeUpdate)&&di(l,u,e,c),ms(t,!0);const h=Ls(t);0;const p=t.subTree;t.subTree=h,v(p,h,d(p.el),K(p),t,s,i),e.el=h.el,null===f&&_s(t,h.el),r&&hs(r,s),(l=e.props&&e.props.onVnodeUpdated)&&hs((()=>di(l,u,e,c)),s)}else{let o;const{el:a,props:u}=e,{bm:c,m:l,parent:f,root:h,type:p}=t,d=Zn(e);if(ms(t,!1),c&&_(c),!d&&(o=u&&u.onVnodeBeforeMount)&&di(o,f,e),ms(t,!0),a&&tt){const e=()=>{t.subTree=Ls(t),tt(a,t.subTree,t,s,null)};d&&p.__asyncHydrate?p.__asyncHydrate(a,t,e):e()}else{h.ce&&h.ce._injectChildStyle(p);const o=t.subTree=Ls(t);0,v(null,o,n,r,t,s,i),e.el=o.el}if(l&&hs(l,s),!d&&(o=u&&u.onVnodeMounted)){const t=e;hs((()=>di(o,f,t)),s)}(256&e.shapeFlag||f&&Zn(f.vnode)&&256&f.vnode.shapeFlag)&&t.a&&hs(t.a,s),t.isMounted=!0,e=n=r=null}};t.scope.on();const u=t.effect=new ft(a);t.scope.off();const c=t.update=u.run.bind(u),l=t.job=u.runIfDirty.bind(u);l.i=t,l.id=t.uid,u.scheduler=()=>sn(l),ms(t,!0),c()},N=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,Jr(t,e.props,r,n),ls(t,e.children,n),At(),un(t),Et()},B=(t,e,n,r,s,i,o,a,u=!1)=>{const c=t&&t.children,l=t?t.shapeFlag:0,f=e.children,{patchFlag:h,shapeFlag:d}=e;if(h>0){if(128&h)return void V(c,f,n,r,s,i,o,a,u);if(256&h)return void U(c,f,n,r,s,i,o,a,u)}8&d?(16&l&&Z(c,s,i),f!==c&&p(n,f)):16&l?16&d?V(c,f,n,r,s,i,o,a,u):Z(c,s,i,!0):(8&l&&p(n,""),16&d&&E(f,n,r,s,i,o,a,u))},U=(t,e,n,s,i,o,a,u,c)=>{t=t||r,e=e||r;const l=t.length,f=e.length,h=Math.min(l,f);let p;for(p=0;pf?Z(t,i,o,!0,!1,h):E(e,n,s,i,o,a,u,c,h)},V=(t,e,n,s,i,o,a,u,c)=>{let l=0;const f=e.length;let h=t.length-1,p=f-1;while(l<=h&&l<=p){const r=t[l],s=e[l]=c?fi(e[l]):li(e[l]);if(!ti(r,s))break;v(r,s,n,null,i,o,a,u,c),l++}while(l<=h&&l<=p){const r=t[h],s=e[p]=c?fi(e[p]):li(e[p]);if(!ti(r,s))break;v(r,s,n,null,i,o,a,u,c),h--,p--}if(l>h){if(l<=p){const t=p+1,r=tp)while(l<=h)z(t[l],i,o,!0),l++;else{const d=l,g=l,m=new Map;for(l=g;l<=p;l++){const t=e[l]=c?fi(e[l]):li(e[l]);null!=t.key&&m.set(t.key,l)}let y,b=0;const w=p-g+1;let x=!1,S=0;const C=new Array(w);for(l=0;l=w){z(r,i,o,!0);continue}let s;if(null!=r.key)s=m.get(r.key);else for(y=g;y<=p;y++)if(0===C[y-g]&&ti(r,e[y])){s=y;break}void 0===s?z(r,i,o,!0):(C[s-g]=l+1,s>=S?S=s:x=!0,v(r,e[s],n,null,i,o,a,u,c),b++)}const O=x?bs(C):r;for(y=O.length-1,l=w-1;l>=0;l--){const t=g+l,r=e[t],h=t+1{const{el:i,type:a,transition:u,children:c,shapeFlag:l}=t;if(6&l)return void W(t.component.subTree,e,n,r);if(128&l)return void t.suspense.move(e,n,r);if(64&l)return void a.move(t,e,n,Q);if(a===Us){o(i,e,n);for(let t=0;tu.enter(i)),s);else{const{leave:t,delayLeave:r,afterLeave:s}=u,a=()=>o(i,e,n),c=()=>{t(i,(()=>{a(),s&&s()}))};r?r(i,a,c):c()}else o(i,e,n)},z=(t,e,n,r=!1,s=!1)=>{const{type:i,props:o,ref:a,children:u,dynamicChildren:c,shapeFlag:l,patchFlag:f,dirs:h,cacheIndex:p}=t;if(-2===f&&(s=!1),null!=a&&Yn(a,null,n,t,!0),null!=p&&(e.renderCache[p]=void 0),256&l)return void e.ctx.deactivate(t);const d=1&l&&h,g=!Zn(t);let m;if(g&&(m=o&&o.onVnodeBeforeUnmount)&&di(m,e,t),6&l)Y(t.component,n,r);else{if(128&l)return void t.suspense.unmount(n,r);d&&yn(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,n,Q,r):c&&!c.hasOnce&&(i!==Us||f>0&&64&f)?Z(c,e,n,!1,!0):(i===Us&&384&f||!s&&16&l)&&Z(u,e,n),r&&H(t)}(g&&(m=o&&o.onVnodeUnmounted)||d)&&hs((()=>{m&&di(m,e,t),d&&yn(t,null,e,"unmounted")}),n)},H=t=>{const{type:e,el:n,anchor:r,transition:s}=t;if(e===Us)return void q(n,r);if(e===Ws)return void C(t);const i=()=>{a(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&t.shapeFlag&&s&&!s.persisted){const{leave:e,delayLeave:r}=s,o=()=>e(n,i);r?r(t.el,i,o):o()}else i()},q=(t,e)=>{let n;while(t!==e)n=g(t),a(t),t=n;a(e)},Y=(t,e,n)=>{const{bum:r,scope:s,job:i,subTree:o,um:a,m:u,a:c}=t;xs(u),xs(c),r&&_(r),s.stop(),i&&(i.flags|=8,z(o,t,e,n)),a&&hs(a,e),hs((()=>{t.isUnmounted=!0}),e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},Z=(t,e,n,r=!1,s=!1,i=0)=>{for(let o=i;o{if(6&t.shapeFlag)return K(t.component.subTree);if(128&t.shapeFlag)return t.suspense.next();const e=g(t.anchor||t.el),n=e&&e[vn];return n?g(n):e};let X=!1;const J=(t,e,n)=>{null==t?e._vnode&&z(e._vnode,null,null,!0):v(e._vnode||null,t,e,null,null,null,n),e._vnode=t,X||(X=!0,un(),cn(),X=!1)},Q={p:v,um:z,m:W,r:H,mt:D,mc:E,pc:B,pbc:P,n:K,o:t};let $,tt;return n&&([$,tt]=n(Q)),{render:J,hydrate:$,createApp:Wr(J,$)}}function gs({type:t,props:e},n){return"svg"===n&&"foreignObject"===t||"mathml"===n&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ms({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function ys(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function vs(t,e,n=!1){const r=t.children,s=e.children;if(h(r)&&h(s))for(let i=0;i>1,t[n[a]]0&&(e[r]=n[i-1]),n[i]=r)}}i=n.length,o=n[i-1];while(i-- >0)n[i]=o,o=e[o];return n}function ws(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ws(e)}function xs(t){if(t)for(let e=0;e{{const t=qr(Ss);return t}};function Os(t,e,n){return ks(t,e,n)}function ks(t,n,r=e){const{immediate:i,deep:o,flush:a,once:c}=r;const l=u({},r);const f=n&&i||!n&&"post"!==a;let h;if(Ei)if("sync"===a){const t=Cs();h=t.__watcherHandles||(t.__watcherHandles=[])}else if(!f){const t=()=>{};return t.stop=s,t.resume=s,t.pause=s,t}const p=vi;l.call=(t,e,n)=>qe(t,p,e,n);let d=!1;"post"===a?l.scheduler=t=>{hs(t,p&&p.suspense)}:"sync"!==a&&(d=!0,l.scheduler=(t,e)=>{e?t():sn(t)}),l.augmentJob=t=>{n&&(t.flags|=4),d&&(t.flags|=2,p&&(t.id=p.uid,t.i=p))};const g=We(t,n,l);return Ei&&(h?h.push(g):f&&g()),g}function As(t,e,n){const r=this.proxy,s=b(t)?t.includes(".")?Es(r,t):()=>r[t]:t.bind(r,r);let i;v(e)?i=e:(i=e.handler,n=e);const o=Si(this),a=ks(s,i.bind(r),n);return o(),a}function Es(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t"modelValue"===e||"model-value"===e?t.modelModifiers:t[`${e}Modifiers`]||t[`${R(e)}Modifiers`]||t[`${I(e)}Modifiers`];function Ts(t,n,...r){if(t.isUnmounted)return;const s=t.vnode.props||e;let i=r;const o=n.startsWith("update:"),a=o&&Fs(s,n.slice(7));let u;a&&(a.trim&&(i=r.map((t=>b(t)?t.trim():t))),a.number&&(i=r.map(B)));let c=s[u=M(n)]||s[u=M(R(n))];!c&&o&&(c=s[u=M(I(n))]),c&&qe(c,t,6,i);const l=s[u+"Once"];if(l){if(t.emitted){if(t.emitted[u])return}else t.emitted={};t.emitted[u]=!0,qe(l,t,6,i)}}function Ps(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(void 0!==s)return s;const i=t.emits;let o={},a=!1;if(!v(t)){const r=t=>{const n=Ps(t,e,!0);n&&(a=!0,u(o,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return i||a?(h(i)?i.forEach((t=>o[t]=null)):u(o,i),x(t)&&r.set(t,o),o):(x(t)&&r.set(t,null),null)}function Rs(t,e){return!(!t||!o(e))&&(e=e.slice(2).replace(/Once$/,""),f(t,e[0].toLowerCase()+e.slice(1))||f(t,I(e))||f(t,e))}function Ls(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:u,emit:c,render:l,renderCache:f,props:h,data:p,setupState:d,ctx:g,inheritAttrs:m}=t,y=dn(t);let v,b;try{if(4&n.shapeFlag){const t=s||r,e=t;v=li(l.call(e,t,f,h,d,p,g)),b=u}else{const t=e;0,v=li(t.length>1?t(h,{attrs:u,slots:o,emit:c}):t(h,null)),b=e.props?u:Is(u)}}catch(x){zs.length=0,Ye(x,t,1),v=si(Gs)}let w=v;if(b&&!1!==m){const t=Object.keys(b),{shapeFlag:e}=w;t.length&&7&e&&(i&&t.some(a)&&(b=Ds(b,i)),w=ai(w,b,!1,!0))}return n.dirs&&(w=ai(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&zn(w,n.transition),v=w,dn(y),v}const Is=t=>{let e;for(const n in t)("class"===n||"style"===n||o(n))&&((e||(e={}))[n]=t[n]);return e},Ds=(t,e)=>{const n={};for(const r in t)a(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function Ms(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:u}=e,c=i.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&u>=0))return!(!s&&!a||a&&a.$stable)||r!==o&&(r?!o||js(r,o,c):!!o);if(1024&u)return!0;if(16&u)return r?js(r,o,c):!!o;if(8&u){const t=e.dynamicProps;for(let e=0;et.__isSuspense;function Bs(t,e){e&&e.pendingBranch?h(t)?e.effects.push(...t):e.effects.push(t):an(t)}const Us=Symbol.for("v-fgt"),Vs=Symbol.for("v-txt"),Gs=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),zs=[];let Hs=null;function qs(t=!1){zs.push(Hs=t?null:[])}function Ys(){zs.pop(),Hs=zs[zs.length-1]||null}let Zs=1;function Ks(t,e=!1){Zs+=t,t<0&&Hs&&e&&(Hs.hasOnce=!0)}function Xs(t){return t.dynamicChildren=Zs>0?Hs||r:null,Ys(),Zs>0&&Hs&&Hs.push(t),t}function Js(t,e,n,r,s,i){return Xs(ri(t,e,n,r,s,i,!0))}function Qs(t,e,n,r,s){return Xs(si(t,e,n,r,s,!0))}function $s(t){return!!t&&!0===t.__v_isVNode}function ti(t,e){return t.type===e.type&&t.key===e.key}const ei=({key:t})=>null!=t?t:null,ni=({ref:t,ref_key:e,ref_for:n})=>("number"===typeof t&&(t=""+t),null!=t?b(t)||Pe(t)||v(t)?{i:hn,r:t,k:e,f:!!n}:t:null);function ri(t,e=null,n=null,r=0,s=null,i=(t===Us?0:1),o=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ei(e),ref:e&&ni(e),scopeId:pn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:hn};return a?(hi(u,n),128&i&&t.normalize(u)):n&&(u.shapeFlag|=b(n)?8:16),Zs>0&&!o&&Hs&&(u.patchFlag>0||6&i)&&32!==u.patchFlag&&Hs.push(u),u}const si=ii;function ii(t,e=null,n=null,r=0,s=null,i=!1){if(t&&t!==gr||(t=Gs),$s(t)){const r=ai(t,e,!0);return n&&hi(r,n),Zs>0&&!i&&Hs&&(6&r.shapeFlag?Hs[Hs.indexOf(t)]=r:Hs.push(r)),r.patchFlag=-2,r}if(ji(t)&&(t=t.__vccOpts),e){e=oi(e);let{class:t,style:n}=e;t&&!b(t)&&(e.class=Z(t)),x(n)&&(ke(n)&&!h(n)&&(n=u({},n)),e.style=W(n))}const o=b(t)?1:Ns(t)?128:bn(t)?64:x(t)?4:v(t)?2:0;return ri(t,e,n,r,s,o,i,!0)}function oi(t){return t?ke(t)||Kr(t)?u({},t):t:null}function ai(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:u}=t,c=e?pi(s||{},e):s,l={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&ei(c),ref:e&&e.ref?n&&i?h(i)?i.concat(ni(e)):[i,ni(e)]:ni(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Us?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ai(t.ssContent),ssFallback:t.ssFallback&&ai(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&r&&zn(l,u.clone(l)),l}function ui(t=" ",e=0){return si(Vs,null,t,e)}function ci(t="",e=!1){return e?(qs(),Qs(Gs,null,t)):si(Gs,null,t)}function li(t){return null==t||"boolean"===typeof t?si(Gs):h(t)?si(Us,null,t.slice()):$s(t)?fi(t):si(Vs,null,String(t))}function fi(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:ai(t)}function hi(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(h(e))n=16;else if("object"===typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),hi(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Kr(e)?3===r&&hn&&(1===hn.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=hn}}else v(e)?(e={default:e,_ctx:hn},n=32):(e=String(e),64&r?(n=16,e=[ui(e)]):n=8);t.children=e,t.shapeFlag|=n}function pi(...t){const e={};for(let n=0;nvi||hn;let wi,xi;{const t=G(),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach((e=>e(t))):r[0](t)}};wi=e("__VUE_INSTANCE_SETTERS__",(t=>vi=t)),xi=e("__VUE_SSR_SETTERS__",(t=>Ei=t))}const Si=t=>{const e=vi;return wi(t),t.scope.on(),()=>{t.scope.off(),wi(e)}},Ci=()=>{vi&&vi.scope.off(),wi(null)};function Oi(t){return 4&t.vnode.shapeFlag}let ki,Ai,Ei=!1;function Fi(t,e=!1,n=!1){e&&xi(e);const{props:r,children:s}=t.vnode,i=Oi(t);Xr(t,r,i,e),cs(t,s,n);const o=i?Ti(t,e):void 0;return e&&xi(!1),o}function Ti(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Sr);const{setup:r}=n;if(r){At();const n=t.setupContext=r.length>1?Ii(t):null,s=Si(t),i=He(r,t,0,[t.props,n]),o=S(i);if(Et(),s(),!o&&!t.sp||Zn(t)||qn(t),o){if(i.then(Ci,Ci),e)return i.then((n=>{Pi(t,n,e)})).catch((e=>{Ye(e,t,0)}));t.asyncDep=i}else Pi(t,i,e)}else Ri(t,e)}function Pi(t,e,n){v(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:x(e)&&(t.setupState=je(e)),Ri(t,n)}function Ri(t,e,n){const r=t.type;if(!t.render){if(!e&&ki&&!r.render){const e=r.template||Rr(t).template;if(e){0;const{isCustomElement:n,compilerOptions:s}=t.appContext.config,{delimiters:i,compilerOptions:o}=r,a=u(u({isCustomElement:n,delimiters:i},s),o);r.render=ki(e,a)}}t.render=r.render||s,Ai&&Ai(t)}{const e=Si(t);At();try{Er(t)}finally{Et(),e()}}}const Li={get(t,e){return _t(t,"get",""),t[e]}};function Ii(t){const e=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,Li),slots:t.slots,emit:t.emit,expose:e}}function Di(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(je(Ee(t.exposed)),{get(e,n){return n in e?e[n]:n in wr?wr[n](t):void 0},has(t,e){return e in t||e in wr}})):t.proxy}function Mi(t,e=!0){return v(t)?t.displayName||t.name:t.name||e&&t.__name}function ji(t){return v(t)&&"__vccOpts"in t}const _i=(t,e)=>{const n=Ne(t,e,Ei);return n};function Ni(t,e,n){const r=arguments.length;return 2===r?x(e)&&!h(e)?$s(e)?si(t,null,[e]):si(t,e):si(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&$s(n)&&(n=[n]),si(t,e,n))}const Bi="3.5.13";function Ui(t,e){var n,r,s=0;function i(){var i,o,a=n,u=arguments.length;t:while(a){if(a.args.length===arguments.length){for(o=0;o=0||Hi[s]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},qi=["(","?"],Yi={")":["("],":":["?","?:"]},Zi=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Xi={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function Ji(t,e){var n,r,s,i,o,a,u=[];for(n=0;n{const r=new no({}),s=new Set,i=()=>{s.forEach((t=>t()))},o=t=>(s.add(t),()=>s.delete(t)),a=(t="default")=>r.data[t],u=(t,e="default")=>{r.data[e]={...r.data[e],...t},r.data[e][""]={...ro[""],...r.data[e]?.[""]},delete r.pluralForms[e]},c=(t,e)=>{u(t,e),i()},l=(t,e="default")=>{r.data[e]={...r.data[e],...t,"":{...ro[""],...r.data[e]?.[""],...t?.[""]}},delete r.pluralForms[e],i()},f=(t,e)=>{r.data={},r.pluralForms={},c(t,e)},h=(t="default",e,n,s,i)=>(r.data[t]||u(void 0,t),r.dcnpgettext(t,e,n,s,i)),p=(t="default")=>t,d=(t,e)=>{let r=h(e,void 0,t);return n?(r=n.applyFilters("i18n.gettext",r,t,e),n.applyFilters("i18n.gettext_"+p(e),r,t,e)):r},g=(t,e,r)=>{let s=h(r,e,t);return n?(s=n.applyFilters("i18n.gettext_with_context",s,t,e,r),n.applyFilters("i18n.gettext_with_context_"+p(r),s,t,e,r)):s},m=(t,e,r,s)=>{let i=h(s,void 0,t,e,r);return n?(i=n.applyFilters("i18n.ngettext",i,t,e,r,s),n.applyFilters("i18n.ngettext_"+p(s),i,t,e,r,s)):i},y=(t,e,r,s,i)=>{let o=h(i,s,t,e,r);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,t,e,r,s,i),n.applyFilters("i18n.ngettext_with_context_"+p(i),o,t,e,r,s,i)):o},v=()=>"rtl"===g("ltr","text direction"),b=(t,e,s)=>{const i=e?e+""+t:t;let o=!!r.data?.[null!==s&&void 0!==s?s:"default"]?.[i];return n&&(o=n.applyFilters("i18n.has_translation",o,t,e,s),o=n.applyFilters("i18n.has_translation_"+p(s),o,t,e,s)),o};if(t&&c(t,e),n){const t=t=>{so.test(t)&&i()};n.addAction("hookAdded","core/i18n",t),n.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:a,setLocaleData:c,addLocaleData:l,resetLocaleData:f,subscribe:o,__:d,_x:g,_n:m,_nx:y,isRTL:v,hasTranslation:b}};function oo(t){return"string"!==typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var ao=oo;function uo(t){return"string"!==typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var co=uo;function lo(t,e){return function(n,r,s,i=10){const o=t[e];if(!co(n))return;if(!ao(r))return;if("function"!==typeof s)return void console.error("The hook callback must be a function.");if("number"!==typeof i)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:i,namespace:r};if(o[n]){const t=o[n].handlers;let e;for(e=t.length;e>0;e--)if(i>=t[e-1].priority)break;e===t.length?t[e]=a:t.splice(e,0,a),o.__current.forEach((t=>{t.name===n&&t.currentIndex>=e&&t.currentIndex++}))}else o[n]={handlers:[a],runs:0};"hookAdded"!==n&&t.doAction("hookAdded",n,r,s,i)}}var fo=lo;function ho(t,e,n=!1){return function(r,s){const i=t[e];if(!co(r))return;if(!n&&!ao(s))return;if(!i[r])return 0;let o=0;if(n)o=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const t=i[r].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),o++,i.__current.forEach((t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex--})))}return"hookRemoved"!==r&&t.doAction("hookRemoved",r,s),o}}var po=ho;function go(t,e){return function(n,r){const s=t[e];return"undefined"!==typeof r?n in s&&s[n].handlers.some((t=>t.namespace===r)):n in s}}var mo=go;function yo(t,e,n=!1){return function(r,...s){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const o=i[r].handlers;if(!o||!o.length)return n?s[0]:void 0;const a={name:r,currentIndex:0};i.__current.push(a);while(a.currentIndex{t===this.plugin.id&&this.fallbacks.setSettings(e)})),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise((n=>{this.targetQueue.push({method:e,args:t,resolve:n})}))})}async setRealTarget(t){this.target=t;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function oa(t,e){const n=t,r=Jo(),s=Xo(),i=Qo&&n.enableEarlyProxy;if(!s||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const t=i?new ia(n,s):null,o=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else s.emit($o,t,e)} /*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */ var aa="store";function ua(t){return void 0===t&&(t=null),qr(null!==t?t:aa)}function ca(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function la(t){return null!==t&&"object"===typeof t}function fa(t){return t&&"function"===typeof t.then}function ha(t,e){return function(){return t(e)}}function pa(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function da(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ma(t,n,[],t._modules.root,!0),ga(t,n,e)}function ga(t,e,n){var r=t._state,s=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={},a={},u=ut(!0);u.run((function(){ca(i,(function(e,n){o[n]=ha(e,t),a[n]=_i((function(){return o[n]()})),Object.defineProperty(t.getters,n,{get:function(){return a[n].value},enumerable:!0})}))})),t._state=ve({data:e}),t._scope=u,t.strict&&Sa(t),r&&n&&t._withCommit((function(){r.data=null})),s&&s.stop()}function ma(t,e,n,r,s){var i=!n.length,o=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=r),!i&&!s){var a=Ca(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit((function(){a[u]=r.state}))}var c=r.context=ya(t,o,n);r.forEachMutation((function(e,n){var r=o+n;ba(t,r,e,c)})),r.forEachAction((function(e,n){var r=e.root?n:o+n,s=e.handler||e;wa(t,r,s,c)})),r.forEachGetter((function(e,n){var r=o+n;xa(t,r,e,c)})),r.forEachChild((function(r,i){ma(t,e,n.concat(i),r,s)}))}function ya(t,e,n){var r=""===e,s={dispatch:r?t.dispatch:function(n,r,s){var i=Oa(n,r,s),o=i.payload,a=i.options,u=i.type;return a&&a.root||(u=e+u),t.dispatch(u,o)},commit:r?t.commit:function(n,r,s){var i=Oa(n,r,s),o=i.payload,a=i.options,u=i.type;a&&a.root||(u=e+u),t.commit(u,o,a)}};return Object.defineProperties(s,{getters:{get:r?function(){return t.getters}:function(){return va(t,e)}},state:{get:function(){return Ca(t.state,n)}}}),s}function va(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(s){if(s.slice(0,r)===e){var i=s.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[s]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function ba(t,e,n,r){var s=t._mutations[e]||(t._mutations[e]=[]);s.push((function(e){n.call(t,r.state,e)}))}function wa(t,e,n,r){var s=t._actions[e]||(t._actions[e]=[]);s.push((function(e){var s=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return fa(s)||(s=Promise.resolve(s)),t._devtoolHook?s.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):s}))}function xa(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function Sa(t){Os((function(){return t._state.data}),(function(){0}),{deep:!0,flush:"sync"})}function Ca(t,e){return e.reduce((function(t,e){return t[e]}),t)}function Oa(t,e,n){return la(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var ka="vuex bindings",Aa="vuex:mutations",Ea="vuex:actions",Fa="vuex",Ta=0;function Pa(t,e){oa({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ka]},(function(n){n.addTimelineLayer({id:Aa,label:"Vuex Mutations",color:Ra}),n.addTimelineLayer({id:Ea,label:"Vuex Actions",color:Ra}),n.addInspector({id:Fa,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===t&&n.inspectorId===Fa)if(n.filter){var r=[];_a(r,e._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[ja(e._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===t&&n.inspectorId===Fa){var r=n.nodeId;va(e,r),n.state=Na(Ua(e._modules,r),"root"===r?e.getters:e._makeLocalGettersCache,r)}})),n.on.editInspectorState((function(n){if(n.app===t&&n.inspectorId===Fa){var r=n.nodeId,s=n.path;"root"!==r&&(s=r.split("/").filter(Boolean).concat(s)),e._withCommit((function(){n.set(e._state.data,s,n.state.value)}))}})),e.subscribe((function(t,e){var r={};t.payload&&(r.payload=t.payload),r.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(Fa),n.sendInspectorState(Fa),n.addTimelineEvent({layerId:Aa,event:{time:Date.now(),title:t.type,data:r}})})),e.subscribeAction({before:function(t,e){var r={};t.payload&&(r.payload=t.payload),t._id=Ta++,t._time=Date.now(),r.state=e,n.addTimelineEvent({layerId:Ea,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:r}})},after:function(t,e){var r={},s=Date.now()-t._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},t.payload&&(r.payload=t.payload),r.state=e,n.addTimelineEvent({layerId:Ea,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:r}})}})}))}var Ra=8702998,La=6710886,Ia=16777215,Da={label:"namespaced",textColor:Ia,backgroundColor:La};function Ma(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function ja(t,e){return{id:e||"root",label:Ma(e),tags:t.namespaced?[Da]:[],children:Object.keys(t._children).map((function(n){return ja(t._children[n],e+n+"/")}))}}function _a(t,e,n,r){r.includes(n)&&t.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[Da]:[]}),Object.keys(e._children).forEach((function(s){_a(t,e._children[s],n,r+s+"/")}))}function Na(t,e,n){e="root"===n?e:e[n];var r=Object.keys(e),s={state:Object.keys(t.state).map((function(e){return{key:e,editable:!0,value:t.state[e]}}))};if(r.length){var i=Ba(e);s.getters=Object.keys(i).map((function(t){return{key:t.endsWith("/")?Ma(t):t,editable:!1,value:Va((function(){return i[t]}))}}))}return s}function Ba(t){var e={};return Object.keys(t).forEach((function(n){var r=n.split("/");if(r.length>1){var s=e,i=r.pop();r.forEach((function(t){s[t]||(s[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),s=s[t]._custom.value})),s[i]=Va((function(){return t[n]}))}else e[n]=Va((function(){return t[n]}))})),e}function Ua(t,e){var n=e.split("/").filter((function(t){return t}));return n.reduce((function(t,r,s){var i=t[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+e+'".');return s===n.length-1?i:i._children}),"root"===e?t:t.root._children)}function Va(t){try{return t()}catch(e){return e}}var Ga=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},Wa={namespaced:{configurable:!0}};Wa.namespaced.get=function(){return!!this._rawModule.namespaced},Ga.prototype.addChild=function(t,e){this._children[t]=e},Ga.prototype.removeChild=function(t){delete this._children[t]},Ga.prototype.getChild=function(t){return this._children[t]},Ga.prototype.hasChild=function(t){return t in this._children},Ga.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Ga.prototype.forEachChild=function(t){ca(this._children,t)},Ga.prototype.forEachGetter=function(t){this._rawModule.getters&&ca(this._rawModule.getters,t)},Ga.prototype.forEachAction=function(t){this._rawModule.actions&&ca(this._rawModule.actions,t)},Ga.prototype.forEachMutation=function(t){this._rawModule.mutations&&ca(this._rawModule.mutations,t)},Object.defineProperties(Ga.prototype,Wa);var za=function(t){this.register([],t,!1)};function Ha(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;Ha(t.concat(r),e.getChild(r),n.modules[r])}}za.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},za.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},za.prototype.update=function(t){Ha([],this.root,t)},za.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var s=new Ga(e,n);if(0===t.length)this.root=s;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],s)}e.modules&&ca(e.modules,(function(e,s){r.register(t.concat(s),e,n)}))},za.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},za.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};function qa(t){return new Ya(t)}var Ya=function(t){var e=this;void 0===t&&(t={});var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var s=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new za(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var i=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return u.call(i,t,e,n)},this.strict=r;var c=this._modules.root.state;ma(this,c,[],this._modules.root),ga(this,c),n.forEach((function(t){return t(e)}))},Za={state:{configurable:!0}};Ya.prototype.install=function(t,e){t.provide(e||aa,this),t.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&Pa(t,this)},Za.state.get=function(){return this._state.data},Za.state.set=function(t){0},Ya.prototype.commit=function(t,e,n){var r=this,s=Oa(t,e,n),i=s.type,o=s.payload,a=(s.options,{type:i,payload:o}),u=this._mutations[i];u&&(this._withCommit((function(){u.forEach((function(t){t(o)}))})),this._subscribers.slice().forEach((function(t){return t(a,r.state)})))},Ya.prototype.dispatch=function(t,e){var n=this,r=Oa(t,e),s=r.type,i=r.payload,o={type:s,payload:i},a=this._actions[s];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(o,n.state)}))}catch(c){0}var u=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){u.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(o,n.state)}))}catch(c){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(o,n.state,t)}))}catch(c){0}e(t)}))}))}},Ya.prototype.subscribe=function(t,e){return pa(t,this._subscribers,e)},Ya.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return pa(n,this._actionSubscribers,e)},Ya.prototype.watch=function(t,e,n){var r=this;return Os((function(){return t(r.state,r.getters)}),e,Object.assign({},n))},Ya.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._state.data=t}))},Ya.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),ma(this,this.state,t,this._modules.get(t),n.preserveState),ga(this,this.state)},Ya.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=Ca(e.state,t.slice(0,-1));delete n[t[t.length-1]]})),da(this)},Ya.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},Ya.prototype.hotUpdate=function(t){this._modules.update(t),da(this,!0)},Ya.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Ya.prototype,Za);Ja((function(t,e){var n={};return Ka(e).forEach((function(e){var r=e.key,s=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Qa(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof s?s.call(this,e,n):e[s]},n[r].vuex=!0})),n})),Ja((function(t,e){var n={};return Ka(e).forEach((function(e){var r=e.key,s=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=Qa(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof s?s.apply(this,[r].concat(e)):r.apply(this.$store,[s].concat(e))}})),n})),Ja((function(t,e){var n={};return Ka(e).forEach((function(e){var r=e.key,s=e.val;s=t+s,n[r]=function(){if(!t||Qa(this.$store,"mapGetters",t))return this.$store.getters[s]},n[r].vuex=!0})),n})),Ja((function(t,e){var n={};return Ka(e).forEach((function(e){var r=e.key,s=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=Qa(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof s?s.apply(this,[r].concat(e)):r.apply(this.$store,[s].concat(e))}})),n}));function Ka(t){return Xa(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function Xa(t){return Array.isArray(t)||la(t)}function Ja(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Qa(t,e,n){var r=t._modulesNamespaceMap[n];return r}const $a={class:"text--secondary"},tu={class:"item-redirect",href:"https://thrivethemes.com/docs/using-the-native-wordpress-font-library-in-thrive-themes",target:"_blank"};var eu={__name:"Header",setup(t){return(t,e)=>(qs(),Js("header",null,[ri("h1",null,nt(De(Zo)("Font Library","thrive-dash")),1),ri("p",$a,[ui(nt(De(Zo)("Easily manage and upload custom fonts.","thrive-dash"))+" ",1),ri("a",tu,nt(De(Zo)("Learn more","thrive-dash")),1)])]))}},nu=n(6262);const ru=(0,nu.A)(eu,[["__scopeId","data-v-6b195b8f"]]);var su=ru;const iu={class:"tabs"},ou={role:"tablist"},au=["id","aria-selected","aria-controls","tabindex","onClick"];function uu(t,e,n,r,s,i){return qs(),Js("div",iu,[ri("ul",ou,[(qs(!0),Js(Us,null,mr(r.tabTitles,((t,e)=>(qs(),Js("li",{key:t},[ri("button",{id:`tab-${e+1}`,role:"tab",type:"button","aria-selected":r.selectedTitle===t,"aria-controls":`tabpanel-${e+1}`,tabindex:r.selectedTitle===t?0:-1,onClick:e=>r.changeTab(t)},nt(t),9,au)])))),128))]),yr(t.$slots,"default",{},void 0,!0)])}n(1454);var cu={__name:"Tabs",emits:["changeTab"],setup(t,{expose:e,emit:n}){e();const r=Re([]),s=Re(""),i=n,o=Cr();r.value=o.default().map((t=>t.props.title)),s.value=r.value[0];const a=t=>{s.value=t,i("changeTab",t)};Hr("selectedTitle",s);const u={tabTitles:r,selectedTitle:s,emit:i,slots:o,changeTab:a,ref:Re,provide:Hr,useSlots:Cr};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}};const lu=(0,nu.A)(cu,[["render",uu],["__scopeId","data-v-7812e4fd"]]);var fu=lu; /** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ let hu;const pu="undefined"!==typeof window&&window.trustedTypes;if(pu)try{hu=pu.createPolicy("vue",{createHTML:t=>t})}catch(Gm){}const du=hu?t=>hu.createHTML(t):t=>t,gu="http://www.w3.org/2000/svg",mu="http://www.w3.org/1998/Math/MathML",yu="undefined"!==typeof document?document:null,vu=yu&&yu.createElement("template"),bu={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s="svg"===e?yu.createElementNS(gu,t):"mathml"===e?yu.createElementNS(mu,t):n?yu.createElement(t,{is:n}):yu.createElement(t);return"select"===t&&r&&null!=r.multiple&&s.setAttribute("multiple",r.multiple),s},createText:t=>yu.createTextNode(t),createComment:t=>yu.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>yu.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling)){while(1)if(e.insertBefore(s.cloneNode(!0),n),s===i||!(s=s.nextSibling))break}else{vu.innerHTML=du("svg"===r?`${t}`:"mathml"===r?`${t}`:t);const s=vu.content;if("svg"===r||"mathml"===r){const t=s.firstChild;while(t.firstChild)s.appendChild(t.firstChild);s.removeChild(t)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},wu="transition",xu="animation",Su=Symbol("_vtc"),Cu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ou=u({},Mn,Cu),ku=t=>(t.displayName="Transition",t.props=Ou,t),Au=ku(((t,{slots:e})=>Ni(Bn,Tu(t),e))),Eu=(t,e=[])=>{h(t)?t.forEach((t=>t(...e))):t&&t(...e)},Fu=t=>!!t&&(h(t)?t.some((t=>t.length>1)):t.length>1);function Tu(t){const e={};for(const u in t)u in Cu||(e[u]=t[u]);if(!1===t.css)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=o,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,g=Pu(s),m=g&&g[0],y=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:O=b,onAppearCancelled:k=w}=e,A=(t,e,n,r)=>{t._enterCancelled=r,Iu(t,e?f:a),Iu(t,e?l:o),n&&n()},E=(t,e)=>{t._isLeaving=!1,Iu(t,h),Iu(t,d),Iu(t,p),e&&e()},F=t=>(e,n)=>{const s=t?O:b,o=()=>A(e,t,n);Eu(s,[e,o]),Du((()=>{Iu(e,t?c:i),Lu(e,t?f:a),Fu(s)||ju(e,r,m,o)}))};return u(e,{onBeforeEnter(t){Eu(v,[t]),Lu(t,i),Lu(t,o)},onBeforeAppear(t){Eu(C,[t]),Lu(t,c),Lu(t,l)},onEnter:F(!1),onAppear:F(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>E(t,e);Lu(t,h),t._enterCancelled?(Lu(t,p),Uu()):(Uu(),Lu(t,p)),Du((()=>{t._isLeaving&&(Iu(t,h),Lu(t,d),Fu(x)||ju(t,r,y,n))})),Eu(x,[t,n])},onEnterCancelled(t){A(t,!1,void 0,!0),Eu(w,[t])},onAppearCancelled(t){A(t,!0,void 0,!0),Eu(k,[t])},onLeaveCancelled(t){E(t),Eu(S,[t])}})}function Pu(t){if(null==t)return null;if(x(t))return[Ru(t.enter),Ru(t.leave)];{const e=Ru(t);return[e,e]}}function Ru(t){const e=U(t);return e}function Lu(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.add(e))),(t[Su]||(t[Su]=new Set)).add(e)}function Iu(t,e){e.split(/\s+/).forEach((e=>e&&t.classList.remove(e)));const n=t[Su];n&&(n.delete(e),n.size||(t[Su]=void 0))}function Du(t){requestAnimationFrame((()=>{requestAnimationFrame(t)}))}let Mu=0;function ju(t,e,n,r){const s=t._endId=++Mu,i=()=>{s===t._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:o,timeout:a,propCount:u}=_u(t,e);if(!o)return r();const c=o+"end";let l=0;const f=()=>{t.removeEventListener(c,h),i()},h=e=>{e.target===t&&++l>=u&&f()};setTimeout((()=>{l(n[t]||"").split(", "),s=r(`${wu}Delay`),i=r(`${wu}Duration`),o=Nu(s,i),a=r(`${xu}Delay`),u=r(`${xu}Duration`),c=Nu(a,u);let l=null,f=0,h=0;e===wu?o>0&&(l=wu,f=o,h=i.length):e===xu?c>0&&(l=xu,f=c,h=u.length):(f=Math.max(o,c),l=f>0?o>c?wu:xu:null,h=l?l===wu?i.length:u.length:0);const p=l===wu&&/\b(transform|all)(,|$)/.test(r(`${wu}Property`).toString());return{type:l,timeout:f,propCount:h,hasTransform:p}}function Nu(t,e){while(t.lengthBu(e)+Bu(t[n]))))}function Bu(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function Uu(){return document.body.offsetHeight}function Vu(t,e,n){const r=t[Su];r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Gu=Symbol("_vod"),Wu=Symbol("_vsh"),zu={beforeMount(t,{value:e},{transition:n}){t[Gu]="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):Hu(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),Hu(t,!0),r.enter(t)):r.leave(t,(()=>{Hu(t,!1)})):Hu(t,e))},beforeUnmount(t,{value:e}){Hu(t,e)}};function Hu(t,e){t.style.display=e?t[Gu]:"none",t[Wu]=!e}const qu=Symbol("");const Yu=/(^|;)\s*display\s*:/;function Zu(t,e,n){const r=t.style,s=b(n);let i=!1;if(n&&!s){if(e)if(b(e))for(const t of e.split(";")){const e=t.slice(0,t.indexOf(":")).trim();null==n[e]&&Xu(r,e,"")}else for(const t in e)null==n[t]&&Xu(r,t,"");for(const t in n)"display"===t&&(i=!0),Xu(r,t,n[t])}else if(s){if(e!==n){const t=r[qu];t&&(n+=";"+t),r.cssText=n,i=Yu.test(n)}}else e&&t.removeAttribute("style");Gu in t&&(t[Gu]=i?r.display:"",t[Wu]&&(r.display="none"))}const Ku=/\s*!important$/;function Xu(t,e,n){if(h(n))n.forEach((n=>Xu(t,e,n)));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=$u(t,e);Ku.test(n)?t.setProperty(I(r),n.replace(Ku,""),"important"):t[r]=n}}const Ju=["Webkit","Moz","ms"],Qu={};function $u(t,e){const n=Qu[e];if(n)return n;let r=R(e);if("filter"!==r&&r in t)return Qu[e]=r;r=D(r);for(let s=0;scc||(lc.then((()=>cc=0)),cc=Date.now());function hc(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();qe(pc(t,n.value),e,5,[t])};return n.value=t,n.attached=fc(),n}function pc(t,e){if(h(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map((t=>e=>!e._stopped&&t&&t(e)))}return e}const dc=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,gc=(t,e,n,r,s,i)=>{const u="svg"===s;"class"===e?Vu(t,r,u):"style"===e?Zu(t,n,r):o(e)?a(e)||oc(t,e,n,r,i):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):mc(t,e,r,u))?(nc(t,e,r),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||ec(t,e,r,u,i,"value"!==e)):!t._isVueCE||!/[A-Z]/.test(e)&&b(r)?("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),ec(t,e,r,u)):nc(t,R(e),r,i,e)};function mc(t,e,n,r){if(r)return"innerHTML"===e||"textContent"===e||!!(e in t&&dc(e)&&v(n));if("spellcheck"===e||"draggable"===e||"translate"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!dc(e)||!b(n))&&e in t} /*! #__NO_SIDE_EFFECTS__ */ "undefined"!==typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");const yc=t=>{const e=t.props["onUpdate:modelValue"]||!1;return h(e)?t=>_(e,t):e};const vc=Symbol("_assign");const bc={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=g(e);rc(t,"change",(()=>{const e=Array.prototype.filter.call(t.options,(t=>t.selected)).map((t=>n?B(xc(t)):xc(t)));t[vc](t.multiple?s?new Set(e):e:e[0]),t._assigning=!0,nn((()=>{t._assigning=!1}))})),t[vc]=yc(r)},mounted(t,{value:e}){wc(t,e)},beforeUpdate(t,e,n){t[vc]=yc(n)},updated(t,{value:e}){t._assigning||wc(t,e)}};function wc(t,e){const n=t.multiple,r=h(e);if(!n||r||g(e)){for(let s=0,i=t.options.length;sString(t)===String(o))):tt(e,o)>-1}else i.selected=e.has(o);else if($(xc(i),e))return void(t.selectedIndex!==s&&(t.selectedIndex=s))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function xc(t){return"_value"in t?t._value:t.value}const Sc=u({patchProp:gc},bu);let Cc;function Oc(){return Cc||(Cc=ps(Sc))}const kc=(...t)=>{const e=Oc().createApp(...t);const{mount:n}=e;return e.mount=t=>{const r=Ec(t);if(!r)return;const s=e._component;v(s)||s.render||s.template||(s.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const i=n(r,!1,Ac(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e};function Ac(t){return t instanceof SVGElement?"svg":"function"===typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}function Ec(t){if(b(t)){const e=document.querySelector(t);return e}return t}const Fc={id:"tabpanel-1",role:"tabpanel",tabindex:"0","aria-labelledby":"tab-1"};function Tc(t,e,n,r,s,i){return mn((qs(),Js("div",Fc,[yr(t.$slots,"default")],512)),[[zu,n.title===r.selectedTitle]])}var Pc={props:{title:{type:String,required:!0}},setup(){const t=qr("selectedTitle");return{selectedTitle:t}}};const Rc=(0,nu.A)(Pc,[["render",Tc]]);var Lc=Rc;n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(8992),n(4520),n(3949),n(4114),n(4979),n(1678),n(4603),n(7566),n(8721),n(8872),n(2577);const Ic={100:Ko("Thin","font weight","thrive-dash"),200:Ko("Extra-light","font weight","thrive-dash"),300:Ko("Light","font weight","thrive-dash"),400:Ko("Normal","font weight","thrive-dash"),500:Ko("Medium","font weight","thrive-dash"),600:Ko("Semi-bold","font weight","thrive-dash"),700:Ko("Bold","font weight","thrive-dash"),800:Ko("Extra-bold","font weight","thrive-dash"),900:Ko("Black","font weight","thrive-dash")},Dc={normal:Ko("Normal","font style","thrive-dash"),italic:Ko("Italic","font style","thrive-dash")},Mc="/wp-json/wp/v2/font-families",jc="/wp-json/wp/v2/font-collections",_c=["otf","ttf","woff","woff2"];function Nc(t){return Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(t)}function Bc(t,e){if("object"!=Nc(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Uc(t){var e=Bc(t,"string");return"symbol"==Nc(e)?e:e+""}function Vc(t,e,n){return(e=Uc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(6573),n(8100),n(7936),n(9479),n(7467),n(4732),n(9577),n(7550);var Gc=n(5339),Wc=n.n(Gc),zc=n(3585),Hc=n.n(zc);globalThis.fetch;class qc{constructor(t,e={},n){this.type=t,this.detail=e,this.msg=n,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}}class Yc{constructor(){this.listeners={}}addEventListener(t,e,n){let r=this.listeners[t]||[];n?r.unshift(e):r.push(e),this.listeners[t]=r}removeEventListener(t,e){let n=this.listeners[t]||[],r=n.findIndex((t=>t===e));r>-1&&(n.splice(r,1),this.listeners[t]=n)}dispatch(t){let e=this.listeners[t.type];if(e)for(let n=0,r=e.length;nString.fromCharCode(t))).join("")}class Xc{constructor(t,e,n){this.name=(n||t.tag||"").trim(),this.length=t.length,this.start=t.offset,this.offset=0,this.data=e,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach((t=>{let e=t.replace(/get(Big)?/,"").toLowerCase(),n=parseInt(t.replace(/[^\d]/g,""))/8;Object.defineProperty(this,e,{get:()=>this.getValue(t,n)})}))}get currentPosition(){return this.start+this.offset}set currentPosition(t){this.start=t,this.offset=0}skip(t=0,e=8){this.offset+=t*e/8}getValue(t,e){let n=this.start+this.offset;this.offset+=e;try{return this.data[t](n)}catch(Gm){throw console.error("parser",t,e,this),console.error("parser",this.start,this.offset),Gm}}flags(t){if(8===t||16===t||32===t||64===t)return this[`uint${t}`].toString(2).padStart(t,0).split("").map((t=>"1"===t));console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){const t=this.uint32;return Kc([t>>24&255,t>>16&255,t>>8&255,255&t])}get fixed(){let t=this.int16,e=Math.round(1e3*this.uint16/65356);return t+e/1e3}get legacyFixed(){let t=this.uint16,e=this.uint16.toString(16).padStart(4,0);return parseFloat(`${t}.${e}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let t=0;for(let e=0;e<5;e++){let e=this.uint8;if(t=128*t+(127&e),e<128)break}return t}get longdatetime(){return new Date(Zc+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){const t=p.uint16,e=[0,1,-2,-1][t>>14],n=16383&t;return e+n/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(t=0,e=0,n=8,r=!1){if(t=t||this.length,0===t)return[];e&&(this.currentPosition=e);const s=`${r?"":"u"}int${n}`,i=[];while(t--)i.push(this[s]);return i}}class Jc{constructor(t){const e={enumerable:!1,get:()=>t};Object.defineProperty(this,"parser",e);const n=t.currentPosition,r={enumerable:!1,get:()=>n};Object.defineProperty(this,"start",r)}load(t){Object.keys(t).forEach((e=>{let n=Object.getOwnPropertyDescriptor(t,e);n.get?this[e]=n.get.bind(this):void 0!==n.value&&(this[e]=n.value)})),this.parser.length&&this.parser.verifyLength()}}class Qc extends Jc{constructor(t,e,n){const{parser:r,start:s}=super(new Xc(t,e,n)),i={enumerable:!1,get:()=>r};Object.defineProperty(this,"p",i);const o={enumerable:!1,get:()=>s};Object.defineProperty(this,"tableStart",o)}}function $c(t,e,n){let r;Object.defineProperty(t,e,{get:()=>r||(r=n(),r),enumerable:!0})}class tl extends Qc{constructor(t,e,n){const{p:r}=super({offset:0,length:12},e,"sfnt");this.version=r.uint32,this.numTables=r.uint16,this.searchRange=r.uint16,this.entrySelector=r.uint16,this.rangeShift=r.uint16,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((t=>new el(r))),this.tables={},this.directory.forEach((t=>{const r=()=>n(this.tables,{tag:t.tag,offset:t.offset,length:t.length},e);$c(this.tables,t.tag.trim(),r)}))}}class el{constructor(t){this.tag=t.tag,this.checksum=t.uint32,this.offset=t.uint32,this.length=t.uint32}}const nl=Hc().inflate||void 0;let rl;class sl extends Qc{constructor(t,e,n){const{p:r}=super({offset:0,length:44},e,"woff");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((t=>new il(r))),ol(this,e,n)}}class il{constructor(t){this.tag=t.tag,this.offset=t.uint32,this.compLength=t.uint32,this.origLength=t.uint32,this.origChecksum=t.uint32}}function ol(t,e,n){t.tables={},t.directory.forEach((r=>{$c(t.tables,r.tag.trim(),(()=>{let s=0,i=e;if(r.compLength!==r.origLength){const t=e.buffer.slice(r.offset,r.offset+r.compLength);let n;if(nl)n=nl(new Uint8Array(t));else{if(!rl){const t="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(t),new Error(t)}n=rl(new Uint8Array(t))}i=new DataView(n.buffer)}else s=r.offset;return n(t.tables,{tag:r.tag,offset:s,length:r.origLength},i)}))}))}const al=Wc();let ul;class cl extends Qc{constructor(t,e,n){const{p:r}=super({offset:0,length:48},e,"woff2");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.totalCompressedSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map((t=>new ll(r)));let s,i=r.currentPosition;this.directory[0].offset=0,this.directory.forEach(((t,e)=>{let n=this.directory[e+1];n&&(n.offset=t.offset+(void 0!==t.transformLength?t.transformLength:t.origLength))}));let o=e.buffer.slice(i);if(al)s=al(new Uint8Array(o));else{if(!ul){const e="no brotli decoder available to decode WOFF2 font";throw t.onerror&&t.onerror(e),new Error(e)}s=new Uint8Array(ul(o))}fl(this,s,n)}}class ll{constructor(t){this.flags=t.uint8;const e=this.tagNumber=63&this.flags;this.tag=63===e?t.tag:hl(e);const n=this.transformVersion=(192&this.flags)>>6;let r=0!==n;"glyf"!==this.tag&&"loca"!==this.tag||(r=3!==this.transformVersion),this.origLength=t.uint128,r&&(this.transformLength=t.uint128)}}function fl(t,e,n){t.tables={},t.directory.forEach((r=>{$c(t.tables,r.tag.trim(),(()=>{const s=r.offset,i=s+(r.transformLength?r.transformLength:r.origLength),o=new DataView(e.slice(s,i).buffer);try{return n(t.tables,{tag:r.tag,offset:0,length:r.origLength},o)}catch(Gm){console.error(Gm)}}))}))}function hl(t){return["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][63&t]}const pl={};let dl=!1;function gl(t,e,n){let r=e.tag.replace(/[^\w\d]/g,""),s=pl[r];return s?new s(e,n,t):(console.warn(`lib-font has no definition for ${r}. The table was skipped.`),{})}function ml(){let t=0;function e(n,r){if(!dl)return t>10?r(new Error("loading took too long")):(t++,setTimeout((()=>e(n)),250));n(gl)}return new Promise(((t,n)=>e(t)))}function yl(t,e){let n=t.lastIndexOf("."),r=(t.substring(n+1)||"").toLowerCase(),s={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[r];if(s)return s;let i={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[r];if(i||(i=`${t} is not a known webfont format.`),e)throw new Error(i);console.warn(`Could not load font: ${i}`)}async function vl(t,e,n={}){if(!globalThis.document)return;let r=yl(e,n.errorOnStyle);if(!r)return;let s=document.createElement("style");s.className="injected-by-Font-js";let i=[];return n.styleRules&&(i=Object.entries(n.styleRules).map((([t,e])=>`${t}: ${e};`))),s.textContent=`\n@font-face {\n font-family: "${t}";\n ${i.join("\n\t")}\n src: url("${e}") format("${r}");\n}`,globalThis.document.head.appendChild(s),s}Promise.all([Promise.resolve().then((function(){return Hl})),Promise.resolve().then((function(){return Yl})),Promise.resolve().then((function(){return Kl})),Promise.resolve().then((function(){return Ql})),Promise.resolve().then((function(){return tf})),Promise.resolve().then((function(){return of})),Promise.resolve().then((function(){return uf})),Promise.resolve().then((function(){return ff})),Promise.resolve().then((function(){return Cf})),Promise.resolve().then((function(){return jf})),Promise.resolve().then((function(){return Dh})),Promise.resolve().then((function(){return jh})),Promise.resolve().then((function(){return Uh})),Promise.resolve().then((function(){return zh})),Promise.resolve().then((function(){return qh})),Promise.resolve().then((function(){return Zh})),Promise.resolve().then((function(){return Jh})),Promise.resolve().then((function(){return $h})),Promise.resolve().then((function(){return ep})),Promise.resolve().then((function(){return rp})),Promise.resolve().then((function(){return ip})),Promise.resolve().then((function(){return ap})),Promise.resolve().then((function(){return lp})),Promise.resolve().then((function(){return gp})),Promise.resolve().then((function(){return yp})),Promise.resolve().then((function(){return bp})),Promise.resolve().then((function(){return xp})),Promise.resolve().then((function(){return Cp})),Promise.resolve().then((function(){return kp})),Promise.resolve().then((function(){return Tp})),Promise.resolve().then((function(){return Mp})),Promise.resolve().then((function(){return Bp})),Promise.resolve().then((function(){return Gp})),Promise.resolve().then((function(){return qp})),Promise.resolve().then((function(){return Zp})),Promise.resolve().then((function(){return Xp})),Promise.resolve().then((function(){return $p})),Promise.resolve().then((function(){return ed})),Promise.resolve().then((function(){return od})),Promise.resolve().then((function(){return ud})),Promise.resolve().then((function(){return fd}))]).then((t=>{t.forEach((t=>{let e=Object.keys(t)[0];pl[e]=t[e]})),dl=!0}));const bl=[0,1,0,0],wl=[79,84,84,79],xl=[119,79,70,70],Sl=[119,79,70,50];function Cl(t,e){if(t.length===e.length){for(let n=0;n{globalThis.document&&!this.options.skipStyleSheet&&await vl(this.name,t,this.options),this.loadFont(t)})()}async loadFont(t,e){fetch(t).then((t=>kl(t)&&t.arrayBuffer())).then((n=>this.fromDataBuffer(n,e||t))).catch((n=>{const r=new qc("error",n,`Failed to load font at ${e||t}`);this.dispatch(r),this.onerror&&this.onerror(r)}))}async fromDataBuffer(t,e){this.fontData=new DataView(t);let n=Ol(this.fontData);if(!n)throw new Error(`${e} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(n);const r=new qc("load",{font:this});this.dispatch(r),this.onload&&this.onload(r)}async parseBasicData(t){return ml().then((e=>("SFNT"===t&&(this.opentype=new tl(this,this.fontData,e)),"WOFF"===t&&(this.opentype=new sl(this,this.fontData,e)),"WOFF2"===t&&(this.opentype=new cl(this,this.fontData,e)),this.opentype)))}getGlyphId(t){return this.opentype.tables.cmap.getGlyphId(t)}reverse(t){return this.opentype.tables.cmap.reverse(t)}supports(t){return 0!==this.getGlyphId(t)}supportsVariation(t){return!1!==this.opentype.tables.cmap.supportsVariation(t)}measureText(t,e=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let n=document.createElement("div");n.textContent=t,n.style.fontFamily=this.name,n.style.fontSize=`${e}px`,n.style.color="transparent",n.style.background="transparent",n.style.top="0",n.style.left="0",n.style.position="absolute",document.body.appendChild(n);let r=n.getBoundingClientRect();document.body.removeChild(n);const s=this.opentype.tables["OS/2"];return r.fontSize=e,r.ascender=s.sTypoAscender,r.descender=s.sTypoDescender,r}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);const t=new qc("unload",{font:this});this.dispatch(t),this.onunload&&this.onunload(t)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);const t=new qc("load",{font:this});this.dispatch(t),this.onload&&this.onload(t)}}}globalThis.Font=Al;class El extends Jc{constructor(t,e,n){super(t),this.plaformID=e,this.encodingID=n}}class Fl extends El{constructor(t,e,n){super(t,e,n),this.format=0,this.length=t.uint16,this.language=t.uint16,this.glyphIdArray=[...new Array(256)].map((e=>t.uint8))}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=t&&t<=255}reverse(t){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}}class Tl extends El{constructor(t,e,n){super(t,e,n),this.format=2,this.length=t.uint16,this.language=t.uint16,this.subHeaderKeys=[...new Array(256)].map((e=>t.uint16));const r=Math.max(...this.subHeaderKeys),s=t.currentPosition;$c(this,"subHeaders",(()=>(t.currentPosition=s,[...new Array(r)].map((e=>new Pl(t))))));const i=s+8*r;$c(this,"glyphIndexArray",(()=>(t.currentPosition=i,[...new Array(r)].map((e=>t.uint16)))))}supports(t){t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));const e=t&&255,n=t&&65280,r=this.subHeaders[n],s=this.subHeaders[r],i=s.firstCode,o=i+s.entryCount;return i<=e&&e<=o}reverse(t){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(t=!1){return t?this.subHeaders.map((t=>({firstCode:t.firstCode,lastCode:t.lastCode}))):this.subHeaders.map((t=>({start:t.firstCode,end:t.lastCode})))}}class Pl{constructor(t){this.firstCode=t.uint16,this.entryCount=t.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=t.int16,this.idRangeOffset=t.uint16}}class Rl extends El{constructor(t,e,n){super(t,e,n),this.format=4,this.length=t.uint16,this.language=t.uint16,this.segCountX2=t.uint16,this.segCount=this.segCountX2/2,this.searchRange=t.uint16,this.entrySelector=t.uint16,this.rangeShift=t.uint16;const r=t.currentPosition;$c(this,"endCode",(()=>t.readBytes(this.segCount,r,16)));const s=r+2+this.segCountX2;$c(this,"startCode",(()=>t.readBytes(this.segCount,s,16)));const i=s+this.segCountX2;$c(this,"idDelta",(()=>t.readBytes(this.segCount,i,16,!0)));const o=i+this.segCountX2;$c(this,"idRangeOffset",(()=>t.readBytes(this.segCount,o,16)));const a=o+this.segCountX2,u=this.length-(a-this.tableStart);$c(this,"glyphIdArray",(()=>t.readBytes(u,a,16))),$c(this,"segments",(()=>this.buildSegments(o,a,t)))}buildSegments(t,e,n){const r=(e,r)=>{let s=this.startCode[r],i=this.endCode[r],o=this.idDelta[r],a=this.idRangeOffset[r],u=t+2*r,c=[];if(0===a)for(let t=s+o,n=i+o;t<=n;t++)c.push(t);else for(let t=0,l=i-s;t<=l;t++)n.currentPosition=u+a+2*t,c.push(n.uint16);return{startCode:s,endCode:i,idDelta:o,idRangeOffset:a,glyphIDs:c}};return[...new Array(this.segCount)].map(r)}reverse(t){let e=this.segments.find((e=>e.glyphIDs.includes(t)));if(!e)return{};const n=e.startCode+e.glyphIDs.indexOf(t);return{code:n,unicode:String.fromCodePoint(n)}}getGlyphId(t){if(t.charCodeAt&&(t=t.charCodeAt(0)),55296<=t&&t<=57343)return 0;if(65534===(65534&t)||65535===(65535&t))return 0;let e=this.segments.find((e=>e.startCode<=t&&t<=e.endCode));return e?e.glyphIDs[t-e.startCode]:0}supports(t){return 0!==this.getGlyphId(t)}getSupportedCharCodes(t=!1){return t?this.segments:this.segments.map((t=>({start:t.startCode,end:t.endCode})))}}class Ll extends El{constructor(t,e,n){super(t,e,n),this.format=6,this.length=t.uint16,this.language=t.uint16,this.firstCode=t.uint16,this.entryCount=t.uint16,this.lastCode=this.firstCode+this.entryCount-1;const r=()=>[...new Array(this.entryCount)].map((e=>t.uint16));$c(this,"glyphIdArray",r)}supports(t){if(t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),tthis.firstCode+this.entryCount)return{};const e=t-this.firstCode;return{code:e,unicode:String.fromCodePoint(e)}}reverse(t){let e=this.glyphIdArray.indexOf(t);if(e>-1)return this.firstCode+e}getSupportedCharCodes(t=!1){return t?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}}class Il extends El{constructor(t,e,n){super(t,e,n),this.format=8,t.uint16,this.length=t.uint32,this.language=t.uint32,this.is32=[...new Array(8192)].map((e=>t.uint8)),this.numGroups=t.uint32;const r=()=>[...new Array(this.numGroups)].map((e=>new Dl(t)));$c(this,"groups",r)}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),-1!==this.groups.findIndex((e=>e.startcharCode<=t&&t<=e.endcharCode))}reverse(t){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(t=!1){return t?this.groups:this.groups.map((t=>({start:t.startcharCode,end:t.endcharCode})))}}class Dl{constructor(t){this.startcharCode=t.uint32,this.endcharCode=t.uint32,this.startGlyphID=t.uint32}}class Ml extends El{constructor(t,e,n){super(t,e,n),this.format=10,t.uint16,this.length=t.uint32,this.language=t.uint32,this.startCharCode=t.uint32,this.numChars=t.uint32,this.endCharCode=this.startCharCode+this.numChars;const r=()=>[...new Array(this.numChars)].map((e=>t.uint16));$c(this,"glyphs",r)}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),!(tthis.startCharCode+this.numChars)&&t-this.startCharCode)}reverse(t){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(t=!1){return t?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}}class jl extends El{constructor(t,e,n){super(t,e,n),this.format=12,t.uint16,this.length=t.uint32,this.language=t.uint32,this.numGroups=t.uint32;const r=()=>[...new Array(this.numGroups)].map((e=>new _l(t)));$c(this,"groups",r)}supports(t){return t.charCodeAt&&(t=t.charCodeAt(0)),55296<=t&&t<=57343||65534===(65534&t)||65535===(65535&t)?0:-1!==this.groups.findIndex((e=>e.startCharCode<=t&&t<=e.endCharCode))}reverse(t){for(let e of this.groups){let n=e.startGlyphID;if(n>t)continue;if(n===t)return e.startCharCode;let r=n+(e.endCharCode-e.startCharCode);if(r({start:t.startCharCode,end:t.endCharCode})))}}class _l{constructor(t){this.startCharCode=t.uint32,this.endCharCode=t.uint32,this.startGlyphID=t.uint32}}class Nl extends El{constructor(t,e,n){super(t,e,n),this.format=13,t.uint16,this.length=t.uint32,this.language=t.uint32,this.numGroups=t.uint32;const r=[...new Array(this.numGroups)].map((e=>new Bl(t)));$c(this,"groups",r)}supports(t){return t.charCodeAt&&(t=t.charCodeAt(0)),-1!==this.groups.findIndex((e=>e.startCharCode<=t&&t<=e.endCharCode))}reverse(t){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(t=!1){return t?this.groups:this.groups.map((t=>({start:t.startCharCode,end:t.endCharCode})))}}class Bl{constructor(t){this.startCharCode=t.uint32,this.endCharCode=t.uint32,this.glyphID=t.uint32}}class Ul extends El{constructor(t,e,n){super(t,e,n),this.subTableStart=t.currentPosition,this.format=14,this.length=t.uint32,this.numVarSelectorRecords=t.uint32,$c(this,"varSelectors",(()=>[...new Array(this.numVarSelectorRecords)].map((e=>new Vl(t)))))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(t){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(t){let e=this.varSelector.find((e=>e.varSelector===t));return e||!1}getSupportedVariations(){return this.varSelectors.map((t=>t.varSelector))}}class Vl{constructor(t){this.varSelector=t.uint24,this.defaultUVSOffset=t.Offset32,this.nonDefaultUVSOffset=t.Offset32}}function Gl(t,e,n){const r=t.uint16;return 0===r?new Fl(t,e,n):2===r?new Tl(t,e,n):4===r?new Rl(t,e,n):6===r?new Ll(t,e,n):8===r?new Il(t,e,n):10===r?new Ml(t,e,n):12===r?new jl(t,e,n):13===r?new Nl(t,e,n):14===r?new Ul(t,e,n):{}}class Wl extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numTables=n.uint16,this.encodingRecords=[...new Array(this.numTables)].map((t=>new zl(n,this.tableStart)))}getSubTable(t){return this.encodingRecords[t].table}getSupportedEncodings(){return this.encodingRecords.map((t=>({platformID:t.platformID,encodingId:t.encodingID})))}getSupportedCharCodes(t,e){const n=this.encodingRecords.findIndex((n=>n.platformID===t&&n.encodingID===e));if(-1===n)return!1;const r=this.getSubTable(n);return r.getSupportedCharCodes()}reverse(t){for(let e=0;e{let s=this.getSubTable(r);return!!s.getGlyphId&&(e=s.getGlyphId(t),0!==e)})),e}supports(t){return this.encodingRecords.some(((e,n)=>{const r=this.getSubTable(n);return r.supports&&!1!==r.supports(t)}))}supportsVariation(t){return this.encodingRecords.some(((e,n)=>{const r=this.getSubTable(n);return r.supportsVariation&&!1!==r.supportsVariation(t)}))}}class zl{constructor(t,e){const n=this.platformID=t.uint16,r=this.encodingID=t.uint16,s=this.offset=t.Offset32;$c(this,"table",(()=>(t.currentPosition=e+s,Gl(t,n,r))))}}var Hl=Object.freeze({__proto__:null,cmap:Wl});class ql extends Qc{constructor(t,e){const{p:n}=super(t,e);this.load({majorVersion:n.uint16,minorVersion:n.uint16,fontRevision:n.fixed,checkSumAdjustment:n.uint32,magicNumber:n.uint32,flags:n.flags(16),unitsPerEm:n.uint16,created:n.longdatetime,modified:n.longdatetime,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,macStyle:n.flags(16),lowestRecPPEM:n.uint16,fontDirectionHint:n.uint16,indexToLocFormat:n.uint16,glyphDataFormat:n.uint16})}}var Yl=Object.freeze({__proto__:null,head:ql});class Zl extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.ascender=n.fword,this.descender=n.fword,this.lineGap=n.fword,this.advanceWidthMax=n.ufword,this.minLeftSideBearing=n.fword,this.minRightSideBearing=n.fword,this.xMaxExtent=n.fword,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,n.int16,n.int16,n.int16,n.int16,this.metricDataFormat=n.int16,this.numberOfHMetrics=n.uint16,n.verifyLength()}}var Kl=Object.freeze({__proto__:null,hhea:Zl});class Xl extends Qc{constructor(t,e,n){const{p:r}=super(t,e),s=n.hhea.numberOfHMetrics,i=n.maxp.numGlyphs,o=r.currentPosition;if($c(this,"hMetrics",(()=>(r.currentPosition=o,[...new Array(s)].map((t=>new Jl(r.uint16,r.int16)))))),s(r.currentPosition=t,[...new Array(i-s)].map((t=>r.int16)))))}}}class Jl{constructor(t,e){this.advanceWidth=t,this.lsb=e}}var Ql=Object.freeze({__proto__:null,hmtx:Xl});class $l extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.legacyFixed,this.numGlyphs=n.uint16,1===this.version&&(this.maxPoints=n.uint16,this.maxContours=n.uint16,this.maxCompositePoints=n.uint16,this.maxCompositeContours=n.uint16,this.maxZones=n.uint16,this.maxTwilightPoints=n.uint16,this.maxStorage=n.uint16,this.maxFunctionDefs=n.uint16,this.maxInstructionDefs=n.uint16,this.maxStackElements=n.uint16,this.maxSizeOfInstructions=n.uint16,this.maxComponentElements=n.uint16,this.maxComponentDepth=n.uint16),n.verifyLength()}}var tf=Object.freeze({__proto__:null,maxp:$l});class ef extends Qc{constructor(t,e){const{p:n}=super(t,e);this.format=n.uint16,this.count=n.uint16,this.stringOffset=n.Offset16,this.nameRecords=[...new Array(this.count)].map((t=>new rf(n,this))),1===this.format&&(this.langTagCount=n.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map((t=>new nf(n.uint16,n.Offset16)))),this.stringStart=this.tableStart+this.stringOffset}get(t){let e=this.nameRecords.find((e=>e.nameID===t));if(e)return e.string}}class nf{constructor(t,e){this.length=t,this.offset=e}}class rf{constructor(t,e){this.platformID=t.uint16,this.encodingID=t.uint16,this.languageID=t.uint16,this.nameID=t.uint16,this.length=t.uint16,this.offset=t.Offset16,$c(this,"string",(()=>(t.currentPosition=e.stringStart+this.offset,sf(t,this))))}}function sf(t,e){const{platformID:n,length:r}=e;if(0===r)return"";if(0===n||3===n){const e=[];for(let n=0,s=r/2;nn.uint8)),this.ulUnicodeRange1=n.flags(32),this.ulUnicodeRange2=n.flags(32),this.ulUnicodeRange3=n.flags(32),this.ulUnicodeRange4=n.flags(32),this.achVendID=n.tag,this.fsSelection=n.uint16,this.usFirstCharIndex=n.uint16,this.usLastCharIndex=n.uint16,this.sTypoAscender=n.int16,this.sTypoDescender=n.int16,this.sTypoLineGap=n.int16,this.usWinAscent=n.uint16,this.usWinDescent=n.uint16,0===this.version?n.verifyLength():(this.ulCodePageRange1=n.flags(32),this.ulCodePageRange2=n.flags(32),1===this.version?n.verifyLength():(this.sxHeight=n.int16,this.sCapHeight=n.int16,this.usDefaultChar=n.uint16,this.usBreakChar=n.uint16,this.usMaxContext=n.uint16,this.version<=4?n.verifyLength():(this.usLowerOpticalPointSize=n.uint16,this.usUpperOpticalPointSize=n.uint16,5===this.version?n.verifyLength():void 0)))}}var uf=Object.freeze({__proto__:null,OS2:af});class cf extends Qc{constructor(t,e){const{p:n}=super(t,e);if(this.version=n.legacyFixed,this.italicAngle=n.fixed,this.underlinePosition=n.fword,this.underlineThickness=n.fword,this.isFixedPitch=n.uint32,this.minMemType42=n.uint32,this.maxMemType42=n.uint32,this.minMemType1=n.uint32,this.maxMemType1=n.uint32,1===this.version||3===this.version)return n.verifyLength();if(this.numGlyphs=n.uint16,2===this.version){this.glyphNameIndex=[...new Array(this.numGlyphs)].map((t=>n.uint16)),this.namesOffset=n.currentPosition,this.glyphNameOffsets=[1];for(let t=0;tn.int8)))}getGlyphName(t){if(2!==this.version)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let e=this.glyphNameIndex[t];if(e<258)return lf[e];let n=this.glyphNameOffsets[t],r=this.glyphNameOffsets[t+1],s=r-n-1;if(0===s)return".notdef.";this.parser.currentPosition=this.namesOffset+n;const i=this.parser.readBytes(s,this.namesOffset+n,8,!0);return i.map((t=>String.fromCharCode(t))).join("")}}const lf=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];var ff=Object.freeze({__proto__:null,post:cf});class hf extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.horizAxisOffset=n.Offset16,this.vertAxisOffset=n.Offset16,$c(this,"horizAxis",(()=>new pf({offset:t.offset+this.horizAxisOffset},e))),$c(this,"vertAxis",(()=>new pf({offset:t.offset+this.vertAxisOffset},e))),1===this.majorVersion&&1===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,$c(this,"itemVarStore",(()=>new pf({offset:t.offset+this.itemVarStoreOffset},e))))}}class pf extends Qc{constructor(t,e){const{p:n}=super(t,e,"AxisTable");this.baseTagListOffset=n.Offset16,this.baseScriptListOffset=n.Offset16,$c(this,"baseTagList",(()=>new df({offset:t.offset+this.baseTagListOffset},e))),$c(this,"baseScriptList",(()=>new gf({offset:t.offset+this.baseScriptListOffset},e)))}}class df extends Qc{constructor(t,e){const{p:n}=super(t,e,"BaseTagListTable");this.baseTagCount=n.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map((t=>n.tag))}}class gf extends Qc{constructor(t,e){const{p:n}=super(t,e,"BaseScriptListTable");this.baseScriptCount=n.uint16;const r=n.currentPosition;$c(this,"baseScriptRecords",(()=>(n.currentPosition=r,[...new Array(this.baseScriptCount)].map((t=>new mf(this.start,n))))))}}class mf{constructor(t,e){this.baseScriptTag=e.tag,this.baseScriptOffset=e.Offset16,$c(this,"baseScriptTable",(()=>(e.currentPosition=t+this.baseScriptOffset,new yf(e))))}}class yf{constructor(t){this.start=t.currentPosition,this.baseValuesOffset=t.Offset16,this.defaultMinMaxOffset=t.Offset16,this.baseLangSysCount=t.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map((e=>new vf(this.start,t))),$c(this,"baseValues",(()=>(t.currentPosition=this.start+this.baseValuesOffset,new bf(t)))),$c(this,"defaultMinMax",(()=>(t.currentPosition=this.start+this.defaultMinMaxOffset,new wf(t))))}}class vf{constructor(t,e){this.baseLangSysTag=e.tag,this.minMaxOffset=e.Offset16,$c(this,"minMax",(()=>(e.currentPosition=t+this.minMaxOffset,new wf(e))))}}class bf{constructor(t){this.parser=t,this.start=t.currentPosition,this.defaultBaselineIndex=t.uint16,this.baseCoordCount=t.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map((e=>t.Offset16))}getTable(t){return this.parser.currentPosition=this.start+this.baseCoords[t],new Sf(this.parser)}}class wf{constructor(t){this.minCoord=t.Offset16,this.maxCoord=t.Offset16,this.featMinMaxCount=t.uint16;const e=t.currentPosition;$c(this,"featMinMaxRecords",(()=>(t.currentPosition=e,[...new Array(this.featMinMaxCount)].map((e=>new xf(t))))))}}class xf{constructor(t){this.featureTableTag=t.tag,this.minCoord=t.Offset16,this.maxCoord=t.Offset16}}class Sf{constructor(t){this.baseCoordFormat=t.uint16,this.coordinate=t.int16,2===this.baseCoordFormat&&(this.referenceGlyph=t.uint16,this.baseCoordPoint=t.uint16),3===this.baseCoordFormat&&(this.deviceTable=t.Offset16)}}var Cf=Object.freeze({__proto__:null,BASE:hf});class Of{constructor(t){this.classFormat=t.uint16,1===this.classFormat&&(this.startGlyphID=t.uint16,this.glyphCount=t.uint16,this.classValueArray=[...new Array(this.glyphCount)].map((e=>t.uint16))),2===this.classFormat&&(this.classRangeCount=t.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map((e=>new kf(t))))}}class kf{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.class=t.uint16}}class Af extends Jc{constructor(t){super(t),this.coverageFormat=t.uint16,1===this.coverageFormat&&(this.glyphCount=t.uint16,this.glyphArray=[...new Array(this.glyphCount)].map((e=>t.uint16))),2===this.coverageFormat&&(this.rangeCount=t.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map((e=>new Ef(t))))}}class Ef{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.startCoverageIndex=t.uint16}}class Ff{constructor(t,e){this.table=t,this.parser=e,this.start=e.currentPosition,this.format=e.uint16,this.variationRegionListOffset=e.Offset32,this.itemVariationDataCount=e.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map((t=>e.Offset32))}}class Tf extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.glyphClassDefOffset=n.Offset16,$c(this,"glyphClassDefs",(()=>{if(0!==this.glyphClassDefOffset)return n.currentPosition=this.tableStart+this.glyphClassDefOffset,new Of(n)})),this.attachListOffset=n.Offset16,$c(this,"attachList",(()=>{if(0!==this.attachListOffset)return n.currentPosition=this.tableStart+this.attachListOffset,new Pf(n)})),this.ligCaretListOffset=n.Offset16,$c(this,"ligCaretList",(()=>{if(0!==this.ligCaretListOffset)return n.currentPosition=this.tableStart+this.ligCaretListOffset,new Lf(n)})),this.markAttachClassDefOffset=n.Offset16,$c(this,"markAttachClassDef",(()=>{if(0!==this.markAttachClassDefOffset)return n.currentPosition=this.tableStart+this.markAttachClassDefOffset,new Of(n)})),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=n.Offset16,$c(this,"markGlyphSetsDef",(()=>{if(0!==this.markGlyphSetsDefOffset)return n.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new Mf(n)}))),3===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,$c(this,"itemVarStore",(()=>{if(0!==this.itemVarStoreOffset)return n.currentPosition=this.tableStart+this.itemVarStoreOffset,new Ff(n)})))}}class Pf extends Jc{constructor(t){super(t),this.coverageOffset=t.Offset16,this.glyphCount=t.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map((e=>t.Offset16))}getPoint(t){return this.parser.currentPosition=this.start+this.attachPointOffsets[t],new Rf(this.parser)}}class Rf{constructor(t){this.pointCount=t.uint16,this.pointIndices=[...new Array(this.pointCount)].map((e=>t.uint16))}}class Lf extends Jc{constructor(t){super(t),this.coverageOffset=t.Offset16,$c(this,"coverage",(()=>(t.currentPosition=this.start+this.coverageOffset,new Af(t)))),this.ligGlyphCount=t.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map((e=>t.Offset16))}getLigGlyph(t){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[t],new If(this.parser)}}class If extends Jc{constructor(t){super(t),this.caretCount=t.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map((e=>t.Offset16))}getCaretValue(t){return this.parser.currentPosition=this.start+this.caretValueOffsets[t],new Df(this.parser)}}class Df{constructor(t){this.caretValueFormat=t.uint16,1===this.caretValueFormat&&(this.coordinate=t.int16),2===this.caretValueFormat&&(this.caretValuePointIndex=t.uint16),3===this.caretValueFormat&&(this.coordinate=t.int16,this.deviceOffset=t.Offset16)}}class Mf extends Jc{constructor(t){super(t),this.markGlyphSetTableFormat=t.uint16,this.markGlyphSetCount=t.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map((e=>t.Offset32))}getMarkGlyphSet(t){return this.parser.currentPosition=this.start+this.coverageOffsets[t],new Af(this.parser)}}var jf=Object.freeze({__proto__:null,GDEF:Tf});class _f extends Jc{constructor(t){super(t),this.scriptCount=t.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map((e=>new Nf(t)))}}Vc(_f,"EMPTY",{scriptCount:0,scriptRecords:[]});class Nf{constructor(t){this.scriptTag=t.tag,this.scriptOffset=t.Offset16}}class Bf extends Jc{constructor(t){super(t),this.defaultLangSys=t.Offset16,this.langSysCount=t.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map((e=>new Uf(t)))}}class Uf{constructor(t){this.langSysTag=t.tag,this.langSysOffset=t.Offset16}}class Vf{constructor(t){this.lookupOrder=t.Offset16,this.requiredFeatureIndex=t.uint16,this.featureIndexCount=t.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map((e=>t.uint16))}}class Gf extends Jc{constructor(t){super(t),this.featureCount=t.uint16,this.featureRecords=[...new Array(this.featureCount)].map((e=>new Wf(t)))}}Vc(Gf,"EMPTY",{featureCount:0,featureRecords:[]});class Wf{constructor(t){this.featureTag=t.tag,this.featureOffset=t.Offset16}}class zf extends Jc{constructor(t){super(t),this.featureParams=t.Offset16,this.lookupIndexCount=t.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map((e=>t.uint16))}getFeatureParams(){if(this.featureParams>0){const t=this.parser;t.currentPosition=this.start+this.featureParams;const e=this.featureTag;if("size"===e)return new qf(t);if(e.startsWith("cc"))return new Hf(t);if(e.startsWith("ss"))return new Yf(t)}}}class Hf{constructor(t){this.format=t.uint16,this.featUiLabelNameId=t.uint16,this.featUiTooltipTextNameId=t.uint16,this.sampleTextNameId=t.uint16,this.numNamedParameters=t.uint16,this.firstParamUiLabelNameId=t.uint16,this.charCount=t.uint16,this.character=[...new Array(this.charCount)].map((e=>t.uint24))}}class qf{constructor(t){this.designSize=t.uint16,this.subfamilyIdentifier=t.uint16,this.subfamilyNameID=t.uint16,this.smallEnd=t.uint16,this.largeEnd=t.uint16}}class Yf{constructor(t){this.version=t.uint16,this.UINameID=t.uint16}}function Zf(t){t.parser.currentPosition-=2,delete t.coverageOffset,delete t.getCoverageTable}class Kf extends Jc{constructor(t){super(t),this.substFormat=t.uint16,this.coverageOffset=t.Offset16}getCoverageTable(){let t=this.parser;return t.currentPosition=this.start+this.coverageOffset,new Af(t)}}class Xf{constructor(t){this.glyphSequenceIndex=t.uint16,this.lookupListIndex=t.uint16}}class Jf extends Kf{constructor(t){super(t),this.deltaGlyphID=t.int16}}class Qf extends Kf{constructor(t){super(t),this.sequenceCount=t.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map((e=>t.Offset16))}getSequence(t){let e=this.parser;return e.currentPosition=this.start+this.sequenceOffsets[t],new $f(e)}}class $f{constructor(t){this.glyphCount=t.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((e=>t.uint16))}}class th extends Kf{constructor(t){super(t),this.alternateSetCount=t.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map((e=>t.Offset16))}getAlternateSet(t){let e=this.parser;return e.currentPosition=this.start+this.alternateSetOffsets[t],new eh(e)}}class eh{constructor(t){this.glyphCount=t.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map((e=>t.uint16))}}class nh extends Kf{constructor(t){super(t),this.ligatureSetCount=t.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map((e=>t.Offset16))}getLigatureSet(t){let e=this.parser;return e.currentPosition=this.start+this.ligatureSetOffsets[t],new rh(e)}}class rh extends Jc{constructor(t){super(t),this.ligatureCount=t.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map((e=>t.Offset16))}getLigature(t){let e=this.parser;return e.currentPosition=this.start+this.ligatureOffsets[t],new sh(e)}}class sh{constructor(t){this.ligatureGlyph=t.uint16,this.componentCount=t.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map((e=>t.uint16))}}class ih extends Kf{constructor(t){super(t),1===this.substFormat&&(this.subRuleSetCount=t.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map((e=>t.Offset16))),2===this.substFormat&&(this.classDefOffset=t.Offset16,this.subClassSetCount=t.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map((e=>t.Offset16))),3===this.substFormat&&(Zf(this),this.glyphCount=t.uint16,this.substitutionCount=t.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map((e=>t.Offset16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((e=>new Xf(t))))}getSubRuleSet(t){if(1!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let e=this.parser;return e.currentPosition=this.start+this.subRuleSetOffsets[t],new oh(e)}getSubClassSet(t){if(2!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let e=this.parser;return e.currentPosition=this.start+this.subClassSetOffsets[t],new uh(e)}getCoverageTable(t){if(3!==this.substFormat&&!t)return super.getCoverageTable();if(!t)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let e=this.parser;return e.currentPosition=this.start+this.coverageOffsets[t],new Af(e)}}class oh extends Jc{constructor(t){super(t),this.subRuleCount=t.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map((e=>t.Offset16))}getSubRule(t){let e=this.parser;return e.currentPosition=this.start+this.subRuleOffsets[t],new ah(e)}}class ah{constructor(t){this.glyphCount=t.uint16,this.substitutionCount=t.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map((e=>t.uint16)),this.substLookupRecords=[...new Array(this.substitutionCount)].map((e=>new Xf(t)))}}class uh extends Jc{constructor(t){super(t),this.subClassRuleCount=t.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map((e=>t.Offset16))}getSubClass(t){let e=this.parser;return e.currentPosition=this.start+this.subClassRuleOffsets[t],new ch(e)}}class ch extends ah{constructor(t){super(t)}}class lh extends Kf{constructor(t){super(t),1===this.substFormat&&(this.chainSubRuleSetCount=t.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map((e=>t.Offset16))),2===this.substFormat&&(this.backtrackClassDefOffset=t.Offset16,this.inputClassDefOffset=t.Offset16,this.lookaheadClassDefOffset=t.Offset16,this.chainSubClassSetCount=t.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map((e=>t.Offset16))),3===this.substFormat&&(Zf(this),this.backtrackGlyphCount=t.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((e=>t.Offset16)),this.inputGlyphCount=t.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map((e=>t.Offset16)),this.lookaheadGlyphCount=t.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map((e=>t.Offset16)),this.seqLookupCount=t.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map((e=>new gh(t))))}getChainSubRuleSet(t){if(1!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleSetOffsets[t],new fh(e)}getChainSubClassSet(t){if(2!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let e=this.parser;return e.currentPosition=this.start+this.chainSubClassSetOffsets[t],new ph(e)}getCoverageFromOffset(t){if(3!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let e=this.parser;return e.currentPosition=this.start+t,new Af(e)}}class fh extends Jc{constructor(t){super(t),this.chainSubRuleCount=t.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map((e=>t.Offset16))}getSubRule(t){let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleOffsets[t],new hh(e)}}class hh{constructor(t){this.backtrackGlyphCount=t.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((e=>t.uint16)),this.inputGlyphCount=t.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((e=>t.uint16)),this.lookaheadGlyphCount=t.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((e=>t.uint16)),this.substitutionCount=t.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map((e=>new Xf(t)))}}class ph extends Jc{constructor(t){super(t),this.chainSubClassRuleCount=t.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map((e=>t.Offset16))}getSubClass(t){let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleOffsets[t],new dh(e)}}class dh{constructor(t){this.backtrackGlyphCount=t.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map((e=>t.uint16)),this.inputGlyphCount=t.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map((e=>t.uint16)),this.lookaheadGlyphCount=t.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map((e=>t.uint16)),this.substitutionCount=t.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map((e=>new gh(t)))}}class gh extends Jc{constructor(t){super(t),this.sequenceIndex=t.uint16,this.lookupListIndex=t.uint16}}class mh extends Jc{constructor(t){super(t),this.substFormat=t.uint16,this.extensionLookupType=t.uint16,this.extensionOffset=t.Offset32}}class yh extends Kf{constructor(t){super(t),this.backtrackGlyphCount=t.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map((e=>t.Offset16)),this.lookaheadGlyphCount=t.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map((e=>t.Offset16)),this.glyphCount=t.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map((e=>t.uint16))}}var vh={buildSubtable:function(t,e){const n=new[void 0,Jf,Qf,th,nh,ih,lh,mh,yh][t](e);return n.type=t,n}};class bh extends Jc{constructor(t){super(t)}}class wh extends bh{constructor(t){super(t),console.log("lookup type 1")}}class xh extends bh{constructor(t){super(t),console.log("lookup type 2")}}class Sh extends bh{constructor(t){super(t),console.log("lookup type 3")}}class Ch extends bh{constructor(t){super(t),console.log("lookup type 4")}}class Oh extends bh{constructor(t){super(t),console.log("lookup type 5")}}class kh extends bh{constructor(t){super(t),console.log("lookup type 6")}}class Ah extends bh{constructor(t){super(t),console.log("lookup type 7")}}class Eh extends bh{constructor(t){super(t),console.log("lookup type 8")}}class Fh extends bh{constructor(t){super(t),console.log("lookup type 9")}}var Th={buildSubtable:function(t,e){const n=new[void 0,wh,xh,Sh,Ch,Oh,kh,Ah,Eh,Fh][t](e);return n.type=t,n}};class Ph extends Jc{constructor(t){super(t),this.lookupCount=t.uint16,this.lookups=[...new Array(this.lookupCount)].map((e=>t.Offset16))}}Vc(Ph,"EMPTY",{lookupCount:0,lookups:[]});class Rh extends Jc{constructor(t,e){super(t),this.ctType=e,this.lookupType=t.uint16,this.lookupFlag=t.uint16,this.subTableCount=t.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map((e=>t.Offset16)),this.markFilteringSet=t.uint16}get rightToLeft(){return!0&this.lookupFlag}get ignoreBaseGlyphs(){return!0&this.lookupFlag}get ignoreLigatures(){return!0&this.lookupFlag}get ignoreMarks(){return!0&this.lookupFlag}get useMarkFilteringSet(){return!0&this.lookupFlag}get markAttachmentType(){return!0&this.lookupFlag}getSubTable(t){const e="GSUB"===this.ctType?vh:Th;return this.parser.currentPosition=this.start+this.subtableOffsets[t],e.buildSubtable(this.lookupType,this.parser)}}class Lh extends Qc{constructor(t,e,n){const{p:r,tableStart:s}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.scriptListOffset=r.Offset16,this.featureListOffset=r.Offset16,this.lookupListOffset=r.Offset16,1===this.majorVersion&&1===this.minorVersion&&(this.featureVariationsOffset=r.Offset32);const i=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);$c(this,"scriptList",(()=>i?_f.EMPTY:(r.currentPosition=s+this.scriptListOffset,new _f(r)))),$c(this,"featureList",(()=>i?Gf.EMPTY:(r.currentPosition=s+this.featureListOffset,new Gf(r)))),$c(this,"lookupList",(()=>i?Ph.EMPTY:(r.currentPosition=s+this.lookupListOffset,new Ph(r)))),this.featureVariationsOffset&&$c(this,"featureVariations",(()=>i?FeatureVariations.EMPTY:(r.currentPosition=s+this.featureVariationsOffset,new FeatureVariations(r))))}getSupportedScripts(){return this.scriptList.scriptRecords.map((t=>t.scriptTag))}getScriptTable(t){let e=this.scriptList.scriptRecords.find((e=>e.scriptTag===t));this.parser.currentPosition=this.scriptList.start+e.scriptOffset;let n=new Bf(this.parser);return n.scriptTag=t,n}ensureScriptTable(t){return"string"===typeof t?this.getScriptTable(t):t}getSupportedLangSys(t){t=this.ensureScriptTable(t);const e=0!==t.defaultLangSys,n=t.langSysRecords.map((t=>t.langSysTag));return e&&n.unshift("dflt"),n}getDefaultLangSysTable(t){t=this.ensureScriptTable(t);let e=t.defaultLangSys;if(0!==e){this.parser.currentPosition=t.start+e;let n=new Vf(this.parser);return n.langSysTag="",n.defaultForScript=t.scriptTag,n}}getLangSysTable(t,e="dflt"){if("dflt"===e)return this.getDefaultLangSysTable(t);t=this.ensureScriptTable(t);let n=t.langSysRecords.find((t=>t.langSysTag===e));this.parser.currentPosition=t.start+n.langSysOffset;let r=new Vf(this.parser);return r.langSysTag=e,r}getFeatures(t){return t.featureIndices.map((t=>this.getFeature(t)))}getFeature(t){let e;if(e=parseInt(t)==t?this.featureList.featureRecords[t]:this.featureList.featureRecords.find((e=>e.featureTag===t)),!e)return;this.parser.currentPosition=this.featureList.start+e.featureOffset;let n=new zf(this.parser);return n.featureTag=e.featureTag,n}getLookups(t){return t.lookupListIndices.map((t=>this.getLookup(t)))}getLookup(t,e){let n=this.lookupList.lookups[t];return this.parser.currentPosition=this.lookupList.start+n,new Rh(this.parser,e)}}class Ih extends Lh{constructor(t,e){super(t,e,"GSUB")}getLookup(t){return super.getLookup(t,"GSUB")}}var Dh=Object.freeze({__proto__:null,GSUB:Ih});class Mh extends Lh{constructor(t,e){super(t,e,"GPOS")}getLookup(t){return super.getLookup(t,"GPOS")}}var jh=Object.freeze({__proto__:null,GPOS:Mh});class _h extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.offsetToSVGDocumentList=n.Offset32,n.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new Nh(n)}}class Nh extends Jc{constructor(t){super(t),this.numEntries=t.uint16,this.documentRecords=[...new Array(this.numEntries)].map((e=>new Bh(t)))}getDocument(t){let e=this.documentRecords[t];if(!e)return"";let n=this.start+e.svgDocOffset;return this.parser.currentPosition=n,this.parser.readBytes(e.svgDocLength)}getDocumentForGlyph(t){let e=this.documentRecords.findIndex((e=>e.startGlyphID<=t&&t<=e.endGlyphID));return-1===e?"":this.getDocument(e)}}class Bh{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.svgDocOffset=t.Offset32,this.svgDocLength=t.uint32}}var Uh=Object.freeze({__proto__:null,SVG:_h});class Vh extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.axesArrayOffset=n.Offset16,n.uint16,this.axisCount=n.uint16,this.axisSize=n.uint16,this.instanceCount=n.uint16,this.instanceSize=n.uint16;const r=this.tableStart+this.axesArrayOffset;$c(this,"axes",(()=>(n.currentPosition=r,[...new Array(this.axisCount)].map((t=>new Gh(n))))));const s=r+this.axisCount*this.axisSize;$c(this,"instances",(()=>{let t=[];for(let e=0;et.tag))}getAxis(t){return this.axes.find((e=>e.tag===t))}}class Gh{constructor(t){this.tag=t.tag,this.minValue=t.fixed,this.defaultValue=t.fixed,this.maxValue=t.fixed,this.flags=t.flags(16),this.axisNameID=t.uint16}}class Wh{constructor(t,e,n){let r=t.currentPosition;this.subfamilyNameID=t.uint16,t.uint16,this.coordinates=[...new Array(e)].map((e=>t.fixed)),t.currentPosition-r[...new Array(r)].map((t=>n.fword))))}}var qh=Object.freeze({__proto__:null,cvt:Hh});class Yh extends Qc{constructor(t,e){const{p:n}=super(t,e);$c(this,"instructions",(()=>[...new Array(t.length)].map((t=>n.uint8))))}}var Zh=Object.freeze({__proto__:null,fpgm:Yh});class Kh extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numRanges=n.uint16;const r=()=>[...new Array(this.numRanges)].map((t=>new Xh(n)));$c(this,"gaspRanges",r)}}class Xh{constructor(t){this.rangeMaxPPEM=t.uint16,this.rangeGaspBehavior=t.uint16}}var Jh=Object.freeze({__proto__:null,gasp:Kh});class Qh extends Qc{constructor(t,e){super(t,e)}getGlyphData(t,e){return this.parser.currentPosition=this.tableStart+t,this.parser.readBytes(e)}}var $h=Object.freeze({__proto__:null,glyf:Qh});class tp extends Qc{constructor(t,e,n){const{p:r}=super(t,e),s=n.maxp.numGlyphs+1;0===n.head.indexToLocFormat?(this.x2=!0,$c(this,"offsets",(()=>[...new Array(s)].map((t=>r.Offset16))))):$c(this,"offsets",(()=>[...new Array(s)].map((t=>r.Offset32))))}getGlyphDataOffsetAndLength(t){let e=this.offsets[t]*this.x2?2:1,n=this.offsets[t+1]*this.x2?2:1;return{offset:e,length:n-e}}}var ep=Object.freeze({__proto__:null,loca:tp});class np extends Qc{constructor(t,e){const{p:n}=super(t,e);$c(this,"instructions",(()=>[...new Array(t.length)].map((t=>n.uint8))))}}var rp=Object.freeze({__proto__:null,prep:np});class sp extends Qc{constructor(t,e){const{p:n}=super(t,e);$c(this,"data",(()=>n.readBytes()))}}var ip=Object.freeze({__proto__:null,CFF:sp});class op extends Qc{constructor(t,e){const{p:n}=super(t,e);$c(this,"data",(()=>n.readBytes()))}}var ap=Object.freeze({__proto__:null,CFF2:op});class up extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.defaultVertOriginY=n.int16,this.numVertOriginYMetrics=n.uint16,$c(this,"vertORiginYMetrics",(()=>[...new Array(this.numVertOriginYMetrics)].map((t=>new cp(n)))))}}class cp{constructor(t){this.glyphIndex=t.uint16,this.vertOriginY=t.int16}}var lp=Object.freeze({__proto__:null,VORG:up});class fp{constructor(t){this.indexSubTableArrayOffset=t.Offset32,this.indexTablesSize=t.uint32,this.numberofIndexSubTables=t.uint32,this.colorRef=t.uint32,this.hori=new pp(t),this.vert=new pp(t),this.startGlyphIndex=t.uint16,this.endGlyphIndex=t.uint16,this.ppemX=t.uint8,this.ppemY=t.uint8,this.bitDepth=t.uint8,this.flags=t.int8}}class hp{constructor(t){this.hori=new pp(t),this.vert=new pp(t),this.ppemX=t.uint8,this.ppemY=t.uint8,this.substitutePpemX=t.uint8,this.substitutePpemY=t.uint8}}class pp{constructor(t){this.ascender=t.int8,this.descender=t.int8,this.widthMax=t.uint8,this.caretSlopeNumerator=t.int8,this.caretSlopeDenominator=t.int8,this.caretOffset=t.int8,this.minOriginSB=t.int8,this.minAdvanceSB=t.int8,this.maxBeforeBL=t.int8,this.minAfterBL=t.int8,this.pad1=t.int8,this.pad2=t.int8}}class dp extends Qc{constructor(t,e,n){const{p:r}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,$c(this,"bitMapSizes",(()=>[...new Array(this.numSizes)].map((t=>new fp(r)))))}}var gp=Object.freeze({__proto__:null,EBLC:dp});class mp extends Qc{constructor(t,e,n){const{p:r}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16}}var yp=Object.freeze({__proto__:null,EBDT:mp});class vp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.numSizes=n.uint32,$c(this,"bitmapScales",(()=>[...new Array(this.numSizes)].map((t=>new hp(n)))))}}var bp=Object.freeze({__proto__:null,EBSC:vp});class wp extends dp{constructor(t,e){super(t,e,"CBLC")}}var xp=Object.freeze({__proto__:null,CBLC:wp});class Sp extends mp{constructor(t,e){super(t,e,"CBDT")}}var Cp=Object.freeze({__proto__:null,CBDT:Sp});class Op extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.flags=n.flags(16),this.numStrikes=n.uint32,$c(this,"strikeOffsets",(()=>[...new Array(this.numStrikes)].map((t=>n.Offset32))))}}var kp=Object.freeze({__proto__:null,sbix:Op});class Ap extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numBaseGlyphRecords=n.uint16,this.baseGlyphRecordsOffset=n.Offset32,this.layerRecordsOffset=n.Offset32,this.numLayerRecords=n.uint16}getBaseGlyphRecord(t){let e=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=e;let n=new Ep(this.parser),r=n.gID,s=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=s;let i=new Ep(this.parser),o=i.gID;if(r===t)return n;if(o===t)return i;while(1){if(e===s)break;let n=e+(s-e)/12;this.parser.currentPosition=n;let r=new Ep(this.parser),i=r.gID;if(i===t)return r;i>t?s=n:inew Fp(p)))}}class Ep{constructor(t){this.gID=t.uint16,this.firstLayerIndex=t.uint16,this.numLayers=t.uint16}}class Fp{constructor(t){this.gID=t.uint16,this.paletteIndex=t.uint16}}var Tp=Object.freeze({__proto__:null,COLR:Ap});class Pp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numPaletteEntries=n.uint16;const r=this.numPalettes=n.uint16;this.numColorRecords=n.uint16,this.offsetFirstColorRecord=n.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map((t=>n.uint16)),$c(this,"colorRecords",(()=>(n.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map((t=>new Rp(n)))))),1===this.version&&(this.offsetPaletteTypeArray=n.Offset32,this.offsetPaletteLabelArray=n.Offset32,this.offsetPaletteEntryLabelArray=n.Offset32,$c(this,"paletteTypeArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new Lp(n,r)))),$c(this,"paletteLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new Ip(n,r)))),$c(this,"paletteEntryLabelArray",(()=>(n.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new Dp(n,r)))))}}class Rp{constructor(t){this.blue=t.uint8,this.green=t.uint8,this.red=t.uint8,this.alpha=t.uint8}}class Lp{constructor(t,e){this.paletteTypes=[...new Array(e)].map((e=>t.uint32))}}class Ip{constructor(t,e){this.paletteLabels=[...new Array(e)].map((e=>t.uint16))}}class Dp{constructor(t,e){this.paletteEntryLabels=[...new Array(e)].map((e=>t.uint16))}}var Mp=Object.freeze({__proto__:null,CPAL:Pp});class jp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint32,this.numSignatures=n.uint16,this.flags=n.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map((t=>new _p(n)))}getData(t){const e=this.signatureRecords[t];return this.parser.currentPosition=this.tableStart+e.offset,new Np(this.parser)}}class _p{constructor(t){this.format=t.uint32,this.length=t.uint32,this.offset=t.Offset32}}class Np{constructor(t){t.uint16,t.uint16,this.signatureLength=t.uint32,this.signature=t.readBytes(this.signatureLength)}}var Bp=Object.freeze({__proto__:null,DSIG:jp});class Up extends Qc{constructor(t,e,n){const{p:r}=super(t,e),s=n.hmtx.numGlyphs;this.version=r.uint16,this.numRecords=r.int16,this.sizeDeviceRecord=r.int32,this.records=[...new Array(numRecords)].map((t=>new Vp(r,s)))}}class Vp{constructor(t,e){this.pixelSize=t.uint8,this.maxWidth=t.uint8,this.widths=t.readBytes(e)}}var Gp=Object.freeze({__proto__:null,hdmx:Up});class Wp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.nTables=n.uint16,$c(this,"tables",(()=>{let t=this.tableStart+4;const e=[];for(let r=0;r[...new Array(this.nPairs)].map((e=>new Hp(t)))))),2===this.format&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}}class Hp{constructor(t){this.left=t.uint16,this.right=t.uint16,this.value=t.fword}}var qp=Object.freeze({__proto__:null,kern:Wp});class Yp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numGlyphs=n.uint16,this.yPels=n.readBytes(this.numGlyphs)}}var Zp=Object.freeze({__proto__:null,LTSH:Yp});class Kp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.mergeClassCount=n.uint16,this.mergeDataOffset=n.Offset16,this.classDefCount=n.uint16,this.offsetToClassDefOffsets=n.Offset16,$c(this,"mergeEntryMatrix",(()=>[...new Array(this.mergeClassCount)].map((t=>n.readBytes(this.mergeClassCount))))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}var Xp=Object.freeze({__proto__:null,MERG:Kp});class Jp extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint32,this.flags=n.uint32,n.uint32,this.dataMapsCount=n.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map((t=>new Qp(this.tableStart,n)))}}class Qp{constructor(t,e){this.tableStart=t,this.parser=e,this.tag=e.tag,this.dataOffset=e.Offset32,this.dataLength=e.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}}var $p=Object.freeze({__proto__:null,meta:Jp});class td extends Qc{constructor(t,e){super(t,e),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}var ed=Object.freeze({__proto__:null,PCLT:td});class nd extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numRecs=n.uint16,this.numRatios=n.uint16,this.ratRanges=[...new Array(this.numRatios)].map((t=>new rd(n))),this.offsets=[...new Array(this.numRatios)].map((t=>n.Offset16)),this.VDMXGroups=[...new Array(this.numRecs)].map((t=>new sd(n)))}}class rd{constructor(t){this.bCharSet=t.uint8,this.xRatio=t.uint8,this.yStartRatio=t.uint8,this.yEndRatio=t.uint8}}class sd{constructor(t){this.recs=t.uint16,this.startsz=t.uint8,this.endsz=t.uint8,this.records=[...new Array(this.recs)].map((e=>new id(t)))}}class id{constructor(t){this.yPelHeight=t.uint16,this.yMax=t.int16,this.yMin=t.int16}}var od=Object.freeze({__proto__:null,VDMX:nd});class ad extends Qc{constructor(t,e){const{p:n}=super(t,e);this.version=n.fixed,this.ascent=this.vertTypoAscender=n.int16,this.descent=this.vertTypoDescender=n.int16,this.lineGap=this.vertTypoLineGap=n.int16,this.advanceHeightMax=n.int16,this.minTopSideBearing=n.int16,this.minBottomSideBearing=n.int16,this.yMaxExtent=n.int16,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.metricDataFormat=n.int16,this.numOfLongVerMetrics=n.uint16,n.verifyLength()}}var ud=Object.freeze({__proto__:null,vhea:ad});class cd extends Qc{constructor(t,e,n){super(t,e);const r=n.vhea.numOfLongVerMetrics,s=n.maxp.numGlyphs,i=p.currentPosition;if(lazy(this,"vMetrics",(()=>(p.currentPosition=i,[...new Array(r)].map((t=>new ld(p.uint16,p.int16)))))),r(p.currentPosition=t,[...new Array(s-r)].map((t=>p.int16)))))}}}class ld{constructor(t,e){this.advanceHeight=t,this.topSideBearing=e}}var fd=Object.freeze({__proto__:null,vmtx:cd});const hd=async t=>new Promise(((e,n)=>{const r=new window.FileReader;r.readAsArrayBuffer(t),r.onload=()=>e(r.result),r.onerror=n})),pd=t=>{const e=[];return t.dataTransfer.items?[...t.dataTransfer.items].forEach((t=>{"file"===t.kind&&e.push(t.getAsFile())})):[...t.dataTransfer.files].forEach((t=>{e.push(t)})),e},dd=(t,e)=>-1!==e.findIndex((e=>+e.fontWeight===+t.fontWeight&&e.fontStyle===t.fontStyle)),gd=async t=>{const e=new Al("uploaded-font");try{const n=await hd(t);return await e.fromDataBuffer(n,"font"),!0}catch(n){return!1}},md=(t,e)=>t.fontStyle===e.fontStyle&&t.fontWeight===e.fontWeight&&t.fontFamily===e.fontFamily,yd=t=>"string"===typeof t&&t!==decodeURIComponent(t),vd=t=>{switch(t){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(t,10)}},bd=t=>{const e=Ic[t.fontWeight]||t.fontWeight,n="normal"===t.fontStyle?"":Dc[t.fontStyle]||t.fontStyle;return`${t.fontFamily} ${e} ${n}`},wd=t=>t.fontStyle||t.fontWeight?t:t.fontFace&&t.fontFace.length?t.fontFace.find((t=>"normal"===t.fontStyle&&"400"===t.fontWeight))||t.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:t.fontFamily,fake:!0},xd=t=>{if(!t)return;let e;return e=Array.isArray(t)?t[0]:t,e.startsWith("file:.")?void 0:(yd(e)||(e=encodeURI(e)),e)},Sd=t=>{const e=[];return t.forEach((t=>{const n=String(t.fontWeight).split(" ");if(2===n.length){const t=vd(n[0]),r=vd(n[1]);for(let n=t;n<=r;n+=100)e.push(n)}else 1===n.length&&e.push(vd(n[0]))})),e},Cd=(t,e)=>0===e.length?null:(e.sort(((e,n)=>Math.abs(t-e)-Math.abs(t-n))),e[0]),Od=t=>{const e={fontFamily:kd(t.fontFamily)};if(!Array.isArray(t.fontFace))return e.fontWeight="400",e.fontStyle="normal",e;if(t.fontFace){const n=t.fontFace.filter((t=>t?.fontStyle&&"normal"===t.fontStyle.toLowerCase()));if(n.length>0){e.fontStyle="normal";const t=Sd(n),r=Cd(400,t);e.fontWeight=String(r)||"400"}else e.fontStyle=t.fontFace.length&&t.fontFace[0].fontStyle||"normal",e.fontWeight=t.fontFace.length&&String(t.fontFace[0].fontWeight)||"400"}return e};function kd(t){const e=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,n=t.trim(),r=t=>(t=t.trim(),t.match(e)?(t=t.replace(/^["']|["']$/g,""),`"${t}"`):t);return n.includes(",")?n.split(",").map(r).filter((t=>""!==t)).join(", "):r(n)}const Ad=t=>({fontFamily:kd(t.fontFamily),fontStyle:t.fontStyle||"normal",fontWeight:t.fontWeight||"400"}),Ed=async function(t){const e=await hd(t),n=new Al("uploaded-font");n.fromDataBuffer(e,t.name);const r=await new Promise((t=>n.onload=t)),s=r.detail.font,{name:i}=s.opentype.tables,o=i.get(16)||i.get(1),a=i.get(2).toLowerCase().includes("italic"),u=s.opentype.tables["OS/2"].usWeightClass||"normal",c=!!s.opentype.tables.fvar,l=c&&s.opentype.tables.fvar.axes.find((({tag:t})=>"wght"===t)),f=l?`${l.minValue} ${l.maxValue}`:null;return{file:t,fontFamily:o,fontStyle:a?"italic":"normal",fontWeight:f||u}},Fd=t=>{if(!t)return"";let e=t.trim();return e.includes(",")&&(e=e.split(",").find((t=>""!==t.trim())).trim()),e=e.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(e=`"${e}"`),e},Td=/([\p{Ll}\d])(\p{Lu})/gu,Pd=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Rd=/(\d)\p{Ll}|(\p{L})\d/u,Ld=/[^\p{L}\d]+/giu,Id="$1\0$2",Dd="";function Md(t){let e=t.trim();e=e.replace(Td,Id).replace(Pd,Id),e=e.replace(Ld,"\0");let n=0,r=e.length;while("\0"===e.charAt(n))n++;if(n===r)return[];while("\0"===e.charAt(r-1))r--;return e.slice(n,r).split(/\0/g)}function jd(t){const e=Md(t);for(let n=0;nt.toLowerCase():e=>e.toLocaleLowerCase(t)}function Ud(t,e={}){const n=e.split??(e.separateNumbers?jd:Md),r=e.prefixCharacters??Dd,s=e.suffixCharacters??Dd;let i=0,o=t.length;while(ii){const e=o-1,n=t.charAt(e);if(!s.includes(n))break;o=e}return[t.slice(0,i),n(t.slice(i,o)),t.slice(o)]}const Vd=t=>t.sort(((t,e)=>"normal"===t.fontStyle&&"normal"!==e.fontStyle?-1:"normal"===e.fontStyle&&"normal"!==t.fontStyle?1:t.fontStyle===e.fontStyle?vd(t.fontWeight)-vd(e.fontWeight):t.fontStyle.localeCompare(e.fontStyle))),Gd=t=>Vd(t?._embedded?.font_faces?.map((({id:t,parent:e,font_face_settings:n})=>({id:t,parent:e,...n})))??[]),Wd=t=>({id:t.id,...t.font_family_settings,fontFace:Gd(t)}),zd=t=>{const{fontFamily:e,name:n,slug:r,preview:s=""}=t,i=new FormData;return i.append("theme_json_version",2),i.append("font_family_settings",JSON.stringify({fontFamily:e,name:n,slug:r,preview:s})),i},Hd=t=>{const e={...t},n=new FormData;if(e.file){const t=Array.isArray(e.file)?e.file:[e.file],r=[];t.forEach(((t,e)=>{const s=Nd(t.name.toLowerCase());n.append(s,t,t.name),r.push(s)})),e.src=1===r.length?r[0]:r,delete e.file}return n.append("font_face_settings",JSON.stringify(e)),n.append("theme_json_version",2),n},qd=t=>{const e=t.reduce(((t,e)=>(t[e.fontFamily]||(t[e.fontFamily]={name:e.fontFamily,fontFamily:e.fontFamily,slug:Nd(e.fontFamily.toLowerCase()),fontFace:[]}),t[e.fontFamily].fontFace.push(e),t)),{});return Object.values(e)},Yd={errors:{file_format_unsupported:0,font_already_exists:0,font_family_not_created:0,font_face_not_created:0,font_face_asset_download:0,font_loading_failed:0,other:0},incrementErrorCount(t){this.errors[t]?this.errors[t]++:this.errors[t]=1},resetErrorCounts(){Object.keys(this.errors).forEach((t=>this.errors[t]=0))},errorFileFormatUnsupported(){this.incrementErrorCount("file_format_unsupported")},errorFontAlreadyExists(){this.incrementErrorCount("font_already_exists")},errorFontFamilyNotCreated(){this.incrementErrorCount("font_family_not_created")},errorFontFaceNotCreated(){this.incrementErrorCount("font_face_not_created")},errorOther(){this.incrementErrorCount("other")},errorDownloadFontFaceAsset(){this.incrementErrorCount("font_face_asset_download")},errorFontLoadingFailed(){this.incrementErrorCount("font_loading_failed")},hasErrors(){return 000?Zo("Some files were not uploaded because they are not supported font files.","thrive-dash"):e>0?Zo("Some files were not uploaded because they are already installed.","thrive-dash"):s>0?Zo("Install failed as some files were not downloaded.","thrive-dash"):n>0||r>0?Zo("Some fonts were not installed.","thrive-dash"):i>0?Zo("Failed to load some font files because they are invalid.","thrive-dash"):o>0?Zo("An unknown error occurred. Please try again later.","thrive-dash"):""}},Zd=async({path:t,method:e="GET",headers:n={},...r})=>{const s=wpApiSettings.nonce??"",i={method:e,headers:{"x-wp-nonce":s,...n},...r};return await fetch(t,i)},Kd=async t=>{const e=await Zd(t);return!!e.ok&&await e.json()},Xd=async t=>{const e=new URLSearchParams;e.append("_embed","font_faces"),Object.entries(t).forEach((([t,n])=>{e.append(t,n)}));const n=await Zd({path:`/wp-json/wp/v2/font-families?${e.toString()}`}),r=await n.json();if(!n.ok||!Array.isArray(r))return{data:[],pageCount:1};const s=n.headers.get("X-WP-TotalPages"),i=n.headers.get("X-WP-Total");return{data:r.map((t=>Wd(t))),count:i,pageCount:s}},Jd=async t=>{const e=await Kd({path:`${Mc}?slug=${t}&_embed=true`});if(!e||0===e.length)return null;const n=e[0];return Wd(n)},Qd=async t=>{const e=[];for(const n of t){const{slug:t}=n;let r=null,s=[];const i=await Jd(t);if(null===i){const t=await Kd({path:`${Mc}`,method:"POST",body:zd(n)});r=t?.id??null}else r=i?.id??null,s=i.fontFace;if(null===r){Yd.errorFontFamilyNotCreated();continue}const o=structuredClone(n);o.fontFace=[],e.push(o);for(const e of n.fontFace){if(dd(e,s)){Yd.errorFontAlreadyExists();continue}const t=await Kd({path:`${Mc}/${r}/font-faces`,method:"POST",body:Hd(e)});!1!==t?t&&t.font_face_settings&&"object"===typeof t.font_face_settings&&o.fontFace.push(t.font_face_settings):Yd.errorFontFaceNotCreated()}}if(e.length>0){const t=await tg();await eg([...t,...e])}},$d=async t=>!!await Kd({path:`/wp-json/wp/v2/font-families/${t}?force=true`,method:"DELETE"}),tg=async()=>{const t=await Kd({path:"/wp-json/theme/v1/fonts"});return t&&Array.isArray(t)?t:[]},eg=async t=>!!await Kd({path:"/wp-json/theme/v1/fonts",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fonts:t})}),ng=async t=>{const e={path:`${jc}/${t}`,method:"GET"};return await Kd(e)},rg=async()=>{const{font_families:t,...e}=await ng("google-fonts");return{...e,font_families:t?.map((t=>({...t.font_family_settings,categories:t.categories})))??[]}};async function sg(t){t=Array.isArray(t)?t:[t];const e=await Promise.all(t.map((async t=>fetch(new Request(t)).then((t=>t.ok?t.blob():(Yd.errorDownloadFontFaceAsset(),null))).then((e=>{if(!e)return null;const n=t.split("/").pop(),r=new File([e],n,{type:e.type});return r}))))),n=e.filter((t=>null!==t));return 1===n.length?n[0]:n}class ig{success(t){throw new Error("Method not implemented")}error(t){throw new Error("Method not implemented")}}class og extends ig{success(t){TVE_Dash.success(t)}error(t){TVE_Dash.err(t)}}class ag extends ig{success(t){TVE.page_message(t,!1)}error(t){TVE.page_message(t,!0)}}class ug extends ig{success(t){console.log(t)}error(t){console.error(t)}}const cg=(()=>{let t;return t="object"===typeof TVE_Dash?new og:"object"===typeof TVE?new ag:new ug,{success:e=>t.success(e),error:e=>t.error(e)}})();var lg=cg;const fg=async(t,e)=>{let n;try{if("string"===typeof e)n=`url(${e})`;else{if(!(e instanceof File))return!1;n=await e.arrayBuffer()}const r=new window.FontFace(Fd(t.fontFamily),n,{style:t.fontStyle,weight:t.fontWeight}),s=await r.load();return document.fonts.add(s),!0}catch(r){return!1}};const hg=async t=>{const e=await Promise.all(t.map((async t=>{const e=await Ed(t),n=await fg(e,e.file);return n?e:(Yd.errorFontLoadingFailed(),!1)}))),n=e.filter(Boolean),r=qd(n);await Qd(r)},pg=async function(t){const e=new Set,n=[...t];let r=!1;const s=n.map((async t=>{const n=await gd(t);if(!n)return r=!0,null;if(e.has(t.name))return null;const s=t.name.split(".").pop().toLowerCase();return _c.includes(s)?(e.add(t.name),t):null})),i=(await Promise.all(s)).filter((t=>null!==t));i.length>0&&await hg(i),r&&Yd.errorFileFormatUnsupported(),dg()},dg=()=>{Yd.hasErrors()?lg.error(Yd.flushErrors()):lg.success(Zo("Fonts were installed successfully.","thrive-dash"))},gg={class:"spinner-loader"};function mg(t,e){return qs(),Js("span",gg)}const yg={},vg=(0,nu.A)(yg,[["render",mg]]);var bg=vg;function wg(t,e){return qs(),Qs(Au,{name:"fade"},{default:gn((()=>[yr(t.$slots,"default")])),_:3})}const xg={},Sg=(0,nu.A)(xg,[["render",wg]]);var Cg=Sg;const Og={class:"label--font",for:"input--font"},kg={key:1},Ag=["accept"],Eg={class:"text--secondary"};var Fg={__name:"FontUpload",setup(t){const e=Re(!1),n=Re(null),r=Re(!1),s=Re(0),i=_c.join(", "),o=ua(),a=async t=>{r.value=!0,await pg(t),o.dispatch("loadCustomFonts"),r.value=!1},u=()=>{const t=n.value.querySelector("[type=file]"),e=[...t.files];0!==e.length&&(a(e),n.value.reset())},c=t=>{t.preventDefault();const n=pd(t);a(n),e.value=!1,s.value=0},l=t=>t.preventDefault(),f=t=>{const n=t.dataTransfer.types.includes("Files");n&&(s.value++,e.value=!0)},h=()=>{s.value--,0===s.value&&(e.value=!1)};return(t,s)=>(qs(),Js("div",{class:"font-library-upload",onDrop:c,onDragover:l,onDragenter:f,onDragleave:h},[ri("h2",null,nt(De(Zo)("Upload Fonts","thrive-dash")),1),ri("form",{ref_key:"formRef",ref:n},[ri("label",Og,[r.value?(qs(),Qs(bg,{key:0})):(qs(),Js("span",kg,nt(De(Zo)("Upload Fonts","thrive-dash")),1))]),ri("input",{id:"input--font",type:"file",multiple:"",accept:De(i),onChange:u},null,40,Ag)],512),ri("p",Eg,nt(De(zi)(De(Zo)("Uploaded Fonts appear in the manage area and can be used in your themes. Supported formats are %s","thrive-dash"),De(i))),1),si(Cg,null,{default:gn((()=>[mn(ri("div",{class:"font-library-upload__dropzone"},nt(De(Zo)("Drop files to upload them","thrive-dash")),513),[[zu,e.value]])])),_:1})],32))}};const Tg=Fg;var Pg=Tg;new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"long"});function Rg(t=!0){document.body.classList.toggle("td-overflow-hidden",t)}const Lg={class:"modal"},Ig={class:"modal__content"},Dg={class:"modal__footer"};var Mg={__name:"ConfirmationModal",props:{to:{type:String,default:"body"},textContent:{type:String,default:""},applyText:{type:String,default:"Save"}},emits:["apply","cancel"],setup(t){const e=t,n=t=>{"Escape"===t.key&&$emit("cancel")};return or((()=>{Rg(!0),window.addEventListener("keydown",n),lr((()=>{Rg(!1),window.removeEventListener("keydown",n)}))})),(n,r)=>(qs(),Qs(Fn,{to:e.to},[ri("div",Lg,[ri("div",Ig,nt(t.textContent),1),ri("div",Dg,[ri("button",{class:"button--cancel",onClick:r[0]||(r[0]=t=>n.$emit("cancel"))}," Cancel "),ri("button",{class:"button--apply",onClick:r[1]||(r[1]=t=>n.$emit("apply"))},nt(t.applyText),1)])]),ri("div",{class:"overlay",onClick:r[2]||(r[2]=t=>n.$emit("cancel"))})],8,["to"]))}};const jg=(0,nu.A)(Mg,[["__scopeId","data-v-09cbc0cc"]]);var _g=jg;const Ng=["src","alt"];var Bg={__name:"FontDemo",props:{font:{type:Object,required:!0},face:{type:Object,required:!1,default:()=>null}},setup(t){const e=t,n=_i((()=>!e.face)),r=_i((()=>n.value?wd(e.font):e.face)),s=_i((()=>n.value?e.font?.preview:e.face?.preview)),i=_i((()=>!!s.value)),o=_i((()=>n.value?e.font?.name:bd(e.face))),a=_i((()=>i.value?{}:{opacity:u?"1":"0",...Od(e.font),...Ad(r.value)})),u=Re(!1),c=Re(null),l=ua(),f=t=>{l.dispatch("loadFont",t)};return or((()=>{const t=new IntersectionObserver((([e])=>{e.isIntersecting&&(u.value||s.value||(f(r.value),u.value=!0),t.disconnect())}),{});c.value&&t.observe(c.value),lr((()=>{t.disconnect()}))})),(t,e)=>(qs(),Js("div",{ref_key:"elementRef",ref:c,class:"font-demo"},[i.value?(qs(),Js("img",{key:0,src:s.value,alt:De(zi)(De(Ko)("%s Font preview","Font Name","thrive-dash"),o.value)},null,8,Ng)):(qs(),Js("span",{key:1,style:W(a.value)},nt(o.value),5))],512))}};const Ug=Bg;var Vg=Ug;const Gg=["disabled"],Wg=["selected"],zg=["disabled"];function Hg(t,e,n,r,s,i){return qs(),Js("div",null,[ri("button",{class:"button--ghost",disabled:1===r.props.currentPage,onClick:r.onPrev},e[0]||(e[0]=[ri("span",{class:"fa-solid fa-chevron-left"},null,-1)]),8,Gg),ri("span",null,[e[1]||(e[1]=ui(" Page ")),ri("select",{onChange:r.onChange},[(qs(!0),Js(Us,null,mr(r.props.pageCount,(t=>(qs(),Js("option",{key:t,selected:t==r.props.currentPage},nt(t),9,Wg)))),128))],32),ui(" of "+nt(r.props.pageCount),1)]),ri("button",{class:"button--ghost",disabled:r.props.currentPage===r.props.pageCount,onClick:r.onNext},e[2]||(e[2]=[ri("span",{class:"fa-solid fa-chevron-right"},null,-1)]),8,zg)])}var qg={__name:"Pagination",props:{pageCount:{type:Number,required:!0},currentPage:{type:Number,required:!0}},emits:["navigate"],setup(t,{expose:e,emit:n}){e();const r=t,s=n,i=()=>{s("navigate",r.currentPage+1)},o=()=>{s("navigate",r.currentPage-1)},a=t=>{s("navigate",parseInt(t.target.value))},u={props:r,emit:s,onNext:i,onPrev:o,onChange:a};return Object.defineProperty(u,"__isScriptSetup",{enumerable:!1,value:!0}),u}};const Yg=(0,nu.A)(qg,[["render",Hg],["__scopeId","data-v-74a5afe8"]]);var Zg=Yg;const Kg={class:"font-library"},Xg={class:"font-library__body"},Jg={key:1},Qg={key:0,class:"text--secondary"},$g={key:1},tm={class:"font-library__list"},em=["onClick"],nm={class:"font-library__list-item__variants text--secondary"},rm={key:2},sm={class:"text--secondary"},im={key:0,class:"font-library__list"},om=["onClick"],am=["id","name","checked","onChange"],um=["for"],cm={class:"font-library__actions"},lm=["disabled"];var fm={__name:"FontLibrary",setup(t){const e=ua(),n=Re(!1),r=t=>{e.state.isDataUpToDate||e.dispatch("persist"),e.dispatch("setFontLibraryCurrentPage",t)},s=_i((()=>e.state.customFonts.find((t=>t.id===e.state.currentFont.id)))),i=_i((()=>s.value?.name??"")),o=async()=>{n.value=!0},a=async()=>{n.value=!1};window.addEventListener("keydown",(t=>{"Escape"===t.key&&a()}));const u=async()=>{a(),e.dispatch("deleteCurrentFont"),f()},c=t=>{e.dispatch("toggleActivation",t)},l=t=>{e.dispatch("viewFont",t)},f=()=>{e.dispatch("viewFont",null)},h=()=>{e.dispatch("persist")};return(t,e)=>(qs(),Js("div",Kg,[ri("div",Xg,[t.$store.state.loading?(qs(),Qs(bg,{key:0})):(qs(),Js("div",Jg,[t.$store.state.customFonts.length?t.$store.getters.isAnyFontOpen?(qs(),Js("div",rm,[ri("h2",null,[ri("button",{class:"button--ghost",onClick:f},[e[1]||(e[1]=ri("i",{class:"fa-solid fa-chevron-left"},null,-1)),ri("span",null,nt(i.value),1)])]),ri("p",sm,nt(De(Zo)("Select the font variants you want to enable in your Thrive products. Click 'Update' to apply the changes. Note that using too many variants may slow down your site.","thrive-dash")),1),s.value?(qs(),Js("ul",im,[(qs(!0),Js(Us,null,mr(s.value.fontFace,(t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>c(t)},[ri("input",{id:t.id,name:t.id,type:"checkbox",checked:t.active,onChange:e=>c(t)},null,40,am),ri("label",{for:t.id},[si(Vg,{font:s.value,face:t},null,8,["font","face"])],8,um)],8,om)])))),128))])):ci("",!0)])):(qs(),Js("div",$g,[ri("h2",null,nt(De(zi)(De(Zo)("Installed fonts (%d/%d)","thrive-dash"),t.$store.state.customFonts.length,t.$store.state.fontLibrarySettings.total)),1),ri("ul",tm,[(qs(!0),Js(Us,null,mr(t.$store.state.customFonts,(t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>l(t)},[ri("span",null,[si(Vg,{font:t},null,8,["font"])]),ri("span",nm,[ui(nt(De(zi)(De(Ko)("%d/%d variants active","Active fonts count/Installed fonts count","thrive-dash"),t.fontFace.filter((t=>t.active)).length,t.fontFace.length))+" ",1),e[0]||(e[0]=ri("i",{class:"fa-solid fa-chevron-right"},null,-1))])],8,em)])))),128))]),si(Zg,{"page-count":t.$store.state.fontLibrarySettings.totalPages,"current-page":t.$store.state.fontLibrarySettings.page,onNavigate:r},null,8,["page-count","current-page"])])):(qs(),Js("p",Qg,nt(De(Zo)("No fonts installed yet. Upload fonts to get started.","thrive-dash")),1))]))]),ri("div",cm,[t.$store.getters.isAnyFontOpen?(qs(),Js("button",{key:0,class:"font-library__action font-library__action--delete tvd-btn tvd-btn-red",onClick:o},nt(De(Zo)("Delete","thrive-dash")),1)):ci("",!0),ri("button",{class:"font-library__action font-library__action--update tvd-btn tvd-btn-green tve-btn tve-btn-green",disabled:t.$store.state.dataUpToDate,onClick:h},nt(De(Zo)("Update","thrive-dash")),9,lm)]),n.value?(qs(),Qs(_g,{key:0,to:"#wpbody",textContent:De(zi)(De(Ko)('Are you sure you want to delete "%s" font and all its variants and assets?',"Name of the font","thrive-dash"),i.value),applyText:De(Zo)("Confirm","thrive-dash"),onApply:u,onCancel:a},null,8,["textContent","applyText"])):ci("",!0)]))}};const hm=fm;var pm=hm;const dm={class:"google-fonts-library"},gm={key:1,class:"text--secondary"},mm={href:"https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/",target:"_blank"},ym={key:2},vm={key:0},bm={class:"text--secondary"},wm={class:"google-fonts-library__filters"},xm={class:"google-fonts-library__search"},Sm=["placeholder","value"],Cm=["value"],Om={class:"font-library__list"},km=["onClick"],Am={class:"font-library__list-item__variants text--secondary"},Em={key:1},Fm={class:"text--secondary"},Tm={class:"font-library__list"},Pm=["onClick"],Rm=["id","name","checked","onChange"],Lm=["for"],Im=["disabled"];var Dm={__name:"GoogleFonts",setup(t){const e=ua(),n=_i((()=>e.getters?.currentFontName??"")),r=Re(!1),s=ve([]),i=_i((()=>r.value||0===s.length)),o=t=>{e.dispatch("setGoogleFontsSelectedCategory",t.target.value)},a=t=>{e.dispatch("setGoogleFontsSearchTerm",t.target.value)},u=t=>{e.dispatch("setGoogleFontsCurrentPage",t)},c=t=>{e.dispatch("viewFont",t)},l=()=>{s.length=0},f=()=>{l(),e.dispatch("viewFont",null)},h=t=>s.includes(t),p=t=>{s.includes(t)?s.splice(s.indexOf(t),1):s.push(t)},d=async()=>{if(0===s.length)return;const t=e.state.currentFont;r.value=!0,await Promise.all(s.forEach((async t=>{t.src&&(t.file=await sg(t.src))}))??[]),Yd.hasErrors()||await Qd([{...t,fontFace:s}]),dg(),e.dispatch("load"),r.value=!1};return(t,e)=>(qs(),Js("div",dm,[t.$store.state.loading?(qs(),Qs(bg,{key:0})):t.$store.state.googleFonts.length?(qs(),Js("div",ym,[t.$store.getters.isAnyFontOpen?(qs(),Js("div",Em,[ri("h2",null,[ri("button",{class:"button--ghost",onClick:f},[e[4]||(e[4]=ri("i",{class:"fa-solid fa-chevron-left"},null,-1)),ri("span",null,nt(n.value),1)])]),ri("p",Fm,nt(De(Zo)("Manage variants for the font. Having more variants can increase website load","thrive-dash")),1),ri("ul",Tm,[(qs(!0),Js(Us,null,mr(t.$store.state.currentFont.fontFace,(e=>(qs(),Js("li",{key:e.id,class:"font-library__list-item"},[ri("button",{onClick:t=>p(e)},[ri("input",{id:e.id,name:e.id,type:"checkbox",checked:h(e),onChange:t=>p(e)},null,40,Rm),ri("label",{for:e.id},[si(Vg,{font:t.$store.state.currentFont,face:e},null,8,["font","face"])],8,Lm)],8,Pm)])))),128))])])):(qs(),Js("div",vm,[ri("p",bm,nt(De(Zo)("Install from Google Fonts. Fonts are served directly to your website.","thrive-dash")),1),ri("div",wm,[ri("span",xm,[ri("input",{type:"search",placeholder:De(Zo)("Search Google Fonts","thrive-dash"),value:t.$store.state.googleFontsSettings.search,onInput:a},null,40,Sm),e[1]||(e[1]=ri("i",{class:"fas fa-search fa-xs"},null,-1))]),mn(ri("select",{"onUpdate:modelValue":e[0]||(e[0]=e=>t.$store.state.googleFontsSettings.category=e),onChange:o},[e[2]||(e[2]=ri("option",{value:""}," Default ",-1)),(qs(!0),Js(Us,null,mr(t.$store.state.googleFontsSettings.categories,(t=>(qs(),Js("option",{key:t.slug,value:t.slug},nt(t.name),9,Cm)))),128))],544),[[bc,t.$store.state.googleFontsSettings.category]])]),ri("ul",Om,[(qs(!0),Js(Us,null,mr(t.$store.getters.fontsByPage,(t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>c(t)},[ri("span",null,[si(Vg,{font:t},null,8,["font"])]),ri("span",Am,[ui(nt(De(zi)(De(Ko)("%d variants","Installed fonts count","thrive-dash"),t.fontFace.length))+" ",1),e[3]||(e[3]=ri("i",{class:"fa-solid fa-chevron-right"},null,-1))])],8,km)])))),128))]),si(Zg,{"page-count":t.$store.getters.googleFontsPageCount,"current-page":t.$store.state.googleFontsSettings.page,onNavigate:u},null,8,["page-count","current-page"])]))])):(qs(),Js("div",gm,[ri("p",null,[ui(nt(De(Zo)("Google fonts cannot be loaded. Kindly ensure your server memory limit is equal to or more than 512MB.","thrive-dash"))+" ",1),ri("a",mm,nt(De(Zo)("Learn more","thrive-dash")),1)])])),t.$store.getters.isAnyFontOpen?(qs(),Js("button",{key:3,class:"font-library__action tvd-btn tvd-btn-green",disabled:i.value,onClick:d},nt(De(Zo)("Install","thrive-dash")),9,Im)):ci("",!0),r.value?(qs(),Qs(bg,{key:4,class:"installation-indicator"})):ci("",!0)]))}};const Mm=Dm;var jm=Mm;const _m={class:"td-font-library"};var Nm={__name:"App",setup(t){const e=ua(),n=()=>{e.dispatch("viewFont",null)};return e.dispatch("load"),(t,e)=>(qs(),Js("div",_m,[si(De(su)),si(De(fu),{onChangeTab:n},{default:gn((()=>[si(De(Lc),{title:De(Zo)("Library","thrive-dash")},{default:gn((()=>[si(De(pm))])),_:1},8,["title"]),si(De(Lc),{title:De(Zo)("Upload","thrive-dash")},{default:gn((()=>[si(De(Pg))])),_:1},8,["title"]),si(De(Lc),{title:De(Zo)("Google Fonts","thrive-dash")},{default:gn((()=>[si(jm)])),_:1},8,["title"])])),_:1})]))}};const Bm=Nm;var Um=Bm,Vm=qa({state:{customFonts:[],fontLibrarySettings:{perPage:100,page:1,total:0,totalPages:0},googleFonts:[],googleFontsSettings:{categories:[],search:"",category:"",perPage:10,page:1},themeFonts:[],currentFont:null,dataUpToDate:!0,loadedFontUrls:new Set,loading:!0},mutations:{setCustomFonts(t,e){t.customFonts=e},setGoogleFonts(t,e){t.googleFonts=e},setCurrentFont(t,e){t.currentFont=e},deleteFont(t,e){t.customFonts=t.customFonts.filter((t=>t.id!==e.id))},toggleFace(t,{fontId:e,faceToToggle:n}){t.customFonts=t.customFonts.map((t=>t.id!==e?t:{...t,fontFace:t.fontFace.map((({active:t,...e})=>({...e,active:md(e,n)?!t:t})))}))},markDataUpToDate(t,e){t.dataUpToDate=e},addLoadedFontUrl(t,e){t.loadedFontUrls.add(e)},setLoading(t,e){t.loading=e},updateGoogleFontsSettings(t,e){t.googleFontsSettings=e},updateFontLibrarySettings(t,e){t.fontLibrarySettings=e}},actions:{async load({commit:t,dispatch:e}){await e("loadCustomFonts"),await e("loadGoogleFonts"),t("setLoading",!1),t("markDataUpToDate",!0)},async loadCustomFonts({state:t,commit:e,dispatch:n}){const r=await tg(),s=(t,e)=>{const n=r.find((t=>e.slug===t.slug))?.fontFace??[];return!!n.find((e=>md(e,t)))},{page:i,perPage:o}=t.fontLibrarySettings,a={per_page:o,page:i},{data:u,pageCount:c,count:l}=await Xd(a),f=u.map((t=>{const{fontFace:e}=t;return{...t,fontFace:e.map((e=>({...e,active:s(e,t)})))}}));f.sort(((t,e)=>t.name.localeCompare(e.name))),e("setCustomFonts",f),n("setFontLibraryTotalPages",+c),n("setFontLibraryTotalCount",+l)},viewFont({commit:t},e){t("setCurrentFont",e)},async deleteFont({commit:t,dispatch:e,state:n},r){r.id&&(await $d(r.id),await t("deleteFont",r),await e("persist"),await e("loadCustomFonts"),n.fontLibrarySettings.page>n.fontLibrarySettings.totalPages&&(e("setFontLibraryCurrentPage",n.fontLibrarySettings.totalPages),e("loadCustomFonts")))},deleteCurrentFont({state:t,dispatch:e}){e("deleteFont",t.currentFont)},toggleActivation({commit:t,state:e},n){const r=e.currentFont.id??null;r&&(t("toggleFace",{fontId:r,faceToToggle:n}),t("markDataUpToDate",!1))},async persist({commit:t,state:e,dispatch:n}){t("markDataUpToDate",!0);const r=e.customFonts.map((({slug:t,name:e,fontFamily:n,fontFace:r})=>({slug:t,name:e,fontFamily:n,fontFace:r.filter((t=>t.active)).map((({fontFamily:t,fontStyle:e,fontWeight:n,preview:r,src:s})=>({fontFamily:t,fontStyle:e,fontWeight:n,preview:r,src:s})))})));await eg(r)},loadFont({commit:t,state:e},n){if(!n.src)return;const r=xd(n.src);r&&!e.loadedFontUrls.has(r)&&(fg(n,r,"document"),t("addLoadedFontUrl",r))},async setFontLibraryCurrentPage({commit:t,dispatch:e,state:n},r){t("updateFontLibrarySettings",{...n.fontLibrarySettings,page:+r}),t("setLoading",!0),await e("loadCustomFonts"),t("setLoading",!1)},setFontLibraryTotalPages({commit:t,state:e},n){t("updateFontLibrarySettings",{...e.fontLibrarySettings,totalPages:+n})},setFontLibraryTotalCount({commit:t,state:e},n){t("updateFontLibrarySettings",{...e.fontLibrarySettings,total:+n})},async loadGoogleFonts({commit:t,state:e}){try{const{font_families:n,categories:r}=await rg();return t("setGoogleFonts",n),t("updateGoogleFontsSettings",{...e.googleFontsSettings,categories:r}),!0}catch{return!1}},setGoogleFontsCurrentPage({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,page:n})},setGoogleFontsSelectedCategory({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,category:n,page:1})},setGoogleFontsSearchTerm({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,search:n,page:1})}},getters:{currentFontName(t){return t.currentFont.name??""},isAnyFontOpen(t){return null!==t.currentFont},googleFonts(t){const e=t.googleFontsSettings.search.toLowerCase(),n=t.googleFontsSettings.category,r=n?t.googleFonts.filter((t=>t.categories.includes(n))):t.googleFonts,s=e?r.filter((t=>t.name.toLowerCase().includes(e))):r;return s},googleFontsPageCount(t,e){return Math.ceil(e.googleFonts.length/t.googleFontsSettings.perPage)},fontsByPage(t,e){const n=t.googleFontsSettings.page,r=(n-1)*t.googleFontsSettings.perPage,s=r+t.googleFontsSettings.perPage;return e.googleFonts.slice(r,s)}}});document.querySelector("#font-library-app")&&kc(Um).use(Vm).mount("#font-library-app")}()})();