1234567 |
- import{c as Jt,a as Or}from"./_commonjsHelpers.35101cd5.js";import{ap as Tr}from"./vue.e266cb73.js";var de={},it={exports:{}},V={};Object.defineProperty(V,"__esModule",{value:!0});const pn=typeof window<"u";V.mark=void 0;V.measure=void 0;{const e=pn&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(V.mark=t=>e.mark(t),V.measure=(t,n,a)=>{e.measure(t,n,a),e.clearMarks(n),e.clearMarks(a)})}const Sr=/\{([0-9a-zA-Z]+)\}/g;function Nr(e,...t){return t.length===1&&kt(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Sr,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const Cr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ar=e=>Cr?Symbol(e):e,yr=(e,t,n)=>En({l:e,k:t,s:n}),En=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ir=e=>typeof e=="number"&&isFinite(e),Mr=e=>lt(e)==="[object Date]",Rr=e=>lt(e)==="[object RegExp]",kr=e=>Ft(e)&&Object.keys(e).length===0;function Pr(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Fr=Object.assign;let qt;const Dr=()=>qt||(qt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Jt<"u"?Jt:{});function wr(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const Ur=Object.prototype.hasOwnProperty;function Wr(e,t){return Ur.call(e,t)}const vn=Array.isArray,bt=e=>typeof e=="function",jr=e=>typeof e=="string",$r=e=>typeof e=="boolean",Vr=e=>typeof e=="symbol",kt=e=>e!==null&&typeof e=="object",Br=e=>kt(e)&&bt(e.then)&&bt(e.catch),Pt=Object.prototype.toString,lt=e=>Pt.call(e),Ft=e=>lt(e)==="[object Object]",Gr=e=>e==null?"":vn(e)||Ft(e)&&e.toString===Pt?JSON.stringify(e,null,2):String(e),Zt=2;function xr(e,t=0,n=e.length){const a=e.split(/\r?\n/);let s=0;const r=[];for(let i=0;i<a.length;i++)if(s+=a[i].length+1,s>=t){for(let u=i-Zt;u<=i+Zt||n>s;u++){if(u<0||u>=a.length)continue;const l=u+1;r.push(`${l}${" ".repeat(3-String(l).length)}| ${a[u]}`);const _=a[u].length;if(u===i){const p=t-(s-_)+1,O=Math.max(1,n>s?_-p:n-t);r.push(" | "+" ".repeat(p)+"^".repeat(O))}else if(u>i){if(n>s){const p=Math.max(Math.min(n-s,_),1);r.push(" | "+"^".repeat(p))}s+=_+1}}break}return r.join(`
- `)}function Hr(){const e=new Map;return{events:e,on(n,a){const s=e.get(n);s&&s.push(a)||e.set(n,[a])},off(n,a){const s=e.get(n);s&&s.splice(s.indexOf(a)>>>0,1)},emit(n,a){(e.get(n)||[]).slice().map(s=>s(a)),(e.get("*")||[]).slice().map(s=>s(n,a))}}}V.assign=Fr;V.createEmitter=Hr;V.escapeHtml=wr;V.format=Nr;V.friendlyJSONstringify=En;V.generateCodeFrame=xr;V.generateFormatCacheKey=yr;V.getGlobalThis=Dr;V.hasOwn=Wr;V.inBrowser=pn;V.isArray=vn;V.isBoolean=$r;V.isDate=Mr;V.isEmptyObject=kr;V.isFunction=bt;V.isNumber=Ir;V.isObject=kt;V.isPlainObject=Ft;V.isPromise=Br;V.isRegExp=Rr;V.isString=jr;V.isSymbol=Vr;V.makeSymbol=Ar;V.objectToString=Pt;V.toDisplayString=Gr;V.toTypeString=lt;V.warn=Pr;(function(e){e.exports=V})(it);var bn={exports:{}},F={},Ln={exports:{}},se={},ot={},Dt={},ut={},wt={},zt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");wt.encode=function(e){if(0<=e&&e<zt.length)return zt[e];throw new TypeError("Must be between 0 and 63: "+e)};wt.decode=function(e){var t=65,n=90,a=97,s=122,r=48,i=57,u=43,l=47,_=26,p=52;return t<=e&&e<=n?e-t:a<=e&&e<=s?e-a+_:r<=e&&e<=i?e-r+p:e==u?62:e==l?63:-1};var On=wt,Ut=5,Tn=1<<Ut,Sn=Tn-1,Nn=Tn;function Kr(e){return e<0?(-e<<1)+1:(e<<1)+0}function Yr(e){var t=(e&1)===1,n=e>>1;return t?-n:n}ut.encode=function(t){var n="",a,s=Kr(t);do a=s&Sn,s>>>=Ut,s>0&&(a|=Nn),n+=On.encode(a);while(s>0);return n};ut.decode=function(t,n,a){var s=t.length,r=0,i=0,u,l;do{if(n>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=On.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));u=!!(l&Nn),l&=Sn,r=r+(l<<i),i+=Ut}while(u);a.value=Yr(r),a.rest=n};var Ue={};(function(e){function t(c,m,T){if(m in c)return c[m];if(arguments.length===3)return T;throw new Error('"'+m+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,a=/^data:.+\,.+$/;function s(c){var m=c.match(n);return m?{scheme:m[1],auth:m[2],host:m[3],port:m[4],path:m[5]}:null}e.urlParse=s;function r(c){var m="";return c.scheme&&(m+=c.scheme+":"),m+="//",c.auth&&(m+=c.auth+"@"),c.host&&(m+=c.host),c.port&&(m+=":"+c.port),c.path&&(m+=c.path),m}e.urlGenerate=r;function i(c){var m=c,T=s(c);if(T){if(!T.path)return c;m=T.path}for(var b=e.isAbsolute(m),D=m.split(/\/+/),j,G=0,H=D.length-1;H>=0;H--)j=D[H],j==="."?D.splice(H,1):j===".."?G++:G>0&&(j===""?(D.splice(H+1,G),G=0):(D.splice(H,2),G--));return m=D.join("/"),m===""&&(m=b?"/":"."),T?(T.path=m,r(T)):m}e.normalize=i;function u(c,m){c===""&&(c="."),m===""&&(m=".");var T=s(m),b=s(c);if(b&&(c=b.path||"/"),T&&!T.scheme)return b&&(T.scheme=b.scheme),r(T);if(T||m.match(a))return m;if(b&&!b.host&&!b.path)return b.host=m,r(b);var D=m.charAt(0)==="/"?m:i(c.replace(/\/+$/,"")+"/"+m);return b?(b.path=D,r(b)):D}e.join=u,e.isAbsolute=function(c){return c.charAt(0)==="/"||n.test(c)};function l(c,m){c===""&&(c="."),c=c.replace(/\/$/,"");for(var T=0;m.indexOf(c+"/")!==0;){var b=c.lastIndexOf("/");if(b<0||(c=c.slice(0,b),c.match(/^([^\/]+:\/)?\/*$/)))return m;++T}return Array(T+1).join("../")+m.substr(c.length+1)}e.relative=l;var _=function(){var c=Object.create(null);return!("__proto__"in c)}();function p(c){return c}function O(c){return N(c)?"$"+c:c}e.toSetString=_?p:O;function E(c){return N(c)?c.slice(1):c}e.fromSetString=_?p:E;function N(c){if(!c)return!1;var m=c.length;if(m<9||c.charCodeAt(m-1)!==95||c.charCodeAt(m-2)!==95||c.charCodeAt(m-3)!==111||c.charCodeAt(m-4)!==116||c.charCodeAt(m-5)!==111||c.charCodeAt(m-6)!==114||c.charCodeAt(m-7)!==112||c.charCodeAt(m-8)!==95||c.charCodeAt(m-9)!==95)return!1;for(var T=m-10;T>=0;T--)if(c.charCodeAt(T)!==36)return!1;return!0}function R(c,m,T){var b=y(c.source,m.source);return b!==0||(b=c.originalLine-m.originalLine,b!==0)||(b=c.originalColumn-m.originalColumn,b!==0||T)||(b=c.generatedColumn-m.generatedColumn,b!==0)||(b=c.generatedLine-m.generatedLine,b!==0)?b:y(c.name,m.name)}e.compareByOriginalPositions=R;function I(c,m,T){var b=c.generatedLine-m.generatedLine;return b!==0||(b=c.generatedColumn-m.generatedColumn,b!==0||T)||(b=y(c.source,m.source),b!==0)||(b=c.originalLine-m.originalLine,b!==0)||(b=c.originalColumn-m.originalColumn,b!==0)?b:y(c.name,m.name)}e.compareByGeneratedPositionsDeflated=I;function y(c,m){return c===m?0:c===null?1:m===null?-1:c>m?1:-1}function d(c,m){var T=c.generatedLine-m.generatedLine;return T!==0||(T=c.generatedColumn-m.generatedColumn,T!==0)||(T=y(c.source,m.source),T!==0)||(T=c.originalLine-m.originalLine,T!==0)||(T=c.originalColumn-m.originalColumn,T!==0)?T:y(c.name,m.name)}e.compareByGeneratedPositionsInflated=d;function L(c){return JSON.parse(c.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=L;function C(c,m,T){if(m=m||"",c&&(c[c.length-1]!=="/"&&m[0]!=="/"&&(c+="/"),m=c+m),T){var b=s(T);if(!b)throw new Error("sourceMapURL could not be parsed");if(b.path){var D=b.path.lastIndexOf("/");D>=0&&(b.path=b.path.substring(0,D+1))}m=u(r(b),m)}return i(m)}e.computeSourceURL=C})(Ue);var Wt={},jt=Ue,$t=Object.prototype.hasOwnProperty,ye=typeof Map<"u";function Ee(){this._array=[],this._set=ye?new Map:Object.create(null)}Ee.fromArray=function(t,n){for(var a=new Ee,s=0,r=t.length;s<r;s++)a.add(t[s],n);return a};Ee.prototype.size=function(){return ye?this._set.size:Object.getOwnPropertyNames(this._set).length};Ee.prototype.add=function(t,n){var a=ye?t:jt.toSetString(t),s=ye?this.has(t):$t.call(this._set,a),r=this._array.length;(!s||n)&&this._array.push(t),s||(ye?this._set.set(t,r):this._set[a]=r)};Ee.prototype.has=function(t){if(ye)return this._set.has(t);var n=jt.toSetString(t);return $t.call(this._set,n)};Ee.prototype.indexOf=function(t){if(ye){var n=this._set.get(t);if(n>=0)return n}else{var a=jt.toSetString(t);if($t.call(this._set,a))return this._set[a]}throw new Error('"'+t+'" is not in the set.')};Ee.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Ee.prototype.toArray=function(){return this._array.slice()};Wt.ArraySet=Ee;var Cn={},An=Ue;function Xr(e,t){var n=e.generatedLine,a=t.generatedLine,s=e.generatedColumn,r=t.generatedColumn;return a>n||a==n&&r>=s||An.compareByGeneratedPositionsInflated(e,t)<=0}function ct(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ct.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};ct.prototype.add=function(t){Xr(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};ct.prototype.toArray=function(){return this._sorted||(this._array.sort(An.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Cn.MappingList=ct;var Je=ut,Y=Ue,rt=Wt.ArraySet,Qr=Cn.MappingList;function ae(e){e||(e={}),this._file=Y.getArg(e,"file",null),this._sourceRoot=Y.getArg(e,"sourceRoot",null),this._skipValidation=Y.getArg(e,"skipValidation",!1),this._sources=new rt,this._names=new rt,this._mappings=new Qr,this._sourcesContents=null}ae.prototype._version=3;ae.fromSourceMap=function(t){var n=t.sourceRoot,a=new ae({file:t.file,sourceRoot:n});return t.eachMapping(function(s){var r={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(r.source=s.source,n!=null&&(r.source=Y.relative(n,r.source)),r.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(r.name=s.name)),a.addMapping(r)}),t.sources.forEach(function(s){var r=s;n!==null&&(r=Y.relative(n,s)),a._sources.has(r)||a._sources.add(r);var i=t.sourceContentFor(s);i!=null&&a.setSourceContent(s,i)}),a};ae.prototype.addMapping=function(t){var n=Y.getArg(t,"generated"),a=Y.getArg(t,"original",null),s=Y.getArg(t,"source",null),r=Y.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,a,s,r),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),r!=null&&(r=String(r),this._names.has(r)||this._names.add(r)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:a!=null&&a.line,originalColumn:a!=null&&a.column,source:s,name:r})};ae.prototype.setSourceContent=function(t,n){var a=t;this._sourceRoot!=null&&(a=Y.relative(this._sourceRoot,a)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Y.toSetString(a)]=n):this._sourcesContents&&(delete this._sourcesContents[Y.toSetString(a)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};ae.prototype.applySourceMap=function(t,n,a){var s=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var r=this._sourceRoot;r!=null&&(s=Y.relative(r,s));var i=new rt,u=new rt;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var _=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});_.source!=null&&(l.source=_.source,a!=null&&(l.source=Y.join(a,l.source)),r!=null&&(l.source=Y.relative(r,l.source)),l.originalLine=_.line,l.originalColumn=_.column,_.name!=null&&(l.name=_.name))}var p=l.source;p!=null&&!i.has(p)&&i.add(p);var O=l.name;O!=null&&!u.has(O)&&u.add(O)},this),this._sources=i,this._names=u,t.sources.forEach(function(l){var _=t.sourceContentFor(l);_!=null&&(a!=null&&(l=Y.join(a,l)),r!=null&&(l=Y.relative(r,l)),this.setSourceContent(l,_))},this)};ae.prototype._validateMapping=function(t,n,a,s){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!a&&!s)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&a)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:a,original:n,name:s}))}};ae.prototype._serializeMappings=function(){for(var t=0,n=1,a=0,s=0,r=0,i=0,u="",l,_,p,O,E=this._mappings.toArray(),N=0,R=E.length;N<R;N++){if(_=E[N],l="",_.generatedLine!==n)for(t=0;_.generatedLine!==n;)l+=";",n++;else if(N>0){if(!Y.compareByGeneratedPositionsInflated(_,E[N-1]))continue;l+=","}l+=Je.encode(_.generatedColumn-t),t=_.generatedColumn,_.source!=null&&(O=this._sources.indexOf(_.source),l+=Je.encode(O-i),i=O,l+=Je.encode(_.originalLine-1-s),s=_.originalLine-1,l+=Je.encode(_.originalColumn-a),a=_.originalColumn,_.name!=null&&(p=this._names.indexOf(_.name),l+=Je.encode(p-r),r=p)),u+=l}return u};ae.prototype._generateSourcesContent=function(t,n){return t.map(function(a){if(!this._sourcesContents)return null;n!=null&&(a=Y.relative(n,a));var s=Y.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};ae.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};ae.prototype.toString=function(){return JSON.stringify(this.toJSON())};Dt.SourceMapGenerator=ae;var ft={},yn={};(function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,a,s,r,i,u){var l=Math.floor((a-n)/2)+n,_=i(s,r[l],!0);return _===0?l:_>0?a-l>1?t(l,a,s,r,i,u):u==e.LEAST_UPPER_BOUND?a<r.length?a:-1:l:l-n>1?t(n,l,s,r,i,u):u==e.LEAST_UPPER_BOUND?l:n<0?-1:n}e.search=function(a,s,r,i){if(s.length===0)return-1;var u=t(-1,s.length,a,s,r,i||e.GREATEST_LOWER_BOUND);if(u<0)return-1;for(;u-1>=0&&r(s[u],s[u-1],!0)===0;)--u;return u}})(yn);var In={};function Et(e,t,n){var a=e[t];e[t]=e[n],e[n]=a}function Jr(e,t){return Math.round(e+Math.random()*(t-e))}function Lt(e,t,n,a){if(n<a){var s=Jr(n,a),r=n-1;Et(e,s,a);for(var i=e[a],u=n;u<a;u++)t(e[u],i)<=0&&(r+=1,Et(e,r,u));Et(e,r+1,u);var l=r+1;Lt(e,t,n,l-1),Lt(e,t,l+1,a)}}In.quickSort=function(e,t){Lt(e,t,0,e.length-1)};var k=Ue,Vt=yn,Pe=Wt.ArraySet,qr=ut,Ze=In.quickSort;function x(e,t){var n=e;return typeof e=="string"&&(n=k.parseSourceMapInput(e)),n.sections!=null?new oe(n,t):new J(n,t)}x.fromSourceMap=function(e,t){return J.fromSourceMap(e,t)};x.prototype._version=3;x.prototype.__generatedMappings=null;Object.defineProperty(x.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});x.prototype.__originalMappings=null;Object.defineProperty(x.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});x.prototype._charIsMappingSeparator=function(t,n){var a=t.charAt(n);return a===";"||a===","};x.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};x.GENERATED_ORDER=1;x.ORIGINAL_ORDER=2;x.GREATEST_LOWER_BOUND=1;x.LEAST_UPPER_BOUND=2;x.prototype.eachMapping=function(t,n,a){var s=n||null,r=a||x.GENERATED_ORDER,i;switch(r){case x.GENERATED_ORDER:i=this._generatedMappings;break;case x.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var u=this.sourceRoot;i.map(function(l){var _=l.source===null?null:this._sources.at(l.source);return _=k.computeSourceURL(u,_,this._sourceMapURL),{source:_,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,s)};x.prototype.allGeneratedPositionsFor=function(t){var n=k.getArg(t,"line"),a={source:k.getArg(t,"source"),originalLine:n,originalColumn:k.getArg(t,"column",0)};if(a.source=this._findSourceIndex(a.source),a.source<0)return[];var s=[],r=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",k.compareByOriginalPositions,Vt.LEAST_UPPER_BOUND);if(r>=0){var i=this._originalMappings[r];if(t.column===void 0)for(var u=i.originalLine;i&&i.originalLine===u;)s.push({line:k.getArg(i,"generatedLine",null),column:k.getArg(i,"generatedColumn",null),lastColumn:k.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++r];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)s.push({line:k.getArg(i,"generatedLine",null),column:k.getArg(i,"generatedColumn",null),lastColumn:k.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++r]}return s};ft.SourceMapConsumer=x;function J(e,t){var n=e;typeof e=="string"&&(n=k.parseSourceMapInput(e));var a=k.getArg(n,"version"),s=k.getArg(n,"sources"),r=k.getArg(n,"names",[]),i=k.getArg(n,"sourceRoot",null),u=k.getArg(n,"sourcesContent",null),l=k.getArg(n,"mappings"),_=k.getArg(n,"file",null);if(a!=this._version)throw new Error("Unsupported version: "+a);i&&(i=k.normalize(i)),s=s.map(String).map(k.normalize).map(function(p){return i&&k.isAbsolute(i)&&k.isAbsolute(p)?k.relative(i,p):p}),this._names=Pe.fromArray(r.map(String),!0),this._sources=Pe.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(p){return k.computeSourceURL(i,p,t)}),this.sourceRoot=i,this.sourcesContent=u,this._mappings=l,this._sourceMapURL=t,this.file=_}J.prototype=Object.create(x.prototype);J.prototype.consumer=x;J.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=k.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};J.fromSourceMap=function(t,n){var a=Object.create(J.prototype),s=a._names=Pe.fromArray(t._names.toArray(),!0),r=a._sources=Pe.fromArray(t._sources.toArray(),!0);a.sourceRoot=t._sourceRoot,a.sourcesContent=t._generateSourcesContent(a._sources.toArray(),a.sourceRoot),a.file=t._file,a._sourceMapURL=n,a._absoluteSources=a._sources.toArray().map(function(N){return k.computeSourceURL(a.sourceRoot,N,n)});for(var i=t._mappings.toArray().slice(),u=a.__generatedMappings=[],l=a.__originalMappings=[],_=0,p=i.length;_<p;_++){var O=i[_],E=new Mn;E.generatedLine=O.generatedLine,E.generatedColumn=O.generatedColumn,O.source&&(E.source=r.indexOf(O.source),E.originalLine=O.originalLine,E.originalColumn=O.originalColumn,O.name&&(E.name=s.indexOf(O.name)),l.push(E)),u.push(E)}return Ze(a.__originalMappings,k.compareByOriginalPositions),a};J.prototype._version=3;Object.defineProperty(J.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Mn(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}J.prototype._parseMappings=function(t,n){for(var a=1,s=0,r=0,i=0,u=0,l=0,_=t.length,p=0,O={},E={},N=[],R=[],I,y,d,L,C;p<_;)if(t.charAt(p)===";")a++,p++,s=0;else if(t.charAt(p)===",")p++;else{for(I=new Mn,I.generatedLine=a,L=p;L<_&&!this._charIsMappingSeparator(t,L);L++);if(y=t.slice(p,L),d=O[y],d)p+=y.length;else{for(d=[];p<L;)qr.decode(t,p,E),C=E.value,p=E.rest,d.push(C);if(d.length===2)throw new Error("Found a source, but no line and column");if(d.length===3)throw new Error("Found a source and line, but no column");O[y]=d}I.generatedColumn=s+d[0],s=I.generatedColumn,d.length>1&&(I.source=u+d[1],u+=d[1],I.originalLine=r+d[2],r=I.originalLine,I.originalLine+=1,I.originalColumn=i+d[3],i=I.originalColumn,d.length>4&&(I.name=l+d[4],l+=d[4])),R.push(I),typeof I.originalLine=="number"&&N.push(I)}Ze(R,k.compareByGeneratedPositionsDeflated),this.__generatedMappings=R,Ze(N,k.compareByOriginalPositions),this.__originalMappings=N};J.prototype._findMapping=function(t,n,a,s,r,i){if(t[a]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[a]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return Vt.search(t,n,r,i)};J.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var a=this._generatedMappings[t+1];if(n.generatedLine===a.generatedLine){n.lastGeneratedColumn=a.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};J.prototype.originalPositionFor=function(t){var n={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},a=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",k.compareByGeneratedPositionsDeflated,k.getArg(t,"bias",x.GREATEST_LOWER_BOUND));if(a>=0){var s=this._generatedMappings[a];if(s.generatedLine===n.generatedLine){var r=k.getArg(s,"source",null);r!==null&&(r=this._sources.at(r),r=k.computeSourceURL(this.sourceRoot,r,this._sourceMapURL));var i=k.getArg(s,"name",null);return i!==null&&(i=this._names.at(i)),{source:r,line:k.getArg(s,"originalLine",null),column:k.getArg(s,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}};J.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};J.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var a=this._findSourceIndex(t);if(a>=0)return this.sourcesContent[a];var s=t;this.sourceRoot!=null&&(s=k.relative(this.sourceRoot,s));var r;if(this.sourceRoot!=null&&(r=k.urlParse(this.sourceRoot))){var i=s.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||r.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(n)return null;throw new Error('"'+s+'" is not in the SourceMap.')};J.prototype.generatedPositionFor=function(t){var n=k.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var a={source:n,originalLine:k.getArg(t,"line"),originalColumn:k.getArg(t,"column")},s=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",k.compareByOriginalPositions,k.getArg(t,"bias",x.GREATEST_LOWER_BOUND));if(s>=0){var r=this._originalMappings[s];if(r.source===a.source)return{line:k.getArg(r,"generatedLine",null),column:k.getArg(r,"generatedColumn",null),lastColumn:k.getArg(r,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ft.BasicSourceMapConsumer=J;function oe(e,t){var n=e;typeof e=="string"&&(n=k.parseSourceMapInput(e));var a=k.getArg(n,"version"),s=k.getArg(n,"sections");if(a!=this._version)throw new Error("Unsupported version: "+a);this._sources=new Pe,this._names=new Pe;var r={line:-1,column:0};this._sections=s.map(function(i){if(i.url)throw new Error("Support for url field in sections not implemented.");var u=k.getArg(i,"offset"),l=k.getArg(u,"line"),_=k.getArg(u,"column");if(l<r.line||l===r.line&&_<r.column)throw new Error("Section offsets must be ordered and non-overlapping.");return r=u,{generatedOffset:{generatedLine:l+1,generatedColumn:_+1},consumer:new x(k.getArg(i,"map"),t)}})}oe.prototype=Object.create(x.prototype);oe.prototype.constructor=x;oe.prototype._version=3;Object.defineProperty(oe.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});oe.prototype.originalPositionFor=function(t){var n={generatedLine:k.getArg(t,"line"),generatedColumn:k.getArg(t,"column")},a=Vt.search(n,this._sections,function(r,i){var u=r.generatedLine-i.generatedOffset.generatedLine;return u||r.generatedColumn-i.generatedOffset.generatedColumn}),s=this._sections[a];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};oe.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};oe.prototype.sourceContentFor=function(t,n){for(var a=0;a<this._sections.length;a++){var s=this._sections[a],r=s.consumer.sourceContentFor(t,!0);if(r)return r}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};oe.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var a=this._sections[n];if(a.consumer._findSourceIndex(k.getArg(t,"source"))!==-1){var s=a.consumer.generatedPositionFor(t);if(s){var r={line:s.line+(a.generatedOffset.generatedLine-1),column:s.column+(a.generatedOffset.generatedLine===s.line?a.generatedOffset.generatedColumn-1:0)};return r}}}return{line:null,column:null}};oe.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var a=0;a<this._sections.length;a++)for(var s=this._sections[a],r=s.consumer._generatedMappings,i=0;i<r.length;i++){var u=r[i],l=s.consumer._sources.at(u.source);l=k.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var _=null;u.name&&(_=s.consumer._names.at(u.name),this._names.add(_),_=this._names.indexOf(_));var p={source:l,generatedLine:u.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(s.generatedOffset.generatedLine===u.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:_};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Ze(this.__generatedMappings,k.compareByGeneratedPositionsDeflated),Ze(this.__originalMappings,k.compareByOriginalPositions)};ft.IndexedSourceMapConsumer=oe;var Rn={},Zr=Dt.SourceMapGenerator,at=Ue,zr=/(\r?\n)/,ea=10,We="$$$isSourceNode$$$";function ne(e,t,n,a,s){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=s??null,this[We]=!0,a!=null&&this.add(a)}ne.fromStringWithSourceMap=function(t,n,a){var s=new ne,r=t.split(zr),i=0,u=function(){var E=R(),N=R()||"";return E+N;function R(){return i<r.length?r[i++]:void 0}},l=1,_=0,p=null;return n.eachMapping(function(E){if(p!==null)if(l<E.generatedLine)O(p,u()),l++,_=0;else{var N=r[i]||"",R=N.substr(0,E.generatedColumn-_);r[i]=N.substr(E.generatedColumn-_),_=E.generatedColumn,O(p,R),p=E;return}for(;l<E.generatedLine;)s.add(u()),l++;if(_<E.generatedColumn){var N=r[i]||"";s.add(N.substr(0,E.generatedColumn)),r[i]=N.substr(E.generatedColumn),_=E.generatedColumn}p=E},this),i<r.length&&(p&&O(p,u()),s.add(r.splice(i).join(""))),n.sources.forEach(function(E){var N=n.sourceContentFor(E);N!=null&&(a!=null&&(E=at.join(a,E)),s.setSourceContent(E,N))}),s;function O(E,N){if(E===null||E.source===void 0)s.add(N);else{var R=a?at.join(a,E.source):E.source;s.add(new ne(E.originalLine,E.originalColumn,R,N,E.name))}}};ne.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[We]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[We]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};ne.prototype.walk=function(t){for(var n,a=0,s=this.children.length;a<s;a++)n=this.children[a],n[We]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};ne.prototype.join=function(t){var n,a,s=this.children.length;if(s>0){for(n=[],a=0;a<s-1;a++)n.push(this.children[a]),n.push(t);n.push(this.children[a]),this.children=n}return this};ne.prototype.replaceRight=function(t,n){var a=this.children[this.children.length-1];return a[We]?a.replaceRight(t,n):typeof a=="string"?this.children[this.children.length-1]=a.replace(t,n):this.children.push("".replace(t,n)),this};ne.prototype.setSourceContent=function(t,n){this.sourceContents[at.toSetString(t)]=n};ne.prototype.walkSourceContents=function(t){for(var n=0,a=this.children.length;n<a;n++)this.children[n][We]&&this.children[n].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),n=0,a=s.length;n<a;n++)t(at.fromSetString(s[n]),this.sourceContents[s[n]])};ne.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};ne.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},a=new Zr(t),s=!1,r=null,i=null,u=null,l=null;return this.walk(function(_,p){n.code+=_,p.source!==null&&p.line!==null&&p.column!==null?((r!==p.source||i!==p.line||u!==p.column||l!==p.name)&&a.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:n.line,column:n.column},name:p.name}),r=p.source,i=p.line,u=p.column,l=p.name,s=!0):s&&(a.addMapping({generated:{line:n.line,column:n.column}}),r=null,s=!1);for(var O=0,E=_.length;O<E;O++)_.charCodeAt(O)===ea?(n.line++,n.column=0,O+1===E?(r=null,s=!1):s&&a.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:n.line,column:n.column},name:p.name})):n.column++}),this.walkSourceContents(function(_,p){a.setSourceContent(_,p)}),{code:n.code,map:a}};Rn.SourceNode=ne;ot.SourceMapGenerator=Dt.SourceMapGenerator;ot.SourceMapConsumer=ft.SourceMapConsumer;ot.SourceNode=Rn.SourceNode;Object.defineProperty(se,"__esModule",{value:!0});var ze=it.exports,ta=ot;const w={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,__EXTEND_POINT__:15},kn={[w.EXPECTED_TOKEN]:"Expected token: '{0}'",[w.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[w.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[w.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[w.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[w.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[w.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[w.EMPTY_PLACEHOLDER]:"Empty placeholder",[w.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[w.INVALID_LINKED_FORMAT]:"Invalid linked format",[w.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[w.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[w.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[w.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function Bt(e,t,n={}){const{domain:a,messages:s,args:r}=n,i=ze.format((s||kn)[e]||"",...r||[]),u=new SyntaxError(String(i));return u.code=e,t&&(u.location=t),u.domain=a,u}function na(e){throw e}const Pn={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function Fn(e,t,n){return{line:e,column:t,offset:n}}function st(e,t,n){const a={start:e,end:t};return n!=null&&(a.source=n),a}const pe=" ",ra="\r",Z=`
- `,aa=String.fromCharCode(8232),sa=String.fromCharCode(8233);function ia(e){const t=e;let n=0,a=1,s=1,r=0;const i=b=>t[b]===ra&&t[b+1]===Z,u=b=>t[b]===Z,l=b=>t[b]===sa,_=b=>t[b]===aa,p=b=>i(b)||u(b)||l(b)||_(b),O=()=>n,E=()=>a,N=()=>s,R=()=>r,I=b=>i(b)||l(b)||_(b)?Z:t[b],y=()=>I(n),d=()=>I(n+r);function L(){return r=0,p(n)&&(a++,s=0),i(n)&&n++,n++,s++,t[n]}function C(){return i(n+r)&&r++,r++,t[n+r]}function c(){n=0,a=1,s=1,r=0}function m(b=0){r=b}function T(){const b=n+r;for(;b!==n;)L();r=0}return{index:O,line:E,column:N,peekOffset:R,charAt:I,currentChar:y,currentPeek:d,next:L,peek:C,reset:c,resetPeek:m,skipToPeek:T}}const be=void 0,en="'",la="tokenizer";function oa(e,t={}){const n=t.location!==!1,a=ia(e),s=()=>a.index(),r=()=>Fn(a.line(),a.column(),a.index()),i=r(),u=s(),l={currentType:14,offset:u,startLoc:i,endLoc:i,lastType:14,lastOffset:u,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},_=()=>l,{onError:p}=t;function O(f,o,v,...M){const U=_();if(o.column+=v,o.offset+=v,p){const B=st(U.startLoc,o),me=Bt(f,B,{domain:la,args:M});p(me)}}function E(f,o,v){f.endLoc=r(),f.currentType=o;const M={type:o};return n&&(M.loc=st(f.startLoc,f.endLoc)),v!=null&&(M.value=v),M}const N=f=>E(f,14);function R(f,o){return f.currentChar()===o?(f.next(),o):(O(w.EXPECTED_TOKEN,r(),0,o),"")}function I(f){let o="";for(;f.currentPeek()===pe||f.currentPeek()===Z;)o+=f.currentPeek(),f.peek();return o}function y(f){const o=I(f);return f.skipToPeek(),o}function d(f){if(f===be)return!1;const o=f.charCodeAt(0);return o>=97&&o<=122||o>=65&&o<=90||o===95}function L(f){if(f===be)return!1;const o=f.charCodeAt(0);return o>=48&&o<=57}function C(f,o){const{currentType:v}=o;if(v!==2)return!1;I(f);const M=d(f.currentPeek());return f.resetPeek(),M}function c(f,o){const{currentType:v}=o;if(v!==2)return!1;I(f);const M=f.currentPeek()==="-"?f.peek():f.currentPeek(),U=L(M);return f.resetPeek(),U}function m(f,o){const{currentType:v}=o;if(v!==2)return!1;I(f);const M=f.currentPeek()===en;return f.resetPeek(),M}function T(f,o){const{currentType:v}=o;if(v!==8)return!1;I(f);const M=f.currentPeek()===".";return f.resetPeek(),M}function b(f,o){const{currentType:v}=o;if(v!==9)return!1;I(f);const M=d(f.currentPeek());return f.resetPeek(),M}function D(f,o){const{currentType:v}=o;if(!(v===8||v===12))return!1;I(f);const M=f.currentPeek()===":";return f.resetPeek(),M}function j(f,o){const{currentType:v}=o;if(v!==10)return!1;const M=()=>{const B=f.currentPeek();return B==="{"?d(f.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===pe||!B?!1:B===Z?(f.peek(),M()):d(B)},U=M();return f.resetPeek(),U}function G(f){I(f);const o=f.currentPeek()==="|";return f.resetPeek(),o}function H(f){const o=I(f),v=f.currentPeek()==="%"&&f.peek()==="{";return f.resetPeek(),{isModulo:v,hasSpace:o.length>0}}function ue(f,o=!0){const v=(U=!1,B="",me=!1)=>{const he=f.currentPeek();return he==="{"?B==="%"?!1:U:he==="@"||!he?B==="%"?!0:U:he==="%"?(f.peek(),v(U,"%",!0)):he==="|"?B==="%"||me?!0:!(B===pe||B===Z):he===pe?(f.peek(),v(!0,pe,me)):he===Z?(f.peek(),v(!0,Z,me)):!0},M=v();return o&&f.resetPeek(),M}function re(f,o){const v=f.currentChar();return v===be?be:o(v)?(f.next(),v):null}function Me(f){return re(f,v=>{const M=v.charCodeAt(0);return M>=97&&M<=122||M>=65&&M<=90||M>=48&&M<=57||M===95||M===36})}function je(f){return re(f,v=>{const M=v.charCodeAt(0);return M>=48&&M<=57})}function ce(f){return re(f,v=>{const M=v.charCodeAt(0);return M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102})}function Re(f){let o="",v="";for(;o=je(f);)v+=o;return v}function fe(f){y(f);const o=f.currentChar();return o!=="%"&&O(w.EXPECTED_TOKEN,r(),0,o),f.next(),"%"}function Oe(f){let o="";for(;;){const v=f.currentChar();if(v==="{"||v==="}"||v==="@"||v==="|"||!v)break;if(v==="%")if(ue(f))o+=v,f.next();else break;else if(v===pe||v===Z)if(ue(f))o+=v,f.next();else{if(G(f))break;o+=v,f.next()}else o+=v,f.next()}return o}function $e(f){y(f);let o="",v="";for(;o=Me(f);)v+=o;return f.currentChar()===be&&O(w.UNTERMINATED_CLOSING_BRACE,r(),0),v}function Ve(f){y(f);let o="";return f.currentChar()==="-"?(f.next(),o+=`-${Re(f)}`):o+=Re(f),f.currentChar()===be&&O(w.UNTERMINATED_CLOSING_BRACE,r(),0),o}function Be(f){y(f),R(f,"'");let o="",v="";const M=B=>B!==en&&B!==Z;for(;o=re(f,M);)o==="\\"?v+=Ge(f):v+=o;const U=f.currentChar();return U===Z||U===be?(O(w.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),U===Z&&(f.next(),R(f,"'")),v):(R(f,"'"),v)}function Ge(f){const o=f.currentChar();switch(o){case"\\":case"'":return f.next(),`\\${o}`;case"u":return xe(f,o,4);case"U":return xe(f,o,6);default:return O(w.UNKNOWN_ESCAPE_SEQUENCE,r(),0,o),""}}function xe(f,o,v){R(f,o);let M="";for(let U=0;U<v;U++){const B=ce(f);if(!B){O(w.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${o}${M}${f.currentChar()}`);break}M+=B}return`\\${o}${M}`}function He(f){y(f);let o="",v="";const M=U=>U!=="{"&&U!=="}"&&U!==pe&&U!==Z;for(;o=re(f,M);)v+=o;return v}function Ke(f){let o="",v="";for(;o=Me(f);)v+=o;return v}function Ye(f){const o=(v=!1,M)=>{const U=f.currentChar();return U==="{"||U==="%"||U==="@"||U==="|"||!U||U===pe?M:U===Z?(M+=U,f.next(),o(v,M)):(M+=U,f.next(),o(!0,M))};return o(!1,"")}function Te(f){y(f);const o=R(f,"|");return y(f),o}function Se(f,o){let v=null;switch(f.currentChar()){case"{":return o.braceNest>=1&&O(w.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),f.next(),v=E(o,2,"{"),y(f),o.braceNest++,v;case"}":return o.braceNest>0&&o.currentType===2&&O(w.EMPTY_PLACEHOLDER,r(),0),f.next(),v=E(o,3,"}"),o.braceNest--,o.braceNest>0&&y(f),o.inLinked&&o.braceNest===0&&(o.inLinked=!1),v;case"@":return o.braceNest>0&&O(w.UNTERMINATED_CLOSING_BRACE,r(),0),v=ve(f,o)||N(o),o.braceNest=0,v;default:let U=!0,B=!0,me=!0;if(G(f))return o.braceNest>0&&O(w.UNTERMINATED_CLOSING_BRACE,r(),0),v=E(o,1,Te(f)),o.braceNest=0,o.inLinked=!1,v;if(o.braceNest>0&&(o.currentType===5||o.currentType===6||o.currentType===7))return O(w.UNTERMINATED_CLOSING_BRACE,r(),0),o.braceNest=0,Ne(f,o);if(U=C(f,o))return v=E(o,5,$e(f)),y(f),v;if(B=c(f,o))return v=E(o,6,Ve(f)),y(f),v;if(me=m(f,o))return v=E(o,7,Be(f)),y(f),v;if(!U&&!B&&!me)return v=E(o,13,He(f)),O(w.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,v.value),y(f),v;break}return v}function ve(f,o){const{currentType:v}=o;let M=null;const U=f.currentChar();switch((v===8||v===9||v===12||v===10)&&(U===Z||U===pe)&&O(w.INVALID_LINKED_FORMAT,r(),0),U){case"@":return f.next(),M=E(o,8,"@"),o.inLinked=!0,M;case".":return y(f),f.next(),E(o,9,".");case":":return y(f),f.next(),E(o,10,":");default:return G(f)?(M=E(o,1,Te(f)),o.braceNest=0,o.inLinked=!1,M):T(f,o)||D(f,o)?(y(f),ve(f,o)):b(f,o)?(y(f),E(o,12,Ke(f))):j(f,o)?(y(f),U==="{"?Se(f,o)||M:E(o,11,Ye(f))):(v===8&&O(w.INVALID_LINKED_FORMAT,r(),0),o.braceNest=0,o.inLinked=!1,Ne(f,o))}}function Ne(f,o){let v={type:14};if(o.braceNest>0)return Se(f,o)||N(o);if(o.inLinked)return ve(f,o)||N(o);switch(f.currentChar()){case"{":return Se(f,o)||N(o);case"}":return O(w.UNBALANCED_CLOSING_BRACE,r(),0),f.next(),E(o,3,"}");case"@":return ve(f,o)||N(o);default:if(G(f))return v=E(o,1,Te(f)),o.braceNest=0,o.inLinked=!1,v;const{isModulo:U,hasSpace:B}=H(f);if(U)return B?E(o,0,Oe(f)):E(o,4,fe(f));if(ue(f))return E(o,0,Oe(f));break}return v}function Xe(){const{currentType:f,offset:o,startLoc:v,endLoc:M}=l;return l.lastType=f,l.lastOffset=o,l.lastStartLoc=v,l.lastEndLoc=M,l.offset=s(),l.startLoc=r(),a.currentChar()===be?E(l,14):Ne(a,l)}return{nextToken:Xe,currentOffset:s,currentPosition:r,context:_}}const Dn="parser",ua=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ca(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function wn(e={}){const t=e.location!==!1,{onError:n}=e;function a(d,L,C,c,...m){const T=d.currentPosition();if(T.offset+=c,T.column+=c,n){const b=st(C,T),D=Bt(L,b,{domain:Dn,args:m});n(D)}}function s(d,L,C){const c={type:d,start:L,end:L};return t&&(c.loc={start:C,end:C}),c}function r(d,L,C,c){d.end=L,c&&(d.type=c),t&&d.loc&&(d.loc.end=C)}function i(d,L){const C=d.context(),c=s(3,C.offset,C.startLoc);return c.value=L,r(c,d.currentOffset(),d.currentPosition()),c}function u(d,L){const C=d.context(),{lastOffset:c,lastStartLoc:m}=C,T=s(5,c,m);return T.index=parseInt(L,10),d.nextToken(),r(T,d.currentOffset(),d.currentPosition()),T}function l(d,L){const C=d.context(),{lastOffset:c,lastStartLoc:m}=C,T=s(4,c,m);return T.key=L,d.nextToken(),r(T,d.currentOffset(),d.currentPosition()),T}function _(d,L){const C=d.context(),{lastOffset:c,lastStartLoc:m}=C,T=s(9,c,m);return T.value=L.replace(ua,ca),d.nextToken(),r(T,d.currentOffset(),d.currentPosition()),T}function p(d){const L=d.nextToken(),C=d.context(),{lastOffset:c,lastStartLoc:m}=C,T=s(8,c,m);return L.type!==12?(a(d,w.UNEXPECTED_EMPTY_LINKED_MODIFIER,C.lastStartLoc,0),T.value="",r(T,c,m),{nextConsumeToken:L,node:T}):(L.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,_e(L)),T.value=L.value||"",r(T,d.currentOffset(),d.currentPosition()),{node:T})}function O(d,L){const C=d.context(),c=s(7,C.offset,C.startLoc);return c.value=L,r(c,d.currentOffset(),d.currentPosition()),c}function E(d){const L=d.context(),C=s(6,L.offset,L.startLoc);let c=d.nextToken();if(c.type===9){const m=p(d);C.modifier=m.node,c=m.nextConsumeToken||d.nextToken()}switch(c.type!==10&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(c)),c=d.nextToken(),c.type===2&&(c=d.nextToken()),c.type){case 11:c.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(c)),C.key=O(d,c.value||"");break;case 5:c.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(c)),C.key=l(d,c.value||"");break;case 6:c.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(c)),C.key=u(d,c.value||"");break;case 7:c.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(c)),C.key=_(d,c.value||"");break;default:a(d,w.UNEXPECTED_EMPTY_LINKED_KEY,L.lastStartLoc,0);const m=d.context(),T=s(7,m.offset,m.startLoc);return T.value="",r(T,m.offset,m.startLoc),C.key=T,r(C,m.offset,m.startLoc),{nextConsumeToken:c,node:C}}return r(C,d.currentOffset(),d.currentPosition()),{node:C}}function N(d){const L=d.context(),C=L.currentType===1?d.currentOffset():L.offset,c=L.currentType===1?L.endLoc:L.startLoc,m=s(2,C,c);m.items=[];let T=null;do{const j=T||d.nextToken();switch(T=null,j.type){case 0:j.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(j)),m.items.push(i(d,j.value||""));break;case 6:j.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(j)),m.items.push(u(d,j.value||""));break;case 5:j.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(j)),m.items.push(l(d,j.value||""));break;case 7:j.value==null&&a(d,w.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,_e(j)),m.items.push(_(d,j.value||""));break;case 8:const G=E(d);m.items.push(G.node),T=G.nextConsumeToken||null;break}}while(L.currentType!==14&&L.currentType!==1);const b=L.currentType===1?L.lastOffset:d.currentOffset(),D=L.currentType===1?L.lastEndLoc:d.currentPosition();return r(m,b,D),m}function R(d,L,C,c){const m=d.context();let T=c.items.length===0;const b=s(1,L,C);b.cases=[],b.cases.push(c);do{const D=N(d);T||(T=D.items.length===0),b.cases.push(D)}while(m.currentType!==14);return T&&a(d,w.MUST_HAVE_MESSAGES_IN_PLURAL,C,0),r(b,d.currentOffset(),d.currentPosition()),b}function I(d){const L=d.context(),{offset:C,startLoc:c}=L,m=N(d);return L.currentType===14?m:R(d,C,c,m)}function y(d){const L=oa(d,ze.assign({},e)),C=L.context(),c=s(0,C.offset,C.startLoc);return t&&c.loc&&(c.loc.source=d),c.body=I(L),C.currentType!==14&&a(L,w.UNEXPECTED_LEXICAL_ANALYSIS,C.lastStartLoc,0,d[C.offset]||""),r(c,L.currentOffset(),L.currentPosition()),c}return{parse:y}}function _e(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 fa(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function tn(e,t){for(let n=0;n<e.length;n++)Gt(e[n],t)}function Gt(e,t){switch(e.type){case 1:tn(e.cases,t),t.helper("plural");break;case 2:tn(e.items,t);break;case 6:Gt(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 ma(e,t={}){const n=fa(e);n.helper("normalize"),e.body&&Gt(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function _a(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,i={source:e.loc.source,filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0},u=()=>i;function l(y,d){i.code+=y,i.map&&(d&&d.loc&&d.loc!==Pn&&I(d.loc.start,va(d)),ba(i,y))}function _(y,d=!0){const L=d?s:"";l(r?L+" ".repeat(y):L)}function p(y=!0){const d=++i.indentLevel;y&&_(d)}function O(y=!0){const d=--i.indentLevel;y&&_(d)}function E(){_(i.indentLevel)}const N=y=>`_${y}`,R=()=>i.needIndent;function I(y,d){i.map.addMapping({name:d,source:i.filename,original:{line:y.line,column:y.column-1},generated:{line:i.line,column:i.column-1}})}return n&&(i.map=new ta.SourceMapGenerator,i.map.setSourceContent(a,i.source)),{context:u,push:l,indent:p,deindent:O,newline:E,helper:N,needIndent:R}}function ga(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Fe(e,t.key),t.modifier?(e.push(", "),Fe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function da(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(Fe(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function ha(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(Fe(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function pa(e,t){t.body?Fe(e,t.body):e.push("null")}function Fe(e,t){const{helper:n}=e;switch(t.type){case 0:pa(e,t);break;case 1:ha(e,t);break;case 2:da(e,t);break;case 6:ga(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 new Error(`unhandled codegen node type: ${t.type}`)}}const Ea=(e,t={})=>{const n=ze.isString(t.mode)?t.mode:"normal",a=ze.isString(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
- `,i=t.needIndent?t.needIndent:n!=="arrow",u=e.helpers||[],l=_a(e,{mode:n,filename:a,sourceMap:s,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),u.length>0&&(l.push(`const { ${u.map(O=>`${O}: _${O}`).join(", ")} } = ctx`),l.newline()),l.push("return "),Fe(l,e),l.deindent(i),l.push("}");const{code:_,map:p}=l.context();return{ast:e,code:_,map:p?p.toJSON():void 0}};function va(e){switch(e.type){case 3:case 9:case 8:case 7:return e.value;case 5:return e.index.toString();case 4:return e.key;default:return}}function ba(e,t,n=t.length){let a=0,s=-1;for(let r=0;r<n;r++)t.charCodeAt(r)===10&&(a++,s=r);return e.offset+=n,e.line+=a,e.column=s===-1?e.column+n:n-s,e}function La(e,t={}){const n=ze.assign({},t),s=wn(n).parse(e);return ma(s,n),Ea(s,n)}se.CompileErrorCodes=w;se.ERROR_DOMAIN=Dn;se.LocationStub=Pn;se.baseCompile=La;se.createCompileError=Bt;se.createLocation=st;se.createParser=wn;se.createPosition=Fn;se.defaultOnError=na;se.errorMessages=kn;(function(e){e.exports=se})(Ln);var Un={exports:{}},xt={};Object.defineProperty(xt,"__esModule",{value:!0});const Oa={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};xt.IntlifyDevToolsHooks=Oa;(function(e){e.exports=xt})(Un);Object.defineProperty(F,"__esModule",{value:!0});var De=Ln.exports,g=it.exports,Wn=Un.exports;const Le=[];Le[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Le[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Le[2]={w:[2],i:[3,0],[0]:[3,0]};Le[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Le[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Le[5]={["'"]:[4,0],o:8,l:[5,0]};Le[6]={['"']:[4,0],o:8,l:[6,0]};const Ta=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Sa(e){return Ta.test(e)}function Na(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 Ca(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 Aa(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Sa(t)?Na(t):"*"+t}function jn(e){const t=[];let n=-1,a=0,s=0,r,i,u,l,_,p,O;const E=[];E[0]=()=>{i===void 0?i=u:i+=u},E[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},E[2]=()=>{E[0](),s++},E[3]=()=>{if(s>0)s--,a=4,E[0]();else{if(s=0,i===void 0||(i=Aa(i),i===!1))return!1;E[1]()}};function N(){const R=e[n+1];if(a===5&&R==="'"||a===6&&R==='"')return n++,u="\\"+R,E[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&N())){if(l=Ca(r),O=Le[a],_=O[l]||O.l||8,_===8||(a=_[0],_[1]!==void 0&&(p=E[_[1]],p&&(u=r,p()===!1))))return;if(a===7)return t}}const nn=new Map;function $n(e,t){return g.isObject(e)?e[t]:null}function ya(e,t){if(!g.isObject(e))return null;let n=nn.get(t);if(n||(n=jn(t),n&&nn.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const i=s[n[r]];if(i===void 0)return null;s=i,r++}return s}const Ia=e=>e,Ma=e=>"",Vn="text",Ra=e=>e.length===0?"":e.join(""),ka=g.toDisplayString;function rn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Pa(e){const t=g.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(g.isNumber(e.named.count)||g.isNumber(e.named.n))?g.isNumber(e.named.count)?e.named.count:g.isNumber(e.named.n)?e.named.n:t:t}function Fa(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Bn(e={}){const t=e.locale,n=Pa(e),a=g.isObject(e.pluralRules)&&g.isString(t)&&g.isFunction(e.pluralRules[t])?e.pluralRules[t]:rn,s=g.isObject(e.pluralRules)&&g.isString(t)&&g.isFunction(e.pluralRules[t])?rn:void 0,r=d=>d[a(n,d.length,s)],i=e.list||[],u=d=>i[d],l=e.named||{};g.isNumber(e.pluralIndex)&&Fa(n,l);const _=d=>l[d];function p(d){const L=g.isFunction(e.messages)?e.messages(d):g.isObject(e.messages)?e.messages[d]:!1;return L||(e.parent?e.parent.message(d):Ma)}const O=d=>e.modifiers?e.modifiers[d]:Ia,E=g.isPlainObject(e.processor)&&g.isFunction(e.processor.normalize)?e.processor.normalize:Ra,N=g.isPlainObject(e.processor)&&g.isFunction(e.processor.interpolate)?e.processor.interpolate:ka,R=g.isPlainObject(e.processor)&&g.isString(e.processor.type)?e.processor.type:Vn,y={list:u,named:_,plural:r,linked:(d,...L)=>{const[C,c]=L;let m="text",T="";L.length===1?g.isObject(C)?(T=C.modifier||T,m=C.type||m):g.isString(C)&&(T=C||T):L.length===2&&(g.isString(C)&&(T=C||T),g.isString(c)&&(m=c||m));let b=p(d)(y);return m==="vnode"&&g.isArray(b)&&T&&(b=b[0]),T?O(T)(b,m):b},message:p,type:R,interpolate:N,normalize:E};return y}let we=null;function Da(e){we=e}function wa(){return we}function Gn(e,t,n){we&&we.emit(Wn.IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const xn=Ua(Wn.IntlifyDevToolsHooks.FunctionTranslate);function Ua(e){return t=>we&&we.emit(e,t)}const te={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},Wa={[te.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[te.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[te.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[te.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[te.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Ie(e,...t){return g.format(Wa[e],...t)}function Hn(e,t,n){return[...new Set([n,...g.isArray(t)?t:g.isObject(t)?Object.keys(t):g.isString(t)?[t]:[n]])]}function ja(e,t,n){const a=g.isString(n)?n:Ht,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let i=[n];for(;g.isArray(i);)i=an(r,i,t);const u=g.isArray(t)||!g.isPlainObject(t)?t:t.default?t.default:null;i=g.isString(u)?[u]:u,g.isArray(i)&&an(r,i,!1),s.__localeChainCache.set(a,r)}return r}function an(e,t,n){let a=!0;for(let s=0;s<t.length&&g.isBoolean(a);s++){const r=t[s];g.isString(r)&&(a=$a(e,t[s],n))}return a}function $a(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=Va(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function Va(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(g.isArray(n)||g.isPlainObject(n))&&n[s]&&(a=n[s])}return a}const Kn="9.2.2",mt=-1,Ht="en-US",Kt="",sn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ba(){return{upper:(e,t)=>t==="text"&&g.isString(e)?e.toUpperCase():t==="vnode"&&g.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&g.isString(e)?e.toLowerCase():t==="vnode"&&g.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&g.isString(e)?sn(e):t==="vnode"&&g.isObject(e)&&"__v_isVNode"in e?sn(e.children):e}}let Yn;function Ga(e){Yn=e}let Xn;function xa(e){Xn=e}let Qn;function Ha(e){Qn=e}let Jn=null;const Ka=e=>{Jn=e},qn=()=>Jn;let Zn=null;const Ya=e=>{Zn=e},Xa=()=>Zn;let ln=0;function Qa(e={}){const t=g.isString(e.version)?e.version:Kn,n=g.isString(e.locale)?e.locale:Ht,a=g.isArray(e.fallbackLocale)||g.isPlainObject(e.fallbackLocale)||g.isString(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=g.isPlainObject(e.messages)?e.messages:{[n]:{}},r=g.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=g.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},u=g.assign({},e.modifiers||{},Ba()),l=e.pluralRules||{},_=g.isFunction(e.missing)?e.missing:null,p=g.isBoolean(e.missingWarn)||g.isRegExp(e.missingWarn)?e.missingWarn:!0,O=g.isBoolean(e.fallbackWarn)||g.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,E=!!e.fallbackFormat,N=!!e.unresolving,R=g.isFunction(e.postTranslation)?e.postTranslation:null,I=g.isPlainObject(e.processor)?e.processor:null,y=g.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,d=!!e.escapeParameter,L=g.isFunction(e.messageCompiler)?e.messageCompiler:Yn,C=g.isFunction(e.messageResolver)?e.messageResolver:Xn||$n,c=g.isFunction(e.localeFallbacker)?e.localeFallbacker:Qn||Hn,m=g.isObject(e.fallbackContext)?e.fallbackContext:void 0,T=g.isFunction(e.onWarn)?e.onWarn:g.warn,b=e,D=g.isObject(b.__datetimeFormatters)?b.__datetimeFormatters:new Map,j=g.isObject(b.__numberFormatters)?b.__numberFormatters:new Map,G=g.isObject(b.__meta)?b.__meta:{};ln++;const H={version:t,cid:ln,locale:n,fallbackLocale:a,messages:s,modifiers:u,pluralRules:l,missing:_,missingWarn:p,fallbackWarn:O,fallbackFormat:E,unresolving:N,postTranslation:R,processor:I,warnHtmlMessage:y,escapeParameter:d,messageCompiler:L,messageResolver:C,localeFallbacker:c,fallbackContext:m,onWarn:T,__meta:G};return H.datetimeFormats=r,H.numberFormats=i,H.__datetimeFormatters=D,H.__numberFormatters=j,H.__v_emitter=b.__v_emitter!=null?b.__v_emitter:void 0,Gn(H,t,G),H}function _t(e,t){return e instanceof RegExp?e.test(t):e}function zn(e,t){return e instanceof RegExp?e.test(t):e}function gt(e,t,n,a,s){const{missing:r,onWarn:i}=e;{const u=e.__v_emitter;u&&u.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const u=r(e,n,t,s);return g.isString(u)?u:t}else return zn(a,t)&&i(Ie(te.NOT_FOUND_KEY,{key:t,locale:n})),t}function Ja(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const qa=/<\/?[\w\s="/.':;#-\/]+>/,Za="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function za(e,t){(g.isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0)&&qa.test(e)&&g.warn(g.format(Za,{source:e}))}const es=e=>e;let Ot=Object.create(null);function ts(){Ot=Object.create(null)}function ns(e,t={}){{za(e,t);const a=(t.onCacheKey||es)(e),s=Ot[a];if(s)return s;let r=!1;const i=t.onError||De.defaultOnError;t.onError=_=>{r=!0,i(_)};const{code:u}=De.baseCompile(e,t),l=new Function(`return ${u}`)();return r?l:Ot[a]=l}}let er=De.CompileErrorCodes.__EXTEND_POINT__;const vt=()=>++er,ge={INVALID_ARGUMENT:er,INVALID_DATE_ARGUMENT:vt(),INVALID_ISO_DATE_ARGUMENT:vt(),__EXTEND_POINT__:vt()};function Ae(e){return De.createCompileError(e,null,{messages:rs})}const rs={[ge.INVALID_ARGUMENT]:"Invalid arguments",[ge.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ge.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},on=()=>"",ie=e=>g.isFunction(e);function as(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:i,messages:u}=e,[l,_]=rr(...t),p=g.isBoolean(_.missingWarn)?_.missingWarn:e.missingWarn,O=g.isBoolean(_.fallbackWarn)?_.fallbackWarn:e.fallbackWarn,E=g.isBoolean(_.escapeParameter)?_.escapeParameter:e.escapeParameter,N=!!_.resolvedMessage,R=g.isString(_.default)||g.isBoolean(_.default)?g.isBoolean(_.default)?r?l:()=>l:_.default:n?r?l:()=>l:"",I=n||R!=="",y=g.isString(_.locale)?_.locale:e.locale;E&&ss(_);let[d,L,C]=N?[l,y,u[y]||{}]:tr(e,l,y,i,O,p),c=d,m=l;if(!N&&!(g.isString(c)||ie(c))&&I&&(c=R,m=c),!N&&(!(g.isString(c)||ie(c))||!g.isString(L)))return s?mt:l;if(g.isString(c)&&e.messageCompiler==null)return g.warn(`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 '${l}'.`),l;let T=!1;const b=()=>{T=!0},D=ie(c)?c:nr(e,l,L,c,m,b);if(T)return c;const j=os(e,L,C,_),G=Bn(j),H=is(e,D,G),ue=a?a(H,l):H;{const re={timestamp:Date.now(),key:g.isString(l)?l:ie(c)?c.key:"",locale:L||(ie(c)?c.locale:""),format:g.isString(c)?c:ie(c)?c.source:"",message:ue};re.meta=g.assign({},e.__meta,qn()||{}),xn(re)}return ue}function ss(e){g.isArray(e.list)?e.list=e.list.map(t=>g.isString(t)?g.escapeHtml(t):t):g.isObject(e.named)&&Object.keys(e.named).forEach(t=>{g.isString(e.named[t])&&(e.named[t]=g.escapeHtml(e.named[t]))})}function tr(e,t,n,a,s,r){const{messages:i,onWarn:u,messageResolver:l,localeFallbacker:_}=e,p=_(e,a,n);let O={},E,N=null,R=n,I=null;const y="translate";for(let d=0;d<p.length;d++){if(E=I=p[d],n!==E&&_t(s,t)&&u(Ie(te.FALLBACK_TO_TRANSLATE,{key:t,target:E})),n!==E){const T=e.__v_emitter;T&&T.emit("fallback",{type:y,key:t,from:R,to:I,groupId:`${y}:${t}`})}O=i[E]||{};let L=null,C,c;if(g.inBrowser&&(L=window.performance.now(),C="intlify-message-resolve-start",c="intlify-message-resolve-end",g.mark&&g.mark(C)),(N=l(O,t))===null&&(N=O[t]),g.inBrowser){const T=window.performance.now(),b=e.__v_emitter;b&&L&&N&&b.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:T-L,groupId:`${y}:${t}`}),C&&c&&g.mark&&g.measure&&(g.mark(c),g.measure("intlify message resolve",C,c))}if(g.isString(N)||g.isFunction(N))break;const m=gt(e,t,E,r,y);m!==t&&(N=m),R=I}return[N,E,O]}function nr(e,t,n,a,s,r){const{messageCompiler:i,warnHtmlMessage:u}=e;if(ie(a)){const E=a;return E.locale=E.locale||n,E.key=E.key||t,E}if(i==null){const E=()=>a;return E.locale=n,E.key=t,E}let l=null,_,p;g.inBrowser&&(l=window.performance.now(),_="intlify-message-compilation-start",p="intlify-message-compilation-end",g.mark&&g.mark(_));const O=i(a,ls(e,n,s,a,u,r));if(g.inBrowser){const E=window.performance.now(),N=e.__v_emitter;N&&l&&N.emit("message-compilation",{type:"message-compilation",message:a,time:E-l,groupId:`translate:${t}`}),_&&p&&g.mark&&g.measure&&(g.mark(p),g.measure("intlify message compilation",_,p))}return O.locale=n,O.key=t,O.source=a,O}function is(e,t,n){let a=null,s,r;g.inBrowser&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",g.mark&&g.mark(s));const i=t(n);if(g.inBrowser){const u=window.performance.now(),l=e.__v_emitter;l&&a&&l.emit("message-evaluation",{type:"message-evaluation",value:i,time:u-a,groupId:`translate:${t.key}`}),s&&r&&g.mark&&g.measure&&(g.mark(r),g.measure("intlify message evaluation",s,r))}return i}function rr(...e){const[t,n,a]=e,s={};if(!g.isString(t)&&!g.isNumber(t)&&!ie(t))throw Ae(ge.INVALID_ARGUMENT);const r=g.isNumber(t)?String(t):(ie(t),t);return g.isNumber(n)?s.plural=n:g.isString(n)?s.default=n:g.isPlainObject(n)&&!g.isEmptyObject(n)?s.named=n:g.isArray(n)&&(s.list=n),g.isNumber(a)?s.plural=a:g.isString(a)?s.default=a:g.isPlainObject(a)&&g.assign(s,a),[r,s]}function ls(e,t,n,a,s,r){return{warnHtmlMessage:s,onError:i=>{r&&r(i);{const u=`Message compilation error: ${i.message}`,l=i.location&&g.generateCodeFrame(a,i.location.start.offset,i.location.end.offset),_=e.__v_emitter;_&&_.emit("compile-error",{message:a,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(l?`${u}
- ${l}`:u)}},onCacheKey:i=>g.generateFormatCacheKey(t,n,i)}}function os(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:i,fallbackLocale:u,fallbackWarn:l,missingWarn:_,fallbackContext:p}=e,E={locale:t,modifiers:s,pluralRules:r,messages:N=>{let R=i(n,N);if(R==null&&p){const[,,I]=tr(p,N,t,u,l,_);R=i(I,N)}if(g.isString(R)){let I=!1;const d=nr(e,N,t,R,N,()=>{I=!0});return I?on:d}else return ie(R)?R:on}};return e.processor&&(E.processor=e.processor),a.list&&(E.list=a.list),a.named&&(E.named=a.named),g.isNumber(a.plural)&&(E.pluralIndex=a.plural),E}const un=typeof Intl<"u",ar={dateTimeFormat:un&&typeof Intl.DateTimeFormat<"u",numberFormat:un&&typeof Intl.NumberFormat<"u"};function us(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:u}=e;if(!ar.dateTimeFormat)return r(Ie(te.CANNOT_FORMAT_DATE)),Kt;const[l,_,p,O]=ir(...t),E=g.isBoolean(p.missingWarn)?p.missingWarn:e.missingWarn,N=g.isBoolean(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,R=!!p.part,I=g.isString(p.locale)?p.locale:e.locale,y=i(e,s,I);if(!g.isString(l)||l==="")return new Intl.DateTimeFormat(I,O).format(_);let d={},L,C=null,c=I,m=null;const T="datetime format";for(let j=0;j<y.length;j++){if(L=m=y[j],I!==L&&_t(N,l)&&r(Ie(te.FALLBACK_TO_DATE_FORMAT,{key:l,target:L})),I!==L){const G=e.__v_emitter;G&&G.emit("fallback",{type:T,key:l,from:c,to:m,groupId:`${T}:${l}`})}if(d=n[L]||{},C=d[l],g.isPlainObject(C))break;gt(e,l,L,E,T),c=m}if(!g.isPlainObject(C)||!g.isString(L))return a?mt:l;let b=`${L}__${l}`;g.isEmptyObject(O)||(b=`${b}__${JSON.stringify(O)}`);let D=u.get(b);return D||(D=new Intl.DateTimeFormat(L,g.assign({},C,O)),u.set(b,D)),R?D.formatToParts(_):D.format(_)}const sr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ir(...e){const[t,n,a,s]=e,r={};let i={},u;if(g.isString(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ae(ge.INVALID_ISO_DATE_ARGUMENT);const _=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();u=new Date(_);try{u.toISOString()}catch{throw Ae(ge.INVALID_ISO_DATE_ARGUMENT)}}else if(g.isDate(t)){if(isNaN(t.getTime()))throw Ae(ge.INVALID_DATE_ARGUMENT);u=t}else if(g.isNumber(t))u=t;else throw Ae(ge.INVALID_ARGUMENT);return g.isString(n)?r.key=n:g.isPlainObject(n)&&Object.keys(n).forEach(l=>{sr.includes(l)?i[l]=n[l]:r[l]=n[l]}),g.isString(a)?r.locale=a:g.isPlainObject(a)&&(i=a),g.isPlainObject(s)&&(i=s),[r.key||"",u,r,i]}function cs(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;!a.__datetimeFormatters.has(r)||a.__datetimeFormatters.delete(r)}}function fs(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:u}=e;if(!ar.numberFormat)return r(Ie(te.CANNOT_FORMAT_NUMBER)),Kt;const[l,_,p,O]=or(...t),E=g.isBoolean(p.missingWarn)?p.missingWarn:e.missingWarn,N=g.isBoolean(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,R=!!p.part,I=g.isString(p.locale)?p.locale:e.locale,y=i(e,s,I);if(!g.isString(l)||l==="")return new Intl.NumberFormat(I,O).format(_);let d={},L,C=null,c=I,m=null;const T="number format";for(let j=0;j<y.length;j++){if(L=m=y[j],I!==L&&_t(N,l)&&r(Ie(te.FALLBACK_TO_NUMBER_FORMAT,{key:l,target:L})),I!==L){const G=e.__v_emitter;G&&G.emit("fallback",{type:T,key:l,from:c,to:m,groupId:`${T}:${l}`})}if(d=n[L]||{},C=d[l],g.isPlainObject(C))break;gt(e,l,L,E,T),c=m}if(!g.isPlainObject(C)||!g.isString(L))return a?mt:l;let b=`${L}__${l}`;g.isEmptyObject(O)||(b=`${b}__${JSON.stringify(O)}`);let D=u.get(b);return D||(D=new Intl.NumberFormat(L,g.assign({},C,O)),u.set(b,D)),R?D.formatToParts(_):D.format(_)}const lr=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function or(...e){const[t,n,a,s]=e,r={};let i={};if(!g.isNumber(t))throw Ae(ge.INVALID_ARGUMENT);const u=t;return g.isString(n)?r.key=n:g.isPlainObject(n)&&Object.keys(n).forEach(l=>{lr.includes(l)?i[l]=n[l]:r[l]=n[l]}),g.isString(a)?r.locale=a:g.isPlainObject(a)&&(i=a),g.isPlainObject(s)&&(i=s),[r.key||"",u,r,i]}function ms(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;!a.__numberFormatters.has(r)||a.__numberFormatters.delete(r)}}F.CompileErrorCodes=De.CompileErrorCodes;F.createCompileError=De.createCompileError;F.CoreErrorCodes=ge;F.CoreWarnCodes=te;F.DATETIME_FORMAT_OPTIONS_KEYS=sr;F.DEFAULT_LOCALE=Ht;F.DEFAULT_MESSAGE_DATA_TYPE=Vn;F.MISSING_RESOLVE_VALUE=Kt;F.NOT_REOSLVED=mt;F.NUMBER_FORMAT_OPTIONS_KEYS=lr;F.VERSION=Kn;F.clearCompileCache=ts;F.clearDateTimeFormat=cs;F.clearNumberFormat=ms;F.compileToFunction=ns;F.createCoreContext=Qa;F.createCoreError=Ae;F.createMessageContext=Bn;F.datetime=us;F.fallbackWithLocaleChain=ja;F.fallbackWithSimple=Hn;F.getAdditionalMeta=qn;F.getDevToolsHook=wa;F.getFallbackContext=Xa;F.getWarnMessage=Ie;F.handleMissing=gt;F.initI18nDevTools=Gn;F.isMessageFunction=ie;F.isTranslateFallbackWarn=_t;F.isTranslateMissingWarn=zn;F.number=fs;F.parse=jn;F.parseDateTimeArgs=ir;F.parseNumberArgs=or;F.parseTranslateArgs=rr;F.registerLocaleFallbacker=Ha;F.registerMessageCompiler=Ga;F.registerMessageResolver=xa;F.resolveValue=ya;F.resolveWithKeyValue=$n;F.setAdditionalMeta=Ka;F.setDevToolsHook=Da;F.setFallbackContext=Ya;F.translate=as;F.translateDevTools=xn;F.updateFallbackLocale=Ja;(function(e){e.exports=F})(bn);const _s=Or(Tr);Object.defineProperty(de,"__esModule",{value:!0});var h=it.exports,P=bn.exports,W=_s;const ur="9.2.2";let cr=P.CoreWarnCodes.__EXTEND_POINT__;const ke=()=>++cr,Q={FALLBACK_TO_ROOT:cr,NOT_SUPPORTED_PRESERVE:ke(),NOT_SUPPORTED_FORMATTER:ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:ke(),NOT_FOUND_PARENT_SCOPE:ke()},gs={[Q.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Q.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Q.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Q.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Q.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Q.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Q.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function le(e,...t){return h.format(gs[e],...t)}let fr=P.CompileErrorCodes.__EXTEND_POINT__;const ee=()=>++fr,$={UNEXPECTED_RETURN_TYPE:fr,INVALID_ARGUMENT:ee(),MUST_BE_CALL_SETUP_TOP:ee(),NOT_INSLALLED:ee(),NOT_AVAILABLE_IN_LEGACY_MODE:ee(),REQUIRED_VALUE:ee(),INVALID_VALUE:ee(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ee(),NOT_INSLALLED_WITH_PROVIDE:ee(),UNEXPECTED_ERROR:ee(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ee(),BRIDGE_SUPPORT_VUE_2_ONLY:ee(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ee(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ee(),__EXTEND_POINT__:ee()};function X(e,...t){return P.createCompileError(e,null,{messages:ds,args:t})}const ds={[$.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[$.INVALID_ARGUMENT]:"Invalid argument",[$.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[$.NOT_INSLALLED]:"Need to install with `app.use` function",[$.UNEXPECTED_ERROR]:"Unexpected error",[$.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[$.REQUIRED_VALUE]:"Required in value: {0}",[$.INVALID_VALUE]:"Invalid value",[$.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[$.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[$.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[$.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[$.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",[$.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Tt=h.makeSymbol("__transrateVNode"),St=h.makeSymbol("__datetimeParts"),Nt=h.makeSymbol("__numberParts"),Ct=h.makeSymbol("__enableEmitter"),At=h.makeSymbol("__disableEmitter"),mr=h.makeSymbol("__setPluralRules");h.makeSymbol("__intlifyMeta");const _r=h.makeSymbol("__injectWithOption"),hs="__VUE_I18N_BRIDGE__";function yt(e){if(!h.isObject(e))return e;for(const t in e)if(!!h.hasOwn(e,t))if(!t.includes("."))h.isObject(e[t])&&yt(e[t]);else{const n=t.split("."),a=n.length-1;let s=e;for(let r=0;r<a;r++)n[r]in s||(s[n[r]]={}),s=s[n[r]];s[n[a]]=e[t],delete e[t],h.isObject(s[n[a]])&&yt(s[n[a]])}return e}function dt(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,i=h.isPlainObject(n)?n:h.isArray(a)?{}:{[e]:{}};if(h.isArray(a)&&a.forEach(u=>{if("locale"in u&&"resource"in u){const{locale:l,resource:_}=u;l?(i[l]=i[l]||{},qe(_,i[l])):qe(_,i)}else h.isString(u)&&qe(JSON.parse(u),i)}),s==null&&r)for(const u in i)h.hasOwn(i,u)&&yt(i[u]);return i}const tt=e=>!h.isObject(e)||h.isArray(e);function qe(e,t){if(tt(e)||tt(t))throw X($.INVALID_VALUE);for(const n in e)h.hasOwn(e,n)&&(tt(e[n])||tt(t[n])?t[n]=e[n]:qe(e[n],t[n]))}function gr(e){return e.type}function dr(e,t,n){let a=h.isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=dt(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(h.isObject(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(h.isObject(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function cn(e){return W.createVNode(W.Text,null,e,0)}const fn="__INTLIFY_META__";let mn=0;function _n(e){return(t,n,a,s)=>e(n,a,W.getCurrentInstance()||void 0,s)}const ps=()=>{const e=W.getCurrentInstance();let t=null;return e&&(t=gr(e)[fn])?{[fn]:t}:null};function Yt(e={},t){const{__root:n}=e,a=n===void 0;let s=h.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const r=W.ref(n&&s?n.locale.value:h.isString(e.locale)?e.locale:P.DEFAULT_LOCALE),i=W.ref(n&&s?n.fallbackLocale.value:h.isString(e.fallbackLocale)||h.isArray(e.fallbackLocale)||h.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r.value),u=W.ref(dt(r.value,e)),l=W.ref(h.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r.value]:{}}),_=W.ref(h.isPlainObject(e.numberFormats)?e.numberFormats:{[r.value]:{}});let p=n?n.missingWarn:h.isBoolean(e.missingWarn)||h.isRegExp(e.missingWarn)?e.missingWarn:!0,O=n?n.fallbackWarn:h.isBoolean(e.fallbackWarn)||h.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,E=n?n.fallbackRoot:h.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,N=!!e.fallbackFormat,R=h.isFunction(e.missing)?e.missing:null,I=h.isFunction(e.missing)?_n(e.missing):null,y=h.isFunction(e.postTranslation)?e.postTranslation:null,d=n?n.warnHtmlMessage:h.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const C=n?n.modifiers:h.isPlainObject(e.modifiers)?e.modifiers:{};let c=e.pluralRules||n&&n.pluralRules,m;m=(()=>{a&&P.setFallbackContext(null);const S={version:ur,locale:r.value,fallbackLocale:i.value,messages:u.value,modifiers:C,pluralRules:c,missing:I===null?void 0:I,missingWarn:p,fallbackWarn:O,fallbackFormat:N,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:d,escapeParameter:L,messageResolver:e.messageResolver,__meta:{framework:"vue"}};S.datetimeFormats=l.value,S.numberFormats=_.value,S.__datetimeFormatters=h.isPlainObject(m)?m.__datetimeFormatters:void 0,S.__numberFormatters=h.isPlainObject(m)?m.__numberFormatters:void 0,S.__v_emitter=h.isPlainObject(m)?m.__v_emitter:void 0;const A=P.createCoreContext(S);return a&&P.setFallbackContext(A),A})(),P.updateFallbackLocale(m,r.value,i.value);function b(){return[r.value,i.value,u.value,l.value,_.value]}const D=W.computed({get:()=>r.value,set:S=>{r.value=S,m.locale=r.value}}),j=W.computed({get:()=>i.value,set:S=>{i.value=S,m.fallbackLocale=i.value,P.updateFallbackLocale(m,r.value,S)}}),G=W.computed(()=>u.value),H=W.computed(()=>l.value),ue=W.computed(()=>_.value);function re(){return h.isFunction(y)?y:null}function Me(S){y=S,m.postTranslation=S}function je(){return R}function ce(S){S!==null&&(I=_n(S)),R=S,m.missing=I}function Re(S,A){return S!=="translate"||!A.resolvedMessage}const fe=(S,A,z,q,pt,et)=>{b();let Qe;try{P.setAdditionalMeta(ps()),a||(m.fallbackContext=n?P.getFallbackContext():void 0),Qe=S(m)}finally{P.setAdditionalMeta(null),a||(m.fallbackContext=void 0)}if(h.isNumber(Qe)&&Qe===P.NOT_REOSLVED){const[Ce,Lr]=A();if(n&&h.isString(Ce)&&Re(z,Lr)){E&&(P.isTranslateFallbackWarn(O,Ce)||P.isTranslateMissingWarn(p,Ce))&&h.warn(le(Q.FALLBACK_TO_ROOT,{key:Ce,type:z}));{const{__v_emitter:Qt}=m;Qt&&E&&Qt.emit("fallback",{type:z,key:Ce,to:"global",groupId:`${z}:${Ce}`})}}return n&&E?q(n):pt(Ce)}else{if(et(Qe))return Qe;throw X($.UNEXPECTED_RETURN_TYPE)}};function Oe(...S){return fe(A=>Reflect.apply(P.translate,null,[A,...S]),()=>P.parseTranslateArgs(...S),"translate",A=>Reflect.apply(A.t,A,[...S]),A=>A,A=>h.isString(A))}function $e(...S){const[A,z,q]=S;if(q&&!h.isObject(q))throw X($.INVALID_ARGUMENT);return Oe(A,z,h.assign({resolvedMessage:!0},q||{}))}function Ve(...S){return fe(A=>Reflect.apply(P.datetime,null,[A,...S]),()=>P.parseDateTimeArgs(...S),"datetime format",A=>Reflect.apply(A.d,A,[...S]),()=>P.MISSING_RESOLVE_VALUE,A=>h.isString(A))}function Be(...S){return fe(A=>Reflect.apply(P.number,null,[A,...S]),()=>P.parseNumberArgs(...S),"number format",A=>Reflect.apply(A.n,A,[...S]),()=>P.MISSING_RESOLVE_VALUE,A=>h.isString(A))}function Ge(S){return S.map(A=>h.isString(A)||h.isNumber(A)||h.isBoolean(A)?cn(String(A)):A)}const He={normalize:Ge,interpolate:S=>S,type:"vnode"};function Ke(...S){return fe(A=>{let z;const q=A;try{q.processor=He,z=Reflect.apply(P.translate,null,[q,...S])}finally{q.processor=null}return z},()=>P.parseTranslateArgs(...S),"translate",A=>A[Tt](...S),A=>[cn(A)],A=>h.isArray(A))}function Ye(...S){return fe(A=>Reflect.apply(P.number,null,[A,...S]),()=>P.parseNumberArgs(...S),"number format",A=>A[Nt](...S),()=>[],A=>h.isString(A)||h.isArray(A))}function Te(...S){return fe(A=>Reflect.apply(P.datetime,null,[A,...S]),()=>P.parseDateTimeArgs(...S),"datetime format",A=>A[St](...S),()=>[],A=>h.isString(A)||h.isArray(A))}function Se(S){c=S,m.pluralRules=c}function ve(S,A){const z=h.isString(A)?A:r.value,q=f(z);return m.messageResolver(q,S)!==null}function Ne(S){let A=null;const z=P.fallbackWithLocaleChain(m,i.value,r.value);for(let q=0;q<z.length;q++){const pt=u.value[z[q]]||{},et=m.messageResolver(pt,S);if(et!=null){A=et;break}}return A}function Xe(S){const A=Ne(S);return A??(n?n.tm(S)||{}:{})}function f(S){return u.value[S]||{}}function o(S,A){u.value[S]=A,m.messages=u.value}function v(S,A){u.value[S]=u.value[S]||{},qe(A,u.value[S]),m.messages=u.value}function M(S){return l.value[S]||{}}function U(S,A){l.value[S]=A,m.datetimeFormats=l.value,P.clearDateTimeFormat(m,S,A)}function B(S,A){l.value[S]=h.assign(l.value[S]||{},A),m.datetimeFormats=l.value,P.clearDateTimeFormat(m,S,A)}function me(S){return _.value[S]||{}}function he(S,A){_.value[S]=A,m.numberFormats=_.value,P.clearNumberFormat(m,S,A)}function br(S,A){_.value[S]=h.assign(_.value[S]||{},A),m.numberFormats=_.value,P.clearNumberFormat(m,S,A)}mn++,n&&h.inBrowser&&(W.watch(n.locale,S=>{s&&(r.value=S,m.locale=S,P.updateFallbackLocale(m,r.value,i.value))}),W.watch(n.fallbackLocale,S=>{s&&(i.value=S,m.fallbackLocale=S,P.updateFallbackLocale(m,r.value,i.value))}));const K={id:mn,locale:D,fallbackLocale:j,get inheritLocale(){return s},set inheritLocale(S){s=S,S&&n&&(r.value=n.locale.value,i.value=n.fallbackLocale.value,P.updateFallbackLocale(m,r.value,i.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:G,get modifiers(){return C},get pluralRules(){return c||{}},get isGlobal(){return a},get missingWarn(){return p},set missingWarn(S){p=S,m.missingWarn=p},get fallbackWarn(){return O},set fallbackWarn(S){O=S,m.fallbackWarn=O},get fallbackRoot(){return E},set fallbackRoot(S){E=S},get fallbackFormat(){return N},set fallbackFormat(S){N=S,m.fallbackFormat=N},get warnHtmlMessage(){return d},set warnHtmlMessage(S){d=S,m.warnHtmlMessage=S},get escapeParameter(){return L},set escapeParameter(S){L=S,m.escapeParameter=S},t:Oe,getLocaleMessage:f,setLocaleMessage:o,mergeLocaleMessage:v,getPostTranslationHandler:re,setPostTranslationHandler:Me,getMissingHandler:je,setMissingHandler:ce,[mr]:Se};return K.datetimeFormats=H,K.numberFormats=ue,K.rt=$e,K.te=ve,K.tm=Xe,K.d=Ve,K.n=Be,K.getDateTimeFormat=M,K.setDateTimeFormat=U,K.mergeDateTimeFormat=B,K.getNumberFormat=me,K.setNumberFormat=he,K.mergeNumberFormat=br,K[_r]=e.__injectWithOption,K[Tt]=Ke,K[St]=Te,K[Nt]=Ye,K[Ct]=S=>{m.__v_emitter=S},K[At]=()=>{m.__v_emitter=void 0},K}function Es(e){const t=h.isString(e.locale)?e.locale:P.DEFAULT_LOCALE,n=h.isString(e.fallbackLocale)||h.isArray(e.fallbackLocale)||h.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=h.isFunction(e.missing)?e.missing:void 0,s=h.isBoolean(e.silentTranslationWarn)||h.isRegExp(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=h.isBoolean(e.silentFallbackWarn)||h.isRegExp(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=h.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,u=!!e.formatFallbackMessages,l=h.isPlainObject(e.modifiers)?e.modifiers:{},_=e.pluralizationRules,p=h.isFunction(e.postTranslation)?e.postTranslation:void 0,O=h.isString(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,E=!!e.escapeParameterHtml,N=h.isBoolean(e.sync)?e.sync:!0;e.formatter&&h.warn(le(Q.NOT_SUPPORTED_FORMATTER)),e.preserveDirectiveContent&&h.warn(le(Q.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let R=e.messages;if(h.isPlainObject(e.sharedMessages)){const m=e.sharedMessages;R=Object.keys(m).reduce((b,D)=>{const j=b[D]||(b[D]={});return h.assign(j,m[D]),b},R||{})}const{__i18n:I,__root:y,__injectWithOption:d}=e,L=e.datetimeFormats,C=e.numberFormats,c=e.flatJson;return{locale:t,fallbackLocale:n,messages:R,flatJson:c,datetimeFormats:L,numberFormats:C,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:i,fallbackFormat:u,modifiers:l,pluralRules:_,postTranslation:p,warnHtmlMessage:O,escapeParameter:E,messageResolver:e.messageResolver,inheritLocale:N,__i18n:I,__root:y,__injectWithOption:d}}function It(e={},t){{const n=Yt(Es(e)),a={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 h.warn(le(Q.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){h.warn(le(Q.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return h.isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=h.isBoolean(s)?!s:s},get silentFallbackWarn(){return h.isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=h.isBoolean(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 h.warn(le(Q.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){h.warn(le(Q.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[r,i,u]=s,l={};let _=null,p=null;if(!h.isString(r))throw X($.INVALID_ARGUMENT);const O=r;return h.isString(i)?l.locale=i:h.isArray(i)?_=i:h.isPlainObject(i)&&(p=i),h.isArray(u)?_=u:h.isPlainObject(u)&&(p=u),Reflect.apply(n.t,n,[O,_||p||{},l])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[r,i,u]=s,l={plural:1};let _=null,p=null;if(!h.isString(r))throw X($.INVALID_ARGUMENT);const O=r;return h.isString(i)?l.locale=i:h.isNumber(i)?l.plural=i:h.isArray(i)?_=i:h.isPlainObject(i)&&(p=i),h.isString(u)?l.locale=u:h.isArray(u)?_=u:h.isPlainObject(u)&&(p=u),Reflect.apply(n.t,n,[O,_||p||{},l])},te(s,r){return n.te(s,r)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,r){n.setLocaleMessage(s,r)},mergeLocaleMessage(s,r){n.mergeLocaleMessage(s,r)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,r){n.setDateTimeFormat(s,r)},mergeDateTimeFormat(s,r){n.mergeDateTimeFormat(s,r)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,r){n.setNumberFormat(s,r)},mergeNumberFormat(s,r){n.mergeNumberFormat(s,r)},getChoiceIndex(s,r){return h.warn(le(Q.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(s){const{componentInstanceCreatedListener:r}=e;r&&r(s,a)}};return a.__enableEmitter=s=>{const r=n;r[Ct]&&r[Ct](s)},a.__disableEmitter=()=>{const s=n;s[At]&&s[At]()},a}}const Xt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function vs({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>a=[...a,...h.isArray(s.children)?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function hr(e){return W.Fragment}const nt={name:"i18n-t",props:h.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>h.isNumber(e)||!isNaN(e)}},Xt),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||ht({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(O=>O!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=h.isString(e.plural)?+e.plural:e.plural);const u=vs(t,r),l=s[Tt](e.keypath,u,i),_=h.assign({},a),p=h.isString(e.tag)||h.isObject(e.tag)?e.tag:hr();return W.h(p,_,l)}}};function bs(e){return h.isArray(e)&&!h.isString(e[0])}function pr(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const i={part:!0};let u={};e.locale&&(i.locale=e.locale),h.isString(e.format)?i.key=e.format:h.isObject(e.format)&&(h.isString(e.format.key)&&(i.key=e.format.key),u=Object.keys(e.format).reduce((E,N)=>n.includes(N)?h.assign({},E,{[N]:e.format[N]}):E,{}));const l=a(e.value,i,u);let _=[i.key];h.isArray(l)?_=l.map((E,N)=>{const R=s[E.type],I=R?R({[E.type]:E.value,index:N,parts:l}):[E.value];return bs(I)&&(I[0].key=`${E.type}-${N}`),I}):h.isString(l)&&(_=[l]);const p=h.assign({},r),O=h.isString(e.tag)||h.isObject(e.tag)?e.tag:hr();return W.h(O,p,_)}}const Mt={name:"i18n-n",props:h.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},Xt),setup(e,t){const n=e.i18n||ht({useScope:"parent",__useComponent:!0});return pr(e,t,P.NUMBER_FORMAT_OPTIONS_KEYS,(...a)=>n[Nt](...a))}},Rt={name:"i18n-d",props:h.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xt),setup(e,t){const n=e.i18n||ht({useScope:"parent",__useComponent:!0});return pr(e,t,P.DATETIME_FORMAT_OPTIONS_KEYS,(...a)=>n[St](...a))}};function Ls(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Er(e){const t=i=>{const{instance:u,modifiers:l,value:_}=i;if(!u||!u.$)throw X($.UNEXPECTED_ERROR);const p=Ls(e,u.$);l.preserve&&h.warn(le(Q.NOT_SUPPORTED_PRESERVE));const O=gn(_);return[Reflect.apply(p.t,p,[...dn(O)]),p]};return{created:(i,u)=>{const[l,_]=t(u);h.inBrowser&&e.global===_&&(i.__i18nWatcher=W.watch(_.locale,()=>{u.instance&&u.instance.$forceUpdate()})),i.__composer=_,i.textContent=l},unmounted:i=>{h.inBrowser&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:u})=>{if(i.__composer){const l=i.__composer,_=gn(u);i.textContent=Reflect.apply(l.t,l,[...dn(_)])}},getSSRProps:i=>{const[u]=t(i);return{textContent:u}}}}function gn(e){if(h.isString(e))return{path:e};if(h.isPlainObject(e)){if(!("path"in e))throw X($.REQUIRED_VALUE,"path");return e}else throw X($.INVALID_VALUE)}function dn(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,i={},u=a||{};return h.isString(n)&&(i.locale=n),h.isNumber(s)&&(i.plural=s),h.isNumber(r)&&(i.plural=r),[t,u,i]}function Os(e,t,...n){const a=h.isPlainObject(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=h.isBoolean(a.globalInstall)?a.globalInstall:!0;r&&s&&h.warn(le(Q.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:nt.name})),r&&(e.component(s?"i18n":nt.name,nt),e.component(Mt.name,Mt),e.component(Rt.name,Rt)),e.directive("t",Er(t))}function Ts(e,t,n){return{beforeCreate(){const a=W.getCurrentInstance();if(!a)throw X($.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root?this.$i18n=hn(e,r):(r.__injectWithOption=!0,this.$i18n=It(r))}else s.__i18n?this===this.$root?this.$i18n=hn(e,s):this.$i18n=It({__i18n:s.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;s.__i18nGlobal&&dr(t,s,s),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(a,this.$i18n),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r)},mounted(){},unmounted(){const a=W.getCurrentInstance();if(!a)throw X($.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(a),delete this.$i18n}}}function hn(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[mr](t.pluralizationRules||e.pluralizationRules);const n=dt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const vr=h.makeSymbol("global-vue-i18n");function Ss(e={},t){const n=h.isBoolean(e.legacy)?e.legacy:!0,a=h.isBoolean(e.globalInjection)?e.globalInjection:!0,s=n?!!e.allowComposition:!0,r=new Map,[i,u]=Cs(e,n),l=h.makeSymbol("vue-i18n");function _(E){return r.get(E)||null}function p(E,N){r.set(E,N)}function O(E){r.delete(E)}{const E={get mode(){return n?"legacy":"composition"},get allowComposition(){return s},async install(N,...R){N.__VUE_I18N_SYMBOL__=l,N.provide(N.__VUE_I18N_SYMBOL__,E),!n&&a&&Ds(N,E.global),Os(N,E,...R),n&&N.mixin(Ts(u,u.__composer,E));const I=N.unmount;N.unmount=()=>{E.dispose(),I()}},get global(){return u},dispose(){i.stop()},__instances:r,__getInstance:_,__setInstance:p,__deleteInstance:O};return E}}function ht(e={}){const t=W.getCurrentInstance();if(t==null)throw X($.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw X($.NOT_INSLALLED);const n=As(t),a=Is(n),s=gr(t),r=ys(e,s);if(n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw X($.NOT_AVAILABLE_IN_LEGACY_MODE);return ks(t,r,a,e)}if(r==="global")return dr(a,e,s),a;if(r==="parent"){let l=Ms(n,t,e.__useComponent);return l==null&&(h.warn(le(Q.NOT_FOUND_PARENT_SCOPE)),l=a),l}const i=n;let u=i.__getInstance(t);if(u==null){const l=h.assign({},e);"__i18n"in s&&(l.__i18n=s.__i18n),a&&(l.__root=a),u=Yt(l),Rs(i,t),i.__setInstance(t,u)}return u}const Ns=e=>{if(!(hs in e))throw X($.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};function Cs(e,t,n){const a=W.effectScope();{const s=t?a.run(()=>It(e)):a.run(()=>Yt(e));if(s==null)throw X($.UNEXPECTED_ERROR);return[a,s]}}function As(e){{const t=W.inject(e.isCE?vr:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw X(e.isCE?$.NOT_INSLALLED_WITH_PROVIDE:$.UNEXPECTED_ERROR);return t}}function ys(e,t){return h.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Is(e){return e.mode==="composition"?e.global:e.global.__composer}function Ms(e,t,n=!1){let a=null;const s=t.root;let r=t.parent;for(;r!=null;){const i=e;if(e.mode==="composition")a=i.__getInstance(r);else{const u=i.__getInstance(r);u!=null&&(a=u.__composer,n&&a&&!a[_r]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function Rs(e,t,n){W.onMounted(()=>{},t),W.onUnmounted(()=>{e.__deleteInstance(t)},t)}function ks(e,t,n,a={}){const s=t==="local",r=W.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw X($.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=h.isBoolean(a.inheritLocale)?a.inheritLocale:!0,u=W.ref(s&&i?n.locale.value:h.isString(a.locale)?a.locale:P.DEFAULT_LOCALE),l=W.ref(s&&i?n.fallbackLocale.value:h.isString(a.fallbackLocale)||h.isArray(a.fallbackLocale)||h.isPlainObject(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:u.value),_=W.ref(dt(u.value,a)),p=W.ref(h.isPlainObject(a.datetimeFormats)?a.datetimeFormats:{[u.value]:{}}),O=W.ref(h.isPlainObject(a.numberFormats)?a.numberFormats:{[u.value]:{}}),E=s?n.missingWarn:h.isBoolean(a.missingWarn)||h.isRegExp(a.missingWarn)?a.missingWarn:!0,N=s?n.fallbackWarn:h.isBoolean(a.fallbackWarn)||h.isRegExp(a.fallbackWarn)?a.fallbackWarn:!0,R=s?n.fallbackRoot:h.isBoolean(a.fallbackRoot)?a.fallbackRoot:!0,I=!!a.fallbackFormat,y=h.isFunction(a.missing)?a.missing:null,d=h.isFunction(a.postTranslation)?a.postTranslation:null,L=s?n.warnHtmlMessage:h.isBoolean(a.warnHtmlMessage)?a.warnHtmlMessage:!0,C=!!a.escapeParameter,c=s?n.modifiers:h.isPlainObject(a.modifiers)?a.modifiers:{},m=a.pluralRules||s&&n.pluralRules;function T(){return[u.value,l.value,_.value,p.value,O.value]}const b=W.computed({get:()=>r.value?r.value.locale.value:u.value,set:o=>{r.value&&(r.value.locale.value=o),u.value=o}}),D=W.computed({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:o=>{r.value&&(r.value.fallbackLocale.value=o),l.value=o}}),j=W.computed(()=>r.value?r.value.messages.value:_.value),G=W.computed(()=>p.value),H=W.computed(()=>O.value);function ue(){return r.value?r.value.getPostTranslationHandler():d}function re(o){r.value&&r.value.setPostTranslationHandler(o)}function Me(){return r.value?r.value.getMissingHandler():y}function je(o){r.value&&r.value.setMissingHandler(o)}function ce(o){return T(),o()}function Re(...o){return r.value?ce(()=>Reflect.apply(r.value.t,null,[...o])):ce(()=>"")}function fe(...o){return r.value?Reflect.apply(r.value.rt,null,[...o]):""}function Oe(...o){return r.value?ce(()=>Reflect.apply(r.value.d,null,[...o])):ce(()=>"")}function $e(...o){return r.value?ce(()=>Reflect.apply(r.value.n,null,[...o])):ce(()=>"")}function Ve(o){return r.value?r.value.tm(o):{}}function Be(o,v){return r.value?r.value.te(o,v):!1}function Ge(o){return r.value?r.value.getLocaleMessage(o):{}}function xe(o,v){r.value&&(r.value.setLocaleMessage(o,v),_.value[o]=v)}function He(o,v){r.value&&r.value.mergeLocaleMessage(o,v)}function Ke(o){return r.value?r.value.getDateTimeFormat(o):{}}function Ye(o,v){r.value&&(r.value.setDateTimeFormat(o,v),p.value[o]=v)}function Te(o,v){r.value&&r.value.mergeDateTimeFormat(o,v)}function Se(o){return r.value?r.value.getNumberFormat(o):{}}function ve(o,v){r.value&&(r.value.setNumberFormat(o,v),O.value[o]=v)}function Ne(o,v){r.value&&r.value.mergeNumberFormat(o,v)}const Xe={get id(){return r.value?r.value.id:-1},locale:b,fallbackLocale:D,messages:j,datetimeFormats:G,numberFormats:H,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(o){r.value&&(r.value.inheritLocale=o)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(_.value)},get modifiers(){return r.value?r.value.modifiers:c},get pluralRules(){return r.value?r.value.pluralRules:m},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:E},set missingWarn(o){r.value&&(r.value.missingWarn=o)},get fallbackWarn(){return r.value?r.value.fallbackWarn:N},set fallbackWarn(o){r.value&&(r.value.missingWarn=o)},get fallbackRoot(){return r.value?r.value.fallbackRoot:R},set fallbackRoot(o){r.value&&(r.value.fallbackRoot=o)},get fallbackFormat(){return r.value?r.value.fallbackFormat:I},set fallbackFormat(o){r.value&&(r.value.fallbackFormat=o)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:L},set warnHtmlMessage(o){r.value&&(r.value.warnHtmlMessage=o)},get escapeParameter(){return r.value?r.value.escapeParameter:C},set escapeParameter(o){r.value&&(r.value.escapeParameter=o)},t:Re,getPostTranslationHandler:ue,setPostTranslationHandler:re,getMissingHandler:Me,setMissingHandler:je,rt:fe,d:Oe,n:$e,tm:Ve,te:Be,getLocaleMessage:Ge,setLocaleMessage:xe,mergeLocaleMessage:He,getDateTimeFormat:Ke,setDateTimeFormat:Ye,mergeDateTimeFormat:Te,getNumberFormat:Se,setNumberFormat:ve,mergeNumberFormat:Ne};function f(o){o.locale.value=u.value,o.fallbackLocale.value=l.value,Object.keys(_.value).forEach(v=>{o.mergeLocaleMessage(v,_.value[v])}),Object.keys(p.value).forEach(v=>{o.mergeDateTimeFormat(v,p.value[v])}),Object.keys(O.value).forEach(v=>{o.mergeNumberFormat(v,O.value[v])}),o.escapeParameter=C,o.fallbackFormat=I,o.fallbackRoot=R,o.fallbackWarn=N,o.missingWarn=E,o.warnHtmlMessage=L}return W.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw X($.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const o=r.value=e.proxy.$i18n.__composer;t==="global"?(u.value=o.locale.value,l.value=o.fallbackLocale.value,_.value=o.messages.value,p.value=o.datetimeFormats.value,O.value=o.numberFormats.value):s&&f(o)}),Xe}const Ps=["locale","fallbackLocale","availableLocales"],Fs=["t","rt","d","n","tm"];function Ds(e,t){const n=Object.create(null);Ps.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s)throw X($.UNEXPECTED_ERROR);const r=W.isRef(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,a,r)}),e.config.globalProperties.$i18n=n,Fs.forEach(a=>{const s=Object.getOwnPropertyDescriptor(t,a);if(!s||!s.value)throw X($.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,s)})}P.registerMessageCompiler(P.compileToFunction);P.registerMessageResolver(P.resolveValue);P.registerLocaleFallbacker(P.fallbackWithLocaleChain);{const e=h.getGlobalThis();e.__INTLIFY__=!0,P.setDevToolsHook(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}de.DatetimeFormat=Rt;de.I18nInjectionKey=vr;de.NumberFormat=Mt;de.Translation=nt;de.VERSION=ur;de.castToVueI18n=Ns;var Ws=de.createI18n=Ss,js=de.useI18n=ht;de.vTDirective=Er;export{Ws as c,_s as r,js as u};
- //# sourceMappingURL=vue-i18n.cjs.825cc1d7.js.map
|