@emqx/shared-ui-utils 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1449 -1392
- package/dist/index.umd.cjs +29 -29
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
(function(Te,qt){typeof exports=="object"&&typeof module<"u"?qt(exports):typeof define=="function"&&define.amd?define(["exports"],qt):(Te=typeof globalThis<"u"?globalThis:Te||self,qt(Te["@emqx/shared-ui-utils"]={}))})(this,function(Te){"use strict";const qt=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const r of Object.keys(e))qt(e[r],t.concat(r),n);else n[t.join(".")]=e;return n},Ka=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const r in e){let i=n,s="",a;for(;a=t.exec(r);)i=i[s]||(i[s]=a[2]?[]:{}),s=a[2]||a[1];i[s]=e[r]}}catch(r){console.error(r)}return n[""]||n},Ya=e=>Object.keys(e).length===0;var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tn={exports:{}},cs={exports:{}},us={exports:{}};(function(e){(function(t){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",u=1e14,p=14,T=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,I=1e9;function H(L){var P,_,h,O=B.prototype={constructor:B,toString:null,valueOf:null},j=new B(1),q=20,K=4,oe=-7,pe=21,me=-1e7,ee=1e7,ce=!1,z=1,_e=0,re={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",J=!0;function B(c,d){var E,A,m,v,w,y,b,R,l=this;if(!(l instanceof B))return new B(c,d);if(d==null){if(c&&c._isBigNumber===!0){l.s=c.s,!c.c||c.e>ee?l.c=l.e=null:c.e<me?l.c=[l.e=0]:(l.e=c.e,l.c=c.c.slice());return}if((y=typeof c=="number")&&c*0==0){if(l.s=1/c<0?(c=-c,-1):1,c===~~c){for(v=0,w=c;w>=10;w/=10,v++);v>ee?l.c=l.e=null:(l.e=v,l.c=[c]);return}R=String(c)}else{if(!r.test(R=String(c)))return h(l,R,y);l.s=R.charCodeAt(0)==45?(R=R.slice(1),-1):1}(v=R.indexOf("."))>-1&&(R=R.replace(".","")),(w=R.search(/e/i))>0?(v<0&&(v=w),v+=+R.slice(w+1),R=R.substring(0,w)):v<0&&(v=R.length)}else{if(V(d,2,Z.length,"Base"),d==10&&J)return l=new B(c),te(l,q+l.e+1,K);if(R=String(c),y=typeof c=="number"){if(c*0!=0)return h(l,R,y,d);if(l.s=1/c<0?(R=R.slice(1),-1):1,B.DEBUG&&R.replace(/^0\.0*|\./,"").length>15)throw Error(o+c)}else l.s=R.charCodeAt(0)===45?(R=R.slice(1),-1):1;for(E=Z.slice(0,d),v=w=0,b=R.length;w<b;w++)if(E.indexOf(A=R.charAt(w))<0){if(A=="."){if(w>v){v=b;continue}}else if(!m&&(R==R.toUpperCase()&&(R=R.toLowerCase())||R==R.toLowerCase()&&(R=R.toUpperCase()))){m=!0,w=-1,v=0;continue}return h(l,String(c),y,d)}y=!1,R=_(R,d,10,l.s),(v=R.indexOf("."))>-1?R=R.replace(".",""):v=R.length}for(w=0;R.charCodeAt(w)===48;w++);for(b=R.length;R.charCodeAt(--b)===48;);if(R=R.slice(w,++b)){if(b-=w,y&&B.DEBUG&&b>15&&(c>T||c!==s(c)))throw Error(o+l.s*c);if((v=v-w-1)>ee)l.c=l.e=null;else if(v<me)l.c=[l.e=0];else{if(l.e=v,l.c=[],w=(v+1)%p,v<0&&(w+=p),w<b){for(w&&l.c.push(+R.slice(0,w)),b-=p;w<b;)l.c.push(+R.slice(w,w+=p));w=p-(R=R.slice(w)).length}else w-=b;for(;w--;R+="0");l.c.push(+R)}}else l.c=[l.e=0]}B.clone=H,B.ROUND_UP=0,B.ROUND_DOWN=1,B.ROUND_CEIL=2,B.ROUND_FLOOR=3,B.ROUND_HALF_UP=4,B.ROUND_HALF_DOWN=5,B.ROUND_HALF_EVEN=6,B.ROUND_HALF_CEIL=7,B.ROUND_HALF_FLOOR=8,B.EUCLID=9,B.config=B.set=function(c){var d,E;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(d="DECIMAL_PLACES")&&(E=c[d],V(E,0,I,d),q=E),c.hasOwnProperty(d="ROUNDING_MODE")&&(E=c[d],V(E,0,8,d),K=E),c.hasOwnProperty(d="EXPONENTIAL_AT")&&(E=c[d],E&&E.pop?(V(E[0],-I,0,d),V(E[1],0,I,d),oe=E[0],pe=E[1]):(V(E,-I,I,d),oe=-(pe=E<0?-E:E))),c.hasOwnProperty(d="RANGE"))if(E=c[d],E&&E.pop)V(E[0],-I,-1,d),V(E[1],1,I,d),me=E[0],ee=E[1];else if(V(E,-I,I,d),E)me=-(ee=E<0?-E:E);else throw Error(a+d+" cannot be zero: "+E);if(c.hasOwnProperty(d="CRYPTO"))if(E=c[d],E===!!E)if(E)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ce=E;else throw ce=!E,Error(a+"crypto unavailable");else ce=E;else throw Error(a+d+" not true or false: "+E);if(c.hasOwnProperty(d="MODULO_MODE")&&(E=c[d],V(E,0,9,d),z=E),c.hasOwnProperty(d="POW_PRECISION")&&(E=c[d],V(E,0,I,d),_e=E),c.hasOwnProperty(d="FORMAT"))if(E=c[d],typeof E=="object")re=E;else throw Error(a+d+" not an object: "+E);if(c.hasOwnProperty(d="ALPHABET"))if(E=c[d],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))J=E.slice(0,10)=="0123456789",Z=E;else throw Error(a+d+" invalid: "+E)}else throw Error(a+"Object expected: "+c);return{DECIMAL_PLACES:q,ROUNDING_MODE:K,EXPONENTIAL_AT:[oe,pe],RANGE:[me,ee],CRYPTO:ce,MODULO_MODE:z,POW_PRECISION:_e,FORMAT:re,ALPHABET:Z}},B.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!B.DEBUG)return!0;var d,E,A=c.c,m=c.e,v=c.s;e:if({}.toString.call(A)=="[object Array]"){if((v===1||v===-1)&&m>=-I&&m<=I&&m===s(m)){if(A[0]===0){if(m===0&&A.length===1)return!0;break e}if(d=(m+1)%p,d<1&&(d+=p),String(A[0]).length==d){for(d=0;d<A.length;d++)if(E=A[d],E<0||E>=u||E!==s(E))break e;if(E!==0)return!0}}}else if(A===null&&m===null&&(v===null||v===1||v===-1))return!0;throw Error(a+"Invalid BigNumber: "+c)},B.maximum=B.max=function(){return ye(arguments,-1)},B.minimum=B.min=function(){return ye(arguments,1)},B.random=function(){var c=9007199254740992,d=Math.random()*c&2097151?function(){return s(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var A,m,v,w,y,b=0,R=[],l=new B(j);if(E==null?E=q:V(E,0,I),w=i(E/p),ce)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(w*=2));b<w;)y=A[b]*131072+(A[b+1]>>>11),y>=9e15?(m=crypto.getRandomValues(new Uint32Array(2)),A[b]=m[0],A[b+1]=m[1]):(R.push(y%1e14),b+=2);b=w/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(w*=7);b<w;)y=(A[b]&31)*281474976710656+A[b+1]*1099511627776+A[b+2]*4294967296+A[b+3]*16777216+(A[b+4]<<16)+(A[b+5]<<8)+A[b+6],y>=9e15?crypto.randomBytes(7).copy(A,b):(R.push(y%1e14),b+=7);b=w/7}else throw ce=!1,Error(a+"crypto unavailable");if(!ce)for(;b<w;)y=d(),y<9e15&&(R[b++]=y%1e14);for(w=R[--b],E%=p,w&&E&&(y=g[p-E],R[b]=s(w/y)*y);R[b]===0;R.pop(),b--);if(b<0)R=[v=0];else{for(v=-1;R[0]===0;R.splice(0,1),v-=p);for(b=1,y=R[0];y>=10;y/=10,b++);b<p&&(v-=p-b)}return l.e=v,l.c=R,l}}(),B.sum=function(){for(var c=1,d=arguments,E=new B(d[0]);c<d.length;)E=E.plus(d[c++]);return E},_=function(){var c="0123456789";function d(E,A,m,v){for(var w,y=[0],b,R=0,l=E.length;R<l;){for(b=y.length;b--;y[b]*=A);for(y[0]+=v.indexOf(E.charAt(R++)),w=0;w<y.length;w++)y[w]>m-1&&(y[w+1]==null&&(y[w+1]=0),y[w+1]+=y[w]/m|0,y[w]%=m)}return y.reverse()}return function(E,A,m,v,w){var y,b,R,l,f,C,W,Y,Q=E.indexOf("."),X=q,D=K;for(Q>=0&&(l=_e,_e=0,E=E.replace(".",""),Y=new B(A),C=Y.pow(E.length-Q),_e=l,Y.c=d(F(x(C.c),C.e,"0"),10,m,c),Y.e=Y.c.length),W=d(E,A,m,w?(y=Z,c):(y=c,Z)),R=l=W.length;W[--l]==0;W.pop());if(!W[0])return y.charAt(0);if(Q<0?--R:(C.c=W,C.e=R,C.s=v,C=P(C,Y,X,D,m),W=C.c,f=C.r,R=C.e),b=R+X+1,Q=W[b],l=m/2,f=f||b<0||W[b+1]!=null,f=D<4?(Q!=null||f)&&(D==0||D==(C.s<0?3:2)):Q>l||Q==l&&(D==4||f||D==6&&W[b-1]&1||D==(C.s<0?8:7)),b<1||!W[0])E=f?F(y.charAt(1),-X,y.charAt(0)):y.charAt(0);else{if(W.length=b,f)for(--m;++W[--b]>m;)W[b]=0,b||(++R,W=[1].concat(W));for(l=W.length;!W[--l];);for(Q=0,E="";Q<=l;E+=y.charAt(W[Q++]));E=F(E,R,y.charAt(0))}return E}}(),P=function(){function c(A,m,v){var w,y,b,R,l=0,f=A.length,C=m%N,W=m/N|0;for(A=A.slice();f--;)b=A[f]%N,R=A[f]/N|0,w=W*b+R*C,y=C*b+w%N*N+l,l=(y/v|0)+(w/N|0)+W*R,A[f]=y%v;return l&&(A=[l].concat(A)),A}function d(A,m,v,w){var y,b;if(v!=w)b=v>w?1:-1;else for(y=b=0;y<v;y++)if(A[y]!=m[y]){b=A[y]>m[y]?1:-1;break}return b}function E(A,m,v,w){for(var y=0;v--;)A[v]-=y,y=A[v]<m[v]?1:0,A[v]=y*w+A[v]-m[v];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,m,v,w,y){var b,R,l,f,C,W,Y,Q,X,D,U,ne,Ee,Fe,Me,Le,Be,tt=A.s==m.s?1:-1,Ue=A.c,De=m.c;if(!Ue||!Ue[0]||!De||!De[0])return new B(!A.s||!m.s||(Ue?De&&Ue[0]==De[0]:!De)?NaN:Ue&&Ue[0]==0||!De?tt*0:tt/0);for(Q=new B(tt),X=Q.c=[],R=A.e-m.e,tt=v+R+1,y||(y=u,R=M(A.e/p)-M(m.e/p),tt=tt/p|0),l=0;De[l]==(Ue[l]||0);l++);if(De[l]>(Ue[l]||0)&&R--,tt<0)X.push(1),f=!0;else{for(Fe=Ue.length,Le=De.length,l=0,tt+=2,C=s(y/(De[0]+1)),C>1&&(De=c(De,C,y),Ue=c(Ue,C,y),Le=De.length,Fe=Ue.length),Ee=Le,D=Ue.slice(0,Le),U=D.length;U<Le;D[U++]=0);Be=De.slice(),Be=[0].concat(Be),Me=De[0],De[1]>=y/2&&Me++;do{if(C=0,b=d(De,D,Le,U),b<0){if(ne=D[0],Le!=U&&(ne=ne*y+(D[1]||0)),C=s(ne/Me),C>1)for(C>=y&&(C=y-1),W=c(De,C,y),Y=W.length,U=D.length;d(W,D,Y,U)==1;)C--,E(W,Le<Y?Be:De,Y,y),Y=W.length,b=1;else C==0&&(b=C=1),W=De.slice(),Y=W.length;if(Y<U&&(W=[0].concat(W)),E(D,W,U,y),U=D.length,b==-1)for(;d(De,D,Le,U)<1;)C++,E(D,Le<U?Be:De,U,y),U=D.length}else b===0&&(C++,D=[0]);X[l++]=C,D[0]?D[U++]=Ue[Ee]||0:(D=[Ue[Ee]],U=1)}while((Ee++<Fe||D[0]!=null)&&tt--);f=D[0]!=null,X[0]||X.splice(0,1)}if(y==u){for(l=1,tt=X[0];tt>=10;tt/=10,l++);te(Q,v+(Q.e=l+R*p-1)+1,w,f)}else Q.e=R,Q.r=+f;return Q}}();function ge(c,d,E,A){var m,v,w,y,b;if(E==null?E=K:V(E,0,8),!c.c)return c.toString();if(m=c.c[0],w=c.e,d==null)b=x(c.c),b=A==1||A==2&&(w<=oe||w>=pe)?k(b,w):F(b,w,"0");else if(c=te(new B(c),d,E),v=c.e,b=x(c.c),y=b.length,A==1||A==2&&(d<=v||v<=oe)){for(;y<d;b+="0",y++);b=k(b,v)}else if(d-=w,b=F(b,v,"0"),v+1>y){if(--d>0)for(b+=".";d--;b+="0");}else if(d+=v-y,d>0)for(v+1==y&&(b+=".");d--;b+="0");return c.s<0&&m?"-"+b:b}function ye(c,d){for(var E,A,m=1,v=new B(c[0]);m<c.length;m++)A=new B(c[m]),(!A.s||(E=$(v,A))===d||E===0&&v.s===d)&&(v=A);return v}function we(c,d,E){for(var A=1,m=d.length;!d[--m];d.pop());for(m=d[0];m>=10;m/=10,A++);return(E=A+E*p-1)>ee?c.c=c.e=null:E<me?c.c=[c.e=0]:(c.e=E,c.c=d),c}h=function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,E=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,m=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(v,w,y,b){var R,l=y?w:w.replace(m,"");if(A.test(l))v.s=isNaN(l)?null:l<0?-1:1;else{if(!y&&(l=l.replace(c,function(f,C,W){return R=(W=W.toLowerCase())=="x"?16:W=="b"?2:8,!b||b==R?C:f}),b&&(R=b,l=l.replace(d,"$1").replace(E,"0.$1")),w!=l))return new B(l,R);if(B.DEBUG)throw Error(a+"Not a"+(b?" base "+b:"")+" number: "+w);v.s=null}v.c=v.e=null}}();function te(c,d,E,A){var m,v,w,y,b,R,l,f=c.c,C=g;if(f){e:{for(m=1,y=f[0];y>=10;y/=10,m++);if(v=d-m,v<0)v+=p,w=d,b=f[R=0],l=s(b/C[m-w-1]%10);else if(R=i((v+1)/p),R>=f.length)if(A){for(;f.length<=R;f.push(0));b=l=0,m=1,v%=p,w=v-p+1}else break e;else{for(b=y=f[R],m=1;y>=10;y/=10,m++);v%=p,w=v-p+m,l=w<0?0:s(b/C[m-w-1]%10)}if(A=A||d<0||f[R+1]!=null||(w<0?b:b%C[m-w-1]),A=E<4?(l||A)&&(E==0||E==(c.s<0?3:2)):l>5||l==5&&(E==4||A||E==6&&(v>0?w>0?b/C[m-w]:0:f[R-1])%10&1||E==(c.s<0?8:7)),d<1||!f[0])return f.length=0,A?(d-=c.e+1,f[0]=C[(p-d%p)%p],c.e=-d||0):f[0]=c.e=0,c;if(v==0?(f.length=R,y=1,R--):(f.length=R+1,y=C[p-v],f[R]=w>0?s(b/C[m-w]%C[w])*y:0),A)for(;;)if(R==0){for(v=1,w=f[0];w>=10;w/=10,v++);for(w=f[0]+=y,y=1;w>=10;w/=10,y++);v!=y&&(c.e++,f[0]==u&&(f[0]=1));break}else{if(f[R]+=y,f[R]!=u)break;f[R--]=0,y=1}for(v=f.length;f[--v]===0;f.pop());}c.e>ee?c.c=c.e=null:c.e<me&&(c.c=[c.e=0])}return c}function ie(c){var d,E=c.e;return E===null?c.toString():(d=x(c.c),d=E<=oe||E>=pe?k(d,E):F(d,E,"0"),c.s<0?"-"+d:d)}return O.absoluteValue=O.abs=function(){var c=new B(this);return c.s<0&&(c.s=1),c},O.comparedTo=function(c,d){return $(this,new B(c,d))},O.decimalPlaces=O.dp=function(c,d){var E,A,m,v=this;if(c!=null)return V(c,0,I),d==null?d=K:V(d,0,8),te(new B(v),c+v.e+1,d);if(!(E=v.c))return null;if(A=((m=E.length-1)-M(this.e/p))*p,m=E[m])for(;m%10==0;m/=10,A--);return A<0&&(A=0),A},O.dividedBy=O.div=function(c,d){return P(this,new B(c,d),q,K)},O.dividedToIntegerBy=O.idiv=function(c,d){return P(this,new B(c,d),0,1)},O.exponentiatedBy=O.pow=function(c,d){var E,A,m,v,w,y,b,R,l,f=this;if(c=new B(c),c.c&&!c.isInteger())throw Error(a+"Exponent not an integer: "+ie(c));if(d!=null&&(d=new B(d)),y=c.e>14,!f.c||!f.c[0]||f.c[0]==1&&!f.e&&f.c.length==1||!c.c||!c.c[0])return l=new B(Math.pow(+ie(f),y?c.s*(2-S(c)):+ie(c))),d?l.mod(d):l;if(b=c.s<0,d){if(d.c?!d.c[0]:!d.s)return new B(NaN);A=!b&&f.isInteger()&&d.isInteger(),A&&(f=f.mod(d))}else{if(c.e>9&&(f.e>0||f.e<-1||(f.e==0?f.c[0]>1||y&&f.c[1]>=24e7:f.c[0]<8e13||y&&f.c[0]<=9999975e7)))return v=f.s<0&&S(c)?-0:0,f.e>-1&&(v=1/v),new B(b?1/v:v);_e&&(v=i(_e/p+2))}for(y?(E=new B(.5),b&&(c.s=1),R=S(c)):(m=Math.abs(+ie(c)),R=m%2),l=new B(j);;){if(R){if(l=l.times(f),!l.c)break;v?l.c.length>v&&(l.c.length=v):A&&(l=l.mod(d))}if(m){if(m=s(m/2),m===0)break;R=m%2}else if(c=c.times(E),te(c,c.e+1,1),c.e>14)R=S(c);else{if(m=+ie(c),m===0)break;R=m%2}f=f.times(f),v?f.c&&f.c.length>v&&(f.c.length=v):A&&(f=f.mod(d))}return A?l:(b&&(l=j.div(l)),d?l.mod(d):v?te(l,_e,K,w):l)},O.integerValue=function(c){var d=new B(this);return c==null?c=K:V(c,0,8),te(d,d.e+1,c)},O.isEqualTo=O.eq=function(c,d){return $(this,new B(c,d))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(c,d){return $(this,new B(c,d))>0},O.isGreaterThanOrEqualTo=O.gte=function(c,d){return(d=$(this,new B(c,d)))===1||d===0},O.isInteger=function(){return!!this.c&&M(this.e/p)>this.c.length-2},O.isLessThan=O.lt=function(c,d){return $(this,new B(c,d))<0},O.isLessThanOrEqualTo=O.lte=function(c,d){return(d=$(this,new B(c,d)))===-1||d===0},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&this.c[0]==0},O.minus=function(c,d){var E,A,m,v,w=this,y=w.s;if(c=new B(c,d),d=c.s,!y||!d)return new B(NaN);if(y!=d)return c.s=-d,w.plus(c);var b=w.e/p,R=c.e/p,l=w.c,f=c.c;if(!b||!R){if(!l||!f)return l?(c.s=-d,c):new B(f?w:NaN);if(!l[0]||!f[0])return f[0]?(c.s=-d,c):new B(l[0]?w:K==3?-0:0)}if(b=M(b),R=M(R),l=l.slice(),y=b-R){for((v=y<0)?(y=-y,m=l):(R=b,m=f),m.reverse(),d=y;d--;m.push(0));m.reverse()}else for(A=(v=(y=l.length)<(d=f.length))?y:d,y=d=0;d<A;d++)if(l[d]!=f[d]){v=l[d]<f[d];break}if(v&&(m=l,l=f,f=m,c.s=-c.s),d=(A=f.length)-(E=l.length),d>0)for(;d--;l[E++]=0);for(d=u-1;A>y;){if(l[--A]<f[A]){for(E=A;E&&!l[--E];l[E]=d);--l[E],l[A]+=u}l[A]-=f[A]}for(;l[0]==0;l.splice(0,1),--R);return l[0]?we(c,l,R):(c.s=K==3?-1:1,c.c=[c.e=0],c)},O.modulo=O.mod=function(c,d){var E,A,m=this;return c=new B(c,d),!m.c||!c.s||c.c&&!c.c[0]?new B(NaN):!c.c||m.c&&!m.c[0]?new B(m):(z==9?(A=c.s,c.s=1,E=P(m,c,0,3),c.s=A,E.s*=A):E=P(m,c,0,z),c=m.minus(E.times(c)),!c.c[0]&&z==1&&(c.s=m.s),c)},O.multipliedBy=O.times=function(c,d){var E,A,m,v,w,y,b,R,l,f,C,W,Y,Q,X,D=this,U=D.c,ne=(c=new B(c,d)).c;if(!U||!ne||!U[0]||!ne[0])return!D.s||!c.s||U&&!U[0]&&!ne||ne&&!ne[0]&&!U?c.c=c.e=c.s=null:(c.s*=D.s,!U||!ne?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(A=M(D.e/p)+M(c.e/p),c.s*=D.s,b=U.length,f=ne.length,b<f&&(Y=U,U=ne,ne=Y,m=b,b=f,f=m),m=b+f,Y=[];m--;Y.push(0));for(Q=u,X=N,m=f;--m>=0;){for(E=0,C=ne[m]%X,W=ne[m]/X|0,w=b,v=m+w;v>m;)R=U[--w]%X,l=U[w]/X|0,y=W*R+l*C,R=C*R+y%X*X+Y[v]+E,E=(R/Q|0)+(y/X|0)+W*l,Y[v--]=R%Q;Y[v]=E}return E?++A:Y.splice(0,1),we(c,Y,A)},O.negated=function(){var c=new B(this);return c.s=-c.s||null,c},O.plus=function(c,d){var E,A=this,m=A.s;if(c=new B(c,d),d=c.s,!m||!d)return new B(NaN);if(m!=d)return c.s=-d,A.minus(c);var v=A.e/p,w=c.e/p,y=A.c,b=c.c;if(!v||!w){if(!y||!b)return new B(m/0);if(!y[0]||!b[0])return b[0]?c:new B(y[0]?A:m*0)}if(v=M(v),w=M(w),y=y.slice(),m=v-w){for(m>0?(w=v,E=b):(m=-m,E=y),E.reverse();m--;E.push(0));E.reverse()}for(m=y.length,d=b.length,m-d<0&&(E=b,b=y,y=E,d=m),m=0;d;)m=(y[--d]=y[d]+b[d]+m)/u|0,y[d]=u===y[d]?0:y[d]%u;return m&&(y=[m].concat(y),++w),we(c,y,w)},O.precision=O.sd=function(c,d){var E,A,m,v=this;if(c!=null&&c!==!!c)return V(c,1,I),d==null?d=K:V(d,0,8),te(new B(v),c,d);if(!(E=v.c))return null;if(m=E.length-1,A=m*p+1,m=E[m]){for(;m%10==0;m/=10,A--);for(m=E[0];m>=10;m/=10,A++);}return c&&v.e+1>A&&(A=v.e+1),A},O.shiftedBy=function(c){return V(c,-T,T),this.times("1e"+c)},O.squareRoot=O.sqrt=function(){var c,d,E,A,m,v=this,w=v.c,y=v.s,b=v.e,R=q+4,l=new B("0.5");if(y!==1||!w||!w[0])return new B(!y||y<0&&(!w||w[0])?NaN:w?v:1/0);if(y=Math.sqrt(+ie(v)),y==0||y==1/0?(d=x(w),(d.length+b)%2==0&&(d+="0"),y=Math.sqrt(+d),b=M((b+1)/2)-(b<0||b%2),y==1/0?d="5e"+b:(d=y.toExponential(),d=d.slice(0,d.indexOf("e")+1)+b),E=new B(d)):E=new B(y+""),E.c[0]){for(b=E.e,y=b+R,y<3&&(y=0);;)if(m=E,E=l.times(m.plus(P(v,m,R,1))),x(m.c).slice(0,y)===(d=x(E.c)).slice(0,y))if(E.e<b&&--y,d=d.slice(y-3,y+1),d=="9999"||!A&&d=="4999"){if(!A&&(te(m,m.e+q+2,0),m.times(m).eq(v))){E=m;break}R+=4,y+=4,A=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(te(E,E.e+q+2,1),c=!E.times(E).eq(v));break}}return te(E,E.e+q+1,K,c)},O.toExponential=function(c,d){return c!=null&&(V(c,0,I),c++),ge(this,c,d,1)},O.toFixed=function(c,d){return c!=null&&(V(c,0,I),c=c+this.e+1),ge(this,c,d)},O.toFormat=function(c,d,E){var A,m=this;if(E==null)c!=null&&d&&typeof d=="object"?(E=d,d=null):c&&typeof c=="object"?(E=c,c=d=null):E=re;else if(typeof E!="object")throw Error(a+"Argument not an object: "+E);if(A=m.toFixed(c,d),m.c){var v,w=A.split("."),y=+E.groupSize,b=+E.secondaryGroupSize,R=E.groupSeparator||"",l=w[0],f=w[1],C=m.s<0,W=C?l.slice(1):l,Y=W.length;if(b&&(v=y,y=b,b=v,Y-=v),y>0&&Y>0){for(v=Y%y||y,l=W.substr(0,v);v<Y;v+=y)l+=R+W.substr(v,y);b>0&&(l+=R+W.slice(v)),C&&(l="-"+l)}A=f?l+(E.decimalSeparator||"")+((b=+E.fractionGroupSize)?f.replace(new RegExp("\\d{"+b+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):f):l}return(E.prefix||"")+A+(E.suffix||"")},O.toFraction=function(c){var d,E,A,m,v,w,y,b,R,l,f,C,W=this,Y=W.c;if(c!=null&&(y=new B(c),!y.isInteger()&&(y.c||y.s!==1)||y.lt(j)))throw Error(a+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+ie(y));if(!Y)return new B(W);for(d=new B(j),R=E=new B(j),A=b=new B(j),C=x(Y),v=d.e=C.length-W.e-1,d.c[0]=g[(w=v%p)<0?p+w:w],c=!c||y.comparedTo(d)>0?v>0?d:R:y,w=ee,ee=1/0,y=new B(C),b.c[0]=0;l=P(y,d,0,1),m=E.plus(l.times(A)),m.comparedTo(c)!=1;)E=A,A=m,R=b.plus(l.times(m=R)),b=m,d=y.minus(l.times(m=d)),y=m;return m=P(c.minus(E),A,0,1),b=b.plus(m.times(R)),E=E.plus(m.times(A)),b.s=R.s=W.s,v=v*2,f=P(R,A,v,K).minus(W).abs().comparedTo(P(b,E,v,K).minus(W).abs())<1?[R,A]:[b,E],ee=w,f},O.toNumber=function(){return+ie(this)},O.toPrecision=function(c,d){return c!=null&&V(c,1,I),ge(this,c,d,2)},O.toString=function(c){var d,E=this,A=E.s,m=E.e;return m===null?A?(d="Infinity",A<0&&(d="-"+d)):d="NaN":(c==null?d=m<=oe||m>=pe?k(x(E.c),m):F(x(E.c),m,"0"):c===10&&J?(E=te(new B(E),q+m+1,K),d=F(x(E.c),E.e,"0")):(V(c,2,Z.length,"Base"),d=_(F(x(E.c),m,"0"),10,c,A,!0)),A<0&&E.c[0]&&(d="-"+d)),d},O.valueOf=O.toJSON=function(){return ie(this)},O._isBigNumber=!0,L!=null&&B.set(L),B}function M(L){var P=L|0;return L>0||L===P?P:P-1}function x(L){for(var P,_,h=1,O=L.length,j=L[0]+"";h<O;){for(P=L[h++]+"",_=p-P.length;_--;P="0"+P);j+=P}for(O=j.length;j.charCodeAt(--O)===48;);return j.slice(0,O+1||1)}function $(L,P){var _,h,O=L.c,j=P.c,q=L.s,K=P.s,oe=L.e,pe=P.e;if(!q||!K)return null;if(_=O&&!O[0],h=j&&!j[0],_||h)return _?h?0:-K:q;if(q!=K)return q;if(_=q<0,h=oe==pe,!O||!j)return h?0:!O^_?1:-1;if(!h)return oe>pe^_?1:-1;for(K=(oe=O.length)<(pe=j.length)?oe:pe,q=0;q<K;q++)if(O[q]!=j[q])return O[q]>j[q]^_?1:-1;return oe==pe?0:oe>pe^_?1:-1}function V(L,P,_,h){if(L<P||L>_||L!==s(L))throw Error(a+(h||"Argument")+(typeof L=="number"?L<P||L>_?" out of range: ":" not an integer: ":" not a primitive number: ")+String(L))}function S(L){var P=L.c.length-1;return M(L.e/p)==P&&L.c[P]%2!=0}function k(L,P){return(L.length>1?L.charAt(0)+"."+L.slice(1):L)+(P<0?"e":"e+")+P}function F(L,P,_){var h,O;if(P<0){for(O=_+".";++P;O+=_);L=O+L}else if(h=L.length,++P>h){for(O=_,P-=h;--P;O+=_);L+=O}else P<h&&(L=L.slice(0,P)+"."+L.slice(P));return L}n=H(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(os)})(us);var fs=us.exports;(function(e){var t=fs,n=e.exports;(function(){var r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;function u(T){return r.lastIndex=0,r.test(T)?'"'+T.replace(r,function(g){var N=a[g];return typeof N=="string"?N:"\\u"+("0000"+g.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+T+'"'}function p(T,g){var N,I,H,M,x=i,$,V=g[T],S=V!=null&&(V instanceof t||t.isBigNumber(V));switch(V&&typeof V=="object"&&typeof V.toJSON=="function"&&(V=V.toJSON(T)),typeof o=="function"&&(V=o.call(g,T,V)),typeof V){case"string":return S?V:u(V);case"number":return isFinite(V)?String(V):"null";case"boolean":case"null":case"bigint":return String(V);case"object":if(!V)return"null";if(i+=s,$=[],Object.prototype.toString.apply(V)==="[object Array]"){for(M=V.length,N=0;N<M;N+=1)$[N]=p(N,V)||"null";return H=$.length===0?"[]":i?`[
|
|
1
|
+
(function(Oe,qt){typeof exports=="object"&&typeof module<"u"?qt(exports):typeof define=="function"&&define.amd?define(["exports"],qt):(Oe=typeof globalThis<"u"?globalThis:Oe||self,qt(Oe["@emqx/shared-ui-utils"]={}))})(this,function(Oe){"use strict";const qt=(e,t=[],n={})=>{if(typeof e=="object"&&!Array.isArray(e)&&e!==null)for(const r of Object.keys(e))qt(e[r],t.concat(r),n);else n[t.join(".")]=e;return n},Ka=e=>{if(Object(e)!==e&&!Array.isArray(e))return e;const t=/\.?([^.[\]]+)|\[(\d+)\]/g,n={};try{for(const r in e){let i=n,s="",a;for(;a=t.exec(r);)i=i[s]||(i[s]=a[2]?[]:{}),s=a[2]||a[1];i[s]=e[r]}}catch(r){console.error(r)}return n[""]||n},Ya=e=>Object.keys(e).length===0;var os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var On={exports:{}},cs={exports:{}},us={exports:{}};(function(e){(function(t){var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,s=Math.floor,a="[BigNumber Error] ",o=a+"Number primitive has more than 15 significant digits: ",u=1e14,p=14,O=9007199254740991,g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],N=1e7,I=1e9;function H(L){var P,_,h,T=W.prototype={constructor:W,toString:null,valueOf:null},j=new W(1),q=20,K=4,oe=-7,pe=21,me=-1e7,ee=1e7,ce=!1,z=1,_e=0,re={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Z="0123456789abcdefghijklmnopqrstuvwxyz",X=!0;function W(c,d){var E,A,m,v,D,y,b,R,l=this;if(!(l instanceof W))return new W(c,d);if(d==null){if(c&&c._isBigNumber===!0){l.s=c.s,!c.c||c.e>ee?l.c=l.e=null:c.e<me?l.c=[l.e=0]:(l.e=c.e,l.c=c.c.slice());return}if((y=typeof c=="number")&&c*0==0){if(l.s=1/c<0?(c=-c,-1):1,c===~~c){for(v=0,D=c;D>=10;D/=10,v++);v>ee?l.c=l.e=null:(l.e=v,l.c=[c]);return}R=String(c)}else{if(!r.test(R=String(c)))return h(l,R,y);l.s=R.charCodeAt(0)==45?(R=R.slice(1),-1):1}(v=R.indexOf("."))>-1&&(R=R.replace(".","")),(D=R.search(/e/i))>0?(v<0&&(v=D),v+=+R.slice(D+1),R=R.substring(0,D)):v<0&&(v=R.length)}else{if(V(d,2,Z.length,"Base"),d==10&&X)return l=new W(c),te(l,q+l.e+1,K);if(R=String(c),y=typeof c=="number"){if(c*0!=0)return h(l,R,y,d);if(l.s=1/c<0?(R=R.slice(1),-1):1,W.DEBUG&&R.replace(/^0\.0*|\./,"").length>15)throw Error(o+c)}else l.s=R.charCodeAt(0)===45?(R=R.slice(1),-1):1;for(E=Z.slice(0,d),v=D=0,b=R.length;D<b;D++)if(E.indexOf(A=R.charAt(D))<0){if(A=="."){if(D>v){v=b;continue}}else if(!m&&(R==R.toUpperCase()&&(R=R.toLowerCase())||R==R.toLowerCase()&&(R=R.toUpperCase()))){m=!0,D=-1,v=0;continue}return h(l,String(c),y,d)}y=!1,R=_(R,d,10,l.s),(v=R.indexOf("."))>-1?R=R.replace(".",""):v=R.length}for(D=0;R.charCodeAt(D)===48;D++);for(b=R.length;R.charCodeAt(--b)===48;);if(R=R.slice(D,++b)){if(b-=D,y&&W.DEBUG&&b>15&&(c>O||c!==s(c)))throw Error(o+l.s*c);if((v=v-D-1)>ee)l.c=l.e=null;else if(v<me)l.c=[l.e=0];else{if(l.e=v,l.c=[],D=(v+1)%p,v<0&&(D+=p),D<b){for(D&&l.c.push(+R.slice(0,D)),b-=p;D<b;)l.c.push(+R.slice(D,D+=p));D=p-(R=R.slice(D)).length}else D-=b;for(;D--;R+="0");l.c.push(+R)}}else l.c=[l.e=0]}W.clone=H,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(c){var d,E;if(c!=null)if(typeof c=="object"){if(c.hasOwnProperty(d="DECIMAL_PLACES")&&(E=c[d],V(E,0,I,d),q=E),c.hasOwnProperty(d="ROUNDING_MODE")&&(E=c[d],V(E,0,8,d),K=E),c.hasOwnProperty(d="EXPONENTIAL_AT")&&(E=c[d],E&&E.pop?(V(E[0],-I,0,d),V(E[1],0,I,d),oe=E[0],pe=E[1]):(V(E,-I,I,d),oe=-(pe=E<0?-E:E))),c.hasOwnProperty(d="RANGE"))if(E=c[d],E&&E.pop)V(E[0],-I,-1,d),V(E[1],1,I,d),me=E[0],ee=E[1];else if(V(E,-I,I,d),E)me=-(ee=E<0?-E:E);else throw Error(a+d+" cannot be zero: "+E);if(c.hasOwnProperty(d="CRYPTO"))if(E=c[d],E===!!E)if(E)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ce=E;else throw ce=!E,Error(a+"crypto unavailable");else ce=E;else throw Error(a+d+" not true or false: "+E);if(c.hasOwnProperty(d="MODULO_MODE")&&(E=c[d],V(E,0,9,d),z=E),c.hasOwnProperty(d="POW_PRECISION")&&(E=c[d],V(E,0,I,d),_e=E),c.hasOwnProperty(d="FORMAT"))if(E=c[d],typeof E=="object")re=E;else throw Error(a+d+" not an object: "+E);if(c.hasOwnProperty(d="ALPHABET"))if(E=c[d],typeof E=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(E))X=E.slice(0,10)=="0123456789",Z=E;else throw Error(a+d+" invalid: "+E)}else throw Error(a+"Object expected: "+c);return{DECIMAL_PLACES:q,ROUNDING_MODE:K,EXPONENTIAL_AT:[oe,pe],RANGE:[me,ee],CRYPTO:ce,MODULO_MODE:z,POW_PRECISION:_e,FORMAT:re,ALPHABET:Z}},W.isBigNumber=function(c){if(!c||c._isBigNumber!==!0)return!1;if(!W.DEBUG)return!0;var d,E,A=c.c,m=c.e,v=c.s;e:if({}.toString.call(A)=="[object Array]"){if((v===1||v===-1)&&m>=-I&&m<=I&&m===s(m)){if(A[0]===0){if(m===0&&A.length===1)return!0;break e}if(d=(m+1)%p,d<1&&(d+=p),String(A[0]).length==d){for(d=0;d<A.length;d++)if(E=A[d],E<0||E>=u||E!==s(E))break e;if(E!==0)return!0}}}else if(A===null&&m===null&&(v===null||v===1||v===-1))return!0;throw Error(a+"Invalid BigNumber: "+c)},W.maximum=W.max=function(){return ye(arguments,-1)},W.minimum=W.min=function(){return ye(arguments,1)},W.random=function(){var c=9007199254740992,d=Math.random()*c&2097151?function(){return s(Math.random()*c)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(E){var A,m,v,D,y,b=0,R=[],l=new W(j);if(E==null?E=q:V(E,0,I),D=i(E/p),ce)if(crypto.getRandomValues){for(A=crypto.getRandomValues(new Uint32Array(D*=2));b<D;)y=A[b]*131072+(A[b+1]>>>11),y>=9e15?(m=crypto.getRandomValues(new Uint32Array(2)),A[b]=m[0],A[b+1]=m[1]):(R.push(y%1e14),b+=2);b=D/2}else if(crypto.randomBytes){for(A=crypto.randomBytes(D*=7);b<D;)y=(A[b]&31)*281474976710656+A[b+1]*1099511627776+A[b+2]*4294967296+A[b+3]*16777216+(A[b+4]<<16)+(A[b+5]<<8)+A[b+6],y>=9e15?crypto.randomBytes(7).copy(A,b):(R.push(y%1e14),b+=7);b=D/7}else throw ce=!1,Error(a+"crypto unavailable");if(!ce)for(;b<D;)y=d(),y<9e15&&(R[b++]=y%1e14);for(D=R[--b],E%=p,D&&E&&(y=g[p-E],R[b]=s(D/y)*y);R[b]===0;R.pop(),b--);if(b<0)R=[v=0];else{for(v=-1;R[0]===0;R.splice(0,1),v-=p);for(b=1,y=R[0];y>=10;y/=10,b++);b<p&&(v-=p-b)}return l.e=v,l.c=R,l}}(),W.sum=function(){for(var c=1,d=arguments,E=new W(d[0]);c<d.length;)E=E.plus(d[c++]);return E},_=function(){var c="0123456789";function d(E,A,m,v){for(var D,y=[0],b,R=0,l=E.length;R<l;){for(b=y.length;b--;y[b]*=A);for(y[0]+=v.indexOf(E.charAt(R++)),D=0;D<y.length;D++)y[D]>m-1&&(y[D+1]==null&&(y[D+1]=0),y[D+1]+=y[D]/m|0,y[D]%=m)}return y.reverse()}return function(E,A,m,v,D){var y,b,R,l,f,C,B,Y,J=E.indexOf("."),Q=q,w=K;for(J>=0&&(l=_e,_e=0,E=E.replace(".",""),Y=new W(A),C=Y.pow(E.length-J),_e=l,Y.c=d(F(x(C.c),C.e,"0"),10,m,c),Y.e=Y.c.length),B=d(E,A,m,D?(y=Z,c):(y=c,Z)),R=l=B.length;B[--l]==0;B.pop());if(!B[0])return y.charAt(0);if(J<0?--R:(C.c=B,C.e=R,C.s=v,C=P(C,Y,Q,w,m),B=C.c,f=C.r,R=C.e),b=R+Q+1,J=B[b],l=m/2,f=f||b<0||B[b+1]!=null,f=w<4?(J!=null||f)&&(w==0||w==(C.s<0?3:2)):J>l||J==l&&(w==4||f||w==6&&B[b-1]&1||w==(C.s<0?8:7)),b<1||!B[0])E=f?F(y.charAt(1),-Q,y.charAt(0)):y.charAt(0);else{if(B.length=b,f)for(--m;++B[--b]>m;)B[b]=0,b||(++R,B=[1].concat(B));for(l=B.length;!B[--l];);for(J=0,E="";J<=l;E+=y.charAt(B[J++]));E=F(E,R,y.charAt(0))}return E}}(),P=function(){function c(A,m,v){var D,y,b,R,l=0,f=A.length,C=m%N,B=m/N|0;for(A=A.slice();f--;)b=A[f]%N,R=A[f]/N|0,D=B*b+R*C,y=C*b+D%N*N+l,l=(y/v|0)+(D/N|0)+B*R,A[f]=y%v;return l&&(A=[l].concat(A)),A}function d(A,m,v,D){var y,b;if(v!=D)b=v>D?1:-1;else for(y=b=0;y<v;y++)if(A[y]!=m[y]){b=A[y]>m[y]?1:-1;break}return b}function E(A,m,v,D){for(var y=0;v--;)A[v]-=y,y=A[v]<m[v]?1:0,A[v]=y*D+A[v]-m[v];for(;!A[0]&&A.length>1;A.splice(0,1));}return function(A,m,v,D,y){var b,R,l,f,C,B,Y,J,Q,w,U,ne,Ee,Fe,Me,Le,We,tt=A.s==m.s?1:-1,Ue=A.c,we=m.c;if(!Ue||!Ue[0]||!we||!we[0])return new W(!A.s||!m.s||(Ue?we&&Ue[0]==we[0]:!we)?NaN:Ue&&Ue[0]==0||!we?tt*0:tt/0);for(J=new W(tt),Q=J.c=[],R=A.e-m.e,tt=v+R+1,y||(y=u,R=M(A.e/p)-M(m.e/p),tt=tt/p|0),l=0;we[l]==(Ue[l]||0);l++);if(we[l]>(Ue[l]||0)&&R--,tt<0)Q.push(1),f=!0;else{for(Fe=Ue.length,Le=we.length,l=0,tt+=2,C=s(y/(we[0]+1)),C>1&&(we=c(we,C,y),Ue=c(Ue,C,y),Le=we.length,Fe=Ue.length),Ee=Le,w=Ue.slice(0,Le),U=w.length;U<Le;w[U++]=0);We=we.slice(),We=[0].concat(We),Me=we[0],we[1]>=y/2&&Me++;do{if(C=0,b=d(we,w,Le,U),b<0){if(ne=w[0],Le!=U&&(ne=ne*y+(w[1]||0)),C=s(ne/Me),C>1)for(C>=y&&(C=y-1),B=c(we,C,y),Y=B.length,U=w.length;d(B,w,Y,U)==1;)C--,E(B,Le<Y?We:we,Y,y),Y=B.length,b=1;else C==0&&(b=C=1),B=we.slice(),Y=B.length;if(Y<U&&(B=[0].concat(B)),E(w,B,U,y),U=w.length,b==-1)for(;d(we,w,Le,U)<1;)C++,E(w,Le<U?We:we,U,y),U=w.length}else b===0&&(C++,w=[0]);Q[l++]=C,w[0]?w[U++]=Ue[Ee]||0:(w=[Ue[Ee]],U=1)}while((Ee++<Fe||w[0]!=null)&&tt--);f=w[0]!=null,Q[0]||Q.splice(0,1)}if(y==u){for(l=1,tt=Q[0];tt>=10;tt/=10,l++);te(J,v+(J.e=l+R*p-1)+1,D,f)}else J.e=R,J.r=+f;return J}}();function ge(c,d,E,A){var m,v,D,y,b;if(E==null?E=K:V(E,0,8),!c.c)return c.toString();if(m=c.c[0],D=c.e,d==null)b=x(c.c),b=A==1||A==2&&(D<=oe||D>=pe)?k(b,D):F(b,D,"0");else if(c=te(new W(c),d,E),v=c.e,b=x(c.c),y=b.length,A==1||A==2&&(d<=v||v<=oe)){for(;y<d;b+="0",y++);b=k(b,v)}else if(d-=D,b=F(b,v,"0"),v+1>y){if(--d>0)for(b+=".";d--;b+="0");}else if(d+=v-y,d>0)for(v+1==y&&(b+=".");d--;b+="0");return c.s<0&&m?"-"+b:b}function ye(c,d){for(var E,A,m=1,v=new W(c[0]);m<c.length;m++)A=new W(c[m]),(!A.s||(E=$(v,A))===d||E===0&&v.s===d)&&(v=A);return v}function De(c,d,E){for(var A=1,m=d.length;!d[--m];d.pop());for(m=d[0];m>=10;m/=10,A++);return(E=A+E*p-1)>ee?c.c=c.e=null:E<me?c.c=[c.e=0]:(c.e=E,c.c=d),c}h=function(){var c=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,E=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,m=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(v,D,y,b){var R,l=y?D:D.replace(m,"");if(A.test(l))v.s=isNaN(l)?null:l<0?-1:1;else{if(!y&&(l=l.replace(c,function(f,C,B){return R=(B=B.toLowerCase())=="x"?16:B=="b"?2:8,!b||b==R?C:f}),b&&(R=b,l=l.replace(d,"$1").replace(E,"0.$1")),D!=l))return new W(l,R);if(W.DEBUG)throw Error(a+"Not a"+(b?" base "+b:"")+" number: "+D);v.s=null}v.c=v.e=null}}();function te(c,d,E,A){var m,v,D,y,b,R,l,f=c.c,C=g;if(f){e:{for(m=1,y=f[0];y>=10;y/=10,m++);if(v=d-m,v<0)v+=p,D=d,b=f[R=0],l=s(b/C[m-D-1]%10);else if(R=i((v+1)/p),R>=f.length)if(A){for(;f.length<=R;f.push(0));b=l=0,m=1,v%=p,D=v-p+1}else break e;else{for(b=y=f[R],m=1;y>=10;y/=10,m++);v%=p,D=v-p+m,l=D<0?0:s(b/C[m-D-1]%10)}if(A=A||d<0||f[R+1]!=null||(D<0?b:b%C[m-D-1]),A=E<4?(l||A)&&(E==0||E==(c.s<0?3:2)):l>5||l==5&&(E==4||A||E==6&&(v>0?D>0?b/C[m-D]:0:f[R-1])%10&1||E==(c.s<0?8:7)),d<1||!f[0])return f.length=0,A?(d-=c.e+1,f[0]=C[(p-d%p)%p],c.e=-d||0):f[0]=c.e=0,c;if(v==0?(f.length=R,y=1,R--):(f.length=R+1,y=C[p-v],f[R]=D>0?s(b/C[m-D]%C[D])*y:0),A)for(;;)if(R==0){for(v=1,D=f[0];D>=10;D/=10,v++);for(D=f[0]+=y,y=1;D>=10;D/=10,y++);v!=y&&(c.e++,f[0]==u&&(f[0]=1));break}else{if(f[R]+=y,f[R]!=u)break;f[R--]=0,y=1}for(v=f.length;f[--v]===0;f.pop());}c.e>ee?c.c=c.e=null:c.e<me&&(c.c=[c.e=0])}return c}function ie(c){var d,E=c.e;return E===null?c.toString():(d=x(c.c),d=E<=oe||E>=pe?k(d,E):F(d,E,"0"),c.s<0?"-"+d:d)}return T.absoluteValue=T.abs=function(){var c=new W(this);return c.s<0&&(c.s=1),c},T.comparedTo=function(c,d){return $(this,new W(c,d))},T.decimalPlaces=T.dp=function(c,d){var E,A,m,v=this;if(c!=null)return V(c,0,I),d==null?d=K:V(d,0,8),te(new W(v),c+v.e+1,d);if(!(E=v.c))return null;if(A=((m=E.length-1)-M(this.e/p))*p,m=E[m])for(;m%10==0;m/=10,A--);return A<0&&(A=0),A},T.dividedBy=T.div=function(c,d){return P(this,new W(c,d),q,K)},T.dividedToIntegerBy=T.idiv=function(c,d){return P(this,new W(c,d),0,1)},T.exponentiatedBy=T.pow=function(c,d){var E,A,m,v,D,y,b,R,l,f=this;if(c=new W(c),c.c&&!c.isInteger())throw Error(a+"Exponent not an integer: "+ie(c));if(d!=null&&(d=new W(d)),y=c.e>14,!f.c||!f.c[0]||f.c[0]==1&&!f.e&&f.c.length==1||!c.c||!c.c[0])return l=new W(Math.pow(+ie(f),y?c.s*(2-S(c)):+ie(c))),d?l.mod(d):l;if(b=c.s<0,d){if(d.c?!d.c[0]:!d.s)return new W(NaN);A=!b&&f.isInteger()&&d.isInteger(),A&&(f=f.mod(d))}else{if(c.e>9&&(f.e>0||f.e<-1||(f.e==0?f.c[0]>1||y&&f.c[1]>=24e7:f.c[0]<8e13||y&&f.c[0]<=9999975e7)))return v=f.s<0&&S(c)?-0:0,f.e>-1&&(v=1/v),new W(b?1/v:v);_e&&(v=i(_e/p+2))}for(y?(E=new W(.5),b&&(c.s=1),R=S(c)):(m=Math.abs(+ie(c)),R=m%2),l=new W(j);;){if(R){if(l=l.times(f),!l.c)break;v?l.c.length>v&&(l.c.length=v):A&&(l=l.mod(d))}if(m){if(m=s(m/2),m===0)break;R=m%2}else if(c=c.times(E),te(c,c.e+1,1),c.e>14)R=S(c);else{if(m=+ie(c),m===0)break;R=m%2}f=f.times(f),v?f.c&&f.c.length>v&&(f.c.length=v):A&&(f=f.mod(d))}return A?l:(b&&(l=j.div(l)),d?l.mod(d):v?te(l,_e,K,D):l)},T.integerValue=function(c){var d=new W(this);return c==null?c=K:V(c,0,8),te(d,d.e+1,c)},T.isEqualTo=T.eq=function(c,d){return $(this,new W(c,d))===0},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(c,d){return $(this,new W(c,d))>0},T.isGreaterThanOrEqualTo=T.gte=function(c,d){return(d=$(this,new W(c,d)))===1||d===0},T.isInteger=function(){return!!this.c&&M(this.e/p)>this.c.length-2},T.isLessThan=T.lt=function(c,d){return $(this,new W(c,d))<0},T.isLessThanOrEqualTo=T.lte=function(c,d){return(d=$(this,new W(c,d)))===-1||d===0},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return this.s>0},T.isZero=function(){return!!this.c&&this.c[0]==0},T.minus=function(c,d){var E,A,m,v,D=this,y=D.s;if(c=new W(c,d),d=c.s,!y||!d)return new W(NaN);if(y!=d)return c.s=-d,D.plus(c);var b=D.e/p,R=c.e/p,l=D.c,f=c.c;if(!b||!R){if(!l||!f)return l?(c.s=-d,c):new W(f?D:NaN);if(!l[0]||!f[0])return f[0]?(c.s=-d,c):new W(l[0]?D:K==3?-0:0)}if(b=M(b),R=M(R),l=l.slice(),y=b-R){for((v=y<0)?(y=-y,m=l):(R=b,m=f),m.reverse(),d=y;d--;m.push(0));m.reverse()}else for(A=(v=(y=l.length)<(d=f.length))?y:d,y=d=0;d<A;d++)if(l[d]!=f[d]){v=l[d]<f[d];break}if(v&&(m=l,l=f,f=m,c.s=-c.s),d=(A=f.length)-(E=l.length),d>0)for(;d--;l[E++]=0);for(d=u-1;A>y;){if(l[--A]<f[A]){for(E=A;E&&!l[--E];l[E]=d);--l[E],l[A]+=u}l[A]-=f[A]}for(;l[0]==0;l.splice(0,1),--R);return l[0]?De(c,l,R):(c.s=K==3?-1:1,c.c=[c.e=0],c)},T.modulo=T.mod=function(c,d){var E,A,m=this;return c=new W(c,d),!m.c||!c.s||c.c&&!c.c[0]?new W(NaN):!c.c||m.c&&!m.c[0]?new W(m):(z==9?(A=c.s,c.s=1,E=P(m,c,0,3),c.s=A,E.s*=A):E=P(m,c,0,z),c=m.minus(E.times(c)),!c.c[0]&&z==1&&(c.s=m.s),c)},T.multipliedBy=T.times=function(c,d){var E,A,m,v,D,y,b,R,l,f,C,B,Y,J,Q,w=this,U=w.c,ne=(c=new W(c,d)).c;if(!U||!ne||!U[0]||!ne[0])return!w.s||!c.s||U&&!U[0]&&!ne||ne&&!ne[0]&&!U?c.c=c.e=c.s=null:(c.s*=w.s,!U||!ne?c.c=c.e=null:(c.c=[0],c.e=0)),c;for(A=M(w.e/p)+M(c.e/p),c.s*=w.s,b=U.length,f=ne.length,b<f&&(Y=U,U=ne,ne=Y,m=b,b=f,f=m),m=b+f,Y=[];m--;Y.push(0));for(J=u,Q=N,m=f;--m>=0;){for(E=0,C=ne[m]%Q,B=ne[m]/Q|0,D=b,v=m+D;v>m;)R=U[--D]%Q,l=U[D]/Q|0,y=B*R+l*C,R=C*R+y%Q*Q+Y[v]+E,E=(R/J|0)+(y/Q|0)+B*l,Y[v--]=R%J;Y[v]=E}return E?++A:Y.splice(0,1),De(c,Y,A)},T.negated=function(){var c=new W(this);return c.s=-c.s||null,c},T.plus=function(c,d){var E,A=this,m=A.s;if(c=new W(c,d),d=c.s,!m||!d)return new W(NaN);if(m!=d)return c.s=-d,A.minus(c);var v=A.e/p,D=c.e/p,y=A.c,b=c.c;if(!v||!D){if(!y||!b)return new W(m/0);if(!y[0]||!b[0])return b[0]?c:new W(y[0]?A:m*0)}if(v=M(v),D=M(D),y=y.slice(),m=v-D){for(m>0?(D=v,E=b):(m=-m,E=y),E.reverse();m--;E.push(0));E.reverse()}for(m=y.length,d=b.length,m-d<0&&(E=b,b=y,y=E,d=m),m=0;d;)m=(y[--d]=y[d]+b[d]+m)/u|0,y[d]=u===y[d]?0:y[d]%u;return m&&(y=[m].concat(y),++D),De(c,y,D)},T.precision=T.sd=function(c,d){var E,A,m,v=this;if(c!=null&&c!==!!c)return V(c,1,I),d==null?d=K:V(d,0,8),te(new W(v),c,d);if(!(E=v.c))return null;if(m=E.length-1,A=m*p+1,m=E[m]){for(;m%10==0;m/=10,A--);for(m=E[0];m>=10;m/=10,A++);}return c&&v.e+1>A&&(A=v.e+1),A},T.shiftedBy=function(c){return V(c,-O,O),this.times("1e"+c)},T.squareRoot=T.sqrt=function(){var c,d,E,A,m,v=this,D=v.c,y=v.s,b=v.e,R=q+4,l=new W("0.5");if(y!==1||!D||!D[0])return new W(!y||y<0&&(!D||D[0])?NaN:D?v:1/0);if(y=Math.sqrt(+ie(v)),y==0||y==1/0?(d=x(D),(d.length+b)%2==0&&(d+="0"),y=Math.sqrt(+d),b=M((b+1)/2)-(b<0||b%2),y==1/0?d="5e"+b:(d=y.toExponential(),d=d.slice(0,d.indexOf("e")+1)+b),E=new W(d)):E=new W(y+""),E.c[0]){for(b=E.e,y=b+R,y<3&&(y=0);;)if(m=E,E=l.times(m.plus(P(v,m,R,1))),x(m.c).slice(0,y)===(d=x(E.c)).slice(0,y))if(E.e<b&&--y,d=d.slice(y-3,y+1),d=="9999"||!A&&d=="4999"){if(!A&&(te(m,m.e+q+2,0),m.times(m).eq(v))){E=m;break}R+=4,y+=4,A=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(te(E,E.e+q+2,1),c=!E.times(E).eq(v));break}}return te(E,E.e+q+1,K,c)},T.toExponential=function(c,d){return c!=null&&(V(c,0,I),c++),ge(this,c,d,1)},T.toFixed=function(c,d){return c!=null&&(V(c,0,I),c=c+this.e+1),ge(this,c,d)},T.toFormat=function(c,d,E){var A,m=this;if(E==null)c!=null&&d&&typeof d=="object"?(E=d,d=null):c&&typeof c=="object"?(E=c,c=d=null):E=re;else if(typeof E!="object")throw Error(a+"Argument not an object: "+E);if(A=m.toFixed(c,d),m.c){var v,D=A.split("."),y=+E.groupSize,b=+E.secondaryGroupSize,R=E.groupSeparator||"",l=D[0],f=D[1],C=m.s<0,B=C?l.slice(1):l,Y=B.length;if(b&&(v=y,y=b,b=v,Y-=v),y>0&&Y>0){for(v=Y%y||y,l=B.substr(0,v);v<Y;v+=y)l+=R+B.substr(v,y);b>0&&(l+=R+B.slice(v)),C&&(l="-"+l)}A=f?l+(E.decimalSeparator||"")+((b=+E.fractionGroupSize)?f.replace(new RegExp("\\d{"+b+"}\\B","g"),"$&"+(E.fractionGroupSeparator||"")):f):l}return(E.prefix||"")+A+(E.suffix||"")},T.toFraction=function(c){var d,E,A,m,v,D,y,b,R,l,f,C,B=this,Y=B.c;if(c!=null&&(y=new W(c),!y.isInteger()&&(y.c||y.s!==1)||y.lt(j)))throw Error(a+"Argument "+(y.isInteger()?"out of range: ":"not an integer: ")+ie(y));if(!Y)return new W(B);for(d=new W(j),R=E=new W(j),A=b=new W(j),C=x(Y),v=d.e=C.length-B.e-1,d.c[0]=g[(D=v%p)<0?p+D:D],c=!c||y.comparedTo(d)>0?v>0?d:R:y,D=ee,ee=1/0,y=new W(C),b.c[0]=0;l=P(y,d,0,1),m=E.plus(l.times(A)),m.comparedTo(c)!=1;)E=A,A=m,R=b.plus(l.times(m=R)),b=m,d=y.minus(l.times(m=d)),y=m;return m=P(c.minus(E),A,0,1),b=b.plus(m.times(R)),E=E.plus(m.times(A)),b.s=R.s=B.s,v=v*2,f=P(R,A,v,K).minus(B).abs().comparedTo(P(b,E,v,K).minus(B).abs())<1?[R,A]:[b,E],ee=D,f},T.toNumber=function(){return+ie(this)},T.toPrecision=function(c,d){return c!=null&&V(c,1,I),ge(this,c,d,2)},T.toString=function(c){var d,E=this,A=E.s,m=E.e;return m===null?A?(d="Infinity",A<0&&(d="-"+d)):d="NaN":(c==null?d=m<=oe||m>=pe?k(x(E.c),m):F(x(E.c),m,"0"):c===10&&X?(E=te(new W(E),q+m+1,K),d=F(x(E.c),E.e,"0")):(V(c,2,Z.length,"Base"),d=_(F(x(E.c),m,"0"),10,c,A,!0)),A<0&&E.c[0]&&(d="-"+d)),d},T.valueOf=T.toJSON=function(){return ie(this)},T._isBigNumber=!0,L!=null&&W.set(L),W}function M(L){var P=L|0;return L>0||L===P?P:P-1}function x(L){for(var P,_,h=1,T=L.length,j=L[0]+"";h<T;){for(P=L[h++]+"",_=p-P.length;_--;P="0"+P);j+=P}for(T=j.length;j.charCodeAt(--T)===48;);return j.slice(0,T+1||1)}function $(L,P){var _,h,T=L.c,j=P.c,q=L.s,K=P.s,oe=L.e,pe=P.e;if(!q||!K)return null;if(_=T&&!T[0],h=j&&!j[0],_||h)return _?h?0:-K:q;if(q!=K)return q;if(_=q<0,h=oe==pe,!T||!j)return h?0:!T^_?1:-1;if(!h)return oe>pe^_?1:-1;for(K=(oe=T.length)<(pe=j.length)?oe:pe,q=0;q<K;q++)if(T[q]!=j[q])return T[q]>j[q]^_?1:-1;return oe==pe?0:oe>pe^_?1:-1}function V(L,P,_,h){if(L<P||L>_||L!==s(L))throw Error(a+(h||"Argument")+(typeof L=="number"?L<P||L>_?" out of range: ":" not an integer: ":" not a primitive number: ")+String(L))}function S(L){var P=L.c.length-1;return M(L.e/p)==P&&L.c[P]%2!=0}function k(L,P){return(L.length>1?L.charAt(0)+"."+L.slice(1):L)+(P<0?"e":"e+")+P}function F(L,P,_){var h,T;if(P<0){for(T=_+".";++P;T+=_);L=T+L}else if(h=L.length,++P>h){for(T=_,P-=h;--P;T+=_);L+=T}else P<h&&(L=L.slice(0,P)+"."+L.slice(P));return L}n=H(),n.default=n.BigNumber=n,e.exports?e.exports=n:(t||(t=typeof self<"u"&&self?self:window),t.BigNumber=n)})(os)})(us);var fs=us.exports;(function(e){var t=fs,n=e.exports;(function(){var r=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,i,s,a={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},o;function u(O){return r.lastIndex=0,r.test(O)?'"'+O.replace(r,function(g){var N=a[g];return typeof N=="string"?N:"\\u"+("0000"+g.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+O+'"'}function p(O,g){var N,I,H,M,x=i,$,V=g[O],S=V!=null&&(V instanceof t||t.isBigNumber(V));switch(V&&typeof V=="object"&&typeof V.toJSON=="function"&&(V=V.toJSON(O)),typeof o=="function"&&(V=o.call(g,O,V)),typeof V){case"string":return S?V:u(V);case"number":return isFinite(V)?String(V):"null";case"boolean":case"null":case"bigint":return String(V);case"object":if(!V)return"null";if(i+=s,$=[],Object.prototype.toString.apply(V)==="[object Array]"){for(M=V.length,N=0;N<M;N+=1)$[N]=p(N,V)||"null";return H=$.length===0?"[]":i?`[
|
|
2
2
|
`+i+$.join(`,
|
|
3
3
|
`+i)+`
|
|
4
4
|
`+x+"]":"["+$.join(",")+"]",i=x,H}if(o&&typeof o=="object")for(M=o.length,N=0;N<M;N+=1)typeof o[N]=="string"&&(I=o[N],H=p(I,V),H&&$.push(u(I)+(i?": ":":")+H));else Object.keys(V).forEach(function(k){var F=p(k,V);F&&$.push(u(k)+(i?": ":":")+F)});return H=$.length===0?"{}":i?`{
|
|
5
5
|
`+i+$.join(`,
|
|
6
6
|
`+i)+`
|
|
7
|
-
`+x+"}":"{"+$.join(",")+"}",i=x,H}}typeof n.stringify!="function"&&(n.stringify=function(
|
|
8
|
-
`,r:"\r",t:" "},s,a=function(M){throw{name:"SyntaxError",message:M,at:n,text:s}},o=function(M){return M&&M!==r&&a("Expected '"+M+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r},u=function(){var M,x="";for(r==="-"&&(x="-",o("-"));r>="0"&&r<="9";)x+=r,o();if(r===".")for(x+=".";o()&&r>="0"&&r<="9";)x+=r;if(r==="e"||r==="E")for(x+=r,o(),(r==="-"||r==="+")&&(x+=r,o());r>="0"&&r<="9";)x+=r,o();if(M=+x,!isFinite(M))a("Bad number");else return
|
|
7
|
+
`+x+"}":"{"+$.join(",")+"}",i=x,H}}typeof n.stringify!="function"&&(n.stringify=function(O,g,N){var I;if(i="",s="",typeof N=="number")for(I=0;I<N;I+=1)s+=" ";else typeof N=="string"&&(s=N);if(o=g,g&&typeof g!="function"&&(typeof g!="object"||typeof g.length!="number"))throw new Error("JSON.stringify");return p("",{"":O})})})()})(cs);var Qa=cs.exports,Tn=null;const Xa=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,Ja=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;var za=function(e){var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(e!=null){if(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0),t.alwaysParseAsBig=e.alwaysParseAsBig===!0?e.alwaysParseAsBig:!1,t.useNativeBigInt=e.useNativeBigInt===!0?e.useNativeBigInt:!1,typeof e.constructorAction<"u")if(e.constructorAction==="error"||e.constructorAction==="ignore"||e.constructorAction==="preserve")t.constructorAction=e.constructorAction;else throw new Error(`Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed ${e.constructorAction}`);if(typeof e.protoAction<"u")if(e.protoAction==="error"||e.protoAction==="ignore"||e.protoAction==="preserve")t.protoAction=e.protoAction;else throw new Error(`Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed ${e.protoAction}`)}var n,r,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
8
|
+
`,r:"\r",t:" "},s,a=function(M){throw{name:"SyntaxError",message:M,at:n,text:s}},o=function(M){return M&&M!==r&&a("Expected '"+M+"' instead of '"+r+"'"),r=s.charAt(n),n+=1,r},u=function(){var M,x="";for(r==="-"&&(x="-",o("-"));r>="0"&&r<="9";)x+=r,o();if(r===".")for(x+=".";o()&&r>="0"&&r<="9";)x+=r;if(r==="e"||r==="E")for(x+=r,o(),(r==="-"||r==="+")&&(x+=r,o());r>="0"&&r<="9";)x+=r,o();if(M=+x,!isFinite(M))a("Bad number");else return Tn==null&&(Tn=fs),x.length>15?t.storeAsString?x:t.useNativeBigInt?BigInt(x):new Tn(x):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(M):new Tn(M):M},p=function(){var M,x,$="",V;if(r==='"')for(var S=n;o();){if(r==='"')return n-1>S&&($+=s.substring(S,n-1)),o(),$;if(r==="\\"){if(n-1>S&&($+=s.substring(S,n-1)),o(),r==="u"){for(V=0,x=0;x<4&&(M=parseInt(o(),16),!!isFinite(M));x+=1)V=V*16+M;$+=String.fromCharCode(V)}else if(typeof i[r]=="string")$+=i[r];else break;S=n}}a("Bad string")},O=function(){for(;r&&r<=" ";)o()},g=function(){switch(r){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}a("Unexpected '"+r+"'")},N,I=function(){var M=[];if(r==="["){if(o("["),O(),r==="]")return o("]"),M;for(;r;){if(M.push(N()),O(),r==="]")return o("]"),M;o(","),O()}}a("Bad array")},H=function(){var M,x=Object.create(null);if(r==="{"){if(o("{"),O(),r==="}")return o("}"),x;for(;r;){if(M=p(),O(),o(":"),t.strict===!0&&Object.hasOwnProperty.call(x,M)&&a('Duplicate key "'+M+'"'),Xa.test(M)===!0?t.protoAction==="error"?a("Object contains forbidden prototype property"):t.protoAction==="ignore"?N():x[M]=N():Ja.test(M)===!0?t.constructorAction==="error"?a("Object contains forbidden constructor property"):t.constructorAction==="ignore"?N():x[M]=N():x[M]=N(),O(),r==="}")return o("}"),x;o(","),O()}}a("Bad object")};return N=function(){switch(O(),r){case"{":return H();case"[":return I();case'"':return p();case"-":return u();default:return r>="0"&&r<="9"?u():g()}},function(M,x){var $;return s=M+"",n=0,r=" ",$=N(),O(),r&&a("Syntax error"),typeof x=="function"?function V(S,k){var F,L=S[k];return L&&typeof L=="object"&&Object.keys(L).forEach(function(P){F=V(L,P),F!==void 0?L[P]=F:delete L[P]}),x.call(S,k,L)}({"":$},""):$}},Za=za,ds=Qa.stringify,ps=Za;On.exports=function(e){return{parse:ps(e),stringify:ds}},On.exports.parse=ps(),On.exports.stringify=ds;var eo=On.exports;const ms=ls(eo),to=e=>{try{return JSON.parse(e)}catch{console.error("An error occurred while parsing the JSON string")}},no=(e,t)=>{try{return typeof e=="string"?e:JSON.stringify(e,null,t)}catch(n){return console.error(n),"stringify error"}},ro=e=>{if(typeof e!="string")return!1;try{const t=JSON.parse(e);return typeof t=="object"&&t!==null}catch{return!1}},_s=ms,hs=ms({useNativeBigInt:!0}),so=(e,t)=>{try{return hs.parse(e,t)}catch{try{return _s.parse(e,t)}catch{return JSON.parse(e,t)}}},io=(e,t,n)=>{try{return hs.stringify(e,t,n)}catch{return _s.stringify(e,t,n)}},ao=e=>{if(typeof e!="number"||isNaN(e)||e<0)throw new Error("Invalid input: input should be a non-negative number");if(e===0)return"0 Bytes";const t=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${(e/1024**n).toFixed(1)} ${t[n]}`};var Zn=(e=>(e[e.ms=1]="ms",e[e.s=1e3]="s",e[e.m=6e4]="m",e[e.h=36e5]="h",e[e.d=864e5]="d",e[e.B=1]="B",e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e))(Zn||{});const oo=(e,t)=>{if(!(t in Zn))throw new Error(`Invalid unit: ${t}`);return e*Zn[t]},gs=(e,t)=>{const n=document.createElement("a");n.style.display="none",n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},Es=(e,t)=>{const n=window.URL.createObjectURL(new Blob([e]));gs(n,t),window.URL.revokeObjectURL(n)};var Ns={exports:{}};/* @license
|
|
9
9
|
Papa Parse
|
|
10
10
|
v5.5.3
|
|
11
11
|
https://github.com/mholt/PapaParse
|
|
12
12
|
License: MIT
|
|
13
|
-
*/(function(e,t){((n,r)=>{e.exports=r()})(os,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,s=!r.document&&!!r.postMessage,a=r.IS_PAPA_WORKER||!1,o={},u=0,p={};function
|
|
13
|
+
*/(function(e,t){((n,r)=>{e.exports=r()})(os,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,s=!r.document&&!!r.postMessage,a=r.IS_PAPA_WORKER||!1,o={},u=0,p={};function O(_){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(h){var T=F(h);T.chunkSize=parseInt(T.chunkSize),h.step||h.chunk||(T.chunkSize=null),this._handle=new M(T),(this._handle.streamer=this)._config=T}).call(this,_),this.parseChunk=function(h,T){var j=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<j){let K=this._config.newline;K||(q=this._config.quoteChar||'"',K=this._handle.guessLineEndings(h,q)),h=[...h.split(K).slice(j)].join(K)}this.isFirstChunk&&P(this._config.beforeFirstChunk)&&(q=this._config.beforeFirstChunk(h))!==void 0&&(h=q),this.isFirstChunk=!1,this._halted=!1;var j=this._partialLine+h,q=(this._partialLine="",this._handle.parse(j,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(h=q.meta.cursor,j=(this._finished||(this._partialLine=j.substring(h-this._baseIndex),this._baseIndex=h),q&&q.data&&(this._rowCount+=q.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),a)r.postMessage({results:q,workerId:p.WORKER_ID,finished:j});else if(P(this._config.chunk)&&!T){if(this._config.chunk(q,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=q=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(q.data),this._completeResults.errors=this._completeResults.errors.concat(q.errors),this._completeResults.meta=q.meta),this._completed||!j||!P(this._config.complete)||q&&q.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),j||q&&q.meta.paused||this._nextChunk(),q}this._halted=!0},this._sendError=function(h){P(this._config.error)?this._config.error(h):a&&this._config.error&&r.postMessage({workerId:p.WORKER_ID,error:h,finished:!1})}}function g(_){var h;(_=_||{}).chunkSize||(_.chunkSize=p.RemoteChunkSize),O.call(this,_),this._nextChunk=s?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(T){this._input=T,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(h=new XMLHttpRequest,this._config.withCredentials&&(h.withCredentials=this._config.withCredentials),s||(h.onload=L(this._chunkLoaded,this),h.onerror=L(this._chunkError,this)),h.open(this._config.downloadRequestBody?"POST":"GET",this._input,!s),this._config.downloadRequestHeaders){var T,j=this._config.downloadRequestHeaders;for(T in j)h.setRequestHeader(T,j[T])}var q;this._config.chunkSize&&(q=this._start+this._config.chunkSize-1,h.setRequestHeader("Range","bytes="+this._start+"-"+q));try{h.send(this._config.downloadRequestBody)}catch(K){this._chunkError(K.message)}s&&h.status===0&&this._chunkError()}},this._chunkLoaded=function(){h.readyState===4&&(h.status<200||400<=h.status?this._chunkError():(this._start+=this._config.chunkSize||h.responseText.length,this._finished=!this._config.chunkSize||this._start>=(T=>(T=T.getResponseHeader("Content-Range"))!==null?parseInt(T.substring(T.lastIndexOf("/")+1)):-1)(h),this.parseChunk(h.responseText)))},this._chunkError=function(T){T=h.statusText||T,this._sendError(new Error(T))}}function N(_){(_=_||{}).chunkSize||(_.chunkSize=p.LocalChunkSize),O.call(this,_);var h,T,j=typeof FileReader<"u";this.stream=function(q){this._input=q,T=q.slice||q.webkitSlice||q.mozSlice,j?((h=new FileReader).onload=L(this._chunkLoaded,this),h.onerror=L(this._chunkError,this)):h=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var q=this._input,K=(this._config.chunkSize&&(K=Math.min(this._start+this._config.chunkSize,this._input.size),q=T.call(q,this._start,K)),h.readAsText(q,this._config.encoding));j||this._chunkLoaded({target:{result:K}})},this._chunkLoaded=function(q){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(q.target.result)},this._chunkError=function(){this._sendError(h.error)}}function I(_){var h;O.call(this,_=_||{}),this.stream=function(T){return h=T,this._nextChunk()},this._nextChunk=function(){var T,j;if(!this._finished)return T=this._config.chunkSize,h=T?(j=h.substring(0,T),h.substring(T)):(j=h,""),this._finished=!h,this.parseChunk(j)}}function H(_){O.call(this,_=_||{});var h=[],T=!0,j=!1;this.pause=function(){O.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){O.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(q){this._input=q,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){j&&h.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),h.length?this.parseChunk(h.shift()):T=!0},this._streamData=L(function(q){try{h.push(typeof q=="string"?q:q.toString(this._config.encoding)),T&&(T=!1,this._checkIsFinished(),this.parseChunk(h.shift()))}catch(K){this._streamError(K)}},this),this._streamError=L(function(q){this._streamCleanUp(),this._sendError(q)},this),this._streamEnd=L(function(){this._streamCleanUp(),j=!0,this._streamData("")},this),this._streamCleanUp=L(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function M(_){var h,T,j,q,K=Math.pow(2,53),oe=-K,pe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,me=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,ee=this,ce=0,z=0,_e=!1,re=!1,Z=[],X={data:[],errors:[],meta:{}};function W(te){return _.skipEmptyLines==="greedy"?te.join("").trim()==="":te.length===1&&te[0].length===0}function ge(){if(X&&j&&(De("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),j=!1),_.skipEmptyLines&&(X.data=X.data.filter(function(d){return!W(d)})),ye()){let d=function(E,A){P(_.transformHeader)&&(E=_.transformHeader(E,A)),Z.push(E)};if(X)if(Array.isArray(X.data[0])){for(var te=0;ye()&&te<X.data.length;te++)X.data[te].forEach(d);X.data.splice(0,1)}else X.data.forEach(d)}function ie(d,E){for(var A=_.header?{}:[],m=0;m<d.length;m++){var v=m,D=d[m],D=((y,b)=>(R=>(_.dynamicTypingFunction&&_.dynamicTyping[R]===void 0&&(_.dynamicTyping[R]=_.dynamicTypingFunction(R)),(_.dynamicTyping[R]||_.dynamicTyping)===!0))(y)?b==="true"||b==="TRUE"||b!=="false"&&b!=="FALSE"&&((R=>{if(pe.test(R)&&(R=parseFloat(R),oe<R&&R<K))return 1})(b)?parseFloat(b):me.test(b)?new Date(b):b===""?null:b):b)(v=_.header?m>=Z.length?"__parsed_extra":Z[m]:v,D=_.transform?_.transform(D,v):D);v==="__parsed_extra"?(A[v]=A[v]||[],A[v].push(D)):A[v]=D}return _.header&&(m>Z.length?De("FieldMismatch","TooManyFields","Too many fields: expected "+Z.length+" fields but parsed "+m,z+E):m<Z.length&&De("FieldMismatch","TooFewFields","Too few fields: expected "+Z.length+" fields but parsed "+m,z+E)),A}var c;X&&(_.header||_.dynamicTyping||_.transform)&&(c=1,!X.data.length||Array.isArray(X.data[0])?(X.data=X.data.map(ie),c=X.data.length):X.data=ie(X.data,0),_.header&&X.meta&&(X.meta.fields=Z),z+=c)}function ye(){return _.header&&Z.length===0}function De(te,ie,c,d){te={type:te,code:ie,message:c},d!==void 0&&(te.row=d),X.errors.push(te)}P(_.step)&&(q=_.step,_.step=function(te){X=te,ye()?ge():(ge(),X.data.length!==0&&(ce+=te.data.length,_.preview&&ce>_.preview?T.abort():(X.data=X.data[0],q(X,ee))))}),this.parse=function(te,ie,c){var d=_.quoteChar||'"',d=(_.newline||(_.newline=this.guessLineEndings(te,d)),j=!1,_.delimiter?P(_.delimiter)&&(_.delimiter=_.delimiter(te),X.meta.delimiter=_.delimiter):((d=((E,A,m,v,D)=>{var y,b,R,l;D=D||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var f=0;f<D.length;f++){for(var C,B=D[f],Y=0,J=0,Q=0,w=(R=void 0,new $({comments:v,delimiter:B,newline:A,preview:10}).parse(E)),U=0;U<w.data.length;U++)m&&W(w.data[U])?Q++:(C=w.data[U].length,J+=C,R===void 0?R=C:0<C&&(Y+=Math.abs(C-R),R=C));0<w.data.length&&(J/=w.data.length-Q),(b===void 0||Y<=b)&&(l===void 0||l<J)&&1.99<J&&(b=Y,y=B,l=J)}return{successful:!!(_.delimiter=y),bestDelimiter:y}})(te,_.newline,_.skipEmptyLines,_.comments,_.delimitersToGuess)).successful?_.delimiter=d.bestDelimiter:(j=!0,_.delimiter=p.DefaultDelimiter),X.meta.delimiter=_.delimiter),F(_));return _.preview&&_.header&&d.preview++,h=te,T=new $(d),X=T.parse(h,ie,c),ge(),_e?{meta:{paused:!0}}:X||{meta:{paused:!1}}},this.paused=function(){return _e},this.pause=function(){_e=!0,T.abort(),h=P(_.chunk)?"":h.substring(T.getCharIndex())},this.resume=function(){ee.streamer._halted?(_e=!1,ee.streamer.parseChunk(h,!0)):setTimeout(ee.resume,3)},this.aborted=function(){return re},this.abort=function(){re=!0,T.abort(),X.meta.aborted=!0,P(_.complete)&&_.complete(X),h=""},this.guessLineEndings=function(E,d){E=E.substring(0,1048576);var d=new RegExp(x(d)+"([^]*?)"+x(d),"gm"),c=(E=E.replace(d,"")).split("\r"),d=E.split(`
|
|
14
14
|
`),E=1<d.length&&d[0].length<c[0].length;if(c.length===1||E)return`
|
|
15
15
|
`;for(var A=0,m=0;m<c.length;m++)c[m][0]===`
|
|
16
16
|
`&&A++;return A>=c.length/2?`\r
|
|
17
|
-
`:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $(_){var h=(_=_||{}).delimiter,
|
|
18
|
-
`&&
|
|
19
|
-
`&&(
|
|
20
|
-
`);var z=0,_e=!1;this.parse=function(re,Z,
|
|
21
|
-
`,oe='"',pe=oe+oe,me=!1,ee=null,ce=!1,z=((()=>{if(typeof h=="object"){if(typeof h.delimiter!="string"||p.BAD_DELIMITERS.filter(function(Z){return h.delimiter.indexOf(Z)!==-1}).length||(q=h.delimiter),typeof h.quotes!="boolean"&&typeof h.quotes!="function"&&!Array.isArray(h.quotes)||(
|
|
22
|
-
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!s&&!!r.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=$,p.ParserHandle=M,p.NetworkStreamer=g,p.FileStreamer=N,p.StringStreamer=I,p.ReadableStreamStreamer=H,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var h=_.config||{},
|
|
17
|
+
`:"\r"}}function x(_){return _.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $(_){var h=(_=_||{}).delimiter,T=_.newline,j=_.comments,q=_.step,K=_.preview,oe=_.fastMode,pe=null,me=!1,ee=_.quoteChar==null?'"':_.quoteChar,ce=ee;if(_.escapeChar!==void 0&&(ce=_.escapeChar),(typeof h!="string"||-1<p.BAD_DELIMITERS.indexOf(h))&&(h=","),j===h)throw new Error("Comment character same as delimiter");j===!0?j="#":(typeof j!="string"||-1<p.BAD_DELIMITERS.indexOf(j))&&(j=!1),T!==`
|
|
18
|
+
`&&T!=="\r"&&T!==`\r
|
|
19
|
+
`&&(T=`
|
|
20
|
+
`);var z=0,_e=!1;this.parse=function(re,Z,X){if(typeof re!="string")throw new Error("Input must be a string");var W=re.length,ge=h.length,ye=T.length,De=j.length,te=P(q),ie=[],c=[],d=[],E=z=0;if(!re)return Y();if(oe||oe!==!1&&re.indexOf(ee)===-1){for(var A=re.split(T),m=0;m<A.length;m++){if(d=A[m],z+=d.length,m!==A.length-1)z+=T.length;else if(X)return Y();if(!j||d.substring(0,De)!==j){if(te){if(ie=[],l(d.split(h)),J(),_e)return Y()}else l(d.split(h));if(K&&K<=m)return ie=ie.slice(0,K),Y(!0)}}return Y()}for(var v=re.indexOf(h,z),D=re.indexOf(T,z),y=new RegExp(x(ce)+x(ee),"g"),b=re.indexOf(ee,z);;)if(re[z]===ee)for(b=z,z++;;){if((b=re.indexOf(ee,b+1))===-1)return X||c.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ie.length,index:z}),C();if(b===W-1)return C(re.substring(z,b).replace(y,ee));if(ee===ce&&re[b+1]===ce)b++;else if(ee===ce||b===0||re[b-1]!==ce){v!==-1&&v<b+1&&(v=re.indexOf(h,b+1));var R=f((D=D!==-1&&D<b+1?re.indexOf(T,b+1):D)===-1?v:Math.min(v,D));if(re.substr(b+1+R,ge)===h){d.push(re.substring(z,b).replace(y,ee)),re[z=b+1+R+ge]!==ee&&(b=re.indexOf(ee,z)),v=re.indexOf(h,z),D=re.indexOf(T,z);break}if(R=f(D),re.substring(b+1+R,b+1+R+ye)===T){if(d.push(re.substring(z,b).replace(y,ee)),B(b+1+R+ye),v=re.indexOf(h,z),b=re.indexOf(ee,z),te&&(J(),_e))return Y();if(K&&ie.length>=K)return Y(!0);break}c.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ie.length,index:z}),b++}}else if(j&&d.length===0&&re.substring(z,z+De)===j){if(D===-1)return Y();z=D+ye,D=re.indexOf(T,z),v=re.indexOf(h,z)}else if(v!==-1&&(v<D||D===-1))d.push(re.substring(z,v)),z=v+ge,v=re.indexOf(h,z);else{if(D===-1)break;if(d.push(re.substring(z,D)),B(D+ye),te&&(J(),_e))return Y();if(K&&ie.length>=K)return Y(!0)}return C();function l(Q){ie.push(Q),E=z}function f(Q){var w=0;return w=Q!==-1&&(Q=re.substring(b+1,Q))&&Q.trim()===""?Q.length:w}function C(Q){return X||(Q===void 0&&(Q=re.substring(z)),d.push(Q),z=W,l(d),te&&J()),Y()}function B(Q){z=Q,l(d),d=[],D=re.indexOf(T,z)}function Y(Q){if(_.header&&!Z&&ie.length&&!me){var w=ie[0],U=Object.create(null),ne=new Set(w);let Ee=!1;for(let Fe=0;Fe<w.length;Fe++){let Me=w[Fe];if(U[Me=P(_.transformHeader)?_.transformHeader(Me,Fe):Me]){let Le,We=U[Me];for(;Le=Me+"_"+We,We++,ne.has(Le););ne.add(Le),w[Fe]=Le,U[Me]++,Ee=!0,(pe=pe===null?{}:pe)[Le]=Me}else U[Me]=1,w[Fe]=Me;ne.add(Me)}Ee&&console.warn("Duplicate headers found and renamed."),me=!0}return{data:ie,errors:c,meta:{delimiter:h,linebreak:T,aborted:_e,truncated:!!Q,cursor:E+(Z||0),renamedHeaders:pe}}}function J(){q(Y()),ie=[],c=[]}},this.abort=function(){_e=!0},this.getCharIndex=function(){return z}}function V(_){var h=_.data,T=o[h.workerId],j=!1;if(h.error)T.userError(h.error,h.file);else if(h.results&&h.results.data){var q={abort:function(){j=!0,S(h.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(P(T.userStep)){for(var K=0;K<h.results.data.length&&(T.userStep({data:h.results.data[K],errors:h.results.errors,meta:h.results.meta},q),!j);K++);delete h.results}else P(T.userChunk)&&(T.userChunk(h.results,q,h.file),delete h.results)}h.finished&&!j&&S(h.workerId,h.results)}function S(_,h){var T=o[_];P(T.userComplete)&&T.userComplete(h),T.terminate(),delete o[_]}function k(){throw new Error("Not implemented.")}function F(_){if(typeof _!="object"||_===null)return _;var h,T=Array.isArray(_)?[]:{};for(h in _)T[h]=F(_[h]);return T}function L(_,h){return function(){_.apply(h,arguments)}}function P(_){return typeof _=="function"}return p.parse=function(_,h){var T=(h=h||{}).dynamicTyping||!1;if(P(T)&&(h.dynamicTypingFunction=T,T={}),h.dynamicTyping=T,h.transform=!!P(h.transform)&&h.transform,!h.worker||!p.WORKERS_SUPPORTED)return T=null,p.NODE_STREAM_INPUT,typeof _=="string"?(_=(j=>j.charCodeAt(0)!==65279?j:j.slice(1))(_),T=new(h.download?g:I)(h)):_.readable===!0&&P(_.read)&&P(_.on)?T=new H(h):(r.File&&_ instanceof File||_ instanceof Object)&&(T=new N(h)),T.stream(_);(T=(()=>{var j;return!!p.WORKERS_SUPPORTED&&(j=(()=>{var q=r.URL||r.webkitURL||null,K=n.toString();return p.BLOB_URL||(p.BLOB_URL=q.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",K,")();"],{type:"text/javascript"})))})(),(j=new r.Worker(j)).onmessage=V,j.id=u++,o[j.id]=j)})()).userStep=h.step,T.userChunk=h.chunk,T.userComplete=h.complete,T.userError=h.error,h.step=P(h.step),h.chunk=P(h.chunk),h.complete=P(h.complete),h.error=P(h.error),delete h.worker,T.postMessage({input:_,config:h,workerId:T.id})},p.unparse=function(_,h){var T=!1,j=!0,q=",",K=`\r
|
|
21
|
+
`,oe='"',pe=oe+oe,me=!1,ee=null,ce=!1,z=((()=>{if(typeof h=="object"){if(typeof h.delimiter!="string"||p.BAD_DELIMITERS.filter(function(Z){return h.delimiter.indexOf(Z)!==-1}).length||(q=h.delimiter),typeof h.quotes!="boolean"&&typeof h.quotes!="function"&&!Array.isArray(h.quotes)||(T=h.quotes),typeof h.skipEmptyLines!="boolean"&&typeof h.skipEmptyLines!="string"||(me=h.skipEmptyLines),typeof h.newline=="string"&&(K=h.newline),typeof h.quoteChar=="string"&&(oe=h.quoteChar),typeof h.header=="boolean"&&(j=h.header),Array.isArray(h.columns)){if(h.columns.length===0)throw new Error("Option columns is empty");ee=h.columns}h.escapeChar!==void 0&&(pe=h.escapeChar+oe),h.escapeFormulae instanceof RegExp?ce=h.escapeFormulae:typeof h.escapeFormulae=="boolean"&&h.escapeFormulae&&(ce=/^[=+\-@\t\r].*$/)}})(),new RegExp(x(oe),"g"));if(typeof _=="string"&&(_=JSON.parse(_)),Array.isArray(_)){if(!_.length||Array.isArray(_[0]))return _e(null,_,me);if(typeof _[0]=="object")return _e(ee||Object.keys(_[0]),_,me)}else if(typeof _=="object")return typeof _.data=="string"&&(_.data=JSON.parse(_.data)),Array.isArray(_.data)&&(_.fields||(_.fields=_.meta&&_.meta.fields||ee),_.fields||(_.fields=Array.isArray(_.data[0])?_.fields:typeof _.data[0]=="object"?Object.keys(_.data[0]):[]),Array.isArray(_.data[0])||typeof _.data[0]=="object"||(_.data=[_.data])),_e(_.fields||[],_.data||[],me);throw new Error("Unable to serialize unrecognized input");function _e(Z,X,W){var ge="",ye=(typeof Z=="string"&&(Z=JSON.parse(Z)),typeof X=="string"&&(X=JSON.parse(X)),Array.isArray(Z)&&0<Z.length),De=!Array.isArray(X[0]);if(ye&&j){for(var te=0;te<Z.length;te++)0<te&&(ge+=q),ge+=re(Z[te],te);0<X.length&&(ge+=K)}for(var ie=0;ie<X.length;ie++){var c=(ye?Z:X[ie]).length,d=!1,E=ye?Object.keys(X[ie]).length===0:X[ie].length===0;if(W&&!ye&&(d=W==="greedy"?X[ie].join("").trim()==="":X[ie].length===1&&X[ie][0].length===0),W==="greedy"&&ye){for(var A=[],m=0;m<c;m++){var v=De?Z[m]:m;A.push(X[ie][v])}d=A.join("").trim()===""}if(!d){for(var D=0;D<c;D++){0<D&&!E&&(ge+=q);var y=ye&&De?Z[D]:D;ge+=re(X[ie][y],D)}ie<X.length-1&&(!W||0<c&&!E)&&(ge+=K)}}return ge}function re(Z,X){var W,ge;return Z==null?"":Z.constructor===Date?JSON.stringify(Z).slice(1,25):(ge=!1,ce&&typeof Z=="string"&&ce.test(Z)&&(Z="'"+Z,ge=!0),W=Z.toString().replace(z,pe),(ge=ge||T===!0||typeof T=="function"&&T(Z,X)||Array.isArray(T)&&T[X]||((ye,De)=>{for(var te=0;te<De.length;te++)if(-1<ye.indexOf(De[te]))return!0;return!1})(W,p.BAD_DELIMITERS)||-1<W.indexOf(q)||W.charAt(0)===" "||W.charAt(W.length-1)===" ")?oe+W+oe:W)}},p.RECORD_SEP=String.fromCharCode(30),p.UNIT_SEP=String.fromCharCode(31),p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
|
|
22
|
+
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!s&&!!r.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=$,p.ParserHandle=M,p.NetworkStreamer=g,p.FileStreamer=N,p.StringStreamer=I,p.ReadableStreamStreamer=H,r.jQuery&&((i=r.jQuery).fn.parse=function(_){var h=_.config||{},T=[];return this.each(function(K){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var oe=0;oe<this.files.length;oe++)T.push({file:this.files[oe],inputElem:this,instanceConfig:i.extend({},h)})}),j(),this;function j(){if(T.length===0)P(_.complete)&&_.complete();else{var K,oe,pe,me,ee=T[0];if(P(_.before)){var ce=_.before(ee.file,ee.inputElem);if(typeof ce=="object"){if(ce.action==="abort")return K="AbortError",oe=ee.file,pe=ee.inputElem,me=ce.reason,void(P(_.error)&&_.error({name:K},oe,pe,me));if(ce.action==="skip")return void q();typeof ce.config=="object"&&(ee.instanceConfig=i.extend(ee.instanceConfig,ce.config))}else if(ce==="skip")return void q()}var z=ee.instanceConfig.complete;ee.instanceConfig.complete=function(_e){P(z)&&z(_e,ee.file,ee.inputElem),q()},p.parse(ee.file,ee.instanceConfig)}}function q(){T.splice(0,1),j()}}),a&&(r.onmessage=function(_){_=_.data,p.WORKER_ID===void 0&&_&&(p.WORKER_ID=_.workerId),typeof _.input=="string"?r.postMessage({workerId:p.WORKER_ID,results:p.parse(_.input,_.config),finished:!0}):(r.File&&_.input instanceof File||_.input instanceof Object)&&(_=p.parse(_.input,_.config))&&r.postMessage({workerId:p.WORKER_ID,results:_,finished:!0})}),(g.prototype=Object.create(O.prototype)).constructor=g,(N.prototype=Object.create(O.prototype)).constructor=N,(I.prototype=Object.create(I.prototype)).constructor=I,(H.prototype=Object.create(O.prototype)).constructor=H,p})})(Ns);var lo=Ns.exports;const co=ls(lo);/*!
|
|
23
23
|
* shared v9.14.4
|
|
24
24
|
* (c) 2025 kazuya kawaguchi
|
|
25
25
|
* Released under the MIT License.
|
|
26
|
-
*/const ot=typeof window<"u";let nt,At;if(process.env.NODE_ENV!=="production"){const e=ot&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(nt=t=>{e.mark(t)},At=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const uo=/\{([0-9a-zA-Z]+)\}/g;function er(e,...t){return t.length===1&&ue(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(uo,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const dt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fo=(e,t,n)=>po({l:e,k:t,s:n}),po=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ae=e=>typeof e=="number"&&isFinite(e),mo=e=>
|
|
27
|
-
`)}function Sn(e){let t=e;return()=>++t}function Pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Is={};function Ss(e){Is[e]||(Is[e]=!0,Pe(e))}function tr(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const Ln=e=>!ue(e)||be(e);function
|
|
26
|
+
*/const ot=typeof window<"u";let nt,At;if(process.env.NODE_ENV!=="production"){const e=ot&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(nt=t=>{e.mark(t)},At=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const uo=/\{([0-9a-zA-Z]+)\}/g;function er(e,...t){return t.length===1&&ue(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(uo,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const dt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),fo=(e,t,n)=>po({l:e,k:t,s:n}),po=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ae=e=>typeof e=="number"&&isFinite(e),mo=e=>Os(e)==="[object Date]",yt=e=>Os(e)==="[object RegExp]",In=e=>ae(e)&&Object.keys(e).length===0,$e=Object.assign,_o=Object.create,Ne=(e=null)=>_o(e);let vs;const ht=()=>vs||(vs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Ne());function bs(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const ho=Object.prototype.hasOwnProperty;function lt(e,t){return ho.call(e,t)}const be=Array.isArray,ve=e=>typeof e=="function",G=e=>typeof e=="string",le=e=>typeof e=="boolean",ue=e=>e!==null&&typeof e=="object",go=e=>ue(e)&&ve(e.then)&&ve(e.catch),ys=Object.prototype.toString,Os=e=>ys.call(e),ae=e=>{if(!ue(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Eo=e=>e==null?"":be(e)||ae(e)&&e.toString===ys?JSON.stringify(e,null,2):String(e);function No(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const Ts=2;function vo(e,t=0,n=e.length){const r=e.split(/\r?\n/);let i=0;const s=[];for(let a=0;a<r.length;a++)if(i+=r[a].length+1,i>=t){for(let o=a-Ts;o<=a+Ts||n>i;o++){if(o<0||o>=r.length)continue;const u=o+1;s.push(`${u}${" ".repeat(3-String(u).length)}| ${r[o]}`);const p=r[o].length;if(o===a){const O=t-(i-p)+1,g=Math.max(1,n>i?p-O:n-t);s.push(" | "+" ".repeat(O)+"^".repeat(g))}else if(o>a){if(n>i){const O=Math.max(Math.min(n-i,p),1);s.push(" | "+"^".repeat(O))}i+=p+1}}break}return s.join(`
|
|
27
|
+
`)}function Sn(e){let t=e;return()=>++t}function Pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Is={};function Ss(e){Is[e]||(Is[e]=!0,Pe(e))}function tr(){const e=new Map;return{events:e,on(n,r){const i=e.get(n);i&&i.push(r)||e.set(n,[r])},off(n,r){const i=e.get(n);i&&i.splice(i.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(i=>i(r)),(e.get("*")||[]).slice().map(i=>i(n,r))}}}const Ln=e=>!ue(e)||be(e);function Dn(e,t){if(Ln(e)||Ln(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:i}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(ue(r[s])&&!ue(i[s])&&(i[s]=Array.isArray(r[s])?[]:Ne()),Ln(i[s])||Ln(r[s])?i[s]=r[s]:n.push({src:r[s],des:i[s]}))})}}/*!
|
|
28
28
|
* message-compiler v9.14.4
|
|
29
29
|
* (c) 2025 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/function bo(e,t,n){return{line:e,column:t,offset:n}}function
|
|
32
|
-
`,Ro=String.fromCharCode(8232),Co=String.fromCharCode(8233);function Po(e){const t=e;let n=0,r=1,i=1,s=0;const a=P=>t[P]===Ao&&t[P+1]===He,o=P=>t[P]===He,u=P=>t[P]===Co,p=P=>t[P]===Ro,T=P=>a(P)||o(P)||u(P)||p(P),g=()=>n,N=()=>r,I=()=>i,H=()=>s,M=P=>a(P)||u(P)||p(P)?He:t[P],x=()=>M(n),$=()=>M(n+s);function V(){return s=0,T(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+s)&&s++,s++,t[n+s]}function k(){n=0,r=1,i=1,s=0}function F(P=0){s=P}function L(){const P=n+s;for(;P!==n;)V();s=0}return{index:g,line:N,column:I,peekOffset:H,charAt:M,currentChar:x,currentPeek:$,next:V,peek:S,reset:k,resetPeek:F,skipToPeek:L}}const Tt=void 0,ko=".",Rs="'",Fo="tokenizer";function Mo(e,t={}){const n=t.location!==!1,r=Po(e),i=()=>r.index(),s=()=>bo(r.line(),r.column(),r.index()),a=s(),o=i(),u={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:T}=t;function g(l,f,C,...W){const Y=p();if(f.column+=C,f.offset+=C,T){const Q=n?Dn(Y.startLoc,f):null,X=Wt(l,Q,{domain:Fo,args:W});T(X)}}function N(l,f,C){l.endLoc=s(),l.currentType=f;const W={type:f};return n&&(W.loc=Dn(l.startLoc,l.endLoc)),C!=null&&(W.value=C),W}const I=l=>N(l,14);function H(l,f){return l.currentChar()===f?(l.next(),f):(g(se.EXPECTED_TOKEN,s(),0,f),"")}function M(l){let f="";for(;l.currentPeek()===gt||l.currentPeek()===He;)f+=l.currentPeek(),l.peek();return f}function x(l){const f=M(l);return l.skipToPeek(),f}function $(l){if(l===Tt)return!1;const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function V(l){if(l===Tt)return!1;const f=l.charCodeAt(0);return f>=48&&f<=57}function S(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const W=$(l.currentPeek());return l.resetPeek(),W}function k(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const W=l.currentPeek()==="-"?l.peek():l.currentPeek(),Y=V(W);return l.resetPeek(),Y}function F(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const W=l.currentPeek()===Rs;return l.resetPeek(),W}function L(l,f){const{currentType:C}=f;if(C!==8)return!1;M(l);const W=l.currentPeek()===".";return l.resetPeek(),W}function P(l,f){const{currentType:C}=f;if(C!==9)return!1;M(l);const W=$(l.currentPeek());return l.resetPeek(),W}function _(l,f){const{currentType:C}=f;if(!(C===8||C===12))return!1;M(l);const W=l.currentPeek()===":";return l.resetPeek(),W}function h(l,f){const{currentType:C}=f;if(C!==10)return!1;const W=()=>{const Q=l.currentPeek();return Q==="{"?$(l.peek()):Q==="@"||Q==="%"||Q==="|"||Q===":"||Q==="."||Q===gt||!Q?!1:Q===He?(l.peek(),W()):q(l,!1)},Y=W();return l.resetPeek(),Y}function O(l){M(l);const f=l.currentPeek()==="|";return l.resetPeek(),f}function j(l){const f=M(l),C=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:C,hasSpace:f.length>0}}function q(l,f=!0){const C=(Y=!1,Q="",X=!1)=>{const D=l.currentPeek();return D==="{"?Q==="%"?!1:Y:D==="@"||!D?Q==="%"?!0:Y:D==="%"?(l.peek(),C(Y,"%",!0)):D==="|"?Q==="%"||X?!0:!(Q===gt||Q===He):D===gt?(l.peek(),C(!0,gt,X)):D===He?(l.peek(),C(!0,He,X)):!0},W=C();return f&&l.resetPeek(),W}function K(l,f){const C=l.currentChar();return C===Tt?Tt:f(C)?(l.next(),C):null}function oe(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function pe(l){return K(l,oe)}function me(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function ee(l){return K(l,me)}function ce(l){const f=l.charCodeAt(0);return f>=48&&f<=57}function z(l){return K(l,ce)}function _e(l){const f=l.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function re(l){return K(l,_e)}function Z(l){let f="",C="";for(;f=z(l);)C+=f;return C}function J(l){x(l);const f=l.currentChar();return f!=="%"&&g(se.EXPECTED_TOKEN,s(),0,f),l.next(),"%"}function B(l){let f="";for(;;){const C=l.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if(q(l))f+=C,l.next();else break;else if(C===gt||C===He)if(q(l))f+=C,l.next();else{if(O(l))break;f+=C,l.next()}else f+=C,l.next()}return f}function ge(l){x(l);let f="",C="";for(;f=ee(l);)C+=f;return l.currentChar()===Tt&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ye(l){x(l);let f="";return l.currentChar()==="-"?(l.next(),f+=`-${Z(l)}`):f+=Z(l),l.currentChar()===Tt&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f}function we(l){return l!==Rs&&l!==He}function te(l){x(l),H(l,"'");let f="",C="";for(;f=K(l,we);)f==="\\"?C+=ie(l):C+=f;const W=l.currentChar();return W===He||W===Tt?(g(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),W===He&&(l.next(),H(l,"'")),C):(H(l,"'"),C)}function ie(l){const f=l.currentChar();switch(f){case"\\":case"'":return l.next(),`\\${f}`;case"u":return c(l,f,4);case"U":return c(l,f,6);default:return g(se.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function c(l,f,C){H(l,f);let W="";for(let Y=0;Y<C;Y++){const Q=re(l);if(!Q){g(se.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${W}${l.currentChar()}`);break}W+=Q}return`\\${f}${W}`}function d(l){return l!=="{"&&l!=="}"&&l!==gt&&l!==He}function E(l){x(l);let f="",C="";for(;f=K(l,d);)C+=f;return C}function A(l){let f="",C="";for(;f=pe(l);)C+=f;return C}function m(l){const f=C=>{const W=l.currentChar();return W==="{"||W==="%"||W==="@"||W==="|"||W==="("||W===")"||!W||W===gt?C:(C+=W,l.next(),f(C))};return f("")}function v(l){x(l);const f=H(l,"|");return x(l),f}function w(l,f){let C=null;switch(l.currentChar()){case"{":return f.braceNest>=1&&g(se.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),C=N(f,2,"{"),x(l),f.braceNest++,C;case"}":return f.braceNest>0&&f.currentType===2&&g(se.EMPTY_PLACEHOLDER,s(),0),l.next(),C=N(f,3,"}"),f.braceNest--,f.braceNest>0&&x(l),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),C;case"@":return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=y(l,f)||I(f),f.braceNest=0,C;default:{let Y=!0,Q=!0,X=!0;if(O(l))return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,b(l,f);if(Y=S(l,f))return C=N(f,5,ge(l)),x(l),C;if(Q=k(l,f))return C=N(f,6,ye(l)),x(l),C;if(X=F(l,f))return C=N(f,7,te(l)),x(l),C;if(!Y&&!Q&&!X)return C=N(f,13,E(l)),g(se.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),x(l),C;break}}return C}function y(l,f){const{currentType:C}=f;let W=null;const Y=l.currentChar();switch((C===8||C===9||C===12||C===10)&&(Y===He||Y===gt)&&g(se.INVALID_LINKED_FORMAT,s(),0),Y){case"@":return l.next(),W=N(f,8,"@"),f.inLinked=!0,W;case".":return x(l),l.next(),N(f,9,".");case":":return x(l),l.next(),N(f,10,":");default:return O(l)?(W=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,W):L(l,f)||_(l,f)?(x(l),y(l,f)):P(l,f)?(x(l),N(f,12,A(l))):h(l,f)?(x(l),Y==="{"?w(l,f)||W:N(f,11,m(l))):(C===8&&g(se.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,b(l,f))}}function b(l,f){let C={type:14};if(f.braceNest>0)return w(l,f)||I(f);if(f.inLinked)return y(l,f)||I(f);switch(l.currentChar()){case"{":return w(l,f)||I(f);case"}":return g(se.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(f,3,"}");case"@":return y(l,f)||I(f);default:{if(O(l))return C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;const{isModulo:Y,hasSpace:Q}=j(l);if(Y)return Q?N(f,0,B(l)):N(f,4,J(l));if(q(l))return N(f,0,B(l));break}}return C}function R(){const{currentType:l,offset:f,startLoc:C,endLoc:W}=u;return u.lastType=l,u.lastOffset=f,u.lastStartLoc=C,u.lastEndLoc=W,u.offset=i(),u.startLoc=s(),r.currentChar()===Tt?N(u,14):b(r,u)}return{nextToken:R,currentOffset:i,currentPosition:s,context:p}}const Vo="parser",xo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Uo(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function $o(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,n){const h=t?Dn(F,_):null,O=Wt(k,h,{domain:Vo,args:P});n(O)}}function s(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,r){const h=t?Dn(F,_):null;r(Io(k,h,P))}}function a(S,k,F){const L={type:S};return t&&(L.start=k,L.end=k,L.loc={start:F,end:F}),L}function o(S,k,F,L){L&&(S.type=L),t&&(S.end=k,S.loc&&(S.loc.end=F))}function u(S,k){const F=S.context(),L=a(3,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function p(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(5,L,P);return _.index=parseInt(k,10),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function T(S,k,F){const L=S.context(),{lastOffset:P,lastStartLoc:_}=L,h=a(4,P,_);return h.key=k,F===!0&&(h.modulo=!0),S.nextToken(),o(h,S.currentOffset(),S.currentPosition()),h}function g(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(9,L,P);return _.value=k.replace(xo,Uo),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function N(S){const k=S.nextToken(),F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(8,L,P);return k.type!==12?(i(S,se.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),_.value="",o(_,L,P),{nextConsumeToken:k,node:_}):(k.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,ct(k)),_.value=k.value||"",o(_,S.currentOffset(),S.currentPosition()),{node:_})}function I(S,k){const F=S.context(),L=a(7,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function H(S){const k=S.context(),F=a(6,k.offset,k.startLoc);let L=S.nextToken();if(L.type===9){const P=N(S);F.modifier=P.node,L=P.nextConsumeToken||S.nextToken()}switch(L.type!==10&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),L=S.nextToken(),L.type===2&&(L=S.nextToken()),L.type){case 11:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=I(S,L.value||"");break;case 5:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=T(S,L.value||"");break;case 6:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=p(S,L.value||"");break;case 7:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=g(S,L.value||"");break;default:{i(S,se.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const P=S.context(),_=a(7,P.offset,P.startLoc);return _.value="",o(_,P.offset,P.startLoc),F.key=_,o(F,P.offset,P.startLoc),{nextConsumeToken:L,node:F}}}return o(F,S.currentOffset(),S.currentPosition()),{node:F}}function M(S){const k=S.context(),F=k.currentType===1?S.currentOffset():k.offset,L=k.currentType===1?k.endLoc:k.startLoc,P=a(2,F,L);P.items=[];let _=null,h=null;do{const q=_||S.nextToken();switch(_=null,q.type){case 0:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(u(S,q.value||""));break;case 6:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(p(S,q.value||""));break;case 4:h=!0;break;case 5:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(T(S,q.value||"",!!h)),h&&(s(S,An.USE_MODULO_SYNTAX,k.lastStartLoc,0,ct(q)),h=null);break;case 7:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(g(S,q.value||""));break;case 8:{const K=H(S);P.items.push(K.node),_=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const O=k.currentType===1?k.lastOffset:S.currentOffset(),j=k.currentType===1?k.lastEndLoc:S.currentPosition();return o(P,O,j),P}function x(S,k,F,L){const P=S.context();let _=L.items.length===0;const h=a(1,k,F);h.cases=[],h.cases.push(L);do{const O=M(S);_||(_=O.items.length===0),h.cases.push(O)}while(P.currentType!==14);return _&&i(S,se.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),o(h,S.currentOffset(),S.currentPosition()),h}function $(S){const k=S.context(),{offset:F,startLoc:L}=k,P=M(S);return k.currentType===14?P:x(S,F,L,P)}function V(S){const k=Mo(S,ws({},e)),F=k.context(),L=a(0,F.offset,F.startLoc);return t&&L.loc&&(L.loc.source=S),L.body=$(k),e.onCacheKey&&(L.cacheKey=e.onCacheKey(S)),F.currentType!==14&&i(k,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,S[F.offset]||""),o(L,k.currentOffset(),k.currentPosition()),L}return{parse:V}}function ct(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function qo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Cs(e,t){for(let n=0;n<e.length;n++)nr(e[n],t)}function nr(e,t){switch(e.type){case 1:Cs(e.cases,t),t.helper("plural");break;case 2:Cs(e.items,t);break;case 6:{nr(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Wo(e,t={}){const n=qo(e);n.helper("normalize"),e.body&&nr(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Bo(e){const t=e.body;return t.type===2?Ps(t):t.cases.forEach(n=>Ps(n)),e}function Ps(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=As(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ho="minifier";function Bt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Bt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Bt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Bt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Bt(t.key),t.k=t.key,delete t.key,t.modifier&&(Bt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Wt(se.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ho,args:[e.type]})}delete e.type}const jo="parser";function Go(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,a=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const u=()=>o;function p(x,$){o.code+=x}function T(x,$=!0){const V=$?i:"";p(s?V+" ".repeat(x):V)}function g(x=!0){const $=++o.indentLevel;x&&T($)}function N(x=!0){const $=--o.indentLevel;x&&T($)}function I(){T(o.indentLevel)}return{context:u,push:p,indent:g,deindent:N,newline:I,helper:x=>`_${x}`,needIndent:()=>o.needIndent}}function Ko(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ht(e,t.key),t.modifier?(e.push(", "),Ht(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yo(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Ht(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Xo(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Ht(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Jo(e,t){t.body?Ht(e,t.body):e.push("null")}function Ht(e,t){const{helper:n}=e;switch(t.type){case 0:Jo(e,t);break;case 1:Xo(e,t);break;case 2:Yo(e,t);break;case 6:Ko(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Wt(se.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jo,args:[t.type]})}}const Qo=(e,t={})=>{const n=Ds(t.mode)?t.mode:"normal",r=Ds(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
33
|
-
`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=Go(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:a});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(a),o.length>0&&(u.push(`const { ${As(o.map(g=>`${g}: _${g}`),", ")} } = ctx`),u.newline()),u.push("return "),Ht(u,e),u.deindent(a),u.push("}"),delete e.helpers;const{code:p,map:
|
|
31
|
+
*/function bo(e,t,n){return{line:e,column:t,offset:n}}function wn(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const yo=/\{([0-9a-zA-Z]+)\}/g;function Ls(e,...t){return t.length===1&&Oo(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(yo,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Ds=Object.assign,ws=e=>typeof e=="string",Oo=e=>e!==null&&typeof e=="object";function As(e,t=""){return e.reduce((n,r,i)=>i===0?n+r:n+t+r,"")}const An={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},To={[An.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Io(e,t,...n){const r=Ls(To[e]||"",...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const se={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},So={[se.EXPECTED_TOKEN]:"Expected token: '{0}'",[se.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[se.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[se.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[se.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[se.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[se.EMPTY_PLACEHOLDER]:"Empty placeholder",[se.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[se.INVALID_LINKED_FORMAT]:"Invalid linked format",[se.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[se.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[se.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[se.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[se.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[se.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Bt(e,t,n={}){const{domain:r,messages:i,args:s}=n,a=Ls((i||So)[e]||"",...s||[]),o=new SyntaxError(String(a));return o.code=e,t&&(o.location=t),o.domain=r,o}function Lo(e){throw e}const Do=/<\/?[\w\s="/.':;#-\/]+>/,wo=e=>Do.test(e),gt=" ",Ao="\r",He=`
|
|
32
|
+
`,Ro=String.fromCharCode(8232),Co=String.fromCharCode(8233);function Po(e){const t=e;let n=0,r=1,i=1,s=0;const a=P=>t[P]===Ao&&t[P+1]===He,o=P=>t[P]===He,u=P=>t[P]===Co,p=P=>t[P]===Ro,O=P=>a(P)||o(P)||u(P)||p(P),g=()=>n,N=()=>r,I=()=>i,H=()=>s,M=P=>a(P)||u(P)||p(P)?He:t[P],x=()=>M(n),$=()=>M(n+s);function V(){return s=0,O(n)&&(r++,i=0),a(n)&&n++,n++,i++,t[n]}function S(){return a(n+s)&&s++,s++,t[n+s]}function k(){n=0,r=1,i=1,s=0}function F(P=0){s=P}function L(){const P=n+s;for(;P!==n;)V();s=0}return{index:g,line:N,column:I,peekOffset:H,charAt:M,currentChar:x,currentPeek:$,next:V,peek:S,reset:k,resetPeek:F,skipToPeek:L}}const Ot=void 0,ko=".",Rs="'",Fo="tokenizer";function Mo(e,t={}){const n=t.location!==!1,r=Po(e),i=()=>r.index(),s=()=>bo(r.line(),r.column(),r.index()),a=s(),o=i(),u={currentType:14,offset:o,startLoc:a,endLoc:a,lastType:14,lastOffset:o,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},p=()=>u,{onError:O}=t;function g(l,f,C,...B){const Y=p();if(f.column+=C,f.offset+=C,O){const J=n?wn(Y.startLoc,f):null,Q=Bt(l,J,{domain:Fo,args:B});O(Q)}}function N(l,f,C){l.endLoc=s(),l.currentType=f;const B={type:f};return n&&(B.loc=wn(l.startLoc,l.endLoc)),C!=null&&(B.value=C),B}const I=l=>N(l,14);function H(l,f){return l.currentChar()===f?(l.next(),f):(g(se.EXPECTED_TOKEN,s(),0,f),"")}function M(l){let f="";for(;l.currentPeek()===gt||l.currentPeek()===He;)f+=l.currentPeek(),l.peek();return f}function x(l){const f=M(l);return l.skipToPeek(),f}function $(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function V(l){if(l===Ot)return!1;const f=l.charCodeAt(0);return f>=48&&f<=57}function S(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function k(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()==="-"?l.peek():l.currentPeek(),Y=V(B);return l.resetPeek(),Y}function F(l,f){const{currentType:C}=f;if(C!==2)return!1;M(l);const B=l.currentPeek()===Rs;return l.resetPeek(),B}function L(l,f){const{currentType:C}=f;if(C!==8)return!1;M(l);const B=l.currentPeek()===".";return l.resetPeek(),B}function P(l,f){const{currentType:C}=f;if(C!==9)return!1;M(l);const B=$(l.currentPeek());return l.resetPeek(),B}function _(l,f){const{currentType:C}=f;if(!(C===8||C===12))return!1;M(l);const B=l.currentPeek()===":";return l.resetPeek(),B}function h(l,f){const{currentType:C}=f;if(C!==10)return!1;const B=()=>{const J=l.currentPeek();return J==="{"?$(l.peek()):J==="@"||J==="%"||J==="|"||J===":"||J==="."||J===gt||!J?!1:J===He?(l.peek(),B()):q(l,!1)},Y=B();return l.resetPeek(),Y}function T(l){M(l);const f=l.currentPeek()==="|";return l.resetPeek(),f}function j(l){const f=M(l),C=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:C,hasSpace:f.length>0}}function q(l,f=!0){const C=(Y=!1,J="",Q=!1)=>{const w=l.currentPeek();return w==="{"?J==="%"?!1:Y:w==="@"||!w?J==="%"?!0:Y:w==="%"?(l.peek(),C(Y,"%",!0)):w==="|"?J==="%"||Q?!0:!(J===gt||J===He):w===gt?(l.peek(),C(!0,gt,Q)):w===He?(l.peek(),C(!0,He,Q)):!0},B=C();return f&&l.resetPeek(),B}function K(l,f){const C=l.currentChar();return C===Ot?Ot:f(C)?(l.next(),C):null}function oe(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function pe(l){return K(l,oe)}function me(l){const f=l.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function ee(l){return K(l,me)}function ce(l){const f=l.charCodeAt(0);return f>=48&&f<=57}function z(l){return K(l,ce)}function _e(l){const f=l.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function re(l){return K(l,_e)}function Z(l){let f="",C="";for(;f=z(l);)C+=f;return C}function X(l){x(l);const f=l.currentChar();return f!=="%"&&g(se.EXPECTED_TOKEN,s(),0,f),l.next(),"%"}function W(l){let f="";for(;;){const C=l.currentChar();if(C==="{"||C==="}"||C==="@"||C==="|"||!C)break;if(C==="%")if(q(l))f+=C,l.next();else break;else if(C===gt||C===He)if(q(l))f+=C,l.next();else{if(T(l))break;f+=C,l.next()}else f+=C,l.next()}return f}function ge(l){x(l);let f="",C="";for(;f=ee(l);)C+=f;return l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C}function ye(l){x(l);let f="";return l.currentChar()==="-"?(l.next(),f+=`-${Z(l)}`):f+=Z(l),l.currentChar()===Ot&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f}function De(l){return l!==Rs&&l!==He}function te(l){x(l),H(l,"'");let f="",C="";for(;f=K(l,De);)f==="\\"?C+=ie(l):C+=f;const B=l.currentChar();return B===He||B===Ot?(g(se.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),B===He&&(l.next(),H(l,"'")),C):(H(l,"'"),C)}function ie(l){const f=l.currentChar();switch(f){case"\\":case"'":return l.next(),`\\${f}`;case"u":return c(l,f,4);case"U":return c(l,f,6);default:return g(se.UNKNOWN_ESCAPE_SEQUENCE,s(),0,f),""}}function c(l,f,C){H(l,f);let B="";for(let Y=0;Y<C;Y++){const J=re(l);if(!J){g(se.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${f}${B}${l.currentChar()}`);break}B+=J}return`\\${f}${B}`}function d(l){return l!=="{"&&l!=="}"&&l!==gt&&l!==He}function E(l){x(l);let f="",C="";for(;f=K(l,d);)C+=f;return C}function A(l){let f="",C="";for(;f=pe(l);)C+=f;return C}function m(l){const f=C=>{const B=l.currentChar();return B==="{"||B==="%"||B==="@"||B==="|"||B==="("||B===")"||!B||B===gt?C:(C+=B,l.next(),f(C))};return f("")}function v(l){x(l);const f=H(l,"|");return x(l),f}function D(l,f){let C=null;switch(l.currentChar()){case"{":return f.braceNest>=1&&g(se.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),C=N(f,2,"{"),x(l),f.braceNest++,C;case"}":return f.braceNest>0&&f.currentType===2&&g(se.EMPTY_PLACEHOLDER,s(),0),l.next(),C=N(f,3,"}"),f.braceNest--,f.braceNest>0&&x(l),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),C;case"@":return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=y(l,f)||I(f),f.braceNest=0,C;default:{let Y=!0,J=!0,Q=!0;if(T(l))return f.braceNest>0&&g(se.UNTERMINATED_CLOSING_BRACE,s(),0),C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return g(se.UNTERMINATED_CLOSING_BRACE,s(),0),f.braceNest=0,b(l,f);if(Y=S(l,f))return C=N(f,5,ge(l)),x(l),C;if(J=k(l,f))return C=N(f,6,ye(l)),x(l),C;if(Q=F(l,f))return C=N(f,7,te(l)),x(l),C;if(!Y&&!J&&!Q)return C=N(f,13,E(l)),g(se.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,C.value),x(l),C;break}}return C}function y(l,f){const{currentType:C}=f;let B=null;const Y=l.currentChar();switch((C===8||C===9||C===12||C===10)&&(Y===He||Y===gt)&&g(se.INVALID_LINKED_FORMAT,s(),0),Y){case"@":return l.next(),B=N(f,8,"@"),f.inLinked=!0,B;case".":return x(l),l.next(),N(f,9,".");case":":return x(l),l.next(),N(f,10,":");default:return T(l)?(B=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,B):L(l,f)||_(l,f)?(x(l),y(l,f)):P(l,f)?(x(l),N(f,12,A(l))):h(l,f)?(x(l),Y==="{"?D(l,f)||B:N(f,11,m(l))):(C===8&&g(se.INVALID_LINKED_FORMAT,s(),0),f.braceNest=0,f.inLinked=!1,b(l,f))}}function b(l,f){let C={type:14};if(f.braceNest>0)return D(l,f)||I(f);if(f.inLinked)return y(l,f)||I(f);switch(l.currentChar()){case"{":return D(l,f)||I(f);case"}":return g(se.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(f,3,"}");case"@":return y(l,f)||I(f);default:{if(T(l))return C=N(f,1,v(l)),f.braceNest=0,f.inLinked=!1,C;const{isModulo:Y,hasSpace:J}=j(l);if(Y)return J?N(f,0,W(l)):N(f,4,X(l));if(q(l))return N(f,0,W(l));break}}return C}function R(){const{currentType:l,offset:f,startLoc:C,endLoc:B}=u;return u.lastType=l,u.lastOffset=f,u.lastStartLoc=C,u.lastEndLoc=B,u.offset=i(),u.startLoc=s(),r.currentChar()===Ot?N(u,14):b(r,u)}return{nextToken:R,currentOffset:i,currentPosition:s,context:p}}const Vo="parser",xo=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Uo(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function $o(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function i(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,n){const h=t?wn(F,_):null,T=Bt(k,h,{domain:Vo,args:P});n(T)}}function s(S,k,F,L,...P){const _=S.currentPosition();if(_.offset+=L,_.column+=L,r){const h=t?wn(F,_):null;r(Io(k,h,P))}}function a(S,k,F){const L={type:S};return t&&(L.start=k,L.end=k,L.loc={start:F,end:F}),L}function o(S,k,F,L){L&&(S.type=L),t&&(S.end=k,S.loc&&(S.loc.end=F))}function u(S,k){const F=S.context(),L=a(3,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function p(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(5,L,P);return _.index=parseInt(k,10),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function O(S,k,F){const L=S.context(),{lastOffset:P,lastStartLoc:_}=L,h=a(4,P,_);return h.key=k,F===!0&&(h.modulo=!0),S.nextToken(),o(h,S.currentOffset(),S.currentPosition()),h}function g(S,k){const F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(9,L,P);return _.value=k.replace(xo,Uo),S.nextToken(),o(_,S.currentOffset(),S.currentPosition()),_}function N(S){const k=S.nextToken(),F=S.context(),{lastOffset:L,lastStartLoc:P}=F,_=a(8,L,P);return k.type!==12?(i(S,se.UNEXPECTED_EMPTY_LINKED_MODIFIER,F.lastStartLoc,0),_.value="",o(_,L,P),{nextConsumeToken:k,node:_}):(k.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,ct(k)),_.value=k.value||"",o(_,S.currentOffset(),S.currentPosition()),{node:_})}function I(S,k){const F=S.context(),L=a(7,F.offset,F.startLoc);return L.value=k,o(L,S.currentOffset(),S.currentPosition()),L}function H(S){const k=S.context(),F=a(6,k.offset,k.startLoc);let L=S.nextToken();if(L.type===9){const P=N(S);F.modifier=P.node,L=P.nextConsumeToken||S.nextToken()}switch(L.type!==10&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),L=S.nextToken(),L.type===2&&(L=S.nextToken()),L.type){case 11:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=I(S,L.value||"");break;case 5:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=O(S,L.value||"");break;case 6:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=p(S,L.value||"");break;case 7:L.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(L)),F.key=g(S,L.value||"");break;default:{i(S,se.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const P=S.context(),_=a(7,P.offset,P.startLoc);return _.value="",o(_,P.offset,P.startLoc),F.key=_,o(F,P.offset,P.startLoc),{nextConsumeToken:L,node:F}}}return o(F,S.currentOffset(),S.currentPosition()),{node:F}}function M(S){const k=S.context(),F=k.currentType===1?S.currentOffset():k.offset,L=k.currentType===1?k.endLoc:k.startLoc,P=a(2,F,L);P.items=[];let _=null,h=null;do{const q=_||S.nextToken();switch(_=null,q.type){case 0:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(u(S,q.value||""));break;case 6:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(p(S,q.value||""));break;case 4:h=!0;break;case 5:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(O(S,q.value||"",!!h)),h&&(s(S,An.USE_MODULO_SYNTAX,k.lastStartLoc,0,ct(q)),h=null);break;case 7:q.value==null&&i(S,se.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ct(q)),P.items.push(g(S,q.value||""));break;case 8:{const K=H(S);P.items.push(K.node),_=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const T=k.currentType===1?k.lastOffset:S.currentOffset(),j=k.currentType===1?k.lastEndLoc:S.currentPosition();return o(P,T,j),P}function x(S,k,F,L){const P=S.context();let _=L.items.length===0;const h=a(1,k,F);h.cases=[],h.cases.push(L);do{const T=M(S);_||(_=T.items.length===0),h.cases.push(T)}while(P.currentType!==14);return _&&i(S,se.MUST_HAVE_MESSAGES_IN_PLURAL,F,0),o(h,S.currentOffset(),S.currentPosition()),h}function $(S){const k=S.context(),{offset:F,startLoc:L}=k,P=M(S);return k.currentType===14?P:x(S,F,L,P)}function V(S){const k=Mo(S,Ds({},e)),F=k.context(),L=a(0,F.offset,F.startLoc);return t&&L.loc&&(L.loc.source=S),L.body=$(k),e.onCacheKey&&(L.cacheKey=e.onCacheKey(S)),F.currentType!==14&&i(k,se.UNEXPECTED_LEXICAL_ANALYSIS,F.lastStartLoc,0,S[F.offset]||""),o(L,k.currentOffset(),k.currentPosition()),L}return{parse:V}}function ct(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function qo(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Cs(e,t){for(let n=0;n<e.length;n++)nr(e[n],t)}function nr(e,t){switch(e.type){case 1:Cs(e.cases,t),t.helper("plural");break;case 2:Cs(e.items,t);break;case 6:{nr(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Bo(e,t={}){const n=qo(e);n.helper("normalize"),e.body&&nr(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Wo(e){const t=e.body;return t.type===2?Ps(t):t.cases.forEach(n=>Ps(n)),e}function Ps(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=As(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const Ho="minifier";function Wt(e){switch(e.t=e.type,e.type){case 0:{const t=e;Wt(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Wt(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Wt(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Wt(t.key),t.k=t.key,delete t.key,t.modifier&&(Wt(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw Bt(se.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Ho,args:[e.type]})}delete e.type}const jo="parser";function Go(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:s}=t,a=t.location!==!1,o={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:s,indentLevel:0};a&&e.loc&&(o.source=e.loc.source);const u=()=>o;function p(x,$){o.code+=x}function O(x,$=!0){const V=$?i:"";p(s?V+" ".repeat(x):V)}function g(x=!0){const $=++o.indentLevel;x&&O($)}function N(x=!0){const $=--o.indentLevel;x&&O($)}function I(){O(o.indentLevel)}return{context:u,push:p,indent:g,deindent:N,newline:I,helper:x=>`_${x}`,needIndent:()=>o.needIndent}}function Ko(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ht(e,t.key),t.modifier?(e.push(", "),Ht(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Yo(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let s=0;s<i&&(Ht(e,t.items[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function Qo(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let s=0;s<i&&(Ht(e,t.cases[s]),s!==i-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Xo(e,t){t.body?Ht(e,t.body):e.push("null")}function Ht(e,t){const{helper:n}=e;switch(t.type){case 0:Xo(e,t);break;case 1:Qo(e,t);break;case 2:Yo(e,t);break;case 6:Ko(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw Bt(se.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:jo,args:[t.type]})}}const Jo=(e,t={})=>{const n=ws(t.mode)?t.mode:"normal",r=ws(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
33
|
+
`,a=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],u=Go(e,{mode:n,filename:r,sourceMap:i,breakLineCode:s,needIndent:a});u.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),u.indent(a),o.length>0&&(u.push(`const { ${As(o.map(g=>`${g}: _${g}`),", ")} } = ctx`),u.newline()),u.push("return "),Ht(u,e),u.deindent(a),u.push("}"),delete e.helpers;const{code:p,map:O}=u.context();return{ast:e,code:p,map:O?O.toJSON():void 0}};function zo(e,t={}){const n=Ds({},t),r=!!n.jit,i=!!n.minify,s=n.optimize==null?!0:n.optimize,o=$o(n).parse(e);return r?(s&&Wo(o),i&&Wt(o),{ast:o,code:""}):(Bo(o,n),Jo(o,n))}/*!
|
|
34
34
|
* core-base v9.14.4
|
|
35
35
|
* (c) 2025 kazuya kawaguchi
|
|
36
36
|
* Released under the MIT License.
|
|
37
|
-
*/function Zo(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return ue(e)&&rr(e)===0&&(lt(e,"b")||lt(e,"body"))}const ks=["b","body"];function el(e){return Ot(e,ks)}const Fs=["c","cases"];function tl(e){return Ot(e,Fs,[])}const Ms=["s","static"];function nl(e){return Ot(e,Ms)}const Vs=["i","items"];function rl(e){return Ot(e,Vs,[])}const xs=["t","type"];function rr(e){return Ot(e,xs)}const Us=["v","value"];function Rn(e,t){const n=Ot(e,Us);if(n!=null)return n;throw on(t)}const $s=["m","modifier"];function sl(e){return Ot(e,$s)}const qs=["k","key"];function il(e){const t=Ot(e,qs);if(t)return t;throw on(6)}function Ot(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(lt(e,i)&&e[i]!=null)return e[i]}return n}const Ws=[...ks,...Fs,...Ms,...Vs,...qs,...$s,...Us,...xs];function on(e){return new Error(`unhandled node type: ${e}`)}const It=[];It[0]={w:[0],i:[3,0],"[":[4],o:[7]},It[1]={w:[1],".":[2],"[":[4],o:[7]},It[2]={w:[2],i:[3,0],0:[3,0]},It[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},It[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},It[5]={"'":[4,0],o:8,l:[5,0]},It[6]={'"':[4,0],o:8,l:[6,0]};const al=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ol(e){return al.test(e)}function ll(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function cl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ul(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ol(t)?ll(t):"*"+t}function fl(e){const t=[];let n=-1,r=0,i=0,s,a,o,u,p,T,g;const N=[];N[0]=()=>{a===void 0?a=o:a+=o},N[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},N[2]=()=>{N[0](),i++},N[3]=()=>{if(i>0)i--,r=4,N[0]();else{if(i=0,a===void 0||(a=ul(a),a===!1))return!1;N[1]()}};function I(){const H=e[n+1];if(r===5&&H==="'"||r===6&&H==='"')return n++,o="\\"+H,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(u=cl(s),g=It[r],p=g[u]||g.l||8,p===8||(r=p[0],p[1]!==void 0&&(T=N[p[1]],T&&(o=s,T()===!1))))return;if(r===7)return t}}const Bs=new Map;function dl(e,t){return ue(e)?e[t]:null}function pl(e,t){if(!ue(e))return null;let n=Bs.get(t);if(n||(n=fl(t),n&&Bs.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const a=n[s];if(Ws.includes(a)&&rt(i))return null;const o=i[a];if(o===void 0||ve(i))return null;i=o,s++}return i}const ml=e=>e,_l=e=>"",hl="text",gl=e=>e.length===0?"":No(e),El=Eo;function Hs(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Nl(e){const t=Ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ae(e.named.count)||Ae(e.named.n))?Ae(e.named.count)?e.named.count:Ae(e.named.n)?e.named.n:t:t}function vl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function bl(e={}){const t=e.locale,n=Nl(e),r=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?e.pluralRules[t]:Hs,i=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?Hs:void 0,s=$=>$[r(n,$.length,i)],a=e.list||[],o=$=>a[$],u=e.named||Ne();Ae(e.pluralIndex)&&vl(n,u);const p=$=>u[$];function T($){const V=ve(e.messages)?e.messages($):ue(e.messages)?e.messages[$]:!1;return V||(e.parent?e.parent.message($):_l)}const g=$=>e.modifiers?e.modifiers[$]:ml,N=ae(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:gl,I=ae(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:El,H=ae(e.processor)&&G(e.processor.type)?e.processor.type:hl,x={list:o,named:p,plural:s,linked:($,...V)=>{const[S,k]=V;let F="text",L="";V.length===1?ue(S)?(L=S.modifier||L,F=S.type||F):G(S)&&(L=S||L):V.length===2&&(G(S)&&(L=S||L),G(k)&&(F=k||F));const P=T($)(x),_=F==="vnode"&&be(P)&&L?P[0]:P;return L?g(L)(_,F):_},message:T,type:H,interpolate:I,normalize:N,values:$e(Ne(),a,u)};return x}let ln=null;function yl(e){ln=e}function Tl(e,t,n){ln&&ln.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Ol=Il("function:translate");function Il(e){return t=>ln&&ln.emit(e,t)}const js=An.__EXTEND_POINT__,Rt=Sn(js),je={NOT_FOUND_KEY:js,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Sl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ct(e,...t){return er(Sl[e],...t)}const Gs=se.__EXTEND_POINT__,Pt=Sn(Gs),Ve={INVALID_ARGUMENT:Gs,INVALID_DATE_ARGUMENT:Pt(),INVALID_ISO_DATE_ARGUMENT:Pt(),NOT_SUPPORT_NON_STRING_MESSAGE:Pt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Pt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Pt(),NOT_SUPPORT_LOCALE_TYPE:Pt(),__EXTEND_POINT__:Pt()};function pt(e){return Wt(e,null,process.env.NODE_ENV!=="production"?{messages:Ll}:void 0)}const Ll={[Ve.INVALID_ARGUMENT]:"Invalid arguments",[Ve.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ve.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ve.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ve.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sr(e,t){return t.locale!=null?Ks(t.locale):Ks(e.locale)}let ir;function Ks(e){if(G(e))return e;if(ve(e)){if(e.resolvedOnce&&ir!=null)return ir;if(e.constructor.name==="Function"){const t=e();if(go(t))throw pt(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ir=t}else throw pt(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Ve.NOT_SUPPORT_LOCALE_TYPE)}function wl(e,t,n){return[...new Set([n,...be(t)?t:ue(t)?Object.keys(t):G(t)?[t]:[n]])]}function Ys(e,t,n){const r=G(n)?n:jt,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;be(a);)a=Xs(s,a,t);const o=be(t)||!ae(t)?t:t.default?t.default:null;a=G(o)?[o]:o,be(a)&&Xs(s,a,!1),i.__localeChainCache.set(r,s)}return s}function Xs(e,t,n){let r=!0;for(let i=0;i<t.length&&le(r);i++){const s=t[i];G(s)&&(r=Dl(e,t[i],n))}return r}function Dl(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Al(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Al(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(be(n)||ae(n))&&n[i]&&(r=n[i])}return r}const Rl="9.14.4",Cn=-1,jt="en-US",Pn="",Js=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Cl(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Js(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Js(e.children):e}}let Qs;function zs(e){Qs=e}let Zs;function Pl(e){Zs=e}let ei;function kl(e){ei=e}let ti=null;const Fl=e=>{ti=e},Ml=()=>ti;let ni=null;const ri=e=>{ni=e},Vl=()=>ni;let si=0;function xl(e={}){const t=ve(e.onWarn)?e.onWarn:Pe,n=G(e.version)?e.version:Rl,r=G(e.locale)||ve(e.locale)?e.locale:jt,i=ve(r)?jt:r,s=be(e.fallbackLocale)||ae(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=ae(e.messages)?e.messages:ar(i),o=ae(e.datetimeFormats)?e.datetimeFormats:ar(i),u=ae(e.numberFormats)?e.numberFormats:ar(i),p=$e(Ne(),e.modifiers,Cl()),T=e.pluralRules||Ne(),g=ve(e.missing)?e.missing:null,N=le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,I=le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,H=!!e.fallbackFormat,M=!!e.unresolving,x=ve(e.postTranslation)?e.postTranslation:null,$=ae(e.processor)?e.processor:null,V=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,k=ve(e.messageCompiler)?e.messageCompiler:Qs;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&Ss(Ct(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const F=ve(e.messageResolver)?e.messageResolver:Zs||dl,L=ve(e.localeFallbacker)?e.localeFallbacker:ei||wl,P=ue(e.fallbackContext)?e.fallbackContext:void 0,_=e,h=ue(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,O=ue(_.__numberFormatters)?_.__numberFormatters:new Map,j=ue(_.__meta)?_.__meta:{};si++;const q={version:n,cid:si,locale:r,fallbackLocale:s,messages:a,modifiers:p,pluralRules:T,missing:g,missingWarn:N,fallbackWarn:I,fallbackFormat:H,unresolving:M,postTranslation:x,processor:$,warnHtmlMessage:V,escapeParameter:S,messageCompiler:k,messageResolver:F,localeFallbacker:L,fallbackContext:P,onWarn:t,__meta:j};return q.datetimeFormats=o,q.numberFormats=u,q.__datetimeFormatters=h,q.__numberFormatters=O,process.env.NODE_ENV!=="production"&&(q.__v_emitter=_.__v_emitter!=null?_.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Tl(q,n,j),q}const ar=e=>({[e]:Ne()});function kn(e,t){return e instanceof RegExp?e.test(t):e}function ii(e,t){return e instanceof RegExp?e.test(t):e}function or(e,t,n,r,i){const{missing:s,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(s!==null){const o=s(e,n,t,i);return G(o)?o:t}else return process.env.NODE_ENV!=="production"&&ii(r,t)&&a(Ct(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ai(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ul(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ai(e,t[r]))return!0;return!1}function lr(e){return n=>$l(n,e)}function $l(e,t){const n=el(t);if(n==null)throw on(0);if(rr(n)===1){const s=tl(n);return e.plural(s.reduce((a,o)=>[...a,oi(e,o)],[]))}else return oi(e,n)}function oi(e,t){const n=nl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=rl(t).reduce((i,s)=>[...i,cr(e,s)],[]);return e.normalize(r)}}function cr(e,t){const n=rr(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(lt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(lt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw on(n)}case 5:{const r=t;if(lt(r,"i")&&Ae(r.i))return e.interpolate(e.list(r.i));if(lt(r,"index")&&Ae(r.index))return e.interpolate(e.list(r.index));throw on(n)}case 6:{const r=t,i=sl(r),s=il(r);return e.linked(cr(e,s),i?cr(e,i):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ql="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function li(e,t){t&&Do(e)&&Pe(er(ql,{source:e}))}const ci=e=>e;let Gt=Ne();function ui(e){e.code===An.USE_MODULO_SYNTAX&&Pe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
37
|
+
*/function Zo(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function rt(e){return ue(e)&&rr(e)===0&&(lt(e,"b")||lt(e,"body"))}const ks=["b","body"];function el(e){return Tt(e,ks)}const Fs=["c","cases"];function tl(e){return Tt(e,Fs,[])}const Ms=["s","static"];function nl(e){return Tt(e,Ms)}const Vs=["i","items"];function rl(e){return Tt(e,Vs,[])}const xs=["t","type"];function rr(e){return Tt(e,xs)}const Us=["v","value"];function Rn(e,t){const n=Tt(e,Us);if(n!=null)return n;throw on(t)}const $s=["m","modifier"];function sl(e){return Tt(e,$s)}const qs=["k","key"];function il(e){const t=Tt(e,qs);if(t)return t;throw on(6)}function Tt(e,t,n){for(let r=0;r<t.length;r++){const i=t[r];if(lt(e,i)&&e[i]!=null)return e[i]}return n}const Bs=[...ks,...Fs,...Ms,...Vs,...qs,...$s,...Us,...xs];function on(e){return new Error(`unhandled node type: ${e}`)}const It=[];It[0]={w:[0],i:[3,0],"[":[4],o:[7]},It[1]={w:[1],".":[2],"[":[4],o:[7]},It[2]={w:[2],i:[3,0],0:[3,0]},It[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},It[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},It[5]={"'":[4,0],o:8,l:[5,0]},It[6]={'"':[4,0],o:8,l:[6,0]};const al=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ol(e){return al.test(e)}function ll(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function cl(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function ul(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ol(t)?ll(t):"*"+t}function fl(e){const t=[];let n=-1,r=0,i=0,s,a,o,u,p,O,g;const N=[];N[0]=()=>{a===void 0?a=o:a+=o},N[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},N[2]=()=>{N[0](),i++},N[3]=()=>{if(i>0)i--,r=4,N[0]();else{if(i=0,a===void 0||(a=ul(a),a===!1))return!1;N[1]()}};function I(){const H=e[n+1];if(r===5&&H==="'"||r===6&&H==='"')return n++,o="\\"+H,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&I())){if(u=cl(s),g=It[r],p=g[u]||g.l||8,p===8||(r=p[0],p[1]!==void 0&&(O=N[p[1]],O&&(o=s,O()===!1))))return;if(r===7)return t}}const Ws=new Map;function dl(e,t){return ue(e)?e[t]:null}function pl(e,t){if(!ue(e))return null;let n=Ws.get(t);if(n||(n=fl(t),n&&Ws.set(t,n)),!n)return null;const r=n.length;let i=e,s=0;for(;s<r;){const a=n[s];if(Bs.includes(a)&&rt(i))return null;const o=i[a];if(o===void 0||ve(i))return null;i=o,s++}return i}const ml=e=>e,_l=e=>"",hl="text",gl=e=>e.length===0?"":No(e),El=Eo;function Hs(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Nl(e){const t=Ae(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ae(e.named.count)||Ae(e.named.n))?Ae(e.named.count)?e.named.count:Ae(e.named.n)?e.named.n:t:t}function vl(e,t){t.count||(t.count=e),t.n||(t.n=e)}function bl(e={}){const t=e.locale,n=Nl(e),r=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?e.pluralRules[t]:Hs,i=ue(e.pluralRules)&&G(t)&&ve(e.pluralRules[t])?Hs:void 0,s=$=>$[r(n,$.length,i)],a=e.list||[],o=$=>a[$],u=e.named||Ne();Ae(e.pluralIndex)&&vl(n,u);const p=$=>u[$];function O($){const V=ve(e.messages)?e.messages($):ue(e.messages)?e.messages[$]:!1;return V||(e.parent?e.parent.message($):_l)}const g=$=>e.modifiers?e.modifiers[$]:ml,N=ae(e.processor)&&ve(e.processor.normalize)?e.processor.normalize:gl,I=ae(e.processor)&&ve(e.processor.interpolate)?e.processor.interpolate:El,H=ae(e.processor)&&G(e.processor.type)?e.processor.type:hl,x={list:o,named:p,plural:s,linked:($,...V)=>{const[S,k]=V;let F="text",L="";V.length===1?ue(S)?(L=S.modifier||L,F=S.type||F):G(S)&&(L=S||L):V.length===2&&(G(S)&&(L=S||L),G(k)&&(F=k||F));const P=O($)(x),_=F==="vnode"&&be(P)&&L?P[0]:P;return L?g(L)(_,F):_},message:O,type:H,interpolate:I,normalize:N,values:$e(Ne(),a,u)};return x}let ln=null;function yl(e){ln=e}function Ol(e,t,n){ln&&ln.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Tl=Il("function:translate");function Il(e){return t=>ln&&ln.emit(e,t)}const js=An.__EXTEND_POINT__,Rt=Sn(js),je={NOT_FOUND_KEY:js,FALLBACK_TO_TRANSLATE:Rt(),CANNOT_FORMAT_NUMBER:Rt(),FALLBACK_TO_NUMBER_FORMAT:Rt(),CANNOT_FORMAT_DATE:Rt(),FALLBACK_TO_DATE_FORMAT:Rt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Rt(),__EXTEND_POINT__:Rt()},Sl={[je.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[je.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[je.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[je.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[je.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ct(e,...t){return er(Sl[e],...t)}const Gs=se.__EXTEND_POINT__,Pt=Sn(Gs),Ve={INVALID_ARGUMENT:Gs,INVALID_DATE_ARGUMENT:Pt(),INVALID_ISO_DATE_ARGUMENT:Pt(),NOT_SUPPORT_NON_STRING_MESSAGE:Pt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Pt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Pt(),NOT_SUPPORT_LOCALE_TYPE:Pt(),__EXTEND_POINT__:Pt()};function pt(e){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Ll}:void 0)}const Ll={[Ve.INVALID_ARGUMENT]:"Invalid arguments",[Ve.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[Ve.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[Ve.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[Ve.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function sr(e,t){return t.locale!=null?Ks(t.locale):Ks(e.locale)}let ir;function Ks(e){if(G(e))return e;if(ve(e)){if(e.resolvedOnce&&ir!=null)return ir;if(e.constructor.name==="Function"){const t=e();if(go(t))throw pt(Ve.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ir=t}else throw pt(Ve.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw pt(Ve.NOT_SUPPORT_LOCALE_TYPE)}function Dl(e,t,n){return[...new Set([n,...be(t)?t:ue(t)?Object.keys(t):G(t)?[t]:[n]])]}function Ys(e,t,n){const r=G(n)?n:jt,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let s=i.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;be(a);)a=Qs(s,a,t);const o=be(t)||!ae(t)?t:t.default?t.default:null;a=G(o)?[o]:o,be(a)&&Qs(s,a,!1),i.__localeChainCache.set(r,s)}return s}function Qs(e,t,n){let r=!0;for(let i=0;i<t.length&&le(r);i++){const s=t[i];G(s)&&(r=wl(e,t[i],n))}return r}function wl(e,t,n){let r;const i=t.split("-");do{const s=i.join("-");r=Al(e,s,n),i.splice(-1,1)}while(i.length&&r===!0);return r}function Al(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(be(n)||ae(n))&&n[i]&&(r=n[i])}return r}const Rl="9.14.4",Cn=-1,jt="en-US",Pn="",Xs=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Cl(){return{upper:(e,t)=>t==="text"&&G(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&G(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&G(e)?Xs(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Xs(e.children):e}}let Js;function zs(e){Js=e}let Zs;function Pl(e){Zs=e}let ei;function kl(e){ei=e}let ti=null;const Fl=e=>{ti=e},Ml=()=>ti;let ni=null;const ri=e=>{ni=e},Vl=()=>ni;let si=0;function xl(e={}){const t=ve(e.onWarn)?e.onWarn:Pe,n=G(e.version)?e.version:Rl,r=G(e.locale)||ve(e.locale)?e.locale:jt,i=ve(r)?jt:r,s=be(e.fallbackLocale)||ae(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,a=ae(e.messages)?e.messages:ar(i),o=ae(e.datetimeFormats)?e.datetimeFormats:ar(i),u=ae(e.numberFormats)?e.numberFormats:ar(i),p=$e(Ne(),e.modifiers,Cl()),O=e.pluralRules||Ne(),g=ve(e.missing)?e.missing:null,N=le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,I=le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,H=!!e.fallbackFormat,M=!!e.unresolving,x=ve(e.postTranslation)?e.postTranslation:null,$=ae(e.processor)?e.processor:null,V=le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter,k=ve(e.messageCompiler)?e.messageCompiler:Js;process.env.NODE_ENV!=="production"&&ve(e.messageCompiler)&&Ss(Ct(je.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const F=ve(e.messageResolver)?e.messageResolver:Zs||dl,L=ve(e.localeFallbacker)?e.localeFallbacker:ei||Dl,P=ue(e.fallbackContext)?e.fallbackContext:void 0,_=e,h=ue(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,T=ue(_.__numberFormatters)?_.__numberFormatters:new Map,j=ue(_.__meta)?_.__meta:{};si++;const q={version:n,cid:si,locale:r,fallbackLocale:s,messages:a,modifiers:p,pluralRules:O,missing:g,missingWarn:N,fallbackWarn:I,fallbackFormat:H,unresolving:M,postTranslation:x,processor:$,warnHtmlMessage:V,escapeParameter:S,messageCompiler:k,messageResolver:F,localeFallbacker:L,fallbackContext:P,onWarn:t,__meta:j};return q.datetimeFormats=o,q.numberFormats=u,q.__datetimeFormatters=h,q.__numberFormatters=T,process.env.NODE_ENV!=="production"&&(q.__v_emitter=_.__v_emitter!=null?_.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ol(q,n,j),q}const ar=e=>({[e]:Ne()});function kn(e,t){return e instanceof RegExp?e.test(t):e}function ii(e,t){return e instanceof RegExp?e.test(t):e}function or(e,t,n,r,i){const{missing:s,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const o=e.__v_emitter;o&&o.emit("missing",{locale:n,key:t,type:i,groupId:`${i}:${t}`})}if(s!==null){const o=s(e,n,t,i);return G(o)?o:t}else return process.env.NODE_ENV!=="production"&&ii(r,t)&&a(Ct(je.NOT_FOUND_KEY,{key:t,locale:n})),t}function cn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ai(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ul(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(ai(e,t[r]))return!0;return!1}function lr(e){return n=>$l(n,e)}function $l(e,t){const n=el(t);if(n==null)throw on(0);if(rr(n)===1){const s=tl(n);return e.plural(s.reduce((a,o)=>[...a,oi(e,o)],[]))}else return oi(e,n)}function oi(e,t){const n=nl(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=rl(t).reduce((i,s)=>[...i,cr(e,s)],[]);return e.normalize(r)}}function cr(e,t){const n=rr(t);switch(n){case 3:return Rn(t,n);case 9:return Rn(t,n);case 4:{const r=t;if(lt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(lt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw on(n)}case 5:{const r=t;if(lt(r,"i")&&Ae(r.i))return e.interpolate(e.list(r.i));if(lt(r,"index")&&Ae(r.index))return e.interpolate(e.list(r.index));throw on(n)}case 6:{const r=t,i=sl(r),s=il(r);return e.linked(cr(e,s),i?cr(e,i):void 0,e.type)}case 7:return Rn(t,n);case 8:return Rn(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ql="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function li(e,t){t&&wo(e)&&Pe(er(ql,{source:e}))}const ci=e=>e;let Gt=Ne();function ui(e){e.code===An.USE_MODULO_SYNTAX&&Pe(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
38
38
|
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
39
|
-
(message compiler warning message: ${e.message})`)}function fi(e,t={}){let n=!1;const r=t.onError||Lo;return t.onError=i=>{n=!0,r(i)},{...zo(e,t),detectError:n}}const
|
|
40
|
-
${p}`:u)}else throw a},onCacheKey:a=>fo(t,n,a)}}function Kl(e){if(G(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Yl(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:a,fallbackLocale:o,fallbackWarn:u,missingWarn:p,fallbackContext:
|
|
39
|
+
(message compiler warning message: ${e.message})`)}function fi(e,t={}){let n=!1;const r=t.onError||Lo;return t.onError=i=>{n=!0,r(i)},{...zo(e,t),detectError:n}}const Bl=(e,t)=>{if(!G(e))throw pt(Ve.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(t.onWarn=ui);{const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&li(e,n);const i=(t.onCacheKey||ci)(e),s=Gt[i];if(s)return s;const{code:a,detectError:o}=fi(e,t),u=new Function(`return ${a}`)();return o?u:Gt[i]=u}};function Wl(e,t){if(process.env.NODE_ENV!=="production"&&(t.onWarn=ui),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&G(e)){const n=le(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&li(e,n);const i=(t.onCacheKey||ci)(e),s=Gt[i];if(s)return s;const{ast:a,detectError:o}=fi(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),u=lr(a);return o?u:Gt[i]=u}else{if(process.env.NODE_ENV!=="production"&&!rt(e))return Pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const r=Gt[n];return r||(Gt[n]=lr(e))}else return lr(e)}}const di=()=>"",st=e=>ve(e);function pi(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:s,fallbackLocale:a,messages:o}=e,[u,p]=ur(...t),O=le(p.missingWarn)?p.missingWarn:e.missingWarn,g=le(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,N=le(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,H=G(p.default)||le(p.default)?le(p.default)?s?u:()=>u:p.default:n?s?u:()=>u:"",M=n||H!=="",x=sr(e,p);N&&Hl(p);let[$,V,S]=I?[u,x,o[x]||Ne()]:mi(e,u,x,a,g,O),k=$,F=u;if(!I&&!(G(k)||rt(k)||st(k))&&M&&(k=H,F=k),!I&&(!(G(k)||rt(k)||st(k))||!G(V)))return i?Cn:u;if(process.env.NODE_ENV!=="production"&&G(k)&&e.messageCompiler==null)return Pe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`),u;let L=!1;const P=()=>{L=!0},_=st(k)?k:_i(e,u,V,k,F,P);if(L)return k;const h=Yl(e,V,S,p),T=bl(h),j=jl(e,_,T),q=r?r(j,u):j;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const K={timestamp:Date.now(),key:G(u)?u:st(k)?k.key:"",locale:V||(st(k)?k.locale:""),format:G(k)?k:st(k)?k.source:"",message:q};K.meta=$e({},e.__meta,Ml()||{}),Tl(K)}return q}function Hl(e){be(e.list)?e.list=e.list.map(t=>G(t)?bs(t):t):ue(e.named)&&Object.keys(e.named).forEach(t=>{G(e.named[t])&&(e.named[t]=bs(e.named[t]))})}function mi(e,t,n,r,i,s){const{messages:a,onWarn:o,messageResolver:u,localeFallbacker:p}=e,O=p(e,r,n);let g=Ne(),N,I=null,H=n,M=null;const x="translate";for(let $=0;$<O.length;$++){if(N=M=O[$],process.env.NODE_ENV!=="production"&&n!==N&&!ai(n,N)&&kn(i,t)&&o(Ct(je.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const F=e.__v_emitter;F&&F.emit("fallback",{type:x,key:t,from:H,to:M,groupId:`${x}:${t}`})}g=a[N]||Ne();let V=null,S,k;if(process.env.NODE_ENV!=="production"&&ot&&(V=window.performance.now(),S="intlify-message-resolve-start",k="intlify-message-resolve-end",nt&&nt(S)),(I=u(g,t))===null&&(I=g[t]),process.env.NODE_ENV!=="production"&&ot){const F=window.performance.now(),L=e.__v_emitter;L&&V&&I&&L.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:F-V,groupId:`${x}:${t}`}),S&&k&&nt&&At&&(nt(k),At("intlify message resolve",S,k))}if(G(I)||rt(I)||st(I))break;if(!Ul(N,O)){const F=or(e,t,N,s,x);F!==t&&(I=F)}H=M}return[I,N,g]}function _i(e,t,n,r,i,s){const{messageCompiler:a,warnHtmlMessage:o}=e;if(st(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(a==null){const N=()=>r;return N.locale=n,N.key=t,N}let u=null,p,O;process.env.NODE_ENV!=="production"&&ot&&(u=window.performance.now(),p="intlify-message-compilation-start",O="intlify-message-compilation-end",nt&&nt(p));const g=a(r,Gl(e,n,i,r,o,s));if(process.env.NODE_ENV!=="production"&&ot){const N=window.performance.now(),I=e.__v_emitter;I&&u&&I.emit("message-compilation",{type:"message-compilation",message:r,time:N-u,groupId:`translate:${t}`}),p&&O&&nt&&At&&(nt(O),At("intlify message compilation",p,O))}return g.locale=n,g.key=t,g.source=r,g}function jl(e,t,n){let r=null,i,s;process.env.NODE_ENV!=="production"&&ot&&(r=window.performance.now(),i="intlify-message-evaluation-start",s="intlify-message-evaluation-end",nt&&nt(i));const a=t(n);if(process.env.NODE_ENV!=="production"&&ot){const o=window.performance.now(),u=e.__v_emitter;u&&r&&u.emit("message-evaluation",{type:"message-evaluation",value:a,time:o-r,groupId:`translate:${t.key}`}),i&&s&&nt&&At&&(nt(s),At("intlify message evaluation",i,s))}return a}function ur(...e){const[t,n,r]=e,i=Ne();if(!G(t)&&!Ae(t)&&!st(t)&&!rt(t))throw pt(Ve.INVALID_ARGUMENT);const s=Ae(t)?String(t):(st(t),t);return Ae(n)?i.plural=n:G(n)?i.default=n:ae(n)&&!In(n)?i.named=n:be(n)&&(i.list=n),Ae(r)?i.plural=r:G(r)?i.default=r:ae(r)&&$e(i,r),[s,i]}function Gl(e,t,n,r,i,s){return{locale:t,key:n,warnHtmlMessage:i,onError:a=>{if(s&&s(a),process.env.NODE_ENV!=="production"){const o=Kl(r),u=`Message compilation error: ${a.message}`,p=a.location&&o&&vo(o,a.location.start.offset,a.location.end.offset),O=e.__v_emitter;O&&o&&O.emit("compile-error",{message:o,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${u}
|
|
40
|
+
${p}`:u)}else throw a},onCacheKey:a=>fo(t,n,a)}}function Kl(e){if(G(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Yl(e,t,n,r){const{modifiers:i,pluralRules:s,messageResolver:a,fallbackLocale:o,fallbackWarn:u,missingWarn:p,fallbackContext:O}=e,N={locale:t,modifiers:i,pluralRules:s,messages:I=>{let H=a(n,I);if(H==null&&O){const[,,M]=mi(O,I,t,o,u,p);H=a(M,I)}if(G(H)||rt(H)){let M=!1;const $=_i(e,I,t,H,I,()=>{M=!0});return M?di:$}else return st(H)?H:di}};return e.processor&&(N.processor=e.processor),r.list&&(N.list=r.list),r.named&&(N.named=r.named),Ae(r.plural)&&(N.pluralIndex=r.plural),N}const hi=typeof Intl<"u",gi={dateTimeFormat:hi&&typeof Intl.DateTimeFormat<"u",numberFormat:hi&&typeof Intl.NumberFormat<"u"};function Ei(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!gi.dateTimeFormat)return s(Ct(je.CANNOT_FORMAT_DATE)),Pn;const[u,p,O,g]=fr(...t),N=le(O.missingWarn)?O.missingWarn:e.missingWarn,I=le(O.fallbackWarn)?O.fallbackWarn:e.fallbackWarn,H=!!O.part,M=sr(e,O),x=a(e,i,M);if(!G(u)||u==="")return new Intl.DateTimeFormat(M,g).format(p);let $={},V,S=null,k=M,F=null;const L="datetime format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&M!==V&&kn(I,u)&&s(Ct(je.FALLBACK_TO_DATE_FORMAT,{key:u,target:V})),process.env.NODE_ENV!=="production"&&M!==V){const T=e.__v_emitter;T&&T.emit("fallback",{type:L,key:u,from:k,to:F,groupId:`${L}:${u}`})}if($=n[V]||{},S=$[u],ae(S))break;or(e,u,V,N,L),k=F}if(!ae(S)||!G(V))return r?Cn:u;let P=`${V}__${u}`;In(g)||(P=`${P}__${JSON.stringify(g)}`);let _=o.get(P);return _||(_=new Intl.DateTimeFormat(V,$e({},S,g)),o.set(P,_)),H?_.formatToParts(p):_.format(p)}const Ni=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fr(...e){const[t,n,r,i]=e,s=Ne();let a=Ne(),o;if(G(t)){const u=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw pt(Ve.INVALID_ISO_DATE_ARGUMENT);const p=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();o=new Date(p);try{o.toISOString()}catch{throw pt(Ve.INVALID_ISO_DATE_ARGUMENT)}}else if(mo(t)){if(isNaN(t.getTime()))throw pt(Ve.INVALID_DATE_ARGUMENT);o=t}else if(Ae(t))o=t;else throw pt(Ve.INVALID_ARGUMENT);return G(n)?s.key=n:ae(n)&&Object.keys(n).forEach(u=>{Ni.includes(u)?a[u]=n[u]:s[u]=n[u]}),G(r)?s.locale=r:ae(r)&&(a=r),ae(i)&&(a=i),[s.key||"",o,s,a]}function vi(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function bi(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:o}=e;if(process.env.NODE_ENV!=="production"&&!gi.numberFormat)return s(Ct(je.CANNOT_FORMAT_NUMBER)),Pn;const[u,p,O,g]=dr(...t),N=le(O.missingWarn)?O.missingWarn:e.missingWarn,I=le(O.fallbackWarn)?O.fallbackWarn:e.fallbackWarn,H=!!O.part,M=sr(e,O),x=a(e,i,M);if(!G(u)||u==="")return new Intl.NumberFormat(M,g).format(p);let $={},V,S=null,k=M,F=null;const L="number format";for(let h=0;h<x.length;h++){if(V=F=x[h],process.env.NODE_ENV!=="production"&&M!==V&&kn(I,u)&&s(Ct(je.FALLBACK_TO_NUMBER_FORMAT,{key:u,target:V})),process.env.NODE_ENV!=="production"&&M!==V){const T=e.__v_emitter;T&&T.emit("fallback",{type:L,key:u,from:k,to:F,groupId:`${L}:${u}`})}if($=n[V]||{},S=$[u],ae(S))break;or(e,u,V,N,L),k=F}if(!ae(S)||!G(V))return r?Cn:u;let P=`${V}__${u}`;In(g)||(P=`${P}__${JSON.stringify(g)}`);let _=o.get(P);return _||(_=new Intl.NumberFormat(V,$e({},S,g)),o.set(P,_)),H?_.formatToParts(p):_.format(p)}const yi=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function dr(...e){const[t,n,r,i]=e,s=Ne();let a=Ne();if(!Ae(t))throw pt(Ve.INVALID_ARGUMENT);const o=t;return G(n)?s.key=n:ae(n)&&Object.keys(n).forEach(u=>{yi.includes(u)?a[u]=n[u]:s[u]=n[u]}),G(r)?s.locale=r:ae(r)&&(a=r),ae(i)&&(a=i),[s.key||"",o,s,a]}function Oi(e,t,n){const r=e;for(const i in n){const s=`${t}__${i}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}Zo();/**
|
|
41
41
|
* @vue/shared v3.5.17
|
|
42
42
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
43
43
|
* @license MIT
|
|
44
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
44
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ql(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const it=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const kt=()=>{},Xl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xe=Object.assign,Jl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zl=Object.prototype.hasOwnProperty,Re=(e,t)=>zl.call(e,t),Te=Array.isArray,Kt=e=>Fn(e)==="[object Map]",Zl=e=>Fn(e)==="[object Set]",Ce=e=>typeof e=="function",ut=e=>typeof e=="string",un=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",ec=e=>(Ge(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),tc=Object.prototype.toString,Fn=e=>tc.call(e),Ti=e=>Fn(e).slice(8,-1),nc=e=>Fn(e)==="[object Object]",pr=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ii=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Si=Ii(e=>e.charAt(0).toUpperCase()+e.slice(1)),rc=Ii(e=>e?`on${Si(e)}`:""),St=(e,t)=>!Object.is(e,t),sc=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Li;const Mn=()=>Li||(Li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mr(e){if(Te(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ut(r)?lc(r):mr(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ut(e)||Ge(e))return e}const ic=/;(?![^(]*\))/g,ac=/:([^]+)/,oc=/\/\*[^]*?\*\//g;function lc(e){const t={};return e.replace(oc,"").split(ic).forEach(n=>{if(n){const r=n.split(ac);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function _r(e){let t="";if(ut(e))t=e;else if(Te(e))for(let n=0;n<e.length;n++){const r=_r(e[n]);r&&(t+=r+" ")}else if(Ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}/**
|
|
45
45
|
* @vue/reactivity v3.5.17
|
|
46
46
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
47
47
|
* @license MIT
|
|
48
|
-
**/function mt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Qe;class cc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Qe,!t&&Qe&&(this.index=(Qe.scopes||(Qe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Qe;try{return Qe=this,t()}finally{Qe=n}}else process.env.NODE_ENV!=="production"&&mt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Qe,Qe=this)}off(){this._on>0&&--this._on===0&&(Qe=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function uc(e){return new cc(e)}function fc(){return Qe}let he;const hr=new WeakSet;class dc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Qe&&Qe.active&&Qe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hr.has(this)&&(hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Di(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ki(this),Ai(this);const t=he,n=ft;he=this,ft=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&he!==this&&mt("Active effect was not restored correctly - this is likely a Vue internal bug."),Ri(this),he=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vr(t);this.deps=this.depsTail=void 0,ki(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let wi=0,fn,dn;function Di(e,t=!1){if(e.flags|=8,t){e.next=dn,dn=e;return}e.next=fn,fn=e}function gr(){wi++}function Er(){if(--wi>0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fn;){let t=fn;for(fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ri(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),vr(r),pc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nr(e))))return;e.flags|=2;const t=e.dep,n=he,r=ft;he=e,ft=!0;try{Ai(e);const i=e.fn(e._value);(t.version===0||St(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{he=n,ft=r,Ri(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Pi=[];function Yt(){Pi.push(ft),ft=!1}function Xt(){const e=Pi.pop();ft=e===void 0?!0:e}function ki(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let pn=0;class mc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class br{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,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!he||!ft||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new mc(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Fi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return process.env.NODE_ENV!=="production"&&he.onTrack&&he.onTrack(Je({effect:he},t)),n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){gr();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Je({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Er()}}}function Fi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const yr=new WeakMap,Ft=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Tr=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),mn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function xe(e,t,n){if(ft&&he){let r=yr.get(e);r||yr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new br),i.map=r,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Lt(e,t,n,r,i,s){const a=yr.get(e);if(!a){pn++;return}const o=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}):u.trigger())};if(gr(),t==="clear")a.forEach(o);else{const u=Oe(e),p=u&&pr(n);if(u&&n==="length"){const T=Number(r);a.forEach((g,N)=>{(N==="length"||N===mn||!un(N)&&N>=T)&&o(g)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),p&&o(a.get(mn)),t){case"add":u?p&&o(a.get("length")):(o(a.get(Ft)),Kt(e)&&o(a.get(Tr)));break;case"delete":u||(o(a.get(Ft)),Kt(e)&&o(a.get(Tr)));break;case"set":Kt(e)&&o(a.get(Ft));break}}Er()}function Jt(e){const t=fe(e);return t===e?t:(xe(t,"iterate",mn),ze(e)?t:t.map(Ke))}function Or(e){return xe(e=fe(e),"iterate",mn),e}const _c={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Ke)},concat(...e){return Jt(this).concat(...e.map(t=>Oe(t)?Jt(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Ke(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ke),arguments)},find(e,t){return Et(this,"find",e,t,Ke,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ke,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sr(this,"includes",e)},indexOf(...e){return Sr(this,"indexOf",e)},join(e){return Jt(this).join(e)},lastIndexOf(...e){return Sr(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return _n(this,"pop")},push(...e){return _n(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return _n(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return _n(this,"splice",e)},toReversed(){return Jt(this).toReversed()},toSorted(e){return Jt(this).toSorted(e)},toSpliced(...e){return Jt(this).toSpliced(...e)},unshift(...e){return _n(this,"unshift",e)},values(){return Ir(this,"values",Ke)}};function Ir(e,t,n){const r=Or(e),i=r[t]();return r!==e&&!ze(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const hc=Array.prototype;function Et(e,t,n,r,i,s){const a=Or(e),o=a!==e&&!ze(e),u=a[t];if(u!==hc[t]){const g=u.apply(e,s);return o?Ke(g):g}let p=n;a!==e&&(o?p=function(g,N){return n.call(this,Ke(g),N,e)}:n.length>2&&(p=function(g,N){return n.call(this,g,N,e)}));const T=u.call(a,p,r);return o&&i?i(T):T}function Mi(e,t,n,r){const i=Or(e);let s=n;return i!==e&&(ze(e)?n.length>3&&(s=function(a,o,u){return n.call(this,a,o,u,e)}):s=function(a,o,u){return n.call(this,a,Ke(o),u,e)}),i[t](s,...r)}function Sr(e,t,n){const r=fe(e);xe(r,"iterate",mn);const i=r[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=fe(n[0]),r[t](...n)):i}function _n(e,t,n=[]){Yt(),gr();const r=fe(e)[t].apply(e,n);return Er(),Xt(),r}const gc=Xl("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un));function Ec(e){un(e)||(e=String(e));const t=fe(this);return xe(t,"has",e),t.hasOwnProperty(e)}class xi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Bi:Wi:s?wc:qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Oe(t);if(!i){let u;if(a&&(u=_c[n]))return u;if(n==="hasOwnProperty")return Ec}const o=Reflect.get(t,n,qe(t)?t:r);return(un(n)?Vi.has(n):gc(n))||(i||xe(t,"get",n),s)?o:qe(o)?a&&pr(n)?o:o.value:Ge(o)?i?ji(o):Hi(o):o}}class Nc extends xi{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=Nt(s);if(!ze(r)&&!Nt(r)&&(s=fe(s),r=fe(r)),!Oe(t)&&qe(s)&&!qe(r))return u?!1:(s.value=r,!0)}const a=Oe(t)&&pr(n)?Number(n)<t.length:Re(t,n),o=Reflect.set(t,n,r,qe(t)?t:i);return t===fe(i)&&(a?St(r,s)&&Lt(t,"set",n,r,s):Lt(t,"add",n,r)),o}deleteProperty(t,n){const r=Re(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!un(n)||!Vi.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",Oe(t)?"length":Ft),Reflect.ownKeys(t)}}class Ui extends xi{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&mt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&mt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const vc=new Nc,bc=new Ui,yc=new Ui(!0),Lr=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Tc(e,t,n){return function(...r){const i=this.__v_raw,s=fe(i),a=Kt(s),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,p=i[e](...r),T=n?Lr:t?Ar:Ke;return!t&&xe(s,"iterate",u?Tr:Ft),{next(){const{value:g,done:N}=p.next();return N?{value:g,done:N}:{value:o?[T(g[0]),T(g[1])]:T(g),done:N}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";mt(`${Si(e)} operation ${n}failed: target is readonly.`,fe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Oc(e,t){const n={get(i){const s=this.__v_raw,a=fe(s),o=fe(i);e||(St(i,o)&&xe(a,"get",i),xe(a,"get",o));const{has:u}=Vn(a),p=t?Lr:e?Ar:Ke;if(u.call(a,i))return p(s.get(i));if(u.call(a,o))return p(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!e&&xe(fe(i),"iterate",Ft),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,a=fe(s),o=fe(i);return e||(St(i,o)&&xe(a,"has",i),xe(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,u=fe(o),p=t?Lr:e?Ar:Ke;return!e&&xe(u,"iterate",Ft),o.forEach((T,g)=>i.call(s,p(T),p(g),a))}};return Je(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(i){!t&&!ze(i)&&!Nt(i)&&(i=fe(i));const s=fe(this);return Vn(s).has.call(s,i)||(s.add(i),Lt(s,"add",i,i)),this},set(i,s){!t&&!ze(s)&&!Nt(s)&&(s=fe(s));const a=fe(this),{has:o,get:u}=Vn(a);let p=o.call(a,i);p?process.env.NODE_ENV!=="production"&&$i(a,o,i):(i=fe(i),p=o.call(a,i));const T=u.call(a,i);return a.set(i,s),p?St(s,T)&&Lt(a,"set",i,s,T):Lt(a,"add",i,s),this},delete(i){const s=fe(this),{has:a,get:o}=Vn(s);let u=a.call(s,i);u?process.env.NODE_ENV!=="production"&&$i(s,a,i):(i=fe(i),u=a.call(s,i));const p=o?o.call(s,i):void 0,T=s.delete(i);return u&&Lt(s,"delete",i,void 0,p),T},clear(){const i=fe(this),s=i.size!==0,a=process.env.NODE_ENV!=="production"?Kt(i)?new Map(i):new Set(i):void 0,o=i.clear();return s&&Lt(i,"clear",void 0,void 0,a),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Tc(i,e,t)}),n}function wr(e,t){const n=Oc(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Re(n,i)&&i in r?n:r,i,s)}const Ic={get:wr(!1,!1)},Sc={get:wr(!0,!1)},Lc={get:wr(!0,!0)};function $i(e,t,n){const r=fe(n);if(r!==n&&t.call(e,r)){const i=Oi(e);mt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const qi=new WeakMap,wc=new WeakMap,Wi=new WeakMap,Bi=new WeakMap;function Dc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:Dc(Oi(e))}function Hi(e){return Nt(e)?e:Dr(e,!1,vc,Ic,qi)}function ji(e){return Dr(e,!0,bc,Sc,Wi)}function Un(e){return Dr(e,!0,yc,Lc,Bi)}function Dr(e,t,n,r,i){if(!Ge(e))return process.env.NODE_ENV!=="production"&&mt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Ac(e);if(s===0)return e;const a=i.get(e);if(a)return a;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function Qt(e){return Nt(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Rc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&sc(e,"__v_skip",!0),e}const Ke=e=>Ge(e)?Hi(e):e,Ar=e=>Ge(e)?ji(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function zt(e){return Ki(e,!1)}function Gi(e){return Ki(e,!0)}function Ki(e,t){return qe(e)?e:new Cc(e,t)}class Cc{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:Ke(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ze(t)||Nt(t);t=r?t:fe(t),St(t,n)&&(this._rawValue=t,this._value=r?t:Ke(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Pc(e){return qe(e)?e.value:e}const kc={get:(e,t,n)=>t==="__v_raw"?e:Pc(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qe(i)&&!qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fc(e){return Qt(e)?e:new Proxy(e,kc)}class Mc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Di(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&mt("Write operation failed: computed value is readonly")}}function Vc(e,t,n=!1){let r,i;Ce(e)?r=e:(r=e.get,i=e.set);const s=new Mc(r,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const qn={},Wn=new WeakMap;let Mt;function xc(e,t=!1,n=Mt){if(n){let r=Wn.get(n);r||Wn.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Uc(e,t,n=it){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:u}=n,p=F=>{(n.onWarn||mt)("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},T=F=>i?F:ze(F)||i===!1||i===0?wt(F,1):wt(F);let g,N,I,H,M=!1,x=!1;if(qe(e)?(N=()=>e.value,M=ze(e)):Qt(e)?(N=()=>T(e),M=!0):Oe(e)?(x=!0,M=e.some(F=>Qt(F)||ze(F)),N=()=>e.map(F=>{if(qe(F))return F.value;if(Qt(F))return T(F);if(Ce(F))return u?u(F,2):F();process.env.NODE_ENV!=="production"&&p(F)})):Ce(e)?t?N=u?()=>u(e,2):e:N=()=>{if(I){Yt();try{I()}finally{Xt()}}const F=Mt;Mt=g;try{return u?u(e,3,[H]):e(H)}finally{Mt=F}}:(N=kt,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const F=N,L=i===!0?1/0:i;N=()=>wt(F(),L)}const $=fc(),V=()=>{g.stop(),$&&$.active&&Ql($.effects,g)};if(s&&t){const F=t;t=(...L)=>{F(...L),V()}}let S=x?new Array(e.length).fill(qn):qn;const k=F=>{if(!(!(g.flags&1)||!g.dirty&&!F))if(t){const L=g.run();if(i||M||(x?L.some((P,_)=>St(P,S[_])):St(L,S))){I&&I();const P=Mt;Mt=g;try{const _=[L,S===qn?void 0:x&&S[0]===qn?[]:S,H];S=L,u?u(t,3,_):t(..._)}finally{Mt=P}}}else g.run()};return o&&o(k),g=new dc(N),g.scheduler=a?()=>a(k,!1):k,H=F=>xc(F,!1,g),I=g.onStop=()=>{const F=Wn.get(g);if(F){if(u)u(F,4);else for(const L of F)L();Wn.delete(g)}},process.env.NODE_ENV!=="production"&&(g.onTrack=n.onTrack,g.onTrigger=n.onTrigger),t?r?k(!0):S=g.run():a?a(k.bind(null,!0),!0):g.run(),V.pause=g.pause.bind(g),V.resume=g.resume.bind(g),V.stop=V,V}function wt(e,t=1/0,n){if(t<=0||!Ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))wt(e.value,t,n);else if(Oe(e))for(let r=0;r<e.length;r++)wt(e[r],t,n);else if(Zl(e)||Kt(e))e.forEach(r=>{wt(r,t,n)});else if(nc(e)){for(const r in e)wt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wt(e[r],t,n)}return e}/**
|
|
48
|
+
**/function mt(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Je;class cc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Je,!t&&Je&&(this.index=(Je.scopes||(Je.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Je;try{return Je=this,t()}finally{Je=n}}else process.env.NODE_ENV!=="production"&&mt("cannot run an inactive effect scope.")}on(){++this._on===1&&(this.prevScope=Je,Je=this)}off(){this._on>0&&--this._on===0&&(Je=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function uc(e){return new cc(e)}function fc(){return Je}let he;const hr=new WeakSet;class dc{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Je&&Je.active&&Je.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,hr.has(this)&&(hr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ki(this),Ai(this);const t=he,n=ft;he=this,ft=!0;try{return this.fn()}finally{process.env.NODE_ENV!=="production"&&he!==this&&mt("Active effect was not restored correctly - this is likely a Vue internal bug."),Ri(this),he=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)vr(t);this.deps=this.depsTail=void 0,ki(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?hr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let Di=0,fn,dn;function wi(e,t=!1){if(e.flags|=8,t){e.next=dn,dn=e;return}e.next=fn,fn=e}function gr(){Di++}function Er(){if(--Di>0)return;if(dn){let t=dn;for(dn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fn;){let t=fn;for(fn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ri(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),vr(r),pc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===pn)||(e.globalVersion=pn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Nr(e))))return;e.flags|=2;const t=e.dep,n=he,r=ft;he=e,ft=!0;try{Ai(e);const i=e.fn(e._value);(t.version===0||St(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{he=n,ft=r,Ri(e),e.flags&=-3}}function vr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),process.env.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)vr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function pc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Pi=[];function Yt(){Pi.push(ft),ft=!1}function Qt(){const e=Pi.pop();ft=e===void 0?!0:e}function ki(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let pn=0;class mc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class br{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,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!he||!ft||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new mc(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,Fi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return process.env.NODE_ENV!=="production"&&he.onTrack&&he.onTrack(Xe({effect:he},t)),n}trigger(t){this.version++,pn++,this.notify(t)}notify(t){gr();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Xe({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Er()}}}function Fi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Fi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),process.env.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const yr=new WeakMap,Ft=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Or=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),mn=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function xe(e,t,n){if(ft&&he){let r=yr.get(e);r||yr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new br),i.map=r,i.key=n),process.env.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Lt(e,t,n,r,i,s){const a=yr.get(e);if(!a){pn++;return}const o=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:s}):u.trigger())};if(gr(),t==="clear")a.forEach(o);else{const u=Te(e),p=u&&pr(n);if(u&&n==="length"){const O=Number(r);a.forEach((g,N)=>{(N==="length"||N===mn||!un(N)&&N>=O)&&o(g)})}else switch((n!==void 0||a.has(void 0))&&o(a.get(n)),p&&o(a.get(mn)),t){case"add":u?p&&o(a.get("length")):(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"delete":u||(o(a.get(Ft)),Kt(e)&&o(a.get(Or)));break;case"set":Kt(e)&&o(a.get(Ft));break}}Er()}function Xt(e){const t=fe(e);return t===e?t:(xe(t,"iterate",mn),ze(e)?t:t.map(Ke))}function Tr(e){return xe(e=fe(e),"iterate",mn),e}const _c={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,Ke)},concat(...e){return Xt(this).concat(...e.map(t=>Te(t)?Xt(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Ke(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ke),arguments)},find(e,t){return Et(this,"find",e,t,Ke,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ke,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Sr(this,"includes",e)},indexOf(...e){return Sr(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return Sr(this,"lastIndexOf",e)},map(e,t){return Et(this,"map",e,t,void 0,arguments)},pop(){return _n(this,"pop")},push(...e){return _n(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return _n(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return _n(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return _n(this,"unshift",e)},values(){return Ir(this,"values",Ke)}};function Ir(e,t,n){const r=Tr(e),i=r[t]();return r!==e&&!ze(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const hc=Array.prototype;function Et(e,t,n,r,i,s){const a=Tr(e),o=a!==e&&!ze(e),u=a[t];if(u!==hc[t]){const g=u.apply(e,s);return o?Ke(g):g}let p=n;a!==e&&(o?p=function(g,N){return n.call(this,Ke(g),N,e)}:n.length>2&&(p=function(g,N){return n.call(this,g,N,e)}));const O=u.call(a,p,r);return o&&i?i(O):O}function Mi(e,t,n,r){const i=Tr(e);let s=n;return i!==e&&(ze(e)?n.length>3&&(s=function(a,o,u){return n.call(this,a,o,u,e)}):s=function(a,o,u){return n.call(this,a,Ke(o),u,e)}),i[t](s,...r)}function Sr(e,t,n){const r=fe(e);xe(r,"iterate",mn);const i=r[t](...n);return(i===-1||i===!1)&&$n(n[0])?(n[0]=fe(n[0]),r[t](...n)):i}function _n(e,t,n=[]){Yt(),gr();const r=fe(e)[t].apply(e,n);return Er(),Qt(),r}const gc=Ql("__proto__,__v_isRef,__isVue"),Vi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(un));function Ec(e){un(e)||(e=String(e));const t=fe(this);return xe(t,"has",e),t.hasOwnProperty(e)}class xi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Wi:Bi:s?Dc:qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=Te(t);if(!i){let u;if(a&&(u=_c[n]))return u;if(n==="hasOwnProperty")return Ec}const o=Reflect.get(t,n,qe(t)?t:r);return(un(n)?Vi.has(n):gc(n))||(i||xe(t,"get",n),s)?o:qe(o)?a&&pr(n)?o:o.value:Ge(o)?i?ji(o):Hi(o):o}}class Nc extends xi{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const u=Nt(s);if(!ze(r)&&!Nt(r)&&(s=fe(s),r=fe(r)),!Te(t)&&qe(s)&&!qe(r))return u?!1:(s.value=r,!0)}const a=Te(t)&&pr(n)?Number(n)<t.length:Re(t,n),o=Reflect.set(t,n,r,qe(t)?t:i);return t===fe(i)&&(a?St(r,s)&&Lt(t,"set",n,r,s):Lt(t,"add",n,r)),o}deleteProperty(t,n){const r=Re(t,n),i=t[n],s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0,i),s}has(t,n){const r=Reflect.has(t,n);return(!un(n)||!Vi.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",Te(t)?"length":Ft),Reflect.ownKeys(t)}}class Ui extends xi{constructor(t=!1){super(!0,t)}set(t,n){return process.env.NODE_ENV!=="production"&&mt(`Set operation on key "${String(n)}" failed: target is readonly.`,t),!0}deleteProperty(t,n){return process.env.NODE_ENV!=="production"&&mt(`Delete operation on key "${String(n)}" failed: target is readonly.`,t),!0}}const vc=new Nc,bc=new Ui,yc=new Ui(!0),Lr=e=>e,Vn=e=>Reflect.getPrototypeOf(e);function Oc(e,t,n){return function(...r){const i=this.__v_raw,s=fe(i),a=Kt(s),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,p=i[e](...r),O=n?Lr:t?Ar:Ke;return!t&&xe(s,"iterate",u?Or:Ft),{next(){const{value:g,done:N}=p.next();return N?{value:g,done:N}:{value:o?[O(g[0]),O(g[1])]:O(g),done:N}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";mt(`${Si(e)} operation ${n}failed: target is readonly.`,fe(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function Tc(e,t){const n={get(i){const s=this.__v_raw,a=fe(s),o=fe(i);e||(St(i,o)&&xe(a,"get",i),xe(a,"get",o));const{has:u}=Vn(a),p=t?Lr:e?Ar:Ke;if(u.call(a,i))return p(s.get(i));if(u.call(a,o))return p(s.get(o));s!==a&&s.get(i)},get size(){const i=this.__v_raw;return!e&&xe(fe(i),"iterate",Ft),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,a=fe(s),o=fe(i);return e||(St(i,o)&&xe(a,"has",i),xe(a,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const a=this,o=a.__v_raw,u=fe(o),p=t?Lr:e?Ar:Ke;return!e&&xe(u,"iterate",Ft),o.forEach((O,g)=>i.call(s,p(O),p(g),a))}};return Xe(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(i){!t&&!ze(i)&&!Nt(i)&&(i=fe(i));const s=fe(this);return Vn(s).has.call(s,i)||(s.add(i),Lt(s,"add",i,i)),this},set(i,s){!t&&!ze(s)&&!Nt(s)&&(s=fe(s));const a=fe(this),{has:o,get:u}=Vn(a);let p=o.call(a,i);p?process.env.NODE_ENV!=="production"&&$i(a,o,i):(i=fe(i),p=o.call(a,i));const O=u.call(a,i);return a.set(i,s),p?St(s,O)&&Lt(a,"set",i,s,O):Lt(a,"add",i,s),this},delete(i){const s=fe(this),{has:a,get:o}=Vn(s);let u=a.call(s,i);u?process.env.NODE_ENV!=="production"&&$i(s,a,i):(i=fe(i),u=a.call(s,i));const p=o?o.call(s,i):void 0,O=s.delete(i);return u&&Lt(s,"delete",i,void 0,p),O},clear(){const i=fe(this),s=i.size!==0,a=process.env.NODE_ENV!=="production"?Kt(i)?new Map(i):new Set(i):void 0,o=i.clear();return s&&Lt(i,"clear",void 0,void 0,a),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Oc(i,e,t)}),n}function Dr(e,t){const n=Tc(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Re(n,i)&&i in r?n:r,i,s)}const Ic={get:Dr(!1,!1)},Sc={get:Dr(!0,!1)},Lc={get:Dr(!0,!0)};function $i(e,t,n){const r=fe(n);if(r!==n&&t.call(e,r)){const i=Ti(e);mt(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const qi=new WeakMap,Dc=new WeakMap,Bi=new WeakMap,Wi=new WeakMap;function wc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ac(e){return e.__v_skip||!Object.isExtensible(e)?0:wc(Ti(e))}function Hi(e){return Nt(e)?e:wr(e,!1,vc,Ic,qi)}function ji(e){return wr(e,!0,bc,Sc,Bi)}function Un(e){return wr(e,!0,yc,Lc,Wi)}function wr(e,t,n,r,i){if(!Ge(e))return process.env.NODE_ENV!=="production"&&mt(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=Ac(e);if(s===0)return e;const a=i.get(e);if(a)return a;const o=new Proxy(e,s===2?r:n);return i.set(e,o),o}function Jt(e){return Nt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Nt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function $n(e){return e?!!e.__v_raw:!1}function fe(e){const t=e&&e.__v_raw;return t?fe(t):e}function Rc(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&sc(e,"__v_skip",!0),e}const Ke=e=>Ge(e)?Hi(e):e,Ar=e=>Ge(e)?ji(e):e;function qe(e){return e?e.__v_isRef===!0:!1}function zt(e){return Ki(e,!1)}function Gi(e){return Ki(e,!0)}function Ki(e,t){return qe(e)?e:new Cc(e,t)}class Cc{constructor(t,n){this.dep=new br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:fe(t),this._value=n?t:Ke(t),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ze(t)||Nt(t);t=r?t:fe(t),St(t,n)&&(this._rawValue=t,this._value=r?t:Ke(t),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function Pc(e){return qe(e)?e.value:e}const kc={get:(e,t,n)=>t==="__v_raw"?e:Pc(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qe(i)&&!qe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Fc(e){return Jt(e)?e:new Proxy(e,kc)}class Mc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return wi(this,!0),!0;process.env.NODE_ENV}get value(){const t=process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):process.env.NODE_ENV!=="production"&&mt("Write operation failed: computed value is readonly")}}function Vc(e,t,n=!1){let r,i;Ce(e)?r=e:(r=e.get,i=e.set);const s=new Mc(r,i,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.onTrack=t.onTrack,s.onTrigger=t.onTrigger),s}const qn={},Bn=new WeakMap;let Mt;function xc(e,t=!1,n=Mt){if(n){let r=Bn.get(n);r||Bn.set(n,r=[]),r.push(e)}else process.env.NODE_ENV!=="production"&&!t&&mt("onWatcherCleanup() was called when there was no active watcher to associate with.")}function Uc(e,t,n=it){const{immediate:r,deep:i,once:s,scheduler:a,augmentJob:o,call:u}=n,p=F=>{(n.onWarn||mt)("Invalid watch source: ",F,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},O=F=>i?F:ze(F)||i===!1||i===0?Dt(F,1):Dt(F);let g,N,I,H,M=!1,x=!1;if(qe(e)?(N=()=>e.value,M=ze(e)):Jt(e)?(N=()=>O(e),M=!0):Te(e)?(x=!0,M=e.some(F=>Jt(F)||ze(F)),N=()=>e.map(F=>{if(qe(F))return F.value;if(Jt(F))return O(F);if(Ce(F))return u?u(F,2):F();process.env.NODE_ENV!=="production"&&p(F)})):Ce(e)?t?N=u?()=>u(e,2):e:N=()=>{if(I){Yt();try{I()}finally{Qt()}}const F=Mt;Mt=g;try{return u?u(e,3,[H]):e(H)}finally{Mt=F}}:(N=kt,process.env.NODE_ENV!=="production"&&p(e)),t&&i){const F=N,L=i===!0?1/0:i;N=()=>Dt(F(),L)}const $=fc(),V=()=>{g.stop(),$&&$.active&&Jl($.effects,g)};if(s&&t){const F=t;t=(...L)=>{F(...L),V()}}let S=x?new Array(e.length).fill(qn):qn;const k=F=>{if(!(!(g.flags&1)||!g.dirty&&!F))if(t){const L=g.run();if(i||M||(x?L.some((P,_)=>St(P,S[_])):St(L,S))){I&&I();const P=Mt;Mt=g;try{const _=[L,S===qn?void 0:x&&S[0]===qn?[]:S,H];S=L,u?u(t,3,_):t(..._)}finally{Mt=P}}}else g.run()};return o&&o(k),g=new dc(N),g.scheduler=a?()=>a(k,!1):k,H=F=>xc(F,!1,g),I=g.onStop=()=>{const F=Bn.get(g);if(F){if(u)u(F,4);else for(const L of F)L();Bn.delete(g)}},process.env.NODE_ENV!=="production"&&(g.onTrack=n.onTrack,g.onTrigger=n.onTrigger),t?r?k(!0):S=g.run():a?a(k.bind(null,!0),!0):g.run(),V.pause=g.pause.bind(g),V.resume=g.resume.bind(g),V.stop=V,V}function Dt(e,t=1/0,n){if(t<=0||!Ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,qe(e))Dt(e.value,t,n);else if(Te(e))for(let r=0;r<e.length;r++)Dt(e[r],t,n);else if(Zl(e)||Kt(e))e.forEach(r=>{Dt(r,t,n)});else if(nc(e)){for(const r in e)Dt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Dt(e[r],t,n)}return e}/**
|
|
49
49
|
* @vue/runtime-core v3.5.17
|
|
50
50
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
51
51
|
* @license MIT
|
|
52
|
-
**/const Vt=[];function $c(e){Vt.push(e)}function qc(){Vt.pop()}let Rr=!1;function Ie(e,...t){if(Rr)return;Rr=!0,Yt();const n=Vt.length?Vt[Vt.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=
|
|
52
|
+
**/const Vt=[];function $c(e){Vt.push(e)}function qc(){Vt.pop()}let Rr=!1;function Ie(e,...t){if(Rr)return;Rr=!0,Yt();const n=Vt.length?Vt[Vt.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=Bc();if(r)Wn(r,n,11,[e+t.map(s=>{var a,o;return(o=(a=s.toString)==null?void 0:a.call(s))!=null?o:JSON.stringify(s)}).join(""),n&&n.proxy,i.map(({vnode:s})=>`at <${ha(n,s.type)}>`).join(`
|
|
53
53
|
`),i]);else{const s=[`[Vue warn]: ${e}`,...t];i.length&&s.push(`
|
|
54
|
-
`,...
|
|
55
|
-
`],...Hc(n))}),t}function Hc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${ha(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...jc(e.props),s]:[i+s]}function jc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Yi(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Yi(e,t,n){return ut(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Yi(e,fe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=fe(t),n?t:[`${e}=`,t])}const Cr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Bn(e,t,n,r){try{return r?e(...r):e()}catch(i){kr(i,t,n)}}function Pr(e,t,n,r){if(Ce(e)){const i=Bn(e,t,n,r);return i&&ec(i)&&i.catch(s=>{kr(s,t,n)}),i}if(Oe(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Pr(e[s],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function kr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||it;if(t){let o=t.parent;const u=t.proxy,p=process.env.NODE_ENV!=="production"?Cr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const T=o.ec;if(T){for(let g=0;g<T.length;g++)if(T[g](e,u,p)===!1)return}o=o.parent}if(s){Yt(),Bn(s,null,10,[e,u,p]),Xt();return}}Gc(e,n,i,r,a)}function Gc(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!=="production"){const s=Cr[t];if(n&&$c(n),Ie(`Unhandled error${s?` during execution of ${s}`:""}`),n&&qc(),r)throw e;console.error(e)}else{if(i)throw e;console.error(e)}}const at=[];let vt=-1;const Zt=[];let Dt=null,en=0;const Xi=Promise.resolve();let Hn=null;const Kc=100;function Yc(e){const t=Hn||Xi;return e?t.then(this?e.bind(this):e):t}function Xc(e){let t=vt+1,n=at.length;for(;t<n;){const r=t+n>>>1,i=at[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Fr(e){if(!(e.flags&1)){const t=hn(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=hn(n)?at.push(e):at.splice(Xc(t),0,e),e.flags|=1,Ji()}}function Ji(){Hn||(Hn=Xi.then(zi))}function Qi(e){Oe(e)?Zt.push(...e):Dt&&e.id===-1?Dt.splice(en+1,0,e):e.flags&1||(Zt.push(e),e.flags|=1),Ji()}function Jc(e){if(Zt.length){const t=[...new Set(Zt)].sort((n,r)=>hn(n)-hn(r));if(Zt.length=0,Dt){Dt.push(...t);return}for(Dt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),en=0;en<Dt.length;en++){const n=Dt[en];process.env.NODE_ENV!=="production"&&Zi(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}Dt=null,en=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>Zi(e,n):kt;try{for(vt=0;vt<at.length;vt++){const n=at[vt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Bn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;vt<at.length;vt++){const n=at[vt];n&&(n.flags&=-2)}vt=-1,at.length=0,Jc(e),Hn=null,(at.length||Zt.length)&&zi(e)}}function Zi(e,t){const n=e.get(t)||0;if(n>Kc){const r=t.i,i=r&&_a(r.type);return kr(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Mr=new Map;process.env.NODE_ENV!=="production"&&(Mn().__VUE_HMR_RUNTIME__={createRecord:Vr(Qc),rerender:Vr(zc),reload:Vr(Zc)});const jn=new Map;function Qc(e,t){return jn.has(e)?!1:(jn.set(e,{initialDef:Gn(t),instances:new Set}),!0)}function Gn(e){return ga(e)?e.__vccOpts:e}function zc(e,t){const n=jn.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Gn(r.type).render=t),r.renderCache=[],r.update()}))}function Zc(e,t){const n=jn.get(e);if(!n)return;t=Gn(t),ea(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const s=r[i],a=Gn(s.type);let o=Mr.get(a);o||(a!==n.initialDef&&ea(a,t),Mr.set(a,o=new Set)),o.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(o.add(s),s.ceReload(t.styles),o.delete(s)):s.parent?Fr(()=>{s.parent.update(),o.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(a)}Qi(()=>{Mr.clear()})}function ea(e,t){Je(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Vr(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn,Kn=[];function ta(e,t){var n,r;tn=e,tn?(tn.enabled=!0,Kn.forEach(({event:i,args:s})=>tn.emit(i,...s)),Kn=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{ta(s,t)}),setTimeout(()=>{tn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kn=[])},3e3)):Kn=[]}let _t=null,eu=null;const tu=e=>e.__isTeleport;function na(e,t){e.shapeFlag&6&&e.component?(e.transition=t,na(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function xr(e,t){return Ce(e)?(()=>Je({name:e.name},t,{setup:e}))():e}Mn().requestIdleCallback,Mn().cancelIdleCallback;function nu(e,t,n=xt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Yt();const o=ma(n),u=Pr(t,n,e,a);return o(),Xt(),u});return r?i.unshift(s):i.push(s),s}else if(process.env.NODE_ENV!=="production"){const i=rc(Cr[e].replace(/ hook$/,""));Ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ur=e=>(t,n=xt)=>{(!Nn||e==="sp")&&nu(e,(...r)=>t(...r),n)},ru=Ur("bm"),su=Ur("m"),iu=Ur("um"),au=Symbol.for("v-ndc"),$r=e=>e?Du(e)?Au(e):$r(e.parent):null,gn=Je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Un(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Un(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Un(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Un(e.refs):e.refs,$parent:e=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?uu(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Fr(e.update)}),$nextTick:e=>e.n||(e.n=Yc.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Nu.bind(e):kt}),ou=e=>e==="_"||e==="$",qr=(e,t)=>e!==it&&!e.__isScriptSetup&&Re(e,t),lu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:u}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const I=a[t];if(I!==void 0)switch(I){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(qr(r,t))return a[t]=1,r[t];if(i!==it&&Re(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Re(p,t))return a[t]=3,s[t];if(n!==it&&Re(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||cu)&&(a[t]=0)}}const T=gn[t];let g,N;if(T)return t==="$attrs"?(xe(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&xe(e,"get",t),T(e);if((g=o.__cssModules)&&(g=g[t]))return g;if(n!==it&&Re(n,t))return a[t]=4,n[t];if(N=u.config.globalProperties,Re(N,t))return N[t];process.env.NODE_ENV!=="production"&&_t&&(!ut(t)||t.indexOf("__v")!==0)&&(i!==it&&ou(t[0])&&Re(i,t)?Ie(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===_t&&Ie(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return qr(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,t)?(Ie(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==it&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||e!==it&&Re(e,a)||qr(t,a)||(o=s[0])&&Re(o,a)||Re(r,a)||Re(gn,a)||Re(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(lu.ownKeys=e=>(Ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ra(e){return Oe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cu=!0;function uu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let u;return o?u=o:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(p=>Yn(u,p,a,!0)),Yn(u,t,a)),Ge(t)&&s.set(t,u),u}function Yn(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yn(e,s,n,!0),i&&i.forEach(a=>Yn(e,a,n,!0));for(const a in t)if(r&&a==="expose")process.env.NODE_ENV!=="production"&&Ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=fu[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const fu={data:sa,props:aa,emits:aa,methods:En,computed:En,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:En,directives:En,watch:pu,provide:sa,inject:du};function sa(e,t){return t?e?function(){return Je(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function du(e,t){return En(ia(e),ia(t))}function ia(e){if(Oe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Je(Object.create(null),e,t):t}function aa(e,t){return e?Oe(e)&&Oe(t)?[...new Set([...e,...t])]:Je(Object.create(null),ra(e),ra(t??{})):t}function pu(e,t){if(!e)return t;if(!t)return e;const n=Je(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}let mu=null;function oa(e,t,n=!1){const r=xt||_t;if(r||mu){let i=r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Ie(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Ie("inject() can only be used inside setup() or functional components.")}const _u={},la=e=>Object.getPrototypeOf(e)===_u,hu=yu,gu=Symbol.for("v-scx"),Eu=()=>{{const e=oa(gu);return e||process.env.NODE_ENV!=="production"&&Ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Wr(e,t,n){return process.env.NODE_ENV!=="production"&&!Ce(t)&&Ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ca(e,t,n)}function ca(e,t,n=it){const{immediate:r,deep:i,flush:s,once:a}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&Ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&Ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const o=Je({},n);process.env.NODE_ENV!=="production"&&(o.onWarn=Ie);const u=t&&r||!t&&s!=="post";let p;if(Nn){if(s==="sync"){const I=Eu();p=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=kt,I.resume=kt,I.pause=kt,I}}const T=xt;o.call=(I,H,M)=>Pr(I,T,H,M);let g=!1;s==="post"?o.scheduler=I=>{hu(I,T&&T.suspense)}:s!=="sync"&&(g=!0,o.scheduler=(I,H)=>{H?I():Fr(I)}),o.augmentJob=I=>{t&&(I.flags|=4),g&&(I.flags|=2,T&&(I.id=T.uid,I.i=T))};const N=Uc(e,t,o);return Nn&&(p?p.push(N):u&&N()),N}function Nu(e,t,n){const r=this.proxy,i=ut(e)?e.includes(".")?vu(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=ma(this),o=ca(i,s.bind(r),n);return a(),o}function vu(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function xf(){}const bu=e=>e.__isSuspense;function yu(e,t){t&&t.pendingBranch?Oe(e)?t.effects.push(...e):t.effects.push(e):Qi(e)}const Xn=Symbol.for("v-fgt"),ua=Symbol.for("v-txt"),Tu=Symbol.for("v-cmt");let nn=null;function Br(e){return e?e.__v_isVNode===!0:!1}const Ou=(...e)=>da(...e),fa=({key:e})=>e??null,Jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||qe(e)||Ce(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function Iu(e,t=null,n=null,r=0,i=null,s=e===Xn?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fa(t),ref:t&&Jn(t),scopeId:eu,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_t};return o?(Hr(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ut(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&Ie("VNode created with invalid key (NaN). VNode type:",u.type),!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const rn=process.env.NODE_ENV!=="production"?Ou:da;function da(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===au)&&(process.env.NODE_ENV!=="production"&&!e&&Ie(`Invalid vnode type when creating vnode: ${e}.`),e=Tu),Br(e)){const o=Qn(e,t,!0);return n&&Hr(o,n),!s&&nn&&(o.shapeFlag&6?nn[nn.indexOf(e)]=o:nn.push(o)),o.patchFlag=-2,o}if(ga(e)&&(e=e.__vccOpts),t){t=Su(t);let{class:o,style:u}=t;o&&!ut(o)&&(t.class=_r(o)),Ge(u)&&($n(u)&&!Oe(u)&&(u=Je({},u)),t.style=mr(u))}const a=ut(e)?1:bu(e)?128:tu(e)?64:Ge(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&$n(e)&&(e=fe(e),Ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
56
|
-
Component that was made reactive: `,e)),Iu(e,t,n,r,i,a,s,!0)}function Su(e){return e?$n(e)||la(e)?
|
|
54
|
+
`,...Wc(i)),console.warn(...s)}Qt(),Rr=!1}function Bc(){let e=Vt[Vt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Wc(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
55
|
+
`],...Hc(n))}),t}function Hc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${ha(e.component,e.type,r)}`,s=">"+n;return e.props?[i,...jc(e.props),s]:[i+s]}function jc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Yi(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Yi(e,t,n){return ut(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qe(t)?(t=Yi(e,fe(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=fe(t),n?t:[`${e}=`,t])}const Cr={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Wn(e,t,n,r){try{return r?e(...r):e()}catch(i){kr(i,t,n)}}function Pr(e,t,n,r){if(Ce(e)){const i=Wn(e,t,n,r);return i&&ec(i)&&i.catch(s=>{kr(s,t,n)}),i}if(Te(e)){const i=[];for(let s=0;s<e.length;s++)i.push(Pr(e[s],t,n,r));return i}else process.env.NODE_ENV!=="production"&&Ie(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`)}function kr(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||it;if(t){let o=t.parent;const u=t.proxy,p=process.env.NODE_ENV!=="production"?Cr[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const O=o.ec;if(O){for(let g=0;g<O.length;g++)if(O[g](e,u,p)===!1)return}o=o.parent}if(s){Yt(),Wn(s,null,10,[e,u,p]),Qt();return}}Gc(e,n,i,r,a)}function Gc(e,t,n,r=!0,i=!1){if(process.env.NODE_ENV!=="production"){const s=Cr[t];if(n&&$c(n),Ie(`Unhandled error${s?` during execution of ${s}`:""}`),n&&qc(),r)throw e;console.error(e)}else{if(i)throw e;console.error(e)}}const at=[];let vt=-1;const Zt=[];let wt=null,en=0;const Qi=Promise.resolve();let Hn=null;const Kc=100;function Yc(e){const t=Hn||Qi;return e?t.then(this?e.bind(this):e):t}function Qc(e){let t=vt+1,n=at.length;for(;t<n;){const r=t+n>>>1,i=at[r],s=hn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Fr(e){if(!(e.flags&1)){const t=hn(e),n=at[at.length-1];!n||!(e.flags&2)&&t>=hn(n)?at.push(e):at.splice(Qc(t),0,e),e.flags|=1,Xi()}}function Xi(){Hn||(Hn=Qi.then(zi))}function Ji(e){Te(e)?Zt.push(...e):wt&&e.id===-1?wt.splice(en+1,0,e):e.flags&1||(Zt.push(e),e.flags|=1),Xi()}function Xc(e){if(Zt.length){const t=[...new Set(Zt)].sort((n,r)=>hn(n)-hn(r));if(Zt.length=0,wt){wt.push(...t);return}for(wt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),en=0;en<wt.length;en++){const n=wt[en];process.env.NODE_ENV!=="production"&&Zi(e,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}wt=null,en=0}}const hn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){process.env.NODE_ENV!=="production"&&(e=e||new Map);const t=process.env.NODE_ENV!=="production"?n=>Zi(e,n):kt;try{for(vt=0;vt<at.length;vt++){const n=at[vt];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&t(n))continue;n.flags&4&&(n.flags&=-2),Wn(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;vt<at.length;vt++){const n=at[vt];n&&(n.flags&=-2)}vt=-1,at.length=0,Xc(e),Hn=null,(at.length||Zt.length)&&zi(e)}}function Zi(e,t){const n=e.get(t)||0;if(n>Kc){const r=t.i,i=r&&_a(r.type);return kr(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Mr=new Map;process.env.NODE_ENV!=="production"&&(Mn().__VUE_HMR_RUNTIME__={createRecord:Vr(Jc),rerender:Vr(zc),reload:Vr(Zc)});const jn=new Map;function Jc(e,t){return jn.has(e)?!1:(jn.set(e,{initialDef:Gn(t),instances:new Set}),!0)}function Gn(e){return ga(e)?e.__vccOpts:e}function zc(e,t){const n=jn.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,Gn(r.type).render=t),r.renderCache=[],r.update()}))}function Zc(e,t){const n=jn.get(e);if(!n)return;t=Gn(t),ea(n.initialDef,t);const r=[...n.instances];for(let i=0;i<r.length;i++){const s=r[i],a=Gn(s.type);let o=Mr.get(a);o||(a!==n.initialDef&&ea(a,t),Mr.set(a,o=new Set)),o.add(s),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(o.add(s),s.ceReload(t.styles),o.delete(s)):s.parent?Fr(()=>{s.parent.update(),o.delete(s)}):s.appContext.reload?s.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),s.root.ce&&s!==s.root&&s.root.ce._removeChildStyle(a)}Ji(()=>{Mr.clear()})}function ea(e,t){Xe(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function Vr(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let tn,Kn=[];function ta(e,t){var n,r;tn=e,tn?(tn.enabled=!0,Kn.forEach(({event:i,args:s})=>tn.emit(i,...s)),Kn=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{ta(s,t)}),setTimeout(()=>{tn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Kn=[])},3e3)):Kn=[]}let _t=null,eu=null;const tu=e=>e.__isTeleport;function na(e,t){e.shapeFlag&6&&e.component?(e.transition=t,na(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function xr(e,t){return Ce(e)?(()=>Xe({name:e.name},t,{setup:e}))():e}Mn().requestIdleCallback,Mn().cancelIdleCallback;function nu(e,t,n=xt,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...a)=>{Yt();const o=ma(n),u=Pr(t,n,e,a);return o(),Qt(),u});return r?i.unshift(s):i.push(s),s}else if(process.env.NODE_ENV!=="production"){const i=rc(Cr[e].replace(/ hook$/,""));Ie(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Ur=e=>(t,n=xt)=>{(!Nn||e==="sp")&&nu(e,(...r)=>t(...r),n)},ru=Ur("bm"),su=Ur("m"),iu=Ur("um"),au=Symbol.for("v-ndc"),$r=e=>e?wu(e)?Au(e):$r(e.parent):null,gn=Xe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Un(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Un(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Un(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Un(e.refs):e.refs,$parent:e=>$r(e.parent),$root:e=>$r(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?uu(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Fr(e.update)}),$nextTick:e=>e.n||(e.n=Yc.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Nu.bind(e):kt}),ou=e=>e==="_"||e==="$",qr=(e,t)=>e!==it&&!e.__isScriptSetup&&Re(e,t),lu={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:a,type:o,appContext:u}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const I=a[t];if(I!==void 0)switch(I){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(qr(r,t))return a[t]=1,r[t];if(i!==it&&Re(i,t))return a[t]=2,i[t];if((p=e.propsOptions[0])&&Re(p,t))return a[t]=3,s[t];if(n!==it&&Re(n,t))return a[t]=4,n[t];(!__VUE_OPTIONS_API__||cu)&&(a[t]=0)}}const O=gn[t];let g,N;if(O)return t==="$attrs"?(xe(e.attrs,"get",""),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&xe(e,"get",t),O(e);if((g=o.__cssModules)&&(g=g[t]))return g;if(n!==it&&Re(n,t))return a[t]=4,n[t];if(N=u.config.globalProperties,Re(N,t))return N[t];process.env.NODE_ENV!=="production"&&_t&&(!ut(t)||t.indexOf("__v")!==0)&&(i!==it&&ou(t[0])&&Re(i,t)?Ie(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===_t&&Ie(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return qr(i,t)?(i[t]=n,!0):process.env.NODE_ENV!=="production"&&i.__isScriptSetup&&Re(i,t)?(Ie(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):r!==it&&Re(r,t)?(r[t]=n,!0):Re(e.props,t)?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&Ie(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},a){let o;return!!n[a]||e!==it&&Re(e,a)||qr(t,a)||(o=s[0])&&Re(o,a)||Re(r,a)||Re(gn,a)||Re(i.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(lu.ownKeys=e=>(Ie("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function ra(e){return Te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cu=!0;function uu(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,o=s.get(t);let u;return o?u=o:!i.length&&!n&&!r?u=t:(u={},i.length&&i.forEach(p=>Yn(u,p,a,!0)),Yn(u,t,a)),Ge(t)&&s.set(t,u),u}function Yn(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&Yn(e,s,n,!0),i&&i.forEach(a=>Yn(e,a,n,!0));for(const a in t)if(r&&a==="expose")process.env.NODE_ENV!=="production"&&Ie('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=fu[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const fu={data:sa,props:aa,emits:aa,methods:En,computed:En,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:En,directives:En,watch:pu,provide:sa,inject:du};function sa(e,t){return t?e?function(){return Xe(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function du(e,t){return En(ia(e),ia(t))}function ia(e){if(Te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Xe(Object.create(null),e,t):t}function aa(e,t){return e?Te(e)&&Te(t)?[...new Set([...e,...t])]:Xe(Object.create(null),ra(e),ra(t??{})):t}function pu(e,t){if(!e)return t;if(!t)return e;const n=Xe(Object.create(null),e);for(const r in t)n[r]=Ye(e[r],t[r]);return n}let mu=null;function oa(e,t,n=!1){const r=xt||_t;if(r||mu){let i=r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ce(t)?t.call(r&&r.proxy):t;process.env.NODE_ENV!=="production"&&Ie(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&Ie("inject() can only be used inside setup() or functional components.")}const _u={},la=e=>Object.getPrototypeOf(e)===_u,hu=yu,gu=Symbol.for("v-scx"),Eu=()=>{{const e=oa(gu);return e||process.env.NODE_ENV!=="production"&&Ie("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Br(e,t,n){return process.env.NODE_ENV!=="production"&&!Ce(t)&&Ie("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),ca(e,t,n)}function ca(e,t,n=it){const{immediate:r,deep:i,flush:s,once:a}=n;process.env.NODE_ENV!=="production"&&!t&&(r!==void 0&&Ie('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ie('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&Ie('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const o=Xe({},n);process.env.NODE_ENV!=="production"&&(o.onWarn=Ie);const u=t&&r||!t&&s!=="post";let p;if(Nn){if(s==="sync"){const I=Eu();p=I.__watcherHandles||(I.__watcherHandles=[])}else if(!u){const I=()=>{};return I.stop=kt,I.resume=kt,I.pause=kt,I}}const O=xt;o.call=(I,H,M)=>Pr(I,O,H,M);let g=!1;s==="post"?o.scheduler=I=>{hu(I,O&&O.suspense)}:s!=="sync"&&(g=!0,o.scheduler=(I,H)=>{H?I():Fr(I)}),o.augmentJob=I=>{t&&(I.flags|=4),g&&(I.flags|=2,O&&(I.id=O.uid,I.i=O))};const N=Uc(e,t,o);return Nn&&(p?p.push(N):u&&N()),N}function Nu(e,t,n){const r=this.proxy,i=ut(e)?e.includes(".")?vu(r,e):()=>r[e]:e.bind(r,r);let s;Ce(t)?s=t:(s=t.handler,n=t);const a=ma(this),o=ca(i,s.bind(r),n);return a(),o}function vu(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function qf(){}const bu=e=>e.__isSuspense;function yu(e,t){t&&t.pendingBranch?Te(e)?t.effects.push(...e):t.effects.push(e):Ji(e)}const Qn=Symbol.for("v-fgt"),ua=Symbol.for("v-txt"),Ou=Symbol.for("v-cmt");let nn=null;function Wr(e){return e?e.__v_isVNode===!0:!1}const Tu=(...e)=>da(...e),fa=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||qe(e)||Ce(e)?{i:_t,r:e,k:t,f:!!n}:e:null);function Iu(e,t=null,n=null,r=0,i=null,s=e===Qn?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fa(t),ref:t&&Xn(t),scopeId:eu,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:_t};return o?(Hr(u,n),s&128&&e.normalize(u)):n&&(u.shapeFlag|=ut(n)?8:16),process.env.NODE_ENV!=="production"&&u.key!==u.key&&Ie("VNode created with invalid key (NaN). VNode type:",u.type),!a&&nn&&(u.patchFlag>0||s&6)&&u.patchFlag!==32&&nn.push(u),u}const rn=process.env.NODE_ENV!=="production"?Tu:da;function da(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===au)&&(process.env.NODE_ENV!=="production"&&!e&&Ie(`Invalid vnode type when creating vnode: ${e}.`),e=Ou),Wr(e)){const o=Jn(e,t,!0);return n&&Hr(o,n),!s&&nn&&(o.shapeFlag&6?nn[nn.indexOf(e)]=o:nn.push(o)),o.patchFlag=-2,o}if(ga(e)&&(e=e.__vccOpts),t){t=Su(t);let{class:o,style:u}=t;o&&!ut(o)&&(t.class=_r(o)),Ge(u)&&($n(u)&&!Te(u)&&(u=Xe({},u)),t.style=mr(u))}const a=ut(e)?1:bu(e)?128:tu(e)?64:Ge(e)?4:Ce(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&$n(e)&&(e=fe(e),Ie("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
56
|
+
Component that was made reactive: `,e)),Iu(e,t,n,r,i,a,s,!0)}function Su(e){return e?$n(e)||la(e)?Xe({},e):e:null}function Jn(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:a,children:o,transition:u}=e,p=t?Du(i||{},t):i,O={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&fa(p),ref:t&&t.ref?n&&s?Te(s)?s.concat(Xn(t)):[s,Xn(t)]:Xn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&a===-1&&Te(o)?o.map(pa):o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Qn?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jn(e.ssContent),ssFallback:e.ssFallback&&Jn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&r&&na(O,u.clone(O)),O}function pa(e){const t=Jn(e);return Te(e.children)&&(t.children=e.children.map(pa)),t}function Lu(e=" ",t=0){return rn(ua,null,e,t)}function Hr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Te(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),Hr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!la(t)?t._ctx=_t:i===3&&_t&&(_t.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:_t},n=32):(t=String(t),r&64?(n=16,t=[Lu(t)]):n=8);e.children=t,e.shapeFlag|=n}function Du(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=_r([t.class,r.class]));else if(i==="style")t.style=mr([t.style,r.style]);else if(Xl(i)){const s=t[i],a=r[i];a&&s!==a&&!(Te(s)&&s.includes(a))&&(t[i]=s?[].concat(s,a):a)}else i!==""&&(t[i]=r[i])}return t}let xt=null;const sn=()=>xt||_t;let jr;{const e=Mn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(a=>a(s)):i[0](s)}};jr=t("__VUE_INSTANCE_SETTERS__",n=>xt=n),t("__VUE_SSR_SETTERS__",n=>Nn=n)}const ma=e=>{const t=xt;return jr(e),e.scope.on(),()=>{e.scope.off(),jr(t)}};function wu(e){return e.vnode.shapeFlag&4}let Nn=!1;process.env.NODE_ENV;function Au(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fc(Rc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}const Ru=/(?:^|[-_])(\w)/g,Cu=e=>e.replace(Ru,t=>t.toUpperCase()).replace(/[-_]/g,"");function _a(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function ha(e,t,n=!1){let r=_a(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=s=>{for(const a in s)if(s[a]===t)return a};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?Cu(r):n?"App":"Anonymous"}function ga(e){return Ce(e)&&"__vccOpts"in e}const Qe=(e,t)=>{const n=Vc(e,t,Nn);if(process.env.NODE_ENV!=="production"){const r=sn();r&&r.appContext.config.warnRecursiveComputed&&(n._warnRecursive=!0)}return n};function Ea(e,t,n){const r=arguments.length;return r===2?Ge(t)&&!Te(t)?Wr(t)?rn(e,null,[t]):rn(e,t):rn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),rn(e,t,n))}function Pu(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},i={__vue_custom_formatter:!0,header(g){if(!Ge(g))return null;if(g.__isVue)return["div",e,"VueInstance"];if(qe(g)){Yt();const N=g.value;return Qt(),["div",{},["span",e,O(g)],"<",o(N),">"]}else{if(Jt(g))return["div",{},["span",e,ze(g)?"ShallowReactive":"Reactive"],"<",o(g),`>${Nt(g)?" (readonly)":""}`];if(Nt(g))return["div",{},["span",e,ze(g)?"ShallowReadonly":"Readonly"],"<",o(g),">"]}return null},hasBody(g){return g&&g.__isVue},body(g){if(g&&g.__isVue)return["div",{},...s(g.$)]}};function s(g){const N=[];g.type.props&&g.props&&N.push(a("props",fe(g.props))),g.setupState!==it&&N.push(a("setup",g.setupState)),g.data!==it&&N.push(a("data",fe(g.data)));const I=u(g,"computed");I&&N.push(a("computed",I));const H=u(g,"inject");return H&&N.push(a("injected",H)),N.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:g}]]),N}function a(g,N){return N=Xe({},N),Object.keys(N).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},g],["div",{style:"padding-left:1.25em"},...Object.keys(N).map(I=>["div",{},["span",r,I+": "],o(N[I],!1)])]]:["span",{}]}function o(g,N=!0){return typeof g=="number"?["span",t,g]:typeof g=="string"?["span",n,JSON.stringify(g)]:typeof g=="boolean"?["span",r,g]:Ge(g)?["object",{object:N?fe(g):g}]:["span",n,String(g)]}function u(g,N){const I=g.type;if(Ce(I))return;const H={};for(const M in g.ctx)p(I,M,N)&&(H[M]=g.ctx[M]);return H}function p(g,N,I){const H=g[I];if(Te(H)&&H.includes(N)||Ge(H)&&N in H||g.extends&&p(g.extends,N,I)||g.mixins&&g.mixins.some(M=>p(M,N,I)))return!0}function O(g){return ze(g)?"ShallowRef":g.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;/**
|
|
57
57
|
* vue v3.5.17
|
|
58
58
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
59
59
|
* @license MIT
|
|
60
|
-
**/function ku(){Pu()}process.env.NODE_ENV!=="production"&&ku();function Fu(){return Na().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Na(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mu=typeof Proxy=="function",Vu="devtools-plugin:setup",xu="plugin:settings:set";let an,Gr;function Uu(){var e;return an!==void 0||(typeof window<"u"&&window.performance?(an=!0,Gr=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(an=!0,Gr=globalThis.perf_hooks.performance):an=!1),an}function $u(){return Uu()?Gr.now():Date.now()}class qu{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const o=t.settings[a];r[a]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const a=localStorage.getItem(i),o=JSON.parse(a);Object.assign(s,o)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}s=a},now(){return $u()}},n&&n.on(xu,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...u)=>{this.onQueue.push({method:o,args:u})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...u)=>(this.targetQueue.push({method:o,args:u,resolve:()=>{}}),this.fallbacks[o](...u)):(...u)=>new Promise(p=>{this.targetQueue.push({method:o,args:u,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function
|
|
60
|
+
**/function ku(){Pu()}process.env.NODE_ENV!=="production"&&ku();function Fu(){return Na().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Na(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Mu=typeof Proxy=="function",Vu="devtools-plugin:setup",xu="plugin:settings:set";let an,Gr;function Uu(){var e;return an!==void 0||(typeof window<"u"&&window.performance?(an=!0,Gr=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(an=!0,Gr=globalThis.perf_hooks.performance):an=!1),an}function $u(){return Uu()?Gr.now():Date.now()}class qu{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const a in t.settings){const o=t.settings[a];r[a]=o.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let s=Object.assign({},r);try{const a=localStorage.getItem(i),o=JSON.parse(a);Object.assign(s,o)}catch{}this.fallbacks={getSettings(){return s},setSettings(a){try{localStorage.setItem(i,JSON.stringify(a))}catch{}s=a},now(){return $u()}},n&&n.on(xu,(a,o)=>{a===this.plugin.id&&this.fallbacks.setSettings(o)}),this.proxiedOn=new Proxy({},{get:(a,o)=>this.target?this.target.on[o]:(...u)=>{this.onQueue.push({method:o,args:u})}}),this.proxiedTarget=new Proxy({},{get:(a,o)=>this.target?this.target[o]:o==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(o)?(...u)=>(this.targetQueue.push({method:o,args:u,resolve:()=>{}}),this.fallbacks[o](...u)):(...u)=>new Promise(p=>{this.targetQueue.push({method:o,args:u,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Bu(e,t){const n=e,r=Na(),i=Fu(),s=Mu&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))i.emit(Vu,e,t);else{const a=s?new qu(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:a}),a&&t(a.proxiedTarget)}}/*!
|
|
61
61
|
* vue-i18n v9.14.4
|
|
62
62
|
* (c) 2025 kazuya kawaguchi
|
|
63
63
|
* Released under the MIT License.
|
|
64
|
-
*/const Bu="9.14.4";function Hu(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const va=je.__EXTEND_POINT__,bt=Sn(va),Se={FALLBACK_TO_ROOT:va,NOT_SUPPORTED_PRESERVE:bt(),NOT_SUPPORTED_FORMATTER:bt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:bt(),NOT_SUPPORTED_GET_CHOICE_INDEX:bt(),COMPONENT_NAME_LEGACY_COMPATIBLE:bt(),NOT_FOUND_PARENT_SCOPE:bt(),IGNORE_OBJ_FLATTEN:bt(),NOTICE_DROP_ALLOW_COMPOSITION:bt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:bt()},ju={[Se.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Se.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Se.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Se.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Se.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Se.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Se.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Se.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ze(e,...t){return er(ju[e],...t)}const ba=Ve.__EXTEND_POINT__,et=Sn(ba),de={UNEXPECTED_RETURN_TYPE:ba,INVALID_ARGUMENT:et(),MUST_BE_CALL_SETUP_TOP:et(),NOT_INSTALLED:et(),NOT_AVAILABLE_IN_LEGACY_MODE:et(),REQUIRED_VALUE:et(),INVALID_VALUE:et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:et(),NOT_INSTALLED_WITH_PROVIDE:et(),UNEXPECTED_ERROR:et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:et(),BRIDGE_SUPPORT_VUE_2_ONLY:et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:et(),__EXTEND_POINT__:et()};function ke(e,...t){return Wt(e,null,process.env.NODE_ENV!=="production"?{messages:Gu,args:t}:void 0)}const Gu={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Kr=dt("__translateVNode"),Yr=dt("__datetimeParts"),Xr=dt("__numberParts"),Ut=dt("__enableEmitter"),vn=dt("__disableEmitter"),ya=dt("__setPluralRules"),Ta=dt("__injectWithOption"),Jr=dt("__dispose");function bn(e){if(!ue(e)||rt(e))return e;for(const t in e)if(lt(e,t))if(!t.includes("."))ue(e[t])&&bn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Ne()),!ue(i[n[a]])){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}i=i[n[a]]}if(s||(rt(i)?Ws.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!rt(i)){const a=i[n[r]];ue(a)&&bn(a)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,a=ae(n)?n:be(r)?Ne():{[e]:Ne()};if(be(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:p}=o;u?(a[u]=a[u]||Ne(),wn(p,a[u])):wn(p,a)}else G(o)&&wn(JSON.parse(o),a)}),i==null&&s)for(const o in a)lt(a,o)&&bn(a[o]);return a}function Oa(e){return e.type}function Ia(e,t,n){let r=ue(t.messages)?t.messages:Ne();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ue(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ue(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Sa(e){return rn(ua,null,e,0)}const La="__INTLIFY_META__",wa=()=>[],Ku=()=>!1;let Da=0;function Aa(e){return(t,n,r,i)=>e(n,r,sn()||void 0,i)}const Yu=()=>{const e=sn();let t=null;return e&&(t=Oa(e)[La])?{[La]:t}:null};function Qr(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,a=ot?zt:Gi,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&Ss(Ze(Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=le(e.inheritLocale)?e.inheritLocale:!0;const p=a(n&&u?n.locale.value:G(e.locale)?e.locale:jt),T=a(n&&u?n.fallbackLocale.value:G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:p.value),g=a(zn(p.value,e)),N=a(ae(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),I=a(ae(e.numberFormats)?e.numberFormats:{[p.value]:{}});let H=n?n.missingWarn:le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,M=n?n.fallbackWarn:le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,$=!!e.fallbackFormat,V=ve(e.missing)?e.missing:null,S=ve(e.missing)?Aa(e.missing):null,k=ve(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const P=n?n.modifiers:ae(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,h;h=(()=>{i&&ri(null);const D={version:Bu,locale:p.value,fallbackLocale:T.value,messages:g.value,modifiers:P,pluralRules:_,missing:S===null?void 0:S,missingWarn:H,fallbackWarn:M,fallbackFormat:$,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:F,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};D.datetimeFormats=N.value,D.numberFormats=I.value,D.__datetimeFormatters=ae(h)?h.__datetimeFormatters:void 0,D.__numberFormatters=ae(h)?h.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(D.__v_emitter=ae(h)?h.__v_emitter:void 0);const U=xl(D);return i&&ri(U),U})(),cn(h,p.value,T.value);function j(){return[p.value,T.value,g.value,N.value,I.value]}const q=Xe({get:()=>p.value,set:D=>{p.value=D,h.locale=p.value}}),K=Xe({get:()=>T.value,set:D=>{T.value=D,h.fallbackLocale=T.value,cn(h,p.value,D)}}),oe=Xe(()=>g.value),pe=Xe(()=>N.value),me=Xe(()=>I.value);function ee(){return ve(k)?k:null}function ce(D){k=D,h.postTranslation=D}function z(){return V}function _e(D){D!==null&&(S=Aa(D)),V=D,h.missing=S}function re(D,U){return D!=="translate"||!U.resolvedMessage}const Z=(D,U,ne,Ee,Fe,Me)=>{j();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=n?Vl():void 0),Le=D(h)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=void 0)}if(ne!=="translate exists"&&Ae(Le)&&Le===Cn||ne==="translate exists"&&!Le){const[Be,tt]=U();if(process.env.NODE_ENV!=="production"&&n&&G(Be)&&re(ne,tt)&&(x&&(kn(M,Be)||ii(H,Be))&&Pe(Ze(Se.FALLBACK_TO_ROOT,{key:Be,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ue}=h;Ue&&x&&Ue.emit("fallback",{type:ne,key:Be,to:"global",groupId:`${ne}:${Be}`})}return n&&x?Ee(n):Fe(Be)}else{if(Me(Le))return Le;throw ke(de.UNEXPECTED_RETURN_TYPE)}};function J(...D){return Z(U=>Reflect.apply(pi,null,[U,...D]),()=>ur(...D),"translate",U=>Reflect.apply(U.t,U,[...D]),U=>U,U=>G(U))}function B(...D){const[U,ne,Ee]=D;if(Ee&&!ue(Ee))throw ke(de.INVALID_ARGUMENT);return J(U,ne,$e({resolvedMessage:!0},Ee||{}))}function ge(...D){return Z(U=>Reflect.apply(Ei,null,[U,...D]),()=>fr(...D),"datetime format",U=>Reflect.apply(U.d,U,[...D]),()=>Pn,U=>G(U))}function ye(...D){return Z(U=>Reflect.apply(bi,null,[U,...D]),()=>dr(...D),"number format",U=>Reflect.apply(U.n,U,[...D]),()=>Pn,U=>G(U))}function we(D){return D.map(U=>G(U)||Ae(U)||le(U)?Sa(String(U)):U)}const ie={normalize:we,interpolate:D=>D,type:"vnode"};function c(...D){return Z(U=>{let ne;const Ee=U;try{Ee.processor=ie,ne=Reflect.apply(pi,null,[Ee,...D])}finally{Ee.processor=null}return ne},()=>ur(...D),"translate",U=>U[Kr](...D),U=>[Sa(U)],U=>be(U))}function d(...D){return Z(U=>Reflect.apply(bi,null,[U,...D]),()=>dr(...D),"number format",U=>U[Xr](...D),wa,U=>G(U)||be(U))}function E(...D){return Z(U=>Reflect.apply(Ei,null,[U,...D]),()=>fr(...D),"datetime format",U=>U[Yr](...D),wa,U=>G(U)||be(U))}function A(D){_=D,h.pluralRules=_}function m(D,U){return Z(()=>{if(!D)return!1;const ne=G(U)?U:p.value,Ee=y(ne),Fe=h.messageResolver(Ee,D);return o?Fe!=null:rt(Fe)||st(Fe)||G(Fe)},()=>[D],"translate exists",ne=>Reflect.apply(ne.te,ne,[D,U]),Ku,ne=>le(ne))}function v(D){let U=null;const ne=Ys(h,T.value,p.value);for(let Ee=0;Ee<ne.length;Ee++){const Fe=g.value[ne[Ee]]||{},Me=h.messageResolver(Fe,D);if(Me!=null){U=Me;break}}return U}function w(D){const U=v(D);return U??(n?n.tm(D)||{}:{})}function y(D){return g.value[D]||{}}function b(D,U){if(s){const ne={[D]:U};for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[D]}g.value[D]=U,h.messages=g.value}function R(D,U){g.value[D]=g.value[D]||{};const ne={[D]:U};if(s)for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[D],wn(U,g.value[D]),h.messages=g.value}function l(D){return N.value[D]||{}}function f(D,U){N.value[D]=U,h.datetimeFormats=N.value,vi(h,D,U)}function C(D,U){N.value[D]=$e(N.value[D]||{},U),h.datetimeFormats=N.value,vi(h,D,U)}function W(D){return I.value[D]||{}}function Y(D,U){I.value[D]=U,h.numberFormats=I.value,Ti(h,D,U)}function Q(D,U){I.value[D]=$e(I.value[D]||{},U),h.numberFormats=I.value,Ti(h,D,U)}Da++,n&&ot&&(Wr(n.locale,D=>{u&&(p.value=D,h.locale=D,cn(h,p.value,T.value))}),Wr(n.fallbackLocale,D=>{u&&(T.value=D,h.fallbackLocale=D,cn(h,p.value,T.value))}));const X={id:Da,locale:q,fallbackLocale:K,get inheritLocale(){return u},set inheritLocale(D){u=D,D&&n&&(p.value=n.locale.value,T.value=n.fallbackLocale.value,cn(h,p.value,T.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:oe,get modifiers(){return P},get pluralRules(){return _||{}},get isGlobal(){return i},get missingWarn(){return H},set missingWarn(D){H=D,h.missingWarn=H},get fallbackWarn(){return M},set fallbackWarn(D){M=D,h.fallbackWarn=M},get fallbackRoot(){return x},set fallbackRoot(D){x=D},get fallbackFormat(){return $},set fallbackFormat(D){$=D,h.fallbackFormat=$},get warnHtmlMessage(){return F},set warnHtmlMessage(D){F=D,h.warnHtmlMessage=D},get escapeParameter(){return L},set escapeParameter(D){L=D,h.escapeParameter=D},t:J,getLocaleMessage:y,setLocaleMessage:b,mergeLocaleMessage:R,getPostTranslationHandler:ee,setPostTranslationHandler:ce,getMissingHandler:z,setMissingHandler:_e,[ya]:A};return X.datetimeFormats=pe,X.numberFormats=me,X.rt=B,X.te=m,X.tm=w,X.d=ge,X.n=ye,X.getDateTimeFormat=l,X.setDateTimeFormat=f,X.mergeDateTimeFormat=C,X.getNumberFormat=W,X.setNumberFormat=Y,X.mergeNumberFormat=Q,X[Ta]=r,X[Kr]=c,X[Yr]=E,X[Xr]=d,process.env.NODE_ENV!=="production"&&(X[Ut]=D=>{h.__v_emitter=D},X[vn]=()=>{h.__v_emitter=void 0}),X}function Xu(e){const t=G(e.locale)?e.locale:jt,n=G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ve(e.missing)?e.missing:void 0,i=le(e.silentTranslationWarn)||yt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=le(e.silentFallbackWarn)||yt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=le(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,u=ae(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,T=ve(e.postTranslation)?e.postTranslation:void 0,g=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,I=le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let H=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;H=Object.keys(L).reduce((_,h)=>{const O=_[h]||(_[h]={});return $e(O,L[h]),_},H||{})}const{__i18n:M,__root:x,__injectWithOption:$}=e,V=e.datetimeFormats,S=e.numberFormats,k=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:H,flatJson:k,datetimeFormats:V,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:a,fallbackFormat:o,modifiers:u,pluralRules:p,postTranslation:T,warnHtmlMessage:g,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:I,translateExistCompatible:F,__i18n:M,__root:x,__injectWithOption:$}}function zr(e={},t){{const n=Qr(Xu(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return le(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=le(s)?!s:s},get silentFallbackWarn(){return le(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=le(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[a,o,u]=s,p={};let T=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:be(o)?T=o:ae(o)&&(g=o),be(u)?T=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,T||g||{},p])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[a,o,u]=s,p={plural:1};let T=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:Ae(o)?p.plural=o:be(o)?T=o:ae(o)&&(g=o),G(u)?p.locale=u:be(u)?T=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,T||g||{},p])},te(s,a){return n.te(s,a)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,a){n.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){n.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,a){n.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){n.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,a){n.setNumberFormat(s,a)},mergeNumberFormat(s,a){n.mergeNumberFormat(s,a)},getChoiceIndex(s,a){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=s=>{const a=n;a[Ut]&&a[Ut](s)},i.__disableEmitter=()=>{const s=n;s[vn]&&s[vn]()}),i}}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Ju({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Xn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Ne())}function Ra(e){return Xn}const es=xr({name:"i18n-t",props:$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ae(e)||!isNaN(e)}},Zr),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ss({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(g=>g!=="_"),a=Ne();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=G(e.plural)?+e.plural:e.plural);const o=Ju(t,s),u=i[Kr](e.keypath,o,a),p=$e(Ne(),r),T=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(T,p,u)}}});function Qu(e){return be(e)&&!G(e[0])}function Ca(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const a={part:!0};let o=Ne();e.locale&&(a.locale=e.locale),G(e.format)?a.key=e.format:ue(e.format)&&(G(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((N,I)=>n.includes(I)?$e(Ne(),N,{[I]:e.format[I]}):N,Ne()));const u=r(e.value,a,o);let p=[a.key];be(u)?p=u.map((N,I)=>{const H=i[N.type],M=H?H({[N.type]:N.value,index:I,parts:u}):[N.value];return Qu(M)&&(M[0].key=`${N.type}-${I}`),M}):G(u)&&(p=[u]);const T=$e(Ne(),s),g=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(g,T,p)}}const Pa=xr({name:"i18n-n",props:$e({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,yi,(...r)=>n[Xr](...r))}}),ka=xr({name:"i18n-d",props:$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,Ni,(...r)=>n[Yr](...r))}});function zu(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Zu(e){const t=a=>{const{instance:o,modifiers:u,value:p}=a;if(!o||!o.$)throw ke(de.UNEXPECTED_ERROR);const T=zu(e,o.$);process.env.NODE_ENV!=="production"&&u.preserve&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE));const g=Fa(p);return[Reflect.apply(T.t,T,[...Ma(g)]),T]};return{created:(a,o)=>{const[u,p]=t(o);ot&&e.global===p&&(a.__i18nWatcher=Wr(p.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=p,a.textContent=u},unmounted:a=>{ot&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const u=a.__composer,p=Fa(o);a.textContent=Reflect.apply(u.t,u,[...Ma(p)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function Fa(e){if(G(e))return{path:e};if(ae(e)){if(!("path"in e))throw ke(de.REQUIRED_VALUE,"path");return e}else throw ke(de.INVALID_VALUE)}function Ma(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,a={},o=r||{};return G(n)&&(a.locale=n),Ae(i)&&(a.plural=i),Ae(s)&&(a.plural=s),[t,o,a]}function ef(e,t,...n){const r=ae(n[0])?n[0]:{},i=!!r.useI18nComponentName,s=le(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&Pe(Ze(Se.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:es.name})),s&&([i?"i18n":es.name,"I18nT"].forEach(a=>e.component(a,es)),[Pa.name,"I18nN"].forEach(a=>e.component(a,Pa)),[ka.name,"I18nD"].forEach(a=>e.component(a,ka))),e.directive("t",Zu(t))}const ts={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},tf={"vue-i18n-resource-inspector":"Search for scopes ..."},nf={"vue-i18n-timeline":16764185},Va="vue-i18n: composer properties";let ns;async function rf(e,t){return new Promise((n,r)=>{try{Wu({id:"vue-devtools-plugin-vue-i18n",label:ts["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Va],app:e},i=>{ns=i,i.on.visitComponentTree(({componentInstance:a,treeNode:o})=>{sf(a,o,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:o})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&Ua(o,a.vnode.el.__VUE_I18N__):Ua(o,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ts["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:tf["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&uf(a,t)});const s=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),df(a,t),a.nodeId==="global"){if(!s.has(a.app)){const[o]=await i.getComponentInstances(a.app);s.set(a.app,o)}i.highlightElement(s.get(a.app))}else{const o=ff(a.nodeId,t);o&&i.highlightElement(o)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&mf(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ts["vue-i18n-timeline"],color:nf["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function xa(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function sf(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${xa(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Ua(e,t){const n=Va;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:rs(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function rs(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ve(r)&&"source"in r?t[n]=cf(r):rt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:ue(r)?t[n]=rs(r):t[n]=r}),t}const af={"<":"<",">":">",'"':""","&":"&"};function of(e){return e.replace(/[<>"&]/g,lf)}function lf(e){return af[e]||e}function cf(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${of(e.source)}")`:"(?)"}`}}}function uf(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const s=t.mode==="composition"?i:i.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${xa(r)} Scope`})}}function ff(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function $a(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function df(e,t){const n=$a(e.nodeId,t);return n&&(e.state=pf(n)),null}function pf(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:rs(e.messages.value)}];t[i]=s;{const a="Datetime formats info",o=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=o;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function yn(e,t){if(ns){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ns.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function mf(e,t){const n=$a(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&G(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(G(e.state.value)||be(e.state.value)||ue(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&le(e.state.value)&&(n.inheritLocale=e.state.value)}}function _f(e,t,n){return{beforeCreate(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qa(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=zr(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qa(e,i);else{this.$i18n=zr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ia(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=tr();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",yn)}},unmounted(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yn),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qa(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ya](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const hf=dt("global-vue-i18n");function Wa(e={},t){const n=__VUE_I18N_LEGACY_API__&&le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=le(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[a,o]=gf(e,n),u=dt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Pe(Ze(Se.NOTICE_DROP_ALLOW_COMPOSITION));function p(N){return s.get(N)||null}function T(N,I){s.set(N,I)}function g(N){s.delete(N)}{const N={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(I,...H){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=N),I.__VUE_I18N_SYMBOL__=u,I.provide(I.__VUE_I18N_SYMBOL__,N),ae(H[0])){const $=H[0];N.__composerExtend=$.__composerExtend,N.__vueI18nExtend=$.__vueI18nExtend}let M=null;!n&&r&&(M=Sf(I,N.global)),__VUE_I18N_FULL_INSTALL__&&ef(I,N,...H),__VUE_I18N_LEGACY_API__&&n&&I.mixin(_f(o,o.__composer,N));const x=I.unmount;if(I.unmount=()=>{M&&M(),N.dispose(),x()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await rf(I,N))throw ke(de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const V=tr();if(n){const S=o;S.__enableEmitter&&S.__enableEmitter(V)}else{const S=o;S[Ut]&&S[Ut](V)}V.on("*",yn)}},get global(){return o},dispose(){a.stop()},__instances:s,__getInstance:p,__setInstance:T,__deleteInstance:g};return N}}function ss(e={}){const t=sn();if(t==null)throw ke(de.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ke(de.NOT_INSTALLED);const n=Ef(t),r=vf(n),i=Oa(t),s=Nf(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ke(de.NOT_AVAILABLE_IN_LEGACY_MODE);return Of(t,s,r,e)}if(s==="global")return Ia(r,e,i),r;if(s==="parent"){let u=bf(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let o=a.__getInstance(t);if(o==null){const u=$e({},e);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),o=Qr(u),a.__composerExtend&&(o[Jr]=a.__composerExtend(o)),Tf(a,t,o),a.__setInstance(t,o)}return o}function gf(e,t,n){const r=uc();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>zr(e)):r.run(()=>Qr(e));if(i==null)throw ke(de.UNEXPECTED_ERROR);return[r,i]}}function Ef(e){{const t=oa(e.isCE?hf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ke(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return t}}function Nf(e,t){return In(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vf(e){return e.mode==="composition"?e.global:e.global.__composer}function bf(e,t,n=!1){let r=null;const i=t.root;let s=yf(t,n);for(;s!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(s);o!=null&&(r=o.__composer,n&&r&&!r[Ta]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function yf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Tf(e,t,n){let r=null;su(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=tr();const i=n;i[Ut]&&i[Ut](r),r.on("*",yn)}},t),iu(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",yn),i[vn]&&i[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=i[Jr];s&&(s(),delete i[Jr])},t)}function Of(e,t,n,r={}){const i=t==="local",s=Gi(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ke(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=le(r.inheritLocale)?r.inheritLocale:!G(r.locale),o=zt(!i||a?n.locale.value:G(r.locale)?r.locale:jt),u=zt(!i||a?n.fallbackLocale.value:G(r.fallbackLocale)||be(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),p=zt(zn(o.value,r)),T=zt(ae(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),g=zt(ae(r.numberFormats)?r.numberFormats:{[o.value]:{}}),N=i?n.missingWarn:le(r.missingWarn)||yt(r.missingWarn)?r.missingWarn:!0,I=i?n.fallbackWarn:le(r.fallbackWarn)||yt(r.fallbackWarn)?r.fallbackWarn:!0,H=i?n.fallbackRoot:le(r.fallbackRoot)?r.fallbackRoot:!0,M=!!r.fallbackFormat,x=ve(r.missing)?r.missing:null,$=ve(r.postTranslation)?r.postTranslation:null,V=i?n.warnHtmlMessage:le(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,k=i?n.modifiers:ae(r.modifiers)?r.modifiers:{},F=r.pluralRules||i&&n.pluralRules;function L(){return[o.value,u.value,p.value,T.value,g.value]}const P=Xe({get:()=>s.value?s.value.locale.value:o.value,set:m=>{s.value&&(s.value.locale.value=m),o.value=m}}),_=Xe({get:()=>s.value?s.value.fallbackLocale.value:u.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),u.value=m}}),h=Xe(()=>s.value?s.value.messages.value:p.value),O=Xe(()=>T.value),j=Xe(()=>g.value);function q(){return s.value?s.value.getPostTranslationHandler():$}function K(m){s.value&&s.value.setPostTranslationHandler(m)}function oe(){return s.value?s.value.getMissingHandler():x}function pe(m){s.value&&s.value.setMissingHandler(m)}function me(m){return L(),m()}function ee(...m){return s.value?me(()=>Reflect.apply(s.value.t,null,[...m])):me(()=>"")}function ce(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function z(...m){return s.value?me(()=>Reflect.apply(s.value.d,null,[...m])):me(()=>"")}function _e(...m){return s.value?me(()=>Reflect.apply(s.value.n,null,[...m])):me(()=>"")}function re(m){return s.value?s.value.tm(m):{}}function Z(m,v){return s.value?s.value.te(m,v):!1}function J(m){return s.value?s.value.getLocaleMessage(m):{}}function B(m,v){s.value&&(s.value.setLocaleMessage(m,v),p.value[m]=v)}function ge(m,v){s.value&&s.value.mergeLocaleMessage(m,v)}function ye(m){return s.value?s.value.getDateTimeFormat(m):{}}function we(m,v){s.value&&(s.value.setDateTimeFormat(m,v),T.value[m]=v)}function te(m,v){s.value&&s.value.mergeDateTimeFormat(m,v)}function ie(m){return s.value?s.value.getNumberFormat(m):{}}function c(m,v){s.value&&(s.value.setNumberFormat(m,v),g.value[m]=v)}function d(m,v){s.value&&s.value.mergeNumberFormat(m,v)}const E={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:_,messages:h,datetimeFormats:O,numberFormats:j,get inheritLocale(){return s.value?s.value.inheritLocale:a},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(p.value)},get modifiers(){return s.value?s.value.modifiers:k},get pluralRules(){return s.value?s.value.pluralRules:F},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:N},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:I},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:H},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:M},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:V},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:ee,getPostTranslationHandler:q,setPostTranslationHandler:K,getMissingHandler:oe,setMissingHandler:pe,rt:ce,d:z,n:_e,tm:re,te:Z,getLocaleMessage:J,setLocaleMessage:B,mergeLocaleMessage:ge,getDateTimeFormat:ye,setDateTimeFormat:we,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:c,mergeNumberFormat:d};function A(m){m.locale.value=o.value,m.fallbackLocale.value=u.value,Object.keys(p.value).forEach(v=>{m.mergeLocaleMessage(v,p.value[v])}),Object.keys(T.value).forEach(v=>{m.mergeDateTimeFormat(v,T.value[v])}),Object.keys(g.value).forEach(v=>{m.mergeNumberFormat(v,g.value[v])}),m.escapeParameter=S,m.fallbackFormat=M,m.fallbackRoot=H,m.fallbackWarn=I,m.missingWarn=N,m.warnHtmlMessage=V}return ru(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ke(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(o.value=m.locale.value,u.value=m.fallbackLocale.value,p.value=m.messages.value,T.value=m.datetimeFormats.value,g.value=m.numberFormats.value):i&&A(m)}),E}const If=["locale","fallbackLocale","availableLocales"],Ba=["t","rt","d","n","tm","te"];function Sf(e,t){const n=Object.create(null);return If.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw ke(de.UNEXPECTED_ERROR);const a=qe(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,Ba.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw ke(de.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Ba.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Hu(),__INTLIFY_JIT_COMPILATION__?zs(Bl):zs(Wl),Pl(pl),kl(Ys),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,yl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Lf=(e="en")=>{const t=Wa({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,r={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},i={tdengine:`Field,Value,Char Value,Remarks (Optional)
|
|
64
|
+
*/const Wu="9.14.4";function Hu(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const va=je.__EXTEND_POINT__,bt=Sn(va),Se={FALLBACK_TO_ROOT:va,NOT_SUPPORTED_PRESERVE:bt(),NOT_SUPPORTED_FORMATTER:bt(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:bt(),NOT_SUPPORTED_GET_CHOICE_INDEX:bt(),COMPONENT_NAME_LEGACY_COMPATIBLE:bt(),NOT_FOUND_PARENT_SCOPE:bt(),IGNORE_OBJ_FLATTEN:bt(),NOTICE_DROP_ALLOW_COMPOSITION:bt(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:bt()},ju={[Se.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Se.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Se.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Se.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Se.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Se.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Se.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Se.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function Ze(e,...t){return er(ju[e],...t)}const ba=Ve.__EXTEND_POINT__,et=Sn(ba),de={UNEXPECTED_RETURN_TYPE:ba,INVALID_ARGUMENT:et(),MUST_BE_CALL_SETUP_TOP:et(),NOT_INSTALLED:et(),NOT_AVAILABLE_IN_LEGACY_MODE:et(),REQUIRED_VALUE:et(),INVALID_VALUE:et(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:et(),NOT_INSTALLED_WITH_PROVIDE:et(),UNEXPECTED_ERROR:et(),NOT_COMPATIBLE_LEGACY_VUE_I18N:et(),BRIDGE_SUPPORT_VUE_2_ONLY:et(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:et(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:et(),__EXTEND_POINT__:et()};function ke(e,...t){return Bt(e,null,process.env.NODE_ENV!=="production"?{messages:Gu,args:t}:void 0)}const Gu={[de.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[de.INVALID_ARGUMENT]:"Invalid argument",[de.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[de.NOT_INSTALLED]:"Need to install with `app.use` function",[de.UNEXPECTED_ERROR]:"Unexpected error",[de.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[de.REQUIRED_VALUE]:"Required in value: {0}",[de.INVALID_VALUE]:"Invalid value",[de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[de.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[de.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[de.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Kr=dt("__translateVNode"),Yr=dt("__datetimeParts"),Qr=dt("__numberParts"),Ut=dt("__enableEmitter"),vn=dt("__disableEmitter"),ya=dt("__setPluralRules"),Oa=dt("__injectWithOption"),Xr=dt("__dispose");function bn(e){if(!ue(e)||rt(e))return e;for(const t in e)if(lt(e,t))if(!t.includes("."))ue(e[t])&&bn(e[t]);else{const n=t.split("."),r=n.length-1;let i=e,s=!1;for(let a=0;a<r;a++){if(n[a]==="__proto__")throw new Error(`unsafe key: ${n[a]}`);if(n[a]in i||(i[n[a]]=Ne()),!ue(i[n[a]])){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.IGNORE_OBJ_FLATTEN,{key:n[a]})),s=!0;break}i=i[n[a]]}if(s||(rt(i)?Bs.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!rt(i)){const a=i[n[r]];ue(a)&&bn(a)}}return e}function zn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:s}=t,a=ae(n)?n:be(r)?Ne():{[e]:Ne()};if(be(r)&&r.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:p}=o;u?(a[u]=a[u]||Ne(),Dn(p,a[u])):Dn(p,a)}else G(o)&&Dn(JSON.parse(o),a)}),i==null&&s)for(const o in a)lt(a,o)&&bn(a[o]);return a}function Ta(e){return e.type}function Ia(e,t,n){let r=ue(t.messages)?t.messages:Ne();"__i18nGlobal"in n&&(r=zn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);i.length&&i.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ue(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ue(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Sa(e){return rn(ua,null,e,0)}const La="__INTLIFY_META__",Da=()=>[],Ku=()=>!1;let wa=0;function Aa(e){return(t,n,r,i)=>e(n,r,sn()||void 0,i)}const Yu=()=>{const e=sn();let t=null;return e&&(t=Ta(e)[La])?{[La]:t}:null};function Jr(e={},t){const{__root:n,__injectWithOption:r}=e,i=n===void 0,s=e.flatJson,a=ot?zt:Gi,o=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&o&&Ss(Ze(Se.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let u=le(e.inheritLocale)?e.inheritLocale:!0;const p=a(n&&u?n.locale.value:G(e.locale)?e.locale:jt),O=a(n&&u?n.fallbackLocale.value:G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:p.value),g=a(zn(p.value,e)),N=a(ae(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),I=a(ae(e.numberFormats)?e.numberFormats:{[p.value]:{}});let H=n?n.missingWarn:le(e.missingWarn)||yt(e.missingWarn)?e.missingWarn:!0,M=n?n.fallbackWarn:le(e.fallbackWarn)||yt(e.fallbackWarn)?e.fallbackWarn:!0,x=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,$=!!e.fallbackFormat,V=ve(e.missing)?e.missing:null,S=ve(e.missing)?Aa(e.missing):null,k=ve(e.postTranslation)?e.postTranslation:null,F=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const P=n?n.modifiers:ae(e.modifiers)?e.modifiers:{};let _=e.pluralRules||n&&n.pluralRules,h;h=(()=>{i&&ri(null);const w={version:Wu,locale:p.value,fallbackLocale:O.value,messages:g.value,modifiers:P,pluralRules:_,missing:S===null?void 0:S,missingWarn:H,fallbackWarn:M,fallbackFormat:$,unresolving:!0,postTranslation:k===null?void 0:k,warnHtmlMessage:F,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};w.datetimeFormats=N.value,w.numberFormats=I.value,w.__datetimeFormatters=ae(h)?h.__datetimeFormatters:void 0,w.__numberFormatters=ae(h)?h.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(w.__v_emitter=ae(h)?h.__v_emitter:void 0);const U=xl(w);return i&&ri(U),U})(),cn(h,p.value,O.value);function j(){return[p.value,O.value,g.value,N.value,I.value]}const q=Qe({get:()=>p.value,set:w=>{p.value=w,h.locale=p.value}}),K=Qe({get:()=>O.value,set:w=>{O.value=w,h.fallbackLocale=O.value,cn(h,p.value,w)}}),oe=Qe(()=>g.value),pe=Qe(()=>N.value),me=Qe(()=>I.value);function ee(){return ve(k)?k:null}function ce(w){k=w,h.postTranslation=w}function z(){return V}function _e(w){w!==null&&(S=Aa(w)),V=w,h.missing=S}function re(w,U){return w!=="translate"||!U.resolvedMessage}const Z=(w,U,ne,Ee,Fe,Me)=>{j();let Le;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=n?Vl():void 0),Le=w(h)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,i||(h.fallbackContext=void 0)}if(ne!=="translate exists"&&Ae(Le)&&Le===Cn||ne==="translate exists"&&!Le){const[We,tt]=U();if(process.env.NODE_ENV!=="production"&&n&&G(We)&&re(ne,tt)&&(x&&(kn(M,We)||ii(H,We))&&Pe(Ze(Se.FALLBACK_TO_ROOT,{key:We,type:ne})),process.env.NODE_ENV!=="production")){const{__v_emitter:Ue}=h;Ue&&x&&Ue.emit("fallback",{type:ne,key:We,to:"global",groupId:`${ne}:${We}`})}return n&&x?Ee(n):Fe(We)}else{if(Me(Le))return Le;throw ke(de.UNEXPECTED_RETURN_TYPE)}};function X(...w){return Z(U=>Reflect.apply(pi,null,[U,...w]),()=>ur(...w),"translate",U=>Reflect.apply(U.t,U,[...w]),U=>U,U=>G(U))}function W(...w){const[U,ne,Ee]=w;if(Ee&&!ue(Ee))throw ke(de.INVALID_ARGUMENT);return X(U,ne,$e({resolvedMessage:!0},Ee||{}))}function ge(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>Reflect.apply(U.d,U,[...w]),()=>Pn,U=>G(U))}function ye(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>Reflect.apply(U.n,U,[...w]),()=>Pn,U=>G(U))}function De(w){return w.map(U=>G(U)||Ae(U)||le(U)?Sa(String(U)):U)}const ie={normalize:De,interpolate:w=>w,type:"vnode"};function c(...w){return Z(U=>{let ne;const Ee=U;try{Ee.processor=ie,ne=Reflect.apply(pi,null,[Ee,...w])}finally{Ee.processor=null}return ne},()=>ur(...w),"translate",U=>U[Kr](...w),U=>[Sa(U)],U=>be(U))}function d(...w){return Z(U=>Reflect.apply(bi,null,[U,...w]),()=>dr(...w),"number format",U=>U[Qr](...w),Da,U=>G(U)||be(U))}function E(...w){return Z(U=>Reflect.apply(Ei,null,[U,...w]),()=>fr(...w),"datetime format",U=>U[Yr](...w),Da,U=>G(U)||be(U))}function A(w){_=w,h.pluralRules=_}function m(w,U){return Z(()=>{if(!w)return!1;const ne=G(U)?U:p.value,Ee=y(ne),Fe=h.messageResolver(Ee,w);return o?Fe!=null:rt(Fe)||st(Fe)||G(Fe)},()=>[w],"translate exists",ne=>Reflect.apply(ne.te,ne,[w,U]),Ku,ne=>le(ne))}function v(w){let U=null;const ne=Ys(h,O.value,p.value);for(let Ee=0;Ee<ne.length;Ee++){const Fe=g.value[ne[Ee]]||{},Me=h.messageResolver(Fe,w);if(Me!=null){U=Me;break}}return U}function D(w){const U=v(w);return U??(n?n.tm(w)||{}:{})}function y(w){return g.value[w]||{}}function b(w,U){if(s){const ne={[w]:U};for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w]}g.value[w]=U,h.messages=g.value}function R(w,U){g.value[w]=g.value[w]||{};const ne={[w]:U};if(s)for(const Ee in ne)lt(ne,Ee)&&bn(ne[Ee]);U=ne[w],Dn(U,g.value[w]),h.messages=g.value}function l(w){return N.value[w]||{}}function f(w,U){N.value[w]=U,h.datetimeFormats=N.value,vi(h,w,U)}function C(w,U){N.value[w]=$e(N.value[w]||{},U),h.datetimeFormats=N.value,vi(h,w,U)}function B(w){return I.value[w]||{}}function Y(w,U){I.value[w]=U,h.numberFormats=I.value,Oi(h,w,U)}function J(w,U){I.value[w]=$e(I.value[w]||{},U),h.numberFormats=I.value,Oi(h,w,U)}wa++,n&&ot&&(Br(n.locale,w=>{u&&(p.value=w,h.locale=w,cn(h,p.value,O.value))}),Br(n.fallbackLocale,w=>{u&&(O.value=w,h.fallbackLocale=w,cn(h,p.value,O.value))}));const Q={id:wa,locale:q,fallbackLocale:K,get inheritLocale(){return u},set inheritLocale(w){u=w,w&&n&&(p.value=n.locale.value,O.value=n.fallbackLocale.value,cn(h,p.value,O.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:oe,get modifiers(){return P},get pluralRules(){return _||{}},get isGlobal(){return i},get missingWarn(){return H},set missingWarn(w){H=w,h.missingWarn=H},get fallbackWarn(){return M},set fallbackWarn(w){M=w,h.fallbackWarn=M},get fallbackRoot(){return x},set fallbackRoot(w){x=w},get fallbackFormat(){return $},set fallbackFormat(w){$=w,h.fallbackFormat=$},get warnHtmlMessage(){return F},set warnHtmlMessage(w){F=w,h.warnHtmlMessage=w},get escapeParameter(){return L},set escapeParameter(w){L=w,h.escapeParameter=w},t:X,getLocaleMessage:y,setLocaleMessage:b,mergeLocaleMessage:R,getPostTranslationHandler:ee,setPostTranslationHandler:ce,getMissingHandler:z,setMissingHandler:_e,[ya]:A};return Q.datetimeFormats=pe,Q.numberFormats=me,Q.rt=W,Q.te=m,Q.tm=D,Q.d=ge,Q.n=ye,Q.getDateTimeFormat=l,Q.setDateTimeFormat=f,Q.mergeDateTimeFormat=C,Q.getNumberFormat=B,Q.setNumberFormat=Y,Q.mergeNumberFormat=J,Q[Oa]=r,Q[Kr]=c,Q[Yr]=E,Q[Qr]=d,process.env.NODE_ENV!=="production"&&(Q[Ut]=w=>{h.__v_emitter=w},Q[vn]=()=>{h.__v_emitter=void 0}),Q}function Qu(e){const t=G(e.locale)?e.locale:jt,n=G(e.fallbackLocale)||be(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=ve(e.missing)?e.missing:void 0,i=le(e.silentTranslationWarn)||yt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=le(e.silentFallbackWarn)||yt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,a=le(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,u=ae(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,O=ve(e.postTranslation)?e.postTranslation:void 0,g=G(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,N=!!e.escapeParameterHtml,I=le(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let H=e.messages;if(ae(e.sharedMessages)){const L=e.sharedMessages;H=Object.keys(L).reduce((_,h)=>{const T=_[h]||(_[h]={});return $e(T,L[h]),_},H||{})}const{__i18n:M,__root:x,__injectWithOption:$}=e,V=e.datetimeFormats,S=e.numberFormats,k=e.flatJson,F=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:H,flatJson:k,datetimeFormats:V,numberFormats:S,missing:r,missingWarn:i,fallbackWarn:s,fallbackRoot:a,fallbackFormat:o,modifiers:u,pluralRules:p,postTranslation:O,warnHtmlMessage:g,escapeParameter:N,messageResolver:e.messageResolver,inheritLocale:I,translateExistCompatible:F,__i18n:M,__root:x,__injectWithOption:$}}function zr(e={},t){{const n=Jr(Qu(e)),{__extender:r}=e,i={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return le(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=le(s)?!s:s},get silentFallbackWarn(){return le(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=le(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[a,o,u]=s,p={};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:be(o)?O=o:ae(o)&&(g=o),be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[a,o,u]=s,p={plural:1};let O=null,g=null;if(!G(a))throw ke(de.INVALID_ARGUMENT);const N=a;return G(o)?p.locale=o:Ae(o)?p.plural=o:be(o)?O=o:ae(o)&&(g=o),G(u)?p.locale=u:be(u)?O=u:ae(u)&&(g=u),Reflect.apply(n.t,n,[N,O||g||{},p])},te(s,a){return n.te(s,a)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,a){n.setLocaleMessage(s,a)},mergeLocaleMessage(s,a){n.mergeLocaleMessage(s,a)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,a){n.setDateTimeFormat(s,a)},mergeDateTimeFormat(s,a){n.mergeDateTimeFormat(s,a)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,a){n.setNumberFormat(s,a)},mergeNumberFormat(s,a){n.mergeNumberFormat(s,a)},getChoiceIndex(s,a){return process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1}};return i.__extender=r,process.env.NODE_ENV!=="production"&&(i.__enableEmitter=s=>{const a=n;a[Ut]&&a[Ut](s)},i.__disableEmitter=()=>{const s=n;s[vn]&&s[vn]()}),i}}const Zr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xu({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,i)=>[...r,...i.type===Qn?i.children:[i]],[]):t.reduce((n,r)=>{const i=e[r];return i&&(n[r]=i()),n},Ne())}function Ra(e){return Qn}const es=xr({name:"i18n-t",props:$e({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ae(e)||!isNaN(e)}},Zr),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||ss({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(g=>g!=="_"),a=Ne();e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=G(e.plural)?+e.plural:e.plural);const o=Xu(t,s),u=i[Kr](e.keypath,o,a),p=$e(Ne(),r),O=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(O,p,u)}}});function Ju(e){return be(e)&&!G(e[0])}function Ca(e,t,n,r){const{slots:i,attrs:s}=t;return()=>{const a={part:!0};let o=Ne();e.locale&&(a.locale=e.locale),G(e.format)?a.key=e.format:ue(e.format)&&(G(e.format.key)&&(a.key=e.format.key),o=Object.keys(e.format).reduce((N,I)=>n.includes(I)?$e(Ne(),N,{[I]:e.format[I]}):N,Ne()));const u=r(e.value,a,o);let p=[a.key];be(u)?p=u.map((N,I)=>{const H=i[N.type],M=H?H({[N.type]:N.value,index:I,parts:u}):[N.value];return Ju(M)&&(M[0].key=`${N.type}-${I}`),M}):G(u)&&(p=[u]);const O=$e(Ne(),s),g=G(e.tag)||ue(e.tag)?e.tag:Ra();return Ea(g,O,p)}}const Pa=xr({name:"i18n-n",props:$e({value:{type:Number,required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,yi,(...r)=>n[Qr](...r))}}),ka=xr({name:"i18n-d",props:$e({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Zr),setup(e,t){const n=e.i18n||ss({useScope:e.scope,__useComponent:!0});return Ca(e,t,Ni,(...r)=>n[Yr](...r))}});function zu(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Zu(e){const t=a=>{const{instance:o,modifiers:u,value:p}=a;if(!o||!o.$)throw ke(de.UNEXPECTED_ERROR);const O=zu(e,o.$);process.env.NODE_ENV!=="production"&&u.preserve&&Pe(Ze(Se.NOT_SUPPORTED_PRESERVE));const g=Fa(p);return[Reflect.apply(O.t,O,[...Ma(g)]),O]};return{created:(a,o)=>{const[u,p]=t(o);ot&&e.global===p&&(a.__i18nWatcher=Br(p.locale,()=>{o.instance&&o.instance.$forceUpdate()})),a.__composer=p,a.textContent=u},unmounted:a=>{ot&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:o})=>{if(a.__composer){const u=a.__composer,p=Fa(o);a.textContent=Reflect.apply(u.t,u,[...Ma(p)])}},getSSRProps:a=>{const[o]=t(a);return{textContent:o}}}}function Fa(e){if(G(e))return{path:e};if(ae(e)){if(!("path"in e))throw ke(de.REQUIRED_VALUE,"path");return e}else throw ke(de.INVALID_VALUE)}function Ma(e){const{path:t,locale:n,args:r,choice:i,plural:s}=e,a={},o=r||{};return G(n)&&(a.locale=n),Ae(i)&&(a.plural=i),Ae(s)&&(a.plural=s),[t,o,a]}function ef(e,t,...n){const r=ae(n[0])?n[0]:{},i=!!r.useI18nComponentName,s=le(r.globalInstall)?r.globalInstall:!0;process.env.NODE_ENV!=="production"&&s&&i&&Pe(Ze(Se.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:es.name})),s&&([i?"i18n":es.name,"I18nT"].forEach(a=>e.component(a,es)),[Pa.name,"I18nN"].forEach(a=>e.component(a,Pa)),[ka.name,"I18nD"].forEach(a=>e.component(a,ka))),e.directive("t",Zu(t))}const ts={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},tf={"vue-i18n-resource-inspector":"Search for scopes ..."},nf={"vue-i18n-timeline":16764185},Va="vue-i18n: composer properties";let ns;async function rf(e,t){return new Promise((n,r)=>{try{Bu({id:"vue-devtools-plugin-vue-i18n",label:ts["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[Va],app:e},i=>{ns=i,i.on.visitComponentTree(({componentInstance:a,treeNode:o})=>{sf(a,o,t)}),i.on.inspectComponent(({componentInstance:a,instanceData:o})=>{a.vnode.el&&a.vnode.el.__VUE_I18N__&&o&&(t.mode==="legacy"?a.vnode.el.__VUE_I18N__!==t.global.__composer&&Ua(o,a.vnode.el.__VUE_I18N__):Ua(o,a.vnode.el.__VUE_I18N__))}),i.addInspector({id:"vue-i18n-resource-inspector",label:ts["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:tf["vue-i18n-resource-inspector"]}),i.on.getInspectorTree(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&uf(a,t)});const s=new Map;i.on.getInspectorState(async a=>{if(a.app===e&&a.inspectorId==="vue-i18n-resource-inspector")if(i.unhighlightElement(),df(a,t),a.nodeId==="global"){if(!s.has(a.app)){const[o]=await i.getComponentInstances(a.app);s.set(a.app,o)}i.highlightElement(s.get(a.app))}else{const o=ff(a.nodeId,t);o&&i.highlightElement(o)}}),i.on.editInspectorState(a=>{a.app===e&&a.inspectorId==="vue-i18n-resource-inspector"&&mf(a,t)}),i.addTimelineLayer({id:"vue-i18n-timeline",label:ts["vue-i18n-timeline"],color:nf["vue-i18n-timeline"]}),n(!0)})}catch(i){console.error(i),r(!1)}})}function xa(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function sf(e,t,n){const r=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const i={label:`i18n (${xa(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(i)}}function Ua(e,t){const n=Va;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:rs(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function rs(e){const t={};return Object.keys(e).forEach(n=>{const r=e[n];ve(r)&&"source"in r?t[n]=cf(r):rt(r)&&r.loc&&r.loc.source?t[n]=r.loc.source:ue(r)?t[n]=rs(r):t[n]=r}),t}const af={"<":"<",">":">",'"':""","&":"&"};function of(e){return e.replace(/[<>"&]/g,lf)}function lf(e){return af[e]||e}function cf(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${of(e.source)}")`:"(?)"}`}}}function uf(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[r,i]of t.__instances){const s=t.mode==="composition"?i:i.__composer;n!==s&&e.rootNodes.push({id:s.id.toString(),label:`${xa(r)} Scope`})}}function ff(e,t){let n=null;if(e!=="global"){for(const[r,i]of t.__instances.entries())if(i.id.toString()===e){n=r;break}}return n}function $a(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(r=>r.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function df(e,t){const n=$a(e.nodeId,t);return n&&(e.state=pf(n)),null}function pf(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const i="Locale messages info",s=[{type:i,key:"messages",editable:!1,value:rs(e.messages.value)}];t[i]=s;{const a="Datetime formats info",o=[{type:a,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[a]=o;const u="Datetime formats info",p=[{type:u,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[u]=p}return t}function yn(e,t){if(ns){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),ns.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function mf(e,t){const n=$a(e.nodeId,t);if(n){const[r]=e.path;r==="locale"&&G(e.state.value)?n.locale.value=e.state.value:r==="fallbackLocale"&&(G(e.state.value)||be(e.state.value)||ue(e.state.value))?n.fallbackLocale.value=e.state.value:r==="inheritLocale"&&le(e.state.value)&&(n.inheritLocale=e.state.value)}}function _f(e,t,n){return{beforeCreate(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const s=i.i18n;if(i.__i18n&&(s.__i18n=i.__i18n),s.__root=t,this===this.$root)this.$i18n=qa(e,s);else{s.__injectWithOption=!0,s.__extender=n.__vueI18nExtend,this.$i18n=zr(s);const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=qa(e,i);else{this.$i18n=zr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ia(t,i,i),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,a)=>this.$i18n.te(s,a),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s),n.__setInstance(r,this.$i18n)},mounted(){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$i18n){const r=this.$i18n;this.$el.__VUE_I18N__=r.__composer;const i=this.__v_emitter=tr();r.__enableEmitter&&r.__enableEmitter(i),i.on("*",yn)}},unmounted(){const r=sn();if(!r)throw ke(de.UNEXPECTED_ERROR);const i=this.$i18n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",yn),delete this.__v_emitter),this.$i18n&&(i.__disableEmitter&&i.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(r),delete this.$i18n}}}function qa(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[ya](t.pluralizationRules||e.pluralizationRules);const n=zn(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const hf=dt("global-vue-i18n");function Ba(e={},t){const n=__VUE_I18N_LEGACY_API__&&le(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=le(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[a,o]=gf(e,n),u=dt(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&i&&Pe(Ze(Se.NOTICE_DROP_ALLOW_COMPOSITION));function p(N){return s.get(N)||null}function O(N,I){s.set(N,I)}function g(N){s.delete(N)}{const N={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(I,...H){if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&(I.__VUE_I18N__=N),I.__VUE_I18N_SYMBOL__=u,I.provide(I.__VUE_I18N_SYMBOL__,N),ae(H[0])){const $=H[0];N.__composerExtend=$.__composerExtend,N.__vueI18nExtend=$.__vueI18nExtend}let M=null;!n&&r&&(M=Sf(I,N.global)),__VUE_I18N_FULL_INSTALL__&&ef(I,N,...H),__VUE_I18N_LEGACY_API__&&n&&I.mixin(_f(o,o.__composer,N));const x=I.unmount;if(I.unmount=()=>{M&&M(),N.dispose(),x()},process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__){if(!await rf(I,N))throw ke(de.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const V=tr();if(n){const S=o;S.__enableEmitter&&S.__enableEmitter(V)}else{const S=o;S[Ut]&&S[Ut](V)}V.on("*",yn)}},get global(){return o},dispose(){a.stop()},__instances:s,__getInstance:p,__setInstance:O,__deleteInstance:g};return N}}function ss(e={}){const t=sn();if(t==null)throw ke(de.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ke(de.NOT_INSTALLED);const n=Ef(t),r=vf(n),i=Ta(t),s=Nf(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw ke(de.NOT_AVAILABLE_IN_LEGACY_MODE);return Tf(t,s,r,e)}if(s==="global")return Ia(r,e,i),r;if(s==="parent"){let u=bf(n,t,e.__useComponent);return u==null&&(process.env.NODE_ENV!=="production"&&Pe(Ze(Se.NOT_FOUND_PARENT_SCOPE)),u=r),u}const a=n;let o=a.__getInstance(t);if(o==null){const u=$e({},e);"__i18n"in i&&(u.__i18n=i.__i18n),r&&(u.__root=r),o=Jr(u),a.__composerExtend&&(o[Xr]=a.__composerExtend(o)),Of(a,t,o),a.__setInstance(t,o)}return o}function gf(e,t,n){const r=uc();{const i=__VUE_I18N_LEGACY_API__&&t?r.run(()=>zr(e)):r.run(()=>Jr(e));if(i==null)throw ke(de.UNEXPECTED_ERROR);return[r,i]}}function Ef(e){{const t=oa(e.isCE?hf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ke(e.isCE?de.NOT_INSTALLED_WITH_PROVIDE:de.UNEXPECTED_ERROR);return t}}function Nf(e,t){return In(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vf(e){return e.mode==="composition"?e.global:e.global.__composer}function bf(e,t,n=!1){let r=null;const i=t.root;let s=yf(t,n);for(;s!=null;){const a=e;if(e.mode==="composition")r=a.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const o=a.__getInstance(s);o!=null&&(r=o.__composer,n&&r&&!r[Oa]&&(r=null))}if(r!=null||i===s)break;s=s.parent}return r}function yf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Of(e,t,n){let r=null;su(()=>{if((process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=tr();const i=n;i[Ut]&&i[Ut](r),r.on("*",yn)}},t),iu(()=>{const i=n;(process.env.NODE_ENV!=="production"||__VUE_PROD_DEVTOOLS__)&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(r&&r.off("*",yn),i[vn]&&i[vn](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const s=i[Xr];s&&(s(),delete i[Xr])},t)}function Tf(e,t,n,r={}){const i=t==="local",s=Gi(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw ke(de.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const a=le(r.inheritLocale)?r.inheritLocale:!G(r.locale),o=zt(!i||a?n.locale.value:G(r.locale)?r.locale:jt),u=zt(!i||a?n.fallbackLocale.value:G(r.fallbackLocale)||be(r.fallbackLocale)||ae(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:o.value),p=zt(zn(o.value,r)),O=zt(ae(r.datetimeFormats)?r.datetimeFormats:{[o.value]:{}}),g=zt(ae(r.numberFormats)?r.numberFormats:{[o.value]:{}}),N=i?n.missingWarn:le(r.missingWarn)||yt(r.missingWarn)?r.missingWarn:!0,I=i?n.fallbackWarn:le(r.fallbackWarn)||yt(r.fallbackWarn)?r.fallbackWarn:!0,H=i?n.fallbackRoot:le(r.fallbackRoot)?r.fallbackRoot:!0,M=!!r.fallbackFormat,x=ve(r.missing)?r.missing:null,$=ve(r.postTranslation)?r.postTranslation:null,V=i?n.warnHtmlMessage:le(r.warnHtmlMessage)?r.warnHtmlMessage:!0,S=!!r.escapeParameter,k=i?n.modifiers:ae(r.modifiers)?r.modifiers:{},F=r.pluralRules||i&&n.pluralRules;function L(){return[o.value,u.value,p.value,O.value,g.value]}const P=Qe({get:()=>s.value?s.value.locale.value:o.value,set:m=>{s.value&&(s.value.locale.value=m),o.value=m}}),_=Qe({get:()=>s.value?s.value.fallbackLocale.value:u.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),u.value=m}}),h=Qe(()=>s.value?s.value.messages.value:p.value),T=Qe(()=>O.value),j=Qe(()=>g.value);function q(){return s.value?s.value.getPostTranslationHandler():$}function K(m){s.value&&s.value.setPostTranslationHandler(m)}function oe(){return s.value?s.value.getMissingHandler():x}function pe(m){s.value&&s.value.setMissingHandler(m)}function me(m){return L(),m()}function ee(...m){return s.value?me(()=>Reflect.apply(s.value.t,null,[...m])):me(()=>"")}function ce(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function z(...m){return s.value?me(()=>Reflect.apply(s.value.d,null,[...m])):me(()=>"")}function _e(...m){return s.value?me(()=>Reflect.apply(s.value.n,null,[...m])):me(()=>"")}function re(m){return s.value?s.value.tm(m):{}}function Z(m,v){return s.value?s.value.te(m,v):!1}function X(m){return s.value?s.value.getLocaleMessage(m):{}}function W(m,v){s.value&&(s.value.setLocaleMessage(m,v),p.value[m]=v)}function ge(m,v){s.value&&s.value.mergeLocaleMessage(m,v)}function ye(m){return s.value?s.value.getDateTimeFormat(m):{}}function De(m,v){s.value&&(s.value.setDateTimeFormat(m,v),O.value[m]=v)}function te(m,v){s.value&&s.value.mergeDateTimeFormat(m,v)}function ie(m){return s.value?s.value.getNumberFormat(m):{}}function c(m,v){s.value&&(s.value.setNumberFormat(m,v),g.value[m]=v)}function d(m,v){s.value&&s.value.mergeNumberFormat(m,v)}const E={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:_,messages:h,datetimeFormats:T,numberFormats:j,get inheritLocale(){return s.value?s.value.inheritLocale:a},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(p.value)},get modifiers(){return s.value?s.value.modifiers:k},get pluralRules(){return s.value?s.value.pluralRules:F},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:N},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:I},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:H},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:M},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:V},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:S},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:ee,getPostTranslationHandler:q,setPostTranslationHandler:K,getMissingHandler:oe,setMissingHandler:pe,rt:ce,d:z,n:_e,tm:re,te:Z,getLocaleMessage:X,setLocaleMessage:W,mergeLocaleMessage:ge,getDateTimeFormat:ye,setDateTimeFormat:De,mergeDateTimeFormat:te,getNumberFormat:ie,setNumberFormat:c,mergeNumberFormat:d};function A(m){m.locale.value=o.value,m.fallbackLocale.value=u.value,Object.keys(p.value).forEach(v=>{m.mergeLocaleMessage(v,p.value[v])}),Object.keys(O.value).forEach(v=>{m.mergeDateTimeFormat(v,O.value[v])}),Object.keys(g.value).forEach(v=>{m.mergeNumberFormat(v,g.value[v])}),m.escapeParameter=S,m.fallbackFormat=M,m.fallbackRoot=H,m.fallbackWarn=I,m.missingWarn=N,m.warnHtmlMessage=V}return ru(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw ke(de.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(o.value=m.locale.value,u.value=m.fallbackLocale.value,p.value=m.messages.value,O.value=m.datetimeFormats.value,g.value=m.numberFormats.value):i&&A(m)}),E}const If=["locale","fallbackLocale","availableLocales"],Wa=["t","rt","d","n","tm","te"];function Sf(e,t){const n=Object.create(null);return If.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s)throw ke(de.UNEXPECTED_ERROR);const a=qe(s.value)?{get(){return s.value.value},set(o){s.value.value=o}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,i,a)}),e.config.globalProperties.$i18n=n,Wa.forEach(i=>{const s=Object.getOwnPropertyDescriptor(t,i);if(!s||!s.value)throw ke(de.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,s)}),()=>{delete e.config.globalProperties.$i18n,Wa.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Hu(),__INTLIFY_JIT_COMPILATION__?zs(Wl):zs(Bl),Pl(pl),kl(Ys),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,yl(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Lf=(e="en")=>{const t=Ba({locale:e,messages:{en:{iotdbTemplateRemark:"Measurement, Value, and Data Type are required fields. The Data Type can have the optional values boolean, int32, int64, float, double, text.",invalidIsCharFlag:"Invalid Char Value field: {isChar}",uploadMaxRowsError:"The number of rows in the CSV file exceeds the limit. Up to {max} rows of data are supported except for the header",influxdbTemplateRemark:"Append an i to the field value to tell InfluxDB to store the number as an integer.",datalayersTemplateRemark:"Append an i to the field value to tell Datalayers to store the number as an integer."},zh:{iotdbTemplateRemark:"字段、值、数据类型是必填选项,数据类型可选的值为 boolean、int32、int64、float、double、text",invalidIsCharFlag:"无效的字符标识符值:{isChar}",uploadMaxRowsError:"CSV 文件行数超过限制,除表头外,最多支持 {max} 行数据",influxdbTemplateRemark:"在字段值后追加 i,InfluxDB 则将该数值存储为整数类型。",datalayersTemplateRemark:"在字段值后追加 i,Datalayers 则将该数值存储为整数类型。"}}}),{t:n}=t.global,r={influxdb:"InfluxDB",tdengine:"TDengine",iotdb:"IoTDB",datalayers:"Datalayers"},i={tdengine:`Field,Value,Char Value,Remarks (Optional)
|
|
65
65
|
ts,now,FALSE,Example Remark
|
|
66
66
|
msgid,\${id},TRUE,
|
|
67
67
|
mqtt_topic,\${topic},TRUE,
|
|
@@ -82,6 +82,6 @@ precip,\${payload.precip}i,"${n("influxdbTemplateRemark")}"
|
|
|
82
82
|
temp,\${payload.temp},
|
|
83
83
|
hum,\${payload.hum},
|
|
84
84
|
precip,\${payload.precip}i,"${n("datalayersTemplateRemark")}"
|
|
85
|
-
`};return{filenameMap:r,templateContentMap:i,handleDownloadTemp:(
|
|
86
|
-
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},
|
|
87
|
-
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Rf={access:"Permission",topic:"Topic",username:"Username",password:"Password"},Cf={access:"是否允许",topic:"主题",username:"用户名",password:"密码"},Pf={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード"},is=e=>{const{t}=Wa({mode:"composition",locale:e,messages:{en:{streaming:wf,common:Rf},zh:{streaming:Df,common:Cf},ja:{streaming:Af,common:Pf}}}).global;return{t}};var We=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(We||{}),as=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(as||{}),$t=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))($t||{});const kf=e=>{const{t}=is(e),n=[{label:t("streaming.allow"),value:as.Allow},{label:t("streaming.deny"),value:as.Deny}],r=[{label:t("common.topic"),value:$t.Topic},{label:t("streaming.consumerGroupType"),value:$t.Group},{label:t("streaming.clusterType"),value:$t.Cluster}],i=Object.values(We).map(o=>({label:t(`streaming.aclOperationLabelDic.${o}`),value:o})),s={[$t.Topic]:[We.All,We.Read,We.Write,We.Describe,We.Create,We.Delete],[$t.Group]:[We.All,We.Read,We.Describe,We.Delete],[$t.Cluster]:[We.All,We.Read,We.Describe,We.Alter]};return{permissionOptions:n,resourceTypeOptions:r,operationOptions:i,getValidOperations:o=>(s[o]||[]).map(p=>({label:t(`streaming.aclOperationLabelDic.${p}`),value:p}))}},Ha=[{groupLabel:"mathFunc",list:[{name:"abs",args:[{name:"Value",type:"number",required:!0}]},{name:"cos",args:[{name:"Value",type:"number",required:!0}]},{name:"cosh",args:[{name:"Value",type:"number",required:!0}]},{name:"acos",args:[{name:"Value",type:"number",required:!0}]},{name:"acosh",args:[{name:"Value",type:"number",required:!0}]},{name:"sin",args:[{name:"Value",type:"number",required:!0}]},{name:"sinh",args:[{name:"Value",type:"number",required:!0}]},{name:"asin",args:[{name:"Value",type:"number",required:!0}]},{name:"asinh",args:[{name:"Value",type:"number",required:!0}]},{name:"tan",args:[{name:"Value",type:"number",required:!0}]},{name:"tanh",args:[{name:"Value",type:"number",required:!0}]},{name:"atan",args:[{name:"Value",type:"number",required:!0}]},{name:"atanh",args:[{name:"Value",type:"number",required:!0}]},{name:"ceil",args:[{name:"Value",type:"number",required:!0}]},{name:"floor",args:[{name:"Value",type:"number",required:!0}]},{name:"round",args:[{name:"Value",type:"number",required:!0}]},{name:"exp",args:[{name:"Value",type:"number",required:!0}]},{name:"power",args:[{name:"Base",type:"number",required:!0},{name:"Exponent",type:"number",required:!0}]},{name:"sqrt",args:[{name:"Value",type:"number",required:!0}]},{name:"fmod",args:[{name:"Numer",type:"number",required:!0},{name:"Denom",type:"number",required:!0}]},{name:"log",args:[{name:"Value",type:"number",required:!0}]},{name:"log10",args:[{name:"Value",type:"number",required:!0}]},{name:"log2",args:[{name:"Value",type:"number",required:!0}]}]},{groupLabel:"dataTypeJudgmentFunc",list:[{name:"is_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_not_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_str",args:[{name:"Value",type:"any",required:!0}]},{name:"is_bool",args:[{name:"Value",type:"any",required:!0}]},{name:"is_int",args:[{name:"Value",type:"any",required:!0}]},{name:"is_float",args:[{name:"Value",type:"any",required:!0}]},{name:"is_num",args:[{name:"Value",type:"any",required:!0}]},{name:"is_map",args:[{name:"Value",type:"any",required:!0}]},{name:"is_array",args:[{name:"Value",type:"any",required:!0}]},{name:"is_empty",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"dataTypeConversionFunc",list:[{name:"str",args:[{name:"Value",type:"any",required:!0}]},{name:"str_utf8",args:[{name:"Value",type:"any",required:!0}]},{name:"bool",args:[{name:"Value",type:"any",required:!0}]},{name:"int",args:[{name:"Value",type:"any",required:!0}]},{name:"float",args:[{name:"Value",type:"any",required:!0}]},{name:"float2str",args:[{name:"Value",type:"float",required:!0},{name:"Precision",type:"integer",default:2,range:[0,32],required:!0}]},{name:"map",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"stringFunc",list:[{name:"lower",args:[{name:"String",type:"string",required:!0}]},{name:"upper",args:[{name:"String",type:"string",required:!0}]},{name:"trim",args:[{name:"String",type:"string",required:!0}]},{name:"ltrim",args:[{name:"String",type:"string",required:!0}]},{name:"rtrim",args:[{name:"String",type:"string",required:!0}]},{name:"reverse",args:[{name:"String",type:"string",required:!0}]},{name:"strlen",args:[{name:"String",type:"string",required:!0}]},{name:"substr",args:[{name:"String",type:"string",required:!0},{name:"StartPosition",type:"number",required:!0},{name:"Length",type:"number",required:!1}]},{name:"split",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"Direction",required:!1,type:"enum",optionalValues:["leading","trailing"]}]},{name:"concat",args:[{name:"String1",type:"string",required:!0},{name:"String2",type:"string",required:!0}]},{name:"tokens",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"PreserveCRLF",type:"enum",optionalValues:["nocrlf"],required:!1}]},{name:"sprintf",args:[]},{name:"pad",args:[{name:"String",type:"string",required:!0},{name:"TotalLength",type:"integer",required:!0},{name:"PaddingDirection",type:"enum",optionalValues:["both","leading","trailing"],required:!1},{name:"PaddingString",type:"string",required:!1}]},{name:"replace",args:[{name:"String",type:"string",required:!0},{name:"OldSubStr",type:"string",required:!0},{name:"Replacement",type:"string",required:!0},{name:"ReplaceCount",type:"enum",optionalValues:["all","trailing","leading"],required:!1}]},{name:"regex_match",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0}]},{name:"regex_replace",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0},{name:"Replacement",type:"string",required:!0}]},{name:"ascii",args:[{name:"Character",type:"string",required:!0}]},{name:"find",args:[{name:"String",type:"string",required:!0},{name:"SubstringToBeFound",type:"string",required:!0},{name:"DirectionToFind",type:"enum",optionalValues:["leading","trailing"],required:!1}]}]},{groupLabel:"mapFunc",list:[{name:"map_get",args:[{name:"Key",type:"string",required:!0},{name:"Map",type:"object",required:!0},{name:"DefaultValue",type:"any",required:!1}]},{name:"map_put",args:[{name:"Key",type:"string",required:!0},{name:"Value",type:"any",required:!0},{name:"Map",type:"object",required:!0}]},{name:"map_size",args:[{name:"Map",type:"object",required:!0}]}]},{groupLabel:"arrFunc",list:[{name:"nth",args:[{name:"Index",type:"integer",range:[1,null],required:!0},{name:"Array",type:"array",required:!0}]},{name:"length",args:[{name:"Array",type:"array",required:!0}]},{name:"sublist",args:[{name:"StartIndex",type:"integer",range:[1,null],required:!1},{name:"Length",type:"integer",required:!0},{name:"Array",type:"array",required:!0}]},{name:"first",args:[{name:"Array",type:"array",required:!0}]},{name:"last",args:[{name:"Array",type:"array",required:!0}]},{name:"contains",args:[{name:"Value",type:"any",required:!0},{name:"Array",type:"array",required:!0}]}]},{groupLabel:"hashFunc",list:[{name:"md5",args:[{name:"Value",type:"string",required:!0}]},{name:"sha",args:[{name:"Value",type:"string",required:!0}]},{name:"sha256",args:[{name:"Value",type:"string",required:!0}]}]},{groupLabel:"compressesAndUncompressesFunc",list:[{name:"gzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"gunzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip",args:[{name:"Value",type:"binary",required:!0}]},{name:"unzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_compress",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_uncompress",args:[{name:"Value",type:"binary",required:!0}]}]},{groupLabel:"bitFunc",list:[{name:"subbits",args:[{name:"BinaryData",type:"binary",required:!0},{name:"BinaryStartIndex",type:"integer",required:!1},{name:"Length",type:"integer",required:!0},{name:"DataType",type:"enum",optionalValues:["integer","float","bits"],required:!1},{name:"Signedness",type:"enum",optionalValues:["unsigned","signed"],required:!1},{name:"Endian",type:"enum",optionalValues:["big","little"],required:!1}]}]},{groupLabel:"decodingAndEncodingFunc",list:[{name:"base64_encode",args:[{name:"Value",type:"binary",required:!0}]},{name:"base64_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_encode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"bin2hexstr",args:[{name:"Value",type:"binary",required:!0}]},{name:"hexstr2bin",args:[{name:"Value",type:"string",required:!0}]},{name:"str_utf16_le",args:[{name:"Data",type:"string",required:!0}]},{name:"sqlserver_bin2hexstr",args:[{name:"Data",type:"string",required:!0}]}]},{groupLabel:"timeAndDateFunc",list:[{name:"now_timestamp",args:[]},{name:"now_rfc3339",args:[]},{name:"unix_ts_to_rfc3339",args:[{name:"UnixTimestamp",type:"integer",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"rfc3339_to_unix_ts",args:[{name:"RFC3339String",type:"string",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"format_date",args:[{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!0},{name:"TimeOffset",type:"string",required:!0},{name:"DateFormat",type:"string",required:!0},{name:"Timestamp",type:"number",required:!1}]},{name:"date_to_unix_ts",args:[]}]},{groupLabel:"schemaRegistry",list:[{name:"schema_decode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Bin",type:"binary",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_encode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_check",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0}]}]}];var ja=(e=>(e.Number="number",e.Any="any",e.Float="float",e.Integer="integer",e.String="string",e.Enum="enum",e.Object="object",e.Array="array",e.Binary="binary",e))(ja||{});const Ff=e=>{const{t}=is(e),n=Ha.map(({groupLabel:o,list:u})=>({groupLabel:o,name:t(`ruleFunction.${o}`),value:o,list:u.filter(p=>p.args.length)})),r=o=>{for(const{list:u}of n)for(const p of u)if(p.name===o)return p;return null},i=o=>{for(const{groupLabel:u,list:p}of n)for(const T of p)if(T.name===o)return u;return null},s={stringFunc:"string",mapFunc:"object",arrFunc:"array"};return{funcOptList:n,getFuncItemByName:r,getFuncGroupByName:i,getArgIndex:(o,u)=>{var N;const p=s[u];let T=-1;const g=(N=o.args)==null?void 0:N.findIndex(({isReference:I})=>I);return p?T=o.args.findIndex(I=>I.type===p):/time/i.test(u)?T=o.args.findIndex(I=>/timestamp/i.test(I.name)):g>-1&&(T=g),T=T>-1?T:0,T}}},Ga=["number","float","integer"],Mf=(e,t,n)=>{const{funcOptList:r,getFuncItemByName:i,getFuncGroupByName:s,getArgIndex:a}=Ff(n),o=Xe({get(){return e.modelValue},set($){t("update:modelValue",$)}}),u=($,{groupLabel:V,func:S})=>{const k=a(S,V);return S.args.map((F,L)=>L===k?$:"")},p=Xe(()=>{var V,S;const $=(S=(V=o.value)==null?void 0:V.func)==null?void 0:S.name;return $?i($):null}),T=Xe(()=>p.value?p.value.args:[]),g=Xe(()=>!(T.value.length===0||T.value.length===1&&T.value[0].required)),N=$=>{if(!$){o.value.func.args=[];return}const V=s($);!V||!p.value||(g.value?o.value.func.args=u(o.value.field,{groupLabel:V,func:p.value}):o.value.func.args=[o.value.field])},I=Xe(()=>e.availableFields.map($=>({value:$})));return{record:o,getFieldList:($,V)=>{$||V(I.value);const S=I.value.filter(({value:k})=>k.includes($));V(S)},handleFieldChanged:$=>{T.value.length&&!g.value&&(o.value.func.args=[$])},funcOptList:r,args:T,handleSelectFunc:N,handleArgChanged:($,V,S)=>{Ga.includes(S)&&$!==""&&!Number.isNaN(Number($))&&(o.value.func.args[V]=Number($))}}},Vf=["connection_accepted","unacceptable_protocol_version","client_identifier_not_valid","server_unavailable","malformed_username_or_password","unauthorized_client","success","unspecified_error","malformed_packet","protocol_error","implementation_specific_error","unsupported_protocol_version","bad_username_or_password","not_authorized","server_unavailable","server_busy","banned","bad_authentication_method","topic_name_invalid","packet_too_large","quota_exceeded","retain_not_supported","qos_not_supported","use_another_server","server_moved","connection_rate_exceeded","is_cache"];Te.ArgumentType=ja,Te.RuleField=Vf,Te.RuleFunc=Ha,Te.createDownloadBlobLink=Es,Te.downloadFile=gs,Te.flattenObject=qt,Te.formatSizeUnit=ao,Te.formatValueToMinUnit=oo,Te.isEmptyObj=Ya,Te.isJSONString=ro,Te.jsonBigIntParse=so,Te.jsonBigIntStringify=io,Te.numberArgTypes=Ga,Te.parseJSONSafely=to,Te.stringifyObjSafely=no,Te.unflattenObject=Ka,Te.useBatchSettings=Lf,Te.useFunctionItemData=Mf,Te.useLocale=is,Te.useStreamingAuth=kf,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|
|
85
|
+
`};return{filenameMap:r,templateContentMap:i,handleDownloadTemp:(O,g)=>{if(O){const N=new Blob([O],{type:"text/csv"});Es(N,`${g}_template.csv`)}else console.error("Template is empty")},readFileAndParse:async(O,g)=>new Promise((N,I)=>{const H=new FileReader;H.onload=M=>{if(!M.target)return I(new Error("FileReader event target is null"));const x=M.target.result,$=co.parse(x,{skipEmptyLines:"greedy"});$.errors.length>0&&I(new Error("Failed to parse CSV data: "+$.errors[0].message)),$.data.length>g+1?I(new Error(n("uploadMaxRowsError",{max:g}))):N($.data)},H.onerror=()=>{I(new Error("An error occurred while reading the file"))},H.onabort=()=>{I(new Error("File reading was aborted"))},H.readAsText(O)}),processIoTDBData:O=>new Promise((g,N)=>{try{const I=["boolean","int32","int64","float","double","text"],H=O.slice(1).filter(M=>M.length>=4&&M.slice(0,4).every(x=>x&&x.trim()!=="")).map(M=>{const[x,$,V,S]=M;if(!I.includes(V))throw new Error(`Invalid data type: ${V}`);return{timestamp:x,measurement:$,data_type:V,value:S}});g(H)}catch(I){N(I)}}),processTDengineData:O=>new Promise((g,N)=>{try{const I="<table>",H=[],M=[];for(let $=1;$<O.length;$++){const[V,S,k]=O[$];if(!V||!S)continue;H.push(V);const F=["true","TRUE","1","",void 0].includes(k==null?void 0:k.trim()),L=["false","FALSE","0"].includes(k==null?void 0:k.trim());if(F)M.push(`'${S}'`);else if(L)M.push(S);else throw new Error(n("invalidIsCharFlag",{isChar:k}))}const x=`insert into ${I}(${H.join(", ")}) values (${M.join(", ")})`;g(x)}catch(I){N(I)}}),processInfluxDBData:O=>new Promise((g,N)=>{try{const I=[];for(let H=1;H<O.length;H++){const[M,x]=O[H];!M||!x||I.push({key:M,value:x})}g(I)}catch(I){N(I)}})}},Df={title:"Streaming (beta)",streams:"Streams",streamName:"Stream Name",partitionNum:"Number of Partitions",mqttTopic:"MQTT Topic Filter",mqttTopicTip:"MQTT messages matching this topic filter are saved to the corresponding default type Stream. The free type Stream is not associated with an MQTT topic filter.",streamNameTip:"The Kafka topic for a Kafka client is the same as the Stream name.",retention:"Retention Period",consumerGroups:"Consumer Groups",groupID:"Group ID",streamNum:"Number of Streams",consumerNum:"Number of Consumers",protocol:"Protocol",consumers:"Consumers",consumerID:"Consumer ID",partition:"Partition",startOffset:"Start Offset",endOffset:"End Offset",partitions:"Partitions",newStream:"New Stream",streamNameFormatTip:"Start with a letter or number and can include letters, numbers, _, . and -, up to 64 characters",maxStreamsTip:"Up to {num} streams can be created",summary:"EMQX Streaming is an innovative feature of EMQX Platform that allows users to persistently store MQTT messages as data streams and consume them directly using Kafka clients.",enableStreaming:"Enable Streaming (beta)",usingStreaming:"With EMQX Streaming, you can:",streamingBenefits:["Reliably store large amounts of MQTT message data","Directly use Kafka clients for historical data replay and real-time subscription","Seamlessly integrate with existing backend applications and big data systems","Directly interface with stream processors like Flink for data processing"],betaTip:"This feature is in beta.",needVPCTip:"Streaming requires intranet access, please create a {vpc} first.",mqttTopicFormatTip:"Can contain letters, numbers, special characters (_, -, /, +, #, $, %, {'@'}, &, :, {'{'}{'}'} and .) and mid-string spaces (no leading/trailing spaces), up to 128 characters",streamType:"Stream Type",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"The default type Stream is associated with an MQTT topic filter, and MQTT messages matching the topic filter are saved to the Stream. The free type Stream is not associated with an MQTT topic filter.",authType:"Authentication Mechanism",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"Resource Type",aclResourceName:"Resource Selector",aclOperation:"Operation",prefixed:"Prefix",consumerGroupType:"Consumer Group",clusterType:"Cluster",literal:"Literal",matchAll:"All",allow:"Allow",deny:"Deny",aclOperationLabelDic:{ALL:"All",READ:"Read",WRITE:"Write",DESCRIBE:"Describe",CREATE:"Create",DELETE:"Delete",ALTER:"Alter"},usernameRule:"Can contain letters, numbers and some special characters (_, -, /, +, #, $, %, {'@'}, & and .), up to 128 characters",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
|
|
86
|
+
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"Streams",partition_count:"Partitions",group_count:"Consumer Groups",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},wf={title:"Streaming (beta)",streams:"Streams",streamName:"Stream 名称",partitionNum:"分区数量",mqttTopic:"MQTT 主题过滤器",mqttTopicTip:"匹配主题过滤器的 MQTT 消息会被保存到对应的 Default 类型的 Stream 中。Free 类型的 Stream 不与 MQTT 主题过滤器关联。",streamNameTip:"Kafka 客户端看到的 Kafka Topic 的名称和 Stream 名称相同。",retention:"保留天数",consumerGroups:"消费者组",groupID:"组 ID",streamNum:"Stream 数量",consumerNum:"消费者数量",protocol:"协议",consumers:"消费者列表",consumerID:"消费者 ID",partition:"分区",startOffset:"起始偏移量",endOffset:"结束偏移量",partitions:"分区列表",newStream:"新建 Stream",streamNameFormatTip:"以字母或数字开头,可包含字母、数字、下划线(_)、连字符(-)和点号(.),最长 64 个字符",maxStreamsTip:"最多可创建 {num} 个 Stream",summary:"EMQX Streaming 是 EMQX Platform 的一项创新特性,它允许用户将 MQTT 消息持久化存储为数据流,并直接使用 Kafka 客户端进行消费。",enableStreaming:"开通 Streaming (beta)",usingStreaming:"使用 EMQX Streaming,您可以:",streamingBenefits:["可靠地存储大量的 MQTT 消息数据","直接使用 Kafka 客户端进行历史数据回放和实时订阅","无缝集成现有的后端应用程序和大数据系统","直接与 Flink 等流处理器对接进行实时数据处理"],betaTip:"此功能目前处于公测阶段。",needVPCTip:"Streaming 功能需要内网访问,在开通前请先创建 {vpc}。",mqttTopicFormatTip:"可包含字母、数字、部分特殊字符(_、-、/、+、#、$、%、{'@'}、&、:、{'{'}{'}'} 和 .)及中间空格(无首尾空格),最长 128 个字符",streamType:"Stream 类型",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"Default 类型的 Stream 关联 MQTT 主题过滤器,且匹配主题过滤器的 MQTT 消息会被保存到 Stream 中。Free 类型的 Stream 不关联 MQTT 主题过滤器。",authType:"认证方式",host:"Host",hostTip:"填写 Host IP 地址或者使用 <code>*</code> 匹配所有 Host。<br/>如果您选择了 <code>精确匹配</code> 模式,则应提供一个 Host IP 地址。",aclResourceType:"资源类型",aclResourceName:"目标值",aclOperation:"操作类型",prefixed:"前缀匹配",consumerGroupType:"消费者组",clusterType:"集群",literal:"精确匹配",matchAll:"匹配所有",allow:"允许",deny:"不允许",aclOperationLabelDic:{ALL:"全部操作",READ:"读",WRITE:"写",DESCRIBE:"查看详情",CREATE:"创建",DELETE:"删除",ALTER:"更改"},usernameRule:"可包含字母、数字和部分特殊字符(_、-、/、+、#、$、%、{'@'}、& 和 .),最长 128 个字符",aclDescription:"是指对 Kafka 客户端所能操作的资源,包括主题、消费者组和集群等的权限控制。采用白名单模式,即只有在白名单中的条目才能通过,未在白名单中的则默认被拒绝。",networkType:"网络类型",securityProtocol:"安全协议",metricTitleDic:{stream_count:"Stream 数",partition_count:"分区数",group_count:"消费者组数",total_messages_in_rate:"消息流入速率",total_messages_out_rate:"消息流出速率"}},Af={title:"ストリーミング(ベータ)",streams:"ストリーム",streamName:"ストリーム名",partitionNum:"パーティション数",mqttTopic:"MQTT トピックフィルタ",mqttTopicTip:"このトピックフィルターに一致する MQTT メッセージは、対応する「Default」タイプのストリームに保存されます。「Free」タイプのストリームは MQTT トピックフィルターと関連付けられていません。",streamNameTip:"Kafka クライアントで使用する Kafka トピックは、ストリーム名と同じです。",retention:"保持期間",consumerGroups:"コンシューマーグループ",groupID:"グループ ID",streamNum:"ストリーム数",consumerNum:"コンシューマー数",protocol:"プロトコル",consumers:"コンシューマー",consumerID:"コンシューマー ID",partition:"パーティション",startOffset:"開始オフセット",endOffset:"終了オフセット",partitions:"パーティション",newStream:"新規ストリーム",streamNameFormatTip:"文字または数字で始まり、文字、数字、「_」、「.」、「-」を含む最大 64 文字",maxStreamsTip:"最大 {num} 個のストリームを作成できます",summary:"「EMQX Streaming」は、EMQX プラットフォームの革新的な機能で、MQTT メッセージをデータストリームとして永続的に保存し、Kafka クライアントから直接コンシュームできます。",enableStreaming:"ストリーミングを有効にする(ベータ)",usingStreaming:"「EMQX Streaming」を使用すると、以下のことが可能です:",streamingBenefits:["大量の MQTT メッセージデータを確実に保存","Kafka クライアントを直接使用して履歴データの再生とリアルタイムサブスクリプション","既存のバックエンドアプリケーションやビッグデータシステムとのシームレスな統合","Flink などのストリームプロセッサとの直接インターフェース"],betaTip:"この機能はベータ版です。",needVPCTip:"ストリーミングを利用するには内部ネットワークへのアクセスが必要です。まず{vpc}を作成してください。",mqttTopicFormatTip:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」、「:」、「{'{'}{'}'}」、中間の空白、および「.」のみ使え、最長 128 文字です",streamType:"ストリームタイプ",streamTypeLabel:{default:"Default",free:"Free"},streamTypeTip:"「Default」タイプのストリームは MQTT トピックフィルターと関連付けられており、そのフィルターに一致する MQTT メッセージがストリームに保存されます。Kafka クライアントからの「Free」タイプのストリームのは MQTT トピックフィルターと関連付けられていません。",authType:"認証方式",host:"Host",hostTip:"Fill in a Host IP address or use <code>*</code> to match all Hosts.<br/>If <code>Literal</code> pattern is selected, an IP address of a host should be provided.",aclResourceType:"リソースタイプ",aclResourceName:"リソース値",aclOperation:"操作",prefixed:"プレフィックス",consumerGroupType:"コンシューマーグループ",clusterType:"クラスタ",literal:"リテラル",matchAll:"すべて",allow:"許可",deny:"拒否",aclOperationLabelDic:{ALL:"すべて",READ:"読み取り",WRITE:"書き込み",DESCRIBE:"説明",CREATE:"作成",DELETE:"削除",ALTER:"変更する"},usernameRule:"アルファベット、数字、「_」、「-」、「/」、「+」、「#」、「$」、「%」、「{'@'}」、「&」および「.」のみ使え、最長 128 文字です",aclDescription:`It refers to the permission control of the resources that Kafka clients can manipulate, including topics, consumer groups and clusters.
|
|
87
|
+
The default mode is whitelist, meaning that entries added to the list are allowed through, while those not added are denied by default.`,networkType:"Network Type",securityProtocol:"Security Protocol",metricTitleDic:{stream_count:"ストリーム数",partition_count:"パーティション数",group_count:"コンシューマーグループ数",total_messages_in_rate:"Messages In",total_messages_out_rate:"Messages Out"}},Rf={access:"Permission",topic:"Topic",username:"Username",password:"Password",cancel:"Cancel",back:"Back",generate:"Generate"},Cf={access:"是否允许",topic:"主题",username:"用户名",password:"密码",cancel:"取消",back:"返回",generate:"生成"},Pf={access:"許可/拒否",topic:"トピック",username:"ユーザー名",password:"パスワード",cancel:"キャンセル",back:"戻り",generate:"生成"},kf={generateSQLByAIBtn:"SQL Generator",generateSQLWithAI:"Generate SQL with AI",taskDescPlaceholder:'Enter a natural language task description, e.g., "Select all fields from t/#"',taskDesc:"Task Description",relatedTopics:"Related Topics",relatedTopicsDesc:'Supports a single topic, or multiple topics (comma-separated, with +/# support), e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'Please enter related topics, e.g., "t/a" or "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"Input Example (JSON)",sqlExampleInputDesc:"Provide an example JSON for the input message",sqlExampleOutput:"Output Example (JSON)",sqlExampleOutputDesc:"Provide an example JSON for the output result",applySQL:"Apply SQL",generatedSQLOutputTitle:"Generated SQL",generatedSQLOutputDesc:"Please review the AI-generated SQL. You can apply it directly, or return to modify the description and regenerate."},Ff={generateSQLByAIBtn:"SQL 生成器",generateSQLWithAI:"使用 AI 生成 SQL",taskDescPlaceholder:'请输入自然语言的任务描述,例如:"从 t/# 主题选择所有字段"',taskDesc:"任务描述",relatedTopics:"相关主题",relatedTopicsDesc:'支持单个主题,或多个主题(请使用逗号分隔,支持 +/#),例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',relatedTopicsPlaceholder:'请输入相关主题,例如:"t/a" 或 "t/a, t/b/#, t/c/+/d"',sqlExampleInput:"输入示例(JSON)",sqlExampleInputDesc:"提供一个输入消息的 JSON 示例",sqlExampleOutput:"输出示例(JSON)",sqlExampleOutputDesc:"提供一个输出结果的 JSON 示例",applySQL:"应用 SQL",generatedSQLOutputTitle:"生成的 SQL",generatedSQLOutputDesc:"请检查 AI 生成的 SQL。可直接应用,或返回修改描述并重新生成。"},Mf={generateSQLByAIBtn:"SQL ジェネレーター",generateSQLWithAI:"AI で SQL を生成",taskDescPlaceholder:"自然言語でタスク説明を入力してください。例:「t/# からすべてのフィールドを選択」",taskDesc:"タスク説明",relatedTopics:"関連トピック",relatedTopicsDesc:"単一トピックまたは複数トピック(カンマ区切り、+/# をサポート)を指定できます。例:「t/a」または「t/a, t/b/#, t/c/+/d」",relatedTopicsPlaceholder:"関連トピックを入力してください。例:「t/a」または「t/a, t/b/#, t/c/+/d」",sqlExampleInput:"入力例(JSON)",sqlExampleInputDesc:"入力メッセージのサンプル JSON を指定してください",sqlExampleOutput:"出力例(JSON)",sqlExampleOutputDesc:"出力結果のサンプル JSON を指定してください",applySQL:"SQL を適用",generatedSQLOutputTitle:"生成された SQL",generatedSQLOutputDesc:"AI が生成した SQL を確認してください。直接適用することも、説明を修正して再生成することもできます。"},is=e=>{const{t}=Ba({mode:"composition",locale:e,messages:{en:{streaming:Df,common:Rf,ruleSQL:kf},zh:{streaming:wf,common:Cf,ruleSQL:Ff},ja:{streaming:Af,common:Pf,ruleSQL:Mf}}}).global;return{t}};var Be=(e=>(e.All="ALL",e.Read="READ",e.Write="WRITE",e.Describe="DESCRIBE",e.Create="CREATE",e.Delete="DELETE",e.Alter="ALTER",e))(Be||{}),as=(e=>(e.Allow="ALLOW",e.Deny="DENY",e))(as||{}),$t=(e=>(e.Topic="TOPIC",e.Group="GROUP",e.Cluster="CLUSTER",e))($t||{});const Vf=e=>{const{t}=is(e),n=[{label:t("streaming.allow"),value:as.Allow},{label:t("streaming.deny"),value:as.Deny}],r=[{label:t("common.topic"),value:$t.Topic},{label:t("streaming.consumerGroupType"),value:$t.Group},{label:t("streaming.clusterType"),value:$t.Cluster}],i=Object.values(Be).map(o=>({label:t(`streaming.aclOperationLabelDic.${o}`),value:o})),s={[$t.Topic]:[Be.All,Be.Read,Be.Write,Be.Describe,Be.Create,Be.Delete],[$t.Group]:[Be.All,Be.Read,Be.Describe,Be.Delete],[$t.Cluster]:[Be.All,Be.Read,Be.Describe,Be.Alter]};return{permissionOptions:n,resourceTypeOptions:r,operationOptions:i,getValidOperations:o=>(s[o]||[]).map(p=>({label:t(`streaming.aclOperationLabelDic.${p}`),value:p}))}},Ha=[{groupLabel:"mathFunc",list:[{name:"abs",args:[{name:"Value",type:"number",required:!0}]},{name:"cos",args:[{name:"Value",type:"number",required:!0}]},{name:"cosh",args:[{name:"Value",type:"number",required:!0}]},{name:"acos",args:[{name:"Value",type:"number",required:!0}]},{name:"acosh",args:[{name:"Value",type:"number",required:!0}]},{name:"sin",args:[{name:"Value",type:"number",required:!0}]},{name:"sinh",args:[{name:"Value",type:"number",required:!0}]},{name:"asin",args:[{name:"Value",type:"number",required:!0}]},{name:"asinh",args:[{name:"Value",type:"number",required:!0}]},{name:"tan",args:[{name:"Value",type:"number",required:!0}]},{name:"tanh",args:[{name:"Value",type:"number",required:!0}]},{name:"atan",args:[{name:"Value",type:"number",required:!0}]},{name:"atanh",args:[{name:"Value",type:"number",required:!0}]},{name:"ceil",args:[{name:"Value",type:"number",required:!0}]},{name:"floor",args:[{name:"Value",type:"number",required:!0}]},{name:"round",args:[{name:"Value",type:"number",required:!0}]},{name:"exp",args:[{name:"Value",type:"number",required:!0}]},{name:"power",args:[{name:"Base",type:"number",required:!0},{name:"Exponent",type:"number",required:!0}]},{name:"sqrt",args:[{name:"Value",type:"number",required:!0}]},{name:"fmod",args:[{name:"Numer",type:"number",required:!0},{name:"Denom",type:"number",required:!0}]},{name:"log",args:[{name:"Value",type:"number",required:!0}]},{name:"log10",args:[{name:"Value",type:"number",required:!0}]},{name:"log2",args:[{name:"Value",type:"number",required:!0}]}]},{groupLabel:"dataTypeJudgmentFunc",list:[{name:"is_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_not_null",args:[{name:"Value",type:"any",required:!0}]},{name:"is_str",args:[{name:"Value",type:"any",required:!0}]},{name:"is_bool",args:[{name:"Value",type:"any",required:!0}]},{name:"is_int",args:[{name:"Value",type:"any",required:!0}]},{name:"is_float",args:[{name:"Value",type:"any",required:!0}]},{name:"is_num",args:[{name:"Value",type:"any",required:!0}]},{name:"is_map",args:[{name:"Value",type:"any",required:!0}]},{name:"is_array",args:[{name:"Value",type:"any",required:!0}]},{name:"is_empty",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"dataTypeConversionFunc",list:[{name:"str",args:[{name:"Value",type:"any",required:!0}]},{name:"str_utf8",args:[{name:"Value",type:"any",required:!0}]},{name:"bool",args:[{name:"Value",type:"any",required:!0}]},{name:"int",args:[{name:"Value",type:"any",required:!0}]},{name:"float",args:[{name:"Value",type:"any",required:!0}]},{name:"float2str",args:[{name:"Value",type:"float",required:!0},{name:"Precision",type:"integer",default:2,range:[0,32],required:!0}]},{name:"map",args:[{name:"Value",type:"any",required:!0}]}]},{groupLabel:"stringFunc",list:[{name:"lower",args:[{name:"String",type:"string",required:!0}]},{name:"upper",args:[{name:"String",type:"string",required:!0}]},{name:"trim",args:[{name:"String",type:"string",required:!0}]},{name:"ltrim",args:[{name:"String",type:"string",required:!0}]},{name:"rtrim",args:[{name:"String",type:"string",required:!0}]},{name:"reverse",args:[{name:"String",type:"string",required:!0}]},{name:"strlen",args:[{name:"String",type:"string",required:!0}]},{name:"substr",args:[{name:"String",type:"string",required:!0},{name:"StartPosition",type:"number",required:!0},{name:"Length",type:"number",required:!1}]},{name:"split",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"Direction",required:!1,type:"enum",optionalValues:["leading","trailing"]}]},{name:"concat",args:[{name:"String1",type:"string",required:!0},{name:"String2",type:"string",required:!0}]},{name:"tokens",args:[{name:"String",type:"string",required:!0},{name:"Separator",type:"string",required:!0},{name:"PreserveCRLF",type:"enum",optionalValues:["nocrlf"],required:!1}]},{name:"sprintf",args:[]},{name:"pad",args:[{name:"String",type:"string",required:!0},{name:"TotalLength",type:"integer",required:!0},{name:"PaddingDirection",type:"enum",optionalValues:["both","leading","trailing"],required:!1},{name:"PaddingString",type:"string",required:!1}]},{name:"replace",args:[{name:"String",type:"string",required:!0},{name:"OldSubStr",type:"string",required:!0},{name:"Replacement",type:"string",required:!0},{name:"ReplaceCount",type:"enum",optionalValues:["all","trailing","leading"],required:!1}]},{name:"regex_match",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0}]},{name:"regex_replace",args:[{name:"String",type:"string",required:!0},{name:"Pattern",type:"string",required:!0},{name:"Replacement",type:"string",required:!0}]},{name:"ascii",args:[{name:"Character",type:"string",required:!0}]},{name:"find",args:[{name:"String",type:"string",required:!0},{name:"SubstringToBeFound",type:"string",required:!0},{name:"DirectionToFind",type:"enum",optionalValues:["leading","trailing"],required:!1}]}]},{groupLabel:"mapFunc",list:[{name:"map_get",args:[{name:"Key",type:"string",required:!0},{name:"Map",type:"object",required:!0},{name:"DefaultValue",type:"any",required:!1}]},{name:"map_put",args:[{name:"Key",type:"string",required:!0},{name:"Value",type:"any",required:!0},{name:"Map",type:"object",required:!0}]},{name:"map_size",args:[{name:"Map",type:"object",required:!0}]}]},{groupLabel:"arrFunc",list:[{name:"nth",args:[{name:"Index",type:"integer",range:[1,null],required:!0},{name:"Array",type:"array",required:!0}]},{name:"length",args:[{name:"Array",type:"array",required:!0}]},{name:"sublist",args:[{name:"StartIndex",type:"integer",range:[1,null],required:!1},{name:"Length",type:"integer",required:!0},{name:"Array",type:"array",required:!0}]},{name:"first",args:[{name:"Array",type:"array",required:!0}]},{name:"last",args:[{name:"Array",type:"array",required:!0}]},{name:"contains",args:[{name:"Value",type:"any",required:!0},{name:"Array",type:"array",required:!0}]}]},{groupLabel:"hashFunc",list:[{name:"md5",args:[{name:"Value",type:"string",required:!0}]},{name:"sha",args:[{name:"Value",type:"string",required:!0}]},{name:"sha256",args:[{name:"Value",type:"string",required:!0}]}]},{groupLabel:"compressesAndUncompressesFunc",list:[{name:"gzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"gunzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip",args:[{name:"Value",type:"binary",required:!0}]},{name:"unzip",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_compress",args:[{name:"Value",type:"binary",required:!0}]},{name:"zip_uncompress",args:[{name:"Value",type:"binary",required:!0}]}]},{groupLabel:"bitFunc",list:[{name:"subbits",args:[{name:"BinaryData",type:"binary",required:!0},{name:"BinaryStartIndex",type:"integer",required:!1},{name:"Length",type:"integer",required:!0},{name:"DataType",type:"enum",optionalValues:["integer","float","bits"],required:!1},{name:"Signedness",type:"enum",optionalValues:["unsigned","signed"],required:!1},{name:"Endian",type:"enum",optionalValues:["big","little"],required:!1}]}]},{groupLabel:"decodingAndEncodingFunc",list:[{name:"base64_encode",args:[{name:"Value",type:"binary",required:!0}]},{name:"base64_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_encode",args:[{name:"Value",type:"string",required:!0}]},{name:"json_decode",args:[{name:"Value",type:"string",required:!0}]},{name:"bin2hexstr",args:[{name:"Value",type:"binary",required:!0}]},{name:"hexstr2bin",args:[{name:"Value",type:"string",required:!0}]},{name:"str_utf16_le",args:[{name:"Data",type:"string",required:!0}]},{name:"sqlserver_bin2hexstr",args:[{name:"Data",type:"string",required:!0}]}]},{groupLabel:"timeAndDateFunc",list:[{name:"now_timestamp",args:[]},{name:"now_rfc3339",args:[]},{name:"unix_ts_to_rfc3339",args:[{name:"UnixTimestamp",type:"integer",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"rfc3339_to_unix_ts",args:[{name:"RFC3339String",type:"string",required:!0},{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!1}]},{name:"format_date",args:[{name:"TimeUnit",type:"enum",optionalValues:["second","millisecond","microsecond","nanosecond"],required:!0},{name:"TimeOffset",type:"string",required:!0},{name:"DateFormat",type:"string",required:!0},{name:"Timestamp",type:"number",required:!1}]},{name:"date_to_unix_ts",args:[]}]},{groupLabel:"schemaRegistry",list:[{name:"schema_decode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Bin",type:"binary",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_encode",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0},{name:"Type",type:"string",required:!1}]},{name:"schema_check",args:[{name:"SchemaName",type:"string",required:!0},{name:"Data",type:"object",required:!0,isReference:!0}]}]}];var ja=(e=>(e.Number="number",e.Any="any",e.Float="float",e.Integer="integer",e.String="string",e.Enum="enum",e.Object="object",e.Array="array",e.Binary="binary",e))(ja||{});const xf=e=>{const{t}=is(e),n=Ha.map(({groupLabel:o,list:u})=>({groupLabel:o,name:t(`ruleFunction.${o}`),value:o,list:u.filter(p=>p.args.length)})),r=o=>{for(const{list:u}of n)for(const p of u)if(p.name===o)return p;return null},i=o=>{for(const{groupLabel:u,list:p}of n)for(const O of p)if(O.name===o)return u;return null},s={stringFunc:"string",mapFunc:"object",arrFunc:"array"};return{funcOptList:n,getFuncItemByName:r,getFuncGroupByName:i,getArgIndex:(o,u)=>{var N;const p=s[u];let O=-1;const g=(N=o.args)==null?void 0:N.findIndex(({isReference:I})=>I);return p?O=o.args.findIndex(I=>I.type===p):/time/i.test(u)?O=o.args.findIndex(I=>/timestamp/i.test(I.name)):g>-1&&(O=g),O=O>-1?O:0,O}}},Ga=["number","float","integer"],Uf=(e,t,n)=>{const{funcOptList:r,getFuncItemByName:i,getFuncGroupByName:s,getArgIndex:a}=xf(n),o=Qe({get(){return e.modelValue},set($){t("update:modelValue",$)}}),u=($,{groupLabel:V,func:S})=>{const k=a(S,V);return S.args.map((F,L)=>L===k?$:"")},p=Qe(()=>{var V,S;const $=(S=(V=o.value)==null?void 0:V.func)==null?void 0:S.name;return $?i($):null}),O=Qe(()=>p.value?p.value.args:[]),g=Qe(()=>!(O.value.length===0||O.value.length===1&&O.value[0].required)),N=$=>{if(!$){o.value.func.args=[];return}const V=s($);!V||!p.value||(g.value?o.value.func.args=u(o.value.field,{groupLabel:V,func:p.value}):o.value.func.args=[o.value.field])},I=Qe(()=>e.availableFields.map($=>({value:$})));return{record:o,getFieldList:($,V)=>{$||V(I.value);const S=I.value.filter(({value:k})=>k.includes($));V(S)},handleFieldChanged:$=>{O.value.length&&!g.value&&(o.value.func.args=[$])},funcOptList:r,args:O,handleSelectFunc:N,handleArgChanged:($,V,S)=>{Ga.includes(S)&&$!==""&&!Number.isNaN(Number($))&&(o.value.func.args[V]=Number($))}}},$f=["connection_accepted","unacceptable_protocol_version","client_identifier_not_valid","server_unavailable","malformed_username_or_password","unauthorized_client","success","unspecified_error","malformed_packet","protocol_error","implementation_specific_error","unsupported_protocol_version","bad_username_or_password","not_authorized","server_unavailable","server_busy","banned","bad_authentication_method","topic_name_invalid","packet_too_large","quota_exceeded","retain_not_supported","qos_not_supported","use_another_server","server_moved","connection_rate_exceeded","is_cache"];Oe.ArgumentType=ja,Oe.RuleField=$f,Oe.RuleFunc=Ha,Oe.createDownloadBlobLink=Es,Oe.downloadFile=gs,Oe.flattenObject=qt,Oe.formatSizeUnit=ao,Oe.formatValueToMinUnit=oo,Oe.isEmptyObj=Ya,Oe.isJSONString=ro,Oe.jsonBigIntParse=so,Oe.jsonBigIntStringify=io,Oe.numberArgTypes=Ga,Oe.parseJSONSafely=to,Oe.stringifyObjSafely=no,Oe.unflattenObject=Ka,Oe.useBatchSettings=Lf,Oe.useFunctionItemData=Uf,Oe.useLocale=is,Oe.useStreamingAuth=Vf,Object.defineProperty(Oe,Symbol.toStringTag,{value:"Module"})});
|