gc_i18n 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- (function(J,L){typeof exports=="object"&&typeof module<"u"?module.exports=L(require("view-ui-plus"),require("vue"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["view-ui-plus","vue","lodash-es","axios"],L):(J=typeof globalThis<"u"?globalThis:J||self,J.gc_i18n=L(J.iview,J.Vue,J._,J.Axios))})(this,function(J,L,Q,Te){"use strict";var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={exports:{}},ms=Ze.exports,tn;function hs(){return tn||(tn=1,function(e,t){(function(n,s){e.exports=s()})(ms,function(){function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(o)}function s(o,m){if(!(o instanceof m))throw new TypeError("Cannot call a class as a function")}function a(o,m){for(var l=0;l<m.length;l++){var u=m[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function r(o,m,l){return m&&a(o.prototype,m),o}function i(o){return c(o)||f(o)||p(o)||v()}function c(o){if(Array.isArray(o))return N(o)}function f(o){if(typeof Symbol<"u"&&Symbol.iterator in Object(o))return Array.from(o)}function p(o,m){if(o){if(typeof o=="string")return N(o,m);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return N(o,m)}}function N(o,m){(m==null||m>o.length)&&(m=o.length);for(var l=0,u=new Array(m);l<m;l++)u[l]=o[l];return u}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=function(){function o(m){s(this,o),this.sourceStr=m,this.subCombos=o.parseComboStr(m),this.keyNames=this.subCombos.reduce(function(l,u){return l.concat(u)},[])}return r(o,[{key:"check",value:function(l){for(var u=0,_=0;_<this.subCombos.length;_+=1)if(u=this._checkSubCombo(this.subCombos[_],u,l),u===-1)return!1;return!0}},{key:"isEqual",value:function(l){if(!l||typeof l!="string"&&n(l)!=="object"||(typeof l=="string"&&(l=new o(l)),this.subCombos.length!==l.subCombos.length))return!1;for(var u=0;u<this.subCombos.length;u+=1)if(this.subCombos[u].length!==l.subCombos[u].length)return!1;for(var _=0;_<this.subCombos.length;_+=1){for(var E=this.subCombos[_],g=l.subCombos[_].slice(0),O=0;O<E.length;O+=1){var R=E[O],w=g.indexOf(R);w>-1&&g.splice(w,1)}if(g.length!==0)return!1}return!0}},{key:"_checkSubCombo",value:function(l,u,_){l=l.slice(0),_=_.slice(u);for(var E=u,g=0;g<l.length;g+=1){var O=l[g];if(O[0]==="\\"){var R=O.slice(1);(R===o.comboDeliminator||R===o.keyDeliminator)&&(O=R)}var w=_.indexOf(O);if(w>-1&&(l.splice(g,1),g-=1,w>E&&(E=w),l.length===0))return E}return-1}}]),o}();y.comboDeliminator=">",y.keyDeliminator="+",y.parseComboStr=function(o){for(var m=y._splitStr(o,y.comboDeliminator),l=[],u=0;u<m.length;u+=1)l.push(y._splitStr(m[u],y.keyDeliminator));return l},y._splitStr=function(o,m){for(var l=o,u=m,_="",E=[],g=0;g<l.length;g+=1)g>0&&l[g]===u&&l[g-1]!=="\\"&&(E.push(_.trim()),_="",g+=1),_+=l[g];return _&&E.push(_.trim()),E};var I=function(){function o(m){s(this,o),this.localeName=m,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(o,[{key:"bindKeyCode",value:function(l,u){typeof u=="string"&&(u=[u]),this._keyMap[l]=u}},{key:"bindMacro",value:function(l,u){typeof u=="string"&&(u=[u]);var _=null;typeof u=="function"&&(_=u,u=null);var E={keyCombo:new y(l),keyNames:u,handler:_};this._macros.push(E)}},{key:"getKeyCodes",value:function(l){var u=[];for(var _ in this._keyMap){var E=this._keyMap[_].indexOf(l);E>-1&&u.push(_|0)}return u}},{key:"getKeyNames",value:function(l){return this._keyMap[l]||[]}},{key:"setKillKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.setKillKey(u[_]);return}this._killKeyCodes.push(l)}},{key:"pressKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.pressKey(u[_]);return}this.activeTargetKeys.length=0;for(var E=this.getKeyNames(l),g=0;g<E.length;g+=1)this.activeTargetKeys.push(E[g]),this.pressedKeys.indexOf(E[g])===-1&&this.pressedKeys.push(E[g]);this._applyMacros()}},{key:"releaseKey",value:function(l){if(typeof l=="string")for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.releaseKey(u[_]);else{var E=this.getKeyNames(l),g=this._killKeyCodes.indexOf(l);if(g!==-1)this.pressedKeys.length=0;else for(var O=0;O<E.length;O+=1){var R=this.pressedKeys.indexOf(E[O]);R>-1&&this.pressedKeys.splice(R,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var l=this._macros.slice(0),u=0;u<l.length;u+=1){var _=l[u];if(_.keyCombo.check(this.pressedKeys)){_.handler&&(_.keyNames=_.handler(this.pressedKeys));for(var E=0;E<_.keyNames.length;E+=1)this.pressedKeys.indexOf(_.keyNames[E])===-1&&this.pressedKeys.push(_.keyNames[E]);this._appliedMacros.push(_)}}}},{key:"_clearMacros",value:function(){for(var l=0;l<this._appliedMacros.length;l+=1){var u=this._appliedMacros[l];if(!u.keyCombo.check(this.pressedKeys)){for(var _=0;_<u.keyNames.length;_+=1){var E=this.pressedKeys.indexOf(u.keyNames[_]);E>-1&&this.pressedKeys.splice(E,1)}u.handler&&(u.keyNames=null),this._appliedMacros.splice(l,1),l-=1}}}}]),o}(),P=function(){function o(m,l,u,_){s(this,o),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:m,targetElement:l,targetPlatform:u,targetUserAgent:_},this.setContext("global")}return r(o,[{key:"setLocale",value:function(l,u){var _=null;return typeof l=="string"?u?(_=new I(l),u(_,this._targetPlatform,this._targetUserAgent)):_=this._locales[l]||null:(_=l,l=_._localeName),this._locale=_,this._locales[l]=_,_&&(this._locale.pressedKeys=_.pressedKeys),this}},{key:"getLocale",value:function(l){return l||(l=this._locale.localeName),this._locales[l]||null}},{key:"bind",value:function(l,u,_,E){if((l===null||typeof l=="function")&&(E=_,_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var g=0;g<l.length;g+=1)this.bind(l[g],u,_);return this}return this._listeners.push({keyCombo:l?new y(l):null,pressHandler:u||null,releaseHandler:_||null,preventRepeat:!1,preventRepeatByDefault:E||!1,executingHandler:!1}),this}},{key:"addListener",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"on",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"bindPress",value:function(l,u,_){return this.bind(l,u,null,_)}},{key:"bindRelease",value:function(l,u){return this.bind(l,null,u,preventRepeatByDefault)}},{key:"unbind",value:function(l,u,_){if((l===null||typeof l=="function")&&(_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var E=0;E<l.length;E+=1)this.unbind(l[E],u,_);return this}for(var g=0;g<this._listeners.length;g+=1){var O=this._listeners[g],R=!l&&!O.keyCombo||O.keyCombo&&O.keyCombo.isEqual(l),w=!u&&!_||!u&&!O.pressHandler||u===O.pressHandler,Y=!u&&!_||!_&&!O.releaseHandler||_===O.releaseHandler;R&&w&&Y&&(this._listeners.splice(g,1),g-=1)}return this}},{key:"removeListener",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"off",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"setContext",value:function(l){if(this._locale&&this.releaseAllKeys(),!this._contexts[l]){var u=this._contexts.global;this._contexts[l]={listeners:[],targetWindow:u.targetWindow,targetElement:u.targetElement,targetPlatform:u.targetPlatform,targetUserAgent:u.targetUserAgent}}var _=this._contexts[l];return this._currentContext=l,this._listeners=_.listeners,this.stop(),this.watch(_.targetWindow,_.targetElement,_.targetPlatform,_.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(l,u){var _=this.getContext();return this.setContext(l),u(),this.setContext(_),this}},{key:"watch",value:function(l,u,_,E){var g=this;this.stop();var O=typeof globalThis<"u"?globalThis:typeof zt<"u"?zt:typeof window<"u"?window:{};if(!l){if(!O.addEventListener&&!O.attachEvent){if(this._currentContext==="global")return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}l=O}if(typeof l.nodeType=="number"&&(E=_,_=u,u=l,l=O),!l.addEventListener&&!l.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!l.addEventListener;var R=l.navigator&&l.navigator.userAgent||"",w=l.navigator&&l.navigator.platform||"";u&&u!==null||(u=l.document),_&&_!==null||(_=w),E&&E!==null||(E=R),this._targetKeyDownBinding=function($){g.pressKey($.keyCode,$),g._handleCommandBug($,w)},this._targetKeyUpBinding=function($){g.releaseKey($.keyCode,$)},this._targetResetBinding=function($){g.releaseAllKeys($)},this._bindEvent(u,"keydown",this._targetKeyDownBinding),this._bindEvent(u,"keyup",this._targetKeyUpBinding),this._bindEvent(l,"focus",this._targetResetBinding),this._bindEvent(l,"blur",this._targetResetBinding),this._targetElement=u,this._targetWindow=l,this._targetPlatform=_,this._targetUserAgent=E;var Y=this._contexts[this._currentContext];return Y.targetWindow=this._targetWindow,Y.targetElement=this._targetElement,Y.targetPlatform=this._targetPlatform,Y.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(!(!this._targetElement||!this._targetWindow))return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(l),this._applyBindings(u),this}},{key:"releaseKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(l),this._clearBindings(u),this}},{key:"releaseAllKeys",value:function(l){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(l),this}},{key:"pause",value:function(){return this._paused?this:(this._locale&&this.releaseAllKeys(),this._paused=!0,this)}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(l,u,_){return this._isModernBrowser?l.addEventListener(u,_,!1):l.attachEvent("on"+u,_)}},{key:"_unbindEvent",value:function(l,u,_){return this._isModernBrowser?l.removeEventListener(u,_,!1):l.detachEvent("on"+u,_)}},{key:"_getGroupedListeners",value:function(){var l=[],u=[],_=this._listeners;return this._currentContext!=="global"&&(_=[].concat(i(_),i(this._contexts.global.listeners))),_.sort(function(E,g){return(g.keyCombo?g.keyCombo.keyNames.length:0)-(E.keyCombo?E.keyCombo.keyNames.length:0)}).forEach(function(E){for(var g=-1,O=0;O<u.length;O+=1)(u[O]===null&&E.keyCombo===null||u[O]!==null&&u[O].isEqual(E.keyCombo))&&(g=O);g===-1&&(g=u.length,u.push(E.keyCombo)),l[g]||(l[g]=[]),l[g].push(E)}),l}},{key:"_applyBindings",value:function(l){var u=this,_=!1;l||(l={}),l.preventRepeat=function(){_=!0},l.pressedKeys=this._locale.pressedKeys.slice(0);for(var E=this._locale.activeTargetKeys,g=this._locale.pressedKeys.slice(0),O=this._getGroupedListeners(),R=function($){var de=O[$],_e=de[0].keyCombo;if(_e===null||_e.check(g)&&E.some(function(je){return _e.keyNames.includes(je)})){for(var Ae=0;Ae<de.length;Ae+=1){var re=de[Ae];!re.executingHandler&&re.pressHandler&&!re.preventRepeat&&(re.executingHandler=!0,re.pressHandler.call(u,l),re.executingHandler=!1,(_||re.preventRepeatByDefault)&&(re.preventRepeat=!0,_=!1)),u._appliedListeners.indexOf(re)===-1&&u._appliedListeners.push(re)}if(_e)for(var ve=0;ve<_e.keyNames.length;ve+=1){var Ke=g.indexOf(_e.keyNames[ve]);Ke!==-1&&(g.splice(Ke,1),ve-=1)}}},w=0;w<O.length;w+=1)R(w)}},{key:"_clearBindings",value:function(l){l||(l={}),l.pressedKeys=this._locale.pressedKeys.slice(0);for(var u=0;u<this._appliedListeners.length;u+=1){var _=this._appliedListeners[u],E=_.keyCombo;(E===null||!E.check(this._locale.pressedKeys))&&(_.preventRepeat=!1,(E!==null||l.pressedKeys.length===0)&&(this._appliedListeners.splice(u,1),u-=1),!_.executingHandler&&_.releaseHandler&&(_.executingHandler=!0,_.releaseHandler.call(this,l),_.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(l,u){var _=["shift","ctrl","alt","capslock","tab","command"];u.match("Mac")&&this._locale.pressedKeys.includes("command")&&!_.includes(this._locale.getKeyNames(l.keyCode)[0])&&this._targetKeyUpBinding(l)}}]),o}();function A(o,m,l){o.bindKeyCode(3,["cancel"]),o.bindKeyCode(8,["backspace"]),o.bindKeyCode(9,["tab"]),o.bindKeyCode(12,["clear"]),o.bindKeyCode(13,["enter"]),o.bindKeyCode(16,["shift"]),o.bindKeyCode(17,["ctrl"]),o.bindKeyCode(18,["alt","menu"]),o.bindKeyCode(19,["pause","break"]),o.bindKeyCode(20,["capslock"]),o.bindKeyCode(27,["escape","esc"]),o.bindKeyCode(32,["space","spacebar"]),o.bindKeyCode(33,["pageup"]),o.bindKeyCode(34,["pagedown"]),o.bindKeyCode(35,["end"]),o.bindKeyCode(36,["home"]),o.bindKeyCode(37,["left"]),o.bindKeyCode(38,["up"]),o.bindKeyCode(39,["right"]),o.bindKeyCode(40,["down"]),o.bindKeyCode(41,["select"]),o.bindKeyCode(42,["printscreen"]),o.bindKeyCode(43,["execute"]),o.bindKeyCode(44,["snapshot"]),o.bindKeyCode(45,["insert","ins"]),o.bindKeyCode(46,["delete","del"]),o.bindKeyCode(47,["help"]),o.bindKeyCode(145,["scrolllock","scroll"]),o.bindKeyCode(188,["comma",","]),o.bindKeyCode(190,["period","."]),o.bindKeyCode(191,["slash","forwardslash","/"]),o.bindKeyCode(192,["graveaccent","`"]),o.bindKeyCode(219,["openbracket","["]),o.bindKeyCode(220,["backslash","\\"]),o.bindKeyCode(221,["closebracket","]"]),o.bindKeyCode(222,["apostrophe","'"]),o.bindKeyCode(48,["zero","0"]),o.bindKeyCode(49,["one","1"]),o.bindKeyCode(50,["two","2"]),o.bindKeyCode(51,["three","3"]),o.bindKeyCode(52,["four","4"]),o.bindKeyCode(53,["five","5"]),o.bindKeyCode(54,["six","6"]),o.bindKeyCode(55,["seven","7"]),o.bindKeyCode(56,["eight","8"]),o.bindKeyCode(57,["nine","9"]),o.bindKeyCode(96,["numzero","num0"]),o.bindKeyCode(97,["numone","num1"]),o.bindKeyCode(98,["numtwo","num2"]),o.bindKeyCode(99,["numthree","num3"]),o.bindKeyCode(100,["numfour","num4"]),o.bindKeyCode(101,["numfive","num5"]),o.bindKeyCode(102,["numsix","num6"]),o.bindKeyCode(103,["numseven","num7"]),o.bindKeyCode(104,["numeight","num8"]),o.bindKeyCode(105,["numnine","num9"]),o.bindKeyCode(106,["nummultiply","num*"]),o.bindKeyCode(107,["numadd","num+"]),o.bindKeyCode(108,["numenter"]),o.bindKeyCode(109,["numsubtract","num-"]),o.bindKeyCode(110,["numdecimal","num."]),o.bindKeyCode(111,["numdivide","num/"]),o.bindKeyCode(144,["numlock","num"]),o.bindKeyCode(112,["f1"]),o.bindKeyCode(113,["f2"]),o.bindKeyCode(114,["f3"]),o.bindKeyCode(115,["f4"]),o.bindKeyCode(116,["f5"]),o.bindKeyCode(117,["f6"]),o.bindKeyCode(118,["f7"]),o.bindKeyCode(119,["f8"]),o.bindKeyCode(120,["f9"]),o.bindKeyCode(121,["f10"]),o.bindKeyCode(122,["f11"]),o.bindKeyCode(123,["f12"]),o.bindKeyCode(124,["f13"]),o.bindKeyCode(125,["f14"]),o.bindKeyCode(126,["f15"]),o.bindKeyCode(127,["f16"]),o.bindKeyCode(128,["f17"]),o.bindKeyCode(129,["f18"]),o.bindKeyCode(130,["f19"]),o.bindKeyCode(131,["f20"]),o.bindKeyCode(132,["f21"]),o.bindKeyCode(133,["f22"]),o.bindKeyCode(134,["f23"]),o.bindKeyCode(135,["f24"]),o.bindMacro("shift + `",["tilde","~"]),o.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),o.bindMacro("shift + 2",["at","@"]),o.bindMacro("shift + 3",["number","#"]),o.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),o.bindMacro("shift + 5",["percent","%"]),o.bindMacro("shift + 6",["caret","^"]),o.bindMacro("shift + 7",["ampersand","and","&"]),o.bindMacro("shift + 8",["asterisk","*"]),o.bindMacro("shift + 9",["openparen","("]),o.bindMacro("shift + 0",["closeparen",")"]),o.bindMacro("shift + -",["underscore","_"]),o.bindMacro("shift + =",["plus","+"]),o.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),o.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),o.bindMacro("shift + \\",["verticalbar","|"]),o.bindMacro("shift + ;",["colon",":"]),o.bindMacro("shift + '",["quotationmark","'"]),o.bindMacro("shift + !,",["openanglebracket","<"]),o.bindMacro("shift + .",["closeanglebracket",">"]),o.bindMacro("shift + /",["questionmark","?"]),m.match("Mac")?o.bindMacro("command",["mod","modifier"]):o.bindMacro("ctrl",["mod","modifier"]);for(var u=65;u<=90;u+=1){var _=String.fromCharCode(u+32),E=String.fromCharCode(u);o.bindKeyCode(u,_),o.bindMacro("shift + "+_,E),o.bindMacro("capslock + "+_,E)}var g=l.match("Firefox")?59:186,O=l.match("Firefox")?173:189,R=l.match("Firefox")?61:187,w,Y;m.match("Mac")&&(l.match("Safari")||l.match("Chrome"))?(w=91,Y=93):m.match("Mac")&&l.match("Opera")?(w=17,Y=17):m.match("Mac")&&l.match("Firefox")&&(w=224,Y=224),o.bindKeyCode(g,["semicolon",";"]),o.bindKeyCode(O,["dash","-"]),o.bindKeyCode(R,["equal","equalsign","="]),o.bindKeyCode(w,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),o.bindKeyCode(Y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),o.setKillKey("command")}var S=new P;return S.setLocale("us",A),S.Keyboard=P,S.Locale=I,S.KeyCombo=y,S})}(Ze)),Ze.exports}var gs=hs();const ps=en(gs);/*!
1
+ (function(Q,T){typeof exports=="object"&&typeof module<"u"?module.exports=T(require("view-ui-plus"),require("vue"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["view-ui-plus","vue","lodash-es","axios"],T):(Q=typeof globalThis<"u"?globalThis:Q||self,Q.gc_i18n=T(Q.iview,Q.Vue,Q._,Q.Axios))})(this,function(Q,T,H,Le){"use strict";var zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ze={exports:{}},ms=ze.exports,tn;function hs(){return tn||(tn=1,function(e,t){(function(n,s){e.exports=s()})(ms,function(){function n(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(m){return typeof m}:n=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},n(o)}function s(o,m){if(!(o instanceof m))throw new TypeError("Cannot call a class as a function")}function a(o,m){for(var l=0;l<m.length;l++){var u=m[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}function r(o,m,l){return m&&a(o.prototype,m),o}function i(o){return c(o)||f(o)||p(o)||v()}function c(o){if(Array.isArray(o))return N(o)}function f(o){if(typeof Symbol<"u"&&Symbol.iterator in Object(o))return Array.from(o)}function p(o,m){if(o){if(typeof o=="string")return N(o,m);var l=Object.prototype.toString.call(o).slice(8,-1);if(l==="Object"&&o.constructor&&(l=o.constructor.name),l==="Map"||l==="Set")return Array.from(o);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return N(o,m)}}function N(o,m){(m==null||m>o.length)&&(m=o.length);for(var l=0,u=new Array(m);l<m;l++)u[l]=o[l];return u}function v(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=function(){function o(m){s(this,o),this.sourceStr=m,this.subCombos=o.parseComboStr(m),this.keyNames=this.subCombos.reduce(function(l,u){return l.concat(u)},[])}return r(o,[{key:"check",value:function(l){for(var u=0,_=0;_<this.subCombos.length;_+=1)if(u=this._checkSubCombo(this.subCombos[_],u,l),u===-1)return!1;return!0}},{key:"isEqual",value:function(l){if(!l||typeof l!="string"&&n(l)!=="object"||(typeof l=="string"&&(l=new o(l)),this.subCombos.length!==l.subCombos.length))return!1;for(var u=0;u<this.subCombos.length;u+=1)if(this.subCombos[u].length!==l.subCombos[u].length)return!1;for(var _=0;_<this.subCombos.length;_+=1){for(var E=this.subCombos[_],g=l.subCombos[_].slice(0),O=0;O<E.length;O+=1){var R=E[O],w=g.indexOf(R);w>-1&&g.splice(w,1)}if(g.length!==0)return!1}return!0}},{key:"_checkSubCombo",value:function(l,u,_){l=l.slice(0),_=_.slice(u);for(var E=u,g=0;g<l.length;g+=1){var O=l[g];if(O[0]==="\\"){var R=O.slice(1);(R===o.comboDeliminator||R===o.keyDeliminator)&&(O=R)}var w=_.indexOf(O);if(w>-1&&(l.splice(g,1),g-=1,w>E&&(E=w),l.length===0))return E}return-1}}]),o}();y.comboDeliminator=">",y.keyDeliminator="+",y.parseComboStr=function(o){for(var m=y._splitStr(o,y.comboDeliminator),l=[],u=0;u<m.length;u+=1)l.push(y._splitStr(m[u],y.keyDeliminator));return l},y._splitStr=function(o,m){for(var l=o,u=m,_="",E=[],g=0;g<l.length;g+=1)g>0&&l[g]===u&&l[g-1]!=="\\"&&(E.push(_.trim()),_="",g+=1),_+=l[g];return _&&E.push(_.trim()),E};var I=function(){function o(m){s(this,o),this.localeName=m,this.activeTargetKeys=[],this.pressedKeys=[],this._appliedMacros=[],this._keyMap={},this._killKeyCodes=[],this._macros=[]}return r(o,[{key:"bindKeyCode",value:function(l,u){typeof u=="string"&&(u=[u]),this._keyMap[l]=u}},{key:"bindMacro",value:function(l,u){typeof u=="string"&&(u=[u]);var _=null;typeof u=="function"&&(_=u,u=null);var E={keyCombo:new y(l),keyNames:u,handler:_};this._macros.push(E)}},{key:"getKeyCodes",value:function(l){var u=[];for(var _ in this._keyMap){var E=this._keyMap[_].indexOf(l);E>-1&&u.push(_|0)}return u}},{key:"getKeyNames",value:function(l){return this._keyMap[l]||[]}},{key:"setKillKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.setKillKey(u[_]);return}this._killKeyCodes.push(l)}},{key:"pressKey",value:function(l){if(typeof l=="string"){for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.pressKey(u[_]);return}this.activeTargetKeys.length=0;for(var E=this.getKeyNames(l),g=0;g<E.length;g+=1)this.activeTargetKeys.push(E[g]),this.pressedKeys.indexOf(E[g])===-1&&this.pressedKeys.push(E[g]);this._applyMacros()}},{key:"releaseKey",value:function(l){if(typeof l=="string")for(var u=this.getKeyCodes(l),_=0;_<u.length;_+=1)this.releaseKey(u[_]);else{var E=this.getKeyNames(l),g=this._killKeyCodes.indexOf(l);if(g!==-1)this.pressedKeys.length=0;else for(var O=0;O<E.length;O+=1){var R=this.pressedKeys.indexOf(E[O]);R>-1&&this.pressedKeys.splice(R,1)}this.activeTargetKeys.length=0,this._clearMacros()}}},{key:"_applyMacros",value:function(){for(var l=this._macros.slice(0),u=0;u<l.length;u+=1){var _=l[u];if(_.keyCombo.check(this.pressedKeys)){_.handler&&(_.keyNames=_.handler(this.pressedKeys));for(var E=0;E<_.keyNames.length;E+=1)this.pressedKeys.indexOf(_.keyNames[E])===-1&&this.pressedKeys.push(_.keyNames[E]);this._appliedMacros.push(_)}}}},{key:"_clearMacros",value:function(){for(var l=0;l<this._appliedMacros.length;l+=1){var u=this._appliedMacros[l];if(!u.keyCombo.check(this.pressedKeys)){for(var _=0;_<u.keyNames.length;_+=1){var E=this.pressedKeys.indexOf(u.keyNames[_]);E>-1&&this.pressedKeys.splice(E,1)}u.handler&&(u.keyNames=null),this._appliedMacros.splice(l,1),l-=1}}}}]),o}(),P=function(){function o(m,l,u,_){s(this,o),this._locale=null,this._currentContext="",this._contexts={},this._listeners=[],this._appliedListeners=[],this._locales={},this._targetElement=null,this._targetWindow=null,this._targetPlatform="",this._targetUserAgent="",this._isModernBrowser=!1,this._targetKeyDownBinding=null,this._targetKeyUpBinding=null,this._targetResetBinding=null,this._paused=!1,this._contexts.global={listeners:this._listeners,targetWindow:m,targetElement:l,targetPlatform:u,targetUserAgent:_},this.setContext("global")}return r(o,[{key:"setLocale",value:function(l,u){var _=null;return typeof l=="string"?u?(_=new I(l),u(_,this._targetPlatform,this._targetUserAgent)):_=this._locales[l]||null:(_=l,l=_._localeName),this._locale=_,this._locales[l]=_,_&&(this._locale.pressedKeys=_.pressedKeys),this}},{key:"getLocale",value:function(l){return l||(l=this._locale.localeName),this._locales[l]||null}},{key:"bind",value:function(l,u,_,E){if((l===null||typeof l=="function")&&(E=_,_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var g=0;g<l.length;g+=1)this.bind(l[g],u,_);return this}return this._listeners.push({keyCombo:l?new y(l):null,pressHandler:u||null,releaseHandler:_||null,preventRepeat:!1,preventRepeatByDefault:E||!1,executingHandler:!1}),this}},{key:"addListener",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"on",value:function(l,u,_,E){return this.bind(l,u,_,E)}},{key:"bindPress",value:function(l,u,_){return this.bind(l,u,null,_)}},{key:"bindRelease",value:function(l,u){return this.bind(l,null,u,preventRepeatByDefault)}},{key:"unbind",value:function(l,u,_){if((l===null||typeof l=="function")&&(_=u,u=l,l=null),l&&n(l)==="object"&&typeof l.length=="number"){for(var E=0;E<l.length;E+=1)this.unbind(l[E],u,_);return this}for(var g=0;g<this._listeners.length;g+=1){var O=this._listeners[g],R=!l&&!O.keyCombo||O.keyCombo&&O.keyCombo.isEqual(l),w=!u&&!_||!u&&!O.pressHandler||u===O.pressHandler,Y=!u&&!_||!_&&!O.releaseHandler||_===O.releaseHandler;R&&w&&Y&&(this._listeners.splice(g,1),g-=1)}return this}},{key:"removeListener",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"off",value:function(l,u,_){return this.unbind(l,u,_)}},{key:"setContext",value:function(l){if(this._locale&&this.releaseAllKeys(),!this._contexts[l]){var u=this._contexts.global;this._contexts[l]={listeners:[],targetWindow:u.targetWindow,targetElement:u.targetElement,targetPlatform:u.targetPlatform,targetUserAgent:u.targetUserAgent}}var _=this._contexts[l];return this._currentContext=l,this._listeners=_.listeners,this.stop(),this.watch(_.targetWindow,_.targetElement,_.targetPlatform,_.targetUserAgent),this}},{key:"getContext",value:function(){return this._currentContext}},{key:"withContext",value:function(l,u){var _=this.getContext();return this.setContext(l),u(),this.setContext(_),this}},{key:"watch",value:function(l,u,_,E){var g=this;this.stop();var O=typeof globalThis<"u"?globalThis:typeof zt<"u"?zt:typeof window<"u"?window:{};if(!l){if(!O.addEventListener&&!O.attachEvent){if(this._currentContext==="global")return;throw new Error("Cannot find window functions addEventListener or attachEvent.")}l=O}if(typeof l.nodeType=="number"&&(E=_,_=u,u=l,l=O),!l.addEventListener&&!l.attachEvent)throw new Error("Cannot find addEventListener or attachEvent methods on targetWindow.");this._isModernBrowser=!!l.addEventListener;var R=l.navigator&&l.navigator.userAgent||"",w=l.navigator&&l.navigator.platform||"";u&&u!==null||(u=l.document),_&&_!==null||(_=w),E&&E!==null||(E=R),this._targetKeyDownBinding=function($){g.pressKey($.keyCode,$),g._handleCommandBug($,w)},this._targetKeyUpBinding=function($){g.releaseKey($.keyCode,$)},this._targetResetBinding=function($){g.releaseAllKeys($)},this._bindEvent(u,"keydown",this._targetKeyDownBinding),this._bindEvent(u,"keyup",this._targetKeyUpBinding),this._bindEvent(l,"focus",this._targetResetBinding),this._bindEvent(l,"blur",this._targetResetBinding),this._targetElement=u,this._targetWindow=l,this._targetPlatform=_,this._targetUserAgent=E;var Y=this._contexts[this._currentContext];return Y.targetWindow=this._targetWindow,Y.targetElement=this._targetElement,Y.targetPlatform=this._targetPlatform,Y.targetUserAgent=this._targetUserAgent,this}},{key:"stop",value:function(){if(!(!this._targetElement||!this._targetWindow))return this._unbindEvent(this._targetElement,"keydown",this._targetKeyDownBinding),this._unbindEvent(this._targetElement,"keyup",this._targetKeyUpBinding),this._unbindEvent(this._targetWindow,"focus",this._targetResetBinding),this._unbindEvent(this._targetWindow,"blur",this._targetResetBinding),this._targetWindow=null,this._targetElement=null,this}},{key:"pressKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressKey(l),this._applyBindings(u),this}},{key:"releaseKey",value:function(l,u){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.releaseKey(l),this._clearBindings(u),this}},{key:"releaseAllKeys",value:function(l){if(this._paused)return this;if(!this._locale)throw new Error("Locale not set");return this._locale.pressedKeys.length=0,this._clearBindings(l),this}},{key:"pause",value:function(){return this._paused?this:(this._locale&&this.releaseAllKeys(),this._paused=!0,this)}},{key:"resume",value:function(){return this._paused=!1,this}},{key:"reset",value:function(){return this.releaseAllKeys(),this._listeners.length=0,this}},{key:"_bindEvent",value:function(l,u,_){return this._isModernBrowser?l.addEventListener(u,_,!1):l.attachEvent("on"+u,_)}},{key:"_unbindEvent",value:function(l,u,_){return this._isModernBrowser?l.removeEventListener(u,_,!1):l.detachEvent("on"+u,_)}},{key:"_getGroupedListeners",value:function(){var l=[],u=[],_=this._listeners;return this._currentContext!=="global"&&(_=[].concat(i(_),i(this._contexts.global.listeners))),_.sort(function(E,g){return(g.keyCombo?g.keyCombo.keyNames.length:0)-(E.keyCombo?E.keyCombo.keyNames.length:0)}).forEach(function(E){for(var g=-1,O=0;O<u.length;O+=1)(u[O]===null&&E.keyCombo===null||u[O]!==null&&u[O].isEqual(E.keyCombo))&&(g=O);g===-1&&(g=u.length,u.push(E.keyCombo)),l[g]||(l[g]=[]),l[g].push(E)}),l}},{key:"_applyBindings",value:function(l){var u=this,_=!1;l||(l={}),l.preventRepeat=function(){_=!0},l.pressedKeys=this._locale.pressedKeys.slice(0);for(var E=this._locale.activeTargetKeys,g=this._locale.pressedKeys.slice(0),O=this._getGroupedListeners(),R=function($){var de=O[$],_e=de[0].keyCombo;if(_e===null||_e.check(g)&&E.some(function(Xe){return _e.keyNames.includes(Xe)})){for(var Ae=0;Ae<de.length;Ae+=1){var re=de[Ae];!re.executingHandler&&re.pressHandler&&!re.preventRepeat&&(re.executingHandler=!0,re.pressHandler.call(u,l),re.executingHandler=!1,(_||re.preventRepeatByDefault)&&(re.preventRepeat=!0,_=!1)),u._appliedListeners.indexOf(re)===-1&&u._appliedListeners.push(re)}if(_e)for(var ve=0;ve<_e.keyNames.length;ve+=1){var Ke=g.indexOf(_e.keyNames[ve]);Ke!==-1&&(g.splice(Ke,1),ve-=1)}}},w=0;w<O.length;w+=1)R(w)}},{key:"_clearBindings",value:function(l){l||(l={}),l.pressedKeys=this._locale.pressedKeys.slice(0);for(var u=0;u<this._appliedListeners.length;u+=1){var _=this._appliedListeners[u],E=_.keyCombo;(E===null||!E.check(this._locale.pressedKeys))&&(_.preventRepeat=!1,(E!==null||l.pressedKeys.length===0)&&(this._appliedListeners.splice(u,1),u-=1),!_.executingHandler&&_.releaseHandler&&(_.executingHandler=!0,_.releaseHandler.call(this,l),_.executingHandler=!1))}}},{key:"_handleCommandBug",value:function(l,u){var _=["shift","ctrl","alt","capslock","tab","command"];u.match("Mac")&&this._locale.pressedKeys.includes("command")&&!_.includes(this._locale.getKeyNames(l.keyCode)[0])&&this._targetKeyUpBinding(l)}}]),o}();function A(o,m,l){o.bindKeyCode(3,["cancel"]),o.bindKeyCode(8,["backspace"]),o.bindKeyCode(9,["tab"]),o.bindKeyCode(12,["clear"]),o.bindKeyCode(13,["enter"]),o.bindKeyCode(16,["shift"]),o.bindKeyCode(17,["ctrl"]),o.bindKeyCode(18,["alt","menu"]),o.bindKeyCode(19,["pause","break"]),o.bindKeyCode(20,["capslock"]),o.bindKeyCode(27,["escape","esc"]),o.bindKeyCode(32,["space","spacebar"]),o.bindKeyCode(33,["pageup"]),o.bindKeyCode(34,["pagedown"]),o.bindKeyCode(35,["end"]),o.bindKeyCode(36,["home"]),o.bindKeyCode(37,["left"]),o.bindKeyCode(38,["up"]),o.bindKeyCode(39,["right"]),o.bindKeyCode(40,["down"]),o.bindKeyCode(41,["select"]),o.bindKeyCode(42,["printscreen"]),o.bindKeyCode(43,["execute"]),o.bindKeyCode(44,["snapshot"]),o.bindKeyCode(45,["insert","ins"]),o.bindKeyCode(46,["delete","del"]),o.bindKeyCode(47,["help"]),o.bindKeyCode(145,["scrolllock","scroll"]),o.bindKeyCode(188,["comma",","]),o.bindKeyCode(190,["period","."]),o.bindKeyCode(191,["slash","forwardslash","/"]),o.bindKeyCode(192,["graveaccent","`"]),o.bindKeyCode(219,["openbracket","["]),o.bindKeyCode(220,["backslash","\\"]),o.bindKeyCode(221,["closebracket","]"]),o.bindKeyCode(222,["apostrophe","'"]),o.bindKeyCode(48,["zero","0"]),o.bindKeyCode(49,["one","1"]),o.bindKeyCode(50,["two","2"]),o.bindKeyCode(51,["three","3"]),o.bindKeyCode(52,["four","4"]),o.bindKeyCode(53,["five","5"]),o.bindKeyCode(54,["six","6"]),o.bindKeyCode(55,["seven","7"]),o.bindKeyCode(56,["eight","8"]),o.bindKeyCode(57,["nine","9"]),o.bindKeyCode(96,["numzero","num0"]),o.bindKeyCode(97,["numone","num1"]),o.bindKeyCode(98,["numtwo","num2"]),o.bindKeyCode(99,["numthree","num3"]),o.bindKeyCode(100,["numfour","num4"]),o.bindKeyCode(101,["numfive","num5"]),o.bindKeyCode(102,["numsix","num6"]),o.bindKeyCode(103,["numseven","num7"]),o.bindKeyCode(104,["numeight","num8"]),o.bindKeyCode(105,["numnine","num9"]),o.bindKeyCode(106,["nummultiply","num*"]),o.bindKeyCode(107,["numadd","num+"]),o.bindKeyCode(108,["numenter"]),o.bindKeyCode(109,["numsubtract","num-"]),o.bindKeyCode(110,["numdecimal","num."]),o.bindKeyCode(111,["numdivide","num/"]),o.bindKeyCode(144,["numlock","num"]),o.bindKeyCode(112,["f1"]),o.bindKeyCode(113,["f2"]),o.bindKeyCode(114,["f3"]),o.bindKeyCode(115,["f4"]),o.bindKeyCode(116,["f5"]),o.bindKeyCode(117,["f6"]),o.bindKeyCode(118,["f7"]),o.bindKeyCode(119,["f8"]),o.bindKeyCode(120,["f9"]),o.bindKeyCode(121,["f10"]),o.bindKeyCode(122,["f11"]),o.bindKeyCode(123,["f12"]),o.bindKeyCode(124,["f13"]),o.bindKeyCode(125,["f14"]),o.bindKeyCode(126,["f15"]),o.bindKeyCode(127,["f16"]),o.bindKeyCode(128,["f17"]),o.bindKeyCode(129,["f18"]),o.bindKeyCode(130,["f19"]),o.bindKeyCode(131,["f20"]),o.bindKeyCode(132,["f21"]),o.bindKeyCode(133,["f22"]),o.bindKeyCode(134,["f23"]),o.bindKeyCode(135,["f24"]),o.bindMacro("shift + `",["tilde","~"]),o.bindMacro("shift + 1",["exclamation","exclamationpoint","!"]),o.bindMacro("shift + 2",["at","@"]),o.bindMacro("shift + 3",["number","#"]),o.bindMacro("shift + 4",["dollar","dollars","dollarsign","$"]),o.bindMacro("shift + 5",["percent","%"]),o.bindMacro("shift + 6",["caret","^"]),o.bindMacro("shift + 7",["ampersand","and","&"]),o.bindMacro("shift + 8",["asterisk","*"]),o.bindMacro("shift + 9",["openparen","("]),o.bindMacro("shift + 0",["closeparen",")"]),o.bindMacro("shift + -",["underscore","_"]),o.bindMacro("shift + =",["plus","+"]),o.bindMacro("shift + [",["opencurlybrace","opencurlybracket","{"]),o.bindMacro("shift + ]",["closecurlybrace","closecurlybracket","}"]),o.bindMacro("shift + \\",["verticalbar","|"]),o.bindMacro("shift + ;",["colon",":"]),o.bindMacro("shift + '",["quotationmark","'"]),o.bindMacro("shift + !,",["openanglebracket","<"]),o.bindMacro("shift + .",["closeanglebracket",">"]),o.bindMacro("shift + /",["questionmark","?"]),m.match("Mac")?o.bindMacro("command",["mod","modifier"]):o.bindMacro("ctrl",["mod","modifier"]);for(var u=65;u<=90;u+=1){var _=String.fromCharCode(u+32),E=String.fromCharCode(u);o.bindKeyCode(u,_),o.bindMacro("shift + "+_,E),o.bindMacro("capslock + "+_,E)}var g=l.match("Firefox")?59:186,O=l.match("Firefox")?173:189,R=l.match("Firefox")?61:187,w,Y;m.match("Mac")&&(l.match("Safari")||l.match("Chrome"))?(w=91,Y=93):m.match("Mac")&&l.match("Opera")?(w=17,Y=17):m.match("Mac")&&l.match("Firefox")&&(w=224,Y=224),o.bindKeyCode(g,["semicolon",";"]),o.bindKeyCode(O,["dash","-"]),o.bindKeyCode(R,["equal","equalsign","="]),o.bindKeyCode(w,["command","windows","win","super","leftcommand","leftwindows","leftwin","leftsuper"]),o.bindKeyCode(Y,["command","windows","win","super","rightcommand","rightwindows","rightwin","rightsuper"]),o.setKillKey("command")}var S=new P;return S.setLocale("us",A),S.Keyboard=P,S.Locale=I,S.KeyCombo=y,S})}(ze)),ze.exports}var gs=hs();const ps=en(gs);/*!
3
3
  * shared v11.1.1
4
4
  * (c) 2025 kazuya kawaguchi
5
5
  * Released under the MIT License.
6
- */const oe=typeof window<"u";let ae,Le;if(process.env.NODE_ENV!=="production"){const e=oe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ae=t=>{e.mark(t)},Le=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Es=/\{([0-9a-zA-Z]+)\}/g;function ze(e,...t){return t.length===1&&K(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Es,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ce=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bs=(e,t,n)=>ys({l:e,k:t,s:n}),ys=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Z=e=>typeof e=="number"&&isFinite(e),Ns=e=>mt(e)==="[object Date]",Pe=e=>mt(e)==="[object RegExp]",et=e=>F(e)&&Object.keys(e).length===0,z=Object.assign,vs=Object.create,W=(e=null)=>vs(e);let nn;const Ce=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function sn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ts=Object.prototype.hasOwnProperty;function le(e,t){return Ts.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",k=e=>typeof e=="string",U=e=>typeof e=="boolean",K=e=>e!==null&&typeof e=="object",Ls=e=>K(e)&&B(e.then)&&B(e.catch),rn=Object.prototype.toString,mt=e=>rn.call(e),F=e=>mt(e)==="[object Object]",Cs=e=>e==null?"":H(e)||F(e)&&e.toString===rn?JSON.stringify(e,null,2):String(e);function ht(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const an=2;function Os(e,t=0,n=e.length){const s=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<s.length;i++)if(a+=s[i].length+1,a>=t){for(let c=i-an;c<=i+an||n>a;c++){if(c<0||c>=s.length)continue;const f=c+1;r.push(`${f}${" ".repeat(3-String(f).length)}| ${s[c]}`);const p=s[c].length;if(c===i){const N=t-(a-p)+1,v=Math.max(1,n>a?p-N:n-t);r.push(" | "+" ".repeat(N)+"^".repeat(v))}else if(c>i){if(n>a){const N=Math.max(Math.min(n-a,p),1);r.push(" | "+"^".repeat(N))}a+=p+1}}break}return r.join(`
7
- `)}function pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const on={};function gt(e){on[e]||(on[e]=!0,pe(e))}function pt(){const e=new Map;return{events:e,on(n,s){const a=e.get(n);a&&a.push(s)||e.set(n,[s])},off(n,s){const a=e.get(n);a&&a.splice(a.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(a=>a(s)),(e.get("*")||[]).slice().map(a=>a(n,s))}}}const tt=e=>!K(e)||H(e);function nt(e,t){if(tt(e)||tt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:a}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(K(s[r])&&!K(a[r])&&(a[r]=Array.isArray(s[r])?[]:W()),tt(a[r])||tt(s[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]}))})}}/*!
6
+ */const oe=typeof window<"u";let ae,Te;if(process.env.NODE_ENV!=="production"){const e=oe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ae=t=>{e.mark(t)},Te=(t,n,s)=>{e.measure(t,n,s),e.clearMarks(n),e.clearMarks(s)})}const Es=/\{([0-9a-zA-Z]+)\}/g;function et(e,...t){return t.length===1&&U(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Es,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ce=(e,t=!1)=>t?Symbol.for(e):Symbol(e),bs=(e,t,n)=>ys({l:e,k:t,s:n}),ys=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Z=e=>typeof e=="number"&&isFinite(e),Ns=e=>mt(e)==="[object Date]",Pe=e=>mt(e)==="[object RegExp]",tt=e=>F(e)&&Object.keys(e).length===0,z=Object.assign,vs=Object.create,W=(e=null)=>vs(e);let nn;const Ce=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:W());function sn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ls=Object.prototype.hasOwnProperty;function le(e,t){return Ls.call(e,t)}const j=Array.isArray,B=e=>typeof e=="function",k=e=>typeof e=="string",K=e=>typeof e=="boolean",U=e=>e!==null&&typeof e=="object",Ts=e=>U(e)&&B(e.then)&&B(e.catch),rn=Object.prototype.toString,mt=e=>rn.call(e),F=e=>mt(e)==="[object Object]",Cs=e=>e==null?"":j(e)||F(e)&&e.toString===rn?JSON.stringify(e,null,2):String(e);function ht(e,t=""){return e.reduce((n,s,a)=>a===0?n+s:n+t+s,"")}const an=2;function Os(e,t=0,n=e.length){const s=e.split(/\r?\n/);let a=0;const r=[];for(let i=0;i<s.length;i++)if(a+=s[i].length+1,a>=t){for(let c=i-an;c<=i+an||n>a;c++){if(c<0||c>=s.length)continue;const f=c+1;r.push(`${f}${" ".repeat(3-String(f).length)}| ${s[c]}`);const p=s[c].length;if(c===i){const N=t-(a-p)+1,v=Math.max(1,n>a?p-N:n-t);r.push(" | "+" ".repeat(N)+"^".repeat(v))}else if(c>i){if(n>a){const N=Math.max(Math.min(n-a,p),1);r.push(" | "+"^".repeat(N))}a+=p+1}}break}return r.join(`
7
+ `)}function pe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const on={};function gt(e){on[e]||(on[e]=!0,pe(e))}function pt(){const e=new Map;return{events:e,on(n,s){const a=e.get(n);a&&a.push(s)||e.set(n,[s])},off(n,s){const a=e.get(n);a&&a.splice(a.indexOf(s)>>>0,1)},emit(n,s){(e.get(n)||[]).slice().map(a=>a(s)),(e.get("*")||[]).slice().map(a=>a(n,s))}}}const nt=e=>!U(e)||j(e);function st(e,t){if(nt(e)||nt(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:a}=n.pop();Object.keys(s).forEach(r=>{r!=="__proto__"&&(U(s[r])&&!U(a[r])&&(a[r]=Array.isArray(s[r])?[]:W()),nt(a[r])||nt(s[r])?a[r]=s[r]:n.push({src:s[r],des:a[r]}))})}}/*!
8
8
  * message-compiler v11.1.1
9
9
  * (c) 2025 kazuya kawaguchi
10
10
  * Released under the MIT License.
11
- */function Is(e,t,n){return{line:e,column:t,offset:n}}function Et(e,t,n){return{start:e,end:t}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},As=17,ks={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Re(e,t,n={}){const{domain:s,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?ze((a||ks)[e]||"",...r||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=s,c}function Ss(e){throw e}const Ds=/<\/?[\w\s="/.':;#-\/]+>/,Ps=e=>Ds.test(e),me=" ",Rs="\r",te=`
12
- `,Ms="\u2028",ws="\u2029";function Fs(e){const t=e;let n=0,s=1,a=1,r=0;const i=g=>t[g]===Rs&&t[g+1]===te,c=g=>t[g]===te,f=g=>t[g]===ws,p=g=>t[g]===Ms,N=g=>i(g)||c(g)||f(g)||p(g),v=()=>n,y=()=>s,I=()=>a,P=()=>r,A=g=>i(g)||f(g)||p(g)?te:t[g],S=()=>A(n),o=()=>A(n+r);function m(){return r=0,N(n)&&(s++,a=0),i(n)&&n++,n++,a++,t[n]}function l(){return i(n+r)&&r++,r++,t[n+r]}function u(){n=0,s=1,a=1,r=0}function _(g=0){r=g}function E(){const g=n+r;for(;g!==n;)m();r=0}return{index:v,line:y,column:I,peekOffset:P,charAt:A,currentChar:S,currentPeek:o,next:m,peek:l,reset:u,resetPeek:_,skipToPeek:E}}const Ee=void 0,Ks=".",ln="'",Us="tokenizer";function Vs(e,t={}){const n=t.location!==!1,s=Fs(e),a=()=>s.index(),r=()=>Is(s.line(),s.column(),s.index()),i=r(),c=a(),f={currentType:13,offset:c,startLoc:i,endLoc:i,lastType:13,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},p=()=>f,{onError:N}=t;function v(d,h,T,...D){const j=p();if(h.column+=T,h.offset+=T,N){const X=n?Et(j.startLoc,h):null,V=Re(d,X,{domain:Us,args:D});N(V)}}function y(d,h,T){d.endLoc=r(),d.currentType=h;const D={type:h};return n&&(D.loc=Et(d.startLoc,d.endLoc)),T!=null&&(D.value=T),D}const I=d=>y(d,13);function P(d,h){return d.currentChar()===h?(d.next(),h):(v(M.EXPECTED_TOKEN,r(),0,h),"")}function A(d){let h="";for(;d.currentPeek()===me||d.currentPeek()===te;)h+=d.currentPeek(),d.peek();return h}function S(d){const h=A(d);return d.skipToPeek(),h}function o(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function m(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=48&&h<=57}function l(d,h){const{currentType:T}=h;if(T!==2)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:T}=h;if(T!==2)return!1;A(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),j=m(D);return d.resetPeek(),j}function _(d,h){const{currentType:T}=h;if(T!==2)return!1;A(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:T}=h;if(T!==7)return!1;A(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function g(d,h){const{currentType:T}=h;if(T!==8)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function O(d,h){const{currentType:T}=h;if(!(T===7||T===11))return!1;A(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function R(d,h){const{currentType:T}=h;if(T!==9)return!1;const D=()=>{const X=d.currentPeek();return X==="{"?o(d.peek()):X==="@"||X==="|"||X===":"||X==="."||X===me||!X?!1:X===te?(d.peek(),D()):Y(d,!1)},j=D();return d.resetPeek(),j}function w(d){A(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function Y(d,h=!0){const T=(j=!1,X="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?j:V==="|"?!(X===me||X===te):V===me?(d.peek(),T(!0,me)):V===te?(d.peek(),T(!0,te)):!0},D=T();return h&&d.resetPeek(),D}function $(d,h){const T=d.currentChar();return T===Ee?Ee:h(T)?(d.next(),T):null}function de(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function _e(d){return $(d,de)}function Ae(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function re(d){return $(d,Ae)}function ve(d){const h=d.charCodeAt(0);return h>=48&&h<=57}function Ke(d){return $(d,ve)}function je(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function ge(d){return $(d,je)}function Xe(d){let h="",T="";for(;h=Ke(d);)T+=h;return T}function Bt(d){let h="";for(;;){const T=d.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===me||T===te)if(Y(d))h+=T,d.next();else{if(w(d))break;h+=T,d.next()}else h+=T,d.next()}return h}function Gt(d){S(d);let h="",T="";for(;h=re(d);)T+=h;return d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T}function Yt(d){S(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${Xe(d)}`):h+=Xe(d),d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h}function Ht(d){return d!==ln&&d!==te}function ds(d){S(d),P(d,"'");let h="",T="";for(;h=$(d,Ht);)h==="\\"?T+=jt(d):T+=h;const D=d.currentChar();return D===te||D===Ee?(v(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===te&&(d.next(),P(d,"'")),T):(P(d,"'"),T)}function jt(d){const h=d.currentChar();switch(h){case"\\":case"'":return d.next(),`\\${h}`;case"u":return dt(d,h,4);case"U":return dt(d,h,6);default:return v(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,h),""}}function dt(d,h,T){P(d,h);let D="";for(let j=0;j<T;j++){const X=ge(d);if(!X){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${h}${D}${d.currentChar()}`);break}D+=X}return`\\${h}${D}`}function Xt(d){return d!=="{"&&d!=="}"&&d!==me&&d!==te}function qt(d){S(d);let h="",T="";for(;h=$(d,Xt);)T+=h;return T}function Jt(d){let h="",T="";for(;h=_e(d);)T+=h;return T}function Qt(d){const h=T=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===me?T:(T+=D,d.next(),h(T))};return h("")}function qe(d){S(d);const h=P(d,"|");return S(d),h}function Je(d,h){let T=null;switch(d.currentChar()){case"{":return h.braceNest>=1&&v(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),T=y(h,2,"{"),S(d),h.braceNest++,T;case"}":return h.braceNest>0&&h.currentType===2&&v(M.EMPTY_PLACEHOLDER,r(),0),d.next(),T=y(h,3,"}"),h.braceNest--,h.braceNest>0&&S(d),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),T;case"@":return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T=ke(d,h)||I(h),h.braceNest=0,T;default:{let j=!0,X=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),T=y(h,1,qe(d)),h.braceNest=0,h.inLinked=!1,T;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h.braceNest=0,Qe(d,h);if(j=l(d,h))return T=y(h,4,Gt(d)),S(d),T;if(X=u(d,h))return T=y(h,5,Yt(d)),S(d),T;if(V=_(d,h))return T=y(h,6,ds(d)),S(d),T;if(!j&&!X&&!V)return T=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,T.value),S(d),T;break}}return T}function ke(d,h){const{currentType:T}=h;let D=null;const j=d.currentChar();switch((T===7||T===8||T===11||T===9)&&(j===te||j===me)&&v(M.INVALID_LINKED_FORMAT,r(),0),j){case"@":return d.next(),D=y(h,7,"@"),h.inLinked=!0,D;case".":return S(d),d.next(),y(h,8,".");case":":return S(d),d.next(),y(h,9,":");default:return w(d)?(D=y(h,1,qe(d)),h.braceNest=0,h.inLinked=!1,D):E(d,h)||O(d,h)?(S(d),ke(d,h)):g(d,h)?(S(d),y(h,11,Jt(d))):R(d,h)?(S(d),j==="{"?Je(d,h)||D:y(h,10,Qt(d))):(T===7&&v(M.INVALID_LINKED_FORMAT,r(),0),h.braceNest=0,h.inLinked=!1,Qe(d,h))}}function Qe(d,h){let T={type:13};if(h.braceNest>0)return Je(d,h)||I(h);if(h.inLinked)return ke(d,h)||I(h);switch(d.currentChar()){case"{":return Je(d,h)||I(h);case"}":return v(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),y(h,3,"}");case"@":return ke(d,h)||I(h);default:{if(w(d))return T=y(h,1,qe(d)),h.braceNest=0,h.inLinked=!1,T;if(Y(d))return y(h,0,Bt(d));break}}return T}function Zt(){const{currentType:d,offset:h,startLoc:T,endLoc:D}=f;return f.lastType=d,f.lastOffset=h,f.lastStartLoc=T,f.lastEndLoc=D,f.offset=a(),f.startLoc=r(),s.currentChar()===Ee?y(f,13):Qe(s,f)}return{nextToken:Zt,currentOffset:a,currentPosition:r,context:p}}const xs="parser",$s=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ws(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Bs(e={}){const t=e.location!==!1,{onError:n}=e;function s(o,m,l,u,..._){const E=o.currentPosition();if(E.offset+=u,E.column+=u,n){const g=t?Et(l,E):null,O=Re(m,g,{domain:xs,args:_});n(O)}}function a(o,m,l){const u={type:o};return t&&(u.start=m,u.end=m,u.loc={start:l,end:l}),u}function r(o,m,l,u){t&&(o.end=m,o.loc&&(o.loc.end=l))}function i(o,m){const l=o.context(),u=a(3,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function c(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(5,u,_);return E.index=parseInt(m,10),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function f(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(4,u,_);return E.key=m,o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function p(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(9,u,_);return E.value=m.replace($s,Ws),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function N(o){const m=o.nextToken(),l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(8,u,_);return m.type!==11?(s(o,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,l.lastStartLoc,0),E.value="",r(E,u,_),{nextConsumeToken:m,node:E}):(m.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,ue(m)),E.value=m.value||"",r(E,o.currentOffset(),o.currentPosition()),{node:E})}function v(o,m){const l=o.context(),u=a(7,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function y(o){const m=o.context(),l=a(6,m.offset,m.startLoc);let u=o.nextToken();if(u.type===8){const _=N(o);l.modifier=_.node,u=_.nextConsumeToken||o.nextToken()}switch(u.type!==9&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),u=o.nextToken(),u.type===2&&(u=o.nextToken()),u.type){case 10:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=v(o,u.value||"");break;case 4:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=f(o,u.value||"");break;case 5:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=c(o,u.value||"");break;case 6:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=p(o,u.value||"");break;default:{s(o,M.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const _=o.context(),E=a(7,_.offset,_.startLoc);return E.value="",r(E,_.offset,_.startLoc),l.key=E,r(l,_.offset,_.startLoc),{nextConsumeToken:u,node:l}}}return r(l,o.currentOffset(),o.currentPosition()),{node:l}}function I(o){const m=o.context(),l=m.currentType===1?o.currentOffset():m.offset,u=m.currentType===1?m.endLoc:m.startLoc,_=a(2,l,u);_.items=[];let E=null;do{const R=E||o.nextToken();switch(E=null,R.type){case 0:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(i(o,R.value||""));break;case 5:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(c(o,R.value||""));break;case 4:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(f(o,R.value||""));break;case 6:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(p(o,R.value||""));break;case 7:{const w=y(o);_.items.push(w.node),E=w.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:o.currentOffset(),O=m.currentType===1?m.lastEndLoc:o.currentPosition();return r(_,g,O),_}function P(o,m,l,u){const _=o.context();let E=u.items.length===0;const g=a(1,m,l);g.cases=[],g.cases.push(u);do{const O=I(o);E||(E=O.items.length===0),g.cases.push(O)}while(_.currentType!==13);return E&&s(o,M.MUST_HAVE_MESSAGES_IN_PLURAL,l,0),r(g,o.currentOffset(),o.currentPosition()),g}function A(o){const m=o.context(),{offset:l,startLoc:u}=m,_=I(o);return m.currentType===13?_:P(o,l,u,_)}function S(o){const m=Vs(o,z({},e)),l=m.context(),u=a(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=o),u.body=A(m),e.onCacheKey&&(u.cacheKey=e.onCacheKey(o)),l.currentType!==13&&s(m,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,o[l.offset]||""),r(u,m.currentOffset(),m.currentPosition()),u}return{parse:S}}function ue(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Gs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function cn(e,t){for(let n=0;n<e.length;n++)bt(e[n],t)}function bt(e,t){switch(e.type){case 1:cn(e.cases,t),t.helper("plural");break;case 2:cn(e.items,t);break;case 6:{bt(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 Ys(e,t={}){const n=Gs(e);n.helper("normalize"),e.body&&bt(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Hs(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ht(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const js="minifier";function Me(e){switch(e.t=e.type,e.type){case 0:{const t=e;Me(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Me(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Me(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Me(t.key),t.k=t.key,delete t.key,t.modifier&&(Me(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:js,args:[e.type]})}delete e.type}const Xs="parser";function qs(e,t){const{filename:n,breakLineCode:s,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(A,S){i.code+=A}function p(A,S=!0){const o=S?s:"";f(a?o+" ".repeat(A):o)}function N(A=!0){const S=++i.indentLevel;A&&p(S)}function v(A=!0){const S=--i.indentLevel;A&&p(S)}function y(){p(i.indentLevel)}return{context:c,push:f,indent:N,deindent:v,newline:y,helper:A=>`_${A}`,needIndent:()=>i.needIndent}}function Js(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),we(e,t.key),t.modifier?(e.push(", "),we(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Qs(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const a=t.items.length;for(let r=0;r<a&&(we(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Zs(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const a=t.cases.length;for(let r=0;r<a&&(we(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function zs(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:zs(e,t);break;case 1:Zs(e,t);break;case 2:Qs(e,t);break;case 6:Js(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:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Xs,args:[t.type]})}}const er=(e,t={})=>{const n=k(t.mode)?t.mode:"normal",s=k(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
11
+ */function Is(e,t,n){return{line:e,column:t,offset:n}}function Et(e,t,n){return{start:e,end:t}}const M={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},As=17,ks={[M.EXPECTED_TOKEN]:"Expected token: '{0}'",[M.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[M.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[M.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[M.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[M.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[M.EMPTY_PLACEHOLDER]:"Empty placeholder",[M.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[M.INVALID_LINKED_FORMAT]:"Invalid linked format",[M.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[M.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[M.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[M.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[M.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[M.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Re(e,t,n={}){const{domain:s,messages:a,args:r}=n,i=process.env.NODE_ENV!=="production"?et((a||ks)[e]||"",...r||[]):e,c=new SyntaxError(String(i));return c.code=e,t&&(c.location=t),c.domain=s,c}function Ss(e){throw e}const Ds=/<\/?[\w\s="/.':;#-\/]+>/,Ps=e=>Ds.test(e),me=" ",Rs="\r",te=`
12
+ `,Ms="\u2028",ws="\u2029";function Fs(e){const t=e;let n=0,s=1,a=1,r=0;const i=g=>t[g]===Rs&&t[g+1]===te,c=g=>t[g]===te,f=g=>t[g]===ws,p=g=>t[g]===Ms,N=g=>i(g)||c(g)||f(g)||p(g),v=()=>n,y=()=>s,I=()=>a,P=()=>r,A=g=>i(g)||f(g)||p(g)?te:t[g],S=()=>A(n),o=()=>A(n+r);function m(){return r=0,N(n)&&(s++,a=0),i(n)&&n++,n++,a++,t[n]}function l(){return i(n+r)&&r++,r++,t[n+r]}function u(){n=0,s=1,a=1,r=0}function _(g=0){r=g}function E(){const g=n+r;for(;g!==n;)m();r=0}return{index:v,line:y,column:I,peekOffset:P,charAt:A,currentChar:S,currentPeek:o,next:m,peek:l,reset:u,resetPeek:_,skipToPeek:E}}const Ee=void 0,Us=".",ln="'",Ks="tokenizer";function Vs(e,t={}){const n=t.location!==!1,s=Fs(e),a=()=>s.index(),r=()=>Is(s.line(),s.column(),s.index()),i=r(),c=a(),f={currentType:13,offset:c,startLoc:i,endLoc:i,lastType:13,lastOffset:c,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},p=()=>f,{onError:N}=t;function v(d,h,L,...D){const X=p();if(h.column+=L,h.offset+=L,N){const q=n?Et(X.startLoc,h):null,V=Re(d,q,{domain:Ks,args:D});N(V)}}function y(d,h,L){d.endLoc=r(),d.currentType=h;const D={type:h};return n&&(D.loc=Et(d.startLoc,d.endLoc)),L!=null&&(D.value=L),D}const I=d=>y(d,13);function P(d,h){return d.currentChar()===h?(d.next(),h):(v(M.EXPECTED_TOKEN,r(),0,h),"")}function A(d){let h="";for(;d.currentPeek()===me||d.currentPeek()===te;)h+=d.currentPeek(),d.peek();return h}function S(d){const h=A(d);return d.skipToPeek(),h}function o(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h===95}function m(d){if(d===Ee)return!1;const h=d.charCodeAt(0);return h>=48&&h<=57}function l(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function u(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=d.currentPeek()==="-"?d.peek():d.currentPeek(),X=m(D);return d.resetPeek(),X}function _(d,h){const{currentType:L}=h;if(L!==2)return!1;A(d);const D=d.currentPeek()===ln;return d.resetPeek(),D}function E(d,h){const{currentType:L}=h;if(L!==7)return!1;A(d);const D=d.currentPeek()===".";return d.resetPeek(),D}function g(d,h){const{currentType:L}=h;if(L!==8)return!1;A(d);const D=o(d.currentPeek());return d.resetPeek(),D}function O(d,h){const{currentType:L}=h;if(!(L===7||L===11))return!1;A(d);const D=d.currentPeek()===":";return d.resetPeek(),D}function R(d,h){const{currentType:L}=h;if(L!==9)return!1;const D=()=>{const q=d.currentPeek();return q==="{"?o(d.peek()):q==="@"||q==="|"||q===":"||q==="."||q===me||!q?!1:q===te?(d.peek(),D()):Y(d,!1)},X=D();return d.resetPeek(),X}function w(d){A(d);const h=d.currentPeek()==="|";return d.resetPeek(),h}function Y(d,h=!0){const L=(X=!1,q="")=>{const V=d.currentPeek();return V==="{"||V==="@"||!V?X:V==="|"?!(q===me||q===te):V===me?(d.peek(),L(!0,me)):V===te?(d.peek(),L(!0,te)):!0},D=L();return h&&d.resetPeek(),D}function $(d,h){const L=d.currentChar();return L===Ee?Ee:h(L)?(d.next(),L):null}function de(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36}function _e(d){return $(d,de)}function Ae(d){const h=d.charCodeAt(0);return h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===95||h===36||h===45}function re(d){return $(d,Ae)}function ve(d){const h=d.charCodeAt(0);return h>=48&&h<=57}function Ke(d){return $(d,ve)}function Xe(d){const h=d.charCodeAt(0);return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function ge(d){return $(d,Xe)}function qe(d){let h="",L="";for(;h=Ke(d);)L+=h;return L}function Bt(d){let h="";for(;;){const L=d.currentChar();if(L==="{"||L==="}"||L==="@"||L==="|"||!L)break;if(L===me||L===te)if(Y(d))h+=L,d.next();else{if(w(d))break;h+=L,d.next()}else h+=L,d.next()}return h}function Gt(d){S(d);let h="",L="";for(;h=re(d);)L+=h;return d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L}function Yt(d){S(d);let h="";return d.currentChar()==="-"?(d.next(),h+=`-${qe(d)}`):h+=qe(d),d.currentChar()===Ee&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h}function Ht(d){return d!==ln&&d!==te}function ds(d){S(d),P(d,"'");let h="",L="";for(;h=$(d,Ht);)h==="\\"?L+=jt(d):L+=h;const D=d.currentChar();return D===te||D===Ee?(v(M.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),D===te&&(d.next(),P(d,"'")),L):(P(d,"'"),L)}function jt(d){const h=d.currentChar();switch(h){case"\\":case"'":return d.next(),`\\${h}`;case"u":return dt(d,h,4);case"U":return dt(d,h,6);default:return v(M.UNKNOWN_ESCAPE_SEQUENCE,r(),0,h),""}}function dt(d,h,L){P(d,h);let D="";for(let X=0;X<L;X++){const q=ge(d);if(!q){v(M.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${h}${D}${d.currentChar()}`);break}D+=q}return`\\${h}${D}`}function Xt(d){return d!=="{"&&d!=="}"&&d!==me&&d!==te}function qt(d){S(d);let h="",L="";for(;h=$(d,Xt);)L+=h;return L}function Jt(d){let h="",L="";for(;h=_e(d);)L+=h;return L}function Qt(d){const h=L=>{const D=d.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===me?L:(L+=D,d.next(),h(L))};return h("")}function Je(d){S(d);const h=P(d,"|");return S(d),h}function Qe(d,h){let L=null;switch(d.currentChar()){case"{":return h.braceNest>=1&&v(M.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),d.next(),L=y(h,2,"{"),S(d),h.braceNest++,L;case"}":return h.braceNest>0&&h.currentType===2&&v(M.EMPTY_PLACEHOLDER,r(),0),d.next(),L=y(h,3,"}"),h.braceNest--,h.braceNest>0&&S(d),h.inLinked&&h.braceNest===0&&(h.inLinked=!1),L;case"@":return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=ke(d,h)||I(h),h.braceNest=0,L;default:{let X=!0,q=!0,V=!0;if(w(d))return h.braceNest>0&&v(M.UNTERMINATED_CLOSING_BRACE,r(),0),L=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,L;if(h.braceNest>0&&(h.currentType===4||h.currentType===5||h.currentType===6))return v(M.UNTERMINATED_CLOSING_BRACE,r(),0),h.braceNest=0,Ze(d,h);if(X=l(d,h))return L=y(h,4,Gt(d)),S(d),L;if(q=u(d,h))return L=y(h,5,Yt(d)),S(d),L;if(V=_(d,h))return L=y(h,6,ds(d)),S(d),L;if(!X&&!q&&!V)return L=y(h,12,qt(d)),v(M.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,L.value),S(d),L;break}}return L}function ke(d,h){const{currentType:L}=h;let D=null;const X=d.currentChar();switch((L===7||L===8||L===11||L===9)&&(X===te||X===me)&&v(M.INVALID_LINKED_FORMAT,r(),0),X){case"@":return d.next(),D=y(h,7,"@"),h.inLinked=!0,D;case".":return S(d),d.next(),y(h,8,".");case":":return S(d),d.next(),y(h,9,":");default:return w(d)?(D=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,D):E(d,h)||O(d,h)?(S(d),ke(d,h)):g(d,h)?(S(d),y(h,11,Jt(d))):R(d,h)?(S(d),X==="{"?Qe(d,h)||D:y(h,10,Qt(d))):(L===7&&v(M.INVALID_LINKED_FORMAT,r(),0),h.braceNest=0,h.inLinked=!1,Ze(d,h))}}function Ze(d,h){let L={type:13};if(h.braceNest>0)return Qe(d,h)||I(h);if(h.inLinked)return ke(d,h)||I(h);switch(d.currentChar()){case"{":return Qe(d,h)||I(h);case"}":return v(M.UNBALANCED_CLOSING_BRACE,r(),0),d.next(),y(h,3,"}");case"@":return ke(d,h)||I(h);default:{if(w(d))return L=y(h,1,Je(d)),h.braceNest=0,h.inLinked=!1,L;if(Y(d))return y(h,0,Bt(d));break}}return L}function Zt(){const{currentType:d,offset:h,startLoc:L,endLoc:D}=f;return f.lastType=d,f.lastOffset=h,f.lastStartLoc=L,f.lastEndLoc=D,f.offset=a(),f.startLoc=r(),s.currentChar()===Ee?y(f,13):Ze(s,f)}return{nextToken:Zt,currentOffset:a,currentPosition:r,context:p}}const xs="parser",$s=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ws(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Bs(e={}){const t=e.location!==!1,{onError:n}=e;function s(o,m,l,u,..._){const E=o.currentPosition();if(E.offset+=u,E.column+=u,n){const g=t?Et(l,E):null,O=Re(m,g,{domain:xs,args:_});n(O)}}function a(o,m,l){const u={type:o};return t&&(u.start=m,u.end=m,u.loc={start:l,end:l}),u}function r(o,m,l,u){t&&(o.end=m,o.loc&&(o.loc.end=l))}function i(o,m){const l=o.context(),u=a(3,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function c(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(5,u,_);return E.index=parseInt(m,10),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function f(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(4,u,_);return E.key=m,o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function p(o,m){const l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(9,u,_);return E.value=m.replace($s,Ws),o.nextToken(),r(E,o.currentOffset(),o.currentPosition()),E}function N(o){const m=o.nextToken(),l=o.context(),{lastOffset:u,lastStartLoc:_}=l,E=a(8,u,_);return m.type!==11?(s(o,M.UNEXPECTED_EMPTY_LINKED_MODIFIER,l.lastStartLoc,0),E.value="",r(E,u,_),{nextConsumeToken:m,node:E}):(m.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,ue(m)),E.value=m.value||"",r(E,o.currentOffset(),o.currentPosition()),{node:E})}function v(o,m){const l=o.context(),u=a(7,l.offset,l.startLoc);return u.value=m,r(u,o.currentOffset(),o.currentPosition()),u}function y(o){const m=o.context(),l=a(6,m.offset,m.startLoc);let u=o.nextToken();if(u.type===8){const _=N(o);l.modifier=_.node,u=_.nextConsumeToken||o.nextToken()}switch(u.type!==9&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),u=o.nextToken(),u.type===2&&(u=o.nextToken()),u.type){case 10:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=v(o,u.value||"");break;case 4:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=f(o,u.value||"");break;case 5:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=c(o,u.value||"");break;case 6:u.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(u)),l.key=p(o,u.value||"");break;default:{s(o,M.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const _=o.context(),E=a(7,_.offset,_.startLoc);return E.value="",r(E,_.offset,_.startLoc),l.key=E,r(l,_.offset,_.startLoc),{nextConsumeToken:u,node:l}}}return r(l,o.currentOffset(),o.currentPosition()),{node:l}}function I(o){const m=o.context(),l=m.currentType===1?o.currentOffset():m.offset,u=m.currentType===1?m.endLoc:m.startLoc,_=a(2,l,u);_.items=[];let E=null;do{const R=E||o.nextToken();switch(E=null,R.type){case 0:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(i(o,R.value||""));break;case 5:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(c(o,R.value||""));break;case 4:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(f(o,R.value||""));break;case 6:R.value==null&&s(o,M.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ue(R)),_.items.push(p(o,R.value||""));break;case 7:{const w=y(o);_.items.push(w.node),E=w.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:o.currentOffset(),O=m.currentType===1?m.lastEndLoc:o.currentPosition();return r(_,g,O),_}function P(o,m,l,u){const _=o.context();let E=u.items.length===0;const g=a(1,m,l);g.cases=[],g.cases.push(u);do{const O=I(o);E||(E=O.items.length===0),g.cases.push(O)}while(_.currentType!==13);return E&&s(o,M.MUST_HAVE_MESSAGES_IN_PLURAL,l,0),r(g,o.currentOffset(),o.currentPosition()),g}function A(o){const m=o.context(),{offset:l,startLoc:u}=m,_=I(o);return m.currentType===13?_:P(o,l,u,_)}function S(o){const m=Vs(o,z({},e)),l=m.context(),u=a(0,l.offset,l.startLoc);return t&&u.loc&&(u.loc.source=o),u.body=A(m),e.onCacheKey&&(u.cacheKey=e.onCacheKey(o)),l.currentType!==13&&s(m,M.UNEXPECTED_LEXICAL_ANALYSIS,l.lastStartLoc,0,o[l.offset]||""),r(u,m.currentOffset(),m.currentPosition()),u}return{parse:S}}function ue(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Gs(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function cn(e,t){for(let n=0;n<e.length;n++)bt(e[n],t)}function bt(e,t){switch(e.type){case 1:cn(e.cases,t),t.helper("plural");break;case 2:cn(e.items,t);break;case 6:{bt(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 Ys(e,t={}){const n=Gs(e);n.helper("normalize"),e.body&&bt(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Hs(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ht(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const js="minifier";function Me(e){switch(e.t=e.type,e.type){case 0:{const t=e;Me(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Me(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Me(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Me(t.key),t.k=t.key,delete t.key,t.modifier&&(Me(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:js,args:[e.type]})}delete e.type}const Xs="parser";function qs(e,t){const{filename:n,breakLineCode:s,needIndent:a}=t,r=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:a,indentLevel:0};r&&e.loc&&(i.source=e.loc.source);const c=()=>i;function f(A,S){i.code+=A}function p(A,S=!0){const o=S?s:"";f(a?o+" ".repeat(A):o)}function N(A=!0){const S=++i.indentLevel;A&&p(S)}function v(A=!0){const S=--i.indentLevel;A&&p(S)}function y(){p(i.indentLevel)}return{context:c,push:f,indent:N,deindent:v,newline:y,helper:A=>`_${A}`,needIndent:()=>i.needIndent}}function Js(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),we(e,t.key),t.modifier?(e.push(", "),we(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Qs(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const a=t.items.length;for(let r=0;r<a&&(we(e,t.items[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Zs(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const a=t.cases.length;for(let r=0;r<a&&(we(e,t.cases[r]),r!==a-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function zs(e,t){t.body?we(e,t.body):e.push("null")}function we(e,t){const{helper:n}=e;switch(t.type){case 0:zs(e,t);break;case 1:Zs(e,t);break;case 2:Qs(e,t);break;case 6:Js(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:if(process.env.NODE_ENV!=="production")throw Re(M.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Xs,args:[t.type]})}}const er=(e,t={})=>{const n=k(t.mode)?t.mode:"normal",s=k(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
13
13
  `,r=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],c=qs(e,{filename:s,breakLineCode:a,needIndent:r});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(r),i.length>0&&(c.push(`const { ${ht(i.map(N=>`${N}: _${N}`),", ")} } = ctx`),c.newline()),c.push("return "),we(c,e),c.deindent(r),c.push("}"),delete e.helpers;const{code:f,map:p}=c.context();return{ast:e,code:f,map:p?p.toJSON():void 0}};function tr(e,t={}){const n=z({},t),s=!!n.jit,a=!!n.minify,r=n.optimize==null?!0:n.optimize,c=Bs(n).parse(e);return s?(r&&Hs(c),a&&Me(c),{ast:c,code:""}):(Ys(c,n),er(c,n))}/*!
14
14
  * core-base v11.1.1
15
15
  * (c) 2025 kazuya kawaguchi
16
16
  * Released under the MIT License.
17
- */function nr(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yt(e){return n=>sr(n,e)}function sr(e,t){const n=ar(t);if(n==null)throw Ve(0);if(vt(n)===1){const r=or(n);return e.plural(r.reduce((i,c)=>[...i,fn(e,c)],[]))}else return fn(e,n)}const rr=["b","body"];function ar(e){return be(e,rr)}const ir=["c","cases"];function or(e){return be(e,ir,[])}function fn(e,t){const n=cr(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=fr(t).reduce((a,r)=>[...a,Nt(e,r)],[]);return e.normalize(s)}}const lr=["s","static"];function cr(e){return be(e,lr)}const ur=["i","items"];function fr(e){return be(e,ur,[])}function Nt(e,t){const n=vt(t);switch(n){case 3:return st(t,n);case 9:return st(t,n);case 4:{const s=t;if(le(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(le(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Ve(n)}case 5:{const s=t;if(le(s,"i")&&Z(s.i))return e.interpolate(e.list(s.i));if(le(s,"index")&&Z(s.index))return e.interpolate(e.list(s.index));throw Ve(n)}case 6:{const s=t,a=hr(s),r=pr(s);return e.linked(Nt(e,r),a?Nt(e,a):void 0,e.type)}case 7:return st(t,n);case 8:return st(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const dr=["t","type"];function vt(e){return be(e,dr)}const _r=["v","value"];function st(e,t){const n=be(e,_r);if(n)return n;throw Ve(t)}const mr=["m","modifier"];function hr(e){return be(e,mr)}const gr=["k","key"];function pr(e){const t=be(e,gr);if(t)return t;throw Ve(6)}function be(e,t,n){for(let s=0;s<t.length;s++){const a=t[s];if(le(e,a)&&e[a]!=null)return e[a]}return n}function Ve(e){return new Error(`unhandled node type: ${e}`)}const Er="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function br(e,t){t&&Ps(e)&&pe(ze(Er,{source:e}))}const yr=e=>e;let rt=W();function ye(e){return K(e)&&vt(e)===0&&(le(e,"b")||le(e,"body"))}function Nr(e,t={}){let n=!1;const s=t.onError||Ss;return t.onError=a=>{n=!0,s(a)},{...tr(e,t),detectError:n}}function vr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){const n=U(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&br(e,n);const a=(t.onCacheKey||yr)(e),r=rt[a];if(r)return r;const{ast:i,detectError:c}=Nr(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=yt(i);return c?f:rt[a]=f}else{if(process.env.NODE_ENV!=="production"&&!ye(e))return pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const s=rt[n];return s||(rt[n]=yt(e))}else return yt(e)}}let xe=null;function Tr(e){xe=e}function Lr(e,t,n){xe&&xe.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cr=Or("function:translate");function Or(e){return t=>xe&&xe.emit(e,t)}const ee={INVALID_ARGUMENT:As,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ir=24;function he(e){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Ar}:void 0)}const Ar={[ee.INVALID_ARGUMENT]:"Invalid arguments",[ee.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ee.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ee.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ee.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Tt(e,t){return t.locale!=null?dn(t.locale):dn(e.locale)}let Lt;function dn(e){if(k(e))return e;if(B(e)){if(e.resolvedOnce&&Lt!=null)return Lt;if(e.constructor.name==="Function"){const t=e();if(Ls(t))throw he(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Lt=t}else throw he(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw he(ee.NOT_SUPPORT_LOCALE_TYPE)}function kr(e,t,n){return[...new Set([n,...H(t)?t:K(t)?Object.keys(t):k(t)?[t]:[n]])]}function _n(e,t,n){const s=k(n)?n:$e,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;H(i);)i=mn(r,i,t);const c=H(t)||!F(t)?t:t.default?t.default:null;i=k(c)?[c]:c,H(i)&&mn(r,i,!1),a.__localeChainCache.set(s,r)}return r}function mn(e,t,n){let s=!0;for(let a=0;a<t.length&&U(s);a++){const r=t[a];k(r)&&(s=Sr(e,t[a],n))}return s}function Sr(e,t,n){let s;const a=t.split("-");do{const r=a.join("-");s=Dr(e,r,n),a.splice(-1,1)}while(a.length&&s===!0);return s}function Dr(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(H(n)||F(n))&&n[a]&&(s=n[a])}return s}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Pr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rr(e){return Pr.test(e)}function Mr(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 wr(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 Fr(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rr(t)?Mr(t):"*"+t}function Kr(e){const t=[];let n=-1,s=0,a=0,r,i,c,f,p,N,v;const y=[];y[0]=()=>{i===void 0?i=c:i+=c},y[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,s=4,y[0]();else{if(a=0,i===void 0||(i=Fr(i),i===!1))return!1;y[1]()}};function I(){const P=e[n+1];if(s===5&&P==="'"||s===6&&P==='"')return n++,c="\\"+P,y[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&I())){if(f=wr(r),v=Ne[s],p=v[f]||v.l||8,p===8||(s=p[0],p[1]!==void 0&&(N=y[p[1]],N&&(c=r,N()===!1))))return;if(s===7)return t}}const hn=new Map;function Ur(e,t){return K(e)?e[t]:null}function Vr(e,t){if(!K(e))return null;let n=hn.get(t);if(n||(n=Kr(t),n&&hn.set(t,n)),!n)return null;const s=n.length;let a=e,r=0;for(;r<s;){const i=a[n[r]];if(i===void 0||B(a))return null;a=i,r++}return a}const ne={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,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},xr=8,$r={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return ze($r[e],...t)}const Wr="11.1.1",at=-1,$e="en-US",it="",gn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Br(){return{upper:(e,t)=>t==="text"&&k(e)?e.toUpperCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&k(e)?e.toLowerCase():t==="vnode"&&K(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&k(e)?gn(e):t==="vnode"&&K(e)&&"__v_isVNode"in e?gn(e.children):e}}let pn;function Gr(e){pn=e}let En;function Yr(e){En=e}let bn;function Hr(e){bn=e}let yn=null;const jr=e=>{yn=e},Xr=()=>yn;let Nn=null;const vn=e=>{Nn=e},qr=()=>Nn;let Tn=0;function Jr(e={}){const t=B(e.onWarn)?e.onWarn:pe,n=k(e.version)?e.version:Wr,s=k(e.locale)||B(e.locale)?e.locale:$e,a=B(s)?$e:s,r=H(e.fallbackLocale)||F(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=F(e.messages)?e.messages:Ct(a),c=F(e.datetimeFormats)?e.datetimeFormats:Ct(a),f=F(e.numberFormats)?e.numberFormats:Ct(a),p=z(W(),e.modifiers,Br()),N=e.pluralRules||W(),v=B(e.missing)?e.missing:null,y=U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=U(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,A=!!e.unresolving,S=B(e.postTranslation)?e.postTranslation:null,o=F(e.processor)?e.processor:null,m=U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,l=!!e.escapeParameter,u=B(e.messageCompiler)?e.messageCompiler:pn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&gt(Oe(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=B(e.messageResolver)?e.messageResolver:En||Ur,E=B(e.localeFallbacker)?e.localeFallbacker:bn||kr,g=K(e.fallbackContext)?e.fallbackContext:void 0,O=e,R=K(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,w=K(O.__numberFormatters)?O.__numberFormatters:new Map,Y=K(O.__meta)?O.__meta:{};Tn++;const $={version:n,cid:Tn,locale:s,fallbackLocale:r,messages:i,modifiers:p,pluralRules:N,missing:v,missingWarn:y,fallbackWarn:I,fallbackFormat:P,unresolving:A,postTranslation:S,processor:o,warnHtmlMessage:m,escapeParameter:l,messageCompiler:u,messageResolver:_,localeFallbacker:E,fallbackContext:g,onWarn:t,__meta:Y};return $.datetimeFormats=c,$.numberFormats=f,$.__datetimeFormatters=R,$.__numberFormatters=w,process.env.NODE_ENV!=="production"&&($.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Lr($,n,Y),$}const Ct=e=>({[e]:W()});function ot(e,t){return e instanceof RegExp?e.test(t):e}function Ln(e,t){return e instanceof RegExp?e.test(t):e}function Ot(e,t,n,s,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const c=r(e,n,t,a);return k(c)?c:t}else return process.env.NODE_ENV!=="production"&&Ln(s,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function We(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Cn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qr(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Cn(e,t[s]))return!0;return!1}const On=typeof Intl<"u",In={dateTimeFormat:On&&typeof Intl.DateTimeFormat<"u",numberFormat:On&&typeof Intl.NumberFormat<"u"};function An(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.dateTimeFormat)return r(Oe(ne.CANNOT_FORMAT_DATE)),it;const[f,p,N,v]=It(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Tt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.DateTimeFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="datetime format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&ot(I,f)&&r(Oe(ne.FALLBACK_TO_DATE_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?at:f;let g=`${m}__${f}`;et(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.DateTimeFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function It(...e){const[t,n,s,a]=e,r=W();let i=W(),c;if(k(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw he(ee.INVALID_ISO_DATE_ARGUMENT);const p=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();c=new Date(p);try{c.toISOString()}catch{throw he(ee.INVALID_ISO_DATE_ARGUMENT)}}else if(Ns(t)){if(isNaN(t.getTime()))throw he(ee.INVALID_DATE_ARGUMENT);c=t}else if(Z(t))c=t;else throw he(ee.INVALID_ARGUMENT);return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{kn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Sn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Dn(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.numberFormat)return r(Oe(ne.CANNOT_FORMAT_NUMBER)),it;const[f,p,N,v]=At(...t),y=U(N.missingWarn)?N.missingWarn:e.missingWarn,I=U(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Tt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.NumberFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="number format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&ot(I,f)&&r(Oe(ne.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?at:f;let g=`${m}__${f}`;et(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.NumberFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const Pn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,s,a]=e,r=W();let i=W();if(!Z(t))throw he(ee.INVALID_ARGUMENT);const c=t;return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{Pn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Rn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}const Zr=e=>e,zr=e=>"",ea="text",ta=e=>e.length===0?"":ht(e),na=Cs;function Mn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sa(e){const t=Z(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Z(e.named.count)||Z(e.named.n))?Z(e.named.count)?e.named.count:Z(e.named.n)?e.named.n:t:t}function ra(e,t){t.count||(t.count=e),t.n||(t.n=e)}function aa(e={}){const t=e.locale,n=sa(e),s=K(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Mn,a=K(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?Mn:void 0,r=o=>o[s(n,o.length,a)],i=e.list||[],c=o=>i[o],f=e.named||W();Z(e.pluralIndex)&&ra(n,f);const p=o=>f[o];function N(o,m){const l=B(e.messages)?e.messages(o,!!m):K(e.messages)?e.messages[o]:!1;return l||(e.parent?e.parent.message(o):zr)}const v=o=>e.modifiers?e.modifiers[o]:Zr,y=F(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ta,I=F(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:na,P=F(e.processor)&&k(e.processor.type)?e.processor.type:ea,S={list:c,named:p,plural:r,linked:(o,...m)=>{const[l,u]=m;let _="text",E="";m.length===1?K(l)?(E=l.modifier||E,_=l.type||_):k(l)&&(E=l||E):m.length===2&&(k(l)&&(E=l||E),k(u)&&(_=u||_));const g=N(o,!0)(S),O=_==="vnode"&&H(g)&&E?g[0]:g;return E?v(E)(O,_):O},message:N,type:P,interpolate:I,normalize:y,values:z(W(),i,f)};return S}const wn=()=>"",ie=e=>B(e);function Fn(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:c}=e,[f,p]=kt(...t),N=U(p.missingWarn)?p.missingWarn:e.missingWarn,v=U(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=U(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,P=k(p.default)||U(p.default)?U(p.default)?r?f:()=>f:p.default:n?r?f:()=>f:null,A=n||P!=null&&(k(P)||B(P)),S=Tt(e,p);y&&ia(p);let[o,m,l]=I?[f,S,c[S]||W()]:Kn(e,f,S,i,v,N),u=o,_=f;if(!I&&!(k(u)||ye(u)||ie(u))&&A&&(u=P,_=u),!I&&(!(k(u)||ye(u)||ie(u))||!k(m)))return a?at:f;if(process.env.NODE_ENV!=="production"&&k(u)&&e.messageCompiler==null)return pe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let E=!1;const g=()=>{E=!0},O=ie(u)?u:Un(e,f,m,u,_,g);if(E)return u;const R=ua(e,m,l,p),w=aa(R),Y=oa(e,O,w),$=s?s(Y,f):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:k(f)?f:ie(u)?u.key:"",locale:m||(ie(u)?u.locale:""),format:k(u)?u:ie(u)?u.source:"",message:$};de.meta=z({},e.__meta,Xr()||{}),Cr(de)}return $}function ia(e){H(e.list)?e.list=e.list.map(t=>k(t)?sn(t):t):K(e.named)&&Object.keys(e.named).forEach(t=>{k(e.named[t])&&(e.named[t]=sn(e.named[t]))})}function Kn(e,t,n,s,a,r){const{messages:i,onWarn:c,messageResolver:f,localeFallbacker:p}=e,N=p(e,s,n);let v=W(),y,I=null,P=n,A=null;const S="translate";for(let o=0;o<N.length;o++){if(y=A=N[o],process.env.NODE_ENV!=="production"&&n!==y&&!Cn(n,y)&&ot(a,t)&&c(Oe(ne.FALLBACK_TO_TRANSLATE,{key:t,target:y})),process.env.NODE_ENV!=="production"&&n!==y){const _=e.__v_emitter;_&&_.emit("fallback",{type:S,key:t,from:P,to:A,groupId:`${S}:${t}`})}v=i[y]||W();let m=null,l,u;if(process.env.NODE_ENV!=="production"&&oe&&(m=window.performance.now(),l="intlify-message-resolve-start",u="intlify-message-resolve-end",ae&&ae(l)),(I=f(v,t))===null&&(I=v[t]),process.env.NODE_ENV!=="production"&&oe){const _=window.performance.now(),E=e.__v_emitter;E&&m&&I&&E.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:_-m,groupId:`${S}:${t}`}),l&&u&&ae&&Le&&(ae(u),Le("intlify message resolve",l,u))}if(k(I)||ye(I)||ie(I))break;if(!Qr(y,N)){const _=Ot(e,t,y,r,S);_!==t&&(I=_)}P=A}return[I,y,v]}function Un(e,t,n,s,a,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ie(s)){const y=s;return y.locale=y.locale||n,y.key=y.key||t,y}if(i==null){const y=()=>s;return y.locale=n,y.key=t,y}let f=null,p,N;process.env.NODE_ENV!=="production"&&oe&&(f=window.performance.now(),p="intlify-message-compilation-start",N="intlify-message-compilation-end",ae&&ae(p));const v=i(s,la(e,n,a,s,c,r));if(process.env.NODE_ENV!=="production"&&oe){const y=window.performance.now(),I=e.__v_emitter;I&&f&&I.emit("message-compilation",{type:"message-compilation",message:s,time:y-f,groupId:`translate:${t}`}),p&&N&&ae&&Le&&(ae(N),Le("intlify message compilation",p,N))}return v.locale=n,v.key=t,v.source=s,v}function oa(e,t,n){let s=null,a,r;process.env.NODE_ENV!=="production"&&oe&&(s=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ae&&ae(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&oe){const c=window.performance.now(),f=e.__v_emitter;f&&s&&f.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-s,groupId:`translate:${t.key}`}),a&&r&&ae&&Le&&(ae(r),Le("intlify message evaluation",a,r))}return i}function kt(...e){const[t,n,s]=e,a=W();if(!k(t)&&!Z(t)&&!ie(t)&&!ye(t))throw he(ee.INVALID_ARGUMENT);const r=Z(t)?String(t):(ie(t),t);return Z(n)?a.plural=n:k(n)?a.default=n:F(n)&&!et(n)?a.named=n:H(n)&&(a.list=n),Z(s)?a.plural=s:k(s)?a.default=s:F(s)&&z(a,s),[r,a]}function la(e,t,n,s,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=ca(s),f=`Message compilation error: ${i.message}`,p=i.location&&c&&Os(c,i.location.start.offset,i.location.end.offset),N=e.__v_emitter;N&&c&&N.emit("compile-error",{message:c,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${f}
18
- ${p}`:f)}else throw i},onCacheKey:i=>bs(t,n,i)}}function ca(e){if(k(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ua(e,t,n,s){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:f,missingWarn:p,fallbackContext:N}=e,y={locale:t,modifiers:a,pluralRules:r,messages:(I,P)=>{let A=i(n,I);if(A==null&&(N||P)){const[,,S]=Kn(N||e,I,t,c,f,p);A=i(S,I)}if(k(A)||ye(A)){let S=!1;const m=Un(e,I,t,A,I,()=>{S=!0});return S?wn:m}else return ie(A)?A:wn}};return e.processor&&(y.processor=e.processor),s.list&&(y.list=s.list),s.named&&(y.named=s.named),Z(s.plural)&&(y.pluralIndex=s.plural),y}nr();function fa(){return Vn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Vn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const da=typeof Proxy=="function",_a="devtools-plugin:setup",ma="plugin:settings:set";let Fe,St;function ha(){var e;return Fe!==void 0||(typeof window<"u"&&window.performance?(Fe=!0,St=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fe=!0,St=globalThis.perf_hooks.performance):Fe=!1),Fe}function ga(){return ha()?St.now():Date.now()}class pa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const c=t.settings[i];s[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(r,c)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}r=i},now(){return ga()}},n&&n.on(ma,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...f)=>{this.onQueue.push({method:c,args:f})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...f)=>(this.targetQueue.push({method:c,args:f,resolve:()=>{}}),this.fallbacks[c](...f)):(...f)=>new Promise(p=>{this.targetQueue.push({method:c,args:f,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ea(e,t){const n=e,s=Vn(),a=fa(),r=da&&n.enableEarlyProxy;if(a&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(_a,e,t);else{const i=r?new pa(n,a):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
17
+ */function nr(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yt(e){return n=>sr(n,e)}function sr(e,t){const n=ar(t);if(n==null)throw xe(0);if(vt(n)===1){const r=or(n);return e.plural(r.reduce((i,c)=>[...i,fn(e,c)],[]))}else return fn(e,n)}const rr=["b","body"];function ar(e){return be(e,rr)}const ir=["c","cases"];function or(e){return be(e,ir,[])}function fn(e,t){const n=cr(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=fr(t).reduce((a,r)=>[...a,Nt(e,r)],[]);return e.normalize(s)}}const lr=["s","static"];function cr(e){return be(e,lr)}const ur=["i","items"];function fr(e){return be(e,ur,[])}function Nt(e,t){const n=vt(t);switch(n){case 3:return rt(t,n);case 9:return rt(t,n);case 4:{const s=t;if(le(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(le(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw xe(n)}case 5:{const s=t;if(le(s,"i")&&Z(s.i))return e.interpolate(e.list(s.i));if(le(s,"index")&&Z(s.index))return e.interpolate(e.list(s.index));throw xe(n)}case 6:{const s=t,a=hr(s),r=pr(s);return e.linked(Nt(e,r),a?Nt(e,a):void 0,e.type)}case 7:return rt(t,n);case 8:return rt(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const dr=["t","type"];function vt(e){return be(e,dr)}const _r=["v","value"];function rt(e,t){const n=be(e,_r);if(n)return n;throw xe(t)}const mr=["m","modifier"];function hr(e){return be(e,mr)}const gr=["k","key"];function pr(e){const t=be(e,gr);if(t)return t;throw xe(6)}function be(e,t,n){for(let s=0;s<t.length;s++){const a=t[s];if(le(e,a)&&e[a]!=null)return e[a]}return n}function xe(e){return new Error(`unhandled node type: ${e}`)}const Er="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function br(e,t){t&&Ps(e)&&pe(et(Er,{source:e}))}const yr=e=>e;let at=W();function ye(e){return U(e)&&vt(e)===0&&(le(e,"b")||le(e,"body"))}function Nr(e,t={}){let n=!1;const s=t.onError||Ss;return t.onError=a=>{n=!0,s(a)},{...tr(e,t),detectError:n}}function vr(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){const n=K(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&br(e,n);const a=(t.onCacheKey||yr)(e),r=at[a];if(r)return r;const{ast:i,detectError:c}=Nr(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),f=yt(i);return c?f:at[a]=f}else{if(process.env.NODE_ENV!=="production"&&!ye(e))return pe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const n=e.cacheKey;if(n){const s=at[n];return s||(at[n]=yt(e))}else return yt(e)}}let $e=null;function Lr(e){$e=e}function Tr(e,t,n){$e&&$e.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Cr=Or("function:translate");function Or(e){return t=>$e&&$e.emit(e,t)}const ee={INVALID_ARGUMENT:As,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ir=24;function he(e){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Ar}:void 0)}const Ar={[ee.INVALID_ARGUMENT]:"Invalid arguments",[ee.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ee.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ee.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ee.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Lt(e,t){return t.locale!=null?dn(t.locale):dn(e.locale)}let Tt;function dn(e){if(k(e))return e;if(B(e)){if(e.resolvedOnce&&Tt!=null)return Tt;if(e.constructor.name==="Function"){const t=e();if(Ts(t))throw he(ee.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Tt=t}else throw he(ee.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw he(ee.NOT_SUPPORT_LOCALE_TYPE)}function kr(e,t,n){return[...new Set([n,...j(t)?t:U(t)?Object.keys(t):k(t)?[t]:[n]])]}function _n(e,t,n){const s=k(n)?n:We,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let r=a.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;j(i);)i=mn(r,i,t);const c=j(t)||!F(t)?t:t.default?t.default:null;i=k(c)?[c]:c,j(i)&&mn(r,i,!1),a.__localeChainCache.set(s,r)}return r}function mn(e,t,n){let s=!0;for(let a=0;a<t.length&&K(s);a++){const r=t[a];k(r)&&(s=Sr(e,t[a],n))}return s}function Sr(e,t,n){let s;const a=t.split("-");do{const r=a.join("-");s=Dr(e,r,n),a.splice(-1,1)}while(a.length&&s===!0);return s}function Dr(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(j(n)||F(n))&&n[a]&&(s=n[a])}return s}const Ne=[];Ne[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ne[1]={w:[1],".":[2],"[":[4],o:[7]},Ne[2]={w:[2],i:[3,0],0:[3,0]},Ne[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ne[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ne[5]={"'":[4,0],o:8,l:[5,0]},Ne[6]={'"':[4,0],o:8,l:[6,0]};const Pr=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rr(e){return Pr.test(e)}function Mr(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 wr(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 Fr(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rr(t)?Mr(t):"*"+t}function Ur(e){const t=[];let n=-1,s=0,a=0,r,i,c,f,p,N,v;const y=[];y[0]=()=>{i===void 0?i=c:i+=c},y[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},y[2]=()=>{y[0](),a++},y[3]=()=>{if(a>0)a--,s=4,y[0]();else{if(a=0,i===void 0||(i=Fr(i),i===!1))return!1;y[1]()}};function I(){const P=e[n+1];if(s===5&&P==="'"||s===6&&P==='"')return n++,c="\\"+P,y[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&I())){if(f=wr(r),v=Ne[s],p=v[f]||v.l||8,p===8||(s=p[0],p[1]!==void 0&&(N=y[p[1]],N&&(c=r,N()===!1))))return;if(s===7)return t}}const hn=new Map;function Kr(e,t){return U(e)?e[t]:null}function Vr(e,t){if(!U(e))return null;let n=hn.get(t);if(n||(n=Ur(t),n&&hn.set(t,n)),!n)return null;const s=n.length;let a=e,r=0;for(;r<s;){const i=a[n[r]];if(i===void 0||B(a))return null;a=i,r++}return a}const ne={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,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},xr=8,$r={[ne.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ne.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ne.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ne.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ne.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return et($r[e],...t)}const Wr="11.1.1",it=-1,We="en-US",ot="",gn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Br(){return{upper:(e,t)=>t==="text"&&k(e)?e.toUpperCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&k(e)?e.toLowerCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&k(e)?gn(e):t==="vnode"&&U(e)&&"__v_isVNode"in e?gn(e.children):e}}let pn;function Gr(e){pn=e}let En;function Yr(e){En=e}let bn;function Hr(e){bn=e}let yn=null;const jr=e=>{yn=e},Xr=()=>yn;let Nn=null;const vn=e=>{Nn=e},qr=()=>Nn;let Ln=0;function Jr(e={}){const t=B(e.onWarn)?e.onWarn:pe,n=k(e.version)?e.version:Wr,s=k(e.locale)||B(e.locale)?e.locale:We,a=B(s)?We:s,r=j(e.fallbackLocale)||F(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,i=F(e.messages)?e.messages:Ct(a),c=F(e.datetimeFormats)?e.datetimeFormats:Ct(a),f=F(e.numberFormats)?e.numberFormats:Ct(a),p=z(W(),e.modifiers,Br()),N=e.pluralRules||W(),v=B(e.missing)?e.missing:null,y=K(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=K(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=!!e.fallbackFormat,A=!!e.unresolving,S=B(e.postTranslation)?e.postTranslation:null,o=F(e.processor)?e.processor:null,m=K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,l=!!e.escapeParameter,u=B(e.messageCompiler)?e.messageCompiler:pn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&gt(Oe(ne.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=B(e.messageResolver)?e.messageResolver:En||Kr,E=B(e.localeFallbacker)?e.localeFallbacker:bn||kr,g=U(e.fallbackContext)?e.fallbackContext:void 0,O=e,R=U(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,w=U(O.__numberFormatters)?O.__numberFormatters:new Map,Y=U(O.__meta)?O.__meta:{};Ln++;const $={version:n,cid:Ln,locale:s,fallbackLocale:r,messages:i,modifiers:p,pluralRules:N,missing:v,missingWarn:y,fallbackWarn:I,fallbackFormat:P,unresolving:A,postTranslation:S,processor:o,warnHtmlMessage:m,escapeParameter:l,messageCompiler:u,messageResolver:_,localeFallbacker:E,fallbackContext:g,onWarn:t,__meta:Y};return $.datetimeFormats=c,$.numberFormats=f,$.__datetimeFormatters=R,$.__numberFormatters=w,process.env.NODE_ENV!=="production"&&($.__v_emitter=O.__v_emitter!=null?O.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Tr($,n,Y),$}const Ct=e=>({[e]:W()});function lt(e,t){return e instanceof RegExp?e.test(t):e}function Tn(e,t){return e instanceof RegExp?e.test(t):e}function Ot(e,t,n,s,a){const{missing:r,onWarn:i}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(r!==null){const c=r(e,n,t,a);return k(c)?c:t}else return process.env.NODE_ENV!=="production"&&Tn(s,t)&&i(Oe(ne.NOT_FOUND_KEY,{key:t,locale:n})),t}function Be(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Cn(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Qr(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Cn(e,t[s]))return!0;return!1}const On=typeof Intl<"u",In={dateTimeFormat:On&&typeof Intl.DateTimeFormat<"u",numberFormat:On&&typeof Intl.NumberFormat<"u"};function An(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.dateTimeFormat)return r(Oe(ne.CANNOT_FORMAT_DATE)),ot;const[f,p,N,v]=It(...t),y=K(N.missingWarn)?N.missingWarn:e.missingWarn,I=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Lt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.DateTimeFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="datetime format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&lt(I,f)&&r(Oe(ne.FALLBACK_TO_DATE_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?it:f;let g=`${m}__${f}`;tt(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.DateTimeFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const kn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function It(...e){const[t,n,s,a]=e,r=W();let i=W(),c;if(k(t)){const f=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!f)throw he(ee.INVALID_ISO_DATE_ARGUMENT);const p=f[3]?f[3].trim().startsWith("T")?`${f[1].trim()}${f[3].trim()}`:`${f[1].trim()}T${f[3].trim()}`:f[1].trim();c=new Date(p);try{c.toISOString()}catch{throw he(ee.INVALID_ISO_DATE_ARGUMENT)}}else if(Ns(t)){if(isNaN(t.getTime()))throw he(ee.INVALID_DATE_ARGUMENT);c=t}else if(Z(t))c=t;else throw he(ee.INVALID_ARGUMENT);return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{kn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Sn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Dn(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:a,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!In.numberFormat)return r(Oe(ne.CANNOT_FORMAT_NUMBER)),ot;const[f,p,N,v]=At(...t),y=K(N.missingWarn)?N.missingWarn:e.missingWarn,I=K(N.fallbackWarn)?N.fallbackWarn:e.fallbackWarn,P=!!N.part,A=Lt(e,N),S=i(e,a,A);if(!k(f)||f==="")return new Intl.NumberFormat(A,v).format(p);let o={},m,l=null,u=A,_=null;const E="number format";for(let R=0;R<S.length;R++){if(m=_=S[R],process.env.NODE_ENV!=="production"&&A!==m&&lt(I,f)&&r(Oe(ne.FALLBACK_TO_NUMBER_FORMAT,{key:f,target:m})),process.env.NODE_ENV!=="production"&&A!==m){const w=e.__v_emitter;w&&w.emit("fallback",{type:E,key:f,from:u,to:_,groupId:`${E}:${f}`})}if(o=n[m]||{},l=o[f],F(l))break;Ot(e,f,m,y,E),u=_}if(!F(l)||!k(m))return s?it:f;let g=`${m}__${f}`;tt(v)||(g=`${g}__${JSON.stringify(v)}`);let O=c.get(g);return O||(O=new Intl.NumberFormat(m,z({},l,v)),c.set(g,O)),P?O.formatToParts(p):O.format(p)}const Pn=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function At(...e){const[t,n,s,a]=e,r=W();let i=W();if(!Z(t))throw he(ee.INVALID_ARGUMENT);const c=t;return k(n)?r.key=n:F(n)&&Object.keys(n).forEach(f=>{Pn.includes(f)?i[f]=n[f]:r[f]=n[f]}),k(s)?r.locale=s:F(s)&&(i=s),F(a)&&(i=a),[r.key||"",c,r,i]}function Rn(e,t,n){const s=e;for(const a in n){const r=`${t}__${a}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}const Zr=e=>e,zr=e=>"",ea="text",ta=e=>e.length===0?"":ht(e),na=Cs;function Mn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function sa(e){const t=Z(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Z(e.named.count)||Z(e.named.n))?Z(e.named.count)?e.named.count:Z(e.named.n)?e.named.n:t:t}function ra(e,t){t.count||(t.count=e),t.n||(t.n=e)}function aa(e={}){const t=e.locale,n=sa(e),s=U(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?e.pluralRules[t]:Mn,a=U(e.pluralRules)&&k(t)&&B(e.pluralRules[t])?Mn:void 0,r=o=>o[s(n,o.length,a)],i=e.list||[],c=o=>i[o],f=e.named||W();Z(e.pluralIndex)&&ra(n,f);const p=o=>f[o];function N(o,m){const l=B(e.messages)?e.messages(o,!!m):U(e.messages)?e.messages[o]:!1;return l||(e.parent?e.parent.message(o):zr)}const v=o=>e.modifiers?e.modifiers[o]:Zr,y=F(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ta,I=F(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:na,P=F(e.processor)&&k(e.processor.type)?e.processor.type:ea,S={list:c,named:p,plural:r,linked:(o,...m)=>{const[l,u]=m;let _="text",E="";m.length===1?U(l)?(E=l.modifier||E,_=l.type||_):k(l)&&(E=l||E):m.length===2&&(k(l)&&(E=l||E),k(u)&&(_=u||_));const g=N(o,!0)(S),O=_==="vnode"&&j(g)&&E?g[0]:g;return E?v(E)(O,_):O},message:N,type:P,interpolate:I,normalize:y,values:z(W(),i,f)};return S}const wn=()=>"",ie=e=>B(e);function Fn(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:a,messageCompiler:r,fallbackLocale:i,messages:c}=e,[f,p]=kt(...t),N=K(p.missingWarn)?p.missingWarn:e.missingWarn,v=K(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,y=K(p.escapeParameter)?p.escapeParameter:e.escapeParameter,I=!!p.resolvedMessage,P=k(p.default)||K(p.default)?K(p.default)?r?f:()=>f:p.default:n?r?f:()=>f:null,A=n||P!=null&&(k(P)||B(P)),S=Lt(e,p);y&&ia(p);let[o,m,l]=I?[f,S,c[S]||W()]:Un(e,f,S,i,v,N),u=o,_=f;if(!I&&!(k(u)||ye(u)||ie(u))&&A&&(u=P,_=u),!I&&(!(k(u)||ye(u)||ie(u))||!k(m)))return a?it:f;if(process.env.NODE_ENV!=="production"&&k(u)&&e.messageCompiler==null)return pe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${f}'.`),f;let E=!1;const g=()=>{E=!0},O=ie(u)?u:Kn(e,f,m,u,_,g);if(E)return u;const R=ua(e,m,l,p),w=aa(R),Y=oa(e,O,w),$=s?s(Y,f):Y;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const de={timestamp:Date.now(),key:k(f)?f:ie(u)?u.key:"",locale:m||(ie(u)?u.locale:""),format:k(u)?u:ie(u)?u.source:"",message:$};de.meta=z({},e.__meta,Xr()||{}),Cr(de)}return $}function ia(e){j(e.list)?e.list=e.list.map(t=>k(t)?sn(t):t):U(e.named)&&Object.keys(e.named).forEach(t=>{k(e.named[t])&&(e.named[t]=sn(e.named[t]))})}function Un(e,t,n,s,a,r){const{messages:i,onWarn:c,messageResolver:f,localeFallbacker:p}=e,N=p(e,s,n);let v=W(),y,I=null,P=n,A=null;const S="translate";for(let o=0;o<N.length;o++){if(y=A=N[o],process.env.NODE_ENV!=="production"&&n!==y&&!Cn(n,y)&&lt(a,t)&&c(Oe(ne.FALLBACK_TO_TRANSLATE,{key:t,target:y})),process.env.NODE_ENV!=="production"&&n!==y){const _=e.__v_emitter;_&&_.emit("fallback",{type:S,key:t,from:P,to:A,groupId:`${S}:${t}`})}v=i[y]||W();let m=null,l,u;if(process.env.NODE_ENV!=="production"&&oe&&(m=window.performance.now(),l="intlify-message-resolve-start",u="intlify-message-resolve-end",ae&&ae(l)),(I=f(v,t))===null&&(I=v[t]),process.env.NODE_ENV!=="production"&&oe){const _=window.performance.now(),E=e.__v_emitter;E&&m&&I&&E.emit("message-resolve",{type:"message-resolve",key:t,message:I,time:_-m,groupId:`${S}:${t}`}),l&&u&&ae&&Te&&(ae(u),Te("intlify message resolve",l,u))}if(k(I)||ye(I)||ie(I))break;if(!Qr(y,N)){const _=Ot(e,t,y,r,S);_!==t&&(I=_)}P=A}return[I,y,v]}function Kn(e,t,n,s,a,r){const{messageCompiler:i,warnHtmlMessage:c}=e;if(ie(s)){const y=s;return y.locale=y.locale||n,y.key=y.key||t,y}if(i==null){const y=()=>s;return y.locale=n,y.key=t,y}let f=null,p,N;process.env.NODE_ENV!=="production"&&oe&&(f=window.performance.now(),p="intlify-message-compilation-start",N="intlify-message-compilation-end",ae&&ae(p));const v=i(s,la(e,n,a,s,c,r));if(process.env.NODE_ENV!=="production"&&oe){const y=window.performance.now(),I=e.__v_emitter;I&&f&&I.emit("message-compilation",{type:"message-compilation",message:s,time:y-f,groupId:`translate:${t}`}),p&&N&&ae&&Te&&(ae(N),Te("intlify message compilation",p,N))}return v.locale=n,v.key=t,v.source=s,v}function oa(e,t,n){let s=null,a,r;process.env.NODE_ENV!=="production"&&oe&&(s=window.performance.now(),a="intlify-message-evaluation-start",r="intlify-message-evaluation-end",ae&&ae(a));const i=t(n);if(process.env.NODE_ENV!=="production"&&oe){const c=window.performance.now(),f=e.__v_emitter;f&&s&&f.emit("message-evaluation",{type:"message-evaluation",value:i,time:c-s,groupId:`translate:${t.key}`}),a&&r&&ae&&Te&&(ae(r),Te("intlify message evaluation",a,r))}return i}function kt(...e){const[t,n,s]=e,a=W();if(!k(t)&&!Z(t)&&!ie(t)&&!ye(t))throw he(ee.INVALID_ARGUMENT);const r=Z(t)?String(t):(ie(t),t);return Z(n)?a.plural=n:k(n)?a.default=n:F(n)&&!tt(n)?a.named=n:j(n)&&(a.list=n),Z(s)?a.plural=s:k(s)?a.default=s:F(s)&&z(a,s),[r,a]}function la(e,t,n,s,a,r){return{locale:t,key:n,warnHtmlMessage:a,onError:i=>{if(r&&r(i),process.env.NODE_ENV!=="production"){const c=ca(s),f=`Message compilation error: ${i.message}`,p=i.location&&c&&Os(c,i.location.start.offset,i.location.end.offset),N=e.__v_emitter;N&&c&&N.emit("compile-error",{message:c,error:i.message,start:i.location&&i.location.start.offset,end:i.location&&i.location.end.offset,groupId:`translate:${n}`}),console.error(p?`${f}
18
+ ${p}`:f)}else throw i},onCacheKey:i=>bs(t,n,i)}}function ca(e){if(k(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ua(e,t,n,s){const{modifiers:a,pluralRules:r,messageResolver:i,fallbackLocale:c,fallbackWarn:f,missingWarn:p,fallbackContext:N}=e,y={locale:t,modifiers:a,pluralRules:r,messages:(I,P)=>{let A=i(n,I);if(A==null&&(N||P)){const[,,S]=Un(N||e,I,t,c,f,p);A=i(S,I)}if(k(A)||ye(A)){let S=!1;const m=Kn(e,I,t,A,I,()=>{S=!0});return S?wn:m}else return ie(A)?A:wn}};return e.processor&&(y.processor=e.processor),s.list&&(y.list=s.list),s.named&&(y.named=s.named),Z(s.plural)&&(y.pluralIndex=s.plural),y}nr();function fa(){return Vn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Vn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const da=typeof Proxy=="function",_a="devtools-plugin:setup",ma="plugin:settings:set";let Fe,St;function ha(){var e;return Fe!==void 0||(typeof window<"u"&&window.performance?(Fe=!0,St=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fe=!0,St=globalThis.perf_hooks.performance):Fe=!1),Fe}function ga(){return ha()?St.now():Date.now()}class pa{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const c=t.settings[i];s[i]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},s);try{const i=localStorage.getItem(a),c=JSON.parse(i);Object.assign(r,c)}catch{}this.fallbacks={getSettings(){return r},setSettings(i){try{localStorage.setItem(a,JSON.stringify(i))}catch{}r=i},now(){return ga()}},n&&n.on(ma,(i,c)=>{i===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(i,c)=>this.target?this.target.on[c]:(...f)=>{this.onQueue.push({method:c,args:f})}}),this.proxiedTarget=new Proxy({},{get:(i,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...f)=>(this.targetQueue.push({method:c,args:f,resolve:()=>{}}),this.fallbacks[c](...f)):(...f)=>new Promise(p=>{this.targetQueue.push({method:c,args:f,resolve:p})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Ea(e,t){const n=e,s=Vn(),a=fa(),r=da&&n.enableEarlyProxy;if(a&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))a.emit(_a,e,t);else{const i=r?new pa(n,a):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
19
19
  * vue-i18n v11.1.1
20
20
  * (c) 2025 kazuya kawaguchi
21
21
  * Released under the MIT License.
22
- */const ba="11.1.1";function ya(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ce().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ce().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1)}const G={UNEXPECTED_RETURN_TYPE:Ir,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function se(e,...t){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Na,args:t}:void 0)}const Na={[G.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[G.INVALID_ARGUMENT]:"Invalid argument",[G.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[G.NOT_INSTALLED]:"Need to install with `app.use` function",[G.UNEXPECTED_ERROR]:"Unexpected error",[G.REQUIRED_VALUE]:"Required in value: {0}",[G.INVALID_VALUE]:"Invalid value",[G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[G.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Dt=ce("__translateVNode"),Pt=ce("__datetimeParts"),Rt=ce("__numberParts"),Ie=ce("__enableEmitter"),Be=ce("__disableEmitter"),xn=ce("__setPluralRules"),$n=ce("__injectWithOption"),Mt=ce("__dispose"),fe={FALLBACK_TO_ROOT:xr,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},va={[fe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[fe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[fe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[fe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
23
- About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ge(e,...t){return ze(va[e],...t)}function Ye(e){if(!K(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))K(e[t])&&Ye(e[t]);else{const n=t.split("."),s=n.length-1;let a=e,r=!1;for(let i=0;i<s;i++){if(n[i]in a||(a[n[i]]=W()),!K(a[n[i]])){process.env.NODE_ENV!=="production"&&pe(Ge(fe.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[s]]=e[t],delete e[t]),K(a[n[s]])&&Ye(a[n[s]])}return e}function wt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,i=F(n)?n:H(s)?W():{[e]:W()};if(H(s)&&s.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:p}=c;f?(i[f]=i[f]||W(),nt(p,i[f])):nt(p,i)}else k(c)&&nt(JSON.parse(c),i)}),a==null&&r)for(const c in i)le(i,c)&&Ye(i[c]);return i}function Wn(e){return e.type}function Bn(e,t,n){let s=K(t.messages)?t.messages:W();"__i18nGlobal"in n&&(s=wt(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(K(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(K(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Gn(e){return L.createVNode(L.Text,null,e,0)}const Yn="__INTLIFY_META__",Hn=()=>[],Ta=()=>!1;let jn=0;function Xn(e){return(t,n,s,a)=>e(n,s,L.getCurrentInstance()||void 0,a)}const La=()=>{const e=L.getCurrentInstance();let t=null;return e&&(t=Wn(e)[Yn])?{[Yn]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,a=e.flatJson,r=oe?L.ref:L.shallowRef;let i=U(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:k(e.locale)?e.locale:$e),f=r(t&&i?t.fallbackLocale.value:k(e.fallbackLocale)||H(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=r(wt(c.value,e)),N=r(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),v=r(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=t?t.missingWarn:U(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:U(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:U(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,S=B(e.missing)?e.missing:null,o=B(e.missing)?Xn(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,l=t?t.warnHtmlMessage:U(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const _=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,g;g=(()=>{s&&vn(null);const b={version:ba,locale:c.value,fallbackLocale:f.value,messages:p.value,modifiers:_,pluralRules:E,missing:o===null?void 0:o,missingWarn:y,fallbackWarn:I,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:l,escapeParameter:u,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=N.value,b.numberFormats=v.value,b.__datetimeFormatters=F(g)?g.__datetimeFormatters:void 0,b.__numberFormatters=F(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=F(g)?g.__v_emitter:void 0);const C=Jr(b);return s&&vn(C),C})(),We(g,c.value,f.value);function R(){return[c.value,f.value,p.value,N.value,v.value]}const w=L.computed({get:()=>c.value,set:b=>{g.locale=b,c.value=b}}),Y=L.computed({get:()=>f.value,set:b=>{g.fallbackLocale=b,f.value=b,We(g,c.value,b)}}),$=L.computed(()=>p.value),de=L.computed(()=>N.value),_e=L.computed(()=>v.value);function Ae(){return B(m)?m:null}function re(b){m=b,g.postTranslation=b}function ve(){return S}function Ke(b){b!==null&&(o=Xn(b)),S=b,g.missing=o}function je(b,C){return b!=="translate"||!C.resolvedMessage}const ge=(b,C,x,q,Se,_t)=>{R();let Ue;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=t?qr():void 0),Ue=b(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ue)&&Ue===at||x==="translate exists"&&!Ue){const[De,vi]=C();if(process.env.NODE_ENV!=="production"&&t&&k(De)&&je(x,vi)&&(P&&(ot(I,De)||Ln(y,De))&&pe(Ge(fe.FALLBACK_TO_ROOT,{key:De,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:_s}=g;_s&&P&&_s.emit("fallback",{type:x,key:De,to:"global",groupId:`${x}:${De}`})}return t&&P?q(t):Se(De)}else{if(_t(Ue))return Ue;throw se(G.UNEXPECTED_RETURN_TYPE)}};function Xe(...b){return ge(C=>Reflect.apply(Fn,null,[C,...b]),()=>kt(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>k(C))}function Bt(...b){const[C,x,q]=b;if(q&&!K(q))throw se(G.INVALID_ARGUMENT);return Xe(C,x,z({resolvedMessage:!0},q||{}))}function Gt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>it,C=>k(C))}function Yt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>it,C=>k(C))}function Ht(b){return b.map(C=>k(C)||Z(C)||U(C)?Gn(String(C)):C)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function dt(...b){return ge(C=>{let x;const q=C;try{q.processor=jt,x=Reflect.apply(Fn,null,[q,...b])}finally{q.processor=null}return x},()=>kt(...b),"translate",C=>C[Dt](...b),C=>[Gn(C)],C=>H(C))}function Xt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>C[Rt](...b),Hn,C=>k(C)||H(C))}function qt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>C[Pt](...b),Hn,C=>k(C)||H(C))}function Jt(b){E=b,g.pluralRules=E}function Qt(b,C){return ge(()=>{if(!b)return!1;const x=k(C)?C:c.value,q=ke(x),Se=g.messageResolver(q,b);return ye(Se)||ie(Se)||k(Se)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,C]),Ta,x=>U(x))}function qe(b){let C=null;const x=_n(g,f.value,c.value);for(let q=0;q<x.length;q++){const Se=p.value[x[q]]||{},_t=g.messageResolver(Se,b);if(_t!=null){C=_t;break}}return C}function Je(b){const C=qe(b);return C??(t?t.tm(b)||{}:{})}function ke(b){return p.value[b]||{}}function Qe(b,C){if(a){const x={[b]:C};for(const q in x)le(x,q)&&Ye(x[q]);C=x[b]}p.value[b]=C,g.messages=p.value}function Zt(b,C){p.value[b]=p.value[b]||{};const x={[b]:C};if(a)for(const q in x)le(x,q)&&Ye(x[q]);C=x[b],nt(C,p.value[b]),g.messages=p.value}function d(b){return N.value[b]||{}}function h(b,C){N.value[b]=C,g.datetimeFormats=N.value,Sn(g,b,C)}function T(b,C){N.value[b]=z(N.value[b]||{},C),g.datetimeFormats=N.value,Sn(g,b,C)}function D(b){return v.value[b]||{}}function j(b,C){v.value[b]=C,g.numberFormats=v.value,Rn(g,b,C)}function X(b,C){v.value[b]=z(v.value[b]||{},C),g.numberFormats=v.value,Rn(g,b,C)}jn++,t&&oe&&(L.watch(t.locale,b=>{i&&(c.value=b,g.locale=b,We(g,c.value,f.value))}),L.watch(t.fallbackLocale,b=>{i&&(f.value=b,g.fallbackLocale=b,We(g,c.value,f.value))}));const V={id:jn,locale:w,fallbackLocale:Y,get inheritLocale(){return i},set inheritLocale(b){i=b,b&&t&&(c.value=t.locale.value,f.value=t.fallbackLocale.value,We(g,c.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:$,get modifiers(){return _},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(b){y=b,g.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(b){I=b,g.fallbackWarn=I},get fallbackRoot(){return P},set fallbackRoot(b){P=b},get fallbackFormat(){return A},set fallbackFormat(b){A=b,g.fallbackFormat=A},get warnHtmlMessage(){return l},set warnHtmlMessage(b){l=b,g.warnHtmlMessage=b},get escapeParameter(){return u},set escapeParameter(b){u=b,g.escapeParameter=b},t:Xe,getLocaleMessage:ke,setLocaleMessage:Qe,mergeLocaleMessage:Zt,getPostTranslationHandler:Ae,setPostTranslationHandler:re,getMissingHandler:ve,setMissingHandler:Ke,[xn]:Jt};return V.datetimeFormats=de,V.numberFormats=_e,V.rt=Bt,V.te=Qt,V.tm=Je,V.d=Gt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=T,V.getNumberFormat=D,V.setNumberFormat=j,V.mergeNumberFormat=X,V[$n]=n,V[Dt]=dt,V[Pt]=qt,V[Rt]=Xt,process.env.NODE_ENV!=="production"&&(V[Ie]=b=>{g.__v_emitter=b},V[Be]=()=>{g.__v_emitter=void 0}),V}const qn="vue-i18n: composer properties",Kt={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ca={"vue-i18n-resource-inspector":"Search for scopes ..."},Oa={"vue-i18n-timeline":16764185};let Ut;async function Ia(e,t){return new Promise((n,s)=>{try{Ea({id:"vue-devtools-plugin-vue-i18n",label:Kt["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qn],app:e},a=>{Ut=a,a.on.visitComponentTree(({componentInstance:i,treeNode:c})=>{Aa(i,c,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:c})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&Qn(c,i.vnode.el.__VUE_I18N__):Qn(c,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Kt["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ca["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ra(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),wa(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[c]=await a.getComponentInstances(i.app);r.set(i.app,c)}a.highlightElement(r.get(i.app))}else{const c=Ma(i.nodeId,t);c&&a.highlightElement(c)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ka(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Kt["vue-i18n-timeline"],color:Oa["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),s(!1)}})}function Jn(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Aa(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const a={label:`i18n (${Jn(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Qn(e,t){const n=qn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Vt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Vt(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];B(s)&&"source"in s?t[n]=Pa(s):ye(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:K(s)?t[n]=Vt(s):t[n]=s}),t}const ka={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Sa(e){return e.replace(/[<>"&]/g,Da)}function Da(e){return ka[e]||e}function Pa(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Sa(e.source)}")`:"(?)"}`}}}function Ra(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Jn(s)} Scope`})}}function Ma(e,t){let n=null;if(e!=="global"){for(const[s,a]of t.__instances.entries())if(a.id.toString()===e){n=s;break}}return n}function Zn(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function wa(e,t){const n=Zn(e.nodeId,t);return n&&(e.state=Fa(n)),null}function Fa(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:Vt(e.messages.value)}];t[a]=r;{const i="Datetime formats info",c=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=c;const f="Datetime formats info",p=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=p}return t}function He(e,t){if(Ut){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Ut.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ka(e,t){const n=Zn(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&k(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(k(e.state.value)||H(e.state.value)||K(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&U(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ua(e){const t=k(e.locale)?e.locale:$e,n=k(e.fallbackLocale)||H(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=B(e.missing)?e.missing:void 0,a=U(e.silentTranslationWarn)||Pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=U(e.silentFallbackWarn)||Pe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=U(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,f=F(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,N=B(e.postTranslation)?e.postTranslation:void 0,v=k(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,I=U(e.sync)?e.sync:!0;let P=e.messages;if(F(e.sharedMessages)){const _=e.sharedMessages;P=Object.keys(_).reduce((g,O)=>{const R=g[O]||(g[O]={});return z(R,_[O]),g},P||{})}const{__i18n:A,__root:S,__injectWithOption:o}=e,m=e.datetimeFormats,l=e.numberFormats,u=e.flatJson;return{locale:t,fallbackLocale:n,messages:P,flatJson:u,datetimeFormats:m,numberFormats:l,missing:s,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:c,modifiers:f,pluralRules:p,postTranslation:N,warnHtmlMessage:v,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:I,__i18n:A,__root:S,__injectWithOption:o}}function xt(e={}){const t=Ft(Ua(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return U(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=U(a)?!a:a},get silentFallbackWarn(){return U(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=U(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return s.__extender=n,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=a=>{const r=t;r[Ie]&&r[Ie](a)},s.__disableEmitter=()=>{const a=t;a[Be]&&a[Be]()}),s}function Va(e,t,n){return{beforeCreate(){const s=L.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=zn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=xt(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=zn(e,a);else{this.$i18n=xt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Bn(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...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),n.__setInstance(s,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const a=this.__v_emitter=pt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",He)}},unmounted(){const s=L.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",He),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(s),delete this.$i18n}}}function zn(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[xn](t.pluralizationRules||e.pluralizationRules);const n=wt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const $t={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>[...s,...a.type===L.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},W())}function es(){return L.Fragment}const ts=L.defineComponent({name:"i18n-t",props:z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Z(e)||!isNaN(e)}},$t),setup(e,t){const{slots:n,attrs:s}=t,a=e.i18n||lt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(v=>v!=="_"),i=W();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=k(e.plural)?+e.plural:e.plural);const c=xa(t,r),f=a[Dt](e.keypath,c,i),p=z(W(),s),N=k(e.tag)||K(e.tag)?e.tag:es();return L.h(N,p,f)}}});function $a(e){return H(e)&&!k(e[0])}function ns(e,t,n,s){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let c=W();e.locale&&(i.locale=e.locale),k(e.format)?i.key=e.format:K(e.format)&&(k(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((y,I)=>n.includes(I)?z(W(),y,{[I]:e.format[I]}):y,W()));const f=s(e.value,i,c);let p=[i.key];H(f)?p=f.map((y,I)=>{const P=a[y.type],A=P?P({[y.type]:y.value,index:I,parts:f}):[y.value];return $a(A)&&(A[0].key=`${y.type}-${I}`),A}):k(f)&&(p=[f]);const N=z(W(),r),v=k(e.tag)||K(e.tag)?e.tag:es();return L.h(v,N,p)}}const ss=L.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||lt({useScope:e.scope,__useComponent:!0});return ns(e,t,Pn,(...s)=>n[Rt](...s))}});function Wa(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Ba(e){const t=i=>{process.env.NODE_ENV!=="production"&&gt(Ge(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:f}=i;if(!c||!c.$)throw se(G.UNEXPECTED_ERROR);const p=Wa(e,c.$),N=rs(f);return[Reflect.apply(p.t,p,[...as(N)]),p]};return{created:(i,c)=>{const[f,p]=t(c);oe&&e.global===p&&(i.__i18nWatcher=L.watch(p.locale,()=>{c.instance&&c.instance.$forceUpdate()})),i.__composer=p,i.textContent=f},unmounted:i=>{oe&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:c})=>{if(i.__composer){const f=i.__composer,p=rs(c);i.textContent=Reflect.apply(f.t,f,[...as(p)])}},getSSRProps:i=>{const[c]=t(i);return{textContent:c}}}}function rs(e){if(k(e))return{path:e};if(F(e)){if(!("path"in e))throw se(G.REQUIRED_VALUE,"path");return e}else throw se(G.INVALID_VALUE)}function as(e){const{path:t,locale:n,args:s,choice:a,plural:r}=e,i={},c=s||{};return k(n)&&(i.locale=n),Z(a)&&(i.plural=a),Z(r)&&(i.plural=r),[t,c,i]}function Ga(e,t,...n){const s=F(n[0])?n[0]:{};(U(s.globalInstall)?s.globalInstall:!0)&&([ts.name,"I18nT"].forEach(r=>e.component(r,ts)),[ss.name,"I18nN"].forEach(r=>e.component(r,ss)),[os.name,"I18nD"].forEach(r=>e.component(r,os))),e.directive("t",Ba(t))}const Ya=ce("global-vue-i18n");function Ha(e={}){const t=__VUE_I18N_LEGACY_API__&&U(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&gt(Ge(fe.DEPRECATE_LEGACY_MODE));const n=U(e.globalInjection)?e.globalInjection:!0,s=new Map,[a,r]=ja(e,t),i=ce(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(v){return s.get(v)||null}function f(v,y){s.set(v,y)}function p(v){s.delete(v)}const N={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(v,...y){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=N),v.__VUE_I18N_SYMBOL__=i,v.provide(v.__VUE_I18N_SYMBOL__,N),F(y[0])){const A=y[0];N.__composerExtend=A.__composerExtend,N.__vueI18nExtend=A.__vueI18nExtend}let I=null;!t&&n&&(I=ti(v,N.global)),__VUE_I18N_FULL_INSTALL__&&Ga(v,N,...y),__VUE_I18N_LEGACY_API__&&t&&v.mixin(Va(r,r.__composer,N));const P=v.unmount;if(v.unmount=()=>{I&&I(),N.dispose(),P()},process.env.NODE_ENV!=="production"){if(!await Ia(v,N))throw se(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const S=pt();if(t){const o=r;o.__enableEmitter&&o.__enableEmitter(S)}else{const o=r;o[Ie]&&o[Ie](S)}S.on("*",He)}},get global(){return r},dispose(){a.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:p};return N}function lt(e={}){const t=L.getCurrentInstance();if(t==null)throw se(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(G.NOT_INSTALLED);const n=Xa(t),s=Ja(n),a=Wn(t),r=qa(e,a);if(r==="global")return Bn(s,e,a),s;if(r==="parent"){let f=Qa(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&pe(Ge(fe.NOT_FOUND_PARENT_SCOPE)),f=s),f}const i=n;let c=i.__getInstance(t);if(c==null){const f=z({},e);"__i18n"in a&&(f.__i18n=a.__i18n),s&&(f.__root=s),c=Ft(f),i.__composerExtend&&(c[Mt]=i.__composerExtend(c)),za(i,t,c),i.__setInstance(t,c)}return c}function ja(e,t){const n=L.effectScope(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>xt(e)):n.run(()=>Ft(e));if(s==null)throw se(G.UNEXPECTED_ERROR);return[n,s]}function Xa(e){const t=L.inject(e.isCE?Ya:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}function qa(e,t){return et(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ja(e){return e.mode==="composition"?e.global:e.global.__composer}function Qa(e,t,n=!1){let s=null;const a=t.root;let r=Za(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(s=c.__composer,n&&s&&!s[$n]&&(s=null))}if(s!=null||a===r)break;r=r.parent}return s}function Za(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function za(e,t,n){let s=null;L.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=pt();const a=n;a[Ie]&&a[Ie](s),s.on("*",He)}},t),L.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",He),a[Be]&&a[Be](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[Mt];r&&(r(),delete a[Mt])},t)}const ei=["locale","fallbackLocale","availableLocales"],is=["t","rt","d","n","tm","te"];function ti(e,t){const n=Object.create(null);return ei.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw se(G.UNEXPECTED_ERROR);const i=L.isRef(r.value)?{get(){return r.value.value},set(c){r.value.value=c}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,is.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw se(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,is.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const os=L.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||lt({useScope:e.scope,__useComponent:!0});return ns(e,t,kn,(...s)=>n[Pt](...s))}});if(ya(),Gr(vr),Yr(Vr),Hr(_n),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ce();e.__INTLIFY__=!0,Tr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var ct={exports:{}};/*! store2 - v2.14.4 - 2024-12-26
24
- * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var Wt=ct.exports,ls;function ni(){return ls||(ls=1,function(e){(function(t,n){var s={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(r,i){for(var c in r)i.hasOwnProperty(c)||Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(r,c));return i},stringify:function(r,i){return r===void 0||typeof r=="function"?r+"":JSON.stringify(r,i||s.replace)},parse:function(r,i){try{return JSON.parse(r,i||s.revive)}catch{return r}},fn:function(r,i){s.storeAPI[r]=i;for(var c in s.apis)s.apis[c][r]=i},get:function(r,i){return r.getItem(i)},set:function(r,i,c){r.setItem(i,c)},remove:function(r,i){r.removeItem(i)},key:function(r,i){return r.key(i)},length:function(r){return r.length},clear:function(r){r.clear()},Store:function(r,i,c){var f=s.inherit(s.storeAPI,function(N,v,y){return arguments.length===0?f.getAll():typeof v=="function"?f.transact(N,v,y):v!==void 0?f.set(N,v,y):typeof N=="string"||typeof N=="number"?f.get(N):typeof N=="function"?f.each(N):N?f.setAll(N,v):f.clear()});f._id=r;try{var p="__store2_test";i.setItem(p,"ok"),f._area=i,i.removeItem(p)}catch{f._area=s.storage("fake")}return f._ns=c||"",s.areas[r]||(s.areas[r]=f._area),s.apis[f._ns+f._id]||(s.apis[f._ns+f._id]=f),f},storeAPI:{area:function(r,i){var c=this[r];return(!c||!c.area)&&(c=s.Store(r,i,this._ns),this[r]||(this[r]=c)),c},namespace:function(r,i,c){if(c=c||this._delim||s.nsdelim,!r)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var f=r,p=this[f];if((!p||!p.namespace)&&(p=s.Store(this._id,this._area,this._ns+f+c),p._delim=c,this[f]||(this[f]=p),!i))for(var N in s.areas)p.area(N,s.areas[N]);return p},isFake:function(r){return r?(this._real=this._area,this._area=s.storage("fake")):r===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(r){return this._area.has?this._area.has(this._in(r)):this._in(r)in this._area},size:function(){return this.keys().length},each:function(r,i){for(var c=0,f=s.length(this._area);c<f;c++){var p=this._out(s.key(this._area,c));if(p!==void 0&&r.call(this,p,this.get(p),i)===!1)break;f>s.length(this._area)&&(f--,c--)}return i||this},keys:function(r){return this.each(function(i,c,f){f.push(i)},r||[])},get:function(r,i){var c=s.get(this._area,this._in(r)),f;return typeof i=="function"&&(f=i,i=null),c!==null?s.parse(c,f):i??c},getAll:function(r){return this.each(function(i,c,f){f[i]=c},r||{})},transact:function(r,i,c){var f=this.get(r,c),p=i(f);return this.set(r,p===void 0?f:p),this},set:function(r,i,c){var f=this.get(r),p;return f!=null&&c===!1?i:(typeof c=="function"&&(p=c,c=void 0),s.set(this._area,this._in(r),s.stringify(i,p),c)||f)},setAll:function(r,i){var c,f;for(var p in r)f=r[p],this.set(p,f,i)!==f&&(c=!0);return c},add:function(r,i,c){var f=this.get(r);if(f instanceof Array)i=f.concat(i);else if(f!==null){var p=typeof f;if(p===typeof i&&p==="object"){for(var N in i)f[N]=i[N];i=f}else i=f+i}return s.set(this._area,this._in(r),s.stringify(i,c)),i},remove:function(r,i){var c=this.get(r,i);return s.remove(this._area,this._in(r)),c},clear:function(){return this._ns?this.each(function(r){s.remove(this._area,this._in(r))},1):s.clear(this._area),this},clearAll:function(){var r=this._area;for(var i in s.areas)s.areas.hasOwnProperty(i)&&(this._area=s.areas[i],this.clear());return this._area=r,this},_in:function(r){return typeof r!="string"&&(r=s.stringify(r)),this._ns?this._ns+r:r},_out:function(r){return this._ns?r&&r.indexOf(this._ns)===0?r.substring(this._ns.length):void 0:r}},storage:function(r){return s.inherit(s.storageAPI,{items:{},name:r})},storageAPI:{length:0,has:function(r){return this.items.hasOwnProperty(r)},key:function(r){var i=0;for(var c in this.items)if(this.has(c)&&r===i++)return c},setItem:function(r,i){this.has(r)||this.length++,this.items[r]=i},removeItem:function(r){this.has(r)&&(delete this.items[r],this.length--)},getItem:function(r){return this.has(r)?this.items[r]:null},clear:function(){for(var r in this.items)this.removeItem(r)}}},a=s.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=s,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",s.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(s.conflict=t.store),t.store=a)})(Wt,Wt&&Wt.define)}(ct)),ct.exports}var si=ni();const ut=en(si),ri=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},ai=(e,t)=>(t.forEach(n=>{const s=Q.find(e,{key:n.key});s?Q.merge(s,n):e.push(n)}),e),ft="https://test.ihotel.cn",cs=async e=>Te.get(ft+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:e}}),us=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:s,token:a})=>new Promise(async(r,i)=>{const c=ft+"/i18n-web/kv_translate/kv_translates",f=s?c+"?lastPullDate="+s:c,p=await Te({url:f,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:a}});p&&p.result==0?r(p.retVal):r(p)}),ii=async(e,t)=>Te({url:ft+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),oi=async(e,t)=>Te({url:ft+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),li=async({appCode:e,language:t="zh-CN",token:n})=>new Promise(async(s,a)=>{const r=ut.namespace(`i18n_${e}`),i={appCode:e,language:t,token:n},c=r.get(t);if(!c||!c.lastPullDate){const f=await us(i);f&&(r.set(t,f),s(f.translatesDTOs))}else{const{lastPullDate:f}=c,p=await us({...i,lastPullDate:f});if(p){const N=Q.get(c,"translatesDTOs");if(Q.isEmpty(p.translatesDTOs))s(N);else{const v=ai(N,p.translatesDTOs),y={lastPullDate:p.lastPullDate,translatesDTOs:v};ut.namespace(`i18n_${e}`).set(t,y,":"),s(v)}}}}),ci={data(){return{isModalVisible:!1,searchText:"",name:"",languages:[],data:[]}},computed:{firstResult(){return this.data.firstResult/this.data.pageSize+1},columns(){let e=[{title:"关键字",fixed:"left",width:200,key:"dictKey"}];return Q.map(this.languages,t=>{const n=t.code;return e.push({title:t.name,key:n,width:200,render:(s,{row:a,index:r})=>{const i=a[n];return L.createVNode(L.resolveComponent("Input"),{modelValue:i,onOnChange:c=>{this.data.datas[r][n]=c.target.value}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e,t){const{appCode:n,dictKey:s,page:a,unitCode:r}=e,i=[];return Q.forIn(e,(c,f)=>{Q.isEqual(c,t[f])||i.push({appCode:n,key:s,page:a,unitCode:r,lang:f,value:c})}),i},async saveData({msg:e=""}){const t=Q.differenceWith(this.data.datas,this.initialData.datas,Q.isEqual);let n=[];for(let a=0;a<t.length;a++){const r=t[a],i=Q.find(this.initialData.datas,{dictKey:r.dictKey}),c=this.findShallowStringDiff(r,i);n=Q.concat(n,c)}const s=await oi({appCode:this.appCode,language:this.language,data:n},this.token);s&&s.result===0&&(J.Message.success(e||s.msg),this.setLanguage(),this.initialData.datas=Q.cloneDeep(this.data.datas))},async saveNoEqual(){Q.isEqual(this.initialData,this.data)||this.saveData({msg:"已为您自动保存"})},changePage(e){this.saveNoEqual(),this.search({firstResult:(e-1)*this.data.pageSize})},async search(e){const t={appCode:this.appCode,searchBlur:this.searchText,page:this.name?Q.toUpper(this.name):"HOME",commaSeparatedLangs:Q.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},n=await ii(t,this.token);n&&(this.initialData=Q.cloneDeep(n.retVal),this.data=n.retVal)},async init(){const e=await cs(this.token);e&&e.result==0?(this.languages=e.retVal,this.search()):J.Message.error("获取语言失败,出错了")}}},fs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},ui={class:"extra"},fi={class:"gc_i18n_page"},di={style:{display:"flex"}};function _i(e,t,n,s,a,r){const i=L.resolveComponent("Table"),c=L.resolveComponent("TabPane"),f=L.resolveComponent("Input"),p=L.resolveComponent("Tabs"),N=L.resolveComponent("Page"),v=L.resolveComponent("Button"),y=L.resolveComponent("Modal");return L.openBlock(),L.createBlock(y,{modelValue:a.isModalVisible,"onUpdate:modelValue":t[2]||(t[2]=I=>a.isModalVisible=I),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:L.withCtx(()=>[L.createVNode(p,{type:"card",class:"gc_i18n_tabs"},{extra:L.withCtx(()=>[L.createElementVNode("div",ui,[L.createVNode(f,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:a.searchText,"onUpdate:modelValue":t[0]||(t[0]=I=>a.searchText=I),clearable:"",onOnEnter:r.search,onOnClear:r.search},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:L.withCtx(()=>[L.createVNode(c,{label:"当前页面"},{default:L.withCtx(()=>[L.createVNode(i,{border:"",height:550,columns:r.columns,data:a.data.datas},null,8,["columns","data"])]),_:1})]),_:1}),L.createElementVNode("div",fi,[L.createElementVNode("div",di,[L.createVNode(N,{modelValue:r.firstResult,"onUpdate:modelValue":t[1]||(t[1]=I=>r.firstResult=I),total:a.data.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"]),L.createElementVNode("div",null,"共 "+L.toDisplayString(a.data.totalRows)+" 项数据",1)]),L.createElementVNode("div",null,[L.createVNode(v,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:L.withCtx(()=>t[3]||(t[3]=[L.createTextVNode("关闭")])),_:1},8,["onClick"]),L.createVNode(v,{type:"primary",onClick:r.saveData},{default:L.withCtx(()=>t[4]||(t[4]=[L.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const mi=fs(ci,[["render",_i]]),hi={setup(){const{changeLocal:e,locale:t}=lt();return{changeLocal:e,locale:t}},name:"LangChange",data(){return{languages:[]}},props:{token:String,simple:{type:Boolean,default:!1}},methods:{toggle(){const e=Q.find(this.languages,t=>t.code!==this.locale);this.changeLocal(e.code)}},async mounted(){this.language=ut.get("i18n_language")||navigator.language;const e=await cs(this.token);e&&e.result===0&&(this.languages=e.retVal)}},gi={key:0,class:"gc_i18n_language"},pi={key:0},Ei={key:1,class:"two"};function bi(e,t,n,s,a,r){const i=L.resolveComponent("Option"),c=L.resolveComponent("Select");return a.languages&&a.languages.length>0?(L.openBlock(),L.createElementBlock("div",gi,[a.languages.length===1?(L.openBlock(),L.createElementBlock("div",pi,[L.createElementVNode("span",null,L.toDisplayString(a.languages[0].name),1)])):a.languages.length===2?(L.openBlock(),L.createElementBlock("div",Ei,[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.languages,f=>(L.openBlock(),L.createElementBlock("span",{class:L.normalizeClass(["item",f.code==s.locale?"active":"hide"]),onClick:t[0]||(t[0]=(...p)=>r.toggle&&r.toggle(...p))},L.toDisplayString(f.name),3))),256))])):(L.openBlock(),L.createBlock(c,{key:2,modelValue:s.locale,onOnChange:s.changeLocal},{default:L.withCtx(()=>[(L.openBlock(!0),L.createElementBlock(L.Fragment,null,L.renderList(a.languages,f=>(L.openBlock(),L.createBlock(i,{value:f.code,label:f.name},{default:L.withCtx(()=>[L.createTextVNode(L.toDisplayString(f.name),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue","onOnChange"]))])):L.createCommentVNode("",!0)}const yi=fs(hi,[["render",bi],["__scopeId","data-v-681259c1"]]);J.Message.config({duration:3}),Te.defaults.timeout=6e4,Te.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>(J.Message.error({content:"请求超时!"}),Promise.resolve(e))),Te.interceptors.response.use(e=>{const{nomsg:t}=e.config.headers;return e.status&&e.status!=200?t||J.Message.error({content:e.data.message||"未知错误"}):e.data.success=!0,e.data},e=>(e.response?e.response.status==504||e.response.status==404?J.Message.error({content:"服务器被吃了⊙﹏⊙∥"}):e.response.status==403?J.Message.error({content:"权限不足,请联系管理员!"}):J.Message.error({content:`${e.response.status}:${e.response.statusText||e.response.error}`}):e.code==="ECONNABORTED"&&e.message.indexOf("timeout")!==-1?J.Message.error({content:"请求超时!"}):J.Message.error({content:e.message||"未知错误!"}),Promise.resolve(e)));class Ni{constructor(t={}){const{router:n,appCode:s,messages:a,token:r}=t;this.token=r||ut.get("token"),this.appCode=s,this.router=n,this.locale=navigator.language||"zh-CN",this.modalLoad=!1,this.name="",this.messages=a||{},this.i18n=Ha({locale:"zh-CN",globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const i=this.i18n.global.t;this.i18n.global.t=(c,f,p)=>{var y,I;const N=Q.toUpper((I=(y=n==null?void 0:n.currentRoute)==null?void 0:y.value)==null?void 0:I.name),v=i(c);if(v===c&&N){const P=`${N}.${c}`,A=i(P,f);return A!==P?A:p?(console.log(`找不到"${c}",使用"${p}"`),p):c}return v},this.i18n.global.changeLocale=c=>{this.setLanguage(c||this.locale)},this.createModal(),n.beforeEach(async(c,f,p)=>{const{language:N,token:v}=c.query;this.configInstance&&this.configInstance.closeModal(),this.name=c.name,v&&this.setToken(v),await this.setLanguage(N),p()}),ps.bind("shift > t",c=>{this.configInstance.openModal({name:this.name})})}setToken(t){this.token=t}async setLanguage(t="zh-CN"){return new Promise(async(n,s)=>{const a=await li({appCode:this.appCode,language:t,token:this.token});if(a){const r=ri(a);this.i18n.global.setLocaleMessage(t,Q.assign({},Q.get(this.messages,t),r))}this.locale=t,this.i18n.global.locale.value=t,n(!0)})}createModal(t){this.modalLoad=!0,this.configInstance=L.createApp(mi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:this.name}).use(J).mount(document.createElement("div"))}Language(){return{setup:()=>({token:this.token}),components:{LanguageTPL:yi},template:"<LanguageTPL :token='token'></LanguageTPL>"}}install(t,n={}){t.use(J,{i18n:this.i18n}),t.config.globalProperties.$t=this.i18n.global.t,t.config.globalProperties.$i18n=this.i18n,t.component("Language",this.Language()),t.use(this.i18n)}}return Ni});
22
+ */const ba="11.1.1";function ya(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Ce().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Ce().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Ce().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ce().__INTLIFY_PROD_DEVTOOLS__=!1)}const G={UNEXPECTED_RETURN_TYPE:Ir,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function se(e,...t){return Re(e,null,process.env.NODE_ENV!=="production"?{messages:Na,args:t}:void 0)}const Na={[G.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[G.INVALID_ARGUMENT]:"Invalid argument",[G.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[G.NOT_INSTALLED]:"Need to install with `app.use` function",[G.UNEXPECTED_ERROR]:"Unexpected error",[G.REQUIRED_VALUE]:"Required in value: {0}",[G.INVALID_VALUE]:"Invalid value",[G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[G.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[G.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Dt=ce("__translateVNode"),Pt=ce("__datetimeParts"),Rt=ce("__numberParts"),Ie=ce("__enableEmitter"),Ge=ce("__disableEmitter"),xn=ce("__setPluralRules"),$n=ce("__injectWithOption"),Mt=ce("__dispose"),fe={FALLBACK_TO_ROOT:xr,NOT_FOUND_PARENT_SCOPE:9,IGNORE_OBJ_FLATTEN:10,DEPRECATE_LEGACY_MODE:11,DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE:12},va={[fe.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[fe.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[fe.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[fe.DEPRECATE_LEGACY_MODE]:`Legacy API mode has been deprecated in v11. Use Composition API mode instead.
23
+ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html`,[fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]:"'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."};function Ye(e,...t){return et(va[e],...t)}function He(e){if(!U(e))return e;for(const t in e)if(le(e,t))if(!t.includes("."))U(e[t])&&He(e[t]);else{const n=t.split("."),s=n.length-1;let a=e,r=!1;for(let i=0;i<s;i++){if(n[i]in a||(a[n[i]]=W()),!U(a[n[i]])){process.env.NODE_ENV!=="production"&&pe(Ye(fe.IGNORE_OBJ_FLATTEN,{key:n[i]})),r=!0;break}a=a[n[i]]}r||(a[n[s]]=e[t],delete e[t]),U(a[n[s]])&&He(a[n[s]])}return e}function wt(e,t){const{messages:n,__i18n:s,messageResolver:a,flatJson:r}=t,i=F(n)?n:j(s)?W():{[e]:W()};if(j(s)&&s.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:f,resource:p}=c;f?(i[f]=i[f]||W(),st(p,i[f])):st(p,i)}else k(c)&&st(JSON.parse(c),i)}),a==null&&r)for(const c in i)le(i,c)&&He(i[c]);return i}function Wn(e){return e.type}function Bn(e,t,n){let s=U(t.messages)?t.messages:W();"__i18nGlobal"in n&&(s=wt(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const a=Object.keys(s);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(U(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(U(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Gn(e){return T.createVNode(T.Text,null,e,0)}const Yn="__INTLIFY_META__",Hn=()=>[],La=()=>!1;let jn=0;function Xn(e){return(t,n,s,a)=>e(n,s,T.getCurrentInstance()||void 0,a)}const Ta=()=>{const e=T.getCurrentInstance();let t=null;return e&&(t=Wn(e)[Yn])?{[Yn]:t}:null};function Ft(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,a=e.flatJson,r=oe?T.ref:T.shallowRef;let i=K(e.inheritLocale)?e.inheritLocale:!0;const c=r(t&&i?t.locale.value:k(e.locale)?e.locale:We),f=r(t&&i?t.fallbackLocale.value:k(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=r(wt(c.value,e)),N=r(F(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),v=r(F(e.numberFormats)?e.numberFormats:{[c.value]:{}});let y=t?t.missingWarn:K(e.missingWarn)||Pe(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:K(e.fallbackWarn)||Pe(e.fallbackWarn)?e.fallbackWarn:!0,P=t?t.fallbackRoot:K(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,S=B(e.missing)?e.missing:null,o=B(e.missing)?Xn(e.missing):null,m=B(e.postTranslation)?e.postTranslation:null,l=t?t.warnHtmlMessage:K(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const _=t?t.modifiers:F(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,g;g=(()=>{s&&vn(null);const b={version:ba,locale:c.value,fallbackLocale:f.value,messages:p.value,modifiers:_,pluralRules:E,missing:o===null?void 0:o,missingWarn:y,fallbackWarn:I,fallbackFormat:A,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:l,escapeParameter:u,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};b.datetimeFormats=N.value,b.numberFormats=v.value,b.__datetimeFormatters=F(g)?g.__datetimeFormatters:void 0,b.__numberFormatters=F(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(b.__v_emitter=F(g)?g.__v_emitter:void 0);const C=Jr(b);return s&&vn(C),C})(),Be(g,c.value,f.value);function R(){return[c.value,f.value,p.value,N.value,v.value]}const w=T.computed({get:()=>c.value,set:b=>{g.locale=b,c.value=b}}),Y=T.computed({get:()=>f.value,set:b=>{g.fallbackLocale=b,f.value=b,Be(g,c.value,b)}}),$=T.computed(()=>p.value),de=T.computed(()=>N.value),_e=T.computed(()=>v.value);function Ae(){return B(m)?m:null}function re(b){m=b,g.postTranslation=b}function ve(){return S}function Ke(b){b!==null&&(o=Xn(b)),S=b,g.missing=o}function Xe(b,C){return b!=="translate"||!C.resolvedMessage}const ge=(b,C,x,J,Se,_t)=>{R();let Ve;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=t?qr():void 0),Ve=b(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(g.fallbackContext=void 0)}if(x!=="translate exists"&&Z(Ve)&&Ve===it||x==="translate exists"&&!Ve){const[De,vi]=C();if(process.env.NODE_ENV!=="production"&&t&&k(De)&&Xe(x,vi)&&(P&&(lt(I,De)||Tn(y,De))&&pe(Ye(fe.FALLBACK_TO_ROOT,{key:De,type:x})),process.env.NODE_ENV!=="production")){const{__v_emitter:_s}=g;_s&&P&&_s.emit("fallback",{type:x,key:De,to:"global",groupId:`${x}:${De}`})}return t&&P?J(t):Se(De)}else{if(_t(Ve))return Ve;throw se(G.UNEXPECTED_RETURN_TYPE)}};function qe(...b){return ge(C=>Reflect.apply(Fn,null,[C,...b]),()=>kt(...b),"translate",C=>Reflect.apply(C.t,C,[...b]),C=>C,C=>k(C))}function Bt(...b){const[C,x,J]=b;if(J&&!U(J))throw se(G.INVALID_ARGUMENT);return qe(C,x,z({resolvedMessage:!0},J||{}))}function Gt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>Reflect.apply(C.d,C,[...b]),()=>ot,C=>k(C))}function Yt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>Reflect.apply(C.n,C,[...b]),()=>ot,C=>k(C))}function Ht(b){return b.map(C=>k(C)||Z(C)||K(C)?Gn(String(C)):C)}const jt={normalize:Ht,interpolate:b=>b,type:"vnode"};function dt(...b){return ge(C=>{let x;const J=C;try{J.processor=jt,x=Reflect.apply(Fn,null,[J,...b])}finally{J.processor=null}return x},()=>kt(...b),"translate",C=>C[Dt](...b),C=>[Gn(C)],C=>j(C))}function Xt(...b){return ge(C=>Reflect.apply(Dn,null,[C,...b]),()=>At(...b),"number format",C=>C[Rt](...b),Hn,C=>k(C)||j(C))}function qt(...b){return ge(C=>Reflect.apply(An,null,[C,...b]),()=>It(...b),"datetime format",C=>C[Pt](...b),Hn,C=>k(C)||j(C))}function Jt(b){E=b,g.pluralRules=E}function Qt(b,C){return ge(()=>{if(!b)return!1;const x=k(C)?C:c.value,J=ke(x),Se=g.messageResolver(J,b);return ye(Se)||ie(Se)||k(Se)},()=>[b],"translate exists",x=>Reflect.apply(x.te,x,[b,C]),La,x=>K(x))}function Je(b){let C=null;const x=_n(g,f.value,c.value);for(let J=0;J<x.length;J++){const Se=p.value[x[J]]||{},_t=g.messageResolver(Se,b);if(_t!=null){C=_t;break}}return C}function Qe(b){const C=Je(b);return C??(t?t.tm(b)||{}:{})}function ke(b){return p.value[b]||{}}function Ze(b,C){if(a){const x={[b]:C};for(const J in x)le(x,J)&&He(x[J]);C=x[b]}p.value[b]=C,g.messages=p.value}function Zt(b,C){p.value[b]=p.value[b]||{};const x={[b]:C};if(a)for(const J in x)le(x,J)&&He(x[J]);C=x[b],st(C,p.value[b]),g.messages=p.value}function d(b){return N.value[b]||{}}function h(b,C){N.value[b]=C,g.datetimeFormats=N.value,Sn(g,b,C)}function L(b,C){N.value[b]=z(N.value[b]||{},C),g.datetimeFormats=N.value,Sn(g,b,C)}function D(b){return v.value[b]||{}}function X(b,C){v.value[b]=C,g.numberFormats=v.value,Rn(g,b,C)}function q(b,C){v.value[b]=z(v.value[b]||{},C),g.numberFormats=v.value,Rn(g,b,C)}jn++,t&&oe&&(T.watch(t.locale,b=>{i&&(c.value=b,g.locale=b,Be(g,c.value,f.value))}),T.watch(t.fallbackLocale,b=>{i&&(f.value=b,g.fallbackLocale=b,Be(g,c.value,f.value))}));const V={id:jn,locale:w,fallbackLocale:Y,get inheritLocale(){return i},set inheritLocale(b){i=b,b&&t&&(c.value=t.locale.value,f.value=t.fallbackLocale.value,Be(g,c.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:$,get modifiers(){return _},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(b){y=b,g.missingWarn=y},get fallbackWarn(){return I},set fallbackWarn(b){I=b,g.fallbackWarn=I},get fallbackRoot(){return P},set fallbackRoot(b){P=b},get fallbackFormat(){return A},set fallbackFormat(b){A=b,g.fallbackFormat=A},get warnHtmlMessage(){return l},set warnHtmlMessage(b){l=b,g.warnHtmlMessage=b},get escapeParameter(){return u},set escapeParameter(b){u=b,g.escapeParameter=b},t:qe,getLocaleMessage:ke,setLocaleMessage:Ze,mergeLocaleMessage:Zt,getPostTranslationHandler:Ae,setPostTranslationHandler:re,getMissingHandler:ve,setMissingHandler:Ke,[xn]:Jt};return V.datetimeFormats=de,V.numberFormats=_e,V.rt=Bt,V.te=Qt,V.tm=Qe,V.d=Gt,V.n=Yt,V.getDateTimeFormat=d,V.setDateTimeFormat=h,V.mergeDateTimeFormat=L,V.getNumberFormat=D,V.setNumberFormat=X,V.mergeNumberFormat=q,V[$n]=n,V[Dt]=dt,V[Pt]=qt,V[Rt]=Xt,process.env.NODE_ENV!=="production"&&(V[Ie]=b=>{g.__v_emitter=b},V[Ge]=()=>{g.__v_emitter=void 0}),V}const qn="vue-i18n: composer properties",Ut={"vue-devtools-plugin-vue-i18n":"Vue I18n DevTools","vue-i18n-resource-inspector":"Vue I18n DevTools","vue-i18n-timeline":"Vue I18n"},Ca={"vue-i18n-resource-inspector":"Search for scopes ..."},Oa={"vue-i18n-timeline":16764185};let Kt;async function Ia(e,t){return new Promise((n,s)=>{try{Ea({id:"vue-devtools-plugin-vue-i18n",label:Ut["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qn],app:e},a=>{Kt=a,a.on.visitComponentTree(({componentInstance:i,treeNode:c})=>{Aa(i,c,t)}),a.on.inspectComponent(({componentInstance:i,instanceData:c})=>{i.vnode.el&&i.vnode.el.__VUE_I18N__&&c&&(t.mode==="legacy"?i.vnode.el.__VUE_I18N__!==t.global.__composer&&Qn(c,i.vnode.el.__VUE_I18N__):Qn(c,i.vnode.el.__VUE_I18N__))}),a.addInspector({id:"vue-i18n-resource-inspector",label:Ut["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Ca["vue-i18n-resource-inspector"]}),a.on.getInspectorTree(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ra(i,t)});const r=new Map;a.on.getInspectorState(async i=>{if(i.app===e&&i.inspectorId==="vue-i18n-resource-inspector")if(a.unhighlightElement(),wa(i,t),i.nodeId==="global"){if(!r.has(i.app)){const[c]=await a.getComponentInstances(i.app);r.set(i.app,c)}a.highlightElement(r.get(i.app))}else{const c=Ma(i.nodeId,t);c&&a.highlightElement(c)}}),a.on.editInspectorState(i=>{i.app===e&&i.inspectorId==="vue-i18n-resource-inspector"&&Ua(i,t)}),a.addTimelineLayer({id:"vue-i18n-timeline",label:Ut["vue-i18n-timeline"],color:Oa["vue-i18n-timeline"]}),n(!0)})}catch(a){console.error(a),s(!1)}})}function Jn(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Aa(e,t,n){const s=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==s){const a={label:`i18n (${Jn(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(a)}}function Qn(e,t){const n=qn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Vt(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Vt(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];B(s)&&"source"in s?t[n]=Pa(s):ye(s)&&s.loc&&s.loc.source?t[n]=s.loc.source:U(s)?t[n]=Vt(s):t[n]=s}),t}const ka={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Sa(e){return e.replace(/[<>"&]/g,Da)}function Da(e){return ka[e]||e}function Pa(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Sa(e.source)}")`:"(?)"}`}}}function Ra(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[s,a]of t.__instances){const r=t.mode==="composition"?a:a.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Jn(s)} Scope`})}}function Ma(e,t){let n=null;if(e!=="global"){for(const[s,a]of t.__instances.entries())if(a.id.toString()===e){n=s;break}}return n}function Zn(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(s=>s.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function wa(e,t){const n=Zn(e.nodeId,t);return n&&(e.state=Fa(n)),null}function Fa(e){const t={},n="Locale related info",s=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=s;const a="Locale messages info",r=[{type:a,key:"messages",editable:!1,value:Vt(e.messages.value)}];t[a]=r;{const i="Datetime formats info",c=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=c;const f="Datetime formats info",p=[{type:f,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[f]=p}return t}function je(e,t){if(Kt){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Kt.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function Ua(e,t){const n=Zn(e.nodeId,t);if(n){const[s]=e.path;s==="locale"&&k(e.state.value)?n.locale.value=e.state.value:s==="fallbackLocale"&&(k(e.state.value)||j(e.state.value)||U(e.state.value))?n.fallbackLocale.value=e.state.value:s==="inheritLocale"&&K(e.state.value)&&(n.inheritLocale=e.state.value)}}function Ka(e){const t=k(e.locale)?e.locale:We,n=k(e.fallbackLocale)||j(e.fallbackLocale)||F(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=B(e.missing)?e.missing:void 0,a=K(e.silentTranslationWarn)||Pe(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=K(e.silentFallbackWarn)||Pe(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=K(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.formatFallbackMessages,f=F(e.modifiers)?e.modifiers:{},p=e.pluralizationRules,N=B(e.postTranslation)?e.postTranslation:void 0,v=k(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,I=K(e.sync)?e.sync:!0;let P=e.messages;if(F(e.sharedMessages)){const _=e.sharedMessages;P=Object.keys(_).reduce((g,O)=>{const R=g[O]||(g[O]={});return z(R,_[O]),g},P||{})}const{__i18n:A,__root:S,__injectWithOption:o}=e,m=e.datetimeFormats,l=e.numberFormats,u=e.flatJson;return{locale:t,fallbackLocale:n,messages:P,flatJson:u,datetimeFormats:m,numberFormats:l,missing:s,missingWarn:a,fallbackWarn:r,fallbackRoot:i,fallbackFormat:c,modifiers:f,pluralRules:p,postTranslation:N,warnHtmlMessage:v,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:I,__i18n:A,__root:S,__injectWithOption:o}}function xt(e={}){const t=Ft(Ka(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return K(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=K(a)?!a:a},get silentFallbackWarn(){return K(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=K(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return s.__extender=n,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=a=>{const r=t;r[Ie]&&r[Ie](a)},s.__disableEmitter=()=>{const a=t;a[Ge]&&a[Ge]()}),s}function Va(e,t,n){return{beforeCreate(){const s=T.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=zn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=xt(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=zn(e,a);else{this.$i18n=xt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Bn(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...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),n.__setInstance(s,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const s=this.$i18n;this.$el.__VUE_I18N__=s.__composer;const a=this.__v_emitter=pt();s.__enableEmitter&&s.__enableEmitter(a),a.on("*",je)}},unmounted(){const s=T.getCurrentInstance();if(!s)throw se(G.UNEXPECTED_ERROR);const a=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",je),delete this.__v_emitter),this.$i18n&&(a.__disableEmitter&&a.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),n.__deleteInstance(s),delete this.$i18n}}}function zn(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[xn](t.pluralizationRules||e.pluralizationRules);const n=wt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const $t={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,a)=>[...s,...a.type===T.Fragment?a.children:[a]],[]):t.reduce((n,s)=>{const a=e[s];return a&&(n[s]=a()),n},W())}function es(){return T.Fragment}const ts=T.defineComponent({name:"i18n-t",props:z({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Z(e)||!isNaN(e)}},$t),setup(e,t){const{slots:n,attrs:s}=t,a=e.i18n||ct({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(v=>v!=="_"),i=W();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=k(e.plural)?+e.plural:e.plural);const c=xa(t,r),f=a[Dt](e.keypath,c,i),p=z(W(),s),N=k(e.tag)||U(e.tag)?e.tag:es();return T.h(N,p,f)}}});function $a(e){return j(e)&&!k(e[0])}function ns(e,t,n,s){const{slots:a,attrs:r}=t;return()=>{const i={part:!0};let c=W();e.locale&&(i.locale=e.locale),k(e.format)?i.key=e.format:U(e.format)&&(k(e.format.key)&&(i.key=e.format.key),c=Object.keys(e.format).reduce((y,I)=>n.includes(I)?z(W(),y,{[I]:e.format[I]}):y,W()));const f=s(e.value,i,c);let p=[i.key];j(f)?p=f.map((y,I)=>{const P=a[y.type],A=P?P({[y.type]:y.value,index:I,parts:f}):[y.value];return $a(A)&&(A[0].key=`${y.type}-${I}`),A}):k(f)&&(p=[f]);const N=z(W(),r),v=k(e.tag)||U(e.tag)?e.tag:es();return T.h(v,N,p)}}const ss=T.defineComponent({name:"i18n-n",props:z({value:{type:Number,required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return ns(e,t,Pn,(...s)=>n[Rt](...s))}});function Wa(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Ba(e){const t=i=>{process.env.NODE_ENV!=="production"&&gt(Ye(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));const{instance:c,value:f}=i;if(!c||!c.$)throw se(G.UNEXPECTED_ERROR);const p=Wa(e,c.$),N=rs(f);return[Reflect.apply(p.t,p,[...as(N)]),p]};return{created:(i,c)=>{const[f,p]=t(c);oe&&e.global===p&&(i.__i18nWatcher=T.watch(p.locale,()=>{c.instance&&c.instance.$forceUpdate()})),i.__composer=p,i.textContent=f},unmounted:i=>{oe&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:c})=>{if(i.__composer){const f=i.__composer,p=rs(c);i.textContent=Reflect.apply(f.t,f,[...as(p)])}},getSSRProps:i=>{const[c]=t(i);return{textContent:c}}}}function rs(e){if(k(e))return{path:e};if(F(e)){if(!("path"in e))throw se(G.REQUIRED_VALUE,"path");return e}else throw se(G.INVALID_VALUE)}function as(e){const{path:t,locale:n,args:s,choice:a,plural:r}=e,i={},c=s||{};return k(n)&&(i.locale=n),Z(a)&&(i.plural=a),Z(r)&&(i.plural=r),[t,c,i]}function Ga(e,t,...n){const s=F(n[0])?n[0]:{};(K(s.globalInstall)?s.globalInstall:!0)&&([ts.name,"I18nT"].forEach(r=>e.component(r,ts)),[ss.name,"I18nN"].forEach(r=>e.component(r,ss)),[os.name,"I18nD"].forEach(r=>e.component(r,os))),e.directive("t",Ba(t))}const Ya=ce("global-vue-i18n");function Ha(e={}){const t=__VUE_I18N_LEGACY_API__&&K(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__;process.env.NODE_ENV!=="production"&&t&&gt(Ye(fe.DEPRECATE_LEGACY_MODE));const n=K(e.globalInjection)?e.globalInjection:!0,s=new Map,[a,r]=ja(e,t),i=ce(process.env.NODE_ENV!=="production"?"vue-i18n":"");function c(v){return s.get(v)||null}function f(v,y){s.set(v,y)}function p(v){s.delete(v)}const N={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(v,...y){if(process.env.NODE_ENV!=="production"&&(v.__VUE_I18N__=N),v.__VUE_I18N_SYMBOL__=i,v.provide(v.__VUE_I18N_SYMBOL__,N),F(y[0])){const A=y[0];N.__composerExtend=A.__composerExtend,N.__vueI18nExtend=A.__vueI18nExtend}let I=null;!t&&n&&(I=ti(v,N.global)),__VUE_I18N_FULL_INSTALL__&&Ga(v,N,...y),__VUE_I18N_LEGACY_API__&&t&&v.mixin(Va(r,r.__composer,N));const P=v.unmount;if(v.unmount=()=>{I&&I(),N.dispose(),P()},process.env.NODE_ENV!=="production"){if(!await Ia(v,N))throw se(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const S=pt();if(t){const o=r;o.__enableEmitter&&o.__enableEmitter(S)}else{const o=r;o[Ie]&&o[Ie](S)}S.on("*",je)}},get global(){return r},dispose(){a.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:p};return N}function ct(e={}){const t=T.getCurrentInstance();if(t==null)throw se(G.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw se(G.NOT_INSTALLED);const n=Xa(t),s=Ja(n),a=Wn(t),r=qa(e,a);if(r==="global")return Bn(s,e,a),s;if(r==="parent"){let f=Qa(n,t,e.__useComponent);return f==null&&(process.env.NODE_ENV!=="production"&&pe(Ye(fe.NOT_FOUND_PARENT_SCOPE)),f=s),f}const i=n;let c=i.__getInstance(t);if(c==null){const f=z({},e);"__i18n"in a&&(f.__i18n=a.__i18n),s&&(f.__root=s),c=Ft(f),i.__composerExtend&&(c[Mt]=i.__composerExtend(c)),za(i,t,c),i.__setInstance(t,c)}return c}function ja(e,t){const n=T.effectScope(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>xt(e)):n.run(()=>Ft(e));if(s==null)throw se(G.UNEXPECTED_ERROR);return[n,s]}function Xa(e){const t=T.inject(e.isCE?Ya:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw se(e.isCE?G.NOT_INSTALLED_WITH_PROVIDE:G.UNEXPECTED_ERROR);return t}function qa(e,t){return tt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ja(e){return e.mode==="composition"?e.global:e.global.__composer}function Qa(e,t,n=!1){let s=null;const a=t.root;let r=Za(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const c=i.__getInstance(r);c!=null&&(s=c.__composer,n&&s&&!s[$n]&&(s=null))}if(s!=null||a===r)break;r=r.parent}return s}function Za(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function za(e,t,n){let s=null;T.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,s=pt();const a=n;a[Ie]&&a[Ie](s),s.on("*",je)}},t),T.onUnmounted(()=>{const a=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(s&&s.off("*",je),a[Ge]&&a[Ge](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=a[Mt];r&&(r(),delete a[Mt])},t)}const ei=["locale","fallbackLocale","availableLocales"],is=["t","rt","d","n","tm","te"];function ti(e,t){const n=Object.create(null);return ei.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw se(G.UNEXPECTED_ERROR);const i=T.isRef(r.value)?{get(){return r.value.value},set(c){r.value.value=c}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,a,i)}),e.config.globalProperties.$i18n=n,is.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw se(G.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,is.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const os=T.defineComponent({name:"i18n-d",props:z({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$t),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return ns(e,t,kn,(...s)=>n[Pt](...s))}});if(ya(),Gr(vr),Yr(Vr),Hr(_n),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Ce();e.__INTLIFY__=!0,Lr(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;var ut={exports:{}};/*! store2 - v2.14.4 - 2024-12-26
24
+ * Copyright (c) 2024 Nathan Bubna; Licensed MIT */var Wt=ut.exports,ls;function ni(){return ls||(ls=1,function(e){(function(t,n){var s={version:"2.14.4",areas:{},apis:{},nsdelim:".",inherit:function(r,i){for(var c in r)i.hasOwnProperty(c)||Object.defineProperty(i,c,Object.getOwnPropertyDescriptor(r,c));return i},stringify:function(r,i){return r===void 0||typeof r=="function"?r+"":JSON.stringify(r,i||s.replace)},parse:function(r,i){try{return JSON.parse(r,i||s.revive)}catch{return r}},fn:function(r,i){s.storeAPI[r]=i;for(var c in s.apis)s.apis[c][r]=i},get:function(r,i){return r.getItem(i)},set:function(r,i,c){r.setItem(i,c)},remove:function(r,i){r.removeItem(i)},key:function(r,i){return r.key(i)},length:function(r){return r.length},clear:function(r){r.clear()},Store:function(r,i,c){var f=s.inherit(s.storeAPI,function(N,v,y){return arguments.length===0?f.getAll():typeof v=="function"?f.transact(N,v,y):v!==void 0?f.set(N,v,y):typeof N=="string"||typeof N=="number"?f.get(N):typeof N=="function"?f.each(N):N?f.setAll(N,v):f.clear()});f._id=r;try{var p="__store2_test";i.setItem(p,"ok"),f._area=i,i.removeItem(p)}catch{f._area=s.storage("fake")}return f._ns=c||"",s.areas[r]||(s.areas[r]=f._area),s.apis[f._ns+f._id]||(s.apis[f._ns+f._id]=f),f},storeAPI:{area:function(r,i){var c=this[r];return(!c||!c.area)&&(c=s.Store(r,i,this._ns),this[r]||(this[r]=c)),c},namespace:function(r,i,c){if(c=c||this._delim||s.nsdelim,!r)return this._ns?this._ns.substring(0,this._ns.length-c.length):"";var f=r,p=this[f];if((!p||!p.namespace)&&(p=s.Store(this._id,this._area,this._ns+f+c),p._delim=c,this[f]||(this[f]=p),!i))for(var N in s.areas)p.area(N,s.areas[N]);return p},isFake:function(r){return r?(this._real=this._area,this._area=s.storage("fake")):r===!1&&(this._area=this._real||this._area),this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(r){return this._area.has?this._area.has(this._in(r)):this._in(r)in this._area},size:function(){return this.keys().length},each:function(r,i){for(var c=0,f=s.length(this._area);c<f;c++){var p=this._out(s.key(this._area,c));if(p!==void 0&&r.call(this,p,this.get(p),i)===!1)break;f>s.length(this._area)&&(f--,c--)}return i||this},keys:function(r){return this.each(function(i,c,f){f.push(i)},r||[])},get:function(r,i){var c=s.get(this._area,this._in(r)),f;return typeof i=="function"&&(f=i,i=null),c!==null?s.parse(c,f):i??c},getAll:function(r){return this.each(function(i,c,f){f[i]=c},r||{})},transact:function(r,i,c){var f=this.get(r,c),p=i(f);return this.set(r,p===void 0?f:p),this},set:function(r,i,c){var f=this.get(r),p;return f!=null&&c===!1?i:(typeof c=="function"&&(p=c,c=void 0),s.set(this._area,this._in(r),s.stringify(i,p),c)||f)},setAll:function(r,i){var c,f;for(var p in r)f=r[p],this.set(p,f,i)!==f&&(c=!0);return c},add:function(r,i,c){var f=this.get(r);if(f instanceof Array)i=f.concat(i);else if(f!==null){var p=typeof f;if(p===typeof i&&p==="object"){for(var N in i)f[N]=i[N];i=f}else i=f+i}return s.set(this._area,this._in(r),s.stringify(i,c)),i},remove:function(r,i){var c=this.get(r,i);return s.remove(this._area,this._in(r)),c},clear:function(){return this._ns?this.each(function(r){s.remove(this._area,this._in(r))},1):s.clear(this._area),this},clearAll:function(){var r=this._area;for(var i in s.areas)s.areas.hasOwnProperty(i)&&(this._area=s.areas[i],this.clear());return this._area=r,this},_in:function(r){return typeof r!="string"&&(r=s.stringify(r)),this._ns?this._ns+r:r},_out:function(r){return this._ns?r&&r.indexOf(this._ns)===0?r.substring(this._ns.length):void 0:r}},storage:function(r){return s.inherit(s.storageAPI,{items:{},name:r})},storageAPI:{length:0,has:function(r){return this.items.hasOwnProperty(r)},key:function(r){var i=0;for(var c in this.items)if(this.has(c)&&r===i++)return c},setItem:function(r,i){this.has(r)||this.length++,this.items[r]=i},removeItem:function(r){this.has(r)&&(delete this.items[r],this.length--)},getItem:function(r){return this.has(r)?this.items[r]:null},clear:function(){for(var r in this.items)this.removeItem(r)}}},a=s.Store("local",function(){try{return localStorage}catch{}}());a.local=a,a._=s,a.area("session",function(){try{return sessionStorage}catch{}}()),a.area("page",s.storage("page")),typeof n=="function"&&n.amd!==void 0?n("store2",[],function(){return a}):e.exports?e.exports=a:(t.store&&(s.conflict=t.store),t.store=a)})(Wt,Wt&&Wt.define)}(ut)),ut.exports}var si=ni();const Ue=en(si),ri=e=>{const t={};for(const n of e)t[n.key]=n.value;return t},ai=(e,t)=>(t.forEach(n=>{const s=H.find(e,{key:n.key});s?H.merge(s,n):e.push(n)}),e),ft="https://test.ihotel.cn",cs=async e=>Le.get(ft+"/i18n-web/sysoption/getsupportedlangs",{headers:{Authorization:e}}),us=async({appCode:e,language:t="zh-CN",page:n,lastPullDate:s,token:a})=>new Promise(async(r,i)=>{const c=ft+"/i18n-web/kv_translate/kv_translates",f=s?c+"?lastPullDate="+s:c,p=await Le({url:f,method:"GET",headers:{appCode:e,page:n,language:t,Authorization:a}});p&&p.result==0?r(p.retVal):r(p)}),ii=async(e,t)=>Le({url:ft+"/i18n-web/kv_translate/kv_translates",method:"POST",data:e,headers:{Authorization:t}}),oi=async(e,t)=>Le({url:ft+"/i18n-web/kv_translate/batch",method:"POST",data:e,headers:{Authorization:t}}),li=async({appCode:e,language:t="zh-CN",token:n})=>new Promise(async(s,a)=>{const r=Ue.namespace(`I18N_${H.toUpper(e)}`),i={appCode:e,language:t,token:n},c=r.get(t);if(!c||!c.lastPullDate){const f=await us(i);f&&(r.set(t,f),s(f.translatesDTOs))}else{const{lastPullDate:f}=c,p=await us({...i,lastPullDate:f});if(p){const N=H.get(c,"translatesDTOs");if(H.isEmpty(p.translatesDTOs))s(N);else{const v=ai(N,p.translatesDTOs),y={lastPullDate:p.lastPullDate,translatesDTOs:v};Ue.namespace(`I18N_${H.toUpper(e)}`).set(t,y,":"),s(v)}}}}),ci={data(){return{isModalVisible:!1,searchText:"",name:"",languages:[],data:[]}},computed:{firstResult(){return this.data.firstResult/this.data.pageSize+1},columns(){let e=[{title:"关键字",fixed:"left",width:200,key:"dictKey"}];return H.map(this.languages,t=>{const n=t.code;return e.push({title:t.name,key:n,width:200,render:(s,{row:a,index:r})=>{const i=a[n];return T.createVNode(T.resolveComponent("Input"),{modelValue:i,onOnChange:c=>{this.data.datas[r][n]=c.target.value}},null)}})}),e}},props:{appCode:String,setLanguage:Function,token:String},methods:{closeModal(){this.searchText="",this.isModalVisible=!1},openModal({name:e}){this.isModalVisible||(this.isModalVisible=!0,this.name=e,this.init())},findShallowStringDiff(e,t){const{appCode:n,dictKey:s,page:a,unitCode:r}=e,i=[];return H.forIn(e,(c,f)=>{H.isEqual(c,t[f])||i.push({appCode:n,key:s,page:a,unitCode:r,lang:f,value:c})}),i},async saveData({msg:e=""}){const t=H.differenceWith(this.data.datas,this.initialData.datas,H.isEqual);let n=[];for(let a=0;a<t.length;a++){const r=t[a],i=H.find(this.initialData.datas,{dictKey:r.dictKey}),c=this.findShallowStringDiff(r,i);n=H.concat(n,c)}const s=await oi({appCode:this.appCode,language:this.language,data:n},this.token);s&&s.result===0&&(Q.Message.success(e||s.msg),this.setLanguage(),this.initialData.datas=H.cloneDeep(this.data.datas))},async saveNoEqual(){H.isEqual(this.initialData,this.data)||this.saveData({msg:"已为您自动保存"})},changePage(e){this.saveNoEqual(),this.search({firstResult:(e-1)*this.data.pageSize})},async search(e){const t={appCode:this.appCode,searchBlur:this.searchText,page:this.name?H.toUpper(this.name):"HOME",commaSeparatedLangs:H.map(this.languages,"code").toString(),firstResult:0,pageSize:10,...e},n=await ii(t,this.token);n&&(this.initialData=H.cloneDeep(n.retVal),this.data=n.retVal)},async init(){const e=await cs(this.token);e&&e.result==0?(this.languages=e.retVal,this.search()):Q.Message.error("获取语言失败,出错了")}}},fs=(e,t)=>{const n=e.__vccOpts||e;for(const[s,a]of t)n[s]=a;return n},ui={class:"extra"},fi={class:"gc_i18n_page"},di={style:{display:"flex"}};function _i(e,t,n,s,a,r){const i=T.resolveComponent("Table"),c=T.resolveComponent("TabPane"),f=T.resolveComponent("Input"),p=T.resolveComponent("Tabs"),N=T.resolveComponent("Page"),v=T.resolveComponent("Button"),y=T.resolveComponent("Modal");return T.openBlock(),T.createBlock(y,{modelValue:a.isModalVisible,"onUpdate:modelValue":t[2]||(t[2]=I=>a.isModalVisible=I),"mask-closable":!1,width:70,title:"多语言管理中心","footer-hide":""},{default:T.withCtx(()=>[T.createVNode(p,{type:"card",class:"gc_i18n_tabs"},{extra:T.withCtx(()=>[T.createElementVNode("div",ui,[T.createVNode(f,{prefix:"ios-search",placeholder:"请输入搜索内容",modelValue:a.searchText,"onUpdate:modelValue":t[0]||(t[0]=I=>a.searchText=I),clearable:"",onOnEnter:r.search,onOnClear:r.search},null,8,["modelValue","onOnEnter","onOnClear"])])]),default:T.withCtx(()=>[T.createVNode(c,{label:"当前页面"},{default:T.withCtx(()=>[T.createVNode(i,{border:"",height:550,columns:r.columns,data:a.data.datas},null,8,["columns","data"])]),_:1})]),_:1}),T.createElementVNode("div",fi,[T.createElementVNode("div",di,[T.createVNode(N,{modelValue:r.firstResult,"onUpdate:modelValue":t[1]||(t[1]=I=>r.firstResult=I),total:a.data.totalRows,"page-size":10,simple:"","show-total":"",onOnChange:r.changePage},null,8,["modelValue","total","onOnChange"]),T.createElementVNode("div",null,"共 "+T.toDisplayString(a.data.totalRows)+" 项数据",1)]),T.createElementVNode("div",null,[T.createVNode(v,{style:{"margin-right":"10px"},onClick:r.closeModal},{default:T.withCtx(()=>t[3]||(t[3]=[T.createTextVNode("关闭")])),_:1},8,["onClick"]),T.createVNode(v,{type:"primary",onClick:r.saveData},{default:T.withCtx(()=>t[4]||(t[4]=[T.createTextVNode("保存")])),_:1},8,["onClick"])])])]),_:1},8,["modelValue"])}const mi=fs(ci,[["render",_i]]),hi={setup(){const{changeLocal:e,locale:t}=ct();return{changeLocal:e,locale:t}},name:"LangChange",data(){return{languages:[]}},props:{token:String,simple:{type:Boolean,default:!1}},methods:{toggle(){const e=H.find(this.languages,t=>t.code!==this.locale);this.changeLocal(e.code)}},async mounted(){this.language=Ue.get("I18N_LANGUAGE")||navigator.language;const e=await cs(this.token);e&&e.result===0&&(this.languages=e.retVal)}},gi={key:0,class:"gc_i18n_language"},pi={key:0},Ei={key:1,class:"two"};function bi(e,t,n,s,a,r){const i=T.resolveComponent("Option"),c=T.resolveComponent("Select");return a.languages&&a.languages.length>0?(T.openBlock(),T.createElementBlock("div",gi,[a.languages.length===1?(T.openBlock(),T.createElementBlock("div",pi,[T.createElementVNode("span",null,T.toDisplayString(a.languages[0].name),1)])):a.languages.length===2?(T.openBlock(),T.createElementBlock("div",Ei,[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(a.languages,f=>(T.openBlock(),T.createElementBlock("span",{class:T.normalizeClass(["item",f.code==s.locale?"active":"hide"]),onClick:t[0]||(t[0]=(...p)=>r.toggle&&r.toggle(...p))},T.toDisplayString(f.name),3))),256))])):(T.openBlock(),T.createBlock(c,{key:2,modelValue:s.locale,onOnChange:s.changeLocal},{default:T.withCtx(()=>[(T.openBlock(!0),T.createElementBlock(T.Fragment,null,T.renderList(a.languages,f=>(T.openBlock(),T.createBlock(i,{value:f.code,label:f.name},{default:T.withCtx(()=>[T.createTextVNode(T.toDisplayString(f.name),1)]),_:2},1032,["value","label"]))),256))]),_:1},8,["modelValue","onOnChange"]))])):T.createCommentVNode("",!0)}const yi=fs(hi,[["render",bi],["__scopeId","data-v-e5d838d1"]]);Q.Message.config({duration:3}),Le.defaults.timeout=6e4,Le.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json",e),e=>(Q.Message.error({content:"请求超时!"}),Promise.resolve(e))),Le.interceptors.response.use(e=>{const{nomsg:t}=e.config.headers;return e.status&&e.status!=200?t||Q.Message.error({content:e.data.message||"未知错误"}):e.data.success=!0,e.data},e=>(e.response?e.response.status==504||e.response.status==404?Q.Message.error({content:"服务器被吃了⊙﹏⊙∥"}):e.response.status==403?Q.Message.error({content:"权限不足,请联系管理员!"}):Q.Message.error({content:`${e.response.status}:${e.response.statusText||e.response.error}`}):e.code==="ECONNABORTED"&&e.message.indexOf("timeout")!==-1?Q.Message.error({content:"请求超时!"}):Q.Message.error({content:e.message||"未知错误!"}),Promise.resolve(e)));class Ni{constructor(t={}){const{router:n,appCode:s,messages:a,token:r}=t;this.token=r||Ue.get("token"),this.appCode=s,this.router=n,this.locale=Ue.get("I18N_LANGUAGE")||navigator.language||"zh-CN",this.modalLoad=!1,this.name="",this.messages=a||{},this.i18n=Ha({locale:"zh-CN",globalInjection:!0,legacy:!1,silentTranslationWarn:!0,silentFallbackWarn:!0,missingWarn:!1,fallbackWarn:!1,...t});const i=this.i18n.global.t;this.i18n.global.t=(c,f,p)=>{var y,I;const N=H.toUpper((I=(y=n==null?void 0:n.currentRoute)==null?void 0:y.value)==null?void 0:I.name),v=i(c);if(v===c&&N){const P=`${N}.${c}`,A=i(P,f);return A!==P?A:p?(console.log(`找不到"${c}",使用"${p}"`),p):c}return v},this.i18n.global.changeLocale=c=>{this.setLanguage(c||this.locale)},this.createModal(),n.beforeEach(async(c,f,p)=>{const{language:N,token:v}=c.query;this.configInstance&&this.configInstance.closeModal(),this.name=c.name,v&&this.setToken(v),await this.setLanguage(N||this.locale),p()}),ps.bind("shift > t",c=>{this.configInstance.openModal({name:this.name})})}setToken(t){this.token=t}async setLanguage(t="zh-CN"){return new Promise(async(n,s)=>{const a=await li({appCode:this.appCode,language:t,token:this.token});if(a){const r=ri(a);this.i18n.global.setLocaleMessage(t,H.assign({},H.get(this.messages,t),r))}this.locale=t,this.i18n.global.locale.value=t,Ue.set("I18N_LANGUAGE",t),n(!0)})}createModal(t){this.modalLoad=!0,this.configInstance=T.createApp(mi,{appCode:this.appCode,token:this.token,setLanguage:this.setLanguage.bind(this,this.locale),name:this.name}).use(Q).mount(document.createElement("div"))}Language(){return{setup:()=>({token:this.token}),components:{LanguageTPL:yi},template:"<LanguageTPL :token='token'></LanguageTPL>"}}install(t,n={}){t.use(Q,{i18n:this.i18n}),t.config.globalProperties.$t=this.i18n.global.t,t.config.globalProperties.$i18n=this.i18n,t.component("Language",this.Language()),t.use(this.i18n)}}return Ni});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gc_i18n",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "gc_i18n": {
5
5
  "appCode": "TEST"
6
6
  },