index.umd.min.js 101 KB

12
  1. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).qiankun={})}(this,(function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var o=r((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=Object.create((e&&e.prototype instanceof y?e:y).prototype),i=new A(r||[]);return o._invoke=function(t,e,n){var r=l;return function(o,i){if(r===d)throw Error("Generator is already running");if(r===h){if("throw"===o)throw i;return M()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=P(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=f(t,e,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,i),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l="suspendedStart",p="suspendedYield",d="executing",h="completed",v={};function y(){}function m(){}function w(){}var g={};c(g,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==n&&r.call(x,i)&&(g=x);var _=w.prototype=y.prototype=Object.create(g);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,i,u,a){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return u.next=u}}return{next:M}}function M(){return{value:e,done:!0}}return m.prototype=w,c(_,"constructor",w),c(w,"constructor",m),m.displayName=c(w,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},E(O.prototype),c(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new O(s(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},E(_),c(_,a,"Generator"),c(_,i,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(this.prev>=u.tryLoc){var c=r.call(u,"catchLoc"),s=r.call(u,"finallyLoc");if(c&&s){if(u.catchLoc>this.prev)return o(u.catchLoc,!0);if(u.finallyLoc>this.prev)return o(u.finallyLoc)}else if(c){if(u.catchLoc>this.prev)return o(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(u.finallyLoc>this.prev)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(this.prev>=o.tryLoc&&r.call(o,"finallyLoc")&&o.finallyLoc>this.prev){var i=o;break}}!i||"break"!==t&&"continue"!==t||i.tryLoc>e||e>i.finallyLoc||(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}})),i=o,u=r((function(t){function e(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var u=t.apply(n,r);function a(t){e(u,o,i,a,c,"next",t)}function c(t){e(u,o,i,a,c,"throw",t)}a(void 0)}))}},t.exports.default=t.exports,t.exports.__esModule=!0})),a=n(u);var c=function(){},s=r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;i.length>r;r++)0>e.indexOf(n=i[r])&&(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0})),f=r((function(t){t.exports=function(t,e){if(null==t)return{};var n,r,o=s(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;i.length>r;r++)0>e.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.default=t.exports,t.exports.__esModule=!0})),l=n(f),p=r((function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);e>n;n++)r[n]=t[n];return r},t.exports.default=t.exports,t.exports.__esModule=!0})),d=r((function(t){t.exports=function(t){if(Array.isArray(t))return p(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),h=r((function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),v=r((function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0})),y=r((function(t){t.exports=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.")},t.exports.default=t.exports,t.exports.__esModule=!0})),m=n(r((function(t){t.exports=function(t){return d(t)||h(t)||v(t)||y()},t.exports.default=t.exports,t.exports.__esModule=!0}))),w=r((function(t){function e(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=e=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),g=n(w),b=r((function(t){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0})),x=n(b),_=r((function(t){function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var n=1;arguments.length>n;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t},t.exports.default=t.exports,t.exports.__esModule=!0})),E=n(_),O=Object.freeze({__proto__:null,get start(){return ue},get ensureJQuerySupport(){return Nt},get setBootstrapMaxTime(){return ht},get setMountMaxTime(){return vt},get setUnmountMaxTime(){return yt},get setUnloadMaxTime(){return mt},get registerApplication(){return Kt},get unregisterApplication(){return Yt},get getMountedApps(){return Wt},get getAppStatus(){return qt},get unloadApplication(){return Vt},get checkActivityFunctions(){return $t},get getAppNames(){return zt},get pathToActiveWhen(){return Jt},get navigateToUrl(){return Pt},get triggerAppChange(){return ne},get addErrorHandler(){return L},get removeErrorHandler(){return F},get mountRootParcel(){return st},get NOT_LOADED(){return C},get LOADING_SOURCE_CODE(){return I},get NOT_BOOTSTRAPPED(){return R},get BOOTSTRAPPING(){return D},get NOT_MOUNTED(){return U},get MOUNTING(){return B},get UPDATING(){return H},get LOAD_ERROR(){return z},get MOUNTED(){return G},get UNMOUNTING(){return W},get SKIP_BECAUSE_BROKEN(){return q}});function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,A=function(){try{var t=new S("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}()?S:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=!!e.bubbles,n.cancelable=!!e.cancelable,n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},T=[];function M(t,e,n){var r=N(t,e,n);T.length?T.forEach((function(t){return t(r)})):setTimeout((function(){throw r}))}function L(t){if("function"!=typeof t)throw Error(k(28,!1));T.push(t)}function F(t){if("function"!=typeof t)throw Error(k(29,!1));var e=!1;return T=T.filter((function(n){var r=n===t;return e=e||r,!r})),e}function k(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];return"single-spa minified message #".concat(t,": ").concat(e?e+" ":"","See https://single-spa.js.org/error/?code=").concat(t).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function N(t,e,n){var r,o="".concat(Z(e)," '").concat(Y(e),"' died in status ").concat(e.status,": ");if(t instanceof Error){try{t.message=o+t.message}catch(t){}r=t}else{console.warn(k(30,!1,e.status,Y(e)));try{r=Error(o+JSON.stringify(t))}catch(e){r=t}}return r.appOrParcelName=Y(e),e.status=n,r}var C="NOT_LOADED",I="LOADING_SOURCE_CODE",R="NOT_BOOTSTRAPPED",D="BOOTSTRAPPING",U="NOT_MOUNTED",B="MOUNTING",G="MOUNTED",H="UPDATING",W="UNMOUNTING",z="LOAD_ERROR",q="SKIP_BECAUSE_BROKEN";function K(t){return t.status===G}function $(t){try{return t.activeWhen(window.location)}catch(e){return M(e,t,q),!1}}function Y(t){return t.name}function V(t){return!!t.unmountThisParcel}function Z(t){return V(t)?"parcel":"application"}function Q(){for(var t=arguments.length-1;t>0;t--)for(var e in arguments[t])"__proto__"!==e&&(arguments[t-1][e]=arguments[t][e]);return arguments[0]}function J(t,e){for(var n=0;t.length>n;n++)if(e(t[n]))return t[n];return null}function X(t){return t&&("function"==typeof t||Array.isArray(e=t)&&!J(e,(function(t){return"function"!=typeof t})));var e}function tt(t,e){var n=t[e]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=Z(t),o=Y(t);return function(t){return n.reduce((function(n,i,u){return n.then((function(){var n=i(t);return et(n)?n:Promise.reject(k(15,!1,r,o,e,u))}))}),Promise.resolve())}}function et(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch}function nt(t,e){return Promise.resolve().then((function(){return t.status!==R?t:(t.status=D,t.bootstrap?wt(t,"bootstrap").then(n).catch((function(n){if(e)throw N(n,t,q);return M(n,t,q),t})):Promise.resolve().then(n))}));function n(){return t.status=U,t}}function rt(t,e){return Promise.resolve().then((function(){if(t.status!==G)return t;t.status=W;var n=Object.keys(t.parcels).map((function(e){return t.parcels[e].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(e)throw N(r,t,q);M(r,t,q)}))})).then((function(){return t}));function r(){return wt(t,"unmount").then((function(){t.status=U})).catch((function(n){if(e)throw N(n,t,q);M(n,t,q)}))}}))}var ot=!1,it=!1;function ut(t,e){return Promise.resolve().then((function(){return t.status!==U?t:(ot||(window.dispatchEvent(new A("single-spa:before-first-mount")),ot=!0),wt(t,"mount").then((function(){return t.status=G,it||(window.dispatchEvent(new A("single-spa:first-mount")),it=!0),t})).catch((function(n){return t.status=G,rt(t,!0).then(r,r);function r(){if(e)throw N(n,t,q);return M(n,t,q),t}})))}))}var at=0,ct={parcels:{}};function st(){return ft.apply(ct,arguments)}function ft(t,e){var n=this;if(!t||"object"!==P(t)&&"function"!=typeof t)throw Error(k(2,!1));if(t.name&&"string"!=typeof t.name)throw Error(k(3,!1,P(t.name)));if("object"!==P(e))throw Error(k(4,!1,name,P(e)));if(!e.domElement)throw Error(k(5,!1,name));var r,o=at++,i="function"==typeof t,u=i?t:function(){return Promise.resolve(t)},a={id:o,parcels:{},status:i?I:R,customProps:e,parentName:Y(n),unmountThisParcel:function(){return p.then((function(){if(a.status!==G)throw Error(k(6,!1,name,a.status));return rt(a,!0)})).then((function(t){return a.parentName&&delete n.parcels[a.id],t})).then((function(t){return s(t),t})).catch((function(t){throw a.status=q,f(t),t}))}};n.parcels[o]=a;var c=u();if(!c||"function"!=typeof c.then)throw Error(k(7,!1));var s,f,l=(c=c.then((function(t){if(!t)throw Error(k(8,!1));var e=t.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!X(t.bootstrap))throw Error(k(9,!1,e));if(!X(t.mount))throw Error(k(10,!1,e));if(!X(t.unmount))throw Error(k(11,!1,e));if(t.update&&!X(t.update))throw Error(k(12,!1,e));var n=tt(t,"bootstrap"),i=tt(t,"mount"),u=tt(t,"unmount");a.status=R,a.name=e,a.bootstrap=n,a.mount=i,a.unmount=u,a.timeouts=gt(t.timeouts),t.update&&(a.update=tt(t,"update"),r.update=function(t){return a.customProps=t,lt(function(t){return Promise.resolve().then((function(){if(t.status!==G)throw Error(k(32,!1,Y(t)));return t.status=H,wt(t,"update").then((function(){return t.status=G,t})).catch((function(e){throw N(e,t,q)}))}))}(a))})}))).then((function(){return nt(a,!0)})),p=l.then((function(){return ut(a,!0)})),d=new Promise((function(t,e){s=t,f=e}));return r={mount:function(){return lt(Promise.resolve().then((function(){if(a.status!==U)throw Error(k(13,!1,name,a.status));return n.parcels[o]=a,ut(a)})))},unmount:function(){return lt(a.unmountThisParcel())},getStatus:function(){return a.status},loadPromise:lt(c),bootstrapPromise:lt(l),mountPromise:lt(p),unmountPromise:lt(d)}}function lt(t){return t.then((function(){return null}))}function pt(t){var e=Y(t),n="function"==typeof t.customProps?t.customProps(e,window.location):t.customProps;("object"!==P(n)||null===n||Array.isArray(n))&&(n={},console.warn(k(40,!1),e,n));var r=Q({},n,{name:e,mountParcel:ft.bind(t),singleSpa:O});return V(t)&&(r.unmountSelf=t.unmountThisParcel),r}var dt={bootstrap:{millis:4e3,dieOnTimeout:!1,warningMillis:1e3},mount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unmount:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},unload:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3},update:{millis:3e3,dieOnTimeout:!1,warningMillis:1e3}};function ht(t,e,n){if("number"!=typeof t||0>=t)throw Error(k(16,!1));dt.bootstrap={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function vt(t,e,n){if("number"!=typeof t||0>=t)throw Error(k(17,!1));dt.mount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function yt(t,e,n){if("number"!=typeof t||0>=t)throw Error(k(18,!1));dt.unmount={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function mt(t,e,n){if("number"!=typeof t||0>=t)throw Error(k(19,!1));dt.unload={millis:t,dieOnTimeout:e,warningMillis:n||1e3}}function wt(t,e){var n=t.timeouts[e],r=n.warningMillis,o=Z(t);return new Promise((function(i,u){var a=!1,c=!1;t[e](pt(t)).then((function(t){a=!0,i(t)})).catch((function(t){a=!0,u(t)})),setTimeout((function(){return f(1)}),r),setTimeout((function(){return f(!0)}),n.millis);var s=k(31,!1,e,o,Y(t),n.millis);function f(t){if(!a)if(!0===t)c=!0,n.dieOnTimeout?u(Error(s)):console.error(s);else if(!c){var e=t,o=e*r;console.warn(s),n.millis>o+r&&setTimeout((function(){return f(e+1)}),r)}}}))}function gt(t){var e={};for(var n in dt)e[n]=Q({},dt[n],t&&t[n]||{});return e}function bt(t){return Promise.resolve().then((function(){return t.loadPromise?t.loadPromise:t.status!==C&&t.status!==z?t:(t.status=I,t.loadPromise=Promise.resolve().then((function(){var r=t.loadApp(pt(t));if(!et(r))throw n=!0,Error(k(33,!1,Y(t)));return r.then((function(n){var r;t.loadErrorTime=null,"object"!==P(e=n)&&(r=34),Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!X(e.bootstrap)&&(r=35),X(e.mount)||(r=36),X(e.unmount)||(r=37);var o=Z(e);if(r){var i;try{i=JSON.stringify(e)}catch(t){}return console.error(k(r,!1,o,Y(t),i),e),M(void 0,t,q),t}return e.devtools&&e.devtools.overlays&&(t.devtools.overlays=Q({},t.devtools.overlays,e.devtools.overlays)),t.status=R,t.bootstrap=tt(e,"bootstrap"),t.mount=tt(e,"mount"),t.unmount=tt(e,"unmount"),t.unload=tt(e,"unload"),t.timeouts=gt(e.timeouts),delete t.loadPromise,t}))})).catch((function(e){var r;return delete t.loadPromise,n?r=q:(r=z,t.loadErrorTime=(new Date).getTime()),M(e,t,r),t})));var e,n}))}var xt,_t="undefined"!=typeof window,Et={hashchange:[],popstate:[]},Ot=["hashchange","popstate"];function Pt(t){var e;if("string"==typeof t)e=t;else if(this&&this.href)e=this.href;else{if(!(t&&t.currentTarget&&t.currentTarget.href&&t.preventDefault))throw Error(k(14,!1));e=t.currentTarget.href,t.preventDefault()}var n=Ft(window.location.href),r=Ft(e);0===e.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=e:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,e)}function jt(t){var e=this;if(t){var n=t[0].type;Ot.indexOf(n)>=0&&Et[n].forEach((function(n){try{n.apply(e,t)}catch(t){setTimeout((function(){throw t}))}}))}}function St(){re([],arguments)}function At(t,e){return function(){var n=window.location.href,r=t.apply(this,arguments),o=window.location.href;return xt&&n===o||(ae()?window.dispatchEvent(Tt(window.history.state,e)):re([])),r}}function Tt(t,e){var n;try{n=new PopStateEvent("popstate",{state:t})}catch(e){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,t)}return n.singleSpa=!0,n.singleSpaTrigger=e,n}if(_t){window.addEventListener("hashchange",St),window.addEventListener("popstate",St);var Mt=window.addEventListener,Lt=window.removeEventListener;window.addEventListener=function(t,e){if("function"!=typeof e||0>Ot.indexOf(t)||J(Et[t],(function(t){return t===e})))return Mt.apply(this,arguments);Et[t].push(e)},window.removeEventListener=function(t,e){if("function"!=typeof e||0>Ot.indexOf(t))return Lt.apply(this,arguments);Et[t]=Et[t].filter((function(t){return t!==e}))},window.history.pushState=At(window.history.pushState,"pushState"),window.history.replaceState=At(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(k(41,!1)):window.singleSpaNavigate=Pt}function Ft(t){var e=document.createElement("a");return e.href=t,e}var kt=!1;function Nt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(t||window.$&&window.$.fn&&window.$.fn.jquery&&(t=window.$),t&&!kt){var e=t.fn.on,n=t.fn.off;t.fn.on=function(t,n){return Ct.call(this,e,window.addEventListener,t,n,arguments)},t.fn.off=function(t,e){return Ct.call(this,n,window.removeEventListener,t,e,arguments)},kt=!0}}function Ct(t,e,n,r,o){return"string"!=typeof n?t.apply(this,o):(n.split(/\s+/).forEach((function(t){Ot.indexOf(t)>=0&&(e(t,r),n=n.replace(t,""))})),""===n.trim()?this:t.apply(this,o))}var It={};function Rt(t){return Promise.resolve().then((function(){var e=It[Y(t)];if(!e)return t;if(t.status===C)return Dt(t,e),t;if("UNLOADING"===t.status)return e.promise.then((function(){return t}));if(t.status!==U&&t.status!==z)return t;var n=t.status===z?Promise.resolve():wt(t,"unload");return t.status="UNLOADING",n.then((function(){return Dt(t,e),t})).catch((function(n){return function(t,e,n){delete It[Y(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,M(n,t,q),e.reject(n)}(t,e,n),t}))}))}function Dt(t,e){delete It[Y(t)],delete t.bootstrap,delete t.mount,delete t.unmount,delete t.unload,t.status=C,e.resolve()}function Ut(t,e,n,r){It[Y(t)]={app:t,resolve:n,reject:r},Object.defineProperty(It[Y(t)],"promise",{get:e})}function Bt(t){return It[t]}var Gt=[];function Ht(){var t=[],e=[],n=[],r=[],o=(new Date).getTime();return Gt.forEach((function(i){var u=i.status!==q&&$(i);switch(i.status){case z:u&&o-i.loadErrorTime>=200&&n.push(i);break;case C:case I:u&&n.push(i);break;case R:case U:!u&&Bt(Y(i))?t.push(i):u&&r.push(i);break;case G:u||e.push(i)}})),{appsToUnload:t,appsToUnmount:e,appsToLoad:n,appsToMount:r}}function Wt(){return Gt.filter(K).map(Y)}function zt(){return Gt.map(Y)}function qt(t){var e=J(Gt,(function(e){return Y(e)===t}));return e?e.status:null}function Kt(t,e,n,r){var o=function(t,e,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===P(t)?(function(t){if(Array.isArray(t)||null===t)throw Error(k(39,!1));var e=["name","app","activeWhen","customProps"],n=Object.keys(t).reduce((function(t,n){return 0>e.indexOf(n)?t.concat(n):t}),[]);if(0!==n.length)throw Error(k(38,!1,e.join(", "),n.join(", ")));if("string"!=typeof t.name||0===t.name.length)throw Error(k(20,!1));if("object"!==P(t.app)&&"function"!=typeof t.app)throw Error(k(20,!1));var r=function(t){return"string"==typeof t||"function"==typeof t};if(!(r(t.activeWhen)||Array.isArray(t.activeWhen)&&t.activeWhen.every(r)))throw Error(k(24,!1));if(!Qt(t.customProps))throw Error(k(22,!1))}(t),i.name=t.name,i.loadApp=t.app,i.activeWhen=t.activeWhen,i.customProps=t.customProps):(function(t,e,n,r){if("string"!=typeof t||0===t.length)throw Error(k(20,!1));if(!e)throw Error(k(23,!1));if("function"!=typeof n)throw Error(k(24,!1));if(!Qt(r))throw Error(k(22,!1))}(t,e,n,r),i.name=t,i.loadApp=e,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(t){return t||{}}(i.customProps),i.activeWhen=function(t){var e=Array.isArray(t)?t:[t];return e=e.map((function(t){return"function"==typeof t?t:Jt(t)})),function(t){return e.some((function(e){return e(t)}))}}(i.activeWhen),i}(t,e,n,r);if(-1!==zt().indexOf(o.name))throw Error(k(21,!1,o.name));Gt.push(Q({loadErrorTime:null,status:C,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),_t&&(Nt(),re())}function $t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return Gt.filter((function(e){return e.activeWhen(t)})).map(Y)}function Yt(t){if(0===Gt.filter((function(e){return Y(e)===t})).length)throw Error(k(25,!1,t));return Vt(t).then((function(){var e=Gt.map(Y).indexOf(t);Gt.splice(e,1)}))}function Vt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof t)throw Error(k(26,!1));var n=J(Gt,(function(e){return Y(e)===t}));if(!n)throw Error(k(27,!1,t));var r,o=Bt(Y(n));if(e&&e.waitForUnmount){if(o)return o.promise;var i=new Promise((function(t,e){Ut(n,(function(){return i}),t,e)}));return i}return o?(r=o.promise,Zt(n,o.resolve,o.reject)):r=new Promise((function(t,e){Ut(n,(function(){return r}),t,e),Zt(n,t,e)})),r}function Zt(t,e,n){rt(t).then(Rt).then((function(){e(),setTimeout((function(){re()}))})).catch(n)}function Qt(t){return!t||"function"==typeof t||"object"===P(t)&&null!==t&&!Array.isArray(t)}function Jt(t,e){var n=function(t,e){var n=0,r=!1,o="^";"/"!==t[0]&&(t="/"+t);for(var i=0;t.length>i;i++){var u=t[i];(!r&&":"===u||r&&"/"===u)&&a(i)}return a(t.length),RegExp(o,"i");function a(i){var u=t.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":u,i===t.length)if(r)e&&(o+="$");else{var a=e?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(a,"$"):"".concat(o,"(/").concat(a,")?(#.*)?$")}r=!r,n=i}}(t,e);return function(t){var e=t.origin;e||(e="".concat(t.protocol,"//").concat(t.host));var r=t.href.replace(e,"").replace(t.search,"").split("?")[0];return n.test(r)}}var Xt=!1,te=[],ee=_t&&window.location.href;function ne(){return re()}function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(Xt)return new Promise((function(t,n){te.push({resolve:t,reject:n,eventArguments:e})}));var n,r=Ht(),o=r.appsToUnload,i=r.appsToUnmount,u=r.appsToLoad,a=r.appsToMount,c=!1,s=ee,f=ee=window.location.href;return ae()?(Xt=!0,n=o.concat(u,i,a),d()):(n=u,p());function l(){c=!0}function p(){return Promise.resolve().then((function(){var t=u.map(bt);return Promise.all(t).then(v).then((function(){return[]})).catch((function(t){throw v(),t}))}))}function d(){return Promise.resolve().then((function(){if(window.dispatchEvent(new A(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",y(!0))),window.dispatchEvent(new A("single-spa:before-routing-event",y(!0,{cancelNavigation:l}))),c)return window.dispatchEvent(new A("single-spa:before-mount-routing-event",y(!0))),h(),void Pt(s);var e=o.map(Rt),r=i.map(rt).map((function(t){return t.then(Rt)})).concat(e),f=Promise.all(r);f.then((function(){window.dispatchEvent(new A("single-spa:before-mount-routing-event",y(!0)))}));var p=u.map((function(t){return bt(t).then((function(t){return oe(t,f)}))})),d=a.filter((function(t){return 0>u.indexOf(t)})).map((function(t){return oe(t,f)}));return f.catch((function(t){throw v(),t})).then((function(){return v(),Promise.all(p.concat(d)).catch((function(e){throw t.forEach((function(t){return t.reject(e)})),e})).then(h)}))}))}function h(){var e=Wt();t.forEach((function(t){return t.resolve(e)}));try{window.dispatchEvent(new A(0===n.length?"single-spa:no-app-change":"single-spa:app-change",y())),window.dispatchEvent(new A("single-spa:routing-event",y()))}catch(t){setTimeout((function(){throw t}))}if(Xt=!1,te.length>0){var r=te;te=[],re(r)}return e}function v(){t.forEach((function(t){jt(t.eventArguments)})),jt(e)}function y(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],l=arguments.length>1?arguments[1]:void 0,p={},d=(j(t={},G,[]),j(t,U,[]),j(t,C,[]),j(t,q,[]),t);r?(u.concat(a).forEach((function(t,e){v(t,G)})),o.forEach((function(t){v(t,C)})),i.forEach((function(t){v(t,U)}))):n.forEach((function(t){v(t)}));var h={detail:{newAppStatuses:p,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==e?void 0:e[0],oldUrl:s,newUrl:f,navigationIsCanceled:c}};return l&&Q(h.detail,l),h;function v(t,e){var n=Y(t);e=e||qt(n),p[n]=e,(d[e]=d[e]||[]).push(n)}}}function oe(t,e){return $(t)?nt(t).then((function(t){return e.then((function(){return $(t)?ut(t):t}))})):e.then((function(){return t}))}var ie=!1;function ue(t){ie=!0,t&&t.urlRerouteOnly&&(xt=t.urlRerouteOnly),_t&&re()}function ae(){return ie}_t&&setTimeout((function(){ie||console.warn(k(1,!1))}),5e3),_t&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(Gt)},reroute:re,NOT_LOADED:C,toLoadPromise:bt,toBootstrapPromise:nt,unregisterApplication:Yt});var ce=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t},se="object"==typeof e&&e&&e.Object===Object&&e,fe="object"==typeof self&&self&&self.Object===Object&&self,le=se||fe||Function("return this")(),pe=le.Symbol,de=Object.prototype,he=de.hasOwnProperty,ve=de.toString,ye=pe?pe.toStringTag:void 0;var me=function(t){var e=he.call(t,ye),n=t[ye];try{t[ye]=void 0;var r=!0}catch(t){}var o=ve.call(t);return r&&(e?t[ye]=n:delete t[ye]),o},we=Object.prototype.toString;var ge=function(t){return we.call(t)},be=pe?pe.toStringTag:void 0;var xe=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":be&&be in Object(t)?me(t):ge(t)};var _e=function(t){return null!=t&&"object"==typeof t};var Ee=function(t){return _e(t)&&"[object Arguments]"==xe(t)},Oe=Object.prototype,Pe=Oe.hasOwnProperty,je=Oe.propertyIsEnumerable,Se=Ee(function(){return arguments}())?Ee:function(t){return _e(t)&&Pe.call(t,"callee")&&!je.call(t,"callee")},Ae=Se,Te=Array.isArray,Me=pe?pe.isConcatSpreadable:void 0;var Le=function(t){return Te(t)||Ae(t)||!!(Me&&t&&t[Me])};var Fe=function t(e,n,r,o,i){var u=-1,a=e.length;for(r||(r=Le),i||(i=[]);++u<a;){var c=e[u];n>0&&r(c)?n>1?t(c,n-1,r,o,i):ce(i,c):o||(i[i.length]=c)}return i};var ke=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e};var Ne=function(){var t=arguments.length;if(!t)return[];for(var e=Array(t-1),n=arguments[0],r=t;r--;)e[r-1]=arguments[r];return ce(Te(n)?ke(n):[n],Fe(e,1))};var Ce=function(t,e){return t===e||t!=t&&e!=e};var Ie=function(t,e){for(var n=t.length;n--;)if(Ce(t[n][0],e))return n;return-1},Re=Array.prototype.splice;var De=function(t){var e=this.__data__,n=Ie(e,t);return n>=0&&(n==e.length-1?e.pop():Re.call(e,n,1),--this.size,!0)};var Ue=function(t){var e=this.__data__,n=Ie(e,t);return 0>n?void 0:e[n][1]};var Be=function(t){return Ie(this.__data__,t)>-1};var Ge=function(t,e){var n=this.__data__,r=Ie(n,t);return 0>r?(++this.size,n.push([t,e])):n[r][1]=e,this};function He(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}He.prototype.clear=function(){this.__data__=[],this.size=0},He.prototype.delete=De,He.prototype.get=Ue,He.prototype.has=Be,He.prototype.set=Ge;var We=He;var ze=function(){this.__data__=new We,this.size=0};var qe=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var Ke=function(t){return this.__data__.get(t)};var $e=function(t){return this.__data__.has(t)};var Ye=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var Ve,Ze=function(t){if(!Ye(t))return!1;var e=xe(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Qe=le["__core-js_shared__"],Je=(Ve=/[^.]+$/.exec(Qe&&Qe.keys&&Qe.keys.IE_PROTO||""))?"Symbol(src)_1."+Ve:"";var Xe=function(t){return!!Je&&Je in t},tn=Function.prototype.toString;var en=function(t){if(null!=t){try{return tn.call(t)}catch(t){}try{return t+""}catch(t){}}return""},nn=/^\[object .+?Constructor\]$/,rn=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var on=function(t){return!(!Ye(t)||Xe(t))&&(Ze(t)?rn:nn).test(en(t))};var un=function(t,e){return null==t?void 0:t[e]};var an=function(t,e){var n=un(t,e);return on(n)?n:void 0},cn=an(le,"Map"),sn=an(Object,"create");var fn=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ln=Object.prototype.hasOwnProperty;var pn=function(t){var e=this.__data__;if(sn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ln.call(e,t)?e[t]:void 0},dn=Object.prototype.hasOwnProperty;var hn=function(t){var e=this.__data__;return sn?void 0!==e[t]:dn.call(e,t)};var vn=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=sn&&void 0===e?"__lodash_hash_undefined__":e,this};function yn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}yn.prototype.clear=function(){this.__data__=sn?sn(null):{},this.size=0},yn.prototype.delete=fn,yn.prototype.get=pn,yn.prototype.has=hn,yn.prototype.set=vn;var mn=yn;var wn=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var gn=function(t,e){var n=t.__data__;return wn(e)?n["string"==typeof e?"string":"hash"]:n.map};var bn=function(t){var e=gn(this,t).delete(t);return this.size-=e?1:0,e};var xn=function(t){return gn(this,t).get(t)};var _n=function(t){return gn(this,t).has(t)};var En=function(t,e){var n=gn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function On(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}On.prototype.clear=function(){this.size=0,this.__data__={hash:new mn,map:new(cn||We),string:new mn}},On.prototype.delete=bn,On.prototype.get=xn,On.prototype.has=_n,On.prototype.set=En;var Pn=On;var jn=function(t,e){var n=this.__data__;if(n instanceof We){var r=n.__data__;if(!cn||199>r.length)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pn(r)}return n.set(t,e),this.size=n.size,this};function Sn(t){var e=this.__data__=new We(t);this.size=e.size}Sn.prototype.clear=ze,Sn.prototype.delete=qe,Sn.prototype.get=Ke,Sn.prototype.has=$e,Sn.prototype.set=jn;var An=Sn,Tn=function(){try{var t=an(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var Mn=function(t,e,n){"__proto__"==e&&Tn?Tn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Ln=function(t,e,n){(void 0!==n&&!Ce(t[e],n)||void 0===n&&!(e in t))&&Mn(t,e,n)};var Fn=function(t){return function(e,n,r){for(var o=-1,i=Object(e),u=r(e),a=u.length;a--;){var c=u[t?a:++o];if(!1===n(i[c],c,i))break}return e}}(),kn=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?le.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=i?i(n):new t.constructor(n);return t.copy(r),r}})),Nn=le.Uint8Array;var Cn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};var In=function(t,e){var n=e?Cn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Rn=Object.create,Dn=function(){function t(){}return function(e){if(!Ye(e))return{};if(Rn)return Rn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var Un=function(t,e){return function(n){return t(e(n))}},Bn=Un(Object.getPrototypeOf,Object),Gn=Object.prototype;var Hn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Gn)};var Wn=function(t){return"function"!=typeof t.constructor||Hn(t)?{}:Dn(Bn(t))};var zn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&9007199254740991>=t};var qn=function(t){return null!=t&&zn(t.length)&&!Ze(t)};var Kn=function(t){return _e(t)&&qn(t)};var $n=function(){return!1},Yn=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n?le.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||$n})),Vn=Function.prototype.toString,Zn=Object.prototype.hasOwnProperty,Qn=Vn.call(Object);var Jn=function(t){if(!_e(t)||"[object Object]"!=xe(t))return!1;var e=Bn(t);if(null===e)return!0;var n=Zn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Vn.call(n)==Qn},Xn={};Xn["[object Float32Array]"]=Xn["[object Float64Array]"]=Xn["[object Int8Array]"]=Xn["[object Int16Array]"]=Xn["[object Int32Array]"]=Xn["[object Uint8Array]"]=Xn["[object Uint8ClampedArray]"]=Xn["[object Uint16Array]"]=Xn["[object Uint32Array]"]=!0,Xn["[object Arguments]"]=Xn["[object Array]"]=Xn["[object ArrayBuffer]"]=Xn["[object Boolean]"]=Xn["[object DataView]"]=Xn["[object Date]"]=Xn["[object Error]"]=Xn["[object Function]"]=Xn["[object Map]"]=Xn["[object Number]"]=Xn["[object Object]"]=Xn["[object RegExp]"]=Xn["[object Set]"]=Xn["[object String]"]=Xn["[object WeakMap]"]=!1;var tr=function(t){return _e(t)&&zn(t.length)&&!!Xn[xe(t)]};var er=function(t){return function(e){return t(e)}},nr=r((function(t,e){var n=e&&!e.nodeType&&e,r=n&&t&&!t.nodeType&&t,o=r&&r.exports===n&&se.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i})),rr=nr&&nr.isTypedArray,or=rr?er(rr):tr;var ir=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},ur=Object.prototype.hasOwnProperty;var ar=function(t,e,n){var r=t[e];ur.call(t,e)&&Ce(r,n)&&(void 0!==n||e in t)||Mn(t,e,n)};var cr=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,u=e.length;++i<u;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?Mn(n,a,c):ar(n,a,c)}return n};var sr=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},fr=/^(?:0|[1-9]\d*)$/;var lr=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&fr.test(t))&&t>-1&&t%1==0&&e>t},pr=Object.prototype.hasOwnProperty;var dr=function(t,e){var n=Te(t),r=!n&&Ae(t),o=!n&&!r&&Yn(t),i=!n&&!r&&!o&&or(t),u=n||r||o||i,a=u?sr(t.length,String):[],c=a.length;for(var s in t)!e&&!pr.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||lr(s,c))||a.push(s);return a};var hr=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},vr=Object.prototype.hasOwnProperty;var yr=function(t){if(!Ye(t))return hr(t);var e=Hn(t),n=[];for(var r in t)("constructor"!=r||!e&&vr.call(t,r))&&n.push(r);return n};var mr=function(t){return qn(t)?dr(t,!0):yr(t)};var wr=function(t){return cr(t,mr(t))};var gr=function(t,e,n,r,o,i,u){var a=ir(t,n),c=ir(e,n),s=u.get(c);if(s)Ln(t,n,s);else{var f=i?i(a,c,n+"",t,e,u):void 0,l=void 0===f;if(l){var p=Te(c),d=!p&&Yn(c),h=!p&&!d&&or(c);f=c,p||d||h?Te(a)?f=a:Kn(a)?f=ke(a):d?(l=!1,f=kn(c,!0)):h?(l=!1,f=In(c,!0)):f=[]:Jn(c)||Ae(c)?(f=a,Ae(a)?f=wr(a):Ye(a)&&!Ze(a)||(f=Wn(c))):l=!1}l&&(u.set(c,f),o(f,c,r,i,u),u.delete(c)),Ln(t,n,f)}};var br=function t(e,n,r,o,i){e!==n&&Fn(n,(function(u,a){if(i||(i=new An),Ye(u))gr(e,n,a,r,t,o,i);else{var c=o?o(ir(e,a),u,a+"",e,n,i):void 0;void 0===c&&(c=u),Ln(e,a,c)}}),mr)};var xr=function(t){return t};var _r=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Er=Math.max;var Or=function(t,e,n){return e=Er(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=Er(r.length-e,0),u=Array(i);++o<i;)u[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(u),_r(t,this,a)}};var Pr=function(t){return function(){return t}},jr=Date.now;var Sr=function(t){var e=0,n=0;return function(){var r=jr(),o=16-(r-n);if(n=r,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Ar=Sr(Tn?function(t,e){return Tn(t,"toString",{configurable:!0,enumerable:!1,value:Pr(e),writable:!0})}:xr);var Tr=function(t,e){return Ar(Or(t,e,xr),t+"")};var Mr=function(t,e,n){if(!Ye(n))return!1;var r=typeof e;return!!("number"==r?qn(n)&&lr(e,n.length):"string"==r&&e in n)&&Ce(n[e],t)};var Lr=function(t){return Tr((function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Mr(n[0],n[1],u)&&(i=3>o?void 0:i,o=1),e=Object(e);++r<o;){var a=n[r];a&&t(e,a,r,i)}return e}))}((function(t,e,n,r){br(t,e,n,r)}));var Fr=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t},kr=Un(Object.keys,Object),Nr=Object.prototype.hasOwnProperty;var Cr=function(t){if(!Hn(t))return kr(t);var e=[];for(var n in Object(t))Nr.call(t,n)&&"constructor"!=n&&e.push(n);return e};var Ir=function(t){return qn(t)?dr(t):Cr(t)};var Rr=function(t,e){return function(n,r){if(null==n)return n;if(!qn(n))return t(n,r);for(var o=n.length,i=e?o:-1,u=Object(n);(e?i--:++i<o)&&!1!==r(u[i],i,u););return n}}((function(t,e){return t&&Fn(t,e,Ir)}));var Dr=function(t){return"function"==typeof t?t:xr};var Ur,Br,Gr,Hr=function(t,e){return(Te(t)?Fr:Rr)(t,Dr(e))},Wr=r((function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0})),zr=r((function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],u=!0,a=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(a)throw o}}return i}},t.exports.default=t.exports,t.exports.__esModule=!0})),qr=r((function(t){t.exports=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.")},t.exports.default=t.exports,t.exports.__esModule=!0})),Kr=r((function(t){t.exports=function(t,e){return Wr(t)||zr(t,e)||v(t,e)||qr()},t.exports.default=t.exports,t.exports.__esModule=!0})),$r=n(Kr),Yr="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function Vr(t,e){if(!t.hasOwnProperty(e)||!isNaN(e)&&t.length>e)return!0;if(!Yr)return!1;try{return t[e]&&"undefined"!=typeof window&&t[e].parent===window}catch(t){return!0}}function Zr(t){var e,n=0,r=!1;for(var o in t)if(!Vr(t,o)){for(var i=0;i<window.frames.length&&!r;i++){if(window.frames[i]===t[o]){r=!0;break}}if(!r&&(0===n&&o!==Ur||1===n&&o!==Br))return o;n++,e=o}if(e!==Gr)return e}function Qr(t){for(var e in Ur=Br=void 0,t)Vr(t,e)||(Ur?Br||(Br=e):Ur=e,Gr=e);return Gr}function Jr(t){var e=t.indexOf(">")+1,n=t.lastIndexOf("<");return t.substring(e,n)}function Xr(t){if("object"===g(t))return"/";try{var e=new URL(t.startsWith("//")?"".concat(location.protocol).concat(t):t,location.href),n=e.origin,r=e.pathname.split("/");return r.pop(),"".concat(n).concat(r.join("/"),"/")}catch(t){return console.warn(t),""}}var to=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)};function eo(t,e){if(!e)return t.text();if(!t.headers)return t.text();var n=t.headers.get("Content-Type");if(!n)return t.text();var r="utf-8",o=n.split(";");if(2===o.length){var i=o[1].split("="),u=$r(i,2)[1],a=u&&u.trim();a&&(r=a)}return"UTF-8"===r.toUpperCase()?t.text():t.blob().then((function(t){return new Promise((function(e,n){var o=new window.FileReader;o.onload=function(){e(o.result)},o.onerror=n,o.readAsText(t,r)}))}))}var no=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,ro=/<(script)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+((?!type=('|')text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,oo=/.*\ssrc=('|")?([^>'"\s]+)/,io=/.*\stype=('|")?([^>'"\s]+)/,uo=/.*\sentry\s*.*/,ao=/.*\sasync\s*.*/,co=/.*\snomodule\s*.*/,so=/.*\stype=('|")?module('|")?\s*.*/,fo=/<(link)[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]*?>/gi,lo=/\srel=('|")?(preload|prefetch)\1/,po=/.*\shref=('|")?([^>'"\s]+)/,ho=/.*\sas=('|")?font\1.*/,vo=/<style[^>]*>[\s\S]*?<\/style>/gi,yo=/\s+rel=('|")?stylesheet\1.*/,mo=/.*\shref=('|")?([^>'"\s]+)/,wo=/<!--([\s\S]*?)-->/g,go=/<link([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)ignore([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]*|=[\s\S]*)>/i,bo=/<style([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)ignore([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]*|=[\s\S]*)>/i,xo=/<script([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)ignore([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+[\s\S]*|=[\s\S]*)>/i;function _o(t){return t.startsWith("//")||t.startsWith("http://")||t.startsWith("https://")}function Eo(t,e){return""+new URL(t,e)}var Oo=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(e?"prefetch/preload":""," link ").concat(t," replaced by import-html-entry --\x3e")},Po=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(e?"async":""," script ").concat(t," replaced by import-html-entry --\x3e")},jo=function(t){return"\x3c!-- ignore asset ".concat(t||"file"," replaced by import-html-entry --\x3e")},So=function(t,e){return"\x3c!-- ".concat(e?"nomodule":"module"," script ").concat(t," ignored by import-html-entry --\x3e")};function Ao(t,e){var n=[],r=[],o=null,i="noModule"in document.createElement("script");return{template:t.replace(wo,"").replace(fo,(function(t){if(!!t.match(yo)){var n=t.match(mo),o=t.match(go);if(n){var i=n&&n[2],u=i;return i&&!_o(i)&&(u=Eo(i,e)),o?jo(u):(r.push(u),Oo(u))}}if(t.match(lo)&&t.match(po)&&!t.match(ho)){var a=t.match(po),c=$r(a,3);return Oo(c[2],!0)}return t})).replace(vo,(function(t){return bo.test(t)?jo("style file"):t})).replace(no,(function(t,r){var u,a=r.match(xo),c=i&&!!r.match(co)||!i&&!!r.match(so),s=r.match(io);if((u=s&&s[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(u))return t;if(ro.test(t)&&r.match(oo)){var f=r.match(uo),l=r.match(oo),p=l&&l[2];if(o&&f)throw new SyntaxError("You should not set multiply entry script!");if(p&&!_o(p)&&(p=Eo(p,e)),o=o||f&&p,a)return jo(p||"js file");if(c)return So(p||"js file",i);if(p){var d=!!r.match(ao);return n.push(d?{async:!0,src:p}:p),Po(p,d)}return t}return a?jo("js file"):c?So("js file",i):(Jr(t).split(/[\r\n]+/).every((function(t){return!t.trim()||t.trim().startsWith("//")}))||n.push(t),"\x3c!-- inline scripts replaced by import-html-entry --\x3e")})),scripts:n=n.filter((function(t){return!!t})),styles:r,entry:o||n[n.length-1]}}var To={},Mo={},Lo={};if(!window.fetch)throw Error('[import-html-entry] Here is no "fetch" on the window env, you need to polyfill it');var Fo=window.fetch.bind(window);function ko(t){return t}function No(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.fetch,o=void 0===r?Fo:r,i=t;return Ro(e,o).then((function(t){return i=e.reduce((function(e,n,r){return e=e.replace(Oo(n),"<style>/* ".concat(n," */").concat(t[r],"</style>"))}),i),i}))}var Co=function(t){return t.startsWith("<")};function Io(t,e,n,r){var o=Co(t)?"":"//# sourceURL=".concat(t,"\n");return(0,eval)("window").proxy=n,r?";(function(window, self, globalThis){with(window){;".concat(e,"\n").concat(o,"}}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);"):";(function(window, self, globalThis){;".concat(e,"\n").concat(o,"}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);")}function Ro(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fo;return Promise.all(t.map((function(t){return Co(t)?Jr(t):To[t]||(To[t]=e(t).then((function(t){return t.text()})))})))}function Do(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fo,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=function(t){return Mo[t]||(Mo[t]=e(t).then((function(e){if(e.status>=400)throw n(),Error("".concat(t," load failed with status ").concat(e.status));return e.text()})))};return Promise.all(t.map((function(t){if("string"==typeof t)return Co(t)?Jr(t):r(t);var e=t.src;return t.async?{src:e,async:!0,content:new Promise((function(t,n){return to((function(){return r(e).then(t,n)}))}))}:r(e)})))}function Uo(t,e){setTimeout((function(){throw console.error(e),t}))}function Bo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.fetch,i=void 0===o?Fo:o,u=r.strictGlobal,a=void 0!==u&&u,c=r.success,s=r.error,f=void 0===s?function(){}:s,l=r.beforeExec,p=void 0===l?function(){}:l,d=r.afterExec,h=void 0===d?function(){}:d;return Do(e,i,f).then((function(r){var o=function(t,e){var r=Io(t,p(e,t)||e,n,a);(0,eval)(r),h(e,t)};function i(u,c){e.length>u&&(!function(e,r,i){if(e===t){Qr(a?n:window);try{o(e,r),i(n[Zr(a?n:window)]||{})}catch(t){throw console.error("[import-html-entry]: error occurs while executing entry script ".concat(e)),t}}else if("string"==typeof r)try{o(e,r)}catch(t){Uo(t,"[import-html-entry]: error occurs while executing normal script ".concat(e))}else r.async&&(null==r||r.content.then((function(t){return o(r.src,t)})).catch((function(t){Uo(t,"[import-html-entry]: error occurs while executing async script ".concat(r.src))})))}(e[u],r[u],c),t||u!==e.length-1?i(u+1,c):c())}return new Promise((function(t){return i(0,c||t)}))}))}function Go(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Fo,r=!1,o=Xr,i=ko;return"function"==typeof e?n=e:(e.fetch&&("function"==typeof e.fetch?n=e.fetch:(n=e.fetch.fn||Fo,r=!!e.fetch.autoDecodeResponse)),o=e.getPublicPath||e.getDomain||Xr,i=e.getTemplate||ko),Lo[t]||(Lo[t]=n(t).then((function(t){return eo(t,r)})).then((function(e){var r=o(t),u=Ao(i(e),r),a=u.scripts,c=u.entry,s=u.styles;return No(u.template,s,{fetch:n}).then((function(t){return{template:t,assetPublicPath:r,getExternalScripts:function(){return Do(a,n)},getExternalStyleSheets:function(){return Ro(s,n)},execScripts:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.length?Bo(c,a,t,{fetch:n,strictGlobal:e,beforeExec:r.beforeExec,afterExec:r.afterExec}):Promise.resolve()}}}))})))}function Ho(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fetch,r=void 0===n?Fo:n,o=e.getTemplate,i=void 0===o?ko:o,u=e.getPublicPath||e.getDomain||Xr;if(!t)throw new SyntaxError("entry should not be empty!");if("string"==typeof t)return Go(t,{fetch:r,getPublicPath:u,getTemplate:i});if(Array.isArray(t.scripts)||Array.isArray(t.styles)){var a=t.scripts,c=void 0===a?[]:a,s=t.styles,f=void 0===s?[]:s,l=t.html,p=void 0===l?"":l,d=function(t){return f.reduceRight((function(t,e){return"".concat(Oo(e)).concat(t)}),t)},h=function(t){return c.reduce((function(t,e){return"".concat(t).concat(Po(e))}),t)};return No(i(h(d(p))),f,{fetch:r}).then((function(e){return{template:e,assetPublicPath:u(t),getExternalScripts:function(){return Do(c,r)},getExternalStyleSheets:function(){return Ro(f,r)},execScripts:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c.length?Bo(c[c.length-1],c,t,{fetch:r,strictGlobal:e,beforeExec:n.beforeExec,afterExec:n.afterExec}):Promise.resolve()}}}))}throw new SyntaxError("entry scripts or styles should be array!")}var Wo=window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;function zo(t,e){return Lr({},function(t){return{beforeLoad:function(){return a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return e.stop()}}),e)})))()},beforeMount:function(){return a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return e.stop()}}),e)})))()},beforeUnmount:function(){return a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete t.__POWERED_BY_QIANKUN__;case 1:case"end":return e.stop()}}),e)})))()}}}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=!1;return{beforeLoad:function(){return a(i.mark((function n(){return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e;case 1:case"end":return n.stop()}}),n)})))()},beforeMount:function(){return a(i.mark((function r(){return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n&&(t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=e);case 1:case"end":return r.stop()}}),r)})))()},beforeUnmount:function(){return a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:void 0===Wo?delete t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__:t.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=Wo,n=!0;case 2:case"end":return e.stop()}}),e)})))()}}}(t,e),(function(t,e){return Ne(null!=t?t:[],null!=e?e:[])}))}var qo=n(r((function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0}))),Ko=r((function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,e(n,r)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),$o=n(r((function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ko(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0}))),Yo=r((function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),Vo=r((function(t){t.exports=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(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0})),Zo=r((function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0})),Qo=r((function(t){var e=w.default;t.exports=function(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Zo(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),Jo=r((function(t){t.exports=function(t){var e=Vo();return function(){var n,r=Yo(t);if(e){var o=Yo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qo(this,n)}},t.exports.default=t.exports,t.exports.__esModule=!0})),Xo=n(Jo),ti=r((function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.default=t.exports,t.exports.__esModule=!0})),ei=r((function(t){function e(n,r,o){return Vo()?(t.exports=e=Reflect.construct,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Ko(o,n.prototype),o},t.exports.default=t.exports,t.exports.__esModule=!0),e.apply(null,arguments)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),ni=r((function(t){function e(n){var r="function"==typeof Map?new Map:void 0;return t.exports=e=function(t){if(null===t||!ti(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return ei(t,arguments,Yo(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Ko(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0,e(n)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0})),ri=function(t){$o(n,t);var e=Xo(n);function n(t){return qo(this,n),e.call(this,"[qiankun]: ".concat(t))}return n}(n(ni)(Error));var oi=function(t,e){return t&&cr(e,Ir(e),t)};var ii=function(t,e){return t&&cr(e,mr(e),t)};var ui=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var u=t[n];e(u,n,t)&&(i[o++]=u)}return i};var ai=function(){return[]},ci=Object.prototype.propertyIsEnumerable,si=Object.getOwnPropertySymbols,fi=si?function(t){return null==t?[]:ui(si(t=Object(t)),(function(e){return ci.call(t,e)}))}:ai;var li=function(t,e){return cr(t,fi(t),e)},pi=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ce(e,fi(t)),t=Bn(t);return e}:ai;var di=function(t,e){return cr(t,pi(t),e)};var hi=function(t,e,n){var r=e(t);return Te(t)?r:ce(r,n(t))};var vi=function(t){return hi(t,Ir,fi)};var yi=function(t){return hi(t,mr,pi)},mi=an(le,"DataView"),wi=an(le,"Promise"),gi=an(le,"Set"),bi=an(le,"WeakMap"),xi="[object Map]",_i="[object Promise]",Ei="[object Set]",Oi="[object WeakMap]",Pi="[object DataView]",ji=en(mi),Si=en(cn),Ai=en(wi),Ti=en(gi),Mi=en(bi),Li=xe;(mi&&Li(new mi(new ArrayBuffer(1)))!=Pi||cn&&Li(new cn)!=xi||wi&&Li(wi.resolve())!=_i||gi&&Li(new gi)!=Ei||bi&&Li(new bi)!=Oi)&&(Li=function(t){var e=xe(t),n="[object Object]"==e?t.constructor:void 0,r=n?en(n):"";if(r)switch(r){case ji:return Pi;case Si:return xi;case Ai:return _i;case Ti:return Ei;case Mi:return Oi}return e});var Fi=Li,ki=Object.prototype.hasOwnProperty;var Ni=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ki.call(t,"index")&&(n.index=t.index,n.input=t.input),n};var Ci=function(t,e){var n=e?Cn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)},Ii=/\w*$/;var Ri=function(t){var e=new t.constructor(t.source,Ii.exec(t));return e.lastIndex=t.lastIndex,e},Di=pe?pe.prototype:void 0,Ui=Di?Di.valueOf:void 0;var Bi=function(t){return Ui?Object(Ui.call(t)):{}};var Gi=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return Cn(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return Ci(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return In(t,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return Ri(t);case"[object Symbol]":return Bi(t)}};var Hi=function(t){return _e(t)&&"[object Map]"==Fi(t)},Wi=nr&&nr.isMap,zi=Wi?er(Wi):Hi;var qi=function(t){return _e(t)&&"[object Set]"==Fi(t)},Ki=nr&&nr.isSet,$i=Ki?er(Ki):qi,Yi="[object Arguments]",Vi="[object Function]",Zi="[object Object]",Qi={};Qi[Yi]=Qi["[object Array]"]=Qi["[object ArrayBuffer]"]=Qi["[object DataView]"]=Qi["[object Boolean]"]=Qi["[object Date]"]=Qi["[object Float32Array]"]=Qi["[object Float64Array]"]=Qi["[object Int8Array]"]=Qi["[object Int16Array]"]=Qi["[object Int32Array]"]=Qi["[object Map]"]=Qi["[object Number]"]=Qi[Zi]=Qi["[object RegExp]"]=Qi["[object Set]"]=Qi["[object String]"]=Qi["[object Symbol]"]=Qi["[object Uint8Array]"]=Qi["[object Uint8ClampedArray]"]=Qi["[object Uint16Array]"]=Qi["[object Uint32Array]"]=!0,Qi["[object Error]"]=Qi[Vi]=Qi["[object WeakMap]"]=!1;var Ji=function t(e,n,r,o,i,u){var a,c=1&n,s=2&n,f=4&n;if(r&&(a=i?r(e,o,i,u):r(e)),void 0!==a)return a;if(!Ye(e))return e;var l=Te(e);if(l){if(a=Ni(e),!c)return ke(e,a)}else{var p=Fi(e),d=p==Vi||"[object GeneratorFunction]"==p;if(Yn(e))return kn(e,c);if(p==Zi||p==Yi||d&&!i){if(a=s||d?{}:Wn(e),!c)return s?di(e,ii(a,e)):li(e,oi(a,e))}else{if(!Qi[p])return i?e:{};a=Gi(e,p,c)}}u||(u=new An);var h=u.get(e);if(h)return h;u.set(e,a),$i(e)?e.forEach((function(o){a.add(t(o,n,r,o,e,u))})):zi(e)&&e.forEach((function(o,i){a.set(i,t(o,n,r,i,e,u))}));var v=l?void 0:(f?s?yi:vi:s?mr:Ir)(e);return Fr(v||e,(function(o,i){v&&(o=e[i=o]),ar(a,i,t(o,n,r,i,e,u))})),a};var Xi=function(t){return Ji(t,5)},tu={},eu={};function nu(t,e){Object.keys(eu).forEach((function(n){eu[n]instanceof Function&&eu[n](Xi(t),Xi(e))}))}function ru(t,e){return{onGlobalStateChange:function(e,n){if(e instanceof Function){if(eu[t]&&console.warn("[qiankun] '".concat(t,"' global listener already exists before this, new listener will overwrite it.")),eu[t]=e,n){var r=Xi(tu);e(r,r)}}else console.error("[qiankun] callback must be function!")},setGlobalState:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t===tu)return console.warn("[qiankun] state has not changed!"),!1;var n=[],r=Xi(tu);return tu=Xi(Object.keys(t).reduce((function(r,o){return e||r.hasOwnProperty(o)?(n.push(o),Object.assign(r,x({},o,t[o]))):(console.warn("[qiankun] '".concat(o,"' not declared when init state!")),r)}),tu)),0===n.length?(console.warn("[qiankun] state has not changed!"),!1):(nu(tu,r),!0)},offGlobalStateChange:function(){return delete eu[t],!0}}}var ou,iu=r((function(t){function e(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0})),uu=n(iu);(ou=t.SandBoxType||(t.SandBoxType={})).Proxy="Proxy",ou.Snapshot="Snapshot",ou.LegacyProxy="LegacyProxy";var au=/\s/;var cu=function(t){for(var e=t.length;e--&&au.test(t.charAt(e)););return e},su=/^\s+/;var fu=function(t){return t?t.slice(0,cu(t)+1).replace(su,""):t};var lu=function(t){return"symbol"==typeof t||_e(t)&&"[object Symbol]"==xe(t)},pu=/^[-+]0x[0-9a-f]+$/i,du=/^0b[01]+$/i,hu=/^0o[0-7]+$/i,vu=parseInt;var yu=function(t){if("number"==typeof t)return t;if(lu(t))return NaN;if(Ye(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ye(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=fu(t);var n=du.test(t);return n||hu.test(t)?vu(t.slice(2),n?2:8):pu.test(t)?NaN:+t},mu=1/0;var wu=function(t){return t?(t=yu(t))===mu||t===-1/0?17976931348623157e292*(0>t?-1:1):t==t?t:0:0===t?t:0};var gu=function(t){var e=wu(t),n=e%1;return e==e?n?e-n:e:0};var bu=function(t,e){var n;if("function"!=typeof e)throw new TypeError("Expected a function");return t=gu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t>1||(e=void 0),n}};var xu=function(t){return bu(2,t)};var _u=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n};var Eu=function(t){return function(e){return null==t?void 0:t[e]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});var Ou=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o},Pu=pe?pe.prototype:void 0,ju=Pu?Pu.toString:void 0;var Su=function t(e){if("string"==typeof e)return e;if(Te(e))return Ou(e,t)+"";if(lu(e))return ju?ju.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};var Au=function(t){return null==t?"":Su(t)},Tu=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mu=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g;var Lu=function(t){return(t=Au(t))&&t.replace(Tu,Eu).replace(Mu,"")},Fu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var ku=function(t){return t.match(Fu)||[]},Nu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Cu=function(t){return Nu.test(t)},Iu="\\u2700-\\u27bf",Ru="a-z\\xdf-\\xf6\\xf8-\\xff",Du="A-Z\\xc0-\\xd6\\xd8-\\xde",Uu="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bu="["+Uu+"]",Gu="\\d+",Hu="[\\u2700-\\u27bf]",Wu="["+Ru+"]",zu="[^\\ud800-\\udfff"+Uu+Gu+Iu+Ru+Du+"]",qu="(?:\\ud83c[\\udde6-\\uddff]){2}",Ku="[\\ud800-\\udbff][\\udc00-\\udfff]",$u="["+Du+"]",Yu="(?:"+Wu+"|"+zu+")",Vu="(?:"+$u+"|"+zu+")",Zu="(?:['’](?:d|ll|m|re|s|t|ve))?",Qu="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ju="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",Xu="[\\ufe0e\\ufe0f]?",ta=Xu+Ju+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",qu,Ku].join("|")+")"+Xu+Ju+")*"),ea="(?:"+[Hu,qu,Ku].join("|")+")"+ta,na=RegExp([$u+"?"+Wu+"+"+Zu+"(?="+[Bu,$u,"$"].join("|")+")",Vu+"+"+Qu+"(?="+[Bu,$u+Yu,"$"].join("|")+")",$u+"?"+Yu+"+"+Zu,$u+"+"+Qu,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gu,ea].join("|"),"g");var ra=function(t){return t.match(na)||[]};var oa=function(t,e,n){return t=Au(t),void 0===(e=n?void 0:e)?Cu(t)?ra(t):ku(t):t.match(e)||[]},ia=/['’]/g;var ua=function(t){return function(e){return _u(oa(Lu(e).replace(ia,"")),t,"")}}((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));function aa(t){return Array.isArray(t)?t:[t]}var ca="function"==typeof window.Zone?setTimeout:function(t){return Promise.resolve().then(t)},sa=!1;var fa=new WeakMap;var la="function"==typeof document.all&&void 0===document.all,pa=new WeakMap,da=new WeakMap;function ha(t){return function(e){return'<div id="'.concat(va(t),'" data-name="').concat(t,'" data-version="').concat("2.6.3",'">').concat(e,"</div>")}}function va(t){return"__qiankun_microapp_wrapper_for_".concat(ua(t),"__")}var ya=Function("return this")(),ma=xu((function(){return ya.hasOwnProperty("__app_instance_name_map__")||Object.defineProperty(ya,"__app_instance_name_map__",{enumerable:!1,configurable:!0,writable:!0,value:{}}),ya.__app_instance_name_map__})),wa=function(t){var e=ma();return t in e?(e[t]++,"".concat(t,"_").concat(e[t])):(ya.__app_instance_name_map__[t]=0,t)};function ga(t){var e=null!=t?t:{},n=e.mount,r=e.unmount;return Ze(e.bootstrap)&&Ze(n)&&Ze(r)}var ba=function t(){var e=this;qo(this,t),this.promise=void 0,this.resolve=void 0,this.reject=void 0,this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))};function xa(t){return"object"===g(t)&&(!t.strictStyleIsolation&&!!t.experimentalStyleIsolation)}function _a(t){return"string"==typeof t?document.querySelector(t):t}var Ea=null;function Oa(){return Ea}function Pa(t){Ea=t}var ja=new WeakMap;function Sa(t,e){if(function(t){if(pa.has(t))return!0;var e=la?"function"==typeof t&&void 0!==t:"function"==typeof t;return e&&pa.set(t,e),e}(e)&&!function(t){if(da.has(t))return da.get(t);var e=0===t.name.indexOf("bound ")&&!t.hasOwnProperty("prototype");return da.set(t,e),e}(e)&&!function(t){var e=t.prototype&&t.prototype.constructor===t&&Object.getOwnPropertyNames(t.prototype).length>1;if(e)return!0;if(fa.has(t))return fa.get(t);var n=e;if(!n){var r=""+t;n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return fa.set(t,n),n}(e)){var n=ja.get(e);if(n)return n;var r=Function.prototype.bind.call(e,t);for(var o in e)r[o]=e[o];if(e.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:e.prototype,enumerable:!1,writable:!0}),"function"==typeof e.toString){var i=e.hasOwnProperty("toString")&&!r.hasOwnProperty("toString");if(i||r.toString===Function.prototype.toString){var u=Object.getOwnPropertyDescriptor(i?e:Function.prototype,"toString");Object.defineProperty(r,"toString",E(E({},u),(null==u?void 0:u.get)?null:{value:function(){return""+e}}))}}return ja.set(e,r),r}return e}var Aa,Ta=function(){function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;qo(this,e),this.addedPropsMapInSandbox=new Map,this.modifiedPropsOriginalValueMapInSandbox=new Map,this.currentUpdatedPropsValueMap=new Map,this.name=void 0,this.proxy=void 0,this.globalContext=void 0,this.type=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.name=n,this.globalContext=o,this.type=t.SandBoxType.LegacyProxy;var i=this.addedPropsMapInSandbox,u=this.modifiedPropsOriginalValueMapInSandbox,a=this.currentUpdatedPropsValueMap,c=o,s=Object.create(null),f=function(t,e,n){var o=3>=arguments.length||void 0===arguments[3]||arguments[3];return!r.sandboxRunning||(c.hasOwnProperty(t)?u.has(t)||u.set(t,n):i.set(t,e),a.set(t,e),o&&(c[t]=e),r.latestSetProp=t,!0)},l=new Proxy(s,{set:function(t,e,n){return f(e,n,c[e],!0)},get:function(t,e){return"top"===e||"parent"===e||"window"===e||"self"===e?l:Sa(c,c[e])},has:function(t,e){return e in c},getOwnPropertyDescriptor:function(t,e){var n=Object.getOwnPropertyDescriptor(c,e);return n&&!n.configurable&&(n.configurable=!0),n},defineProperty:function(t,e,n){var r=c[e],o=Reflect.defineProperty(c,e,n);return f(e,c[e],r,!1),o}});this.proxy=l}return uu(e,[{key:"setWindowProp",value:function(t,e,n){void 0===e&&n?delete this.globalContext[t]:function(t,e){var n=Object.getOwnPropertyDescriptor(t,e);return!n||n.configurable}(this.globalContext,t)&&"symbol"!==g(t)&&(Object.defineProperty(this.globalContext,t,{writable:!0,configurable:!0}),this.globalContext[t]=e)}},{key:"active",value:function(){var t=this;this.sandboxRunning||this.currentUpdatedPropsValueMap.forEach((function(e,n){return t.setWindowProp(n,e)})),this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;this.modifiedPropsOriginalValueMapInSandbox.forEach((function(e,n){return t.setWindowProp(n,e)})),this.addedPropsMapInSandbox.forEach((function(e,n){return t.setWindowProp(n,void 0,!0)})),this.sandboxRunning=!1}}]),e}();!function(t){t[t.STYLE=1]="STYLE",t[t.MEDIA=4]="MEDIA",t[t.SUPPORTS=12]="SUPPORTS",t[t.IMPORT=3]="IMPORT",t[t.FONT_FACE=5]="FONT_FACE",t[t.PAGE=6]="PAGE",t[t.KEYFRAMES=7]="KEYFRAMES",t[t.KEYFRAME=8]="KEYFRAME"}(Aa||(Aa={}));var Ma,La=function(t){return[].slice.call(t,0)},Fa=HTMLBodyElement.prototype.appendChild,ka=function(){function t(){qo(this,t),this.sheet=void 0,this.swapNode=void 0;var e=document.createElement("style");Fa.call(document.body,e),this.swapNode=e,this.sheet=e.sheet,this.sheet.disabled=!0}return uu(t,[{key:"process",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(""!==e.textContent){var o,i=document.createTextNode(e.textContent||"");this.swapNode.appendChild(i);var u=this.swapNode.sheet,a=La(null!==(o=null==u?void 0:u.cssRules)&&void 0!==o?o:[]),c=this.rewrite(a,r);return e.textContent=c,void this.swapNode.removeChild(i)}var s=new MutationObserver((function(o){for(var i=0;o.length>i;i+=1){if(t.ModifiedTag in e)return;if("childList"===o[i].type){var u,a=e.sheet,c=La(null!==(u=null==a?void 0:a.cssRules)&&void 0!==u?u:[]),s=n.rewrite(c,r);e.textContent=s,e[t.ModifiedTag]=!0}}}));s.observe(e,{childList:!0})}},{key:"rewrite",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="";return t.forEach((function(t){switch(t.type){case Aa.STYLE:r+=e.ruleStyle(t,n);break;case Aa.MEDIA:r+=e.ruleMedia(t,n);break;case Aa.SUPPORTS:r+=e.ruleSupport(t,n);break;default:r+="".concat(t.cssText)}})),r}},{key:"ruleStyle",value:function(t,e){var n=/((?:[^\w\-.#]|^)(body|html|:root))/gm,r=/(html[^\w{[]+)/gm,o=t.selectorText.trim(),i=t.cssText;if("html"===o||"body"===o||":root"===o)return i.replace(n,e);if(r.test(t.selectorText)){/(html[^\w{]+)(\+|~)/gm.test(t.selectorText)||(i=i.replace(r,""))}return i=i.replace(/^[\s\S]+{/,(function(t){return t.replace(/(^|,\n?)([^,]+)/g,(function(t,r,o){return n.test(t)?t.replace(n,(function(t){return t&&[",","("].includes(t[0])?"".concat(t[0]).concat(e):e})):"".concat(r).concat(e," ").concat(o.replace(/^ */,""))}))})),i}},{key:"ruleMedia",value:function(t,e){var n=this.rewrite(La(t.cssRules),e);return"@media ".concat(t.conditionText," {").concat(n,"}")}},{key:"ruleSupport",value:function(t,e){var n=this.rewrite(La(t.cssRules),e);return"@supports ".concat(t.conditionText," {").concat(n,"}")}}]),t}();ka.ModifiedTag="Symbol(style-modified-qiankun)";var Na="data-qiankun",Ca=function(t,e,n){Ma||(Ma=new ka),"LINK"===e.tagName&&console.warn("Feature: sandbox.experimentalStyleIsolation is not support for link element yet.");if(t){var r=(t.tagName||"").toLowerCase();if(r&&"STYLE"===e.tagName){var o="".concat(r,"[").concat(Na,'="').concat(n,'"]');Ma.process(e,o)}}},Ia=HTMLHeadElement.prototype.appendChild,Ra=HTMLHeadElement.prototype.removeChild,Da=HTMLBodyElement.prototype.appendChild,Ua=HTMLBodyElement.prototype.removeChild,Ba=HTMLHeadElement.prototype.insertBefore,Ga=HTMLElement.prototype.removeChild,Ha="SCRIPT",Wa="LINK",za="STYLE";function qa(t){return(null==t?void 0:t.toUpperCase())===Wa||(null==t?void 0:t.toUpperCase())===za||(null==t?void 0:t.toUpperCase())===Ha}function Ka(t){var e,n;return!t.textContent&&((null===(e=t.sheet)||void 0===e?void 0:e.cssRules.length)||(null===(n=ec(t))||void 0===n?void 0:n.length))}function $a(t,e){return Object.defineProperties(t,{srcElement:{get:e},target:{get:e}}),t}function Ya(t){var e=$a(new CustomEvent("load"),(function(){return t}));Ze(t.onload)?t.onload(e):t.dispatchEvent(e)}function Va(t){var e=$a(new CustomEvent("error"),(function(){return t}));Ze(t.onerror)?t.onerror(e):t.dispatchEvent(e)}function Za(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fetch,r=document.createElement("style"),o=t.href;return r.dataset.qiankunHref=o,n(o).then((function(t){return t.text()})).then((function(n){r.appendChild(document.createTextNode(n)),e(r),Ya(t)})).catch((function(){return Va(t)})),r}var Qa=new WeakMap,Ja=new WeakMap,Xa=new WeakMap;function tc(t){t.forEach((function(t){t instanceof HTMLStyleElement&&Ka(t)&&t.sheet&&Qa.set(t,t.sheet.cssRules)}))}function ec(t){return Qa.get(t)}function nc(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e,o=t.rawDOMAppendOrInsertBefore,i=t.isInvokedByMicroApp,u=t.containerConfigGetter;if(!qa(r.tagName)||!i(r))return o.call(this,r,n);if(r.tagName){var a=u(r),c=a.appName,s=a.appWrapperGetter,f=a.proxy,l=a.strictGlobal,p=a.dynamicStyleSheetElements,d=a.scopedCSS,h=a.excludeAssetFilter;switch(r.tagName){case Wa:case za:var v=e,y=v,m=y.href;if(h&&m&&h(m))return o.call(this,r,n);var w=s();if(d){var g,b=(null===(g=r.tagName)||void 0===g?void 0:g.toUpperCase())===Wa&&"stylesheet"===r.rel&&r.href;if(b){var x,_="function"==typeof os.fetch?os.fetch:null===(x=os.fetch)||void 0===x?void 0:x.fn;v=Za(r,(function(t){return Ca(w,t,c)}),_),Xa.set(r,v)}else Ca(w,v,c)}p.push(v);var E=w.contains(n)?n:null;return o.call(w,v,E);case Ha:var O=r,P=O.src,j=O.text;if(h&&P&&h(P))return o.call(this,r,n);var S=s(),A=os.fetch,T=S.contains(n)?n:null;if(P){Bo(null,[P],f,{fetch:A,strictGlobal:l,beforeExec:function(){var t;(!(t=Object.getOwnPropertyDescriptor(document,"currentScript"))||t.configurable)&&Object.defineProperty(document,"currentScript",{get:function(){return r},configurable:!0})},success:function(){Ya(r),r=null},error:function(){Va(r),r=null}});var M=document.createComment("dynamic script ".concat(P," replaced by qiankun"));return Ja.set(r,M),o.call(S,M,T)}Bo(null,["<script>".concat(j,"<\/script>")],f,{strictGlobal:l});var L=document.createComment("dynamic inline script replaced by qiankun");return Ja.set(r,L),o.call(S,L,T)}}return o.call(this,r,n)}}function rc(t,e){return function(n){var r=n.tagName;if(!qa(r))return t.call(this,n);try{var o;switch(r){case Wa:o=Xa.get(n)||n;break;case Ha:o=Ja.get(n)||n;break;default:o=n}var i=e(n)();if(i.contains(o))return Ga.call(i,o)}catch(t){console.warn(t)}return t.call(this,n)}}function oc(t,e){return HTMLHeadElement.prototype.appendChild===Ia&&HTMLBodyElement.prototype.appendChild===Da&&HTMLHeadElement.prototype.insertBefore===Ba&&(HTMLHeadElement.prototype.appendChild=nc({rawDOMAppendOrInsertBefore:Ia,containerConfigGetter:e,isInvokedByMicroApp:t}),HTMLBodyElement.prototype.appendChild=nc({rawDOMAppendOrInsertBefore:Da,containerConfigGetter:e,isInvokedByMicroApp:t}),HTMLHeadElement.prototype.insertBefore=nc({rawDOMAppendOrInsertBefore:Ba,containerConfigGetter:e,isInvokedByMicroApp:t})),HTMLHeadElement.prototype.removeChild===Ra&&HTMLBodyElement.prototype.removeChild===Ua&&(HTMLHeadElement.prototype.removeChild=rc(Ra,(function(t){return e(t).appWrapperGetter})),HTMLBodyElement.prototype.removeChild=rc(Ua,(function(t){return e(t).appWrapperGetter}))),function(){HTMLHeadElement.prototype.appendChild=Ia,HTMLHeadElement.prototype.removeChild=Ra,HTMLBodyElement.prototype.appendChild=Da,HTMLBodyElement.prototype.removeChild=Ua,HTMLHeadElement.prototype.insertBefore=Ba}}function ic(t,e){t.forEach((function(t){if(e(t)&&t instanceof HTMLStyleElement&&Ka(t)){var n=ec(t);if(n)for(var r=0;n.length>r;r++){var o=t.sheet;o.insertRule(n[r].cssText,o.cssRules.length)}}}))}var uc=0,ac=0;function cc(t,e,n){var r=3>=arguments.length||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,u=[],a=oc((function(){return $t(window.location).some((function(e){return e===t}))}),(function(){return{appName:t,appWrapperGetter:e,proxy:n,strictGlobal:!1,scopedCSS:o,dynamicStyleSheetElements:u,excludeAssetFilter:i}}));return r||uc++,r&&ac++,function(){return r||0===uc||uc--,r&&ac--,0===ac&&0===uc&&a(),tc(u),function(){ic(u,(function(t){var n=e();return!n.contains(t)&&(document.head.appendChild.call(n,t),!0)})),r&&(u=[])}}}Object.defineProperty(ya,"__proxyAttachContainerConfigMap__",{enumerable:!1,writable:!0}),ya.__proxyAttachContainerConfigMap__=ya.__proxyAttachContainerConfigMap__||new WeakMap;var sc=ya.__proxyAttachContainerConfigMap__,fc=new WeakMap,lc=new WeakMap;function pc(){var t=lc.get(document.createElement);if(!t){var e=document.createElement;Document.prototype.createElement=function(t,n){var r=e.call(this,t,n);if(qa(t)){var o=(Oa()||{}).window;if(o){var i=sc.get(o);i&&fc.set(r,i)}}return r},document.hasOwnProperty("createElement")&&(document.createElement=Document.prototype.createElement),lc.set(Document.prototype.createElement,e)}return function(){t&&(Document.prototype.createElement=t,document.createElement=t)}}var dc=0,hc=0;function vc(t,e,n){var r=3>=arguments.length||void 0===arguments[3]||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,u=sc.get(n);u||sc.set(n,u={appName:t,proxy:n,appWrapperGetter:e,dynamicStyleSheetElements:[],strictGlobal:!0,excludeAssetFilter:i,scopedCSS:o});var a=u,c=a.dynamicStyleSheetElements,s=pc(),f=oc((function(t){return fc.has(t)}),(function(t){return fc.get(t)}));return r||dc++,r&&hc++,function(){return r||0===dc||dc--,r&&hc--,0===hc&&0===dc&&(f(),s()),tc(c),function(){ic(c,(function(t){var n=e();return!n.contains(t)&&(Ia.call(n,t),!0)}))}}}var yc=window.setInterval,mc=window.clearInterval;var wc=window.addEventListener,gc=window.removeEventListener;function bc(e,n,r,o,i){var u,a,s=[function(){return function(t){var e=[];return t.clearInterval=function(t){return e=e.filter((function(e){return e!==t})),mc.call(window,t)},t.setInterval=function(t,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;r>i;i++)o[i-2]=arguments[i];var u=yc.apply(void 0,[t,n].concat(o));return e=[].concat(m(e),[u]),u},function(){return e.forEach((function(e){return t.clearInterval(e)})),t.setInterval=yc,t.clearInterval=mc,c}}(r.proxy)},function(){return function(t){var e=new Map;return t.addEventListener=function(t,n,r){var o=e.get(t)||[];return e.set(t,[].concat(m(o),[n])),wc.call(window,t,n,r)},t.removeEventListener=function(t,n,r){var o=e.get(t);return o&&o.length&&-1!==o.indexOf(n)&&o.splice(o.indexOf(n),1),gc.call(window,t,n,r)},function(){return e.forEach((function(e,n){return m(e).forEach((function(e){return t.removeEventListener(n,e)}))})),t.addEventListener=wc,t.removeEventListener=gc,c}}(r.proxy)},function(){return t=function(t){return c},e=[],n=[],window.g_history&&Ze(window.g_history.listen)&&(t=window.g_history.listen.bind(window.g_history),window.g_history.listen=function(r){e.push(r);var o=t(r);return n.push(o),function(){o(),n.splice(n.indexOf(o),1),e.splice(e.indexOf(r),1)}}),function(){var r=c;return e.length&&(r=function(){e.forEach((function(t){return window.g_history.listen(t)}))}),n.forEach((function(t){return t()})),window.g_history&&Ze(window.g_history.listen)&&(window.g_history.listen=t),r};var t,e,n}];return null===(a=(x(u={},t.SandBoxType.LegacyProxy,[].concat(s,[function(){return cc(e,n,r.proxy,!0,o,i)}])),x(u,t.SandBoxType.Proxy,[].concat(s,[function(){return vc(e,n,r.proxy,!0,o,i)}])),x(u,t.SandBoxType.Snapshot,[].concat(s,[function(){return cc(e,n,r.proxy,!0,o,i)}])),u)[r.type])||void 0===a?void 0:a.map((function(t){return t()}))}function xc(t){return t.filter((function(t){return!(t in this)&&(this[t]=!0)}),Object.create(null))}var _c=Object.defineProperty,Ec=window.__QIANKUN_DEVELOPMENT__?["__REACT_ERROR_OVERLAY_GLOBAL_HOOK__"]:[],Oc=["System","__cjsWrapper"].concat(Ec),Pc={undefined:!0,Array:!0,Object:!0,String:!0,Boolean:!0,Math:!0,Number:!0,Symbol:!0,parseFloat:!0,Float32Array:!0,isNaN:!0,Infinity:!0,Reflect:!0,Float64Array:!0,Function:!0,Map:!0,NaN:!0,Promise:!0,Proxy:!0,Set:!0,parseInt:!0,requestAnimationFrame:!0},jc=new Map([["fetch",!0],["mockDomAPIInBlackList",!1]]);function Sc(t){var e=new Map,n={};return Object.getOwnPropertyNames(t).filter((function(e){var n=Object.getOwnPropertyDescriptor(t,e);return!(null==n?void 0:n.configurable)})).forEach((function(r){var o=Object.getOwnPropertyDescriptor(t,r);if(o){var i=Object.prototype.hasOwnProperty.call(o,"get");"top"!==r&&"parent"!==r&&"self"!==r&&"window"!==r||(o.configurable=!0,i||(o.writable=!0)),i&&e.set(r,!0),_c(n,r,Object.freeze(o))}})),{fakeWindow:n,propertiesWithGetter:e}}var Ac=0,Tc=function(){function e(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;qo(this,e),this.updatedValueSet=new Set,this.name=void 0,this.type=void 0,this.proxy=void 0,this.globalContext=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.name=n,this.globalContext=o,this.type=t.SandBoxType.Proxy;var i=this.updatedValueSet,u=Sc(o),a=u.fakeWindow,c=u.propertiesWithGetter,s=new Map,f=function(t){return a.hasOwnProperty(t)||o.hasOwnProperty(t)},l=new Proxy(a,{set:function(t,e,u){if(r.sandboxRunning){if(r.registerRunningApp(n,l),!t.hasOwnProperty(e)&&o.hasOwnProperty(e)){var a=Object.getOwnPropertyDescriptor(o,e),c=a.writable;c&&Object.defineProperty(t,e,{configurable:a.configurable,enumerable:a.enumerable,writable:c,value:u})}else t[e]=u;return-1!==Oc.indexOf(e)&&(o[e]=u),i.add(e),r.latestSetProp=e,!0}return!0},get:function(t,e){if(r.registerRunningApp(n,l),e===Symbol.unscopables)return Pc;if("window"===e||"self"===e)return l;if("globalThis"===e)return l;if("top"===e||"parent"===e)return o===o.parent?l:o[e];if("hasOwnProperty"===e)return f;if("document"===e)return document;if("eval"===e)return eval;var i=c.has(e)?o[e]:e in t?t[e]:o[e];return Sa(jc.get(e)?ya:o,i)},has:function(t,e){return e in Pc||e in t||e in o},getOwnPropertyDescriptor:function(t,e){if(t.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(t,e);return s.set(e,"target"),n}if(o.hasOwnProperty(e)){var r=Object.getOwnPropertyDescriptor(o,e);return s.set(e,"globalContext"),r&&!r.configurable&&(r.configurable=!0),r}},ownKeys:function(t){return xc(Reflect.ownKeys(o).concat(Reflect.ownKeys(t)))},defineProperty:function(t,e,n){return"globalContext"===s.get(e)?Reflect.defineProperty(o,e,n):Reflect.defineProperty(t,e,n)},deleteProperty:function(t,e){return r.registerRunningApp(n,l),!t.hasOwnProperty(e)||(delete t[e],i.delete(e),!0)},getPrototypeOf:function(){return Reflect.getPrototypeOf(o)}});this.proxy=l,Ac++}return uu(e,[{key:"registerRunningApp",value:function(t,e){if(this.sandboxRunning){var n=Oa();n&&n.name===t||Pa({name:t,window:e}),r=function(){Pa(null)},sa||(sa=!0,ca((function(){r(),sa=!1})))}var r}},{key:"active",value:function(){this.sandboxRunning||Ac++,this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;0==--Ac&&Oc.forEach((function(e){t.proxy.hasOwnProperty(e)&&delete t.globalContext[e]})),this.sandboxRunning=!1}}]),e}();function Mc(t,e){for(var n in t)(t.hasOwnProperty(n)||"clearInterval"===n)&&e(n)}var Lc=function(){function e(n){qo(this,e),this.proxy=void 0,this.name=void 0,this.type=void 0,this.sandboxRunning=!0,this.windowSnapshot=void 0,this.modifyPropsMap={},this.name=n,this.proxy=window,this.type=t.SandBoxType.Snapshot}return uu(e,[{key:"active",value:function(){var t=this;this.windowSnapshot={},Mc(window,(function(e){t.windowSnapshot[e]=window[e]})),Object.keys(this.modifyPropsMap).forEach((function(e){window[e]=t.modifyPropsMap[e]})),this.sandboxRunning=!0}},{key:"inactive",value:function(){var t=this;this.modifyPropsMap={},Mc(window,(function(e){window[e]!==t.windowSnapshot[e]&&(t.modifyPropsMap[e]=window[e],window[e]=t.windowSnapshot[e])})),this.sandboxRunning=!1}}]),e}();function Fc(e,n,r,o,u,c){var s;s=window.Proxy?o?new Ta(e,c):new Tc(e,c):new Lc(e);var f=function(e,n,r,o,i){var u,a;return null===(a=(x(u={},t.SandBoxType.LegacyProxy,[function(){return cc(e,n,r.proxy,!1,o,i)}]),x(u,t.SandBoxType.Proxy,[function(){return vc(e,n,r.proxy,!1,o,i)}]),x(u,t.SandBoxType.Snapshot,[function(){return cc(e,n,r.proxy,!1,o,i)}]),u)[r.type])||void 0===a?void 0:a.map((function(t){return t()}))}(e,n,s,r,u),l=[],p=[];return{instance:s,mount:function(){return a(i.mark((function t(){var o,a;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:s.active(),o=p.slice(0,f.length),a=p.slice(f.length),o.length&&o.forEach((function(t){return t()})),l=bc(e,n,s,r,u),a.length&&a.forEach((function(t){return t()})),p=[];case 7:case"end":return t.stop()}}),t)})))()},unmount:function(){return a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p=[].concat(m(f),m(l)).map((function(t){return t()})),s.inactive();case 2:case"end":return t.stop()}}),t)})))()}}}var kc=["singular","sandbox","excludeAssetFilter","globalContext"];function Nc(t,e){if(!t){if(e)throw new ri(e);throw new ri("element not existed!")}}function Cc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return t.length?t.reduce((function(t,r){return t.then((function(){return r(e,n)}))}),Promise.resolve()):Promise.resolve()}function Ic(t,e){return Rc.apply(this,arguments)}function Rc(){return(Rc=a(i.mark((function t(e,n){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return","function"==typeof e?e(n):!!e);case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Dc=document.head.attachShadow||document.head.createShadowRoot;function Uc(t,e,n,r){var o=document.createElement("div");o.innerHTML=t;var i=o.firstChild;if(e)if(Dc){var u=i.innerHTML;i.innerHTML="",(i.attachShadow?i.attachShadow({mode:"open"}):i.createShadowRoot()).innerHTML=u}else console.warn("[qiankun]: As current browser not support shadow dom, your strictStyleIsolation configuration will be ignored!");if(n){i.getAttribute(Na)||i.setAttribute(Na,r);var a=i.querySelectorAll("style")||[];Hr(a,(function(t){Ca(i,t,r)}))}return i}function Bc(t,e,n,r,o){return function(){if(e){if(n)throw new ri("strictStyleIsolation can not be used with legacy render!");if(r)throw new ri("experimentalStyleIsolation can not be used with legacy render!");var i=document.getElementById(va(t));return Nc(i,"Wrapper element for ".concat(t," is not existed!")),i}var u=o();return Nc(u,"Wrapper element for ".concat(t," is not existed!")),n&&Dc?u.shadowRoot:u}}var Gc,Hc=HTMLElement.prototype.appendChild,Wc=HTMLElement.prototype.removeChild;function zc(t,e,n){return function(r,o){var i=r.element,u=r.container;if(n)return n({loading:r.loading,appContent:i?e:""});var a=_a(u);"unmounted"!==o&&Nc(a,function(){switch(o){case"loading":case"mounting":return"Target container with ".concat(u," not existed while ").concat(t," ").concat(o,"!");case"mounted":return"Target container with ".concat(u," not existed after ").concat(t," ").concat(o,"!");default:return"Target container with ".concat(u," not existed while ").concat(t," rendering!")}}());if(a&&!a.contains(i)){for(;a.firstChild;)Wc.call(a,a.firstChild);i&&Hc.call(a,i)}}}function qc(t,e,n,r){if(ga(t))return t;if(r){var o=n[r];if(ga(o))return o}var i=n[e];if(ga(i))return i;throw new ri("You need to export lifecycle functions in ".concat(e," entry"))}function Kc(t){return $c.apply(this,arguments)}function $c(){return $c=a(i.mark((function t(e){var n,r,o,u,c,s,f,p,d,h,v,y,m,w,b,x,_,O,P,j,S,A,T,M,L,F,k,N,C,I,R,D,U,B,G,H,W,z,q,K,$,Y,V,Z,Q,J,X,tt,et,nt,rt,ot,it,ut,at=arguments;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=at.length>1&&void 0!==at[1]?at[1]:{},u=at.length>2?at[2]:void 0,c=e.entry,f=wa(s=e.name),d=void 0!==(p=o.singular)&&p,v=void 0===(h=o.sandbox)||h,y=o.excludeAssetFilter,w=void 0===(m=o.globalContext)?window:m,b=l(o,kc),t.next=9,Ho(c,b);case 9:return _=(x=t.sent).template,O=x.execScripts,P=x.assetPublicPath,t.next=15,Ic(d,e);case 15:if(!t.sent){t.next=18;break}return t.next=18,Gc&&Gc.promise;case 18:return j=ha(f)(_),S="object"===g(v)&&!!v.strictStyleIsolation,A=xa(v),T=Uc(j,S,A,f),M="container"in e?e.container:void 0,(F=zc(f,j,L="render"in e?e.render:void 0))({element:T,loading:!0,container:M},"loading"),k=Bc(f,!!L,S,A,(function(){return T})),N=w,C=function(){return Promise.resolve()},I=function(){return Promise.resolve()},R="object"===g(v)&&!!v.loose,v&&(D=Fc(f,k,A,R,y,N),N=D.instance.proxy,C=D.mount,I=D.unmount),U=Lr({},zo(N,P),u,(function(t,e){return Ne(null!=t?t:[],null!=e?e:[])})),G=void 0===(B=U.beforeUnmount)?[]:B,W=void 0===(H=U.afterUnmount)?[]:H,q=void 0===(z=U.afterMount)?[]:z,$=void 0===(K=U.beforeMount)?[]:K,V=void 0===(Y=U.beforeLoad)?[]:Y,t.next=36,Cc(aa(V),e,N);case 36:return t.next=38,O(N,v&&!R);case 38:return Z=qc(t.sent,s,N,null===(n=D)||void 0===n||null===(r=n.instance)||void 0===r?void 0:r.latestSetProp),Q=Z.bootstrap,J=Z.mount,X=Z.unmount,tt=Z.update,et=ru(f),nt=et.onGlobalStateChange,rt=et.setGlobalState,ot=et.offGlobalStateChange,it=function(t){return T=t},ut=function(){var t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,o={name:f,bootstrap:Q,mount:[a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case"end":return t.stop()}}),t)}))),a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ic(d,e);case 2:if(t.t0=t.sent,!t.t0){t.next=5;break}t.t0=Gc;case 5:if(!t.t0){t.next=7;break}return t.abrupt("return",Gc.promise);case 7:return t.abrupt("return",void 0);case 8:case"end":return t.stop()}}),t)}))),a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=T,n=Bc(f,!!L,S,A,(function(){return t}));case 2:case"end":return e.stop()}}),e)}))),a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(r!==M)&&t||(t=Uc(j,S,A,f),it(t)),F({element:t,loading:!0,container:r},"mounting");case 3:case"end":return e.stop()}}),e)}))),C,a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Cc(aa($),e,N));case 1:case"end":return t.stop()}}),t)}))),function(){var t=a(i.mark((function t(e){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",J(E(E({},e),{},{container:n(),setGlobalState:rt,onGlobalStateChange:nt})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",F({element:t,loading:!1,container:r},"mounted"));case 1:case"end":return e.stop()}}),e)}))),a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Cc(aa(q),e,N));case 1:case"end":return t.stop()}}),t)}))),a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ic(d,e);case 2:if(!t.sent){t.next=4;break}Gc=new ba;case 4:case"end":return t.stop()}}),t)}))),a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case 1:case"end":return t.stop()}}),t)})))],unmount:[a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Cc(aa(G),e,N));case 1:case"end":return t.stop()}}),t)}))),function(){var t=a(i.mark((function t(e){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",X(E(E({},e),{},{container:n()})));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),I,a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Cc(aa(W),e,N));case 1:case"end":return t.stop()}}),t)}))),a(i.mark((function e(){return i.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:F({element:null,loading:!1,container:r},"unmounted"),ot(f),it(t=null);case 4:case"end":return e.stop()}}),e)}))),a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ic(d,e);case 2:if(t.t0=t.sent,!t.t0){t.next=5;break}t.t0=Gc;case 5:if(!t.t0){t.next=7;break}Gc.resolve();case 7:case"end":return t.stop()}}),t)})))]};return"function"==typeof tt&&(o.update=tt),o},t.abrupt("return",ut);case 44:case"end":return t.stop()}}),t)}))),$c.apply(this,arguments)}var Yc=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},Vc=!!navigator.connection&&(navigator.connection.saveData||"wifi"!==navigator.connection.type&&"ethernet"!==navigator.connection.type&&/([23])g/.test(navigator.connection.effectiveType));function Zc(t,e){navigator.onLine&&!Vc&&Yc(a(i.mark((function n(){var r,o;return i.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ho(t,e);case 2:o=(r=n.sent).getExternalScripts,Yc(r.getExternalStyleSheets),Yc(o);case 7:case"end":return n.stop()}}),n)}))))}function Qc(t,e){window.addEventListener("single-spa:first-mount",(function n(){t.filter((function(t){return qt(t.name)===C})).forEach((function(t){return Zc(t.entry,e)})),window.removeEventListener("single-spa:first-mount",n)}))}function Jc(t,e){t.forEach((function(t){return Zc(t.entry,e)}))}function Xc(t,e,n){var r=function(e){return t.filter((function(t){return e.includes(t.name)}))};if(Array.isArray(e))Qc(r(e),n);else if(Ze(e))a(i.mark((function o(){var u,a,c,s;return i.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e(t);case 2:s=void 0===(c=(u=o.sent).minorAppsName)?[]:c,Jc(r(void 0===(a=u.criticalAppNames)?[]:a),n),Qc(r(s),n);case 9:case"end":return o.stop()}}),o)})))();else switch(e){case!0:Qc(t,n);break;case"all":Jc(t,n)}}var ts=["name","activeRule","loader","props"],es=["mount"],ns=["prefetch","sandbox","singular","urlRerouteOnly"],rs=[],os={},is=!1,us=!0,as=new ba,cs=function(t){var e=t.sandbox,n=t.singular;return e&&!window.Proxy?(console.warn("[qiankun] Miss window.Proxy, proxySandbox will degenerate into snapshotSandbox"),!1===n&&console.warn("[qiankun] Setting singular as false may cause unexpected behavior while your browser not support window.Proxy"),E(E({},t),{},{sandbox:"object"===g(e)?E(E({},e),{},{loose:!0}):{loose:!0}})):t};var ss=new Map,fs=new Map;function ls(t){window.addEventListener("single-spa:no-app-change",(function e(){Wt().length||Pt(t),window.removeEventListener("single-spa:no-app-change",e)}))}t.__internalGetCurrentRunningApp=Oa,t.addErrorHandler=L,t.addGlobalUncaughtErrorHandler=function(t){window.addEventListener("error",t),window.addEventListener("unhandledrejection",t)},t.initGlobalState=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t===tu)console.warn("[qiankun] state has not changed!");else{var e=Xi(tu);nu(tu=Xi(t),e)}return ru("global-".concat(+new Date),!0)},t.loadMicroApp=function(t,e,n){var r,o,u=t.props,c=t.name,s="container"in t?t.container:void 0,f=function(t){if(t){var e=_a(t);if(e)return function(t,e){if(e.body.contains(t)){for(var n,r,o="",i=t;i!==e.documentElement;){for(n=0,r=i;r;)1===r.nodeType&&r.nodeName===i.nodeName&&(n+=1),r=r.previousSibling;o="*[name()='".concat(i.nodeName,"'][").concat(n,"]/").concat(o),i=i.parentNode}return(o="/*[name()='".concat(e.documentElement.nodeName,"']/").concat(o)).replace(/\/$/,"")}}(e,document)}}(s),l="".concat(c,"-").concat(f),p=function(t){var e=t;if(s&&f){var n=fs.get(l);if(null==n?void 0:n.length){var o=[a(i.mark((function t(){var e,o;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.slice(0,n.indexOf(r)),o=e.filter((function(t){return"LOAD_ERROR"!==t.getStatus()&&"SKIP_BECAUSE_BROKEN"!==t.getStatus()})),t.next=4,Promise.all(o.map((function(t){return t.unmountPromise})));case 4:case"end":return t.stop()}}),t)})))].concat(m(aa(e.mount)));e=E(E({},t),{},{mount:o})}}return E(E({},e),{},{bootstrap:function(){return Promise.resolve()}})},d=function(){var r=a(i.mark((function r(){var o,u,a,d,h;return i.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=cs(null!=e?e:E(E({},os),{},{singular:!1})),u=o.$$cacheLifecycleByAppName,!s){r.next=21;break}if(!u){r.next=12;break}if(!(a=ss.get(c))){r.next=12;break}return r.t0=p,r.next=9,a;case 9:return r.t1=r.sent,r.t2=(0,r.t1)(s),r.abrupt("return",(0,r.t0)(r.t2));case 12:if(!f){r.next=21;break}if(!(d=ss.get(l))){r.next=21;break}return r.t3=p,r.next=18,d;case 18:return r.t4=r.sent,r.t5=(0,r.t4)(s),r.abrupt("return",(0,r.t3)(r.t5));case 21:return h=Kc(t,o,n),s&&(u?ss.set(c,h):f&&ss.set(l,h)),r.next=25,h;case 25:return r.t6=r.sent,r.abrupt("return",(0,r.t6)(s));case 27:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();if(is||!1===(null==e?void 0:e.autoStart)||ue({urlRerouteOnly:null!==(o=os.urlRerouteOnly)&&void 0!==o?o:us}),r=st(d,E({domElement:document.createElement("div")},u)),s&&f){var h=fs.get(l)||[];h.push(r),fs.set(l,h);var v=function(){var t=h.indexOf(r);h.splice(t,1),r=null};r.unmountPromise.then(v).catch(v)}return r},t.prefetchApps=Jc,t.registerMicroApps=function(t,e){var n=t.filter((function(t){return!rs.some((function(e){return e.name===t.name}))}));rs=[].concat(m(rs),m(n)),n.forEach((function(t){var n,r=t.name,o=t.activeRule,u=t.loader,s=void 0===u?c:u,f=t.props,p=l(t,ts);Kt({name:r,app:(n=a(i.mark((function t(){var n,o,u;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s(!0),t.next=3,as.promise;case 3:return t.next=5,Kc(E({name:r,props:f},p),os,e);case 5:return t.t0=t.sent,n=(0,t.t0)(),o=n.mount,u=l(n,es),t.abrupt("return",E({mount:[a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s(!0));case 1:case"end":return t.stop()}}),t)})))].concat(m(aa(o)),[a(i.mark((function t(){return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",s(!1));case 1:case"end":return t.stop()}}),t)})))])},u));case 10:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),activeWhen:o,customProps:f})}))},t.removeErrorHandler=F,t.removeGlobalUncaughtErrorHandler=function(t){window.removeEventListener("error",t),window.removeEventListener("unhandledrejection",t)},t.runAfterFirstMounted=function(t){window.addEventListener("single-spa:first-mount",(function e(){t(),window.removeEventListener("single-spa:first-mount",e)}))},t.runDefaultMountEffects=function(t){console.warn("[qiankun] runDefaultMountEffects will be removed in next version, please use setDefaultMountApp instead"),ls(t)},t.setDefaultMountApp=ls,t.start=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=os=E({prefetch:!0,singular:!0,sandbox:!0},t),n=e.prefetch,r=e.urlRerouteOnly,o=void 0===r?us:r,i=l(e,ns);n&&Xc(rs,n,i),os=cs(os),ue({urlRerouteOnly:o}),is=!0,as.resolve()},Object.defineProperty(t,"__esModule",{value:!0})}));
  2. //# sourceMappingURL=index.umd.min.js.map