vendor: 6,942 bytes, lines 1-5
1/*! 2 * vue-i18n v8.28.2 3 * (c) 2022 kazuya kawaguchi 4 * Released under the MIT License. 5 */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueI18n=e()}(this,function(){"use strict";var t,e,n=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],a=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function r(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function i(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var o=Array.isArray;function s(t){return null!==t&&"object"==typeof t}function l(t){return"boolean"==typeof t}function c(t){return"string"==typeof t}var u=Object.prototype.toString;function h(t){return"[object Object]"===u.call(t)}function f(t){return null==t}function p(t){return"function"==typeof t}function m(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,a=null;return 1===t.length?s(t[0])||o(t[0])?a=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(s(t[1])||o(t[1]))&&(a=t[1])),{locale:n,params:a}}function g(t){return JSON.parse(JSON.stringify(t))}function v(t,e){return!!~t.indexOf(e)}var d=Object.prototype.hasOwnProperty;function b(t,e){return d.call(t,e)}function y(t){for(var e=arguments,n=Object(t),a=1;a<arguments.length;a++){var r=e[a];if(null!=r){var i=void 0;for(i in r)b(r,i)&&(s(r[i])?n[i]=y(n[i],r[i]):n[i]=r[i])}}return n}function _(t,e){if(t===e)return!0;var n=s(t),a=s(e);if(n&&a)try{var r=o(t),i=o(e);if(r&&i)return t.length===e.length&&t.every(function(t,n){return _(t,e[n])});if(r||i)return!1;var l=Object.keys(t),c=Object.keys(e);return l.length===c.length&&l.every(function(n){return _(t[n],e[n])})}catch(u){return!1}else if(!n&&!a)return String(t)===String(e);else return!1}var $={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function t(e,n){var a=n.data,i=n.parent,o=n.props,s=n.slots,l=i.$i18n;if(!l){r("Cannot find VueI18n instance!");return}var c=o.path,u=o.locale,h=o.places,f=s(),p=l.i(c,u,function t(e){var n;for(n in e)if("default"!==n)return!1;return Boolean(n)}(f)||h?function t(e,n){var a,i=n?(a=n,r("`places` prop is deprecated in next major version. Please switch to Vue slots."),Array.isArray(a)?a.reduce(F,{}):Object.assign({},a)):{};if(!e)return i;var o=(e=e.filter(function(t){return t.tag||""!==t.text.trim()})).every(w);return o&&r("`place` attribute is deprecated in next major version. Please switch to Vue slots."),e.reduce(o?k:F,i)}(f.default,h):f),m=o.tag&&!0!==o.tag||!1===o.tag?o.tag:"span";return m?e(m,a,p):p}};function k(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function F(t,e,n){return t[n]=e,t}function w(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var T={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function t(e,a){var i=a.props,o=a.parent,l=a.data,u=o.$i18n;if(!u)return r("Cannot find VueI18n instance!"),null;var h=null,f=null;c(i.format)?h=i.format:s(i.format)&&(i.format.key&&(h=i.format.key),f=Object.keys(i.format).reduce(function(t,e){var a;return v(n,e)?Object.assign({},t,((a={})[e]=i.format[e],a)):t},null));var p=i.locale||u.locale,m=u._ntp(i.value,p,h,f),g=m.map(function(t,e){var n,a=l.scopedSlots&&l.scopedSlots[t.type];return a?a(((n={})[t.type]=t.value,n.index=e,n.parts=m,n)):t.value}),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?e(d,{attrs:l.attrs,class:l.class,staticClass:l.staticClass},g):g}};function C(t,e,n){x(t,n)&&W(t,e,n)}function M(t,e,n,a){if(x(t,n)){var r,i,o,s=n.context.$i18n;if(r=t,i=n,o=i.context,!(r._locale===o.$i18n.locale&&_(e.value,e.oldValue)&&_(t._localeMessage,s.getLocaleMessage(s.locale))))W(t,e,n)}}function D(t,e,n,a){if(!n.context){r("Vue instance does not exists in VNode context");return}var i=n.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}function x(t,e){var n=e.context;return n?!!n.$i18n||(r("VueI18n instance does not exists in Vue instance"),!1):(r("Vue instance does not exists in VNode context"),!1)}function W(t,e,n){var a,i,o,s,l,u,f,p=(a=e.value,c(a)?i=a:h(a)&&(i=a.path,o=a.locale,s=a.args,l=a.choice),{path:i,locale:o,args:s,choice:l}),m=p.path,g=p.locale,v=p.args,d=p.choice;if(!m&&!g&&!v){r("value type not supported");return}if(!m){r("`path` is required in v-t directive");return}var b=n.context;null!=d?t._vt=t.textContent=(u=b.$i18n).tc.apply(u,[m,d].concat(I(g,v))):t._vt=t.textContent=(f=b.$i18n).t.apply(f,[m].concat(I(g,v))),t._locale=b.$i18n.locale,t._localeMessage=b.$i18n.getLocaleMessage(b.$i18n.locale)}function I(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||h(e))&&n.push(e),n}function L(e,n){var a;if(void 0===n&&(n={bridge:!1}),L.installed&&e===t){r("already installed.");return}if(L.installed=!0,2>((t=e).version&&Number(t.version.split(".")[0])||-1)){r("vue-i18n ("+L.version+") need to use Vue 2.0 or later (Vue: "+t.version+").");return}(a=t).prototype.hasOwnProperty("$i18n")||Object.defineProperty(a.prototype,"$i18n",{get:function t(){return this._i18n}}),a.prototype.$t=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var a=this.$i18n;return a._t.apply(a,[t,a.locale,a._getMessages(),this].concat(e))},a.prototype.$tc=function(t,e){for(var n=[],a=arguments.length-2;a-- >0;)n[a]=arguments[a+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},a.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},a.prototype.$d=function(t){for(var e,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},a.prototype.$n=function(t){for(var e,n=[],a=arguments.length-1;a-- >0;)n[a]=arguments[a+1];return(e=this.$i18n).n.apply(e,[t].concat(n))},t.mixin(function t(e){function n(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:n}:{beforeCreate:function t(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof G){if(e.__i18nBridge||e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};
5(e.__i18nBridge||e.__i18n).forEach(function(t){n=y(n,JSON.parse(t))}),Object.keys(n).forEach(function(t){e.i18n.mergeLocaleMessage(t,n[t])})}catch(a){i("Cannot parse locale messages via custom blocks.",a)}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(h(e.i18n)){var o=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof G?this.$root.$i18n:null;if(o&&(e.i18n.root=this.$root,e.i18n.formatter=o.formatter,e.i18n.fallbackLocale=o.fallbackLocale,e.i18n.formatFallbackMessages=o.formatFallbackMessages,e.i18n.silentTranslationWarn=o.silentTranslationWarn,e.i18n.silentFallbackWarn=o.silentFallbackWarn,e.i18n.pluralizationRules=o.pluralizationRules,e.i18n.preserveDirectiveContent=o.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var s=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach(function(t){s=y(s,JSON.parse(t))}),e.i18n.messages=s}catch(l){r("Cannot parse locale messages via custom blocks.",l)}var c=e.i18n.sharedMessages;c&&h(c)&&(e.i18n.messages=y(e.i18n.messages,c)),this._i18n=new G(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),o&&o.onComponentInstanceCreated(this._i18n)}else r("Cannot be interpreted 'i18n' option.")}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof G?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof G&&(this._i18n=e.parent.$i18n)},beforeMount:function t(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?e.i18n instanceof G?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):h(e.i18n)?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):r("Cannot be interpreted 'i18n' option."):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof G?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof G&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:n,beforeDestroy:function t(){if(this._i18n){var e=this;this.$nextTick(function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)})}}}}(n.bridge)),t.directive("t",{bind:C,update:M,unbind:D}),t.component($.name,$),t.component(T.name,T),t.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var S=function t(){this._caches=Object.create(null)};S.prototype.interpolate=function t(e,n){if(!n)return[e];var a=this._caches[e];return a||(a=function t(e){for(var n=[],a=0,r="";a<e.length;){var i=e[a++];if("{"===i){r&&n.push({type:"text",value:r}),r="";var o="";for(i=e[a++];void 0!==i&&"}"!==i;)o+=i,i=e[a++];var s="}"===i,l=N.test(o)?"list":s&&V.test(o)?"named":"unknown";n.push({value:o,type:l})}else"%"===i?"{"!==e[a]&&(r+=i):r+=i}return r&&n.push({type:"text",value:r}),n}(e),this._caches[e]=a),function t(e,n){var a=[],i=0,o=Array.isArray(n)?"list":s(n)?"named":"unknown";if("unknown"===o)return a;for(;i<e.length;){var l=e[i];switch(l.type){case"text":a.push(l.value);break;case"list":a.push(n[parseInt(l.value,10)]);break;case"named":"named"===o?a.push(n[l.value]):r("Type of token '"+l.type+"' and format of value '"+o+"' don't match!");break;case"unknown":r("Detect 'unknown' type of token!")}i++}return a}(a,n)};var N=/^(?:\d)+/,V=/^(?:\w)+/,E=[];E[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},E[1]={ws:[1],".":[2],"[":[4],eof:[7]},E[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},E[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},E[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},E[5]={"'":[4,0],eof:8,else:[5,0]},E[6]={'"':[4,0],eof:8,else:[6,0]};var R=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function P(t){if(null==t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:break;case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}var H=function t(){this._cache=Object.create(null)};H.prototype.parsePath=function t(e){var n=this._cache[e];return!n&&(n=function t(e){var n,a,r,i,o,s,l,c=[],u=-1,h=0,f=0,p=[];function m(){var t=e[u+1];if(5===h&&"'"===t||6===h&&'"'===t)return u++,r="\\"+t,p[0](),!0}for(p[1]=function(){void 0!==a&&(c.push(a),a=void 0)},p[0]=function(){void 0===a?a=r:a+=r},p[2]=function(){p[0](),f++},p[3]=function(){if(f>0)f--,h=4,p[0]();else{var t,e,n,r,i;if(f=0,void 0===a)return!1;if(!1===(a=(t=a,i=t.trim(),!("0"===t.charAt(0)&&isNaN(t))&&((e=i,R.test(e))?(r=(n=i).charCo
5deAt(0))===n.charCodeAt(n.length-1)&&(34===r||39===r)?n.slice(1,-1):n:"*"+i))))return!1;p[1]()}};null!==h;)if(!("\\"===(n=e[++u])&&m())){if(i=P(n),8===(o=(l=E[h])[i]||l.else||8)||(h=o[0],(s=p[o[1]])&&(r=void 0===(r=o[2])?n:r,!1===s())))return;if(7===h)return c}}(e))&&(this._cache[e]=n),n||[]},H.prototype.getPathValue=function t(e,n){if(!s(e))return null;var a=this.parsePath(n);if(0===a.length)return null;for(var r=a.length,i=e,o=0;o<r;){var l=i[a[o]];if(null==l)return null;i=l,o++}return i};var A=/<\/?[\w\s="/.':;#-\/]+>/,B=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,z=/^@(?:\.([a-zA-Z]+))?:/,U=/[()]/g,O={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},j=new S,G=function e(n){var a=this;void 0===n&&(n={}),!t&&"undefined"!=typeof window&&window.Vue&&L(window.Vue);var r=n.locale||"en-US",i=!1!==n.fallbackLocale&&(n.fallbackLocale||"en-US"),o=n.messages||{},s=n.dateTimeFormats||n.datetimeFormats||{},l=n.numberFormats||{};this._vm=null,this._formatter=n.formatter||j,this._modifiers=n.modifiers||{},this._missing=n.missing||null,this._root=n.root||null,this._sync=void 0===n.sync||!!n.sync,this._fallbackRoot=void 0===n.fallbackRoot||!!n.fallbackRoot,this._fallbackRootWithEmptyString=void 0===n.fallbackRootWithEmptyString||!!n.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==n.formatFallbackMessages&&!!n.formatFallbackMessages,this._silentTranslationWarn=void 0!==n.silentTranslationWarn&&n.silentTranslationWarn,this._silentFallbackWarn=void 0!==n.silentFallbackWarn&&!!n.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new H,this._dataListeners=new Set,this._componentInstanceCreatedListener=n.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==n.preserveDirectiveContent&&!!n.preserveDirectiveContent,this.pluralizationRules=n.pluralizationRules||{},this._warnHtmlInMessage=n.warnHtmlInMessage||"off",this._postTranslation=n.postTranslation||null,this._escapeParameterHtml=n.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in n&&(this.__VUE_I18N_BRIDGE__=n.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,e){var n,r,i=Object.getPrototypeOf(a);return i&&i.getChoiceIndex?i.getChoiceIndex.call(a,t,e):a.locale in a.pluralizationRules?a.pluralizationRules[a.locale].apply(a,[t,e]):(n=t,r=e,(n=Math.abs(n),2===r)?n?n>1?1:0:1:n?Math.min(n,2):0)},this._exist=function(t,e){return!!t&&!!e&&(!f(a._path.getPathValue(t,e))||!!t[e])},("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&Object.keys(o).forEach(function(t){a._checkLocaleMessage(t,a._warnHtmlInMessage,o[t])}),this._initVM({locale:r,fallbackLocale:i,messages:o,dateTimeFormats:s,numberFormats:l})},q={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};return G.prototype._checkLocaleMessage=function t(e,n,a){var s=function(t,e,n,a){if(h(n))Object.keys(n).forEach(function(r){var i=n[r];h(i)?(a.push(r),a.push("."),s(t,e,i,a),a.pop(),a.pop()):(a.push(r),s(t,e,i,a),a.pop())});else if(o(n))n.forEach(function(n,r){h(n)?(a.push("["+r+"]"),a.push("."),s(t,e,n,a),a.pop(),a.pop()):(a.push("["+r+"]"),s(t,e,n,a),a.pop())});else if(c(n)&&A.test(n)){var l="Detected HTML in message '"+n+"' of keypath '"+a.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?r(l):"error"===t&&i(l)}};s(n,e,a,[])},G.prototype._initVM=function e(n){var a=t.config.silent;t.config.silent=!0,this._vm=new t({data:n,__VUE18N__INSTANCE__:!0}),t.config.silent=a},G.prototype.destroyVM=function t(){this._vm.$destroy()},G.prototype.subscribeDataChanging=function t(e){this._dataListeners.add(e)},G.prototype.unsubscribeDataChanging=function t(e){!function t(e,n){if(e.delete(n))return e}(this._dataListeners,e)},G.prototype.watchI18nData=function e(){var n=this;return this._vm.$watch("$data",function(){for(var e,a,r=(e=n._dataListeners,a=[],e.forEach(function(t){return a.push(t)}),a),i=r.length;i--;)t.nextTick(function(){r[i]&&r[i].$forceUpdate()})},{deep:!0})},G.prototype.watchLocale=function t(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var n=this,a=this._vm;return this.vm.$watch("locale",function(t){a.$set(a,"locale",t),n.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=t),a.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){r.$set(r,"locale",t),r.$forceUpdate()},{immediate:!0})},G.prototype.onComponentInstanceCreated=function t(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},q.vm.get=function(){return this._vm},q.messages.get=function(){return g(this._getMessages())},q.dateTimeFormats.get=function(){return g(this._getDateTimeFormats())},q.numberFormats.get=function(){return g(this._getNumberFormats())},q.availableLocales.get=function(){return Object.keys(this.messages).sort()},q.locale.get=function(){return this._vm.locale},q.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},q.fallbackLocale.get=function(){return this._vm.fallbackLocale},q.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},q.formatFallbackMessages.get=function(){return this._formatFallbackMessages},q.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},q.missing.get=function(){return this._missing},q.missing.set=function(t){this._missing=t},q.formatter.get=function(){return this._formatter},q.formatter.set=function(t){this._formatter=t},q.silentTranslationWarn.get=function(){return this._silentTranslationWarn},q.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},q.silentFallbackWarn.get=function(){return this._silentFallbackWarn},q.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},q.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},q.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},q.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},q.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var a=this._getMessages();
5Object.keys(a).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,a[t])})}},q.postTranslation.get=function(){return this._postTranslation},q.postTranslation.set=function(t){this._postTranslation=t},q.sync.get=function(){return this._sync},q.sync.set=function(t){this._sync=t},G.prototype._getMessages=function t(){return this._vm.messages},G.prototype._getDateTimeFormats=function t(){return this._vm.dateTimeFormats},G.prototype._getNumberFormats=function t(){return this._vm.numberFormats},G.prototype._warnDefault=function t(e,n,a,i,o,s){if(!f(a))return a;if(this._missing){var l=this._missing.apply(null,[e,n,i,o]);if(c(l))return l}else this._isSilentTranslationWarn(n)||r("Cannot translate the value of keypath '"+n+"'. Use the value of keypath as default.");if(!this._formatFallbackMessages)return n;var u=m.apply(void 0,o);return this._render(n,s,u.params,n)},G.prototype._isFallbackRoot=function t(e){return(this._fallbackRootWithEmptyString?!e:f(e))&&!f(this._root)&&this._fallbackRoot},G.prototype._isSilentFallbackWarn=function t(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},G.prototype._isSilentFallback=function t(e,n){return this._isSilentFallbackWarn(n)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},G.prototype._isSilentTranslationWarn=function t(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},G.prototype._interpolate=function t(e,n,a,i,s,l,u){if(!n)return null;var m,g=this._path.getPathValue(n,a);if(o(g)||h(g))return g;if(f(g)){if(!h(n))return null;if(!(c(m=n[a])||p(m)))return this._isSilentTranslationWarn(a)||this._isSilentFallback(e,a)||r("Value of key '"+a+"' is not a string or function !"),null}else{if(!(c(g)||p(g)))return this._isSilentTranslationWarn(a)||this._isSilentFallback(e,a)||r("Value of key '"+a+"' is not a string or function!"),null;m=g}return c(m)&&(m.indexOf("@:")>=0||m.indexOf("@.")>=0)&&(m=this._link(e,n,m,i,"raw",l,u)),this._render(m,s,l,a)},G.prototype._link=function t(e,n,a,i,s,l,c){var u=a,h=u.match(B);for(var f in h)if(h.hasOwnProperty(f)){var p=h[f],m=p.match(z),g=m[0],d=m[1],b=p.replace(g,"").replace(U,"");if(v(c,b)){r('Circular reference found. "'+p+'" is already visited in the chain of '+c.reverse().join(" <- "));break}c.push(b);var y=this._interpolate(e,n,b,i,"raw"===s?"string":s,"raw"===s?void 0:l,c);if(this._isFallbackRoot(y)){if(this._isSilentTranslationWarn(b)||r("Fall back to translate the link placeholder '"+b+"' with root locale."),!this._root)throw Error("unexpected error");var _=this._root.$i18n;y=_._translate(_._getMessages(),_.locale,_.fallbackLocale,b,i,s,l)}y=this._warnDefault(e,b,y,i,o(l)?l:[l],s),this._modifiers.hasOwnProperty(d)?y=this._modifiers[d](y):O.hasOwnProperty(d)&&(y=O[d](y)),c.pop(),u=y?u.replace(p,y):u}return u},G.prototype._createMessageContext=function t(e,n,a,r){var i=this,l=o(e)?e:[],c=s(e)?e:{},u=function(t){return l[t]},h=function(t){return c[t]},f=this._getMessages(),p=this.locale;return{list:u,named:h,values:e,formatter:n,path:a,messages:f,locale:p,linked:function(t){return i._interpolate(p,f[p]||{},t,null,r,void 0,[t])}}},G.prototype._render=function t(e,n,a,r){if(p(e))return e(this._createMessageContext(a,this._formatter||j,r,n));var i=this._formatter.interpolate(e,a,r);return i||(i=j.interpolate(e,a,r)),"string"!==n||c(i)?i:i.join("")},G.prototype._appendItemToChain=function t(e,n,a){var r=!1;return!v(e,n)&&(r=!0,n&&(r="!"!==n[n.length-1],n=n.replace(/!/g,""),e.push(n),a&&a[n]&&(r=a[n]))),r},G.prototype._appendLocaleToChain=function t(e,n,a){var r,i=n.split("-");do{var o=i.join("-");r=this._appendItemToChain(e,o,a),i.splice(-1,1)}while(i.length&&!0===r);return r},G.prototype._appendBlockToChain=function t(e,n,a){for(var r=!0,i=0;i<n.length&&l(r);i++){var o=n[i];c(o)&&(r=this._appendLocaleToChain(e,o,a))}return r},G.prototype._getLocaleChain=function t(e,n){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var a=this._localeChainCache[e];if(!a){n||(n=this.fallbackLocale),a=[];for(var r,i=[e];o(i);)i=this._appendBlockToChain(a,i,n);
5r=o(n)?n:s(n)?n.default?n.default:null:n,(i=c(r)?[r]:r)&&this._appendBlockToChain(a,i,null),this._localeChainCache[e]=a}return a},G.prototype._translate=function t(e,n,a,i,o,s,l){for(var c,u=this._getLocaleChain(n,a),h=0;h<u.length;h++){var p=u[h];if(!f(c=this._interpolate(p,e[p],i,o,s,l,[i])))return p===n||this._isSilentTranslationWarn(i)||this._isSilentFallbackWarn(i)||r("Fall back to translate the keypath '"+i+"' with '"+p+"' locale."),c}return null},G.prototype._t=function t(e,n,a,i){for(var o,s,l=[],c=arguments.length-4;c-- >0;)l[c]=arguments[c+4];if(!e)return"";var u=m.apply(void 0,l);this._escapeParameterHtml&&(u.params=(null!=(o=u.params)&&Object.keys(o).forEach(function(t){if("string"==typeof o[t]){var e;o[t]=(e=o[t]).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}}),o));var h=u.locale||n,f=this._translate(a,h,this.fallbackLocale,e,i,"string",u.params);if(!this._isFallbackRoot(f))return f=this._warnDefault(h,e,f,i,l,"string"),this._postTranslation&&null!=f&&(f=this._postTranslation(f,e)),f;if(this._isSilentTranslationWarn(e)||this._isSilentFallbackWarn(e)||r("Fall back to translate the keypath '"+e+"' with root locale."),!this._root)throw Error("unexpected error");return(s=this._root).$t.apply(s,[e].concat(l))},G.prototype.t=function t(e){for(var n,a=[],r=arguments.length-1;r-- >0;)a[r]=arguments[r+1];return(n=this)._t.apply(n,[e,this.locale,this._getMessages(),null].concat(a))},G.prototype._i=function t(e,n,a,i,o){var s=this._translate(a,n,this.fallbackLocale,e,i,"raw",o);if(!this._isFallbackRoot(s))return this._warnDefault(n,e,s,i,[o],"raw");if(this._isSilentTranslationWarn(e)||r("Fall back to interpolate the keypath '"+e+"' with root locale."),!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,n,o)},G.prototype.i=function t(e,n,a){return e?(c(n)||(n=this.locale),this._i(e,n,this._getMessages(),null,a)):""},G.prototype._tc=function t(e,n,a,r,i){for(var o,s=[],l=arguments.length-5;l-- >0;)s[l]=arguments[l+5];if(!e)return"";void 0===i&&(i=1);var c={count:i,n:i},u=m.apply(void 0,s);return u.params=Object.assign(c,u.params),s=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[e,n,a,r].concat(s)),i)},G.prototype.fetchChoice=function t(e,n){if(!e||!c(e))return null;var a=e.split("|");return a[n=this.getChoiceIndex(n,a.length)]?a[n].trim():e},G.prototype.tc=function t(e,n){for(var a,r=[],i=arguments.length-2;i-- >0;)r[i]=arguments[i+2];return(a=this)._tc.apply(a,[e,this.locale,this._getMessages(),null,n].concat(r))},G.prototype._te=function t(e,n,a){for(var r=[],i=arguments.length-3;i-- >0;)r[i]=arguments[i+3];var o=m.apply(void 0,r).locale||n;return this._exist(a[o],e)},G.prototype.te=function t(e,n){return this._te(e,this.locale,this._getMessages(),n)},G.prototype.getLocaleMessage=function t(e){return g(this._vm.messages[e]||{})},G.prototype.setLocaleMessage=function t(e,n){("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&this._checkLocaleMessage(e,this._warnHtmlInMessage,n),this._vm.$set(this._vm.messages,e,n)},G.prototype.mergeLocaleMessage=function t(e,n){("warn"===this._warnHtmlInMessage||"error"===this._warnHtmlInMessage)&&this._checkLocaleMessage(e,this._warnHtmlInMessage,n),this._vm.$set(this._vm.messages,e,y(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},n))},G.prototype.getDateTimeFormat=function t(e){return g(this._vm.dateTimeFormats[e]||{})},G.prototype.setDateTimeFormat=function t(e,n){this._vm.$set(this._vm.dateTimeFormats,e,n),this._clearDateTimeFormat(e,n)},G.prototype.mergeDateTimeFormat=function t(e,n){this._vm.$set(this._vm.dateTimeFormats,e,y(this._vm.dateTimeFormats[e]||{},n)),this._clearDateTimeFormat(e,n)},G.prototype._clearDateTimeFormat=function t(e,n){for(var a in n){var r=e+"__"+a;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},G.prototype._localizeDateTime=function t(e,n,a,i,o,s){for(var l=n,c=i[l],u=this._getLocaleChain(n,a),h=0;h<u.length;h++){var p=l,m=u[h];if(c=i[m],l=m,f(c)||f(c[o]))m===n||this._isSilentTranslationWarn(o)||this._isSilentFallbackWarn(o)||r("Fall back to '"+m+"' datetime formats from '"+p+"' datetime formats.");else break}if(f(c)||f(c[o]))return null;var g,v=c[o];if(s)g=new Intl.DateTimeFormat(l,Object.assign({},v,s));else{var d=l+"__"+o;(g=this._dateTimeFormatters[d])||(g=this._dateTimeFormatters[d]=new Intl.DateTimeFormat(l,v))}return g.format(e)},G.prototype._d=function t(e,n,a,i){if(!G.availabilities.dateTimeFormat)return r("Cannot format a Date value due to not supported Intl.DateTimeFormat."),"";
5if(!a)return(i?new Intl.DateTimeFormat(n,i):new Intl.DateTimeFormat(n)).format(e);var o=this._localizeDateTime(e,n,this.fallbackLocale,this._getDateTimeFormats(),a,i);if(!this._isFallbackRoot(o))return o||"";if(this._isSilentTranslationWarn(a)||this._isSilentFallbackWarn(a)||r("Fall back to datetime localization of root: key '"+a+"'."),!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,a,n)},G.prototype.d=function t(e){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];var i=this.locale,o=null,l=null;return 1===n.length?(c(n[0])?o=n[0]:s(n[0])&&(n[0].locale&&(i=n[0].locale),n[0].key&&(o=n[0].key)),l=Object.keys(n[0]).reduce(function(t,e){var r;return v(a,e)?Object.assign({},t,((r={})[e]=n[0][e],r)):t},null)):2===n.length&&(c(n[0])&&(o=n[0]),c(n[1])&&(i=n[1])),this._d(e,i,o,l)},G.prototype.getNumberFormat=function t(e){return g(this._vm.numberFormats[e]||{})},G.prototype.setNumberFormat=function t(e,n){this._vm.$set(this._vm.numberFormats,e,n),this._clearNumberFormat(e,n)},G.prototype.mergeNumberFormat=function t(e,n){this._vm.$set(this._vm.numberFormats,e,y(this._vm.numberFormats[e]||{},n)),this._clearNumberFormat(e,n)},G.prototype._clearNumberFormat=function t(e,n){for(var a in n){var r=e+"__"+a;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},G.prototype._getNumberFormatter=function t(e,n,a,i,o,s){for(var l=n,c=i[l],u=this._getLocaleChain(n,a),h=0;h<u.length;h++){var p=l,m=u[h];if(c=i[m],l=m,f(c)||f(c[o]))m===n||this._isSilentTranslationWarn(o)||this._isSilentFallbackWarn(o)||r("Fall back to '"+m+"' number formats from '"+p+"' number formats.");else break}if(f(c)||f(c[o]))return null;var g,v=c[o];if(s)g=new Intl.NumberFormat(l,Object.assign({},v,s));else{var d=l+"__"+o;(g=this._numberFormatters[d])||(g=this._numberFormatters[d]=new Intl.NumberFormat(l,v))}return g},G.prototype._n=function t(e,n,a,i){if(!G.availabilities.numberFormat)return r("Cannot format a Number value due to not supported Intl.NumberFormat."),"";if(!a)return(i?new Intl.NumberFormat(n,i):new Intl.NumberFormat(n)).format(e);var o=this._getNumberFormatter(e,n,this.fallbackLocale,this._getNumberFormats(),a,i),s=o&&o.format(e);if(!this._isFallbackRoot(s))return s||"";if(this._isSilentTranslationWarn(a)||this._isSilentFallbackWarn(a)||r("Fall back to number localization of root: key '"+a+"'."),!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:a,locale:n},i))},G.prototype.n=function t(e){for(var a=[],r=arguments.length-1;r-- >0;)a[r]=arguments[r+1];var i=this.locale,o=null,l=null;return 1===a.length?c(a[0])?o=a[0]:s(a[0])&&(a[0].locale&&(i=a[0].locale),a[0].key&&(o=a[0].key),l=Object.keys(a[0]).reduce(function(t,e){var r;return v(n,e)?Object.assign({},t,((r={})[e]=a[0][e],r)):t},null)):2===a.length&&(c(a[0])&&(o=a[0]),c(a[1])&&(i=a[1])),this._n(e,i,o,l)},G.prototype._ntp=function t(e,n,a,i){if(!G.availabilities.numberFormat)return r("Cannot format to parts a Number value due to not supported Intl.NumberFormat."),[];if(!a)return(i?new Intl.NumberFormat(n,i):new Intl.NumberFormat(n)).formatToParts(e);var o=this._getNumberFormatter(e,n,this.fallbackLocale,this._getNumberFormats(),a,i),s=o&&o.formatToParts(e);if(!this._isFallbackRoot(s))return s||[];if(this._isSilentTranslationWarn(a)||r("Fall back to format number to parts of root: key '"+a+"' ."),!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,n,a,i)}
5,Object.defineProperties(G.prototype,q),Object.defineProperty(G,"availabilities",{get:function t(){if(!e){var n="undefined"!=typeof Intl;e={dateTimeFormat:n&&void 0!==Intl.DateTimeFormat,numberFormat:n&&void 0!==Intl.NumberFormat}}return e}}),G.install=L,G.version="8.28.2",G});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.