0;--C[x])S=new i(x&255,A[v++]&65535),l(d,m+_,O,j,S),_=u(_,x);for(E=J-1,T=-1,x=g+1,O=2;x<=a;++x,O<<=1)for(;C[x]>0;--C[x])(_&E)!==T&&(m+=j,P=c(C,x,g),j=1<>g),O,j,S),_=u(_,x);return J}},{}],8:[function(o,n,s){"use strict";s.byteLength=g,s.toByteArray=w,s.fromByteArray=x;for(var i=[],a=[],u=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,d=l.length;c0)throw new Error("Invalid string. Length must be a multiple of 4");var O=v.indexOf("=");O===-1&&(O=_);var T=O===_?0:4-O%4;return[O,T]}function g(v){var _=m(v),O=_[0],T=_[1];return(O+T)*3/4-T}function h(v,_,O){return(_+O)*3/4-O}function w(v){for(var _,O=m(v),T=O[0],E=O[1],P=new u(h(v,T,E)),j=0,J=E>0?T-4:T,A=0;A>16&255,P[j++]=_>>8&255,P[j++]=_&255;return E===2&&(_=a[v.charCodeAt(A)]<<2|a[v.charCodeAt(A+1)]>>4,P[j++]=_&255),E===1&&(_=a[v.charCodeAt(A)]<<10|a[v.charCodeAt(A+1)]<<4|a[v.charCodeAt(A+2)]>>2,P[j++]=_>>8&255,P[j++]=_&255),P}function b(v){return i[v>>18&63]+i[v>>12&63]+i[v>>6&63]+i[v&63]}function S(v,_,O){for(var T,E=[],P=_;PJ?J:j+P));return T===1?(_=v[O-1],E.push(i[_>>2]+i[_<<4&63]+"==")):T===2&&(_=(v[O-2]<<8)+v[O-1],E.push(i[_>>10]+i[_>>4&63]+i[_<<2&63]+"=")),E.join("")}},{}],9:[function(o,n,s){function i(a,u){this.offset=a,this.nbits=u}s.kBlockLengthPrefixCode=[new i(1,2),new i(5,2),new i(9,2),new i(13,2),new i(17,3),new i(25,3),new i(33,3),new i(41,3),new i(49,4),new i(65,4),new i(81,4),new i(97,4),new i(113,5),new i(145,5),new i(177,5),new i(209,5),new i(241,6),new i(305,6),new i(369,7),new i(497,8),new i(753,9),new i(1265,10),new i(2289,11),new i(4337,12),new i(8433,13),new i(16625,24)],s.kInsertLengthPrefixCode=[new i(0,0),new i(1,0),new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,1),new i(8,1),new i(10,2),new i(14,2),new i(18,3),new i(26,3),new i(34,4),new i(50,4),new i(66,5),new i(98,5),new i(130,6),new i(194,7),new i(322,8),new i(578,9),new i(1090,10),new i(2114,12),new i(6210,14),new i(22594,24)],s.kCopyLengthPrefixCode=[new i(2,0),new i(3,0),new i(4,0),new i(5,0),new i(6,0),new i(7,0),new i(8,0),new i(9,0),new i(10,1),new i(12,1),new i(14,2),new i(18,2),new i(22,3),new i(30,3),new i(38,4),new i(54,4),new i(70,5),new i(102,5),new i(134,6),new i(198,7),new i(326,8),new i(582,9),new i(1094,10),new i(2118,24)],s.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],s.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(o,n,s){function i(u){this.buffer=u,this.pos=0}i.prototype.read=function(u,l,c){this.pos+c>this.buffer.length&&(c=this.buffer.length-this.pos);for(var d=0;dthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(u.subarray(0,l),this.pos),this.pos+=l,l},s.BrotliOutput=a},{}],11:[function(o,n,s){var i=o("./dictionary"),a=0,u=1,l=2,c=3,d=4,m=5,g=6,h=7,w=8,b=9,S=10,x=11,v=12,_=13,O=14,T=15,E=16,P=17,j=18,J=19,A=20;function C(I,N,q){this.prefix=new Uint8Array(I.length),this.transform=N,this.suffix=new Uint8Array(q.length);for(var z=0;z'),new C("",a,`
-`),new C("",c,""),new C("",a,"]"),new C("",a," for "),new C("",O,""),new C("",l,""),new C("",a," a "),new C("",a," that "),new C(" ",S,""),new C("",a,". "),new C(".",a,""),new C(" ",a,", "),new C("",T,""),new C("",a," with "),new C("",a,"'"),new C("",a," from "),new C("",a," by "),new C("",E,""),new C("",P,""),new C(" the ",a,""),new C("",d,""),new C("",a,". The "),new C("",x,""),new C("",a," on "),new C("",a," as "),new C("",a," is "),new C("",h,""),new C("",u,"ing "),new C("",a,`
- `),new C("",a,":"),new C(" ",a,". "),new C("",a,"ed "),new C("",A,""),new C("",j,""),new C("",g,""),new C("",a,"("),new C("",S,", "),new C("",w,""),new C("",a," at "),new C("",a,"ly "),new C(" the ",a," of "),new C("",m,""),new C("",b,""),new C(" ",S,", "),new C("",S,'"'),new C(".",a,"("),new C("",x," "),new C("",S,'">'),new C("",a,'="'),new C(" ",a,"."),new C(".com/",a,""),new C(" the ",a," of the "),new C("",S,"'"),new C("",a,". This "),new C("",a,","),new C(".",a," "),new C("",S,"("),new C("",S,"."),new C("",a," not "),new C(" ",a,'="'),new C("",a,"er "),new C(" ",x," "),new C("",a,"al "),new C(" ",x,""),new C("",a,"='"),new C("",x,'"'),new C("",S,". "),new C(" ",a,"("),new C("",a,"ful "),new C(" ",S,". "),new C("",a,"ive "),new C("",a,"less "),new C("",x,"'"),new C("",a,"est "),new C(" ",S,"."),new C("",x,'">'),new C(" ",a,"='"),new C("",S,","),new C("",a,"ize "),new C("",x,"."),new C("\xC2\xA0",a,""),new C(" ",a,","),new C("",S,'="'),new C("",x,'="'),new C("",a,"ous "),new C("",x,", "),new C("",S,"='"),new C(" ",S,","),new C(" ",x,'="'),new C(" ",x,", "),new C("",x,","),new C("",x,"("),new C("",x,". "),new C(" ",x,"."),new C("",x,"='"),new C(" ",x,". "),new C(" ",S,'="'),new C(" ",x,"='"),new C(" ",S,"='")];s.kTransforms=L,s.kNumTransforms=L.length;function W(I,N){return I[N]<192?(I[N]>=97&&I[N]<=122&&(I[N]^=32),1):I[N]<224?(I[N+1]^=32,2):(I[N+2]^=5,3)}s.transformDictionaryWord=function(I,N,q,z,R){var M=L[R].prefix,re=L[R].suffix,F=L[R].transform,Y=Fz&&(Y=z);for(var ve=0;ve0;){var Pe=W(I,ee);ee+=Pe,z-=Pe}for(var $=0;$typeof Yt<"u"?Yt:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Yt<"u"?Yt:t)[r]}):e)(function(e){if(typeof Yt<"u")return Yt.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Uy=(function(){var e,t,r;return(function(){function o(n,s,i){function a(c,d){if(!s[c]){if(!n[c]){var m=typeof xa=="function"&&xa;if(!d&&m)return m(c,!0);if(u)return u(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var h=s[c]={exports:{}};n[c][0].call(h.exports,function(w){var b=n[c][1][w];return a(b||w)},h,h.exports,o,n,s,i)}return s[c].exports}for(var u=typeof xa=="function"&&xa,l=0;l=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;l[254]=l[254]=1,s.string2buf=function(m){var g,h,w,b,S,x=m.length,v=0;for(b=0;b>>6,g[S++]=128|h&63):h<65536?(g[S++]=224|h>>>12,g[S++]=128|h>>>6&63,g[S++]=128|h&63):(g[S++]=240|h>>>18,g[S++]=128|h>>>12&63,g[S++]=128|h>>>6&63,g[S++]=128|h&63);return g};function d(m,g){if(g<65534&&(m.subarray&&u||!m.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(m,g));for(var h="",w=0;w4){v[w++]=65533,h+=S-1;continue}for(b&=S===2?31:S===3?15:7;S>1&&h1){v[w++]=65533;continue}b<65536?v[w++]=b:(b-=65536,v[w++]=55296|b>>10&1023,v[w++]=56320|b&1023)}return d(v,w)},s.utf8border=function(m,g){var h;for(g=g||m.length,g>m.length&&(g=m.length),h=g-1;h>=0&&(m[h]&192)===128;)h--;return h<0||h===0?g:h+l[m[h]]>g?h:g}},{"./common":1}],3:[function(o,n,s){"use strict";function i(a,u,l,c){for(var d=a&65535|0,m=a>>>16&65535|0,g=0;l!==0;){g=l>2e3?2e3:l,l-=g;do d=d+u[c++]|0,m=m+d|0;while(--g);d%=65521,m%=65521}return d|m<<16|0}n.exports=i},{}],4:[function(o,n,s){"use strict";n.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(o,n,s){"use strict";function i(){for(var l,c=[],d=0;d<256;d++){l=d;for(var m=0;m<8;m++)l=l&1?3988292384^l>>>1:l>>>1;c[d]=l}return c}var a=i();function u(l,c,d,m){var g=a,h=m+d;l^=-1;for(var w=m;w>>8^g[(l^c[w])&255];return l^-1}n.exports=u},{}],6:[function(o,n,s){"use strict";function i(){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}n.exports=i},{}],7:[function(o,n,s){"use strict";var i=30,a=12;n.exports=function(l,c){var d,m,g,h,w,b,S,x,v,_,O,T,E,P,j,J,A,C,L,W,I,N,q,z,R;d=l.state,m=l.next_in,z=l.input,g=m+(l.avail_in-5),h=l.next_out,R=l.output,w=h-(c-l.avail_out),b=h+(l.avail_out-257),S=d.dmax,x=d.wsize,v=d.whave,_=d.wnext,O=d.window,T=d.hold,E=d.bits,P=d.lencode,j=d.distcode,J=(1<>>24,T>>>=L,E-=L,L=C>>>16&255,L===0)R[h++]=C&65535;else if(L&16){W=C&65535,L&=15,L&&(E>>=L,E-=L),E<15&&(T+=z[m++]<>>24,T>>>=L,E-=L,L=C>>>16&255,L&16){if(I=C&65535,L&=15,ES){l.msg="invalid distance too far back",d.mode=i;break e}if(T>>>=L,E-=L,L=h-w,I>L){if(L=I-L,L>v&&d.sane){l.msg="invalid distance too far back",d.mode=i;break e}if(N=0,q=O,_===0){if(N+=x-L,L2;)R[h++]=q[N++],R[h++]=q[N++],R[h++]=q[N++],W-=3;W&&(R[h++]=q[N++],W>1&&(R[h++]=q[N++]))}else{N=h-I;do R[h++]=R[N++],R[h++]=R[N++],R[h++]=R[N++],W-=3;while(W>2);W&&(R[h++]=R[N++],W>1&&(R[h++]=R[N++]))}}else if((L&64)===0){C=j[(C&65535)+(T&(1<>3,m-=W,E-=W<<3,T&=(1<>>24&255)+(k>>>8&65280)+((k&65280)<<8)+((k&255)<<24)}function oe(){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 i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function le(k){var U;return!k||!k.state?_:(U=k.state,k.total_in=k.total_out=U.total=0,k.msg="",U.wrap&&(k.adler=U.wrap&1),U.mode=j,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new i.Buf32(de),U.distcode=U.distdyn=new i.Buf32(Ae),U.sane=1,U.back=-1,S)}function ze(k){var U;return!k||!k.state?_:(U=k.state,U.wsize=0,U.whave=0,U.wnext=0,le(k))}function Ne(k,U){var y,ne;return!k||!k.state||(ne=k.state,U<0?(y=0,U=-U):(y=(U>>4)+1,U<48&&(U&=15)),U&&(U<8||U>15))?_:(ne.window!==null&&ne.wbits!==U&&(ne.window=null),ne.wrap=y,ne.wbits=U,ze(k))}function He(k,U){var y,ne;return k?(ne=new oe,k.state=ne,ne.window=null,y=Ne(k,U),y!==S&&(k.state=null),y):_}function lt(k){return He(k,ie)}var rt=!0,pe,fr;function Ut(k){if(rt){var U;for(pe=new i.Buf32(512),fr=new i.Buf32(32),U=0;U<144;)k.lens[U++]=8;for(;U<256;)k.lens[U++]=9;for(;U<280;)k.lens[U++]=7;for(;U<288;)k.lens[U++]=8;for(c(m,k.lens,0,288,pe,0,k.work,{bits:9}),U=0;U<32;)k.lens[U++]=5;c(g,k.lens,0,32,fr,0,k.work,{bits:5}),rt=!1}k.lencode=pe,k.lenbits=9,k.distcode=fr,k.distbits=5}function qe(k,U,y,ne){var Ie,te=k.state;return te.window===null&&(te.wsize=1<=te.wsize?(i.arraySet(te.window,U,y-te.wsize,te.wsize,0),te.wnext=0,te.whave=te.wsize):(Ie=te.wsize-te.wnext,Ie>ne&&(Ie=ne),i.arraySet(te.window,U,y-ne,Ie,te.wnext),ne-=Ie,ne?(i.arraySet(te.window,U,y-ne,ne,0),te.wnext=ne,te.whave=te.wsize):(te.wnext+=Ie,te.wnext===te.wsize&&(te.wnext=0),te.whave>>8&255,y.check=u(y.check,ct,2,0),B=0,V=0,y.mode=J;break}if(y.flags=0,y.head&&(y.head.done=!1),!(y.wrap&1)||(((B&255)<<8)+(B>>8))%31){k.msg="incorrect header check",y.mode=Q;break}if((B&15)!==P){k.msg="unknown compression method",y.mode=Q;break}if(B>>>=4,V-=4,it=(B&15)+8,y.wbits===0)y.wbits=it;else if(it>y.wbits){k.msg="invalid window size",y.mode=Q;break}y.dmax=1<>8&1),y.flags&512&&(ct[0]=B&255,ct[1]=B>>>8&255,y.check=u(y.check,ct,2,0)),B=0,V=0,y.mode=A;case A:for(;V<32;){if(se===0)break e;se--,B+=ne[te++]<>>8&255,ct[2]=B>>>16&255,ct[3]=B>>>24&255,y.check=u(y.check,ct,4,0)),B=0,V=0,y.mode=C;case C:for(;V<16;){if(se===0)break e;se--,B+=ne[te++]<>8),y.flags&512&&(ct[0]=B&255,ct[1]=B>>>8&255,y.check=u(y.check,ct,2,0)),B=0,V=0,y.mode=L;case L:if(y.flags&1024){for(;V<16;){if(se===0)break e;se--,B+=ne[te++]<>>8&255,y.check=u(y.check,ct,2,0)),B=0,V=0}else y.head&&(y.head.extra=null);y.mode=W;case W:if(y.flags&1024&&(ce=y.length,ce>se&&(ce=se),ce&&(y.head&&(it=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),i.arraySet(y.head.extra,ne,te,ce,it)),y.flags&512&&(y.check=u(y.check,ne,ce,te)),se-=ce,te+=ce,y.length-=ce),y.length))break e;y.length=0,y.mode=I;case I:if(y.flags&2048){if(se===0)break e;ce=0;do it=ne[te+ce++],y.head&&it&&y.length<65536&&(y.head.name+=String.fromCharCode(it));while(it&&ce>9&1,y.head.done=!0),k.adler=y.check=0,y.mode=M;break;case z:for(;V<32;){if(se===0)break e;se--,B+=ne[te++]<>>=V&7,V-=V&7,y.mode=D;break}for(;V<3;){if(se===0)break e;se--,B+=ne[te++]<>>=1,V-=1,B&3){case 0:y.mode=F;break;case 1:if(Ut(y),y.mode=Pe,U===b){B>>>=2,V-=2;break e}break;case 2:y.mode=fe;break;case 3:k.msg="invalid block type",y.mode=Q}B>>>=2,V-=2;break;case F:for(B>>>=V&7,V-=V&7;V<32;){if(se===0)break e;se--,B+=ne[te++]<>>16^65535)){k.msg="invalid stored block lengths",y.mode=Q;break}if(y.length=B&65535,B=0,V=0,y.mode=Y,U===b)break e;case Y:y.mode=Z;case Z:if(ce=y.length,ce){if(ce>se&&(ce=se),ce>Ze&&(ce=Ze),ce===0)break e;i.arraySet(Ie,ne,te,ce,Qe),se-=ce,te+=ce,Ze-=ce,Qe+=ce,y.length-=ce;break}y.mode=M;break;case fe:for(;V<14;){if(se===0)break e;se--,B+=ne[te++]<>>=5,V-=5,y.ndist=(B&31)+1,B>>>=5,V-=5,y.ncode=(B&15)+4,B>>>=4,V-=4,y.nlen>286||y.ndist>30){k.msg="too many length or distance symbols",y.mode=Q;break}y.have=0,y.mode=ee;case ee:for(;y.have>>=3,V-=3}for(;y.have<19;)y.lens[tn[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,At={bits:y.lenbits},Ft=c(d,y.lens,0,19,y.lencode,0,y.work,At),y.lenbits=At.bits,Ft){k.msg="invalid code lengths set",y.mode=Q;break}y.have=0,y.mode=ve;case ve:for(;y.have>>24,ft=$e>>>16&255,dt=$e&65535,!(Be<=V);){if(se===0)break e;se--,B+=ne[te++]<>>=Be,V-=Be,y.lens[y.have++]=dt;else{if(dt===16){for(Wt=Be+2;V>>=Be,V-=Be,y.have===0){k.msg="invalid bit length repeat",y.mode=Q;break}it=y.lens[y.have-1],ce=3+(B&3),B>>>=2,V-=2}else if(dt===17){for(Wt=Be+3;V>>=Be,V-=Be,it=0,ce=3+(B&7),B>>>=3,V-=3}else{for(Wt=Be+7;V>>=Be,V-=Be,it=0,ce=11+(B&127),B>>>=7,V-=7}if(y.have+ce>y.nlen+y.ndist){k.msg="invalid bit length repeat",y.mode=Q;break}for(;ce--;)y.lens[y.have++]=it}}if(y.mode===Q)break;if(y.lens[256]===0){k.msg="invalid code -- missing end-of-block",y.mode=Q;break}if(y.lenbits=9,At={bits:y.lenbits},Ft=c(m,y.lens,0,y.nlen,y.lencode,0,y.work,At),y.lenbits=At.bits,Ft){k.msg="invalid literal/lengths set",y.mode=Q;break}if(y.distbits=6,y.distcode=y.distdyn,At={bits:y.distbits},Ft=c(g,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,At),y.distbits=At.bits,Ft){k.msg="invalid distances set",y.mode=Q;break}if(y.mode=Pe,U===b)break e;case Pe:y.mode=$;case $:if(se>=6&&Ze>=258){k.next_out=Qe,k.avail_out=Ze,k.next_in=te,k.avail_in=se,y.hold=B,y.bits=V,l(k,Me),Qe=k.next_out,Ie=k.output,Ze=k.avail_out,te=k.next_in,ne=k.input,se=k.avail_in,B=y.hold,V=y.bits,y.mode===M&&(y.back=-1);break}for(y.back=0;$e=y.lencode[B&(1<>>24,ft=$e>>>16&255,dt=$e&65535,!(Be<=V);){if(se===0)break e;se--,B+=ne[te++]<>vt)],Be=$e>>>24,ft=$e>>>16&255,dt=$e&65535,!(vt+Be<=V);){if(se===0)break e;se--,B+=ne[te++]<>>=vt,V-=vt,y.back+=vt}if(B>>>=Be,V-=Be,y.back+=Be,y.length=dt,ft===0){y.mode=X;break}if(ft&32){y.back=-1,y.mode=M;break}if(ft&64){k.msg="invalid literal/length code",y.mode=Q;break}y.extra=ft&15,y.mode=Se;case Se:if(y.extra){for(Wt=y.extra;V>>=y.extra,V-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=Oe;case Oe:for(;$e=y.distcode[B&(1<>>24,ft=$e>>>16&255,dt=$e&65535,!(Be<=V);){if(se===0)break e;se--,B+=ne[te++]<>vt)],Be=$e>>>24,ft=$e>>>16&255,dt=$e&65535,!(vt+Be<=V);){if(se===0)break e;se--,B+=ne[te++]<>>=vt,V-=vt,y.back+=vt}if(B>>>=Be,V-=Be,y.back+=Be,ft&64){k.msg="invalid distance code",y.mode=Q;break}y.offset=dt,y.extra=ft&15,y.mode=wt;case wt:if(y.extra){for(Wt=y.extra;V>>=y.extra,V-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){k.msg="invalid distance too far back",y.mode=Q;break}y.mode=Ve;case Ve:if(Ze===0)break e;if(ce=Me-Ze,y.offset>ce){if(ce=y.offset-ce,ce>y.whave&&y.sane){k.msg="invalid distance too far back",y.mode=Q;break}ce>y.wnext?(ce-=y.wnext,wr=y.wsize-ce):wr=y.wnext-ce,ce>y.length&&(ce=y.length),Zr=y.window}else Zr=Ie,wr=Qe-y.offset,ce=y.length;ce>Ze&&(ce=Ze),Ze-=ce,y.length-=ce;do Ie[Qe++]=Zr[wr++];while(--ce);y.length===0&&(y.mode=$);break;case X:if(Ze===0)break e;Ie[Qe++]=y.length,Ze--,y.mode=$;break;case D:if(y.wrap){for(;V<32;){if(se===0)break e;se--,B|=ne[te++]<=1&&$[W]===0;W--);if(I>W&&(I=W),W===0)return T[E++]=1<<24|64<<16|0,T[E++]=1<<24|64<<16|0,j.bits=1,0;for(L=1;L0&&(x===c||W!==1))return-1;for(Se[1]=0,A=1;Au||x===m&&R>l)return 1;for(;;){Ve=A-q,P[C]Pe?(X=Oe[wt+P[C]],D=ee[ve+P[C]]):(X=96,D=0),re=1<>q)+F]=Ve<<24|X<<16|D|0;while(F!==0);for(re=1<>=1;if(re!==0?(M&=re-1,M+=re):M=0,C++,--$[A]===0){if(A===W)break;A=v[_+P[C]]}if(A>I&&(M&Z)!==Y){for(q===0&&(q=I),fe+=L,N=A-q,z=1<u||x===m&&R>l)return 1;Y=M&Z,T[Y]=I<<24|N<<16|fe-E|0}}return M!==0&&(T[fe+M]=A-q<<24|64<<16|0),j.bits=I,0}},{"../utils/common":1}],10:[function(o,n,s){"use strict";n.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(o,n,s){"use strict";function i(){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}n.exports=i},{}],"/lib/inflate.js":[function(o,n,s){"use strict";var i=o("./zlib/inflate"),a=o("./utils/common"),u=o("./utils/strings"),l=o("./zlib/constants"),c=o("./zlib/messages"),d=o("./zlib/zstream"),m=o("./zlib/gzheader"),g=Object.prototype.toString;function h(S){if(!(this instanceof h))return new h(S);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},S||{});var x=this.options;x.raw&&x.windowBits>=0&&x.windowBits<16&&(x.windowBits=-x.windowBits,x.windowBits===0&&(x.windowBits=-15)),x.windowBits>=0&&x.windowBits<16&&!(S&&S.windowBits)&&(x.windowBits+=32),x.windowBits>15&&x.windowBits<48&&(x.windowBits&15)===0&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var v=i.inflateInit2(this.strm,x.windowBits);if(v!==l.Z_OK)throw new Error(c[v]);if(this.header=new m,i.inflateGetHeader(this.strm,this.header),x.dictionary&&(typeof x.dictionary=="string"?x.dictionary=u.string2buf(x.dictionary):g.call(x.dictionary)==="[object ArrayBuffer]"&&(x.dictionary=new Uint8Array(x.dictionary)),x.raw&&(v=i.inflateSetDictionary(this.strm,x.dictionary),v!==l.Z_OK)))throw new Error(c[v])}h.prototype.push=function(S,x){var v=this.strm,_=this.options.chunkSize,O=this.options.dictionary,T,E,P,j,J,A=!1;if(this.ended)return!1;E=x===~~x?x:x===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof S=="string"?v.input=u.binstring2buf(S):g.call(S)==="[object ArrayBuffer]"?v.input=new Uint8Array(S):v.input=S,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new a.Buf8(_),v.next_out=0,v.avail_out=_),T=i.inflate(v,l.Z_NO_FLUSH),T===l.Z_NEED_DICT&&O&&(T=i.inflateSetDictionary(this.strm,O)),T===l.Z_BUF_ERROR&&A===!0&&(T=l.Z_OK,A=!1),T!==l.Z_STREAM_END&&T!==l.Z_OK)return this.onEnd(T),this.ended=!0,!1;v.next_out&&(v.avail_out===0||T===l.Z_STREAM_END||v.avail_in===0&&(E===l.Z_FINISH||E===l.Z_SYNC_FLUSH))&&(this.options.to==="string"?(P=u.utf8border(v.output,v.next_out),j=v.next_out-P,J=u.buf2string(v.output,P),v.next_out=j,v.avail_out=_-j,j&&a.arraySet(v.output,v.output,P,j,0),this.onData(J)):this.onData(a.shrinkBuf(v.output,v.next_out))),v.avail_in===0&&v.avail_out===0&&(A=!0)}while((v.avail_in>0||v.avail_out===0)&&T!==l.Z_STREAM_END);return T===l.Z_STREAM_END&&(E=l.Z_FINISH),E===l.Z_FINISH?(T=i.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===l.Z_OK):(E===l.Z_SYNC_FLUSH&&(this.onEnd(l.Z_OK),v.avail_out=0),!0)},h.prototype.onData=function(S){this.chunks.push(S)},h.prototype.onEnd=function(S){S===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg};function w(S,x){var v=new h(x);if(v.push(S,!0),v.err)throw v.msg||c[v.err];return v.result}function b(S,x){return x=x||{},x.raw=!0,w(S,x)}s.Inflate=h,s.inflate=w,s.inflateRaw=b,s.ungzip=w},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")})();var nV=globalThis.fetch,Sa=class{constructor(e,t={},r){this.type=e,this.detail=t,this.msg=r,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]`}},hC=class{constructor(){this.listeners={}}addEventListener(e,t,r){let o=this.listeners[e]||[];r?o.unshift(t):o.push(t),this.listeners[e]=o}removeEventListener(e,t){let r=this.listeners[e]||[],o=r.findIndex(n=>n===t);o>-1&&(r.splice(o,1),this.listeners[e]=r)}dispatch(e){let t=this.listeners[e.type];if(t)for(let r=0,o=t.length;rString.fromCharCode(t)).join("")}var vC=class{constructor(e,t,r){this.name=(r||e.tag||"").trim(),this.length=e.length,this.start=e.offset,this.offset=0,this.data=t,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach(o=>{let n=o.replace(/get(Big)?/,"").toLowerCase(),s=parseInt(o.replace(/[^\d]/g,""))/8;Object.defineProperty(this,n,{get:()=>this.getValue(o,s)})})}get currentPosition(){return this.start+this.offset}set currentPosition(e){this.start=e,this.offset=0}skip(e=0,t=8){this.offset+=e*t/8}getValue(e,t){let r=this.start+this.offset;this.offset+=t;try{return this.data[e](r)}catch(o){throw console.error("parser",e,t,this),console.error("parser",this.start,this.offset),o}}flags(e){if(e===8||e===16||e===32||e===64)return this[`uint${e}`].toString(2).padStart(e,0).split("").map(t=>t==="1");console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){let e=this.uint32;return yC([e>>24&255,e>>16&255,e>>8&255,e&255])}get fixed(){let e=this.int16,t=Math.round(1e3*this.uint16/65356);return e+t/1e3}get legacyFixed(){let e=this.uint16,t=this.uint16.toString(16).padStart(4,0);return parseFloat(`${e}.${t}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let e=0;for(let t=0;t<5;t++){let r=this.uint8;if(e=e*128+(r&127),r<128)break}return e}get longdatetime(){return new Date(gC+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(){let e=p.uint16,t=[0,1,-2,-1][e>>14],r=e&16383;return t+r/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(e=0,t=0,r=8,o=!1){if(e=e||this.length,e===0)return[];t&&(this.currentPosition=t);let n=`${o?"":"u"}int${r}`,s=[];for(;e--;)s.push(this[n]);return s}},at=class{constructor(e){Object.defineProperty(this,"parser",{enumerable:!1,get:()=>e});let r=e.currentPosition;Object.defineProperty(this,"start",{enumerable:!1,get:()=>r})}load(e){Object.keys(e).forEach(t=>{let r=Object.getOwnPropertyDescriptor(e,t);r.get?this[t]=r.get.bind(this):r.value!==void 0&&(this[t]=r.value)}),this.parser.length&&this.parser.verifyLength()}},Fe=class extends at{constructor(e,t,r){let{parser:o,start:n}=super(new vC(e,t,r));Object.defineProperty(this,"p",{enumerable:!1,get:()=>o}),Object.defineProperty(this,"tableStart",{enumerable:!1,get:()=>n})}};function ue(e,t,r){let o;Object.defineProperty(e,t,{get:()=>o||(o=r(),o),enumerable:!0})}var bC=class extends Fe{constructor(e,t,r){let{p:o}=super({offset:0,length:12},t,"sfnt");this.version=o.uint32,this.numTables=o.uint16,this.searchRange=o.uint16,this.entrySelector=o.uint16,this.rangeShift=o.uint16,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new wC(o)),this.tables={},this.directory.forEach(n=>{let s=()=>r(this.tables,{tag:n.tag,offset:n.offset,length:n.length},t);ue(this.tables,n.tag.trim(),s)})}},wC=class{constructor(e){this.tag=e.tag,this.checksum=e.uint32,this.offset=e.uint32,this.length=e.uint32}},Wy=Uy.inflate||void 0,Gy=void 0,xC=class extends Fe{constructor(e,t,r){let{p:o}=super({offset:0,length:44},t,"woff");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(n=>new SC(o)),CC(this,t,r)}},SC=class{constructor(e){this.tag=e.tag,this.offset=e.uint32,this.compLength=e.uint32,this.origLength=e.uint32,this.origChecksum=e.uint32}};function CC(e,t,r){e.tables={},e.directory.forEach(o=>{ue(e.tables,o.tag.trim(),()=>{let n=0,s=t;if(o.compLength!==o.origLength){let i=t.buffer.slice(o.offset,o.offset+o.compLength),a;if(Wy)a=Wy(new Uint8Array(i));else if(Gy)a=Gy(new Uint8Array(i));else{let u="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(u),new Error(u)}s=new DataView(a.buffer)}else n=o.offset;return r(e.tables,{tag:o.tag,offset:n,length:o.origLength},s)})})}var Yy=Hy,qy=void 0,_C=class extends Fe{constructor(e,t,r){let{p:o}=super({offset:0,length:48},t,"woff2");this.signature=o.tag,this.flavor=o.uint32,this.length=o.uint32,this.numTables=o.uint16,o.uint16,this.totalSfntSize=o.uint32,this.totalCompressedSize=o.uint32,this.majorVersion=o.uint16,this.minorVersion=o.uint16,this.metaOffset=o.uint32,this.metaLength=o.uint32,this.metaOrigLength=o.uint32,this.privOffset=o.uint32,this.privLength=o.uint32,o.verifyLength(),this.directory=[...new Array(this.numTables)].map(a=>new RC(o));let n=o.currentPosition;this.directory[0].offset=0,this.directory.forEach((a,u)=>{let l=this.directory[u+1];l&&(l.offset=a.offset+(a.transformLength!==void 0?a.transformLength:a.origLength))});let s,i=t.buffer.slice(n);if(Yy)s=Yy(new Uint8Array(i));else if(qy)s=new Uint8Array(qy(i));else{let a="no brotli decoder available to decode WOFF2 font";throw e.onerror&&e.onerror(a),new Error(a)}TC(this,s,r)}},RC=class{constructor(e){this.flags=e.uint8;let t=this.tagNumber=this.flags&63;t===63?this.tag=e.tag:this.tag=EC(t);let o=(this.transformVersion=(this.flags&192)>>6)!==0;(this.tag==="glyf"||this.tag==="loca")&&(o=this.transformVersion!==3),this.origLength=e.uint128,o&&(this.transformLength=e.uint128)}};function TC(e,t,r){e.tables={},e.directory.forEach(o=>{ue(e.tables,o.tag.trim(),()=>{let n=o.offset,s=n+(o.transformLength?o.transformLength:o.origLength),i=new DataView(t.slice(n,s).buffer);try{return r(e.tables,{tag:o.tag,offset:0,length:o.origLength},i)}catch(a){console.error(a)}})})}function EC(e){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"][e&63]}var ev={},tv=!1;Promise.all([Promise.resolve().then(function(){return t_}),Promise.resolve().then(function(){return o_}),Promise.resolve().then(function(){return s_}),Promise.resolve().then(function(){return l_}),Promise.resolve().then(function(){return u_}),Promise.resolve().then(function(){return h_}),Promise.resolve().then(function(){return y_}),Promise.resolve().then(function(){return b_}),Promise.resolve().then(function(){return O_}),Promise.resolve().then(function(){return j_}),Promise.resolve().then(function(){return E2}),Promise.resolve().then(function(){return O2}),Promise.resolve().then(function(){return I2}),Promise.resolve().then(function(){return V2}),Promise.resolve().then(function(){return B2}),Promise.resolve().then(function(){return z2}),Promise.resolve().then(function(){return W2}),Promise.resolve().then(function(){return Y2}),Promise.resolve().then(function(){return Z2}),Promise.resolve().then(function(){return K2}),Promise.resolve().then(function(){return Q2}),Promise.resolve().then(function(){return eR}),Promise.resolve().then(function(){return oR}),Promise.resolve().then(function(){return iR}),Promise.resolve().then(function(){return aR}),Promise.resolve().then(function(){return cR}),Promise.resolve().then(function(){return fR}),Promise.resolve().then(function(){return pR}),Promise.resolve().then(function(){return hR}),Promise.resolve().then(function(){return vR}),Promise.resolve().then(function(){return _R}),Promise.resolve().then(function(){return PR}),Promise.resolve().then(function(){return FR}),Promise.resolve().then(function(){return NR}),Promise.resolve().then(function(){return VR}),Promise.resolve().then(function(){return BR}),Promise.resolve().then(function(){return HR}),Promise.resolve().then(function(){return WR}),Promise.resolve().then(function(){return XR}),Promise.resolve().then(function(){return JR}),Promise.resolve().then(function(){return eT})]).then(e=>{e.forEach(t=>{let r=Object.keys(t)[0];ev[r]=t[r]}),tv=!0});function PC(e,t,r){let o=t.tag.replace(/[^\w\d]/g,""),n=ev[o];return n?new n(t,r,e):(console.warn(`lib-font has no definition for ${o}. The table was skipped.`),{})}function OC(){let e=0;function t(r,o){if(!tv)return e>10?o(new Error("loading took too long")):(e++,setTimeout(()=>t(r),250));r(PC)}return new Promise((r,o)=>t(r))}function kC(e,t){let r=e.lastIndexOf("."),o=(e.substring(r+1)||"").toLowerCase(),n={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[o];if(n)return n;let s={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."}[o];if(s||(s=`${e} is not a known webfont format.`),t)throw new Error(s);console.warn(`Could not load font: ${s}`)}async function FC(e,t,r={}){if(!globalThis.document)return;let o=kC(t,r.errorOnStyle);if(!o)return;let n=document.createElement("style");n.className="injected-by-Font-js";let s=[];return r.styleRules&&(s=Object.entries(r.styleRules).map(([i,a])=>`${i}: ${a};`)),n.textContent=`
+`}var NR={mobile:"480px",tablet:"782px"},FR=/^(\d+|\d*\.\d+)(px|em|rem)$/,aM=16;function sM(e){return"mobile"in e||"tablet"in e}function lM(e){return!e||typeof e!="object"?{}:sM(e)?e:e.settings?.viewport??{}}function dM(e){return typeof e=="string"&&FR.test(e.trim())}function w_(e){if(typeof e=="number")return e;if(typeof e!="string")return;let t=e.trim().match(FR);if(!t)return;let r=Number.parseFloat(t[1]);return t[2]==="px"?r:r*aM}function v_(e){let t=lM(e),r={},n={};Object.keys(NR).forEach(s=>{let l=s,d=t[l],c=w_(d);c!==void 0&&dM(d)&&(r[l]=d.trim(),n[l]=c)});let i=Object.keys(r);if(!i.length)return{...NR};if(i.length===1)return r;let o=r.mobile,a=r.tablet;return n.mobile>=n.tablet?{mobile:o}:{mobile:o,tablet:a}}function LR(e){let t=v_(e),r={};return t.mobile&&(r["@mobile"]=`@media (width <= ${t.mobile})`),t.tablet&&(r["@tablet"]=t.mobile?`@media (${t.mobile} < width <= ${t.tablet})`:`@media (width <= ${t.tablet})`),r}function Kp(e,t,r,{resolveRefs:n=!0}={}){if(!e?.styles?.blocks?.[t]?.variations?.[r])return;let i=a=>{Object.keys(a).forEach(s=>{let l=a[s];if(typeof l=="object"&&l!==null)if(l.ref!==void 0)if(typeof l.ref!="string"||l.ref.trim()==="")delete a[s];else{let d=Jt(e,l.ref);d!=null?a[s]=d:delete a[s]}else i(l),Object.keys(l).length===0&&delete a[s]})},o=JSON.parse(JSON.stringify(e.styles.blocks[t].variations[r]));return n&&i(o),o}var S_="default";function jR(e){let t=e?.viewport,r=e?.pseudoState;return(!t||t===S_)&&(!r||r===S_)}function cM(e){return jR(e)?[]:[e.viewport,e.pseudoState].filter(t=>!!t&&t!==S_)}function uM(e,t){let r=cM(t);return r.length?Jt(e,r):e}var pM=new Set(["blocks","variations","css"]),y_=Object.freeze({value:{},sources:{}}),fM={root:{layer:"root"},element:{layer:"element"},block:{layer:"block"},blockVariation:{layer:"blockVariation"}};function bo(e){let t=fM[e];return t?{...t}:null}function _o(e,t){return!e||!t?null:{styles:e,source:t}}function mM(e){return e.join(".")}function gM(e){return{...e}}function BR(e){return e===""||e===null||typeof e=="object"&&!Array.isArray(e)&&Object.keys(e).length===0}function x_(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e.ref=="string"}function wo(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let r of Object.keys(e))if(!pM.has(r)){if(r==="elements"){e.elements&&typeof e.elements=="object"&&(t.elements=e.elements);continue}BR(e[r])||(t[r]=e[r])}return Object.keys(t).length===0?null:t}var zR=new Set(["backgroundImage"]);function HR(e,t,r,n,i,o=[]){if(!t||typeof t!="object"||Array.isArray(t))return e;for(let a of Object.keys(t)){let s=t[a];if(BR(s))continue;if(x_(s)){if(s.ref.trim()==="")continue;let d=Jt(r,s.ref);if(d==null||x_(d))continue;s=d}let l=[...o,a];if(!zR.has(a)&&s!==null&&typeof s=="object"&&!Array.isArray(s)&&!x_(s)){let d=e[a]&&typeof e[a]=="object"&&!Array.isArray(e[a])?e[a]:{};e[a]=HR({...d},s,r,n,i,l)}else e[a]=zR.has(a)&&s!==null&&typeof s=="object"&&!Array.isArray(s)?{...s}:s,n&&i&&(i[mM(l)]=gM(n))}return e}function qp(e,t){if(!e)return null;let r=uM(e,t);return r&&typeof r=="object"&&!Array.isArray(r)?r:null}var hM=["color.background","color.gradient","background","spacing","dimensions","border","shadow","filter"];function bM(e){return e.startsWith("elements.")?!1:hM.some(t=>e===t||e.startsWith(`${t}.`))}function UR(e,t){if(!e||typeof e!="object")return;let[r,...n]=t;if(n.length===0){delete e[r];return}let i=e[r];i&&typeof i=="object"&&(UR(i,n),Object.keys(i).length===0&&delete e[r])}function _M(e,t){for(let r of Object.keys(t))t[r].layer==="root"&&bM(r)&&(UR(e,r.split(".")),delete t[r])}function wM(e,t,r){let n=e?.background?.backgroundImage;if(!n)return;let i=u_(n,{...t,_links:r??void 0});i!==void 0&&(e.background.backgroundImage=i)}function VR(e,{blockName:t,variationName:r=null,elements:n=null,viewport:i=null,pseudoState:o=null}={}){if(!e||!e.styles||!t)return y_;let a=e.styles,s={viewport:i,pseudoState:o},l=a,d=a.blocks?.[t]??null,c=(n??[]).map(_=>a.elements?.[_]??null).filter(_=>!!_),u=r?Kp(e,t,r)??null:null,m=[_o(wo(l),bo("root")),...c.map(_=>_o(wo(_),bo("element"))),d?_o(wo(d),bo("block")):null,u?_o(wo(u),bo("blockVariation")):null];jR(s)||m.push(_o(wo(qp(l,s)),bo("root")),...c.map(_=>_o(wo(qp(_,s)),bo("element"))),d?_o(wo(qp(d,s)),bo("block")):null,u?_o(wo(qp(u,s)),bo("blockVariation")):null);let g=m.filter(Boolean);if(g.length===0)return y_;let h={},y=g.reduce((_,v)=>HR(_,v.styles,e,v.source,h),{});return _M(y,h),wM(y,e,e._links??null),{value:y,sources:h}}var vM={},DR=new WeakMap;function GR(e,t={}){let r=e?.styles;if(!r||typeof r!="object")return VR(e,t);let n=DR.get(r);n||(n=new WeakMap,DR.set(r,n));let i=e?._links??vM,o=n.get(i);o||(o=new Map,n.set(i,o));let a=`${t.elements?.join(",")??""}:${t.viewport??""}:${t.pseudoState??""}`,s=(t.blockName||"")+""+(t.variationName||"")+""+a;if(o.has(s))return o.get(s);let l=VR(e,t);return o.set(s,l),l}var WR=f(id(),1),{lock:YR,unlock:s_e}=(0,WR.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-engine");var ws={};YR(ws,{getResponsiveMediaQueries:LR,getViewportBreakpoints:v_,getViewportBreakpointValueInPixels:w_,getDuotoneFilter:AR,getDuotoneStylesheet:MR,getDuotoneUnsetStylesheet:OR,resolveStyle:GR,getVariationStyle:Kp});var R_=f(Re(),1);var XR=f(Re(),1),Qt=(0,XR.createContext)({user:{styles:{},settings:{}},base:{styles:{},settings:{}},merged:{styles:{},settings:{}},onChange:()=>{},fontLibraryEnabled:!1});var KR=f(z(),1);function bd({children:e,value:t,baseValue:r,onChange:n,fontLibraryEnabled:i}){let o=(0,R_.useMemo)(()=>ra(r,t),[r,t]),a=(0,R_.useMemo)(()=>({user:t,base:r,merged:o,onChange:n,fontLibraryEnabled:i}),[t,r,o,n,i]);return(0,KR.jsx)(Qt.Provider,{value:a,children:e})}var aa=f(je(),1),u5=f(De(),1);var NM=f(Lr(),1),FM=f(un(),1);var qR=f(z(),1);function C_({className:e,...t}){return(0,qR.jsx)(ql,{className:ve(e,"global-styles-ui-icon-with-current-color"),...t})}var vo=f(je(),1);var ia=f(z(),1);function yM({icon:e,children:t,...r}){return(0,ia.jsxs)(vo.__experimentalItem,{...r,children:[e&&(0,ia.jsxs)(vo.__experimentalHStack,{justify:"flex-start",children:[(0,ia.jsx)(C_,{icon:e,size:24}),(0,ia.jsx)(vo.FlexItem,{children:t})]}),!e&&t]})}function Tn(e){return(0,ia.jsx)(vo.Navigator.Button,{as:yM,...e})}var RM=f(je(),1);var CM=f(De(),1),t5=f(Sr(),1);var Pn=f(Re(),1),$R=f(Lr(),1),e5=f(un(),1),E_=f(De(),1);var Ft=f(De(),1);var ZR=f(id(),1),{lock:M_e,unlock:Tt}=(0,ZR.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/global-styles-ui");var{getViewportBreakpoints:L_e}=Tt(ws),z_e={link:[{value:":link",label:(0,Ft.__)("Link")},{value:":any-link",label:(0,Ft.__)("Any Link")},{value:":visited",label:(0,Ft.__)("Visited")},{value:":hover",label:(0,Ft.__)("Hover")},{value:":focus",label:(0,Ft.__)("Focus")},{value:":focus-visible",label:(0,Ft.__)("Focus-visible")},{value:":active",label:(0,Ft.__)("Active")}],button:[{value:":link",label:(0,Ft.__)("Link")},{value:":any-link",label:(0,Ft.__)("Any Link")},{value:":visited",label:(0,Ft.__)("Visited")},{value:":hover",label:(0,Ft.__)("Hover")},{value:":focus",label:(0,Ft.__)("Focus")},{value:":focus-visible",label:(0,Ft.__)("Focus-visible")},{value:":active",label:(0,Ft.__)("Active")}]},V_e={"core/button":[{value:":hover",label:(0,Ft.__)("Hover")},{value:":focus",label:(0,Ft.__)("Focus")},{value:":focus-visible",label:(0,Ft.__)("Focus-visible")},{value:":active",label:(0,Ft.__)("Active")}],"core/navigation-link":[{value:":hover",label:(0,Ft.__)("Hover")},{value:":focus",label:(0,Ft.__)("Focus")},{value:":focus-visible",label:(0,Ft.__)("Focus-visible")},{value:":active",label:(0,Ft.__)("Active")}]},D_e=[{value:"@tablet",label:(0,Ft.__)("Tablet")},{value:"@mobile",label:(0,Ft.__)("Mobile")}];function k_(e,t){if(!t?.length||typeof e!="object"||!e||!Object.keys(e).length)return e;for(let r in e)t.includes(r)?delete e[r]:typeof e[r]=="object"&&k_(e[r],t);return e}var Zp=(e,t)=>{if(!e||!t?.length)return{};let r={};return Object.keys(e).forEach(n=>{if(t.includes(n))r[n]=e[n];else if(typeof e[n]=="object"){let i=Zp(e[n],t);Object.keys(i).length&&(r[n]=i)}}),r};function _d(e,t){let r=Zp(structuredClone(e),t);return fd(r,e)}function JR(e,t){if(!Array.isArray(e)||!t)return null;let n=t.replace("var(","").replace(")","")?.split("--").slice(-1)[0];return e.find(i=>i.slug===n)}function QR(e){let t=e?.settings?.typography?.fontFamilies?.theme,r=e?.settings?.typography?.fontFamilies?.custom,n=[];t&&r?n=[...t,...r]:t?n=t:r&&(n=r);let i=e?.styles?.typography?.fontFamily,o=JR(n,i),a=e?.styles?.elements?.heading?.typography?.fontFamily,s;return a?s=JR(n,e?.styles?.elements?.heading?.typography?.fontFamily):s=o,[o,s]}function Rt(e,t,r="merged",n=!0,i){let{user:o,base:a,merged:s,onChange:l}=(0,Pn.useContext)(Qt),d=i?.split(".").filter(Boolean)??[],c=d.find(_=>_.startsWith(":")),u=d.filter(_=>!_.startsWith(":")).join("."),m=[e,u].filter(Boolean).join("."),g=s;r==="base"?g=a:r==="user"&&(g=o);let h=(0,Pn.useMemo)(()=>{let _=Gp(g,m,t,n);return c?_?.[c]??{}:_},[g,m,t,n,c]),y=(0,Pn.useCallback)(_=>{let v=_;c&&(v={...Gp(o,m,t,!1),[c]:_});let x=p_(o,m,v,t);l(x)},[o,l,m,t,c]);return[h,y]}function _t(e,t,r="merged"){let{user:n,base:i,merged:o,onChange:a}=(0,Pn.useContext)(Qt),s=o;r==="base"?s=i:r==="user"&&(s=n);let l=(0,Pn.useMemo)(()=>l_(s,e,t),[s,e,t]),d=(0,Pn.useCallback)(c=>{let u=d_(n,e,c,t);a(u)},[n,a,e,t]);return[l,d]}var xM=[];function SM({title:e,settings:t,styles:r}){return e===(0,E_.__)("Default")||Object.keys(t||{}).length>0||Object.keys(r||{}).length>0}function Jp(e=[]){let{variationsFromTheme:t}=(0,$R.useSelect)(n=>({variationsFromTheme:n(e5.store).__experimentalGetCurrentThemeGlobalStylesVariations?.()||xM}),[]),{user:r}=(0,Pn.useContext)(Qt);return(0,Pn.useMemo)(()=>{let n=structuredClone(r),i=k_(n,e);i.title=(0,E_.__)("Default");let o=t.filter(s=>_d(s,e)).map(s=>ra(i,s)),a=[i,...o];return a?.length?a.filter(SM):[]},[e,r,t])}var T_=f(z(),1),{useHasDimensionsPanel:K_e,useHasTypographyPanel:q_e,useHasColorPanel:Z_e,useSettingsForBlockElement:J_e,useHasBackgroundPanel:Q_e}=Tt(t5.privateApis);var oi=f(je(),1);function vs(){let[e="black"]=Rt("color.text"),[t="white"]=Rt("color.background"),[r=e]=Rt("elements.h1.color.text"),[n=r]=Rt("elements.link.color.text"),[i=n]=Rt("elements.button.color.background"),[o]=_t("color.palette.core")||[],[a]=_t("color.palette.theme")||[],[s]=_t("color.palette.custom")||[],l=(a??[]).concat(s??[]).concat(o??[]),d=l.filter(({color:m})=>m===e),c=l.filter(({color:m})=>m===i),u=d.concat(c).concat(l).filter(({color:m})=>m!==t).slice(0,2);return{paletteColors:l,highlightedColors:u}}var o5=f(Re(),1),a5=f(je(),1),O_=f(De(),1);function kM(e,t){return t.length===0?null:(t.sort((r,n)=>Math.abs(e-r)-Math.abs(e-n)),t[0])}var EM={normal:400,bold:700};function r5(e){return e!==void 0&&Number.isFinite(e)&&e>=1&&e<=1e3}function P_(e){let t=String(e??"").trim().toLowerCase().split(/\s+/).filter(Boolean).map(i=>EM[i]??Number(i)),[r,n]=t;return r5(r)?t.length!==2||!r5(n)?String(r):String(Math.min(Math.max(400,r),n)):"400"}function n5(e){let t=/^(?!generic\([ a-zA-Z\-]+\)$)(?!var\(\s*--[\w-]+\s*\)$)(?!^[a-zA-Z\-]+$).+/,r=e.trim(),n=i=>(i=i.trim(),i.match(t)?(i=i.replace(/^["']|["']$/g,""),`"${i}"`):i);return r.includes(",")?r.split(",").map(n).filter(i=>i!=="").join(", "):n(r)}function I_(e){if(!e)return"";let t=e.trim();return t.includes(",")&&(t=(t.split(",").find(r=>r.trim()!=="")??"").trim()),t=t.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(t=`"${t}"`),t}function ys(e){let t={fontFamily:n5(e.fontFamily)};if(!("fontFace"in e)||!Array.isArray(e.fontFace))return t.fontWeight="400",t.fontStyle="normal",t;if(e.fontFace){let r=e.fontFace.filter(n=>n?.fontStyle&&n.fontStyle.toLowerCase()==="normal");if(r.length>0){t.fontStyle="normal";let n=r.map(i=>Number(P_(i.fontWeight)));t.fontWeight=String(kM(400,n)??400)}else t.fontStyle=e.fontFace.length&&e.fontFace[0].fontStyle||"normal",t.fontWeight=e.fontFace.length&&P_(e.fontFace[0].fontWeight)||"400"}return t}function i5(e){return{fontFamily:n5(e.fontFamily),fontStyle:e.fontStyle||"normal",fontWeight:P_(e.fontWeight)}}var wd=f(z(),1);function Qp({fontSize:e,variation:t}){let{base:r}=(0,o5.useContext)(Qt),n=r;t&&(n={...r,...t});let[i]=Rt("color.text"),[o,a]=QR(n),s=o?ys(o):{},l=a?ys(a):{};return i&&(s.color=i,l.color=i),e&&(s.fontSize=e,l.fontSize=e),(0,wd.jsxs)(a5.__unstableMotion.div,{animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"},style:{textAlign:"center",lineHeight:1},children:[(0,wd.jsx)("span",{style:l,children:(0,O_._x)("A","Uppercase letter A")}),(0,wd.jsx)("span",{style:s,children:(0,O_._x)("a","Lowercase letter A")})]})}var s5=f(je(),1);var l5=f(z(),1);function d5({normalizedColorSwatchSize:e,ratio:t}){let{highlightedColors:r}=vs(),n=e*t;return r.map(({slug:i,color:o},a)=>(0,l5.jsx)(s5.__unstableMotion.div,{style:{height:n,width:n,background:o,borderRadius:n/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:a===1?.2:.1}},`${i}-${a}`))}var c5=f(je(),1),xs=f($n(),1),oa=f(Re(),1);var Oi=f(z(),1),M_=248,A_=152,TM={leading:!0,trailing:!0};function PM({children:e,label:t,isFocused:r,withHoverView:n}){let[i="white"]=Rt("color.background"),[o]=Rt("color.gradient"),a=(0,xs.useReducedMotion)(),[s,l]=(0,oa.useState)(!1),[d,{width:c}]=(0,xs.useResizeObserver)(),[u,m]=(0,oa.useState)(c),[g,h]=(0,oa.useState)(),y=(0,xs.useThrottle)(m,250,TM);(0,oa.useLayoutEffect)(()=>{c&&y(c)},[c,y]),(0,oa.useLayoutEffect)(()=>{let b=u?u/M_:1,w=b-(g||0);(Math.abs(w)>.1||!g)&&h(b)},[u,g]);let _=c?c/M_:1,v=g||_,x=!!c;return(0,Oi.jsxs)(Oi.Fragment,{children:[(0,Oi.jsx)("div",{style:{position:"relative"},children:d}),!x&&(0,Oi.jsx)(cd,{className:"global-styles-ui-preview__wrapper",style:{aspectRatio:M_/A_}}),x&&(0,Oi.jsx)("div",{className:ve("global-styles-ui-preview__wrapper",{"is-hoverable":n}),style:{height:A_*v},onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),tabIndex:-1,children:(0,Oi.jsx)(c5.__unstableMotion.div,{style:{height:A_*v,width:"100%",background:o??i},initial:"start",animate:(s||r)&&!a&&t?"hover":"start",children:[].concat(e).map((b,w)=>b({ratio:v,key:w}))})})]})}var Ss=PM;var Vr=f(z(),1),IM={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},OM={hover:{opacity:1},start:{opacity:.5}},MM={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};function AM({label:e,isFocused:t,withHoverView:r,variation:n}){let[i]=Rt("typography.fontWeight"),[o="serif"]=Rt("typography.fontFamily"),[a=o]=Rt("elements.h1.typography.fontFamily"),[s=i]=Rt("elements.h1.typography.fontWeight"),[l="black"]=Rt("color.text"),[d=l]=Rt("elements.h1.color.text"),{paletteColors:c}=vs();return(0,Vr.jsxs)(Ss,{label:e,isFocused:t,withHoverView:r,children:[({ratio:u,key:m})=>(0,Vr.jsx)(oi.__unstableMotion.div,{variants:IM,style:{height:"100%",overflow:"hidden"},children:(0,Vr.jsxs)(oi.__experimentalHStack,{spacing:10*u,justify:"center",style:{height:"100%",overflow:"hidden"},children:[(0,Vr.jsx)(Qp,{fontSize:65*u,variation:n}),(0,Vr.jsx)(oi.__experimentalVStack,{spacing:4*u,children:(0,Vr.jsx)(d5,{normalizedColorSwatchSize:32,ratio:u})})]})},m),({key:u})=>(0,Vr.jsx)(oi.__unstableMotion.div,{variants:r?OM:void 0,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1},children:(0,Vr.jsx)(oi.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"},children:c.slice(0,4).map(({color:m},g)=>(0,Vr.jsx)("div",{style:{height:"100%",background:m,flexGrow:1}},g))})},u),({ratio:u,key:m})=>(0,Vr.jsx)(oi.__unstableMotion.div,{variants:MM,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0},children:(0,Vr.jsx)(oi.__experimentalVStack,{spacing:3*u,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*u,boxSizing:"border-box"},children:e&&(0,Vr.jsx)("div",{style:{fontSize:40*u,fontFamily:a,color:d,fontWeight:s,lineHeight:"1em",textAlign:"center"},children:e})})},m)]})}var N_=AM;var p5=f(z(),1);var T5=f(ta(),1),In=f(De(),1),ai=f(je(),1);var P5=f(Lr(),1),Jr=f(Re(),1),tf=f(Sr(),1),I5=f($n(),1);import{speak as JM}from"@wordpress/a11y";var f5=f(ta(),1),m5=f(Lr(),1),LM=f(je(),1);var zM=f(z(),1);function VM(e,t){return e?.filter(r=>r.source==="block"||t.includes(r.name))||[]}function F_(e){let t=(0,m5.useSelect)(i=>{let{getBlockStyles:o}=i(f5.store);return o(e)},[e]),[r]=Rt("variations",e),n=Object.keys(r??{});return VM(t,n)}var yo=f(je(),1),g5=f(De(),1);var h5=f(Sr(),1);var b5=f(z(),1),{StateControl:Iwe,StateControlBadges:Owe}=Tt(h5.privateApis);var bt=f(De(),1),R5=f(Re(),1),C5=f(je(),1),k5=f(Sr(),1);var DM=f(De(),1),jM=f(Re(),1),BM=f(Lr(),1),HM=f(ta(),1),$p=f(Sr(),1);var _5=f(z(),1);var ZM=f(ta(),1),x5=f(Sr(),1),L_=f(Re(),1),z_=f(je(),1),S5=f(De(),1);var UM=f(Sr(),1),w5=f(ta(),1),GM=f(je(),1),WM=f(Re(),1);var YM=f(z(),1),{getViewportBreakpoints:Dwe,getViewportBreakpointValueInPixels:jwe}=Tt(ws);var v5=f(je(),1),y5=f(z(),1);function Rr({children:e,level:t=2}){return(0,y5.jsx)(v5.__experimentalHeading,{className:"global-styles-ui-subtitle",level:t,children:e})}var V_=f(z(),1);var{useHasDimensionsPanel:eve,useHasTypographyPanel:tve,useHasBorderPanel:rve,useSettingsForBlockElement:nve,useHasColorPanel:ive,useHasFiltersPanel:ove,useHasImageSettingsPanel:ave,useHasBackgroundPanel:sve,BackgroundPanel:lve,BorderPanel:dve,ColorPanel:cve,TypographyPanel:uve,DimensionsPanel:pve,FiltersPanel:fve,ImageSettingsPanel:mve,AdvancedPanel:gve}=Tt(x5.privateApis);var D_=f(z(),1),{useSettingsForBlockElement:kve,useHasBackgroundPanel:Eve,useHasBorderPanel:Tve,useHasDimensionsPanel:Pve,useHasTypographyPanel:Ive,BackgroundPanel:Ove,BorderPanel:Mve,DimensionsPanel:Ave,TypographyPanel:Nve,AdvancedPanel:Fve}=Tt(k5.privateApis),j_={text:{description:(0,bt.__)("Manage the fonts used on the site."),title:(0,bt.__)("Text")},link:{description:(0,bt.__)("Manage the appearance of links."),title:(0,bt.__)("Link")},caption:{description:(0,bt.__)("Manage the appearance of captions."),title:(0,bt.__)("Caption")},cite:{description:(0,bt.__)("Manage the appearance of citations."),title:(0,bt.__)("Citation")},heading:{description:(0,bt.__)("Manage the appearance of all headings."),title:(0,bt.__)("All headings")},h1:{description:(0,bt.__)("Manage the appearance of level 1 headings."),title:(0,bt.__)("Heading 1")},h2:{description:(0,bt.__)("Manage the appearance of level 2 headings."),title:(0,bt.__)("Heading 2")},h3:{description:(0,bt.__)("Manage the appearance of level 3 headings."),title:(0,bt.__)("Heading 3")},h4:{description:(0,bt.__)("Manage the appearance of level 4 headings."),title:(0,bt.__)("Heading 4")},h5:{description:(0,bt.__)("Manage the appearance of level 5 headings."),title:(0,bt.__)("Heading 5")},h6:{description:(0,bt.__)("Manage the appearance of level 6 headings."),title:(0,bt.__)("Heading 6")},textInput:{description:(0,bt.__)("Manage the appearance of inputs."),title:(0,bt.__)("Input")},select:{description:(0,bt.__)("Manage the appearance of selects."),title:(0,bt.__)("Select")},button:{description:(0,bt.__)("Manage the appearance of buttons."),title:(0,bt.__)("Button (element)")}};var Gt=f(z(),1),{useHasDimensionsPanel:QM,useHasTypographyPanel:$M,useHasBorderPanel:eA,useSettingsForBlockElement:tA,useHasColorPanel:rA,useHasBackgroundPanel:nA,searchItems:iA}=Tt(tf.privateApis),oA=[{title:(0,In.__)("Elements"),elements:["link","caption","cite"]},{title:(0,In.__)("Headings"),elements:["heading","h1","h2","h3","h4","h5","h6"]},{title:(0,In.__)("Form controls"),elements:["textInput","select","button"]}];function ef(e){return e==null?!1:Array.isArray(e)?e.length>0:typeof e=="object"?Object.values(e).some(ef):!0}function aA(e,t){return ef(e?.styles?.blocks?.[t])||ef(e?.settings?.blocks?.[t])}function sA(){let e=(0,P5.useSelect)(i=>i(T5.store).getBlockTypes(),[]),t=(i,o)=>{let{core:a,noncore:s}=i;return(o.name.startsWith("core/")?a:s).push(o),i},{core:r,noncore:n}=e.reduce(t,{core:[],noncore:[]});return[...r,...n]}function lA(e){let[t]=_t("",e),r=tA(t,e),n=$M(r),i=rA(r),o=nA(r),a=eA(r),s=QM(r),l=a||s,d=!!F_(e)?.length;return n||i||o||l||d}function dA({block:e}){return lA(e.name)?(0,Gt.jsx)(Tn,{path:"/blocks/"+encodeURIComponent(e.name),children:(0,Gt.jsxs)(ai.__experimentalHStack,{justify:"flex-start",spacing:2,children:[(0,Gt.jsx)(tf.BlockIcon,{className:"global-styles-ui-block-types-item__icon",icon:e.icon}),(0,Gt.jsx)(ai.FlexItem,{children:e.title})]})}):null}function cA({element:e}){return(0,Gt.jsx)(Tn,{path:"/blocks/elements/"+e,children:j_[e].title})}function E5({title:e,children:t}){return(0,Gt.jsxs)("div",{className:"global-styles-ui-block-types-group",children:[(0,Gt.jsx)("div",{className:"global-styles-ui-block-types-group__title",children:(0,Gt.jsx)(Rr,{level:3,children:e})}),t]})}function uA({filterValue:e,styleFilter:t}){let r=t==="customized"&&!e?(0,In.__)("You haven't customized any blocks or elements yet."):(0,In.__)("No results found.");return(0,Gt.jsx)(ai.__experimentalText,{align:"center",as:"p",className:"global-styles-ui-block-types-item-list__no-results",children:r})}function pA(e,t,r){let n=e.trim().toLowerCase();return oA.map(i=>({...i,elements:i.elements.filter(o=>(!n||[j_[o].title,o,i.title].join(" ").toLowerCase().includes(n))&&(t!=="customized"||r.has(o)))})).filter(i=>i.elements.length>0)}function fA({filterValue:e,styleFilter:t}){let r=sA(),n=(0,I5.useDebounce)(JM,500),{user:i}=(0,Jr.useContext)(Qt),o=(0,Jr.useMemo)(()=>{let g=new Set;return[...Object.keys(i?.styles?.blocks??{}),...Object.keys(i?.settings?.blocks??{})].forEach(y=>{aA(i,y)&&g.add(y)}),g},[i]),a=(0,Jr.useMemo)(()=>{let g=new Set;return Object.entries(i?.styles?.elements??{}).forEach(([h,y])=>{ef(y)&&g.add(h)}),g},[i]),s=pA(e,t,a),l=iA(r,e),d=t==="customized"?l.filter(g=>o.has(g.name)):l,c=(0,Jr.useRef)(null),u=s.reduce((g,h)=>g+h.elements.length,0),m=d.length>0;return(0,Jr.useEffect)(()=>{if(!e&&t==="all")return;let g=m&&c.current?.childElementCount||0,h=u+g,y=(0,In.sprintf)((0,In._n)("%d result found.","%d results found.",h),h);n(y,"polite")},[e,t,m,u,n]),!u&&!m?(0,Gt.jsx)(uA,{filterValue:e,styleFilter:t}):(0,Gt.jsxs)(Gt.Fragment,{children:[s.map(g=>(0,Gt.jsx)(E5,{title:g.title,children:(0,Gt.jsx)(ai.__experimentalItemGroup,{children:g.elements.map(h=>(0,Gt.jsx)(cA,{element:h},h))})},g.title)),m&&(0,Gt.jsx)(E5,{title:(0,In.__)("Blocks"),children:(0,Gt.jsx)("div",{ref:c,className:"global-styles-ui-block-types-item-list",role:"list",children:d.map(g=>(0,Gt.jsx)(dA,{block:g},"menu-itemblock-"+g.name))})})]})}var Yve=(0,Jr.memo)(fA);var Ez=f(De(),1);var Tz=f(Re(),1);var mA=f(je(),1);var gA=f(z(),1);var hA=f(De(),1),rf=f(je(),1);var O5=f(z(),1);var af=f(je(),1);var M5=f(je(),1);var nf=f(z(),1),bA=({variation:e,isFocused:t,withHoverView:r})=>(0,nf.jsx)(Ss,{label:e.title,isFocused:t,withHoverView:r,children:({ratio:n,key:i})=>(0,nf.jsx)(M5.__experimentalHStack,{spacing:10*n,justify:"center",style:{height:"100%",overflow:"hidden"},children:(0,nf.jsx)(Qp,{variation:e,fontSize:85*n})},i)}),A5=bA;var sa=f(Re(),1),L5=f(F5(),1),of=f(De(),1);var xo=f(z(),1);function Rs({variation:e,children:t,isPill:r=!1,properties:n,showTooltip:i=!1}){let[o,a]=(0,sa.useState)(!1),{base:s,user:l,onChange:d}=(0,sa.useContext)(Qt),c=(0,sa.useMemo)(()=>{let _=ra(s,e);return n&&(_=Zp(_,n)),{user:e,base:s,merged:_,onChange:()=>{}}},[e,s,n]),u=()=>d(e),m=_=>{_.keyCode===L5.ENTER&&(_.preventDefault(),u())},g=(0,sa.useMemo)(()=>fd(l,e),[l,e]),h=e?.title;e?.description&&(h=(0,of.sprintf)((0,of._x)("%1$s (%2$s)","variation label"),e?.title,e?.description));let y=(0,xo.jsx)("div",{className:ve("global-styles-ui-variations_item",{"is-active":g}),role:"button",onClick:u,onKeyDown:m,tabIndex:0,"aria-label":h,"aria-current":g,onFocus:()=>a(!0),onBlur:()=>a(!1),children:(0,xo.jsx)("div",{className:ve("global-styles-ui-variations_item-preview",{"is-pill":r}),children:t(o)})});return(0,xo.jsx)(Qt.Provider,{value:c,children:i?(0,xo.jsxs)(ds.Root,{children:[(0,xo.jsx)(ds.Trigger,{render:y}),(0,xo.jsx)(ds.Popup,{children:e?.title})]}):y})}var la=f(z(),1),z5=["typography"];function sf({title:e,gap:t=2}){let r=Jp(z5);return r?.length<=1?null:(0,la.jsxs)(af.__experimentalVStack,{spacing:3,children:[e&&(0,la.jsx)(Rr,{level:3,children:e}),(0,la.jsx)(af.__experimentalGrid,{columns:3,gap:t,className:"global-styles-ui-style-variations-container",children:r.map((n,i)=>(0,la.jsx)(Rs,{variation:n,properties:z5,showTooltip:!0,children:()=>(0,la.jsx)(A5,{variation:n})},i))})]})}var Rz=f(De(),1),Ed=f(je(),1);var Cz=f(Re(),1);var Mi=f(Re(),1),ko=f(Lr(),1),Co=f(un(),1),G_=f(De(),1);var B_=f(D5(),1),j5=f(un(),1),B5="/wp/v2/font-families";function H5(e){let{receiveEntityRecords:t}=e.dispatch(j5.store);t("postType","wp_font_family",[],void 0,!0)}async function U5(e,t){let n=await(0,B_.default)({path:B5,method:"POST",body:e});return H5(t),{id:n.id,...n.font_family_settings,fontFace:[]}}async function G5(e,t,r){let n={path:`${B5}/${e}/font-faces`,method:"POST",body:t},i=await(0,B_.default)(n);return H5(r),{id:i.id,...i.font_face_settings}}var Cs=function(){return Cs=Object.assign||function(t){for(var r,n=1,i=arguments.length;n
'; @@ -137,6 +160,24 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { // The value is base64-encoded data, so esc_attr() is used here instead of esc_url(). $img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) . '\')"'; $img_class = ' svg'; + } elseif ( wp_is_valid_icon_name( $icon_name ) ) { + $img = '
'; + $icon = wp_get_icon( $icon_name ); + if ( '' !== $icon ) { + $img = $icon; + $img_class = ' dashicons-before svg-icon'; + } elseif ( ! WP_Icons_Registry::get_instance()->is_registered( $icon_name ) ) { + _doing_it_wrong( + __FUNCTION__, + sprintf( + /* translators: 1: Icon name, 2: Admin menu item slug. */ + __( 'The icon "%1$s" of the admin menu item "%2$s" is not registered.' ), + $icon_name, + $item[2] + ), + '7.2.0' + ); + } } elseif ( str_starts_with( $item[6], 'dashicons-' ) ) { $img = '
'; $img_class = ' dashicons-before ' . sanitize_html_class( $item[6] ); @@ -283,7 +324,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) { echo '
' . wp_get_auto_update_message() . ' +
' . wp_get_auto_update_message( 'theme' ) . ' <# } #> ' . $notice . '