!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=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;++n0&&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=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();++er.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-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);++o0){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);++re)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")+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=/()[\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=/]*>[\s\S]*?<\/style>/gi,yo=/\s+rel=('|")?stylesheet\1.*/,mo=/.*\shref=('|")?([^>'"\s]+)/,wo=//g,go=//i,bo=//i,xo=//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),""))}),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=[];++n0&&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').concat(e,"")}}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,["