@fox-js/fox 2.1.27 → 2.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/libs/index.js +1 -1
- package/package.json +1 -1
package/libs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fox=t():e.fox=t()}(self,(function(){return function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return mo}}),Symbol("rk");var n,r=Symbol("crk"),o=Symbol("vd"),i=Symbol("rv"),a=Symbol("rvi"),s=Symbol("pv"),l=Symbol("pvi"),u=Symbol("valueKey");function c(e){if(n){var t={};return n.util.defineReactive(t,"value",e),t}var r={};return Reflect.defineProperty(r,"value",{get:function(){return r[u]},set:function(e){return r[u]=e}}),r}var f=Symbol("pvds"),h=Symbol("sk");function v(e,t,n,r){var o=e[f];if(o||(o=e[f]=new Map),r){var i=o.get(r);i||(i=new Map,o.set(r,i)),i.set(t,n)}else o.set(t,n)}function y(e,t,n){for(var r=e.$vnode?e.$vnode.data:{},o=r[h],i=e.$parent;i&&i._routerRoot!==i;){var a=i[f];if(a){if(o){var s=a.get(o);if(s&&s.has(t))return s.get(t)}if(a.has(t))return a.get(t)}var l=(r=i.$vnode?i.$vnode.data:{})[h];void 0!==l&&(o=l),i=i.$parent}return n}function p(e,t){if(t){var n=e[f];n&&n&&n.has(t)&&n.delete(t)}else Reflect.deleteProperty(e,f)}function d(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '+s);for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at "+s);i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^"+m(t.delimiter||"/#?")+"]+?",a=[],s=0,l=0,u="",c=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},f=function(e){var t=c(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},h=function(){for(var e,t="";e=c("CHAR")||c("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var v=c("CHAR"),y=c("NAME"),p=c("PATTERN");if(y||p){var d=v||"";-1===o.indexOf(d)&&(u+=d,d=""),u&&(a.push(u),u=""),a.push({name:y||s++,prefix:d,suffix:"",pattern:p||i,modifier:c("MODIFIER")||""})}else{var g=v||c("ESCAPED_CHAR");if(g)u+=g;else if(u&&(a.push(u),u=""),c("OPEN")){d=h();var b=c("NAME")||"",w=c("PATTERN")||"",S=h();f("CLOSE"),a.push({name:b||(w?s++:""),pattern:b&&!w?i:w,prefix:d,suffix:S,modifier:c("MODIFIER")||""})}else f("END")}}return a}function g(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},u=1;u<r.length;u++)l(u);return{path:i,index:a,params:s}}}(w(e,n,t),n,t)}function m(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function b(e){return e&&e.sensitive?"":"i"}function w(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return w(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",b(n))}(e,t,n):function(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,u=n.encode,c=void 0===u?function(e){return e}:u,f="["+m(n.endsWith||"")+"]|$",h="["+m(n.delimiter||"/#?")+"]",v=a?"^":"",y=0,p=e;y<p.length;y++){var d=p[y];if("string"==typeof d)v+=m(c(d));else{var g=m(c(d.prefix)),w=m(c(d.suffix));if(d.pattern)if(t&&t.push(d),g||w)if("+"===d.modifier||"*"===d.modifier){var S="*"===d.modifier?"?":"";v+="(?:"+g+"((?:"+d.pattern+")(?:"+w+g+"(?:"+d.pattern+"))*)"+w+")"+S}else v+="(?:"+g+"("+d.pattern+")"+w+")"+d.modifier;else v+="("+d.pattern+")"+d.modifier;else v+="(?:"+g+w+")"+d.modifier}}if(l)o||(v+=h+"?"),v+=n.endsWith?"(?="+f+")":"$";else{var x=e[e.length-1],k="string"==typeof x?h.indexOf(x[x.length-1])>-1:void 0===x;o||(v+="(?:"+h+"(?="+f+"))?"),k||(v+="(?="+h+"|"+f+")")}return new RegExp(v,b(n))}(d(e,n),t,n)}(e,t,n)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var R=Array.isArray,O=function(e){return"function"==typeof e},j=Object.prototype.toString,P=function(e){return"[object Object]"===function(e){return j.call(e)}(e)},C="function"==typeof Symbol&&"symbol"===A(Symbol.toStringTag);function E(e){return e.__esModule||C&&"Module"===e[Symbol.toStringTag]}var T="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]");function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=void 0!==t[0]&&null!==t[0]?t[0]:{},i=1,a=t.length,s=!1;for("boolean"==typeof o&&(s=o,o=null!==(r=t[i])&&void 0!==r?r:{},i++),"object"!==A(o)&&(o={});i<a;i++)if(null!==t[i]&&void 0!==t[i]){var l=t[i];for(var u in l){var c=o[u],f=l[u];if(c!==f)if(!0===s&&f&&"object"===A(f)){var h=void 0;h=Array.isArray(f)?c&&Array.isArray(c)?c:[]:c&&"object"===A(c)?c:{},o[u]=q(s,h,f)}else void 0!==f&&(o[u]=f)}}return o}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){if("object"!==A(t))return{};for(var r in"object"!==A(e)&&(e={}),t){var o=e[r],i=t[r];if(o!==i)if("object"===A(i)){if(!Array.isArray(i)&&!P(i))continue;o=_(o,i,n),e[r]=o}else{if("function"==typeof i)continue;e[r]=i}}var a,s=Object.getOwnPropertySymbols(t),l=x(s);try{for(l.s();!(a=l.n()).done;){var u=a.value,c=e[u],f=t[u];if(c!==f)if("object"===A(f)){if(!Array.isArray(f)&&!P(f))continue;c=_(c,f,n),e[u]=c}else{if("function"==typeof f)continue;e[u]=f}}}catch(e){l.e(e)}finally{l.f()}}else q(!0,e,t);return e}var F,M,I,N=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"get",value:function(){var t=++e.seed;return t>=Number.MAX_VALUE&&(e.seed=0),t}}],null&&S(t.prototype,null),n&&S(t,n),e}();F=N,M="seed",I=(new Date).getTime(),M in F?Object.defineProperty(F,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):F.seed=I;var K=T?Promise.resolve():null;function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null!==K?n&&n.length>0?K.then((function(){e(n)})):K.then(e):n&&n.length>0?setTimeout((function(){e(n)})):setTimeout(e)}function $(e){return null!=e&&("boolean"==typeof e?e:"string"==typeof e?"true"===e.toLocaleLowerCase():Boolean(e))}var L={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function U(e){var t=Object.prototype.toString.call(e);return null==e?String(e):L[t]||"object"}function B(e){return e&&"object"===A(e)&&"setInterval"in e}function H(e){var t=!!e&&"length"in e&&e.length,n=U(e);return"function"!==n&&!B(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function J(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t;return null!=e&&(H(Object(e))?J(n,"string"==typeof e?[e]:e):n.push(e)),n}function W(e,t,n){if(H(e))Reflect.apply([].forEach,e,[t]);else for(var r in e)if(n&&e.hasOwnProperty(r)){if(!1===Reflect.apply(t,e,[e[r]]))break}else if(!1===Reflect.apply(t,e,[e[r]]))break;return e}function V(e,t){if(e==t)return!0;if(void 0===e||void 0===t)return!1;var n=U(e);if(n!==U(t))return!1;if("object"===n){var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++){var a=r[i];if(!V(e[a],t[a]))return!1}return!0}if("array"===n){if(e.length!==t.length)return!1;for(var s=0;s<e.length;s++)if(!V(e[s],t[s]))return!1;return!0}return!1}var G=function e(t){var n,r={},o=x(Reflect.ownKeys(t));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t[i];a&&!Array.isArray(a)&&"object"===A(a)&&(a=e(a)),"symbol"===A(i)?r[String(i)]=a:r[i]=a}}catch(e){o.e(e)}finally{o.f()}return r},X=/^Symbol\((.*)\)$/,Y=function e(t){var n,r={},o=x(Reflect.ownKeys(t));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t[i];a&&!Array.isArray(a)&&"object"===A(a)&&(a=e(a));var s=X.exec(i);s&&s[1]?r[Symbol.for(s[1])]=a:r[i]=a}}catch(e){o.e(e)}finally{o.f()}return r},Q="default",Z=Symbol("sync"),ee=Symbol("resolveRoute");function te(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Reflect.apply(e,{},r)}}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var se,le,ue=function e(t,n,r,o){ie(this,e),ae(this,"rootIndex",0),this.name=t,this.level=n,this.rootName=r,this.rootIndex=o},ce=function(){function e(t,n){ie(this,e),ae(this,"data",{}),this.to=t,this.from=n}return oe(e,null,[{key:"from",value:function(t){var n,r=new e(t.to,t.from),o=null!==(n=t.data)&&void 0!==n?n:{};return q(!0,r.data,o),r}}]),e}(),fe=function(){function e(){ie(this,e)}return oe(e,[{key:"fullPath",get:function(){var e,t,n=null!==(e=this.path)&&void 0!==e?e:"/".concat(this.name);return"".concat(null!==(t=this.root)&&void 0!==t?t:Q,"!").concat(n)}}],[{key:"clone",value:function(t,n){var r=new e;return _(r,t,n),r}},{key:"isSame",value:function(e,t){return!(e!==t&&(null==e||null==t||e.path&&e.path!==t.path||e.name&&e.name!==t.name||e.root!==t.root||e.index!==t.index))}},{key:"isSameForRouteModel",value:function(e,t){return!(e!==t&&(null==e||null==t||e.path&&e.path!=t.path||e.name&&e.name!=t.name))}},{key:"from",value:function(t){var n=new e;if(null==t)return n;var r=n;for(var o in t){var i=t[o];r[o]=i}var a=Object.getOwnPropertySymbols(t);if(Array.isArray(a)&&a.length>0){var s,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(a);try{for(l.s();!(s=l.n()).done;){var u=s.value;r[u]=t[u]}}catch(e){l.e(e)}finally{l.f()}}return n}}]),e}(),he=function(){function e(t,n,r,o){ie(this,e),this.id=N.get(),this.name=t,this.src=n,"function"!=typeof n&&(this.component=n),this.props=r,this.meta=o}return oe(e,[{key:"isResolved",get:function(){return void 0!==this.component}},{key:"resolve",value:function(){return t=(e=this).src,new Promise((function(n,r){var o,i=te((function(t){E(t)&&(t=t.default),e.component=t,n()})),a=te((function(e){var t="failed to resolve async component ".concat(e);r(t)}));try{o=t(i,a)}catch(e){a(e)}if(o)if("function"==typeof o.then)o.then(i,a);else{var s=o.component;s&&"function"==typeof s.then&&s.then(i,a)}}));var e,t}}]),e}(),ve=function e(){ie(this,e),ae(this,"models",[])},ye=function e(){ie(this,e),ae(this,"layers",[])};function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function de(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Push=0]="Push",e[e.Replace=1]="Replace",e[e.Put=2]="Put",e[e.Append=3]="Append",e[e.Open=4]="Open"}(se||(se={})),function(e){e[e.Part=0]="Part",e[e.All=1]="All"}(le||(le={}));var be=Symbol("rootKey"),we=Symbol("rootNodeKey"),Se=Symbol("parentNodeKey"),xe=Symbol("nameKey"),ke=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ge(this,e),me(this,"active",!0),me(this,"index",0),this.route=t,this.model=n,this.index=r,this.active=o},Ae=function(){function e(t,n,r){ge(this,e),me(this,we,null),me(this,Se,null),this[xe]=t,this[be]=n,r&&(this[we]=r)}return de(e,[{key:"slots",get:function(){return null==this._slots&&(this._slots=function(e){if(n){var t={};return n.util.defineReactive(t,"value",[],void 0,!0),t}var r={};return Reflect.defineProperty(r,"value",{get:function(){return r[u]},set:function(e){return r[u]=e}}),r}()),this._slots}},{key:"empty",get:function(){return null==this._slots||0==this._slots.value.length}},{key:"name",get:function(){return this[xe]}}]),e}(),Re=function(){function e(t,n,r){ge(this,e),this.view=t,this.index=n,this.level=r}return de(e,null,[{key:"include",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.view===t.view&&(-1==t.index||r.index===t.index)&&r.level===t.level)return!0}return!1}}]),e}(),Oe=function e(){ge(this,e),me(this,"views",[])},je=function e(){ge(this,e),me(this,"layers",[])};function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Te,qe,_e=function e(){Ee(this,e)},Fe=function(){function e(){Ee(this,e),Ce(this,"forbidTime",300),Ce(this,"submitRecorder",new _e)}var t,n;return t=e,(n=[{key:"isSameRoute",value:function(e,t){return null!=e&&null!=t&&e.name===t.name&&e.path===t.path&&e.root===t.root}},{key:"acquire",value:function(e){var t=(new Date).getTime();if(!(this.isSameRoute(e,this.submitRecorder.route)&&this.submitRecorder.time&&t-this.submitRecorder.time<=this.forbidTime))return this.submitRecorder.route=e,this.submitRecorder.time=t,t;this.submitRecorder.time=t}},{key:"release",value:function(e){this.submitRecorder.time===e&&(this.submitRecorder.route=void 0)}}])&&Pe(t.prototype,n),e}(),Me="undefined"!=typeof window,Ie=function(){return window},Ne=function(){return window.document};function Ke(){if(!Me)return"/";var e,t,n=Ie().location;return"".concat(n.protocol,"//").concat(n.host)+((t=(e=n.pathname).lastIndexOf("/"))>0&&t<e.length-1?e=e.substring(0,t+1):0===t&&-1!==e.indexOf(".")?e="/":-1===t&&(e=-1==e.indexOf(".")?"/".concat(e,"/"):"/"),0!==e.indexOf("/")&&(e="/".concat(e)),e)}function De(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on".concat(t),n):e["on".concat(t)]=n}function $e(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent?e.detachEvent("on".concat(t),n):e["on".concat(t)]=null}function Le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Ke(),function(e){e[e.Loading=0]="Loading",e[e.Loaded=1]="Loaded",e[e.Defining=2]="Defining",e[e.Defined=3]="Defined"}(Te||(Te={})),function(e){e[e.normal=0]="normal",e[e.factory=1]="factory"}(qe||(qe={}));var Ue,Be=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"register",new Map)}var t,n;return t=e,(n=[{key:"get",value:function(e){var t;return null!==(t=this.register.get(e))&&void 0!==t?t:null}},{key:"set",value:function(e,t){this.register.set(e,t)}},{key:"remove",value:function(e){var t=this.register.get(e);return this.register.delete(e),null!=t?t:null}},{key:"has",value:function(e){return this.register.has(e)}},{key:"clear",value:function(){this.register.clear()}}])&&Le(t.prototype,n),e}();function He(e){return(He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Je(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ze(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ze(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Busy="Busy",e.Free="Free",e.Reject="Reject",e.Exception="Exception",e.Finished="Finished"}(Ue||(Ue={}));var Xe=Symbol("chainKey"),Ye=Symbol("cursorKey"),Qe=Symbol("$persistentModeKey"),Ze=Symbol("statusKey"),et=Symbol("argsKey"),tt=Symbol("exArgsKey"),nt=Symbol("successFnsKey"),rt=Symbol("errorFnsKey"),ot=Symbol("sessionKey"),it=Symbol("_go"),at=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];We(this,e),Ge(this,Xe,[]),Ge(this,Ye,0),Ge(this,Qe,!1),Ge(this,Ze,Ue.Free),Ge(this,et,[]),Ge(this,tt,[]),Ge(this,nt,[]),Ge(this,rt,[]),this[ot]=t,this[Qe]=n}var t,n;return t=e,(n=[{key:"session",get:function(){return this[ot]}},{key:it,value:function(e){var t=this,n=this[Ze];this[Ze]=Ue.Busy,this[Ye]+=e,this[Ye]<0&&(this[Ye]=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this[et]=o,n===Ue.Exception||n===Ue.Reject){var a=function(){for(var e=[{session:t[ot]}].concat(Je(t[tt]));t[rt].length>0;)try{!function(){var n=t[rt].shift();"function"==typeof n&&D((function(){Reflect.apply(n,{},e)}))}()}catch(e){console.error(e.message,e)}return t[Ze]=n,t[Xe]=[],t[Ye]=0,{v:t}}();if("object"===He(a))return a.v}else if(n===Ue.Finished||this[Ye]>=this[Xe].length){var s=function(){for(var e=[{session:t[ot]}].concat(Je(t[et])),n=function(){var n=t[nt].shift();"function"==typeof n&&D((function(){Reflect.apply(n,{},e)}))};t[nt].length>0;)n();return t[Ze]=Ue.Free,{v:t}}();if("object"===He(s))return s.v}if(this[Ye]>=this[Xe].length)return this[Ze]=Ue.Free,this;var l=this[Xe][this[Ye]];this[Qe]||(this[Xe].splice(0,this[Ye]+1),this[Ye]=-1);var u=this[Ye]+1;try{var c=!1,f={go:function(e){if(!c){c=!0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t[it],t,[e].concat(r))}},resolve:function(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Reflect.apply(t[it],t,[1].concat(n))}},reject:function(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Reflect.apply(t.reject,t,[].concat(n))}},insert:function(e){c||(t[Xe].splice(u,0,e),u++)},session:this[ot]};D((function(){Reflect.apply(l,{},[f].concat(Je(t[et])))}))}catch(e){this.throw(e)}return this}},{key:"go",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(this[it],this,[e].concat(n))}},{key:"finish",value:function(){this[Ze]=Ue.Finished;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[et]=t,Reflect.apply(this[it],this,[0])}},{key:"reject",value:function(){this[Ze]=Ue.Reject;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[tt]=t,Reflect.apply(this[it],this,[0])}},{key:"throw",value:function(){this[Ze]=Ue.Exception;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[tt]=t,Reflect.apply(this[it],this,[0])}},{key:"reset",value:function(){var e=this;this[Ze]=Ue.Busy;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this[et]=n,this[Xe]=[],this[Ye]=0;for(var o={session:this[ot]},i=[o].concat(Je(this[et])),a=function(){var t=e[nt].shift();D((function(){Reflect.apply(t,e,i)}))};this[nt].length>0;)a();return this[Ze]=Ue.Free,this}},{key:"post",value:function(e){return this[Ze]===Ue.Reject||this[Ze]===Ue.Exception||(Array.isArray(e)?this[Xe]=[].concat(Je(this[Xe]),Je(e)):this[Xe].push(e),this[Ze]===Ue.Busy||Reflect.apply(this[it],this,[0].concat(Je(this[et])))),this}},{key:"wait",value:function(e,t){return e&&"function"==typeof e&&this[nt].push(e),t&&"function"==typeof t&&this[rt].push(t),this[Ze]===Ue.Busy||Reflect.apply(this[it],this,[0].concat(Je(this[et]))),this}},{key:"exception",value:function(e){return e&&"function"==typeof e&&this[rt].push(e),this[Ze]===Ue.Busy?this:Reflect.apply(this[it],this,[0].concat(Je(this[et])))}},{key:"isFinish",value:function(){return this[Ze]==Ue.Reject||this[Ze]==Ue.Free&&this[Ye]>=this[Xe].length}}])&&Ve(t.prototype,n),e}();function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e,t,n){return t&&ut(e.prototype,t),n&&ut(e,n),e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=function(){function e(){lt(this,e),ft(this,"moduleManager",new Be),ft(this,"options",{paths:{},alias:{},nature:[],timeout:3e3})}return ct(e,[{key:"paths",get:function(){return this.options.paths},set:function(e){this.options.paths=e}},{key:"alias",get:function(){return this.options.alias},set:function(e){this.options.alias=e}},{key:"naturePaths",get:function(){return this.options.nature},set:function(e){this.options.nature=e}},{key:"timeout",get:function(){return this.options.timeout},set:function(e){this.options.timeout=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"head",get:function(){return Ne().head}},{key:"setModule",value:function(e,t){var n={id:e,src:"",status:Te.Defined};"function"==typeof t?(n.exports=t,n.type=qe.factory):n.exports=t,this.moduleManager.set(e,n)}},{key:"removeModule",value:function(e){this.moduleManager.remove(e)}},{key:"ensure",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[],o=t.length-1,i={};"object"===st(t[o])&&(Object.assign(i,t[o]),o--);var a=null;"function"==typeof t[o]&&(a=t[o],o--);for(var s=0;s<=o;s++)if(Array.isArray(t[s]))for(var l=t[s],u=0;u<l.length;u++)l[u]&&r.push(this.resolvePath(l[u]));else if("string"==typeof t[s])for(var c=t[s].split(","),f=0;f<c.length;f++)c[f]&&r.push(this.resolvePath(c[f]));for(var h=new yt(r.length,(function(e,t){if(h.isOK())try{"function"==typeof a&&Reflect.apply(a,{},t)}catch(e){console.error(e.message,e)}else try{console.error(e),"function"==typeof a&&Reflect.apply(a,{},[])}catch(e){console.error(e.message,e)}})),v=new at,y=0;y<r.length;y++){var p=new pt(y,r[y],i,h);this.mount(v,p)}return this}},{key:"remove",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=n.length-1,a={};"object"===st(n[i])&&(Object.assign(a,n[i]),i--);var s=null;"function"==typeof n[i]&&(s=n[i],i--);for(var l=0;l<=i;l++)if(Array.isArray(n[l]))for(var u=n[l],c=0;c<u.length;c++)u[c]&&o.push(this.resolvePath(u[c]));else for(var f=n[l].split(","),h=0;h<f.length;h++)f[h]&&o.push(this.resolvePath(f[h]));return o.forEach((function(t){e.unmount(t,a)})),"function"==typeof s&&Reflect.apply(s,{},[]),this}},{key:"mount",value:function(e,t){if("exports"!==t.src)if("module"!==t.src){if(this.isNaturePath(t.src)){var n=t.params.jsPoint;return n||(n=this.head),void this.mountJS(e,t,n)}if(this.isNaturePath(t.src)){var r=t.params.cssPoint;return r||(r=this.head),void this.mountCSS(e,t,r)}var o=this.getFileNamePostfix(t.src);if("js"===o||0===o.length){var i=t.params.jsPoint;return i||(i=this.head),void this.mountJS(e,t,i)}if("css"===o){var a=t.params.cssPoint;return a||(a=this.head),void this.mountCSS(e,t,a)}}else e.post((function(e){t.progress.work(!0,t.index,"module"),e.resolve()}));else e.post((function(e){t.progress.work(!0,t.index,"exports"),e.resolve()}))}},{key:"mountCSS",value:function(e,t,n){var r=this;e.post((function(e){var o=t.src,i=r.moduleManager.get(o);if(i&&(i.status==Te.Defined||i.status==Te.Loaded)&&i.exports)return i.type===qe.factory&&"function"==typeof i.exports?t.progress.work(!0,t.index,i.exports()):t.progress.work(!0,t.index,i.exports),void e.resolve();var a=Ne(),s=a.createElement("link");if(Reflect.has(s,"onload"))s.onload=function(){s.onload=null,s.onerror=null,t.progress.work(!0,t.index,t.src),e.resolve()},s.onerror=function(){try{n.removeChild(s)}catch(e){console.error(e.message,e)}s.onload=null,s.onerror=null,t.progress.work(!1,t.index,null),e.reject()};else{var l,u={timeout:null!==(l=r.options.timeout)&&void 0!==l?l:3e3,time:0,success:function(){t.progress.work(!0,t.index,t.src),e.resolve()},error:function(){try{n.removeChild(s)}catch(e){console.error(e.message,e)}t.progress.work(!1,t.index,null),e.resolve()}};setTimeout((function(){vt(s,u)}),1)}var c=a.getElementById(o);c&&c.parentNode&&c.parentNode.removeChild(c),s.rel="stylesheet",s.type="text/css",s.id=o,s.href=o,n.appendChild(s)}))}},{key:"mountJS",value:function(e,t,n){var r=this;e.post((function(e){var o=t.src,i=r.moduleManager.get(o);if(i&&(i.status==Te.Defined||i.status==Te.Loaded)){if(i.exports)return i.type===qe.factory&&"function"==typeof i.exports?t.progress.work(!0,t.index,i.exports()):t.progress.work(!0,t.index,i.exports),void e.resolve();if(document.querySelector("script[src='".concat(o)))return t.progress.work(!0,t.index,i.exports),void e.resolve()}i={id:o,src:o,status:Te.Loading},r.moduleManager.set(o,i);var a=Ne().createElement("script");if("onload"in a)a.onload=function(){a.onload=null,a.onerror=null,i.status===Te.Loading&&(i.status=Te.Loaded,t.progress.work(!0,t.index,o)),e.resolve()},a.onerror=function(){try{n.removeChild(a)}catch(e){console.error(e.message,e)}a.onload=null,a.onerror=null,r.moduleManager.remove(o),t.progress.work(!1,t.index,null),e.resolve()};else{var s=a;s.onreadystatechange=function(){/loaded|complete/.test(s.readyState)&&(s.onreadystatechange=null,i.status==Te.Loading&&(i.status=Te.Loaded,t.progress.work(!0,t.index,o)),e.resolve())}}a.defer=!0,a.src=o,Ie().define=r.createDefine(i,t),n.appendChild(a)}))}},{key:"unmount",value:function(e){var t=Ne(),n=this.getFileNamePostfix(e);if("js"===n||0===n.length){var r=t.querySelector('script[src="'.concat(e,'"]'));return r&&r.parentNode&&r.parentNode.removeChild(r),void this.moduleManager.remove(e)}if("css"!==n);else{var o=t.querySelector('style[href="'.concat(e,'"]'));o&&o.parentNode&&o.parentNode.removeChild(o)}}},{key:"trimEmptyElement",value:function(e){for(var t=[],n=0;n<e.length;n++)if(void 0!==e[n]&&null!==e[n]){var r=e[n].trim();0!==r.length&&t.push(r)}return t}},{key:"createDefine",value:function(e,t){var n=this,r=function(){var r,o,i;e.status=Te.Defining;var a=arguments.length;1===a?(i=arguments.length<=0?void 0:arguments[0],r=void 0):2===a?(i=arguments.length<=1?void 0:arguments[1],Array.isArray(arguments.length<=0?void 0:arguments[0])?(o=n.trimEmptyElement(arguments.length<=0?void 0:arguments[0]),r=void 0):o=void 0):(r=arguments.length<=0?void 0:arguments[0],o=n.trimEmptyElement(arguments.length<=1?void 0:arguments[1]),i=arguments.length<=2?void 0:arguments[2]),r&&(e.id=r,n.options.alias[r]=e.src),o&&o.length>0?n.ensure(o,(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=r.map((function(t){return"exports"===t?(e.exports&&"object"===st(e.exports)||(e.exports={}),e.exports):"module"===t?e:t}));if("function"==typeof i){var s=Reflect.apply(i,e,a);s&&"object"===st(s)&&(e.exports=s)}else e.exports=i;e.status=Te.Defined,t.progress.work(!0,t.index,e.exports)})):(e.exports="function"==typeof i?Reflect.apply(i,e,[]):i,e.status=Te.Defined,t.progress.work(!0,t.index,e.exports))};return r.amd=!0,r}},{key:"resolvePath",value:function(e){try{if("exports"===e||"module"===e)return e;if(this.isNaturePath(e))return e;e=this.parserPath(e,!0);var t=this.getFileNamePostfix(e);t=t.toLowerCase();var n=this.createSearch(this.query);return-1==e.indexOf("?")?("js"!==t&&"css"!==t&&(e+=".js"),n.length>0&&(e+="?".concat(n))):n.length>0&&(e+="&".concat(n)),e}catch(t){throw console.error("resolve path[".concat(e,"] fail"),t),t}}},{key:"createSearch",value:function(e){var t="";if(e){for(var n in e){var r="".concat(e[n]);t+="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r),"&")}t.length>0&&(t=t.substring(0,t.length-1))}return t}},{key:"getFileNamePostfix",value:function(e){var t=e.lastIndexOf("?");-1==t&&(t=e.length);var n=e.lastIndexOf(".",t);return-1==n?"":e.substring(n+1,t)}},{key:"isNaturePath",value:function(e){if(!this.options.nature)return!1;if("function"==typeof this.options.nature)return this.options.nature(e);var t=this.options.nature;if(t&&Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(0===e.indexOf(r))return!0}return!1}},{key:"parserPath",value:function(e,t){if(0==e.indexOf("http://"))return e;if(0==e.indexOf("https://"))return e;if(0==e.indexOf("file:///"))return e;if(0==e.indexOf("/"))return"".concat(Ke()).concat(e.slice(1));if(0==e.indexOf("./"))return"".concat(Ke()).concat(e.slice(2));if(0==e.indexOf("//")){var n=Ie();return"".concat(n.location.protocol).concat(e)}if(t){var r=this.options.alias[e];if(!r){var o=e.indexOf("/");if(-1==o)r=e;else{var i=e.slice(0,o),a=this.options.paths[i];r=a?a+e.slice(o):e}}return this.parserPath(r,!1)}return"".concat(Ke()).concat(e)}}]),e}();function vt(e,t){var n=e.sheet,r=!1;if(t.isOldWebKit)n&&(r=!0);else if(n)try{n.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){t.time+=20,r?t.success():t.timeout>t.timeout?t.error():vt(e,t)}),20)}var yt=function(){function e(t,n){lt(this,e),this.size=t,this.callback=n,this.status=!0,this.values=[],this.lastIndex=-1}return ct(e,[{key:"work",value:function(e,t,n){if(this.status=e,!0===this.status&&(this.lastIndex!==t&&this.size--,this.lastIndex=t,this.values.push(n)),0===this.size||!1===this.status)try{Reflect.apply(this.callback,this,[this.status,this.values])}catch(e){console.error(e.message,e)}}},{key:"isOK",value:function(){return this.status}}]),e}(),pt=function e(t,n,r,o){lt(this,e),this.index=t,this.src=n,this.params=r,this.progress=o},dt=Symbol("_notifyChange"),gt=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentRoute=t,this.routes=n};function mt(e){return(mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return wt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function wt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At=Symbol("historyChangeConsumerKey"),Rt=Symbol("_navigateFirstRoute"),Ot=Symbol("_getRouteMark"),jt=Symbol("_getUrlSearch"),Pt=Symbol("_generateLocation"),Ct=Symbol("_setRouteMarkRecorder"),Et=Symbol("beforeRestoreFiltersKey"),Tt=Symbol("_beforeRestore"),qt="Symbol(_fox_restore_point)";function _t(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(e,null,[].concat(n))}return e}function Ft(e){if(!Array.isArray(e))return!1;if(0===e.length)return!0;var t=e[0];return!(!Reflect.has(t,"path")||!Reflect.has(t,"root"))}var Mt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hash",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;St(this,e),kt(this,"firstNavigate",!0),kt(this,"traceless",!1),kt(this,At,!1),kt(this,Et,new Array),kt(this,"backTimeout",320),this.mode=t,this.base=n,this.query=r,this.firstNavigate=o,this.historyMonitor=i,this.traceless=a,this.storage=null!=s?s:Ie().sessionStorage,this.backTimeout=null!=l?l:320}var t,n;return t=e,(n=[{key:"init",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Ie();return"function"!=typeof this.historyChange&&(this.historyChange=function(){if("function"==typeof e[At]){var t=e[At]();if(e[At]=!1,t)return}else if(!0===e[At])return void(e[At]=!1);if(_t(e.historyMonitor)){var r=n.history.state;e[dt](r);try{var o;if(o="string"==typeof r?JSON.parse(r):r,Array.isArray(o)&&o.length>0){var i,a=null!==(i=e[Ot]())&&void 0!==i?i:"/";e[Ct](a,o)}}catch(e){}}}),De(n,"popstate",this.historyChange),this.firstNavigate&&t&&this[Rt](),Promise.resolve()}},{key:"destroy",value:function(){this.historyChange&&$e(Ie(),"popstate",this.historyChange)}},{key:Tt,value:function(e,t,n,r){var o,i=bt(this[Et]);try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var s=Reflect.apply(a,{},[e,t,n,r]);if(!1===s)return s}catch(e){console.error(e.message,e)}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"beforeRestoreEach",value:function(e){this[Et].push(e)}},{key:"removeBeforeRestoreEach",value:function(e){var t=this[Et].indexOf(e);return-1!==t&&(this[Et].splice(t,1),!0)}},{key:Rt,value:function(){var e,t=this,n=null!==(e=this[Ot]())&&void 0!==e?e:"/",r=this.storage.getItem(qt);if(r)try{var o=JSON.parse(r);if(o.mark===n&&Array.isArray(o.routes)&&o.routes.length>0){var i=o.routes.filter((function(e,r){return e.params=e.params?Y(e.params):{},t[Tt](e,r,n,o.routes)}));if(i.length>0){var a=this[jt](),s=i.length-1;return i[s].query=a||i[s].query,void this[dt](i)}}}catch(e){}var l,u=n.indexOf("!");l=-1!=u?n.substring(u+1):n;var c=new fe;c.path=l,c.query=this[jt](),this[dt]([c])}},{key:Ct,value:function(e,t){try{t.forEach((function(e){e.params=e.params?G(e.params):{}}));var n={mark:e,routes:t},r=JSON.stringify(n);this.storage.setItem(qt,r)}catch(e){console.error(e.message,e)}}},{key:"setRestorePoint",value:function(e){var t,n=null!==(t=this[Ot]())&&void 0!==t?t:"/";this[Ct](n,e)}},{key:dt,value:function(e){"function"==typeof this.changeHandler&&this.changeHandler(e)}},{key:Ot,value:function(){var e=Ie();if("path"===this.mode){var t=e.location.pathname;return this.base&&0===t.indexOf(this.base)&&(t=t.substring(this.base.length)),t}var n=e.location.hash,r=n.indexOf("#");return-1!=r?n.substring(r+1):null}},{key:jt,value:function(){var e=Ie().location.search;return e.length>0&&0===e.indexOf("?")&&(e=e.substring(1)),e}},{key:"listen",value:function(e){this.changeHandler=e}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ie();this[At]=t,n.history.go(e)}},{key:"goBack",value:function(e,t){var n=this,r=Ie(),o=r.history.state;if(Ft(o)&&o.length>0){for(var i=!1,a=o.length-1;a>=0;a--){var s=fe.from(o[a]);if(!0!==s.traceless&&!_t(this.traceless,s)&&fe.isSame(s,e)){i=!0;break}}if(!i)return void t();var l=this.backTimeout,u=null,c=function e(){r.history.go(-1),u=setTimeout(e,l)};u=setTimeout(c,l),this.go(-1,(function r(){clearTimeout(u);var o=Ie().history.state;if(Ft(o)&&o.length>0){var i=o.length,a=o[i-1],s=fe.from(a);if(fe.isSame(s,e))return t(),!0;if(i>0){for(var f=!1,h=i-1;h>=0;h--){var v=fe.from(o[h]);if(!0!==v.traceless&&!_t(n.traceless,v)&&fe.isSame(v,e)){f=!0;break}}return f?(u=setTimeout(c,l),n.go(-1,r),!0):(t(),!0)}}return t(),!0}))}else t()}},{key:"push",value:function(e){var t=this[Pt](e.currentRoute);!0===e.currentRoute.traceless||_t(this.traceless,e.currentRoute)||Ie().history.pushState(e.routes,"",t);var n=e.currentRoute.fullPath;this[Ct](n,e.routes)}},{key:"replace",value:function(e){var t=this[Pt](e.currentRoute);!0===e.currentRoute.traceless||_t(this.traceless,e.currentRoute)||Ie().history.replaceState(e.routes,"",t);var n=e.currentRoute.fullPath;this[Ct](n,e.routes)}},{key:Pt,value:function(e){var t,n=Ie(),r="";if(e.query){var o="";if("object"===mt(e.query)){var i,a=bt(Reflect.ownKeys(e.query));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=encodeURIComponent(e.query[s]),u="".concat(encodeURIComponent(String(s)),"=").concat(l);o.length>0&&(o+="&"),o+=u}}catch(e){a.e(e)}finally{a.f()}}else o=e.query;this.query?(r=o.length>0?"".concat(this.query,"&").concat(o):this.query).length>0&&"?"!==r.charAt(0)&&(r="?".concat(r)):o.length>0&&(r="?".concat(o))}var c,f=n.location,h=null!==(t=e.alias)&&void 0!==t?t:e.fullPath;return h.startsWith(Q)&&(h=h.substring(Q.length+1)),c=r?"path"==this.mode?0===h.indexOf("/")?"".concat(this.base).concat(h).concat(r):"".concat(this.base,"/").concat(h).concat(r):"".concat(f.pathname).concat(r,"#").concat(h):"path"==this.mode?0===h.indexOf("/")?"".concat(this.base).concat(h):"".concat(this.base,"/").concat(h):"".concat(f.pathname,"#").concat(h),"".concat(f.origin).concat(c)}}])&&xt(t.prototype,n),e}();function It(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return null!==n&&(n=Ie().location.pathname),n&&n.endsWith("/")&&(n=n.substring(0,n.length-1)),new Mt("path",null!==(e=n)&&void 0!==e?e:"",r,t,o,i,a)}function Nt(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return new Mt("hash","",t,e,n,r,o)}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;Kt(this,e),$t(this,"maxSize",50),$t(this,"cursor",-1),$t(this,"queue",[]),$t(this,"historyMonitor",!1),$t(this,"traceless",!1),this.base=t,this.maxSize=n}var t,n;return t=e,(n=[{key:"init",value:function(){return Promise.resolve()}},{key:"destroy",value:function(){this.queue=[]}},{key:"beforeRestoreEach",value:function(e){}},{key:"removeBeforeRestoreEach",value:function(e){return!1}},{key:"listen",value:function(e){this.changeHandler=e}},{key:dt,value:function(e){"function"==typeof this.changeHandler&&this.changeHandler(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0!=this.queue.length&&!(this.cursor<=0)){var n=this.cursor+e;if(n<0?n=0:n>this.queue.length-1&&(n=this.queue.length-1),n!=this.cursor&&(this.cursor=n,!("function"==typeof t?t():t))){var r=this.queue[n];this[dt](r.routes)}}}},{key:"goBack",value:function(e,t){if(0!=this.queue.length&&!(this.cursor<=0)){var n=0;if(null===e)n=this.cursor+1;else for(var r=this.cursor;r>=0;r--){n++;var o=this.queue[r];if(fe.isSameForRoute(o.currentRoute,e))break}this.go(-n,(function(){return t(),!0}))}}},{key:"push",value:function(e){this.queue.length>=this.maxSize&&this.queue.splice(0,1),this.queue.push(e),this.cursor=this.queue.length-1}},{key:"replace",value:function(e){var t=this.queue.length-this.cursor;this.queue.splice(this.cursor,t),this.queue[this.cursor]=e}},{key:"setRestorePoint",value:function(e){}}])&&Dt(t.prototype,n),e}();function Ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return new Lt(e,t)}function Bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){Xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function zt(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(e,t){if(e){if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vt(e,t):void 0}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e){return(Yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Qt=Symbol("_constructRouteModel"),Zt=Symbol("_findRouteModel"),en=Symbol("_findRootView"),tn=Symbol("_getFirstView"),nn=Symbol("_removeView"),rn=Symbol("_buildPage"),on=Symbol("_resolveComponent"),an=Symbol("_update"),sn=Symbol("_merge"),ln=Symbol("_handleHistoryChange"),un=Symbol("_handleRouteUpdated"),cn=Symbol("routeUpdatedCallback"),fn=Symbol("currentRoutes"),hn=Symbol("current"),vn=Symbol("_addRouteRecorder"),yn=Symbol("_removeRouteRecorder"),pn=Symbol("_cloneRouteRecorder"),dn=Symbol("_handleError"),gn=Symbol("errorCallback"),mn=Symbol("registerKey"),bn=Symbol("notFoundKey"),wn=Symbol("notFoundPathKey"),Sn=Symbol("forestKey"),xn=Symbol("historyKey"),kn=Symbol("beforeFiltersKey"),An=Symbol("afterFiltersKey"),Rn=Symbol("destroyFiltersKey"),On=Symbol("mainDispatcherKey"),jn=Symbol("initKey"),Pn=Symbol("requireKey"),Cn=Symbol("readyKey"),En=Symbol("readyHandlersKey"),Tn=Symbol("_markReady"),qn=Symbol("_createNextFn"),_n=Symbol("_start"),Fn=Symbol("_before"),Mn=Symbol("_after"),In=Symbol("_destroy"),Nn=Symbol("_load"),Kn=Symbol("_unload"),Dn=Symbol("_loadDependency"),$n=Symbol("resolvedModulesKey"),Ln=Symbol("resolveDependencyKey"),Un=Symbol("routerGuardKey");Symbol.for("loadViewModel");var Bn=function(){function e(t){var n,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xt(this,mn,new Array),Xt(this,wn,"*"),Xt(this,Cn,!1),Xt(this,En,[]),Xt(this,Sn,new je),Xt(this,fn,new Array),Xt(this,gn,null),Xt(this,cn,null),Xt(this,kn,new Array),Xt(this,An,new Array),Xt(this,Rn,new Array),Xt(this,On,new at),Xt(this,$n,new Map),Xt(this,Un,new Fe),Xt(this,jn,!1),Xt(this,hn,c(null)),Xt(this,Pn,null),this.options=null!=t?t:{},this.options.notFoundPath&&this.setNotFoundPath(this.options.notFoundPath);var o=this.options.routes||[];this.addRoutes(o),this.options.notFound&&this.setNotFoundRoute(this.options.notFound),t.history?this[xn]=t.history:this[xn]=Me?Nt():Ut(),null===(n=this[xn])||void 0===n||n.listen((function(e){var t=null;if("string"==typeof e){var n=r[ee](e);n&&(t=r[ln]([n]))}else t=r[ln](e);t&&t.then((function(){!1===r[Cn]&&r[Tn](!0)})).catch((function(){!1===r[Cn]&&r[Tn](!1)}))}))}var t,n;return t=e,(n=[{key:"require",get:function(){return Me?(this[Pn]||(this[Pn]=new ht),this[Pn]):null}},{key:"current",get:function(){return this[hn].value}},{key:"setHistoryMode",value:function(e){var t,n=this;if(!this[Cn]){if(this[xn])try{this[xn].destroy()}catch(e){console.error(e.message,e)}for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];this[xn]="path"===e?Reflect.apply(It,null,[].concat(o)):"memory"===e?Reflect.apply(Ut,null,[].concat(o)):Reflect.apply(Nt,null,[].concat(o)),null===(t=this[xn])||void 0===t||t.listen((function(e){var t=null;if("string"==typeof e){var r=n[ee](e);r&&(t=n[ln]([r]))}else t=n[ln](e);t&&t.then((function(){!1===n[Cn]&&n[Tn](!0)})).catch((function(){!1===n[Cn]&&n[Tn](!1)}))}))}}},{key:dn,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"error",t=arguments.length>1?arguments[1]:void 0;if(t&&"function"==typeof t.error)try{t.error(e)}catch(e){}if(this[gn])try{this[gn](e,t)}catch(e){}console.error(e)}},{key:"init",value:function(){var e;!0!==this[jn]&&(null===(e=this[xn])||void 0===e||e.init(!this[Cn]),this[jn]=!0)}},{key:"isReady",value:function(){var e=this;return this[Cn]?Promise.resolve():new Promise((function(t,n){e[En].push([t,n])}))}},{key:Tn,value:function(e){this[Cn]=!0,this[En].forEach((function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(n,r)||Wt(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];try{e?i():a()}catch(e){console.error(e.message,e)}}))}},{key:ln,value:function(e){try{if(!e){var t=zt(this[fn]).reverse();return this[Kn](t),Me&&Ie().location.reload(),Promise.resolve()}for(var n=null,r=[],o=[],i=0;i<e.length&&i<this[fn].length&&fe.isSame(e[i],this[fn][i]);i++)!0===e[i].active&&e[i].active!==this[fn][i].active&&(n=e[i]);if(i<e.length&&(r=e.slice(i)),i<this[fn].length&&(o=this[fn].slice(i).reverse()),0===o.length&&0===r.length){if(null!==n)return this.restore([n])}else{if(!(o.length>0))return this.restore(r);if(this[Kn](o)){if(r.length>0)return this.restore(r);if(null!==n)return this.restore([n])}}}catch(e){this[dn](e)}return Promise.resolve()}},{key:un,value:function(e){if(e)this[hn].value=e;else{var t=this[fn].length;this[hn].value=t>0?this[fn][t-1]:null}if("function"==typeof this[cn])try{this[cn](this[hn].value)}catch(e){}}},{key:vn,value:function(e){if(e.opsType===se.Open){for(var t=!1,n=this[fn].length-1;n>=0;n--){var r=this[fn][n];e.root==r.root&&(e.path!==r.path?e.active&&(r.active=!1):(this[fn].splice(n,1,e),t=!0))}t||this[fn].push(e)}else this[fn].push(e)}},{key:pn,value:function(){var e,t=[],n=Jt(this[fn]);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=fe.clone(r,!0);t.push(o)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:yn,value:function(e){if(null!=this[fn]){for(var t=-1,n=0;n<this[fn].length;n++)if(fe.isSame(this[fn][n],e)){t=n;break}if(-1!=t){var r=this[fn][t];this[fn].splice(t,1),this[In](r,r.session)}}}},{key:"historyMonitor",set:function(e){this[xn]&&(this[xn].historyMonitor=e)}},{key:"historyMonitor",get:function(){return!!this[xn]&&this[xn].historyMonitor}},{key:"traceless",set:function(e){this[xn]&&(this[xn].traceless=e)}},{key:"traceless",get:function(){return!!this[xn]&&this[xn].traceless}},{key:"setRestorePoint",value:function(){var e,t=this[pn]();null===(e=this[xn])||void 0===e||e.setRestorePoint(t)}},{key:"onRouteUpdated",value:function(e){this[cn]=e}},{key:"onError",value:function(e){this[gn]=e}},{key:"beforeEach",value:function(e){this[kn].push(e)}},{key:"afterEach",value:function(e){this[An].push(e)}},{key:"destroyEach",value:function(e){this[Rn].push(e)}},{key:"beforeRestoreEach",value:function(e){this[xn].beforeRestoreEach(e)}},{key:"removeBeforeRestoreEach",value:function(e){return this[xn].removeBeforeRestoreEach(e)}},{key:"setResolveDependency",value:function(e){this[Ln]=e}},{key:"addRoutes",value:function(e){var t,n=Jt(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.addRoute(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"addRoute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(e.path!==this[wn]){var n=this[Qt](e);if(-1==t)this[mn]=[].concat(zt(this[mn]),zt(n));else for(var r=n.length-1;r>=0;r--)this[mn].splice(t,0,n[r])}else this.setNotFoundRoute(e)}},{key:"removeRoute",value:function(e){var t=this[ee](e);if(null===t)return console.warn("route格式错误",e),!1;for(var n=0;n<this[mn].length;n++){var r=this[mn][n];if(null!=t&&t.path&&r.path===t.path)return this[mn].splice(n,1),!0;if(null!=t&&t.name&&r.name===t.name)return this[mn].splice(n,1),!0}return!1}},{key:"hasRoute",value:function(e){var t=this[ee](e);return null===t?(console.warn("route格式错误",e),!1):-1!==this[mn].findIndex((function(e){return!(null==t||!t.path||e.path!==t.path)||!(null==t||!t.name||e.name!==t.name)||void 0}))}},{key:"setNotFoundPath",value:function(e){this[wn]=e}},{key:"setNotFoundRoute",value:function(e){var t=this[Qt](e);this[bn]=t[0]}},{key:"getRoutes",value:function(){return zt(this[mn])}},{key:Qt,value:function(e){var t,n=null!==(t=e.path)&&void 0!==t?t:"";n.length>0&&"/"!==n.charAt(0)&&(n="/".concat(n));var r=e.components||e.component&&{"":e.component};if(null==r){var o=new ye;return o.path=n,o.redirect=e.redirect,[o]}var i=[];for(var a in r){var s=r[a];0===a.length&&(a=Q);var l=new he(a,s,e.props,e.meta);i.push(l)}var u=!1,c=[];if(e.children){var f,h=Jt(e.children);try{for(h.s();!(f=h.n()).done;){var v,y=f.value,p=Jt(this[Qt](y));try{for(p.s();!(v=p.n()).done;){var d=v.value,g=new ye;g.name=d.name,d.path&&d.path.length>0?g.path="".concat(n).concat(d.path):(u=!0,g.path=n);var m=new ve;m.models=[].concat(i),g.layers=[m].concat(zt(d.layers)),c.push(g)}}catch(e){p.e(e)}finally{p.f()}}}catch(e){h.e(e)}finally{h.f()}}if(!u){var b=new ve;b.models=i;var w=new ye;w.name=e.name,w.path=n,w.layers=[b],c.splice(0,0,w)}return c}},{key:Zt,value:function(e){var t,n=e.route;try{var r,o=Jt(this[mn]);try{for(o.s();!(r=o.n()).done;){var i,a,s=r.value,l=null!==(i=n.template)&&void 0!==i?i:n.path,u=null!==(a=n.template)&&void 0!==a?a:n.name;if(l&&s.path){var c,f=s.match;f||(f=s.match=g(s.path));var h=f(l);if(!h)continue;if(s.redirect){var v=new fe;q(!0,v,n),v.path=s.redirect;var y={route:v,find:void 0};return!!this[Zt](y)&&(e.route=y.route,e.find=y.find,n.template&&e.find&&(e.find=Ht({},e.find),e.find.path=n.path),!0)}if(n.params=null!==(c=n.params)&&void 0!==c?c:{},q(!0,n.params,h.params),n.query){var p=n.query;if("string"==typeof p){var m,w={},S=Jt(p.split("&"));try{for(S.s();!(m=S.n()).done;){var x=m.value.split("=");if(2===x.length){var k=decodeURIComponent(x[0].trim()),A=decodeURIComponent(x[1].trim());w[k]=A}}}catch(e){S.e(e)}finally{S.f()}q(!0,n.params,w)}else"object"===Yt(p)&&q(!0,n.params,p)}return e.find=s,n.template&&e.find&&(e.find=Ht({},e.find),e.find.path=n.path),!0}if(u===s.name){var R;n.params=null!==(R=n.params)&&void 0!==R?R:{};var O=function(e,t){void 0===t&&(t={});var n=b(t),r=t.encode,o=void 0===r?function(e){return e}:r,i=t.validate,a=void 0===i||i,s=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i){var l=t?t[i.name]:void 0,u="?"===i.modifier||"*"===i.modifier,c="*"===i.modifier||"+"===i.modifier;if(Array.isArray(l)){if(!c)throw new TypeError('Expected "'+i.name+'" to not repeat, but got an array');if(0===l.length){if(u)continue;throw new TypeError('Expected "'+i.name+'" to not be empty')}for(var f=0;f<l.length;f++){var h=o(l[f],i);if(a&&!s[r].test(h))throw new TypeError('Expected all "'+i.name+'" to match "'+i.pattern+'", but got "'+h+'"');n+=i.prefix+h+i.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!u){var v=c?"an array":"a string";throw new TypeError('Expected "'+i.name+'" to be '+v)}}else{if(h=o(String(l),i),a&&!s[r].test(h))throw new TypeError('Expected "'+i.name+'" to match "'+i.pattern+'", but got "'+h+'"');n+=i.prefix+h+i.suffix}}else n+=i}return n}}(d(s.path,t=void 0),t);return n.path=O(n.params),e.find=s,n.template&&e.find&&(e.find=Ht({},e.find),e.find.name=n.name),!0}}}catch(e){o.e(e)}finally{o.f()}}catch(e){console.error(e.message,e),"function"==typeof n.error&&n.error(e.message)}return!1}},{key:ee,value:function(e){var t=null;if(Array.isArray(e))if(t=new fe,"object"===Yt(e[0]))t=fe.from(e[0]);else for(var n=0;n<e.length;n++)0===n?"/"===e[n].charAt(0)?t.path=e[n]:t.name=e[n]:1===n?t.params=e[n]:2===n?t.root=e[n]:3===n&&q(!1,t,e[n]);else"object"===Yt(e)?t=fe.from(e):"string"==typeof e&&(t=new fe,"/"==e.charAt(0)?t.path=e:t.name=e);if(t){var r,o,i;if(t.path){var a=t.path.indexOf("?");-1!==a&&a<t.path.length-1&&(t.query=t.path.substring(a+1),t.path=t.path.substring(0,a))}t.root=null!==(r=t.root)&&void 0!==r?r:Q,t.opsType=null!==(o=null!==(i=t.opsType)&&void 0!==i?i:this.options.defaultOperationType)&&void 0!==o?o:se.Push}return t}},{key:"push",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[ee](t);return r?(r.opsType=r.opsType||se.Push,this.to(r)):(this[dn]("resolve route fail",r),this)}},{key:"put",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[ee](t);return r?(r.opsType=se.Put,r.traceless=!0,this.to(r)):(this[dn]("resolve route fail",r),this)}},{key:"replace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[ee](t);return r?(r.opsType=se.Replace,this.to(r)):(this[dn]("resolve route fail",r),this)}},{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[ee](t);return r?(r.opsType=se.Append,this.to(r)):(this[dn]("resolve route fail",r),this)}},{key:"remove",value:function(e,t){var n=this;return new Promise((function(r){n[On].post((function(o){try{if(0===n[fn].length)return o.resolve(),void r(!1);var i,a=-1,s=[];if(e){var l;if(i=e.root?e.root:null!==(l=n[fn][0].root)&&void 0!==l?l:Q,e.all)for(var u=n[fn].length-1;u>0;u--){var c=n[fn][u];c.opsType===se.Append&&c.root===i&&(s.splice(0,0,c),a=u-1)}else if(e.until)for(var f=n[fn].length-1;f>0;f--){var h=n[fn][f];if(h.opsType===se.Append&&h.root===i){if("/"===e.until.charAt(0)&&e.until===h.path){a=f;break}if(e.until===h.name){a=f;break}s.splice(0,0,h)}}}else{i=Q;var v=n[tn](n[Sn]);v&&(i=v.name);for(var y=n[fn].length-1;y>0;y--){var p=n[fn][y];if(p.opsType===se.Append&&p.root===i){s.push(p),a=y-1;break}}}if(0===s.length){var d="can not find route";return console.warn(d),o.resolve(d),void r(!1)}var g=null;if(-1!==a&&(g=n[fn][a]),n[Kn](s)){if(!1===t)return o.resolve(),r(!0),!0;var m,b=n[fn].length,w=function(){return o.resolve(),r(!0),!0};if(g&&fe.isSame(g,n[fn][b-1]))return void(null===(m=n[xn])||void 0===m||m.goBack(g,w));w()}}catch(e){n[dn](e),o.resolve(),r(!1)}}))}))}},{key:"open",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[ee](t);return r?(r.opsType=se.Open,this.to(r)):(this[dn]("resolve route fail",r),this)}},{key:"close",value:function(e){var t=this;return this[On].post((function(n){try{var r=t[ee](e);if(!r)return void n.reject("resolve route fail");for(var o=[],i=0;i<t[fn].length;i++){var a=t[fn][i];if(a.root===r.root)if(r.path||r.name){if(r.path&&r.path===a.path){o.push(a);break}if(r.name&&r.name===a.name){o.push(a);break}}else o.push(a)}if(0===o.length)return void n.resolve();t[Kn](o)&&t[un](),n.resolve()}catch(e){n.resolve(),t[dn](e.message)}})),this}},{key:"to",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=this[ee](n);if(!o)return this[dn]("resolve route fail",o),this;console.debug("route to",o.path,o.root);var i=this[Un].acquire(o);return null==i?(this[dn]("route forbid",o),this):(this[On].post((function(t){try{var n,r=e[_n](o);e[Fn](r),null!==(n=r.session)&&void 0!==n&&n.routeModel||!e[Ln]||e[Dn](r),e[Nn](r),e[Mn](r),r.wait((function(n,r){var a=n.session.to;if(n.session.updateResult&&"success"===n.session.updateResult.status)try{var s,l,u=fe.clone(a,!0),c=new gt(u,e[pn]());a.opsType===se.Replace?null===(s=e[xn])||void 0===s||s.replace(c):null===(l=e[xn])||void 0===l||l.push(c)}catch(e){console.error(e.message,e)}if(e[Un].release(i),e[un](a),"function"==typeof o.success)try{Reflect.apply(o.success,{},[])}catch(e){console.error(e.message,e)}!1===e[Cn]&&e[Tn](!0),t.resolve()}),(function(n,r){e[Un].release(i),null!==r&&e[dn](r,o),!1===e[Cn]&&e[Tn](!1),t.resolve()}))}catch(n){e[Un].release(i),e[dn](n,o),t.resolve()}})),this)}},{key:"back",value:function(e){var t;null===(t=this[xn])||void 0===t||t.go(-e)}},{key:qn,value:function(e){var t=this;return function(n,r){if("boolean"==typeof n)n?e.resolve():e.reject(null!=r?r:null);else if(n){var o=t[ee](n);if(o){var i=e.session.to;o.success=i.success,o.error=i.error,e.session.to=o,e.session.routeModel=null,e.resolve()}else e.reject("route resolve fail")}else e.resolve()}}},{key:_n,value:function(e){var t,n=this[fn].length>0?this[fn][0]:void 0,r=new ce(e,n),o={route:e,find:null};return this[Zt](o),o.find&&(r.routeModel=o.find,e.matched=(t=[],o.find.layers.forEach((function(e){null!=e.models&&null!=e.models&&e.models.forEach((function(e){if(null!=e&&null!=e)if("object"===Yt(e.meta)){var n=q(!0,{},e.meta);t.push(n)}else e.meta&&t.push(e.meta)}))})),t),Array.isArray(e.matched)&&e.matched.length>0&&(e.meta=o.find.layers[0].models[0].meta)),new at(r)}},{key:Fn,value:function(e){var t,n=this,r=Jt(this[kn]);try{var o=function(){var r=t.value;e.post((function(e){var t=n[qn](e);Reflect.apply(r,{},[e.session.to,e.session.from,t,e.session])}))};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}},{key:Mn,value:function(e){var t=this;e.post((function(e){var n,r=Jt(t[An]);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{Reflect.apply(o,{},[e.session.to,e.session.from,e.session])}catch(e){console.error(e.message,e)}}}catch(e){r.e(e)}finally{r.f()}e.resolve()}))}},{key:In,value:function(e,t){var n,r=Jt(this[Rn]);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{Reflect.apply(o,{},[e,t])}catch(e){console.error(e.message,e)}}}catch(e){r.e(e)}finally{r.f()}"function"==typeof e.destroy&&Reflect.apply(e.destroy,e,[])}},{key:Dn,value:function(e){var t=this,n=e.session,r=Reflect.apply(this[Ln],this,[null==n?void 0:n.to]);if(null!=r&&null!=r){Array.isArray(r)||(r=[r]);var o,i=[],a=Jt(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;this[$n].has(s)||i.push(s)}}catch(e){a.e(e)}finally{a.f()}0!==i.length&&e.post((function(e){t[Pn].ensure(i,(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r){for(var a=0,s=r;a<s.length;a++){var l=s[a];if(l){var u=void 0;u=E(l)?l.default:l,Array.isArray(u)&&t.addRoutes(u)}}var c,f=Jt(i);try{for(f.s();!(c=f.n()).done;){var h=c.value;t[$n].set(h,!0)}}catch(e){f.e(e)}finally{f.f()}e.resolve()}else e.reject()}))}))}}},{key:Nn,value:function(e){var t=this;e.post((function(e){var n=e.session.to,r=e.session.routeModel;if(null==r){var o={route:n,find:null};if(t[Zt](o))r=o.find,e.session.routeModel=r;else{if(!t[bn])return void e.reject("not find route model");r=t[bn]}}var i=ce.from(e.session);t[rn](n,r,i).then((function(n){t[Sn],e.session.updateResult=null!=n?n:{status:"success",message:""},e.resolve()}),(function(t){e.reject(t)}))}))}},{key:Kn,value:function(e){if(0==e.length)return!0;var t,n=this[Sn],r=[],o=Jt(e);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=this[en](n,i);null!=a&&r.push(Ht(Ht({},a),{},{route:i}))}}catch(e){o.e(e)}finally{o.f()}if(0==r.length)return this[dn]("can not find view index"),!1;var s,l=Jt(r.reverse());try{for(l.s();!(s=l.n()).done;){var u,c=s.value;this[nn](n,{x:c.x,y:c.y},[null!==(u=c.route.index)&&void 0!==u?u:0],!0)}}catch(e){l.e(e)}finally{l.f()}return!0}},{key:en,value:function(e,t){for(var n,r=null!==(n=t.root)&&void 0!==n?n:Q,o=0;o<e.layers.length;o++)for(var i=e.layers[o],a=i.views.length-1;a>=0;a--){var s=i.views[a];if(s[be]&&s[xe]===r)return{x:a,y:o}}return null}},{key:tn,value:function(e){return e.layers.length>0&&e.layers[0].views.length>0?e.layers[0].views[0]:null}},{key:nn,value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!(t.y>=e.layers.length||t.x>=e.layers[t.y].views.length)){for(var o=e.layers[t.y].views[t.x],i=!1,a=[],s=!1,l=o.slots.value,u=l.length-1;u>=0;u--){var c=l[u];null!=n&&-1==n.indexOf(c.index)||(c.route&&o[be]&&(this[yn](c.route),!0===c.active&&c.route.opsType==se.Append&&(s=!0)),a.push(new Re(o,c.index,t.y)),l.splice(u,1))}if(0==l.length)r?o.slots.value=zt(l):e.layers[t.y].views.splice(t.x,1);else{if(s){var f=l.length-1,h=l[f];h.active=!0,h.route&&(h.route.active=h.active)}o.slots.value=zt(l)}0==e.layers[t.y].views.length&&(i=!0);for(var v=t.y+1;v<e.layers.length;v++){for(var y=e.layers[v].views,p=[],d=y.length-1;(i||a.length>0)&&d>=0;d--){var g=y[d];if(g[Se]&&(i||Re.include(a,g[Se]))){for(var m=g.slots.value,b=m.length-1;b>=0;b--){var w=m[b];w.route&&g[be]&&this[yn](w.route),p.push(new Re(g,w.index,v)),m.splice(b,1)}e.layers[v].views.splice(d,1)}}a=p,0==e.layers[v].views.length&&(i=!0)}}}},{key:"restore",value:function(e){var t=this;if(e&&0!=this[mn].length)return new Promise((function(n,r){for(var o=function(n){var r=e[n];t[On].post((function(e){var n,o=t[_n](r);t[Fn](o),null!==(n=o.session)&&void 0!==n&&n.routeModel||!t[Ln]||t[Dn](o),t[Nn](o),t[Mn](o),o.wait((function(t,n){e.resolve()}),(function(n,r){null!==r&&t[dn](r),e.resolve()}))}))},i=0;i<e.length;i++)o(i);t[On].post((function(e){e.resolve(),n()}))}));var n=this[Sn];if(n.layers.length>0){var r=n.layers[0].views;r.length>0&&(r[0].slots.value=[])}return this[fn]=[],this[un](),Promise.resolve()}},{key:rn,value:function(e,t,n){var r,o=this,i=null!==(r=e.updateType)&&void 0!==r?r:le.Part;return this[on](t).then((function(){var r=o[an](t,e,n,i);if("error"===r.status)throw Error(r.message);return r}))}},{key:on,value:function(e){for(var t=[],n=0;n<e.layers.length;n++)for(var r=e.layers[n],o=0;o<r.models.length;o++){var i=r.models[o];i.isResolved||t.push(i.resolve())}return t.length>0?Promise.all(t):Promise.resolve()}},{key:an,value:function(e,t,n,r){var o;if(1!==e.layers[0].models.length)return{status:"error",message:"illegal route structure(multi root node)"};var i,a,s,l=e.layers[0].models[0],u=this[Sn],c=function(e){return 0==e.layers.length||0==e.layers[0].views.length}(u),f=null!==(o=t.root)&&void 0!==o?o:Q;if(c||r!=le.Part||(i=this[en](u,t)),null==i||null==i)if(c||r===le.All){if(0==u.layers.length&&(u.layers[0]=new Oe),0==u.layers[0].views.length){var h,v=null!==(h=t.root)&&void 0!==h?h:Q;a=new Ae(v,!0,null),u.layers[0].views=[a]}else a=u.layers[0].views[0];i={x:0,y:0}}else{var y=t.slot;if(!y)return{status:"error",message:"can not rebuild view(because not route slot)"};var p,d=y.level;if(d>u.layers.length)return{status:"error",message:"can not insert view(override level)"};if(y.rootName){var g,m=Jt(u.layers[d-1].views);try{for(m.s();!(g=m.n()).done;){var b=g.value;if(b[be]&&b.name===y.rootName){var w;p=new Re(b,null!==(w=y.rootIndex)&&void 0!==w?w:0,d-1);break}if(b[we]&&b[we].view.name===y.rootName&&b[we].index===y.rootIndex){p=b[we];break}}}catch(e){m.e(e)}finally{m.f()}}if(!p)return{status:"error",message:"can not insert view(not find root node ref)"};a=new Ae(f,!0,p),u.layers[d].views.push(a),i={x:u.layers[d].views.length-1,y:d}}else a=u.layers[i.y].views[i.x];if(s=i.y,a[be]=!0,t.opsType===se.Append){var S;t.index=null!==(S=t.index)&&void 0!==S?S:N.get(),t.active=!0;var x=a.slots.value;if(x.length>0){var k=x[x.length-1];k.active=!1,k.route&&(k.route.active=k.active)}var A=new ke(t,l,t.index,!0);a.slots.value=[].concat(zt(x),[A]);var R=s+1,O=new Re(a,t.index,s);this[sn](u,R,e,1,O)}else if(t.opsType===se.Open){var j,P,C=a.slots.value,E=null===(j=t.active)||void 0===j||j,T=!1,q=Jt(C);try{for(q.s();!(P=q.n()).done;){var _=P.value;if(null!==_.route&&fe.isSameForRouteModel(_.route,t)){if(_.active===E)return t.index=_.index,t.active=E,_.route=t,{status:"no-change",message:""};_.active=E,T=!0,t.index=_.index,t.active=E,_.route=t}else E&&(_.active=!1);_.route&&(_.route.active=_.active)}}catch(e){q.e(e)}finally{q.f()}if(!T){var F;t.index=null!==(F=t.index)&&void 0!==F?F:N.get(),t.active=E;var M=new ke(t,l,t.index,E);C.push(M);var I=s+1,K=new Re(a,t.index,s);this[sn](u,I,e,1,K)}a.slots.value=zt(C)}else{var D=a.slots.value;if(0==D.length){var $;t.index=null!==($=t.index)&&void 0!==$?$:N.get(),t.active=!0,a.slots.value=[new ke(t,l,t.index)];var L=s+1,U=new Re(a,t.index,s);this[sn](u,L,e,1,U)}else{var B=D[0];if(B.model!==l){var H;this[nn](u,i,null,!0),t.index=null!==(H=t.index)&&void 0!==H?H:N.get(),t.active=!0,a.slots.value=[new ke(t,l,t.index)];var J=s+1,z=new Re(a,t.index,s);this[sn](u,J,e,1,z)}else{var W;null!==B.route&&this[yn](B.route);var V=!1,G=null===(W=t.active)||void 0===W||W;B.active!==G&&(B.active=G,V=!0),t.active=G,t.index=B.index,B.route=t;for(var X=[],Y=1;Y<D.length;Y++)X.push(D[Y].index);X.length>0?this[nn](u,i,X,!0):V&&(a.slots.value=zt(D));for(var Z=[new Re(a,t.index,s)],ee=s+1,te=1,ne=new Re(a,t.index,s);Z.length>0&&ee<u.layers.length&&te<e.layers.length;ee++,te++){for(var re=[],oe=0;oe<u.layers[ee].views.length;oe++){var ie=u.layers[ee].views[oe];ie[Se]&&Re.include(Z,ie[Se])&&re.unshift(oe)}for(var ae=[],ce=0,he=re;ce<he.length;ce++){for(var ve=he[ce],ye=u.layers[ee].views[ve],pe=e.layers[te].models,de=void 0,ge=0;ge<pe.length;ge++)if(ye.name===pe[ge].name){de=pe[ge];break}if(de){var me=ye.slots.value;if(0==me.length){ye.slots.value=[new ke(null,de,0)];var xe=ee+1,je=te+1;this[sn](u,xe,e,je,ne)}else{var Pe=me[0];if(Pe.model!==de){this[nn](u,{x:ve,y:ee},null,!0),ye.slots.value=[new ke(null,de,0)];var Ce=ee+1,Ee=te+1;this[sn](u,Ce,e,Ee,ne)}else{ye[be]&&null!==Pe.route&&this[yn](Pe.route);for(var Te=[],qe=1;qe<me.length;qe++)Te.push(me[qe].index);Te.length>0&&this[nn](u,{x:ve,y:ee},Te,!0),ae.push(new Re(ye,Pe.index,ee))}}ye[be]=!1}else this[nn](u,{x:ve,y:ee},null,!1)}Z=ae}this[sn](u,ee,e,te,ne)}}}if(a&&a[we]){var _e,Fe=a[we];Fe&&(t.slot=new ue(f,s,null==Fe?void 0:Fe.view.name,null!==(_e=null==Fe?void 0:Fe.index)&&void 0!==_e?_e:0))}return n.to=void 0,n.routeModel=void 0,t.session=n,this[vn](t),{status:"success",message:""}}},{key:sn,value:function(e,t,n,r,o){for(var i=r,a=t;a<e.layers.length&&i<n.layers.length;a++,i++){var s,l=e.layers[a].views,u=Jt(n.layers[i].models);try{for(u.s();!(s=u.n()).done;){var c=s.value,f=new Ae(c.name,!1,o),h=new ke(null,c);f.slots.value=[h],l.push(f)}}catch(e){u.e(e)}finally{u.f()}}for(;i<n.layers.length;i++){var v=new Oe;v.views=[];var y,p=Jt(n.layers[i].models);try{for(p.s();!(y=p.n()).done;){var d=y.value,g=new Ae(d.name,!1,o),m=new ke(null,d);g.slots.value=[m],v.views.push(g)}}catch(e){p.e(e)}finally{p.f()}e.layers.push(v)}}},{key:Z,value:function(e,t,n,r,o,i){if(t<0||t>this[Sn].layers.length)return null;if(t<this[Sn].layers.length){var a,s=null,l=Jt(this[Sn].layers[t].views);try{for(l.s();!(a=l.n()).done;){var u,c,f=a.value,h=!1;if(null!==n?(h=f.name===e&&(null===(u=f[we])||void 0===u?void 0:u.view)===n)&&-1!==r&&(h=(null===(c=f[we])||void 0===c?void 0:c.index)===r):h=f.name===e,h){null!==o&&(f[Se]={view:o,index:i,level:t-1}),s=f;break}}}catch(e){l.e(e)}finally{l.f()}if(null!==s)return s}var v=null,y=null;null!==o&&(v=o[be]?{view:o,index:i,level:t-1}:o[we],y={view:o,index:i,level:t-1});var p=new Ae(e,!0,v);if(p[Se]=y,t==this[Sn].layers.length){var d=new Oe;d.views=[p],this[Sn].layers.push(d)}else this[Sn].layers[t].views.push(p);return p}}])&&Gt(t.prototype,n),e}(),Hn="fox-router-view";function Jn(e){return(Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showClass)&&void 0!==t?t:e.enterClass)||((r=e.transitionName)?"".concat(r,n?"-show":"-enter"):null)}function Wn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showActiveClass)&&void 0!==t?t:e.enterActiveClass)||((r=e.transitionName)?"".concat(r,n?"-show-active":"-enter-active"):null)}function Vn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showToClass)&&void 0!==t?t:e.enterToClass)||((r=e.transitionName)?"".concat(r,n?"-show-to":"-enter-to"):null)}function Gn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideClass)&&void 0!==t?t:e.leaveClass)||((r=e.transitionName)?"".concat(r,n?"-hide":"-leave"):null)}function Xn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideActiveClass)&&void 0!==t?t:e.leaveActiveClass)||((r=e.transitionName)?"".concat(r,n?"-hide-active":"-leave-active"):null)}function Yn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideToClass)&&void 0!==t?t:e.leaveToClass)||((r=e.transitionName)?"".concat(r,n?"-hide-to":"-leave-to"):null)}function Qn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.beforeShow)&&void 0!==t?t:e.beforeEnter}function Zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.show)&&void 0!==t?t:e.enter}function er(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.afterShow)&&void 0!==t?t:e.afterEnter}function tr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.showCancelled)&&void 0!==t?t:e.enterCancelled}function nr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.hide)&&void 0!==t?t:e.leave}function rr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.afterHide)&&void 0!==t?t:e.afterLeave}function or(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.hideCancelled)&&void 0!==t?t:e.leaveCancelled}function ir(e){var t,n,r,o,i,a=e.duration;return"object"==Jn(a)?t={enter:null!==(n=a.enter)&&void 0!==n?n:-1,leave:null!==(r=a.leave)&&void 0!==r?r:-1,show:null!==(o=a.show)&&void 0!==o?o:-1,hide:null!==(i=a.hide)&&void 0!==i?i:-1}:("string"==typeof a&&(a=0==a.length?-1:Number(a)),t={enter:a,leave:a,show:a,hide:a}),t}function ar(e,t){e.classList.contains(t)||e.classList.add(t)}function sr(e,t){e.classList.remove(t)}var lr=Me&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function ur(e){lr(e)}function cr(e,t,n){O(t)&&(null==e&&(e={}),Reflect.apply(t,e,n))}function fr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;if(O(i)){if(void 0!==o&&o>=0)return void setTimeout((function(){Reflect.apply(i,e,[t,n,r]),O(s)&&Reflect.apply(s,e,[])}),o);var l=["animationend","transitionend"],u=function o(a){l.forEach((function(e){$e(t,e,o)})),Reflect.apply(i,e,[t,n,r]),s&&Reflect.apply(s,e,[])};l.forEach((function(e){De(t,e,u)}))}if(O(a)){var c="animationcancel",f=function o(i){Reflect.apply(a,e,[t,n,r]),$e(t,c,o)};De(t,c,f)}}function hr(e){return null!==e&&(e.opsType===se.Append||e.opsType===se.Open)}function vr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;if(t||hr(o)){var a=zn(r,t);a&&ar(n,a);var s=Wn(r,t);s&&ar(n,s);var l=Qn(r,t);cr(e,l,[n,t,o,i])}}function yr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;if(hr(i)||t){var l=zn(r,t),u=Wn(r,t),c=Vn(r,t),f=Zn(r,t),h=er(r,t),v=tr(r,t);l||u||c||f?ur((function(){fr(e,n,i,a,o,(function(){u&&sr(n,u),c&&sr(n,c),O(h)&&cr(e,h,[n,t,i,a]),O(s)&&s(e,s,[n])}),(function(){O(v)&&cr(e,v,[n,t,i,a])})),l&&sr(n,l),c&&ar(n,c),O(f)&&cr(e,f,[n,t,i,a])})):O(s)&&s(e,s,[n])}else O(s)&&s(e,s,[n])}function pr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;if(hr(a)||t){var u=Gn(r,t),c=Xn(r,t),f=Yn(r,t),h=nr(r,t),v=rr(r,t),y=or(r,t);u||c||f||h?(u&&ar(n,u),c&&ar(n,c),O(h)&&cr(e,h,[n,t,a,s]),ur((function(){fr(e,n,a,s,o,(function(){c&&sr(n,c),f&&sr(n,f),O(v)&&cr(e,v,[n,t,a,s]),O(l)&&cr(e,l,[n]),!t&&O(i)&&i()}),(function(){O(y)&&cr(e,y,[n,t,a,s]),O(l)&&cr(e,l,[n]),!t&&O(i)&&i()})),u&&sr(n,u),f&&ar(n,f)}))):!t&&O(i)&&i()}else!t&&O(i)&&i()}function dr(e){return e.elm}function gr(e){return(gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){return function(e){if(Array.isArray(e))return Sr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wr(e,t){if(e){if("string"==typeof e)return Sr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sr(e,t):void 0}}function Sr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xr=Symbol("ruvc"),kr=Symbol("cvs");function Ar(e,t,n){return"function"==typeof e?Reflect.apply(e,{},[t,n]):e}function Rr(e,t){if(e.componentOptions&&e.componentOptions.Ctor&&e.componentOptions.Ctor.extendOptions){var n=e.componentInstance||e,r=[];if(e.fnOptions&&e.fnOptions[t]){var o=e.fnOptions[t];Array.isArray(o)?r=br(o):"function"==typeof o&&(r=[o])}if(e.componentOptions.Ctor&&e.componentOptions.Ctor.extendOptions){var i=e.componentOptions.Ctor.extendOptions[t];Array.isArray(i)?r=[].concat(br(r),br(i)):"function"==typeof i&&(r=[].concat(br(r),[i]))}return function(e){r.forEach((function(e){Reflect.apply(e,n,[])}))}}return function(){}}var Or=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mr(this,"node",void 0),mr(this,"state",void 0),this.node=t,this.state=n},jr={functional:!0,props:{name:{type:String,required:!1,default:"default"},passProps:{type:Object,required:!1},modelSlot:{type:[Object],required:!1},multi:{type:Boolean,default:!1},transition:{type:[Boolean,String,Function],required:!1},tag:{type:[String,Function,Object],required:!1,default:"div"},tagProps:{type:[Object,Function],required:!1,default:function(){return{}}},viewTag:{type:[String,Function,Object],required:!1,default:"div"},viewTagData:{type:[Object,Function],required:!1,default:function(){return{}}},viewTagProps:{type:[Object,Function],required:!1,default:function(){return{}}},viewTagAttrs:{type:[Object,Function],required:!1,default:function(){return{}}},viewClass:{type:[String,Function],required:!1},viewActiveClass:{type:[String,Function],required:!1},viewDeactiveClass:{type:[String,Function],required:!1},viewInactiveClass:{type:[String,Function],required:!1},transitionName:{type:String,required:!1},enterClass:{type:String,required:!1},enterActiveClass:{type:String,required:!1},enterToClass:{type:String,required:!1},leaveClass:{type:String,required:!1},leaveActiveClass:{type:String,required:!1},leaveToClass:{type:String,required:!1},showClass:{type:String,required:!1},showActiveClass:{type:String,required:!1},showToClass:{type:String,required:!1},hideClass:{type:String,required:!1},hideActiveClass:{type:String,required:!1},hideToClass:{type:String,required:!1},beforeEnter:{type:Function,required:!1},enter:{type:Function,required:!1},afterEnter:{type:Function,required:!1},enterCancelled:{type:Function,required:!1},beforeLeave:{type:Function,required:!1},leave:{type:Function,required:!1},afterLeave:{type:Function,required:!1},leaveCancelled:{type:Function,required:!1},beforeShow:{type:Function,required:!1},show:{type:Function,required:!1},afterShow:{type:Function,required:!1},showCancelled:{type:Function,required:!1},beforeHide:{type:Function,required:!1},hide:{type:Function,required:!1},afterHide:{type:Function,required:!1},hideCancelled:{type:Function,required:!1},duration:{type:[Number,Object],required:!1}},render:function(e,t){var n,u=t,c=t.parent.$createElement,f=t.parent.$router,d=t.props,g=d.name,m=d.multi,b=t.data,w=(n=t.parent)[xr]||(n[xr]={}),S=y(t.parent,o,0),x=y(t.parent,i,null),k=y(t.parent,a,-1),A=d.modelSlot;if(A){var R=g;v(t.parent,o,S+1,R),v(t.parent,a,A.index,R),v(t.parent,l,A.index,R);var j=A.route;j&&v(t.parent,r,j,R);var P,C=mr({attrs:{}},h,R);if(A.model.props)if("object"===gr(A.model.props))Object.assign(C.attrs,A.model.props);else if(!0===A.model.props&&"object"===gr(null===(P=A.route)||void 0===P?void 0:P.params)){var E;Object.assign(C.attrs,null===(E=A.route)||void 0===E?void 0:E.params)}return c(A.model.component,C,t.children)}if(null==f)return console.error("router is not been register"),c();var T=y(t.parent,s,null),_=y(t.parent,l,0),F=f[Z](g,S,x,k,T,_);if(null===F)return p(t.parent),c();if(v(t.parent,s,F),!0===F[be]&&v(t.parent,i,F),m){var M=w[kr];M||(M=w[kr]=new Map);for(var I=new Map,N=[],K=F.slots.value,$=[],L=function(e){var t,n,r,o=K[e],i="".concat(d.name,"-").concat(o.index),a=null===(t=Ar(d.transition,o.route,e))||void 0===t||t,s=c(Hn,{props:{name:i,modelSlot:o}}),l={},f=Ar(d.viewClass,o.route,e);"string"==typeof f&&f.length>0&&(l[f]=!0);var h=Ar(d.viewActiveClass,o.route,e),v=Ar(null!==(n=d.viewInactiveClass)&&void 0!==n?n:d.viewDeactiveClass,o.route,e),y=M.get(i);if("string"==typeof h&&h.length>0&&(l[h]=o.active),"string"==typeof v&&v.length>0&&(l[v]=!o.active),y&&o.active!==y.state){var p=y.node;if(o.active){var g=null;p&&p.children&&p.children.length>0&&(g=Rr(p.children[0],"activated")),$.unshift((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=dr(t);if(null!=s)if(i){var l=ir(n);vr(e,!0,s,n,r,o),yr(e,!0,s,n,l.show,r,o,(function(e){O(a)&&a("from enter")}))}else O(a)&&a();else O(a)&&a()}(u,p,d,o.route,e,a,g)}))}else{if(p&&p.children&&p.children.length>0){var m=Rr(p.children[0],"deactivated");try{D(m)}catch(e){console.error(e)}}$.push((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=dr(t);null!=s&&i?pr(e,!0,s,n,ir(n).hide,null,r,o,(function(e){O(a)&&a("from leave")})):O(a)&&a()}(u,p,d,o.route,e,a)}))}}var b={class:l,key:i},w=null!==(r=Ar(d.viewTagData,o.route,e))&&void 0!==r?r:{};null!==w&&"object"===gr(w)&&q(!0,b,w);var S=Ar(d.viewTagProps,o.route,e);null!==S&&"object"===gr(S)&&(b.props=q(!0,{},S));var x=Ar(d.viewTagAttrs,o.route,e);null!==x&&"object"===gr(x)&&(b.attrs=q(!0,{},x)),o.route.viewTagAttrs&&"object"===gr(o.route.viewTagAttrs)&&(b.attrs?Object.assign(b.attrs,o.route.viewTagAttrs):b.attrs=o.route.viewTagAttrs);var k=Ar(d.viewTag,o.route,e),A=c(k,b,[s]);if(I.set(i,new Or(A,o.active)),a){var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=ir(t);return{create:function(e,i){var a=dr(i);vr(e,!1,a,t,n,r),yr(e,!1,a,t,o.enter,n,r)},activate:function(e,i){var a=dr(i);vr(e,!1,a,t,n,r),yr(e,!1,a,t,o.enter,n,r)},remove:function(e,i){pr(e,!1,dr(e),t,o.leave,i,n,r)}}}(u,d,o.route,e);A.data.hook=R}N.push(A)},U=0;U<K.length;U++)L(U);var B,H=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=wr(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(M.keys());try{for(H.s();!(B=H.n()).done;){var J=B.value;I.has(J)||p(t.parent,J)}}catch(e){H.e(e)}finally{H.f()}w[kr]=I,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ur((function(){for(var n=function(n){D((function(){Reflect.apply(e[n],t,[])}))},r=0;r<e.length;r++)n(r)}))}($,u);var z=Ar(d.tag,null,-1),W={};for(var V in b)"props"!==V&&(W[V]=b[V]);var G=Ar(d.tagProps,null,-1);return null!==G&&"object"===gr(G)&&(W.props=G),c(z,W,N)}v(t.parent,a,-1),v(t.parent,o,S+1),v(t.parent,l,-1);var X=F.slots.value;if(X.length>0){var Y=X[0],Q=Y.route;Q?v(t.parent,r,Q):x&&x.slots.value.length>0&&(Q=x.slots.value[0].route,v(t.parent,r,Q));var ee=mr({},h,"");for(var te in b)"props"!==te&&(ee[te]=b[te]);null!==ee.attrs&&"object"===gr(ee.attrs)||(ee.attrs={});var ne,re=Y.model;if(re.props)if("object"===gr(re.props))Object.assign(ee.attrs,re.props);else if(!0===re.props&&"object"===gr(null===(ne=Y.route)||void 0===ne?void 0:ne.params)){var oe;Object.assign(ee.attrs,null===(oe=Y.route)||void 0===oe?void 0:oe.params)}return null!==d.passProps&&"object"===gr(d.passProps)&&Object.assign(ee.attrs,d.passProps),c(re.component,ee,[])}}};function Pr(e){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Cr,Er={name:"RouterLink",props:{tag:{type:[String],default:"a"},to:{type:[String,Object],required:!0},activeClass:String,exact:Boolean,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t,n,r=this.$router,o=this.$route,i={},a=r.options.linkActiveClass,s=r.options.linkExactActiveClass,l=null==a?"fox-router-link-active":a,u=null==s?"fox-router-link-exact-active":s,c=null==this.activeClass?l:this.activeClass,f=null==this.exactActiveClass?u:this.exactActiveClass;i[f]=(t=o,n=this.to,!!t&&("object"===Pr(n)?n.path?t.path===n.path:t.name===n.name:"/"===n.charAt(0)?t.path===n:t.name===n)),i[c]=this.exact?i[f]:function(e,t){return!!e&&("object"===Pr(t)?t.path?0===e.path.indexOf(t.path):e.name===t.name:"/"===t.charAt(0)?0===e.path.indexOf(t):e.name===t)}(o,this.to);var h=r[ee](this.to),v=function(e){Tr(e)&&r.to(h)},y={click:Tr};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=v})):y[this.event]=v;var p={class:i},d="#".concat(h.path);if("a"===this.tag)p.on=y,p.attrs={href:d};else{var g=qr(this.$slots.default);if(g){g.isStatic=!1;var m=g.data=extend({},g.data);for(var b in m.on=m.on||{},m.on){var w=m.on[b];b in y&&(m.on[b]=Array.isArray(w)?w:[w])}for(var S in y)S in m.on?m.on[S].push(y[S]):m.on[S]=v;(g.data.attrs=extend({},g.data.attrs)).href=d}else p.on=y}return e(this.tag,p,this.$slots.default)}};function Tr(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qr(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=qr(t.children)))return t}}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e){e[e.limitless=0]="limitless",e[e.once=1]="once"}(Cr||(Cr={}));var Mr=Symbol("registerKey"),Ir=function e(t,n){Fr(this,e),this.callback=t,this.policy=n},Nr=function(){function e(){Fr(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,Mr,new Map)}var t,n;return t=e,(n=[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this[Mr].get(e);r||(r=new Array,this[Mr].set(e,r));var o=!0===n?Cr.once:Cr.limitless,i=new Ir(t,o);return r.push(i),this}},{key:"off",value:function(e,t){if(!t)return this[Mr].delete(e),this;var n=this[Mr].get(e);if(n)for(var r=0;r<n.length;r++)if(n[r].callback===t){n.splice(r,1);break}return this}},{key:"bind",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.on(e,t,n)}},{key:"unbind",value:function(e,t){return this.off(e,t)}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"all",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.length;if(o<1)return this;var i=n[o-1];if("function"!=typeof i)return console.error("callback can not benn empty"),this;for(var a=o-1,s=new Array(a),l=[].splice.call(n,0,a),u=function(t){e.once(l[t],(function(e){s[t]=e,0==(a-=1)&&Reflect.apply(i,{},s)}))},c=0;c<l.length;c++)u(c);return this}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this[Mr].get(e);if(!o)return this;for(var i=function(e){var t=o[e];if(t.policy==Cr.once?o.splice(e,1):e++,"function"==typeof t.callback)try{D((function(){Reflect.apply(t.callback,{},n)}))}catch(e){console.error(e.message,e)}a=e},a=0;a<o.length;)i(a);return this}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(this.emit,this,[e].concat(n))}}])&&_r(t.prototype,n),e}();function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Dr={type:"GET",async:!0,contentType:"application/x-www-form-urlencoded",dataType:"string",cache:!1,timeout:3e4,processData:!0};function $r(e){var t=new XMLHttpRequest,n={};if(q(!0,n,Dr),q(!0,n,e),(e=n).async)try{t.responseType=e.dataType,t.timeout=e.timeout,t.ontimeout=function(){"function"==typeof e.ontimeout?e.ontimeout(t,t.status):"function"==typeof e.error&&e.error(t,t.status)}}catch(e){console.error(e.message,e)}t.onabort=function(){"function"==typeof e.onabort?e.onabort(t,t.status):"function"==typeof e.error&&e.error(t,t.status)},t.onerror=function(){"function"==typeof e.error&&e.error(t,t.status)},t.onloadend=function(){"function"==typeof e.complete&&e.complete(t,t.status)},t.onprogress=function(){"function"==typeof e.loading&&e.loading(t)},t.onload=function(){if(0==t.status||t.status>=200&&t.status<300||304==t.status){var n,r=null!==(n=t.response)&&void 0!==n?n:"";if(0==r.length&&0==t.status)return;try{o=r,"json"===e.dataType&&"string"==typeof o&&(o=JSON.parse(o)),r=o}catch(e){console.error(e.message,e)}"function"==typeof e.success&&e.success(r,t.status,t)}else"function"==typeof e.error&&e.error(t,t.status);var o};try{var r=e.url;if(e.type&&"GET"===e.type.toUpperCase()&&(r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";if(null==t)return e;var r="";if(0===(n=n.trim().toLowerCase()).indexOf("application/x-www-form-urlencoded")||0===n.indexOf("application/json"))if("object"===Kr(t))for(var o in t){var i=t[o];if(Array.isArray(i))for(var a=0;a<i.length;a++){var s="".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i[a]));r.length>0&&(r+="&"),r+=s}else{var l="".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i));r.length>0&&(r+="&"),r+=l}}else r=t;else r=t;return r.length>0&&(e=-1===e.indexOf("?")?"".concat(e,"?").concat(r):"".concat(e,"&").concat(r)),e}(e.url,e.data,e.contentType)),t.open(e.type,r,e.async),e.contentType&&t.setRequestHeader("Content-Type",e.contentType),"function"==typeof e.beforeSend){var o={};q(!0,o,e),Reflect.apply(e.beforeSend,e,[t,o])}if(e.cache||t.setRequestHeader("Cache-Control","no-cache"),e.type&&"POST"===e.type.toUpperCase()){var i=e.processData?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text",n="";if(0===(t=t.trim().toLowerCase()).indexOf("application/x-www-form-urlencoded"))if("object"===Kr(e))for(var r in e){var o=e[r];if(Array.isArray(o))for(var i=0;i<o.length;i++){var a="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o[i]));n.length>0&&(n+="&"),n+=a}else{var s="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o));n.length>0&&(n+="&"),n+=s}}else n=e;else n=0===t.indexOf("text")?"object"===Kr(e)?JSON.stringify(e):e:0===t.indexOf("application/json")&&"object"===Kr(e)?JSON.stringify(e):e;return n}(e.data,e.contentType):e.data;t.send(i)}else t.send()}catch(n){"function"==typeof e.error&&e.error(t,n.message),"function"==typeof e.complete&&e.complete(t,n.message)}return t}function Lr(e){return(Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ur(e,t){return(Ur=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Br(e,t){if(t&&("object"===Lr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),e}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gr=Symbol("idKey"),Xr=Symbol("valueKey"),Yr=Symbol("childrenKey"),Qr=Symbol("growKey"),Zr=function e(t){Wr(this,e),Vr(this,Qr,!0),Vr(this,Xr,c()),Vr(this,Yr,new Map),this[Gr]=t},eo=function(){function e(){Wr(this,e)}return zr(e,[{key:"get",value:function(e,t){if("value"==t)return e[Xr].value;if("grow"===t)return e[Qr];var n=e[Yr].get(t);return n?ro(n):e[Qr]?((n=no(t))[Qr]=e[Qr],e[Yr].set(t,n),ro(n)):void 0}},{key:"set",value:function(e,t,n){return"value"==t?(e[Xr].value=n,!0):"grow"===t?(e[Qr]=$(n),!0):null==n?(e[Yr].delete(t),!0):(console.error("illegal property:".concat(t)),!1)}},{key:"deleteProperty",value:function(e,t){return"value"===t||"grow"==t?(console.error("can not delete property:".concat(String(t))),!1):(e[Yr].delete(t),!0)}}]),e}(),to="__proxy__";function no(e){var t=new Zr(e);return Reflect.set(t,to,new Proxy(t,new eo)),t}function ro(e){return Reflect.get(e,to)}var oo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ur(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Hr(t);if(n){var o=Hr(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Br(this,e)});function o(){return Wr(this,o),r.call(this,"__root__")}return zr(o,[{key:"put",value:function(){var e=arguments.length;if(e<2)return console.error("参数至少包括一个(key, value)"),!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n],o=void 0;t[Yr].has(r)?o=t[Yr].get(r):(o=no(r),t[Yr].set(r,o)),t=o}return t[Xr].value=e-1<0||arguments.length<=e-1?void 0:arguments[e-1],!0}},{key:"get",value:function(){var e=arguments.length;if(0!==e){for(var t=this,n=0;n<e;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Yr].has(r))return;t=t[Yr].get(r)}return t[Xr].value}}},{key:"remove",value:function(){var e=arguments.length;if(0==e)return!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Yr].has(r))return!1;t=t[Yr].get(r)}var o=e-1<0||arguments.length<=e-1?void 0:arguments[e-1];return!!t[Yr].has(o)&&(t[Yr].delete(o),!0)}},{key:"contains",value:function(){var e=arguments.length;if(0==e)return!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Yr].has(r))return!1;t=t[Yr].get(r)}var o=e-1<0||arguments.length<=e-1?void 0:arguments[e-1];return t[Yr].has(o)}},{key:"clear",value:function(){this[Yr].clear()}}]),o}(Zr),io=(Symbol("treeKey"),["put","get","contains","remove","clear"]);function ao(e){return io.includes(e)}var so=function(){function e(){Wr(this,e)}return zr(e,[{key:"get",value:function(e,t){if("value"==t)return e[Xr].value;if("grow"===t)return e[Qr];if(t===Yr)return e[Yr];if("string"==typeof t&&ao(t))return e[t];var n=String(t),r=e[Yr].get(n);return r?ro(r):e[Qr]?((r=no(n))[Qr]=e[Qr],e[Yr].set(n,r),ro(r)):void 0}},{key:"set",value:function(e,t,n){return"value"==t?(e[Xr].value=n,!0):"grow"===t?(e[Qr]=$(n),!0):!ao(t)&&(null==n?(e[Yr].delete(t),!0):(console.error("illegal property:".concat(t)),!1))}},{key:"deleteProperty",value:function(e,t){return"value"===t||"grow"==t?(console.error("can not delete property:".concat(String(t))),!1):(e[Yr].delete(t),!0)}}]),e}(),lo=new Proxy(oo,{construct:function(e){return ro((t=new oo,n=new so,r=new Proxy(t,n),o={put:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.put,t,n)},get:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.get,t,n)},remove:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.remove,t,n)},contains:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.contains,t,n)},clear:function(){return Reflect.apply(t.clear,t,[])}},Object.assign(o,r),Reflect.set(t,to,r),t));var t,n,r,o}}),uo={get each(){return W},get type(){return U},get isFunction(){return O},get isArray(){return R},get isArrayLike(){return H},get makeArray(){return z},get merge(){return J},get isWindow(){return B},get isPlainObject(){return P},get isEqual(){return V},get isESModule(){return E}};function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach((function(t){ho(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Symbol("fk");var vo=new Bn({}),yo=new lo,po=new Nr,go=!1,mo=fo(fo({},uo),{},{get router(){return vo},get bus(){return yo},get Bus(){return lo},get eventproxy(){return po},get EventProxy(){return Nr},get EventChain(){return at},get require(){return vo.require},get ajax(){return $r},get extend(){return q},get clone(){return _},install:function(e){go||(go=!0,function(e){n=e}(e),e.component(Hn,jr),e.component("fox-router-link",Er),Object.defineProperty(e.prototype,"$fox",{get:function(){return this._routerRoot._fox}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Reflect.defineProperty(e.prototype,"$route",{get:function(){return y(this,r,null)}}),Reflect.defineProperty(e.prototype,"$bus",{get:function(){return this._routerRoot._fox.bus}}),e.prototype.$fox_on=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];po.on(e,t,n)},e.prototype.$fox_off=function(e,t){po.off(e,t)},e.prototype.$fox_once=function(e,t){po.once(e,t)},e.prototype.$fox_all=function(){for(var e=po,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Reflect.apply(e.all,e,n)},e.prototype.$fox_trigger=function(e){for(var t=po,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t.trigger,t,[e].concat(r))},e.prototype.$fox_emit=function(e){for(var t=po,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t.trigger,t,[e].concat(r))},e.mixin({beforeCreate:function(){this.$options.fox?(this._routerRoot=this,this._fox=this.$options.fox,this._router=this._fox.router,this._router.init()):this._routerRoot=this.$parent&&this.$parent._routerRoot||this},mounted:function(){},destroyed:function(){}}))}});return t}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.fox=t():e.fox=t()}(self,(function(){return function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:function(){return bo}}),Symbol("rk");var n=Symbol("crk"),r=Symbol("vd"),o=Symbol("rv"),i=Symbol("rvi"),a=Symbol("pv"),u=Symbol("pvi");function l(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[u=n+1])throw new TypeError('Pattern cannot start with "?" at '+u);for(;u<e.length;)if("\\"!==e[u]){if(")"===e[u]){if(0==--o){u++;break}}else if("("===e[u]&&(o++,"?"!==e[u+1]))throw new TypeError("Capturing groups are not allowed at "+u);i+=e[u++]}else i+=e[u++]+e[u++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=u}else{for(var a="",u=n+1;u<e.length;){var l=e.charCodeAt(u);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[u++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=u}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^"+c(t.delimiter||"/#?")+"]+?",a=[],u=0,l=0,s="",f=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},h=function(e){var t=f(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},v=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var y=f("CHAR"),p=f("NAME"),d=f("PATTERN");if(p||d){var g=y||"";-1===o.indexOf(g)&&(s+=g,g=""),s&&(a.push(s),s=""),a.push({name:p||u++,prefix:g,suffix:"",pattern:d||i,modifier:f("MODIFIER")||""})}else{var m=y||f("ESCAPED_CHAR");if(m)s+=m;else if(s&&(a.push(s),s=""),f("OPEN")){g=v();var b=f("NAME")||"",w=f("PATTERN")||"",S=v();h("CLOSE"),a.push({name:b||(w?u++:""),pattern:b&&!w?i:w,prefix:g,suffix:S,modifier:f("MODIFIER")||""})}else h("END")}}return a}function s(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,u=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?u[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):u[n.name]=o(r[e],n)},s=1;s<r.length;s++)l(s);return{path:i,index:a,params:u}}}(h(e,n,t),n,t)}function c(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function f(e){return e&&e.sensitive?"":"i"}function h(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return h(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",f(n))}(e,t,n):function(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,u=n.end,l=void 0===u||u,s=n.encode,h=void 0===s?function(e){return e}:s,v="["+c(n.endsWith||"")+"]|$",y="["+c(n.delimiter||"/#?")+"]",p=a?"^":"",d=0,g=e;d<g.length;d++){var m=g[d];if("string"==typeof m)p+=c(h(m));else{var b=c(h(m.prefix)),w=c(h(m.suffix));if(m.pattern)if(t&&t.push(m),b||w)if("+"===m.modifier||"*"===m.modifier){var S="*"===m.modifier?"?":"";p+="(?:"+b+"((?:"+m.pattern+")(?:"+w+b+"(?:"+m.pattern+"))*)"+w+")"+S}else p+="(?:"+b+"("+m.pattern+")"+w+")"+m.modifier;else p+="("+m.pattern+")"+m.modifier;else p+="(?:"+b+w+")"+m.modifier}}if(l)o||(p+=y+"?"),p+=n.endsWith?"(?="+v+")":"$";else{var x=e[e.length-1],k="string"==typeof x?y.indexOf(x[x.length-1])>-1:void 0===x;o||(p+="(?:"+y+"(?="+v+"))?"),k||(p+="(?="+y+"|"+v+")")}return new RegExp(p,f(n))}(l(e,n),t,n)}(e,t,n)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var g=Array.isArray,m=function(e){return"function"==typeof e},b=Object.prototype.toString,w=function(e){return"[object Object]"===function(e){return b.call(e)}(e)},S="function"==typeof Symbol&&"symbol"===d(Symbol.toStringTag);function x(e){return e.__esModule||S&&"Module"===e[Symbol.toStringTag]}var k="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]");function A(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=void 0!==t[0]&&null!==t[0]?t[0]:{},i=1,a=t.length,u=!1;for("boolean"==typeof o&&(u=o,o=null!==(r=t[i])&&void 0!==r?r:{},i++),"object"!==d(o)&&(o={});i<a;i++)if(null!==t[i]&&void 0!==t[i]){var l=t[i];for(var s in l){var c=o[s],f=l[s];if(c!==f)if(!0===u&&f&&"object"===d(f)){var h=void 0;h=Array.isArray(f)?c&&Array.isArray(c)?c:[]:c&&"object"===d(c)?c:{},o[s]=A(u,h,f)}else void 0!==f&&(o[s]=f)}}return o}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){if("object"!==d(t))return{};for(var r in"object"!==d(e)&&(e={}),t){var o=e[r],i=t[r];if(o!==i)if("object"===d(i)){if(!Array.isArray(i)&&!w(i))continue;o=R(o,i,n),e[r]=o}else{if("function"==typeof i)continue;e[r]=i}}var a,u=Object.getOwnPropertySymbols(t),l=y(u);try{for(l.s();!(a=l.n()).done;){var s=a.value,c=e[s],f=t[s];if(c!==f)if("object"===d(f)){if(!Array.isArray(f)&&!w(f))continue;c=R(c,f,n),e[s]=c}else{if("function"==typeof f)continue;e[s]=f}}}catch(e){l.e(e)}finally{l.f()}}else A(!0,e,t);return e}var j,O,P,C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n;return t=e,n=[{key:"get",value:function(){var t=++e.seed;return t>=Number.MAX_VALUE&&(e.seed=0),t}}],null&&v(t.prototype,null),n&&v(t,n),e}();j=C,O="seed",P=(new Date).getTime(),O in j?Object.defineProperty(j,O,{value:P,enumerable:!0,configurable:!0,writable:!0}):j.seed=P;var E=k?Promise.resolve():null;function T(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];null!==E?n&&n.length>0?E.then((function(){e(n)})):E.then(e):n&&n.length>0?setTimeout((function(){e(n)})):setTimeout(e)}function q(e){return null!=e&&("boolean"==typeof e?e:"string"==typeof e?"true"===e.toLocaleLowerCase():Boolean(e))}var _={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function F(e){var t=Object.prototype.toString.call(e);return null==e?String(e):_[t]||"object"}function I(e){return e&&"object"===d(e)&&"setInterval"in e}function M(e){var t=!!e&&"length"in e&&e.length,n=F(e);return"function"!==n&&!I(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function N(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t;return null!=e&&(M(Object(e))?N(n,"string"==typeof e?[e]:e):n.push(e)),n}function D(e,t,n){if(M(e))Reflect.apply([].forEach,e,[t]);else for(var r in e)if(n&&e.hasOwnProperty(r)){if(!1===Reflect.apply(t,e,[e[r]]))break}else if(!1===Reflect.apply(t,e,[e[r]]))break;return e}function $(e,t){if(e==t)return!0;if(void 0===e||void 0===t)return!1;var n=F(e);if(n!==F(t))return!1;if("object"===n){var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++){var a=r[i];if(!$(e[a],t[a]))return!1}return!0}if("array"===n){if(e.length!==t.length)return!1;for(var u=0;u<e.length;u++)if(!$(e[u],t[u]))return!1;return!0}return!1}var L=function e(t){var n,r={},o=y(Reflect.ownKeys(t));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t[i];a&&!Array.isArray(a)&&"object"===d(a)&&(a=e(a)),"symbol"===d(i)?r[String(i)]=a:r[i]=a}}catch(e){o.e(e)}finally{o.f()}return r},U=/^Symbol\((.*)\)$/,B=function e(t){var n,r={},o=y(Reflect.ownKeys(t));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t[i];a&&!Array.isArray(a)&&"object"===d(a)&&(a=e(a));var u=U.exec(i);u&&u[1]?r[Symbol.for(u[1])]=a:r[i]=a}}catch(e){o.e(e)}finally{o.f()}return r},H="default",J=Symbol("sync"),W=Symbol("resolveRoute");function z(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Reflect.apply(e,{},r)}}}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function X(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),e}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z,ee,te,ne=function e(t,n,r,o){Y(this,e),Q(this,"rootIndex",0),this.name=t,this.level=n,this.rootName=r,this.rootIndex=o},re=function(){function e(t,n){Y(this,e),Q(this,"data",{}),this.to=t,this.from=n}return X(e,null,[{key:"from",value:function(t){var n,r=new e(t.to,t.from),o=null!==(n=t.data)&&void 0!==n?n:{};return A(!0,r.data,o),r}},{key:"clear",value:function(e){for(var t in e)e[t]=void 0}}]),e}(),oe=function(){function e(){Y(this,e)}return X(e,[{key:"fullPath",get:function(){var e,t,n=null!==(e=this.path)&&void 0!==e?e:"/".concat(this.name);return"".concat(null!==(t=this.root)&&void 0!==t?t:H,"!").concat(n)}}],[{key:"clone",value:function(t,n){var r=new e;return R(r,t,n),r}},{key:"isSame",value:function(e,t){return!(e!==t&&(null==e||null==t||e.path&&e.path!==t.path||e.name&&e.name!==t.name||e.root!==t.root||e.index!==t.index))}},{key:"isSameForRouteModel",value:function(e,t){return!(e!==t&&(null==e||null==t||e.path&&e.path!=t.path||e.name&&e.name!=t.name))}},{key:"from",value:function(t){var n=new e;if(null==t)return n;var r=n;for(var o in t){var i=t[o];r[o]=i}var a=Object.getOwnPropertySymbols(t);if(Array.isArray(a)&&a.length>0){var u,l=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(a);try{for(l.s();!(u=l.n()).done;){var s=u.value;r[s]=t[s]}}catch(e){l.e(e)}finally{l.f()}}return n}}]),e}(),ie=function(){function e(t,n,r,o){Y(this,e),this.id=C.get(),this.name=t,this.src=n,"function"!=typeof n&&(this.component=n),this.props=r,this.meta=o}return X(e,[{key:"isResolved",get:function(){return void 0!==this.component}},{key:"resolve",value:function(){return t=(e=this).src,new Promise((function(n,r){var o,i=z((function(t){x(t)&&(t=t.default),e.component=t,n()})),a=z((function(e){var t="failed to resolve async component ".concat(e);r(t)}));try{o=t(i,a)}catch(e){a(e)}if(o)if("function"==typeof o.then)o.then(i,a);else{var u=o.component;u&&"function"==typeof u.then&&u.then(i,a)}}));var e,t}}]),e}(),ae=function e(){Y(this,e),Q(this,"models",[])},ue=function e(){Y(this,e),Q(this,"layers",[])};!function(e){e[e.Push=0]="Push",e[e.Replace=1]="Replace",e[e.Put=2]="Put",e[e.Append=3]="Append",e[e.Open=4]="Open"}(Z||(Z={})),function(e){e[e.Part=0]="Part",e[e.All=1]="All"}(ee||(ee={}));var le=Symbol("valueKey"),se=Symbol("pvds"),ce=Symbol("sk");function fe(e,t,n,r){var o=e[se];if(o||(o=e[se]=new Map),r){var i=o.get(r);i||(i=new Map,o.set(r,i)),i.set(t,n)}else o.set(t,n)}function he(e,t,n){for(var r=e.$vnode?e.$vnode.data:{},o=r[ce],i=e.$parent;i&&i._routerRoot!==i;){var a=i[se];if(a){if(o){var u=a.get(o);if(u&&u.has(t))return u.get(t)}if(a.has(t))return a.get(t)}var l=(r=i.$vnode?i.$vnode.data:{})[ce];void 0!==l&&(o=l),i=i.$parent}return n}function ve(e,t){if(t){var n=e[se];n&&n&&n.has(t)&&n.delete(t)}else Reflect.deleteProperty(e,se)}function ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pe(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),e}function de(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me=Symbol("rootKey"),be=Symbol("rootNodeKey"),we=Symbol("parentNodeKey"),Se=Symbol("nameKey"),xe=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];de(this,e),ge(this,"active",!0),ge(this,"index",0),this.route=t,this.model=n,this.index=r,this.active=o},ke=function(){function e(t,n,r){de(this,e),ge(this,be,null),ge(this,we,null),this[Se]=t,this[me]=n,r&&(this[be]=r)}return pe(e,[{key:"slots",get:function(){return null==this._slots&&(this._slots=function(e){if(te){var t={};return te.util.defineReactive(t,"value",[],void 0,!0),t}var n={};return Reflect.defineProperty(n,"value",{get:function(){return n[le]},set:function(e){return n[le]=e}}),n}()),this._slots}},{key:"empty",get:function(){return null==this._slots||0==this._slots.value.length}},{key:"name",get:function(){return this[Se]}}]),e}(),Ae=function(){function e(t,n,r){de(this,e),this.view=t,this.index=n,this.level=r}return pe(e,null,[{key:"include",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.view===t.view&&(-1==t.index||r.index===t.index)&&r.level===t.level)return!0}return!1}}]),e}(),Re=function e(){de(this,e),ge(this,"views",[])},je=function e(){de(this,e),ge(this,"layers",[])};function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ee,Te,qe=function e(){Ce(this,e)},_e=function(){function e(){Ce(this,e),Pe(this,"forbidTime",300),Pe(this,"submitRecorder",new qe)}var t,n;return t=e,(n=[{key:"isSameRoute",value:function(e,t){return null!=e&&null!=t&&e.name===t.name&&e.path===t.path&&e.root===t.root}},{key:"acquire",value:function(e){var t=(new Date).getTime();if(!(this.isSameRoute(e,this.submitRecorder.route)&&this.submitRecorder.time&&t-this.submitRecorder.time<=this.forbidTime))return this.submitRecorder.route=e,this.submitRecorder.time=t,t;this.submitRecorder.time=t}},{key:"release",value:function(e){this.submitRecorder.time===e&&(this.submitRecorder.route=void 0)}}])&&Oe(t.prototype,n),e}(),Fe="undefined"!=typeof window,Ie=function(){return window},Me=function(){return window.document};function Ne(){if(!Fe)return"/";var e,t,n=Ie().location;return"".concat(n.protocol,"//").concat(n.host)+((t=(e=n.pathname).lastIndexOf("/"))>0&&t<e.length-1?e=e.substring(0,t+1):0===t&&-1!==e.indexOf(".")?e="/":-1===t&&(e=-1==e.indexOf(".")?"/".concat(e,"/"):"/"),0!==e.indexOf("/")&&(e="/".concat(e)),e)}function Ke(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on".concat(t),n):e["on".concat(t)]=n}function De(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent?e.detachEvent("on".concat(t),n):e["on".concat(t)]=null}function $e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Ne(),function(e){e[e.Loading=0]="Loading",e[e.Loaded=1]="Loaded",e[e.Defining=2]="Defining",e[e.Defined=3]="Defined"}(Ee||(Ee={})),function(e){e[e.normal=0]="normal",e[e.factory=1]="factory"}(Te||(Te={}));var Le,Ue=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"register",new Map)}var t,n;return t=e,(n=[{key:"get",value:function(e){var t;return null!==(t=this.register.get(e))&&void 0!==t?t:null}},{key:"set",value:function(e,t){this.register.set(e,t)}},{key:"remove",value:function(e){var t=this.register.get(e);return this.register.delete(e),null!=t?t:null}},{key:"has",value:function(e){return this.register.has(e)}},{key:"clear",value:function(){this.register.clear()}}])&&$e(t.prototype,n),e}();function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e){return function(e){if(Array.isArray(e))return Je(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function We(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ze(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Busy="Busy",e.Free="Free",e.Reject="Reject",e.Exception="Exception",e.Finished="Finished"}(Le||(Le={}));var Ge=Symbol("chainKey"),Xe=Symbol("cursorKey"),Ye=Symbol("$persistentModeKey"),Qe=Symbol("statusKey"),Ze=Symbol("argsKey"),et=Symbol("exArgsKey"),tt=Symbol("successFnsKey"),nt=Symbol("errorFnsKey"),rt=Symbol("sessionKey"),ot=Symbol("_go"),it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];We(this,e),Ve(this,Ge,[]),Ve(this,Xe,0),Ve(this,Ye,!1),Ve(this,Qe,Le.Free),Ve(this,Ze,[]),Ve(this,et,[]),Ve(this,tt,[]),Ve(this,nt,[]),this[rt]=t,this[Ye]=n}var t,n;return t=e,(n=[{key:"session",get:function(){return this[rt]}},{key:ot,value:function(e){var t=this,n=this[Qe];this[Qe]=Le.Busy,this[Xe]+=e,this[Xe]<0&&(this[Xe]=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];if(this[Ze]=o,n===Le.Exception||n===Le.Reject){var a=function(){for(var e=[{session:t[rt]}].concat(He(t[et]));t[nt].length>0;)try{!function(){var n=t[nt].shift();"function"==typeof n&&T((function(){Reflect.apply(n,{},e)}))}()}catch(e){console.error(e.message,e)}return t[Qe]=n,t[Ge]=[],t[Xe]=0,{v:t}}();if("object"===Be(a))return a.v}else if(n===Le.Finished||this[Xe]>=this[Ge].length){var u=function(){for(var e=[{session:t[rt]}].concat(He(t[Ze])),n=function(){var n=t[tt].shift();"function"==typeof n&&T((function(){Reflect.apply(n,{},e)}))};t[tt].length>0;)n();return t[Qe]=Le.Free,{v:t}}();if("object"===Be(u))return u.v}if(this[Xe]>=this[Ge].length)return this[Qe]=Le.Free,this;var l=this[Ge][this[Xe]];this[Ye]||(this[Ge].splice(0,this[Xe]+1),this[Xe]=-1);var s=this[Xe]+1;try{var c=!1,f={go:function(e){if(!c){c=!0;for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t[ot],t,[e].concat(r))}},resolve:function(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Reflect.apply(t[ot],t,[1].concat(n))}},reject:function(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];Reflect.apply(t.reject,t,[].concat(n))}},insert:function(e){c||(t[Ge].splice(s,0,e),s++)},session:this[rt]};T((function(){Reflect.apply(l,{},[f].concat(He(t[Ze])))}))}catch(e){this.throw(e)}return this}},{key:"go",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(this[ot],this,[e].concat(n))}},{key:"finish",value:function(){this[Qe]=Le.Finished;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[Ze]=t,Reflect.apply(this[ot],this,[0])}},{key:"reject",value:function(){this[Qe]=Le.Reject;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[et]=t,Reflect.apply(this[ot],this,[0])}},{key:"throw",value:function(){this[Qe]=Le.Exception;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this[et]=t,Reflect.apply(this[ot],this,[0])}},{key:"reset",value:function(){var e=this;this[Qe]=Le.Busy;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this[Ze]=n,this[Ge]=[],this[Xe]=0;for(var o={session:this[rt]},i=[o].concat(He(this[Ze])),a=function(){var t=e[tt].shift();T((function(){Reflect.apply(t,e,i)}))};this[tt].length>0;)a();return this[Qe]=Le.Free,this}},{key:"post",value:function(e){return this[Qe]===Le.Reject||this[Qe]===Le.Exception||(Array.isArray(e)?this[Ge]=[].concat(He(this[Ge]),He(e)):this[Ge].push(e),this[Qe]===Le.Busy||Reflect.apply(this[ot],this,[0].concat(He(this[Ze])))),this}},{key:"wait",value:function(e,t){return e&&"function"==typeof e&&this[tt].push(e),t&&"function"==typeof t&&this[nt].push(t),this[Qe]===Le.Busy||Reflect.apply(this[ot],this,[0].concat(He(this[Ze]))),this}},{key:"exception",value:function(e){return e&&"function"==typeof e&&this[nt].push(e),this[Qe]===Le.Busy?this:Reflect.apply(this[ot],this,[0].concat(He(this[Ze])))}},{key:"isFinish",value:function(){return this[Qe]==Le.Reject||this[Qe]==Le.Free&&this[Xe]>=this[Ge].length}}])&&ze(t.prototype,n),e}();function at(e){return(at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function st(e,t,n){return t&<(e.prototype,t),n&<(e,n),e}function ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ft=function(){function e(){ut(this,e),ct(this,"moduleManager",new Ue),ct(this,"options",{paths:{},alias:{},nature:[],timeout:3e3})}return st(e,[{key:"paths",get:function(){return this.options.paths},set:function(e){this.options.paths=e}},{key:"alias",get:function(){return this.options.alias},set:function(e){this.options.alias=e}},{key:"naturePaths",get:function(){return this.options.nature},set:function(e){this.options.nature=e}},{key:"timeout",get:function(){return this.options.timeout},set:function(e){this.options.timeout=e}},{key:"query",get:function(){return this._query},set:function(e){this._query=e}},{key:"head",get:function(){return Me().head}},{key:"setModule",value:function(e,t){var n={id:e,src:"",status:Ee.Defined};"function"==typeof t?(n.exports=t,n.type=Te.factory):n.exports=t,this.moduleManager.set(e,n)}},{key:"removeModule",value:function(e){this.moduleManager.remove(e)}},{key:"ensure",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=[],o=t.length-1,i={};"object"===at(t[o])&&(Object.assign(i,t[o]),o--);var a=null;"function"==typeof t[o]&&(a=t[o],o--);for(var u=0;u<=o;u++)if(Array.isArray(t[u]))for(var l=t[u],s=0;s<l.length;s++)l[s]&&r.push(this.resolvePath(l[s]));else if("string"==typeof t[u])for(var c=t[u].split(","),f=0;f<c.length;f++)c[f]&&r.push(this.resolvePath(c[f]));for(var h=new vt(r.length,(function(e,t){if(h.isOK())try{"function"==typeof a&&Reflect.apply(a,{},t)}catch(e){console.error(e.message,e)}else try{console.error(e),"function"==typeof a&&Reflect.apply(a,{},[])}catch(e){console.error(e.message,e)}})),v=new it,y=0;y<r.length;y++){var p=new yt(y,r[y],i,h);this.mount(v,p)}return this}},{key:"remove",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=[],i=n.length-1,a={};"object"===at(n[i])&&(Object.assign(a,n[i]),i--);var u=null;"function"==typeof n[i]&&(u=n[i],i--);for(var l=0;l<=i;l++)if(Array.isArray(n[l]))for(var s=n[l],c=0;c<s.length;c++)s[c]&&o.push(this.resolvePath(s[c]));else for(var f=n[l].split(","),h=0;h<f.length;h++)f[h]&&o.push(this.resolvePath(f[h]));return o.forEach((function(t){e.unmount(t,a)})),"function"==typeof u&&Reflect.apply(u,{},[]),this}},{key:"mount",value:function(e,t){if("exports"!==t.src)if("module"!==t.src){if(this.isNaturePath(t.src)){var n=t.params.jsPoint;return n||(n=this.head),void this.mountJS(e,t,n)}if(this.isNaturePath(t.src)){var r=t.params.cssPoint;return r||(r=this.head),void this.mountCSS(e,t,r)}var o=this.getFileNamePostfix(t.src);if("js"===o||0===o.length){var i=t.params.jsPoint;return i||(i=this.head),void this.mountJS(e,t,i)}if("css"===o){var a=t.params.cssPoint;return a||(a=this.head),void this.mountCSS(e,t,a)}}else e.post((function(e){t.progress.work(!0,t.index,"module"),e.resolve()}));else e.post((function(e){t.progress.work(!0,t.index,"exports"),e.resolve()}))}},{key:"mountCSS",value:function(e,t,n){var r=this;e.post((function(e){var o=t.src,i=r.moduleManager.get(o);if(i&&(i.status==Ee.Defined||i.status==Ee.Loaded)&&i.exports)return i.type===Te.factory&&"function"==typeof i.exports?t.progress.work(!0,t.index,i.exports()):t.progress.work(!0,t.index,i.exports),void e.resolve();var a=Me(),u=a.createElement("link");if(Reflect.has(u,"onload"))u.onload=function(){u.onload=null,u.onerror=null,t.progress.work(!0,t.index,t.src),e.resolve()},u.onerror=function(){try{n.removeChild(u)}catch(e){console.error(e.message,e)}u.onload=null,u.onerror=null,t.progress.work(!1,t.index,null),e.reject()};else{var l,s={timeout:null!==(l=r.options.timeout)&&void 0!==l?l:3e3,time:0,success:function(){t.progress.work(!0,t.index,t.src),e.resolve()},error:function(){try{n.removeChild(u)}catch(e){console.error(e.message,e)}t.progress.work(!1,t.index,null),e.resolve()}};setTimeout((function(){ht(u,s)}),1)}var c=a.getElementById(o);c&&c.parentNode&&c.parentNode.removeChild(c),u.rel="stylesheet",u.type="text/css",u.id=o,u.href=o,n.appendChild(u)}))}},{key:"mountJS",value:function(e,t,n){var r=this;e.post((function(e){var o=t.src,i=r.moduleManager.get(o);if(i&&(i.status==Ee.Defined||i.status==Ee.Loaded)){if(i.exports)return i.type===Te.factory&&"function"==typeof i.exports?t.progress.work(!0,t.index,i.exports()):t.progress.work(!0,t.index,i.exports),void e.resolve();if(document.querySelector("script[src='".concat(o)))return t.progress.work(!0,t.index,i.exports),void e.resolve()}i={id:o,src:o,status:Ee.Loading},r.moduleManager.set(o,i);var a=Me().createElement("script");if("onload"in a)a.onload=function(){a.onload=null,a.onerror=null,i.status===Ee.Loading&&(i.status=Ee.Loaded,t.progress.work(!0,t.index,o)),e.resolve()},a.onerror=function(){try{n.removeChild(a)}catch(e){console.error(e.message,e)}a.onload=null,a.onerror=null,r.moduleManager.remove(o),t.progress.work(!1,t.index,null),e.resolve()};else{var u=a;u.onreadystatechange=function(){/loaded|complete/.test(u.readyState)&&(u.onreadystatechange=null,i.status==Ee.Loading&&(i.status=Ee.Loaded,t.progress.work(!0,t.index,o)),e.resolve())}}a.defer=!0,a.src=o,Ie().define=r.createDefine(i,t),n.appendChild(a)}))}},{key:"unmount",value:function(e){var t=Me(),n=this.getFileNamePostfix(e);if("js"===n||0===n.length){var r=t.querySelector('script[src="'.concat(e,'"]'));return r&&r.parentNode&&r.parentNode.removeChild(r),void this.moduleManager.remove(e)}if("css"!==n);else{var o=t.querySelector('style[href="'.concat(e,'"]'));o&&o.parentNode&&o.parentNode.removeChild(o)}}},{key:"trimEmptyElement",value:function(e){for(var t=[],n=0;n<e.length;n++)if(void 0!==e[n]&&null!==e[n]){var r=e[n].trim();0!==r.length&&t.push(r)}return t}},{key:"createDefine",value:function(e,t){var n=this,r=function(){var r,o,i;e.status=Ee.Defining;var a=arguments.length;1===a?(i=arguments.length<=0?void 0:arguments[0],r=void 0):2===a?(i=arguments.length<=1?void 0:arguments[1],Array.isArray(arguments.length<=0?void 0:arguments[0])?(o=n.trimEmptyElement(arguments.length<=0?void 0:arguments[0]),r=void 0):o=void 0):(r=arguments.length<=0?void 0:arguments[0],o=n.trimEmptyElement(arguments.length<=1?void 0:arguments[1]),i=arguments.length<=2?void 0:arguments[2]),r&&(e.id=r,n.options.alias[r]=e.src),o&&o.length>0?n.ensure(o,(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var a=r.map((function(t){return"exports"===t?(e.exports&&"object"===at(e.exports)||(e.exports={}),e.exports):"module"===t?e:t}));if("function"==typeof i){var u=Reflect.apply(i,e,a);u&&"object"===at(u)&&(e.exports=u)}else e.exports=i;e.status=Ee.Defined,t.progress.work(!0,t.index,e.exports)})):(e.exports="function"==typeof i?Reflect.apply(i,e,[]):i,e.status=Ee.Defined,t.progress.work(!0,t.index,e.exports))};return r.amd=!0,r}},{key:"resolvePath",value:function(e){try{if("exports"===e||"module"===e)return e;if(this.isNaturePath(e))return e;e=this.parserPath(e,!0);var t=this.getFileNamePostfix(e);t=t.toLowerCase();var n=this.createSearch(this.query);return-1==e.indexOf("?")?("js"!==t&&"css"!==t&&(e+=".js"),n.length>0&&(e+="?".concat(n))):n.length>0&&(e+="&".concat(n)),e}catch(t){throw console.error("resolve path[".concat(e,"] fail"),t),t}}},{key:"createSearch",value:function(e){var t="";if(e){for(var n in e){var r="".concat(e[n]);t+="".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r),"&")}t.length>0&&(t=t.substring(0,t.length-1))}return t}},{key:"getFileNamePostfix",value:function(e){var t=e.lastIndexOf("?");-1==t&&(t=e.length);var n=e.lastIndexOf(".",t);return-1==n?"":e.substring(n+1,t)}},{key:"isNaturePath",value:function(e){if(!this.options.nature)return!1;if("function"==typeof this.options.nature)return this.options.nature(e);var t=this.options.nature;if(t&&Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(0===e.indexOf(r))return!0}return!1}},{key:"parserPath",value:function(e,t){if(0==e.indexOf("http://"))return e;if(0==e.indexOf("https://"))return e;if(0==e.indexOf("file:///"))return e;if(0==e.indexOf("/"))return"".concat(Ne()).concat(e.slice(1));if(0==e.indexOf("./"))return"".concat(Ne()).concat(e.slice(2));if(0==e.indexOf("//")){var n=Ie();return"".concat(n.location.protocol).concat(e)}if(t){var r=this.options.alias[e];if(!r){var o=e.indexOf("/");if(-1==o)r=e;else{var i=e.slice(0,o),a=this.options.paths[i];r=a?a+e.slice(o):e}}return this.parserPath(r,!1)}return"".concat(Ne()).concat(e)}}]),e}();function ht(e,t){var n=e.sheet,r=!1;if(t.isOldWebKit)n&&(r=!0);else if(n)try{n.cssRules&&(r=!0)}catch(e){"NS_ERROR_DOM_SECURITY_ERR"===e.name&&(r=!0)}setTimeout((function(){t.time+=20,r?t.success():t.timeout>t.timeout?t.error():ht(e,t)}),20)}var vt=function(){function e(t,n){ut(this,e),this.size=t,this.callback=n,this.status=!0,this.values=[],this.lastIndex=-1}return st(e,[{key:"work",value:function(e,t,n){if(this.status=e,!0===this.status&&(this.lastIndex!==t&&this.size--,this.lastIndex=t,this.values.push(n)),0===this.size||!1===this.status)try{Reflect.apply(this.callback,this,[this.status,this.values])}catch(e){console.error(e.message,e)}}},{key:"isOK",value:function(){return this.status}}]),e}(),yt=function e(t,n,r,o){ut(this,e),this.index=t,this.src=n,this.params=r,this.progress=o},pt=Symbol("_notifyChange"),dt=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.currentRoute=t,this.routes=n};function gt(e){return(gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt=Symbol("historyChangeConsumerKey"),At=Symbol("_navigateFirstRoute"),Rt=Symbol("_getRouteMark"),jt=Symbol("_getUrlSearch"),Ot=Symbol("_generateLocation"),Pt=Symbol("_setRouteMarkRecorder"),Ct=Symbol("beforeRestoreFiltersKey"),Et=Symbol("_beforeRestore"),Tt="Symbol(_fox_restore_point)";function qt(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(e,null,[].concat(n))}return e}function _t(e){if(!Array.isArray(e))return!1;if(0===e.length)return!0;var t=e[0];return!(!Reflect.has(t,"path")||!Reflect.has(t,"root"))}var Ft=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hash",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],u=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;wt(this,e),xt(this,"firstNavigate",!0),xt(this,"traceless",!1),xt(this,kt,!1),xt(this,Ct,new Array),xt(this,"backTimeout",320),this.mode=t,this.base=n,this.query=r,this.firstNavigate=o,this.historyMonitor=i,this.traceless=a,this.storage=null!=u?u:Ie().sessionStorage,this.backTimeout=null!=l?l:320}var t,n;return t=e,(n=[{key:"init",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=Ie();return"function"!=typeof this.historyChange&&(this.historyChange=function(){if("function"==typeof e[kt]){var t=e[kt]();if(e[kt]=!1,t)return}else if(!0===e[kt])return void(e[kt]=!1);if(qt(e.historyMonitor)){var r=n.history.state;e[pt](r);try{var o;if(o="string"==typeof r?JSON.parse(r):r,Array.isArray(o)&&o.length>0){var i,a=null!==(i=e[Rt]())&&void 0!==i?i:"/";e[Pt](a,o)}}catch(e){}}}),Ke(n,"popstate",this.historyChange),this.firstNavigate&&t&&this[At](),Promise.resolve()}},{key:"destroy",value:function(){this.historyChange&&De(Ie(),"popstate",this.historyChange)}},{key:Et,value:function(e,t,n,r){var o,i=mt(this[Ct]);try{for(i.s();!(o=i.n()).done;){var a=o.value;try{var u=Reflect.apply(a,{},[e,t,n,r]);if(!1===u)return u}catch(e){console.error(e.message,e)}}}catch(e){i.e(e)}finally{i.f()}return!0}},{key:"beforeRestoreEach",value:function(e){this[Ct].push(e)}},{key:"removeBeforeRestoreEach",value:function(e){var t=this[Ct].indexOf(e);return-1!==t&&(this[Ct].splice(t,1),!0)}},{key:At,value:function(){var e,t=this,n=null!==(e=this[Rt]())&&void 0!==e?e:"/",r=this.storage.getItem(Tt);if(r)try{var o=JSON.parse(r);if(o.mark===n&&Array.isArray(o.routes)&&o.routes.length>0){var i=o.routes.filter((function(e,r){return e.params=e.params?B(e.params):{},t[Et](e,r,n,o.routes)}));if(i.length>0){var a=this[jt](),u=i.length-1;return i[u].query=a||i[u].query,void this[pt](i)}}}catch(e){}var l,s=n.indexOf("!");l=-1!=s?n.substring(s+1):n;var c=new oe;c.path=l,c.query=this[jt](),this[pt]([c])}},{key:Pt,value:function(e,t){try{t.forEach((function(e){e.params=e.params?L(e.params):{}}));var n={mark:e,routes:t},r=JSON.stringify(n);this.storage.setItem(Tt,r)}catch(e){console.error(e.message,e)}}},{key:"setRestorePoint",value:function(e){var t,n=null!==(t=this[Rt]())&&void 0!==t?t:"/";this[Pt](n,e)}},{key:pt,value:function(e){"function"==typeof this.changeHandler&&this.changeHandler(e)}},{key:Rt,value:function(){var e=Ie();if("path"===this.mode){var t=e.location.pathname;return this.base&&0===t.indexOf(this.base)&&(t=t.substring(this.base.length)),t}var n=e.location.hash,r=n.indexOf("#");return-1!=r?n.substring(r+1):null}},{key:jt,value:function(){var e=Ie().location.search;return e.length>0&&0===e.indexOf("?")&&(e=e.substring(1)),e}},{key:"listen",value:function(e){this.changeHandler=e}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ie();this[kt]=t,n.history.go(e)}},{key:"goBack",value:function(e,t){var n=this,r=Ie(),o=r.history.state;if(_t(o)&&o.length>0){for(var i=!1,a=o.length-1;a>=0;a--){var u=oe.from(o[a]);if(!0!==u.traceless&&!qt(this.traceless,u)&&oe.isSame(u,e)){i=!0;break}}if(!i)return void t();var l=this.backTimeout,s=null,c=function e(){r.history.go(-1),s=setTimeout(e,l)};s=setTimeout(c,l),this.go(-1,(function r(){clearTimeout(s);var o=Ie().history.state;if(_t(o)&&o.length>0){var i=o.length,a=o[i-1],u=oe.from(a);if(oe.isSame(u,e))return t(),!0;if(i>0){for(var f=!1,h=i-1;h>=0;h--){var v=oe.from(o[h]);if(!0!==v.traceless&&!qt(n.traceless,v)&&oe.isSame(v,e)){f=!0;break}}return f?(setTimeout((function(){s=setTimeout(c,l),n.go(-1,r)}),0),!0):(t(),!0)}}return t(),!0}))}else t()}},{key:"push",value:function(e){var t=this[Ot](e.currentRoute);!0===e.currentRoute.traceless||qt(this.traceless,e.currentRoute)||Ie().history.pushState(e.routes,"",t);var n=e.currentRoute.fullPath;this[Pt](n,e.routes)}},{key:"replace",value:function(e){var t=this[Ot](e.currentRoute);!0===e.currentRoute.traceless||qt(this.traceless,e.currentRoute)||Ie().history.replaceState(e.routes,"",t);var n=e.currentRoute.fullPath;this[Pt](n,e.routes)}},{key:Ot,value:function(e){var t,n=Ie(),r="";if(e.query){var o="";if("object"===gt(e.query)){var i,a=mt(Reflect.ownKeys(e.query));try{for(a.s();!(i=a.n()).done;){var u=i.value,l=encodeURIComponent(e.query[u]),s="".concat(encodeURIComponent(String(u)),"=").concat(l);o.length>0&&(o+="&"),o+=s}}catch(e){a.e(e)}finally{a.f()}}else o=e.query;this.query?(r=o.length>0?"".concat(this.query,"&").concat(o):this.query).length>0&&"?"!==r.charAt(0)&&(r="?".concat(r)):o.length>0&&(r="?".concat(o))}var c,f=n.location,h=null!==(t=e.alias)&&void 0!==t?t:e.fullPath;return h.startsWith(H)&&(h=h.substring(H.length+1)),c=r?"path"==this.mode?0===h.indexOf("/")?"".concat(this.base).concat(h).concat(r):"".concat(this.base,"/").concat(h).concat(r):"".concat(f.pathname).concat(r,"#").concat(h):"path"==this.mode?0===h.indexOf("/")?"".concat(this.base).concat(h):"".concat(this.base,"/").concat(h):"".concat(f.pathname,"#").concat(h),"".concat(f.origin).concat(c)}}])&&St(t.prototype,n),e}();function It(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return null!==n&&(n=Ie().location.pathname),n&&n.endsWith("/")&&(n=n.substring(0,n.length-1)),new Ft("path",null!==(e=n)&&void 0!==e?e:"",r,t,o,i,a)}function Mt(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return new Ft("hash","",t,e,n,r,o)}function Nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $t=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;Nt(this,e),Dt(this,"maxSize",50),Dt(this,"cursor",-1),Dt(this,"queue",[]),Dt(this,"historyMonitor",!1),Dt(this,"traceless",!1),this.base=t,this.maxSize=n}var t,n;return t=e,(n=[{key:"init",value:function(){return Promise.resolve()}},{key:"destroy",value:function(){this.queue=[]}},{key:"beforeRestoreEach",value:function(e){}},{key:"removeBeforeRestoreEach",value:function(e){return!1}},{key:"listen",value:function(e){this.changeHandler=e}},{key:pt,value:function(e){"function"==typeof this.changeHandler&&this.changeHandler(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0!=this.queue.length&&!(this.cursor<=0)){var n=this.cursor+e;if(n<0?n=0:n>this.queue.length-1&&(n=this.queue.length-1),n!=this.cursor&&(this.cursor=n,!("function"==typeof t?t():t))){var r=this.queue[n];this[pt](r.routes)}}}},{key:"goBack",value:function(e,t){if(0!=this.queue.length&&!(this.cursor<=0)){var n=0;if(null===e)n=this.cursor+1;else for(var r=this.cursor;r>=0;r--){n++;var o=this.queue[r];if(oe.isSameForRoute(o.currentRoute,e))break}this.go(-n,(function(){return t(),!0}))}}},{key:"push",value:function(e){this.queue.length>=this.maxSize&&this.queue.splice(0,1),this.queue.push(e),this.cursor=this.queue.length-1}},{key:"replace",value:function(e){var t=this.queue.length-this.cursor;this.queue.splice(this.cursor,t),this.queue[this.cursor]=e}},{key:"setRestorePoint",value:function(e){}}])&&Kt(t.prototype,n),e}();function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return new $t(e,t)}function Ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(n),!0).forEach((function(t){Gt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ht(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Wt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Jt(e){return function(e){if(Array.isArray(e))return zt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Wt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wt(e,t){if(e){if("string"==typeof e)return zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zt(e,t):void 0}}function zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){return(Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Yt=Symbol("_constructRouteModel"),Qt=Symbol("_findRouteModel"),Zt=Symbol("_findRootView"),en=Symbol("_getFirstView"),tn=Symbol("_removeView"),nn=Symbol("_buildPage"),rn=Symbol("_resolveComponent"),on=Symbol("_update"),an=Symbol("_merge"),un=Symbol("_handleHistoryChange"),ln=Symbol("_handleRouteUpdated"),sn=Symbol("routeUpdatedCallback"),cn=Symbol("currentRoutes"),fn=Symbol("routeSessionCacheKey"),hn=Symbol("_addRouteRecorder"),vn=Symbol("_removeRouteRecorder"),yn=Symbol("_cloneRouteRecorder"),pn=Symbol("_handleError"),dn=Symbol("errorCallback"),gn=Symbol("registerKey"),mn=Symbol("notFoundKey"),bn=Symbol("notFoundPathKey"),wn=Symbol("forestKey"),Sn=Symbol("historyKey"),xn=Symbol("beforeFiltersKey"),kn=Symbol("afterFiltersKey"),An=Symbol("destroyFiltersKey"),Rn=Symbol("mainDispatcherKey"),jn=Symbol("initKey"),On=Symbol("requireKey"),Pn=Symbol("readyKey"),Cn=Symbol("readyHandlersKey"),En=Symbol("_markReady"),Tn=Symbol("_createNextFn"),qn=Symbol("_start"),_n=Symbol("_before"),Fn=Symbol("_after"),In=Symbol("_destroy"),Mn=Symbol("_load"),Nn=Symbol("_unload"),Kn=Symbol("_loadDependency"),Dn=Symbol("resolvedModulesKey"),$n=Symbol("resolveDependencyKey"),Ln=Symbol("routerGuardKey");Symbol.for("loadViewModel");var Un=function(){function e(t){var n,r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Gt(this,gn,new Array),Gt(this,bn,"*"),Gt(this,Pn,!1),Gt(this,Cn,[]),Gt(this,wn,new je),Gt(this,cn,new Array),Gt(this,fn,new WeakMap),Gt(this,dn,null),Gt(this,sn,null),Gt(this,xn,new Array),Gt(this,kn,new Array),Gt(this,An,new Array),Gt(this,Rn,new it),Gt(this,Dn,new Map),Gt(this,Ln,new _e),Gt(this,jn,!1),Gt(this,On,null),this.options=null!=t?t:{},this.options.notFoundPath&&this.setNotFoundPath(this.options.notFoundPath);var o=this.options.routes||[];this.addRoutes(o),this.options.notFound&&this.setNotFoundRoute(this.options.notFound),t.history?this[Sn]=t.history:this[Sn]=Fe?Mt():Lt(),null===(n=this[Sn])||void 0===n||n.listen((function(e){var t=null;if("string"==typeof e){var n=r[W](e);n&&(t=r[un]([n]))}else t=r[un](e);t&&t.then((function(){!1===r[Pn]&&r[En](!0)})).catch((function(){!1===r[Pn]&&r[En](!1)}))}))}var t,n;return t=e,(n=[{key:"require",get:function(){return Fe?(this[On]||(this[On]=new ft),this[On]):null}},{key:"current",get:function(){var e=this[cn].length;return e>0?this[cn][e-1]:null}},{key:"setHistoryMode",value:function(e){var t,n=this;if(!this[Pn]){if(this[Sn])try{this[Sn].destroy()}catch(e){console.error(e.message,e)}for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];this[Sn]="path"===e?Reflect.apply(It,null,[].concat(o)):"memory"===e?Reflect.apply(Lt,null,[].concat(o)):Reflect.apply(Mt,null,[].concat(o)),null===(t=this[Sn])||void 0===t||t.listen((function(e){var t=null;if("string"==typeof e){var r=n[W](e);r&&(t=n[un]([r]))}else t=n[un](e);t&&t.then((function(){!1===n[Pn]&&n[En](!0)})).catch((function(){!1===n[Pn]&&n[En](!1)}))}))}}},{key:pn,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"error",t=arguments.length>1?arguments[1]:void 0;if(t&&"function"==typeof t.error)try{t.error(e)}catch(e){}if(this[dn])try{this[dn](e,t)}catch(e){}console.error(e)}},{key:"init",value:function(){var e;!0!==this[jn]&&(null===(e=this[Sn])||void 0===e||e.init(!this[Pn]),this[jn]=!0)}},{key:"isReady",value:function(){var e=this;return this[Pn]?Promise.resolve():new Promise((function(t,n){e[Cn].push([t,n])}))}},{key:En,value:function(e){this[Pn]=!0,this[Cn].forEach((function(t){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||Wt(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];try{e?i():a()}catch(e){console.error(e.message,e)}}))}},{key:un,value:function(e){try{if(!e){var t=Jt(this[cn]).reverse();return this[Nn](t),Fe&&Ie().location.reload(),Promise.resolve()}for(var n=null,r=[],o=[],i=0;i<e.length&&i<this[cn].length&&oe.isSame(e[i],this[cn][i]);i++)!0===e[i].active&&e[i].active!==this[cn][i].active&&(n=e[i]);if(i<e.length&&(r=e.slice(i)),i<this[cn].length&&(o=this[cn].slice(i).reverse()),0===o.length&&0===r.length){if(null!==n)return this.restore([n])}else{if(!(o.length>0))return this.restore(r);if(this[Nn](o)){if(r.length>0)return this.restore(r);if(null!==n)return this.restore([n])}}}catch(e){this[pn](e)}return Promise.resolve()}},{key:ln,value:function(e){if(e||(e=this.current),"function"==typeof this[sn])try{this[sn](e)}catch(e){}}},{key:hn,value:function(e,t){if(e.opsType===Z.Open){for(var n=!1,r=this[cn].length-1;r>=0;r--){var o=this[cn][r];e.root==o.root&&(e.path!==o.path?e.active&&(o.active=!1):(this[cn].splice(r,1,e),n=!0))}n||this[cn].push(e)}else this[cn].push(e);this[fn].set(e,t)}},{key:yn,value:function(){var e,t=[],n=Ht(this[cn]);try{for(n.s();!(e=n.n()).done;){var r=e.value,o=oe.clone(r,!0);t.push(o)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:vn,value:function(e){if(null!=this[cn]){for(var t=-1,n=0;n<this[cn].length;n++)if(oe.isSame(this[cn][n],e)){t=n;break}if(-1!=t){var r=this[cn][t];this[cn].splice(t,1);var o=this[fn].get(r);this[fn].delete(r),this[In](r,o)}}}},{key:"historyMonitor",set:function(e){this[Sn]&&(this[Sn].historyMonitor=e)}},{key:"historyMonitor",get:function(){return!!this[Sn]&&this[Sn].historyMonitor}},{key:"traceless",set:function(e){this[Sn]&&(this[Sn].traceless=e)}},{key:"traceless",get:function(){return!!this[Sn]&&this[Sn].traceless}},{key:"setRestorePoint",value:function(){var e,t=this[yn]();null===(e=this[Sn])||void 0===e||e.setRestorePoint(t)}},{key:"onRouteUpdated",value:function(e){this[sn]=e}},{key:"onError",value:function(e){this[dn]=e}},{key:"beforeEach",value:function(e){this[xn].push(e)}},{key:"afterEach",value:function(e){this[kn].push(e)}},{key:"destroyEach",value:function(e){this[An].push(e)}},{key:"beforeRestoreEach",value:function(e){this[Sn].beforeRestoreEach(e)}},{key:"removeBeforeRestoreEach",value:function(e){return this[Sn].removeBeforeRestoreEach(e)}},{key:"setResolveDependency",value:function(e){this[$n]=e}},{key:"addRoutes",value:function(e){var t,n=Ht(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.addRoute(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"addRoute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(e.path!==this[bn]){var n=this[Yt](e);if(-1==t)this[gn]=[].concat(Jt(this[gn]),Jt(n));else for(var r=n.length-1;r>=0;r--)this[gn].splice(t,0,n[r])}else this.setNotFoundRoute(e)}},{key:"removeRoute",value:function(e){var t=this[W](e);if(null===t)return console.warn("route格式错误",e),!1;for(var n=0;n<this[gn].length;n++){var r=this[gn][n];if(null!=t&&t.path&&r.path===t.path)return this[gn].splice(n,1),!0;if(null!=t&&t.name&&r.name===t.name)return this[gn].splice(n,1),!0}return!1}},{key:"hasRoute",value:function(e){var t=this[W](e);return null===t?(console.warn("route格式错误",e),!1):-1!==this[gn].findIndex((function(e){return!(null==t||!t.path||e.path!==t.path)||!(null==t||!t.name||e.name!==t.name)||void 0}))}},{key:"setNotFoundPath",value:function(e){this[bn]=e}},{key:"setNotFoundRoute",value:function(e){var t=this[Yt](e);this[mn]=t[0]}},{key:"getRoutes",value:function(){return Jt(this[gn])}},{key:Yt,value:function(e){var t,n=null!==(t=e.path)&&void 0!==t?t:"";n.length>0&&"/"!==n.charAt(0)&&(n="/".concat(n));var r=e.components||e.component&&{"":e.component};if(null==r){var o=new ue;return o.path=n,o.redirect=e.redirect,[o]}var i=[];for(var a in r){var u=r[a];0===a.length&&(a=H);var l=new ie(a,u,e.props,e.meta);i.push(l)}var s=!1,c=[];if(e.children){var f,h=Ht(e.children);try{for(h.s();!(f=h.n()).done;){var v,y=f.value,p=Ht(this[Yt](y));try{for(p.s();!(v=p.n()).done;){var d=v.value,g=new ue;g.name=d.name,d.path&&d.path.length>0?g.path="".concat(n).concat(d.path):(s=!0,g.path=n);var m=new ae;m.models=[].concat(i),g.layers=[m].concat(Jt(d.layers)),c.push(g)}}catch(e){p.e(e)}finally{p.f()}}}catch(e){h.e(e)}finally{h.f()}}if(!s){var b=new ae;b.models=i;var w=new ue;w.name=e.name,w.path=n,w.layers=[b],c.splice(0,0,w)}return c}},{key:Qt,value:function(e){var t,n=e.route;try{var r,o=Ht(this[gn]);try{for(o.s();!(r=o.n()).done;){var i,a,u=r.value,c=null!==(i=n.template)&&void 0!==i?i:n.path,h=null!==(a=n.template)&&void 0!==a?a:n.name;if(c&&u.path){var v,y=u.match;y||(y=u.match=s(u.path));var p=y(c);if(!p)continue;if(u.redirect){var d=new oe;A(!0,d,n),d.path=u.redirect;var g={route:d,find:void 0};return!!this[Qt](g)&&(e.route=g.route,e.find=g.find,n.template&&e.find&&(e.find=Bt({},e.find),e.find.path=n.path),!0)}if(n.params=null!==(v=n.params)&&void 0!==v?v:{},A(!0,n.params,p.params),n.query){var m=n.query;if("string"==typeof m){var b,w={},S=Ht(m.split("&"));try{for(S.s();!(b=S.n()).done;){var x=b.value.split("=");if(2===x.length){var k=decodeURIComponent(x[0].trim()),R=decodeURIComponent(x[1].trim());w[k]=R}}}catch(e){S.e(e)}finally{S.f()}A(!0,n.params,w)}else"object"===Xt(m)&&A(!0,n.params,m)}return e.find=u,n.template&&e.find&&(e.find=Bt({},e.find),e.find.path=n.path),!0}if(h===u.name){var j;n.params=null!==(j=n.params)&&void 0!==j?j:{};var O=function(e,t){void 0===t&&(t={});var n=f(t),r=t.encode,o=void 0===r?function(e){return e}:r,i=t.validate,a=void 0===i||i,u=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i){var l=t?t[i.name]:void 0,s="?"===i.modifier||"*"===i.modifier,c="*"===i.modifier||"+"===i.modifier;if(Array.isArray(l)){if(!c)throw new TypeError('Expected "'+i.name+'" to not repeat, but got an array');if(0===l.length){if(s)continue;throw new TypeError('Expected "'+i.name+'" to not be empty')}for(var f=0;f<l.length;f++){var h=o(l[f],i);if(a&&!u[r].test(h))throw new TypeError('Expected all "'+i.name+'" to match "'+i.pattern+'", but got "'+h+'"');n+=i.prefix+h+i.suffix}}else if("string"!=typeof l&&"number"!=typeof l){if(!s){var v=c?"an array":"a string";throw new TypeError('Expected "'+i.name+'" to be '+v)}}else{if(h=o(String(l),i),a&&!u[r].test(h))throw new TypeError('Expected "'+i.name+'" to match "'+i.pattern+'", but got "'+h+'"');n+=i.prefix+h+i.suffix}}else n+=i}return n}}(l(u.path,t=void 0),t);return n.path=O(n.params),e.find=u,n.template&&e.find&&(e.find=Bt({},e.find),e.find.name=n.name),!0}}}catch(e){o.e(e)}finally{o.f()}}catch(e){console.error(e.message,e),"function"==typeof n.error&&n.error(e.message)}return!1}},{key:W,value:function(e){var t=null;if(Array.isArray(e))if(t=new oe,"object"===Xt(e[0]))t=oe.from(e[0]);else for(var n=0;n<e.length;n++)0===n?"/"===e[n].charAt(0)?t.path=e[n]:t.name=e[n]:1===n?t.params=e[n]:2===n?t.root=e[n]:3===n&&A(!1,t,e[n]);else"object"===Xt(e)?t=oe.from(e):"string"==typeof e&&(t=new oe,"/"==e.charAt(0)?t.path=e:t.name=e);if(t){var r,o,i;if(t.path){var a=t.path.indexOf("?");-1!==a&&a<t.path.length-1&&(t.query=t.path.substring(a+1),t.path=t.path.substring(0,a))}t.root=null!==(r=t.root)&&void 0!==r?r:H,t.opsType=null!==(o=null!==(i=t.opsType)&&void 0!==i?i:this.options.defaultOperationType)&&void 0!==o?o:Z.Push}return t}},{key:"push",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[W](t);return r?(r.opsType=r.opsType||Z.Push,this.to(r)):(this[pn]("resolve route fail",r),this)}},{key:"put",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[W](t);return r?(r.opsType=Z.Put,r.traceless=!0,this.to(r)):(this[pn]("resolve route fail",r),this)}},{key:"replace",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[W](t);return r?(r.opsType=Z.Replace,this.to(r)):(this[pn]("resolve route fail",r),this)}},{key:"append",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[W](t);return r?(r.opsType=Z.Append,this.to(r)):(this[pn]("resolve route fail",r),this)}},{key:"remove",value:function(e,t){var n=this;return new Promise((function(r){n[Rn].post((function(o){try{if(0===n[cn].length)return o.resolve(),void r(!1);var i,a=-1,u=[];if(e){var l;if(i=e.root?e.root:null!==(l=n[cn][0].root)&&void 0!==l?l:H,e.all)for(var s=n[cn].length-1;s>0;s--){var c=n[cn][s];c.opsType===Z.Append&&c.root===i&&(u.splice(0,0,c),a=s-1)}else if(e.until)for(var f=n[cn].length-1;f>0;f--){var h=n[cn][f];if(h.opsType===Z.Append&&h.root===i){if("/"===e.until.charAt(0)&&e.until===h.path){a=f;break}if(e.until===h.name){a=f;break}u.splice(0,0,h)}}}else{i=H;var v=n[en](n[wn]);v&&(i=v.name);for(var y=n[cn].length-1;y>0;y--){var p=n[cn][y];if(p.opsType===Z.Append&&p.root===i){u.push(p),a=y-1;break}}}if(0===u.length){var d="can not find route";return console.warn(d),o.resolve(d),void r(!1)}var g=null;if(-1!==a&&(g=n[cn][a]),n[Nn](u)){if(!1===t)return o.resolve(),r(!0),!0;var m,b=function(){return o.resolve(),r(!0),!0},w=n[cn].length;if(g&&oe.isSame(g,n[cn][w-1]))return void(null===(m=n[Sn])||void 0===m||m.goBack(g,b));b()}}catch(e){n[pn](e),o.resolve(),r(!1)}}))}))}},{key:"open",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=this[W](t);return r?(r.opsType=Z.Open,this.to(r)):(this[pn]("resolve route fail",r),this)}},{key:"close",value:function(e){var t=this;return this[Rn].post((function(n){try{var r=t[W](e);if(!r)return void n.reject("resolve route fail");for(var o=[],i=0;i<t[cn].length;i++){var a=t[cn][i];if(a.root===r.root)if(r.path||r.name){if(r.path&&r.path===a.path){o.push(a);break}if(r.name&&r.name===a.name){o.push(a);break}}else o.push(a)}if(0===o.length)return void n.resolve();t[Nn](o)&&t[ln](),n.resolve()}catch(e){n.resolve(),t[pn](e.message)}})),this}},{key:"to",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=this[W](n);if(!o)return this[pn]("resolve route fail",o),this;var i=this[Ln].acquire(o);return null==i?(this[pn]("route forbid",o),this):(this[Rn].post((function(t){try{var n,r=e[qn](o);e[_n](r),null!==(n=r.session)&&void 0!==n&&n.routeModel||!e[$n]||e[Kn](r),e[Mn](r),e[Fn](r),r.wait((function(n,a){var u=n.session.to;if(n.session.updateResult&&"success"===n.session.updateResult.status)try{var l,s,c=oe.clone(u,!0),f=new dt(c,e[yn]());u.opsType===Z.Replace?null===(l=e[Sn])||void 0===l||l.replace(f):null===(s=e[Sn])||void 0===s||s.push(f)}catch(e){console.error(e.message,e)}if(re.clear(n.session),e[Ln].release(i),e[ln](u),"function"==typeof o.success)try{Reflect.apply(o.success,{},[])}catch(e){console.error(e.message,e)}!1===e[Pn]&&e[En](!0),r=null,t.resolve()}),(function(n,a){e[Ln].release(i),null!==a&&e[pn](a,o),!1===e[Pn]&&e[En](!1),re.clear(n.session),r=null,t.resolve()}))}catch(n){e[Ln].release(i),e[pn](n,o),t.resolve()}})),this)}},{key:"back",value:function(e){var t;null===(t=this[Sn])||void 0===t||t.go(-e)}},{key:Tn,value:function(e){var t=this;return function(n,r){if("boolean"==typeof n)n?e.resolve():e.reject(null!=r?r:null);else if(n){var o=t[W](n);if(o){var i=e.session.to;o.success=i.success,o.error=i.error,e.session.to=o,e.session.routeModel=null,e.resolve()}else e.reject("route resolve fail")}else e.resolve()}}},{key:qn,value:function(e){var t,n=this[cn].length>0?this[cn][0]:void 0,r=new re(e,n),o={route:e,find:null};return this[Qt](o),o.find&&(r.routeModel=o.find,e.matched=(t=[],o.find.layers.forEach((function(e){null!=e.models&&null!=e.models&&e.models.forEach((function(e){if(null!=e&&null!=e)if("object"===Xt(e.meta)){var n=A(!0,{},e.meta);t.push(n)}else e.meta&&t.push(e.meta)}))})),t),Array.isArray(e.matched)&&e.matched.length>0&&(e.meta=o.find.layers[0].models[0].meta)),new it(r)}},{key:_n,value:function(e){var t,n=this,r=Ht(this[xn]);try{var o=function(){var r=t.value;e.post((function(e){var t=n[Tn](e);Reflect.apply(r,{},[e.session.to,e.session.from,t,e.session])}))};for(r.s();!(t=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}},{key:Fn,value:function(e){var t=this;e.post((function(e){var n,r=Ht(t[kn]);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{Reflect.apply(o,{},[e.session.to,e.session.from,e.session])}catch(e){console.error(e.message,e)}}}catch(e){r.e(e)}finally{r.f()}e.resolve()}))}},{key:In,value:function(e,t){var n,r=Ht(this[An]);try{for(r.s();!(n=r.n()).done;){var o=n.value;try{Reflect.apply(o,{},[e,t])}catch(e){console.error(e.message,e)}}}catch(e){r.e(e)}finally{r.f()}"function"==typeof e.destroy&&Reflect.apply(e.destroy,e,[])}},{key:Kn,value:function(e){var t=this,n=e.session,r=Reflect.apply(this[$n],this,[null==n?void 0:n.to]);if(null!=r&&null!=r){Array.isArray(r)||(r=[r]);var o,i=[],a=Ht(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;this[Dn].has(u)||i.push(u)}}catch(e){a.e(e)}finally{a.f()}0!==i.length&&e.post((function(e){t[On].ensure(i,(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];if(r){for(var a=0,u=r;a<u.length;a++){var l=u[a];if(l){var s=void 0;s=x(l)?l.default:l,Array.isArray(s)&&t.addRoutes(s)}}var c,f=Ht(i);try{for(f.s();!(c=f.n()).done;){var h=c.value;t[Dn].set(h,!0)}}catch(e){f.e(e)}finally{f.f()}e.resolve()}else e.reject()}))}))}}},{key:Mn,value:function(e){var t=this;e.post((function(e){var n=e.session.to,r=e.session.routeModel;if(null==r){var o={route:n,find:null};if(t[Qt](o))r=o.find,e.session.routeModel=r;else{if(!t[mn])return void e.reject("not find route model");r=t[mn]}}var i=re.from(e.session);t[nn](n,r,i).then((function(n){t[wn],e.session.updateResult=null!=n?n:{status:"success",message:""},e.resolve()}),(function(t){e.reject(t)}))}))}},{key:Nn,value:function(e){if(0==e.length)return!0;var t,n=this[wn],r=[],o=Ht(e);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=this[Zt](n,i);null!=a&&r.push(Bt(Bt({},a),{},{route:i}))}}catch(e){o.e(e)}finally{o.f()}if(0==r.length)return this[pn]("can not find view index"),!1;var u,l=Ht(r.reverse());try{for(l.s();!(u=l.n()).done;){var s,c=u.value;this[tn](n,{x:c.x,y:c.y},[null!==(s=c.route.index)&&void 0!==s?s:0],!0)}}catch(e){l.e(e)}finally{l.f()}return!0}},{key:Zt,value:function(e,t){for(var n,r=null!==(n=t.root)&&void 0!==n?n:H,o=0;o<e.layers.length;o++)for(var i=e.layers[o],a=i.views.length-1;a>=0;a--){var u=i.views[a];if(u[me]&&u[Se]===r)return{x:a,y:o}}return null}},{key:en,value:function(e){return e.layers.length>0&&e.layers[0].views.length>0?e.layers[0].views[0]:null}},{key:tn,value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!(t.y>=e.layers.length||t.x>=e.layers[t.y].views.length)){for(var o=e.layers[t.y].views[t.x],i=!1,a=[],u=!1,l=o.slots.value,s=l.length-1;s>=0;s--){var c=l[s];null!=n&&-1==n.indexOf(c.index)||(c.route&&o[me]&&(this[vn](c.route),!0===c.active&&c.route.opsType==Z.Append&&(u=!0)),a.push(new Ae(o,c.index,t.y)),l.splice(s,1))}if(0==l.length)r?o.slots.value=Jt(l):e.layers[t.y].views.splice(t.x,1);else{if(u){var f=l.length-1,h=l[f];h.active=!0,h.route&&(h.route.active=h.active)}o.slots.value=Jt(l)}0==e.layers[t.y].views.length&&(i=!0);for(var v=t.y+1;v<e.layers.length;v++){for(var y=e.layers[v].views,p=[],d=y.length-1;(i||a.length>0)&&d>=0;d--){var g=y[d];if(g[we]&&(i||Ae.include(a,g[we]))){for(var m=g.slots.value,b=m.length-1;b>=0;b--){var w=m[b];w.route&&g[me]&&this[vn](w.route),p.push(new Ae(g,w.index,v)),m.splice(b,1)}e.layers[v].views.splice(d,1)}}a=p,0==e.layers[v].views.length&&(i=!0)}}}},{key:"restore",value:function(e){var t=this;if(e&&0!=this[gn].length)return new Promise((function(n,r){for(var o=function(n){var r=e[n];t[Rn].post((function(e){var n,o=t[qn](r);t[_n](o),null!==(n=o.session)&&void 0!==n&&n.routeModel||!t[$n]||t[Kn](o),t[Mn](o),t[Fn](o),o.wait((function(t,n){e.resolve()}),(function(n,r){null!==r&&t[pn](r),e.resolve()}))}))},i=0;i<e.length;i++)o(i);t[Rn].post((function(e){e.resolve(),n()}))}));var n=this[wn];if(n.layers.length>0){var r=n.layers[0].views;r.length>0&&(r[0].slots.value=[])}return this[cn]=[],this[ln](),Promise.resolve()}},{key:nn,value:function(e,t,n){var r,o=this,i=null!==(r=e.updateType)&&void 0!==r?r:ee.Part;return this[rn](t).then((function(){var r=o[on](t,e,n,i);if("error"===r.status)throw Error(r.message);return r}))}},{key:rn,value:function(e){for(var t=[],n=0;n<e.layers.length;n++)for(var r=e.layers[n],o=0;o<r.models.length;o++){var i=r.models[o];i.isResolved||t.push(i.resolve())}return t.length>0?Promise.all(t):Promise.resolve()}},{key:on,value:function(e,t,n,r){var o;if(1!==e.layers[0].models.length)return{status:"error",message:"illegal route structure(multi root node)"};var i,a,u,l=e.layers[0].models[0],s=this[wn],c=function(e){return 0==e.layers.length||0==e.layers[0].views.length}(s),f=null!==(o=t.root)&&void 0!==o?o:H;if(c||r!=ee.Part||(i=this[Zt](s,t)),null==i||null==i)if(c||r===ee.All){if(0==s.layers.length&&(s.layers[0]=new Re),0==s.layers[0].views.length){var h,v=null!==(h=t.root)&&void 0!==h?h:H;a=new ke(v,!0,null),s.layers[0].views=[a]}else a=s.layers[0].views[0];i={x:0,y:0}}else{var y=t.slot;if(!y)return{status:"error",message:"can not rebuild view(because not route slot)"};var p,d=y.level;if(d>s.layers.length)return{status:"error",message:"can not insert view(override level)"};if(y.rootName){var g,m=Ht(s.layers[d-1].views);try{for(m.s();!(g=m.n()).done;){var b=g.value;if(b[me]&&b.name===y.rootName){var w;p=new Ae(b,null!==(w=y.rootIndex)&&void 0!==w?w:0,d-1);break}if(b[be]&&b[be].view.name===y.rootName&&b[be].index===y.rootIndex){p=b[be];break}}}catch(e){m.e(e)}finally{m.f()}}if(!p)return{status:"error",message:"can not insert view(not find root node ref)"};a=new ke(f,!0,p),s.layers[d].views.push(a),i={x:s.layers[d].views.length-1,y:d}}else a=s.layers[i.y].views[i.x];if(u=i.y,a[me]=!0,t.opsType===Z.Append){var S;t.index=null!==(S=t.index)&&void 0!==S?S:C.get(),t.active=!0;var x=a.slots.value;if(x.length>0){var k=x[x.length-1];k.active=!1,k.route&&(k.route.active=k.active)}var A=new xe(t,l,t.index,!0);a.slots.value=[].concat(Jt(x),[A]);var R=u+1,j=new Ae(a,t.index,u);this[an](s,R,e,1,j)}else if(t.opsType===Z.Open){var O,P,E=a.slots.value,T=null===(O=t.active)||void 0===O||O,q=!1,_=Ht(E);try{for(_.s();!(P=_.n()).done;){var F=P.value;if(null!==F.route&&oe.isSameForRouteModel(F.route,t)){if(F.active===T)return t.index=F.index,t.active=T,F.route=t,{status:"no-change",message:""};F.active=T,q=!0,t.index=F.index,t.active=T,F.route=t}else T&&(F.active=!1);F.route&&(F.route.active=F.active)}}catch(e){_.e(e)}finally{_.f()}if(!q){var I;t.index=null!==(I=t.index)&&void 0!==I?I:C.get(),t.active=T;var M=new xe(t,l,t.index,T);E.push(M);var N=u+1,K=new Ae(a,t.index,u);this[an](s,N,e,1,K)}a.slots.value=Jt(E)}else{var D=a.slots.value;if(0==D.length){var $;t.index=null!==($=t.index)&&void 0!==$?$:C.get(),t.active=!0,a.slots.value=[new xe(t,l,t.index)];var L=u+1,U=new Ae(a,t.index,u);this[an](s,L,e,1,U)}else{var B=D[0];if(B.model!==l){var J;this[tn](s,i,null,!0),t.index=null!==(J=t.index)&&void 0!==J?J:C.get(),t.active=!0,a.slots.value=[new xe(t,l,t.index)];var W=u+1,z=new Ae(a,t.index,u);this[an](s,W,e,1,z)}else{var V;null!==B.route&&this[vn](B.route);var G=!1,X=null===(V=t.active)||void 0===V||V;B.active!==X&&(B.active=X,G=!0),t.active=X,t.index=B.index,B.route=t;for(var Y=[],Q=1;Q<D.length;Q++)Y.push(D[Q].index);Y.length>0?this[tn](s,i,Y,!0):G&&(a.slots.value=Jt(D));for(var te=[new Ae(a,t.index,u)],re=u+1,ie=1,ae=new Ae(a,t.index,u);te.length>0&&re<s.layers.length&&ie<e.layers.length;re++,ie++){for(var ue=[],le=0;le<s.layers[re].views.length;le++){var se=s.layers[re].views[le];se[we]&&Ae.include(te,se[we])&&ue.unshift(le)}for(var ce=[],fe=0,he=ue;fe<he.length;fe++){for(var ve=he[fe],ye=s.layers[re].views[ve],pe=e.layers[ie].models,de=void 0,ge=0;ge<pe.length;ge++)if(ye.name===pe[ge].name){de=pe[ge];break}if(de){var Se=ye.slots.value;if(0==Se.length){ye.slots.value=[new xe(null,de,0)];var je=re+1,Oe=ie+1;this[an](s,je,e,Oe,ae)}else{var Pe=Se[0];if(Pe.model!==de){this[tn](s,{x:ve,y:re},null,!0),ye.slots.value=[new xe(null,de,0)];var Ce=re+1,Ee=ie+1;this[an](s,Ce,e,Ee,ae)}else{ye[me]&&null!==Pe.route&&this[vn](Pe.route);for(var Te=[],qe=1;qe<Se.length;qe++)Te.push(Se[qe].index);Te.length>0&&this[tn](s,{x:ve,y:re},Te,!0),ce.push(new Ae(ye,Pe.index,re))}}ye[me]=!1}else this[tn](s,{x:ve,y:re},null,!1)}te=ce}this[an](s,re,e,ie,ae)}}}if(a&&a[be]){var _e,Fe=a[be];Fe&&(t.slot=new ne(f,u,null==Fe?void 0:Fe.view.name,null!==(_e=null==Fe?void 0:Fe.index)&&void 0!==_e?_e:0))}return n.to=void 0,n.routeModel=void 0,this[hn](t,n),{status:"success",message:""}}},{key:an,value:function(e,t,n,r,o){for(var i=r,a=t;a<e.layers.length&&i<n.layers.length;a++,i++){var u,l=e.layers[a].views,s=Ht(n.layers[i].models);try{for(s.s();!(u=s.n()).done;){var c=u.value,f=new ke(c.name,!1,o),h=new xe(null,c);f.slots.value=[h],l.push(f)}}catch(e){s.e(e)}finally{s.f()}}for(;i<n.layers.length;i++){var v=new Re;v.views=[];var y,p=Ht(n.layers[i].models);try{for(p.s();!(y=p.n()).done;){var d=y.value,g=new ke(d.name,!1,o),m=new xe(null,d);g.slots.value=[m],v.views.push(g)}}catch(e){p.e(e)}finally{p.f()}e.layers.push(v)}}},{key:J,value:function(e,t,n,r,o,i){if(t<0||t>this[wn].layers.length)return null;if(t<this[wn].layers.length){var a,u=null,l=Ht(this[wn].layers[t].views);try{for(l.s();!(a=l.n()).done;){var s,c,f=a.value,h=!1;if(null!==n?(h=f.name===e&&(null===(s=f[be])||void 0===s?void 0:s.view)===n)&&-1!==r&&(h=(null===(c=f[be])||void 0===c?void 0:c.index)===r):h=f.name===e,h){null!==o&&(f[we]={view:o,index:i,level:t-1}),u=f;break}}}catch(e){l.e(e)}finally{l.f()}if(null!==u)return u}var v=null,y=null;null!==o&&(v=o[me]?{view:o,index:i,level:t-1}:o[be],y={view:o,index:i,level:t-1});var p=new ke(e,!0,v);if(p[we]=y,t==this[wn].layers.length){var d=new Re;d.views=[p],this[wn].layers.push(d)}else this[wn].layers[t].views.push(p);return p}}])&&Vt(t.prototype,n),e}(),Bn="fox-router-view";function Hn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Jn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wn(e){return(Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showClass)&&void 0!==t?t:e.enterClass)||((r=e.transitionName)?"".concat(r,n?"-show":"-enter"):null)}function Vn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showActiveClass)&&void 0!==t?t:e.enterActiveClass)||((r=e.transitionName)?"".concat(r,n?"-show-active":"-enter-active"):null)}function Gn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.showToClass)&&void 0!==t?t:e.enterToClass)||((r=e.transitionName)?"".concat(r,n?"-show-to":"-enter-to"):null)}function Xn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideClass)&&void 0!==t?t:e.leaveClass)||((r=e.transitionName)?"".concat(r,n?"-hide":"-leave"):null)}function Yn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideActiveClass)&&void 0!==t?t:e.leaveActiveClass)||((r=e.transitionName)?"".concat(r,n?"-hide-active":"-leave-active"):null)}function Qn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null;return(r=n&&null!==(t=e.hideToClass)&&void 0!==t?t:e.leaveToClass)||((r=e.transitionName)?"".concat(r,n?"-hide-to":"-leave-to"):null)}function Zn(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.beforeShow)&&void 0!==t?t:e.beforeEnter}function er(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.show)&&void 0!==t?t:e.enter}function tr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.afterShow)&&void 0!==t?t:e.afterEnter}function nr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.showCancelled)&&void 0!==t?t:e.enterCancelled}function rr(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.hide)&&void 0!==t?t:e.leave}function or(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.afterHide)&&void 0!==t?t:e.afterLeave}function ir(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n&&null!==(t=e.hideCancelled)&&void 0!==t?t:e.leaveCancelled}function ar(e){var t,n,r,o,i,a=e.duration;return"object"==Wn(a)?t={enter:null!==(n=a.enter)&&void 0!==n?n:-1,leave:null!==(r=a.leave)&&void 0!==r?r:-1,show:null!==(o=a.show)&&void 0!==o?o:-1,hide:null!==(i=a.hide)&&void 0!==i?i:-1}:("string"==typeof a&&(a=0==a.length?-1:Number(a)),t={enter:a,leave:a,show:a,hide:a}),t}function ur(e,t){e.classList.contains(t)||e.classList.add(t)}function lr(e,t){e.classList.remove(t)}var sr=Fe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function cr(e){sr(e)}function fr(e,t,n){m(t)&&(null==e&&(e={}),Reflect.apply(t,e,n))}function hr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=[],s=function(){var e,n=Hn(l);try{for(n.s();!(e=n.n()).done;){var r=e.value;De(t,r.type,r.listener)}}catch(e){n.e(e)}finally{n.f()}l=[]};if(m(i)){if(void 0!==o&&o>=0)return void setTimeout((function(){Reflect.apply(i,e,[t,n,r]),m(u)&&Reflect.apply(u,e,[])}),o);var c=["animationend","transitionend"],f=function(o){s(),Reflect.apply(i,e,[t,n,r]),u&&Reflect.apply(u,e,[])};c.forEach((function(e){Ke(t,e,f),l.push({type:e,listener:f})}))}if(m(a)){var h="animationcancel",v=function(o){s(),Reflect.apply(a,e,[t,n,r])};Ke(t,h,v),l.push({type:h,listener:v})}}function vr(e){return null!==e&&(e.opsType===Z.Append||e.opsType===Z.Open)}function yr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;if(t||vr(o)){var a=zn(r,t);a&&ur(n,a);var u=Vn(r,t);u&&ur(n,u);var l=Zn(r,t);fr(e,l,[n,t,o,i])}}function pr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;if(vr(i)||t){var l=zn(r,t),s=Vn(r,t),c=Gn(r,t),f=er(r,t),h=tr(r,t),v=nr(r,t);l||s||c||f?cr((function(){hr(e,n,i,a,o,(function(){s&&lr(n,s),c&&lr(n,c),m(h)&&fr(e,h,[n,t,i,a]),m(u)&&u(e,u,[n])}),(function(){m(v)&&fr(e,v,[n,t,i,a])})),l&&lr(n,l),c&&ur(n,c),m(f)&&fr(e,f,[n,t,i,a])})):m(u)&&u(e,u,[n])}else m(u)&&u(e,u,[n])}function dr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;if(!vr(a)&&!t)return m(l)&&fr(e,l,[n]),void(!t&&m(i)&&i());var s=Xn(r,t),c=Yn(r,t),f=Qn(r,t),h=rr(r,t),v=or(r,t),y=ir(r,t);if(!(s||c||f||h))return m(l)&&fr(e,l,[n]),void(!t&&m(i)&&i());s&&ur(n,s),c&&ur(n,c),m(h)&&fr(e,h,[n,t,a,u]),cr((function(){hr(e,n,a,u,o,(function(){c&&lr(n,c),f&&lr(n,f),m(v)&&fr(e,v,[n,t,a,u]),m(l)&&fr(e,l,[n]),!t&&m(i)&&i()}),(function(){m(y)&&fr(e,y,[n,t,a,u]),m(l)&&fr(e,l,[n]),!t&&m(i)&&i()})),s&&lr(n,s),f&&ur(n,f)}))}function gr(e){return e.elm}function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(e){return function(e){if(Array.isArray(e))return xr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sr(e,t){if(e){if("string"==typeof e)return xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xr(e,t):void 0}}function xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kr=Symbol("ruvc"),Ar=Symbol("cvs");function Rr(e,t,n){return"function"==typeof e?Reflect.apply(e,{},[t,n]):e}function jr(e,t){if(e.componentOptions&&e.componentOptions.Ctor&&e.componentOptions.Ctor.extendOptions){var n=e.componentInstance||e,r=[];if(e.fnOptions&&e.fnOptions[t]){var o=e.fnOptions[t];Array.isArray(o)?r=wr(o):"function"==typeof o&&(r=[o])}if(e.componentOptions.Ctor&&e.componentOptions.Ctor.extendOptions){var i=e.componentOptions.Ctor.extendOptions[t];Array.isArray(i)?r=[].concat(wr(r),wr(i)):"function"==typeof i&&(r=[].concat(wr(r),[i]))}return function(e){r.forEach((function(e){Reflect.apply(e,n,[])}))}}return function(){}}var Or=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),br(this,"node",void 0),br(this,"state",void 0),this.node=t,this.state=n},Pr={functional:!0,props:{name:{type:String,required:!1,default:"default"},passProps:{type:Object,required:!1},modelSlot:{type:[Object],required:!1},multi:{type:Boolean,default:!1},transition:{type:[Boolean,String,Function],required:!1},tag:{type:[String,Function,Object],required:!1,default:"div"},tagProps:{type:[Object,Function],required:!1,default:function(){return{}}},viewTag:{type:[String,Function,Object],required:!1,default:"div"},viewTagData:{type:[Object,Function],required:!1,default:function(){return{}}},viewTagProps:{type:[Object,Function],required:!1,default:function(){return{}}},viewTagAttrs:{type:[Object,Function],required:!1,default:function(){return{}}},viewClass:{type:[String,Function],required:!1},viewActiveClass:{type:[String,Function],required:!1},viewDeactiveClass:{type:[String,Function],required:!1},viewInactiveClass:{type:[String,Function],required:!1},transitionName:{type:String,required:!1},enterClass:{type:String,required:!1},enterActiveClass:{type:String,required:!1},enterToClass:{type:String,required:!1},leaveClass:{type:String,required:!1},leaveActiveClass:{type:String,required:!1},leaveToClass:{type:String,required:!1},showClass:{type:String,required:!1},showActiveClass:{type:String,required:!1},showToClass:{type:String,required:!1},hideClass:{type:String,required:!1},hideActiveClass:{type:String,required:!1},hideToClass:{type:String,required:!1},beforeEnter:{type:Function,required:!1},enter:{type:Function,required:!1},afterEnter:{type:Function,required:!1},enterCancelled:{type:Function,required:!1},beforeLeave:{type:Function,required:!1},leave:{type:Function,required:!1},afterLeave:{type:Function,required:!1},leaveCancelled:{type:Function,required:!1},beforeShow:{type:Function,required:!1},show:{type:Function,required:!1},afterShow:{type:Function,required:!1},showCancelled:{type:Function,required:!1},beforeHide:{type:Function,required:!1},hide:{type:Function,required:!1},afterHide:{type:Function,required:!1},hideCancelled:{type:Function,required:!1},duration:{type:[Number,Object],required:!1}},render:function(e,t){var l,s=t,c=t.parent.$createElement,f=t.parent.$router,h=t.props,v=h.name,y=h.multi,p=t.data,d=(l=t.parent)[kr]||(l[kr]={}),g=he(t.parent,r,0),b=he(t.parent,o,null),w=he(t.parent,i,-1),S=h.modelSlot;if(S){var x=v;fe(t.parent,r,g+1,x),fe(t.parent,i,S.index,x),fe(t.parent,u,S.index,x);var k=S.route;k&&fe(t.parent,n,k,x);var R,j=br({attrs:{}},ce,x);if(S.model.props)if("object"===mr(S.model.props))Object.assign(j.attrs,S.model.props);else if(!0===S.model.props&&"object"===mr(null===(R=S.route)||void 0===R?void 0:R.params)){var O;Object.assign(j.attrs,null===(O=S.route)||void 0===O?void 0:O.params)}return c(S.model.component,j,t.children)}if(null==f)return console.error("router is not been register"),c();var P=he(t.parent,a,null),C=he(t.parent,u,0),E=f[J](v,g,b,w,P,C);if(null===E)return ve(t.parent),c();if(fe(t.parent,a,E),!0===E[me]&&fe(t.parent,o,E),y){var q=d[Ar];q||(q=d[Ar]=new Map);for(var _=new Map,F=[],I=E.slots.value,M=[],N=function(e){var t,n,r,o=I[e],i="".concat(h.name,"-").concat(o.index),a=null===(t=Rr(h.transition,o.route,e))||void 0===t||t,u=c(Bn,{props:{name:i,modelSlot:o}}),l={},f=Rr(h.viewClass,o.route,e);"string"==typeof f&&f.length>0&&(l[f]=!0);var v=Rr(h.viewActiveClass,o.route,e),y=Rr(null!==(n=h.viewInactiveClass)&&void 0!==n?n:h.viewDeactiveClass,o.route,e),p=q.get(i);if("string"==typeof v&&v.length>0&&(l[v]=o.active),"string"==typeof y&&y.length>0&&(l[y]=!o.active),p&&o.active!==p.state){var d=p.node;if(o.active){var g=null;d&&d.children&&d.children.length>0&&(g=jr(d.children[0],"activated")),M.unshift((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=gr(t);if(null!=u)if(i){var l=ar(n);yr(e,!0,u,n,r,o),pr(e,!0,u,n,l.show,r,o,(function(e){m(a)&&a("from enter")}))}else m(a)&&a();else m(a)&&a()}(s,d,h,o.route,e,a,g)}))}else{if(d&&d.children&&d.children.length>0){var b=jr(d.children[0],"deactivated");try{T(b)}catch(e){console.error(e)}}M.push((function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=gr(t);null!=u&&i?dr(e,!0,u,n,ar(n).hide,null,r,o,(function(e){m(a)&&a("from leave")})):m(a)&&a()}(s,d,h,o.route,e,a)}))}}var w={class:l,key:i},S=null!==(r=Rr(h.viewTagData,o.route,e))&&void 0!==r?r:{};null!==S&&"object"===mr(S)&&A(!0,w,S);var x=Rr(h.viewTagProps,o.route,e);null!==x&&"object"===mr(x)&&(w.props=A(!0,{},x));var k=Rr(h.viewTagAttrs,o.route,e);null!==k&&"object"===mr(k)&&(w.attrs=A(!0,{},k)),o.route.viewTagAttrs&&"object"===mr(o.route.viewTagAttrs)&&(w.attrs?Object.assign(w.attrs,o.route.viewTagAttrs):w.attrs=o.route.viewTagAttrs);var R=Rr(h.viewTag,o.route,e),j=c(R,w,[u]);if(_.set(i,new Or(j,o.active)),a){var O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,i=ar(n);return{create:function(e,t){var a=gr(t);yr(e,!1,a,n,r,o),pr(e,!1,a,n,i.enter,r,o)},activate:function(e,t){var a=gr(t);yr(e,!1,a,n,r,o),pr(e,!1,a,n,i.enter,r,o)},remove:function(e,a){dr(e,!1,gr(e),n,i.leave,a,r,o,(function(){t&&t.data&&(t.data.hook=null),t=null}))}}}(s,j,h,o.route,e);j.data.hook=O}F.push(j)},K=0;K<I.length;K++)N(K);var D,$=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Sr(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(q.keys());try{for($.s();!(D=$.n()).done;){var L=D.value;_.has(L)||ve(t.parent,L)}}catch(e){$.e(e)}finally{$.f()}d[Ar]=_,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cr((function(){for(var n=function(n){T((function(){Reflect.apply(e[n],t,[])}))},r=0;r<e.length;r++)n(r)}))}(M,s);var U=Rr(h.tag,null,-1),B={};for(var H in p)"props"!==H&&(B[H]=p[H]);var W=Rr(h.tagProps,null,-1);return null!==W&&"object"===mr(W)&&(B.props=W),c(U,B,F)}fe(t.parent,i,-1),fe(t.parent,r,g+1),fe(t.parent,u,-1);var z=E.slots.value;if(z.length>0){var V=z[0],G=V.route;G?fe(t.parent,n,G):b&&b.slots.value.length>0&&(G=b.slots.value[0].route,fe(t.parent,n,G));var X=br({},ce,"");for(var Y in p)"props"!==Y&&(X[Y]=p[Y]);null!==X.attrs&&"object"===mr(X.attrs)||(X.attrs={});var Q,Z=V.model;if(Z.props)if("object"===mr(Z.props))Object.assign(X.attrs,Z.props);else if(!0===Z.props&&"object"===mr(null===(Q=V.route)||void 0===Q?void 0:Q.params)){var ee;Object.assign(X.attrs,null===(ee=V.route)||void 0===ee?void 0:ee.params)}return null!==h.passProps&&"object"===mr(h.passProps)&&Object.assign(X.attrs,h.passProps),c(Z.component,X,[])}}};function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Er,Tr={name:"RouterLink",props:{tag:{type:[String],default:"a"},to:{type:[String,Object],required:!0},activeClass:String,exact:Boolean,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t,n,r=this.$router,o=this.$route,i={},a=r.options.linkActiveClass,u=r.options.linkExactActiveClass,l=null==a?"fox-router-link-active":a,s=null==u?"fox-router-link-exact-active":u,c=null==this.activeClass?l:this.activeClass,f=null==this.exactActiveClass?s:this.exactActiveClass;i[f]=(t=o,n=this.to,!!t&&("object"===Cr(n)?n.path?t.path===n.path:t.name===n.name:"/"===n.charAt(0)?t.path===n:t.name===n)),i[c]=this.exact?i[f]:function(e,t){return!!e&&("object"===Cr(t)?t.path?0===e.path.indexOf(t.path):e.name===t.name:"/"===t.charAt(0)?0===e.path.indexOf(t):e.name===t)}(o,this.to);var h=r[W](this.to),v=function(e){qr(e)&&r.to(h)},y={click:qr};Array.isArray(this.event)?this.event.forEach((function(e){y[e]=v})):y[this.event]=v;var p={class:i},d="#".concat(h.path);if("a"===this.tag)p.on=y,p.attrs={href:d};else{var g=_r(this.$slots.default);if(g){g.isStatic=!1;var m=g.data=extend({},g.data);for(var b in m.on=m.on||{},m.on){var w=m.on[b];b in y&&(m.on[b]=Array.isArray(w)?w:[w])}for(var S in y)S in m.on?m.on[S].push(y[S]):m.on[S]=v;(g.data.attrs=extend({},g.data.attrs)).href=d}else p.on=y}return e(this.tag,p,this.$slots.default)}};function qr(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function _r(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=_r(t.children)))return t}}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(e){e[e.limitless=0]="limitless",e[e.once=1]="once"}(Er||(Er={}));var Mr=Symbol("registerKey"),Nr=function e(t,n){Ir(this,e),this.callback=t,this.policy=n},Kr=function(){function e(){Ir(this,e),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,Mr,new Map)}var t,n;return t=e,(n=[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this[Mr].get(e);r||(r=new Array,this[Mr].set(e,r));var o=!0===n?Er.once:Er.limitless,i=new Nr(t,o);return r.push(i),this}},{key:"off",value:function(e,t){if(!t)return this[Mr].delete(e),this;var n=this[Mr].get(e);if(n)for(var r=0;r<n.length;r++)if(n[r].callback===t){n.splice(r,1);break}return this}},{key:"bind",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.on(e,t,n)}},{key:"unbind",value:function(e,t){return this.off(e,t)}},{key:"once",value:function(e,t){return this.on(e,t,!0)}},{key:"all",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.length;if(o<1)return this;var i=n[o-1];if("function"!=typeof i)return console.error("callback can not benn empty"),this;for(var a=o-1,u=new Array(a),l=[].splice.call(n,0,a),s=function(t){e.once(l[t],(function(e){u[t]=e,0==(a-=1)&&Reflect.apply(i,{},u)}))},c=0;c<l.length;c++)s(c);return this}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this[Mr].get(e);if(!o)return this;for(var i=function(e){var t=o[e];if(t.policy==Er.once?o.splice(e,1):e++,"function"==typeof t.callback)try{T((function(){Reflect.apply(t.callback,{},n)}))}catch(e){console.error(e.message,e)}a=e},a=0;a<o.length;)i(a);return this}},{key:"trigger",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Reflect.apply(this.emit,this,[e].concat(n))}}])&&Fr(t.prototype,n),e}();function Dr(e){return(Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $r={type:"GET",async:!0,contentType:"application/x-www-form-urlencoded",dataType:"string",cache:!1,timeout:3e4,processData:!0};function Lr(e){var t=new XMLHttpRequest,n={};if(A(!0,n,$r),A(!0,n,e),(e=n).async)try{t.responseType=e.dataType,t.timeout=e.timeout,t.ontimeout=function(){"function"==typeof e.ontimeout?e.ontimeout(t,t.status):"function"==typeof e.error&&e.error(t,t.status)}}catch(e){console.error(e.message,e)}t.onabort=function(){"function"==typeof e.onabort?e.onabort(t,t.status):"function"==typeof e.error&&e.error(t,t.status)},t.onerror=function(){"function"==typeof e.error&&e.error(t,t.status)},t.onloadend=function(){"function"==typeof e.complete&&e.complete(t,t.status)},t.onprogress=function(){"function"==typeof e.loading&&e.loading(t)},t.onload=function(){if(0==t.status||t.status>=200&&t.status<300||304==t.status){var n,r=null!==(n=t.response)&&void 0!==n?n:"";if(0==r.length&&0==t.status)return;try{o=r,"json"===e.dataType&&"string"==typeof o&&(o=JSON.parse(o)),r=o}catch(e){console.error(e.message,e)}"function"==typeof e.success&&e.success(r,t.status,t)}else"function"==typeof e.error&&e.error(t,t.status);var o};try{var r=e.url;if(e.type&&"GET"===e.type.toUpperCase()&&(r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";if(null==t)return e;var r="";if(0===(n=n.trim().toLowerCase()).indexOf("application/x-www-form-urlencoded")||0===n.indexOf("application/json"))if("object"===Dr(t))for(var o in t){var i=t[o];if(Array.isArray(i))for(var a=0;a<i.length;a++){var u="".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i[a]));r.length>0&&(r+="&"),r+=u}else{var l="".concat(encodeURIComponent(o),"=").concat(encodeURIComponent(i));r.length>0&&(r+="&"),r+=l}}else r=t;else r=t;return r.length>0&&(e=-1===e.indexOf("?")?"".concat(e,"?").concat(r):"".concat(e,"&").concat(r)),e}(e.url,e.data,e.contentType)),t.open(e.type,r,e.async),e.contentType&&t.setRequestHeader("Content-Type",e.contentType),"function"==typeof e.beforeSend){var o={};A(!0,o,e),Reflect.apply(e.beforeSend,e,[t,o])}if(e.cache||t.setRequestHeader("Cache-Control","no-cache"),e.type&&"POST"===e.type.toUpperCase()){var i=e.processData?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text",n="";if(0===(t=t.trim().toLowerCase()).indexOf("application/x-www-form-urlencoded"))if("object"===Dr(e))for(var r in e){var o=e[r];if(Array.isArray(o))for(var i=0;i<o.length;i++){var a="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o[i]));n.length>0&&(n+="&"),n+=a}else{var u="".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(o));n.length>0&&(n+="&"),n+=u}}else n=e;else n=0===t.indexOf("text")?"object"===Dr(e)?JSON.stringify(e):e:0===t.indexOf("application/json")&&"object"===Dr(e)?JSON.stringify(e):e;return n}(e.data,e.contentType):e.data;t.send(i)}else t.send()}catch(n){"function"==typeof e.error&&e.error(t,n.message),"function"==typeof e.complete&&e.complete(t,n.message)}return t}function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Br(e,t){return(Br=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e,t){if(t&&("object"===Ur(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Jr(e){return(Jr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zr(e,t,n){return t&&Wr(e.prototype,t),n&&Wr(e,n),e}function Vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xr=Symbol("idKey"),Yr=Symbol("valueKey"),Qr=Symbol("childrenKey"),Zr=Symbol("growKey"),eo=function e(t){Vr(this,e),Gr(this,Zr,!0),Gr(this,Yr,function(e){if(te){var t={};return te.util.defineReactive(t,"value",void 0),t}var n={};return Reflect.defineProperty(n,"value",{get:function(){return n[le]},set:function(e){return n[le]=e}}),n}()),Gr(this,Qr,new Map),this[Xr]=t},to=function(){function e(){Vr(this,e)}return zr(e,[{key:"get",value:function(e,t){if("value"==t)return e[Yr].value;if("grow"===t)return e[Zr];var n=e[Qr].get(t);return n?oo(n):e[Zr]?((n=ro(t))[Zr]=e[Zr],e[Qr].set(t,n),oo(n)):void 0}},{key:"set",value:function(e,t,n){return"value"==t?(e[Yr].value=n,!0):"grow"===t?(e[Zr]=q(n),!0):null==n?(e[Qr].delete(t),!0):(console.error("illegal property:".concat(t)),!1)}},{key:"deleteProperty",value:function(e,t){return"value"===t||"grow"==t?(console.error("can not delete property:".concat(String(t))),!1):(e[Qr].delete(t),!0)}}]),e}(),no="__proxy__";function ro(e){var t=new eo(e);return Reflect.set(t,no,new Proxy(t,new to)),t}function oo(e){return Reflect.get(e,no)}var io=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Jr(t);if(n){var o=Jr(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Hr(this,e)});function o(){return Vr(this,o),r.call(this,"__root__")}return zr(o,[{key:"put",value:function(){var e=arguments.length;if(e<2)return console.error("参数至少包括一个(key, value)"),!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n],o=void 0;t[Qr].has(r)?o=t[Qr].get(r):(o=ro(r),t[Qr].set(r,o)),t=o}return t[Yr].value=e-1<0||arguments.length<=e-1?void 0:arguments[e-1],!0}},{key:"get",value:function(){var e=arguments.length;if(0!==e){for(var t=this,n=0;n<e;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Qr].has(r))return;t=t[Qr].get(r)}return t[Yr].value}}},{key:"remove",value:function(){var e=arguments.length;if(0==e)return!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Qr].has(r))return!1;t=t[Qr].get(r)}var o=e-1<0||arguments.length<=e-1?void 0:arguments[e-1];return!!t[Qr].has(o)&&(t[Qr].delete(o),!0)}},{key:"contains",value:function(){var e=arguments.length;if(0==e)return!1;for(var t=this,n=0;n<e-1;n++){var r=n<0||arguments.length<=n?void 0:arguments[n];if(!t[Qr].has(r))return!1;t=t[Qr].get(r)}var o=e-1<0||arguments.length<=e-1?void 0:arguments[e-1];return t[Qr].has(o)}},{key:"clear",value:function(){this[Qr].clear()}}]),o}(eo),ao=(Symbol("treeKey"),["put","get","contains","remove","clear"]);function uo(e){return ao.includes(e)}var lo=function(){function e(){Vr(this,e)}return zr(e,[{key:"get",value:function(e,t){if("value"==t)return e[Yr].value;if("grow"===t)return e[Zr];if(t===Qr)return e[Qr];if("string"==typeof t&&uo(t))return e[t];var n=String(t),r=e[Qr].get(n);return r?oo(r):e[Zr]?((r=ro(n))[Zr]=e[Zr],e[Qr].set(n,r),oo(r)):void 0}},{key:"set",value:function(e,t,n){return"value"==t?(e[Yr].value=n,!0):"grow"===t?(e[Zr]=q(n),!0):!uo(t)&&(null==n?(e[Qr].delete(t),!0):(console.error("illegal property:".concat(t)),!1))}},{key:"deleteProperty",value:function(e,t){return"value"===t||"grow"==t?(console.error("can not delete property:".concat(String(t))),!1):(e[Qr].delete(t),!0)}}]),e}(),so=new Proxy(io,{construct:function(e){return oo((t=new io,n=new lo,r=new Proxy(t,n),o={put:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.put,t,n)},get:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.get,t,n)},remove:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.remove,t,n)},contains:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Reflect.apply(t.contains,t,n)},clear:function(){return Reflect.apply(t.clear,t,[])}},Object.assign(o,r),Reflect.set(t,no,r),t));var t,n,r,o}}),co={get each(){return D},get type(){return F},get isFunction(){return m},get isArray(){return g},get isArrayLike(){return M},get makeArray(){return K},get merge(){return N},get isWindow(){return I},get isPlainObject(){return w},get isEqual(){return $},get isESModule(){return x}};function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){vo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Symbol("fk");var yo=new Un({}),po=new so,go=new Kr,mo=!1,bo=ho(ho({},co),{},{get router(){return yo},get bus(){return po},get Bus(){return so},get eventproxy(){return go},get EventProxy(){return Kr},get EventChain(){return it},get require(){return yo.require},get ajax(){return Lr},get extend(){return A},get clone(){return R},install:function(e){mo||(mo=!0,function(e){te=e}(e),e.component(Bn,Pr),e.component("fox-router-link",Tr),Object.defineProperty(e.prototype,"$fox",{get:function(){return this._routerRoot._fox}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Reflect.defineProperty(e.prototype,"$route",{get:function(){return he(this,n,null)}}),Reflect.defineProperty(e.prototype,"$bus",{get:function(){return this._routerRoot._fox.bus}}),e.prototype.$fox_on=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];go.on(e,t,n)},e.prototype.$fox_off=function(e,t){go.off(e,t)},e.prototype.$fox_once=function(e,t){go.once(e,t)},e.prototype.$fox_all=function(){for(var e=go,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Reflect.apply(e.all,e,n)},e.prototype.$fox_trigger=function(e){for(var t=go,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t.trigger,t,[e].concat(r))},e.prototype.$fox_emit=function(e){for(var t=go,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Reflect.apply(t.trigger,t,[e].concat(r))},e.mixin({beforeCreate:function(){this.$options.fox?(this._routerRoot=this,this._fox=this.$options.fox,this._router=this._fox.router,this._router.init()):this._routerRoot=this.$parent&&this.$parent._routerRoot||this},mounted:function(){},destroyed:function(){}}))}});return t}()}));
|