@94ai/softphone 5.0.11 → 5.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/html-softphone-demo/WebrtcDiver.js +320 -0
- package/html-softphone-demo/embed-ui/index.html +77 -0
- package/html-softphone-demo/{index-embed.html → embed-ui/softphone.js} +2 -204
- package/html-softphone-demo/embed-ui/util.js +123 -0
- package/html-softphone-demo/index-channel.html +904 -0
- package/html-softphone-demo/index-local.html +3 -10
- package/html-softphone-demo/index-switch-pcm.html +613 -0
- package/html-softphone-demo/{index-other.html → index-test.html} +10 -3
- package/html-softphone-demo/index.html +34 -26
- package/html-softphone-demo/micro-call-ui/CryptoJS.js +3 -0
- package/html-softphone-demo/micro-call-ui/index.html +75 -0
- package/html-softphone-demo/micro-call-ui/microphone.js +829 -0
- package/html-softphone-demo/micro-call-ui/qiankun.js +2 -0
- package/html-softphone-demo/micro-call-ui/util.js +17 -0
- package/html-softphone-demo/micro-call-ui/wujie.js +3 -0
- package/html-softphone-demo/pcm-server/16bit-44100.pcm +0 -0
- package/html-softphone-demo/pcm-server/index.html +110 -0
- package/html-softphone-demo/pcm-server/server.js +54 -0
- package/html-softphone-demo/softphone.umd.min.js +1 -2
- package/html-softphone-demo.7z +0 -0
- package/lib/index.d.ts +1 -1
- package/lib/softphone.cjs.min.cjs +1 -1
- package/lib/softphone.esm-bundler.min.mjs +1 -1
- package/lib/softphone.umd.min.js +1 -2
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).qiankun={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}var o=r((function(e){function t(e,t,n,r,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports})),i=n(o);var a=function(){},u=r((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports})),c=r((function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o=u(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;i.length>r;r++)0>t.indexOf(n=i[r])&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports})),s=n(c),l=r((function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports})),f=r((function(e){e.exports=function(e){if(Array.isArray(e))return l(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),p=r((function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),d=r((function(e){e.exports=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports})),h=r((function(e){e.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.")},e.exports.__esModule=!0,e.exports.default=e.exports})),v=n(r((function(e){e.exports=function(e){return f(e)||p(e)||d(e)||h()},e.exports.__esModule=!0,e.exports.default=e.exports}))),m=r((function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),y=n(m),g=r((function(e){var t=m.default;e.exports=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),b=r((function(e){var t=m.default;e.exports=function(e){var n=g(e,"string");return"symbol"===t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports})),w=r((function(e){e.exports=function(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports})),E=n(w),x=r((function(e){function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var n=1;arguments.length>n;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){w(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports})),S=n(x),_=r((function(e){var t=m.default;function n(){e.exports=n=function(){return o},e.exports.__esModule=!0,e.exports.default=e.exports;var r,o={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(r){p=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=Object.create((t&&t.prototype instanceof w?t:w).prototype),i=new R(r||[]);return u(o,"_invoke",{value:j(e,n,i)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}o.wrap=d;var v="suspendedStart",m="suspendedYield",y="executing",g="completed",b={};function w(){}function E(){}function x(){}var S={};p(S,s,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(D([])));O&&O!==i&&a.call(O,s)&&(S=O);var P=x.prototype=w.prototype=Object.create(S);function T(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,n){function r(o,i,u,c){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):n.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;u(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(i,i):i()}})}function j(e,t,n){var o=v;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=A(u,n);if(c){if(c===b)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=h(e,t,n);if("normal"===s.type){if(o=n.done?g:m,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=g,n.method="throw",n.arg=s.arg)}}}function A(e,t){var n=t.method,o=e.iterator[n];if(o===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,b;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,b):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return E.prototype=x,u(P,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:E,configurable:!0}),E.displayName=p(x,f,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,p(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},o.awrap=function(e){return{__await:e}},T(M.prototype),p(M.prototype,l,(function(){return this})),o.AsyncIterator=M,o.async=function(e,t,n,r,i){void 0===i&&(i=Promise);var a=new M(d(e,t,n,r),i);return o.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(P),p(P,f,"Generator"),p(P,s,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),o.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},o.values=D,R.prototype={constructor:R,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("end");if(this.prev>=i.tryLoc){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(i.catchLoc>this.prev)return n(i.catchLoc,!0);if(i.finallyLoc>this.prev)return n(i.finallyLoc)}else if(c){if(i.catchLoc>this.prev)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(i.finallyLoc>this.prev)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(this.prev>=r.tryLoc&&a.call(r,"finallyLoc")&&r.finallyLoc>this.prev){var o=r;break}}o&&("break"===e||"continue"===e)&&t>=o.tryLoc&&o.finallyLoc>=t&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:D(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),b}},o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})),O=_(),P=O;try{regeneratorRuntime=O}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=O:Function("r","regeneratorRuntime = r")(O)}var T=Object.freeze({__proto__:null,get start(){return st},get ensureJQuerySupport(){return Ie},get setBootstrapMaxTime(){return ge},get setMountMaxTime(){return be},get setUnmountMaxTime(){return we},get setUnloadMaxTime(){return Ee},get registerApplication(){return $e},get unregisterApplication(){return Xe},get getMountedApps(){return ze},get getAppStatus(){return Ye},get unloadApplication(){return Je},get checkActivityFunctions(){return Qe},get getAppNames(){return Ke},get pathToActiveWhen(){return tt},get navigateToUrl(){return je},get triggerAppChange(){return it},get addErrorHandler(){return D},get removeErrorHandler(){return k},get mountRootParcel(){return de},get NOT_LOADED(){return N},get LOADING_SOURCE_CODE(){return H},get NOT_BOOTSTRAPPED(){return V},get BOOTSTRAPPING(){return B},get NOT_MOUNTED(){return F},get MOUNTING(){return U},get UPDATING(){return q},get LOAD_ERROR(){return Y},get MOUNTED(){return W},get UNLOADING(){return K},get UNMOUNTING(){return z},get SKIP_BECAUSE_BROKEN(){return $}});function M(e){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}).CustomEvent,L=function(){try{var e=new A("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?A:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=!!t.bubbles,n.cancelable=!!t.cancelable,n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n},C=[];function R(e,t,n){var r=I(e,t,n);C.length?C.forEach((function(e){return e(r)})):setTimeout((function(){throw r}))}function D(e){if("function"!=typeof e)throw Error(G(28,!1));C.push(e)}function k(e){if("function"!=typeof e)throw Error(G(29,!1));var t=!1;return C=C.filter((function(n){var r=n===e;return t=t||r,!r})),t}function G(e,t){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(e,": ").concat(t?t+" ":"","See https://single-spa.js.org/error/?code=").concat(e).concat(r.length?"&arg=".concat(r.join("&arg=")):"")}function I(e,t,n){var r,o="".concat(ee(t)," '").concat(J(t),"' died in status ").concat(t.status,": ");if(e instanceof Error){try{e.message=o+e.message}catch(e){}r=e}else{console.warn(G(30,!1,t.status,J(t)));try{r=Error(o+JSON.stringify(e))}catch(t){r=e}}return r.appOrParcelName=J(t),t.status=n,r}var N="NOT_LOADED",H="LOADING_SOURCE_CODE",V="NOT_BOOTSTRAPPED",B="BOOTSTRAPPING",F="NOT_MOUNTED",U="MOUNTING",W="MOUNTED",q="UPDATING",z="UNMOUNTING",K="UNLOADING",Y="LOAD_ERROR",$="SKIP_BECAUSE_BROKEN";function Q(e){return e.status===W}function X(e){try{return e.activeWhen(window.location)}catch(t){return R(t,e,$),!1}}function J(e){return e.name}function Z(e){return!!e.unmountThisParcel}function ee(e){return Z(e)?"parcel":"application"}function te(){for(var e=arguments.length-1;e>0;e--)for(var t in arguments[e])"__proto__"!==t&&(arguments[e-1][t]=arguments[e][t]);return arguments[0]}function ne(e,t){for(var n=0;e.length>n;n++)if(t(e[n]))return e[n];return null}function re(e){return e&&("function"==typeof e||Array.isArray(t=e)&&!ne(t,(function(e){return"function"!=typeof e})));var t}function oe(e,t){var n=e[t]||[];0===(n=Array.isArray(n)?n:[n]).length&&(n=[function(){return Promise.resolve()}]);var r=ee(e),o=J(e);return function(e){return n.reduce((function(n,i,a){return n.then((function(){var n=i(e);return ie(n)?n:Promise.reject(G(15,!1,r,o,t,a))}))}),Promise.resolve())}}function ie(e){return e&&"function"==typeof e.then&&"function"==typeof e.catch}function ae(e,t){return Promise.resolve().then((function(){return e.status!==V?e:(e.status=B,e.bootstrap?xe(e,"bootstrap").then(n).catch((function(n){if(t)throw I(n,e,$);return R(n,e,$),e})):Promise.resolve().then(n))}));function n(){return e.status=F,e}}function ue(e,t){return Promise.resolve().then((function(){if(e.status!==W)return e;e.status=z;var n=Object.keys(e.parcels).map((function(t){return e.parcels[t].unmountThisParcel()}));return Promise.all(n).then(r,(function(n){return r().then((function(){var r=Error(n.message);if(t)throw I(r,e,$);R(r,e,$)}))})).then((function(){return e}));function r(){return xe(e,"unmount").then((function(){e.status=F})).catch((function(n){if(t)throw I(n,e,$);R(n,e,$)}))}}))}var ce=!1,se=!1;function le(e,t){return Promise.resolve().then((function(){return e.status!==F?e:(ce||(window.dispatchEvent(new L("single-spa:before-first-mount")),ce=!0),xe(e,"mount").then((function(){return e.status=W,se||(window.dispatchEvent(new L("single-spa:first-mount")),se=!0),e})).catch((function(n){return e.status=W,ue(e,!0).then(r,r);function r(){if(t)throw I(n,e,$);return R(n,e,$),e}})))}))}var fe=0,pe={parcels:{}};function de(){return he.apply(pe,arguments)}function he(e,t){var n=this;if(!e||"object"!==M(e)&&"function"!=typeof e)throw Error(G(2,!1));if(e.name&&"string"!=typeof e.name)throw Error(G(3,!1,M(e.name)));if("object"!==M(t))throw Error(G(4,!1,name,M(t)));if(!t.domElement)throw Error(G(5,!1,name));var r,o=fe++,i="function"==typeof e,a=i?e:function(){return Promise.resolve(e)},u={id:o,parcels:{},status:i?H:V,customProps:t,parentName:J(n),unmountThisParcel:function(){return p.then((function(){if(u.status!==W)throw Error(G(6,!1,name,u.status));return ue(u,!0)})).then((function(e){return u.parentName&&delete n.parcels[u.id],e})).then((function(e){return s(e),e})).catch((function(e){throw u.status=$,l(e),e}))}};n.parcels[o]=u;var c=a();if(!c||"function"!=typeof c.then)throw Error(G(7,!1));var s,l,f=(c=c.then((function(e){if(!e)throw Error(G(8,!1));var t=e.name||"parcel-".concat(o);if(Object.prototype.hasOwnProperty.call(e,"bootstrap")&&!re(e.bootstrap))throw Error(G(9,!1,t));if(!re(e.mount))throw Error(G(10,!1,t));if(!re(e.unmount))throw Error(G(11,!1,t));if(e.update&&!re(e.update))throw Error(G(12,!1,t));var n=oe(e,"bootstrap"),i=oe(e,"mount"),a=oe(e,"unmount");u.status=V,u.name=t,u.bootstrap=n,u.mount=i,u.unmount=a,u.timeouts=Se(e.timeouts),e.update&&(u.update=oe(e,"update"),r.update=function(e){return u.customProps=e,ve(function(e){return Promise.resolve().then((function(){if(e.status!==W)throw Error(G(32,!1,J(e)));return e.status=q,xe(e,"update").then((function(){return e.status=W,e})).catch((function(t){throw I(t,e,$)}))}))}(u))})}))).then((function(){return ae(u,!0)})),p=f.then((function(){return le(u,!0)})),d=new Promise((function(e,t){s=e,l=t}));return r={mount:function(){return ve(Promise.resolve().then((function(){if(u.status!==F)throw Error(G(13,!1,name,u.status));return n.parcels[o]=u,le(u)})))},unmount:function(){return ve(u.unmountThisParcel())},getStatus:function(){return u.status},loadPromise:ve(c),bootstrapPromise:ve(f),mountPromise:ve(p),unmountPromise:ve(d)}}function ve(e){return e.then((function(){return null}))}function me(e){var t=J(e),n="function"==typeof e.customProps?e.customProps(t,window.location):e.customProps;("object"!==M(n)||null===n||Array.isArray(n))&&(n={},console.warn(G(40,!1),t,n));var r=te({},n,{name:t,mountParcel:he.bind(e),singleSpa:T});return Z(e)&&(r.unmountSelf=e.unmountThisParcel),r}var ye={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 ge(e,t,n){if("number"!=typeof e||0>=e)throw Error(G(16,!1));ye.bootstrap={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function be(e,t,n){if("number"!=typeof e||0>=e)throw Error(G(17,!1));ye.mount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function we(e,t,n){if("number"!=typeof e||0>=e)throw Error(G(18,!1));ye.unmount={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function Ee(e,t,n){if("number"!=typeof e||0>=e)throw Error(G(19,!1));ye.unload={millis:e,dieOnTimeout:t,warningMillis:n||1e3}}function xe(e,t){var n=e.timeouts[t],r=n.warningMillis,o=ee(e);return new Promise((function(i,a){var u=!1,c=!1;e[t](me(e)).then((function(e){u=!0,i(e)})).catch((function(e){u=!0,a(e)})),setTimeout((function(){return l(1)}),r),setTimeout((function(){return l(!0)}),n.millis);var s=G(31,!1,t,o,J(e),n.millis);function l(e){if(!u)if(!0===e)c=!0,n.dieOnTimeout?a(Error(s)):console.error(s);else if(!c){var t=e,o=t*r;console.warn(s),n.millis>o+r&&setTimeout((function(){return l(t+1)}),r)}}}))}function Se(e){var t={};for(var n in ye)t[n]=te({},ye[n],e&&e[n]||{});return t}function _e(e){return Promise.resolve().then((function(){return e.loadPromise?e.loadPromise:e.status!==N&&e.status!==Y?e:(e.status=H,e.loadPromise=Promise.resolve().then((function(){var r=e.loadApp(me(e));if(!ie(r))throw n=!0,Error(G(33,!1,J(e)));return r.then((function(n){var r;e.loadErrorTime=null,"object"!==M(t=n)&&(r=34),Object.prototype.hasOwnProperty.call(t,"bootstrap")&&!re(t.bootstrap)&&(r=35),re(t.mount)||(r=36),re(t.unmount)||(r=37);var o=ee(t);if(r){var i;try{i=JSON.stringify(t)}catch(e){}return console.error(G(r,!1,o,J(e),i),t),R(void 0,e,$),e}return t.devtools&&t.devtools.overlays&&(e.devtools.overlays=te({},e.devtools.overlays,t.devtools.overlays)),e.status=V,e.bootstrap=oe(t,"bootstrap"),e.mount=oe(t,"mount"),e.unmount=oe(t,"unmount"),e.unload=oe(t,"unload"),e.timeouts=Se(t.timeouts),delete e.loadPromise,e}))})).catch((function(t){var r;return delete e.loadPromise,n?r=$:(r=Y,e.loadErrorTime=(new Date).getTime()),R(t,e,r),e})));var t,n}))}var Oe,Pe="undefined"!=typeof window,Te={hashchange:[],popstate:[]},Me=["hashchange","popstate"];function je(e){var t;if("string"==typeof e)t=e;else if(this&&this.href)t=this.href;else{if(!(e&&e.currentTarget&&e.currentTarget.href&&e.preventDefault))throw Error(G(14,!1));t=e.currentTarget.href,e.preventDefault()}var n=ke(window.location.href),r=ke(t);0===t.indexOf("#")?window.location.hash=r.hash:n.host!==r.host&&r.host?window.location.href=t:r.pathname===n.pathname&&r.search===n.search?window.location.hash=r.hash:window.history.pushState(null,null,t)}function Ae(e){var t=this;if(e){var n=e[0].type;Me.indexOf(n)>=0&&Te[n].forEach((function(n){try{n.apply(t,e)}catch(e){setTimeout((function(){throw e}))}}))}}function Le(){at([],arguments)}function Ce(e,t){return function(){var n=window.location.href,r=e.apply(this,arguments),o=window.location.href;return Oe&&n===o||(lt()?window.dispatchEvent(function(e,t){var n;try{n=new PopStateEvent("popstate",{state:e})}catch(t){(n=document.createEvent("PopStateEvent")).initPopStateEvent("popstate",!1,!1,e)}return n.singleSpa=!0,n.singleSpaTrigger=t,n}(window.history.state,t)):at([])),r}}if(Pe){window.addEventListener("hashchange",Le),window.addEventListener("popstate",Le);var Re=window.addEventListener,De=window.removeEventListener;window.addEventListener=function(e,t){if("function"!=typeof t||0>Me.indexOf(e)||ne(Te[e],(function(e){return e===t})))return Re.apply(this,arguments);Te[e].push(t)},window.removeEventListener=function(e,t){if("function"!=typeof t||0>Me.indexOf(e))return De.apply(this,arguments);Te[e]=Te[e].filter((function(e){return e!==t}))},window.history.pushState=Ce(window.history.pushState,"pushState"),window.history.replaceState=Ce(window.history.replaceState,"replaceState"),window.singleSpaNavigate?console.warn(G(41,!1)):window.singleSpaNavigate=je}function ke(e){var t=document.createElement("a");return t.href=e,t}var Ge=!1;function Ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.jQuery;if(e||window.$&&window.$.fn&&window.$.fn.jquery&&(e=window.$),e&&!Ge){var t=e.fn.on,n=e.fn.off;e.fn.on=function(e,n){return Ne.call(this,t,window.addEventListener,e,n,arguments)},e.fn.off=function(e,t){return Ne.call(this,n,window.removeEventListener,e,t,arguments)},Ge=!0}}function Ne(e,t,n,r,o){return"string"!=typeof n?e.apply(this,o):(n.split(/\s+/).forEach((function(e){Me.indexOf(e)>=0&&(t(e,r),n=n.replace(e,""))})),""===n.trim()?this:e.apply(this,o))}var He={};function Ve(e){return Promise.resolve().then((function(){var t=He[J(e)];if(!t)return e;if(e.status===N)return Be(e,t),e;if(e.status===K)return t.promise.then((function(){return e}));if(e.status!==F&&e.status!==Y)return e;var n=e.status===Y?Promise.resolve():xe(e,"unload");return e.status=K,n.then((function(){return Be(e,t),e})).catch((function(n){return function(e,t,n){delete He[J(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,R(n,e,$),t.reject(n)}(e,t,n),e}))}))}function Be(e,t){delete He[J(e)],delete e.bootstrap,delete e.mount,delete e.unmount,delete e.unload,e.status=N,t.resolve()}function Fe(e,t,n,r){He[J(e)]={app:e,resolve:n,reject:r},Object.defineProperty(He[J(e)],"promise",{get:t})}function Ue(e){return He[e]}var We=[];function qe(){var e=[],t=[],n=[],r=[],o=(new Date).getTime();return We.forEach((function(i){var a=i.status!==$&&X(i);switch(i.status){case Y:a&&o-i.loadErrorTime>=200&&n.push(i);break;case N:case H:a&&n.push(i);break;case V:case F:!a&&Ue(J(i))?e.push(i):a&&r.push(i);break;case W:a||t.push(i)}})),{appsToUnload:e,appsToUnmount:t,appsToLoad:n,appsToMount:r}}function ze(){return We.filter(Q).map(J)}function Ke(){return We.map(J)}function Ye(e){var t=ne(We,(function(t){return J(t)===e}));return t?t.status:null}function $e(e,t,n,r){var o=function(e,t,n,r){var o,i={name:null,loadApp:null,activeWhen:null,customProps:null};return"object"===M(e)?(function(e){if(Array.isArray(e)||null===e)throw Error(G(39,!1));var t=["name","app","activeWhen","customProps"],n=Object.keys(e).reduce((function(e,n){return 0>t.indexOf(n)?e.concat(n):e}),[]);if(0!==n.length)throw Error(G(38,!1,t.join(", "),n.join(", ")));if("string"!=typeof e.name||0===e.name.length)throw Error(G(20,!1));if("object"!==M(e.app)&&"function"!=typeof e.app)throw Error(G(20,!1));var r=function(e){return"string"==typeof e||"function"==typeof e};if(!(r(e.activeWhen)||Array.isArray(e.activeWhen)&&e.activeWhen.every(r)))throw Error(G(24,!1));if(!et(e.customProps))throw Error(G(22,!1))}(e),i.name=e.name,i.loadApp=e.app,i.activeWhen=e.activeWhen,i.customProps=e.customProps):(function(e,t,n,r){if("string"!=typeof e||0===e.length)throw Error(G(20,!1));if(!t)throw Error(G(23,!1));if("function"!=typeof n)throw Error(G(24,!1));if(!et(r))throw Error(G(22,!1))}(e,t,n,r),i.name=e,i.loadApp=t,i.activeWhen=n,i.customProps=r),i.loadApp="function"!=typeof(o=i.loadApp)?function(){return Promise.resolve(o)}:o,i.customProps=function(e){return e||{}}(i.customProps),i.activeWhen=function(e){var t=Array.isArray(e)?e:[e];return t=t.map((function(e){return"function"==typeof e?e:tt(e)})),function(e){return t.some((function(t){return t(e)}))}}(i.activeWhen),i}(e,t,n,r);if(-1!==Ke().indexOf(o.name))throw Error(G(21,!1,o.name));We.push(te({loadErrorTime:null,status:N,parcels:{},devtools:{overlays:{options:{},selectors:[]}}},o)),Pe&&(Ie(),at())}function Qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return We.filter((function(t){return t.activeWhen(e)})).map(J)}function Xe(e){if(0===We.filter((function(t){return J(t)===e})).length)throw Error(G(25,!1,e));return Je(e).then((function(){var t=We.map(J).indexOf(e);We.splice(t,1)}))}function Je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{waitForUnmount:!1};if("string"!=typeof e)throw Error(G(26,!1));var n=ne(We,(function(t){return J(t)===e}));if(!n)throw Error(G(27,!1,e));var r,o=Ue(J(n));if(t&&t.waitForUnmount){if(o)return o.promise;var i=new Promise((function(e,t){Fe(n,(function(){return i}),e,t)}));return i}return o?(r=o.promise,Ze(n,o.resolve,o.reject)):r=new Promise((function(e,t){Fe(n,(function(){return r}),e,t),Ze(n,e,t)})),r}function Ze(e,t,n){ue(e).then(Ve).then((function(){t(),setTimeout((function(){at()}))})).catch(n)}function et(e){return!e||"function"==typeof e||"object"===M(e)&&null!==e&&!Array.isArray(e)}function tt(e,t){var n=function(e,t){var n=0,r=!1,o="^";"/"!==e[0]&&(e="/"+e);for(var i=0;e.length>i;i++){var a=e[i];(!r&&":"===a||r&&"/"===a)&&u(i)}return u(e.length),RegExp(o,"i");function u(i){var a=e.slice(n,i).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");if(o+=r?"[^/]+/?":a,i===e.length)if(r)t&&(o+="$");else{var u=t?"":".*";o="/"===o.charAt(o.length-1)?"".concat(o).concat(u,"$"):"".concat(o,"(/").concat(u,")?(#.*)?$")}r=!r,n=i}}(e,t);return function(e){var t=e.origin;t||(t="".concat(e.protocol,"//").concat(e.host));var r=e.href.replace(t,"").replace(e.search,"").split("?")[0];return n.test(r)}}var nt=!1,rt=[],ot=Pe&&window.location.href;function it(){return at()}function at(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(nt)return new Promise((function(e,n){rt.push({resolve:e,reject:n,eventArguments:t})}));var n,r=qe(),o=r.appsToUnload,i=r.appsToUnmount,a=r.appsToLoad,u=r.appsToMount,c=!1,s=ot,l=ot=window.location.href;return lt()?(nt=!0,n=o.concat(a,i,u),Promise.resolve().then((function(){if(window.dispatchEvent(new L(0===n.length?"single-spa:before-no-app-change":"single-spa:before-app-change",h(!0))),window.dispatchEvent(new L("single-spa:before-routing-event",h(!0,{cancelNavigation:f}))),c)return window.dispatchEvent(new L("single-spa:before-mount-routing-event",h(!0))),p(),void je(s);var t=o.map(Ve),r=i.map(ue).map((function(e){return e.then(Ve)})).concat(t),l=Promise.all(r);l.then((function(){window.dispatchEvent(new L("single-spa:before-mount-routing-event",h(!0)))}));var v=a.map((function(e){return _e(e).then((function(e){return ut(e,l)}))})),m=u.filter((function(e){return 0>a.indexOf(e)})).map((function(e){return ut(e,l)}));return l.catch((function(e){throw d(),e})).then((function(){return d(),Promise.all(v.concat(m)).catch((function(t){throw e.forEach((function(e){return e.reject(t)})),t})).then(p)}))}))):(n=a,Promise.resolve().then((function(){var e=a.map(_e);return Promise.all(e).then(d).then((function(){return[]})).catch((function(e){throw d(),e}))})));function f(){c=!0}function p(){var t=ze();e.forEach((function(e){return e.resolve(t)}));try{window.dispatchEvent(new L(0===n.length?"single-spa:no-app-change":"single-spa:app-change",h())),window.dispatchEvent(new L("single-spa:routing-event",h()))}catch(e){setTimeout((function(){throw e}))}if(nt=!1,rt.length>0){var r=rt;rt=[],at(r)}return t}function d(){e.forEach((function(e){Ae(e.eventArguments)})),Ae(t)}function h(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],f=arguments.length>1?arguments[1]:void 0,p={},d=(j(e={},W,[]),j(e,F,[]),j(e,N,[]),j(e,$,[]),e);r?(a.concat(u).forEach((function(e,t){v(e,W)})),o.forEach((function(e){v(e,N)})),i.forEach((function(e){v(e,F)}))):n.forEach((function(e){v(e)}));var h={detail:{newAppStatuses:p,appsByNewStatus:d,totalAppChanges:n.length,originalEvent:null==t?void 0:t[0],oldUrl:s,newUrl:l,navigationIsCanceled:c}};return f&&te(h.detail,f),h;function v(e,t){var n=J(e);t=t||Ye(n),p[n]=t,(d[t]=d[t]||[]).push(n)}}}function ut(e,t){return X(e)?ae(e).then((function(e){return t.then((function(){return X(e)?le(e):e}))})):t.then((function(){return e}))}var ct=!1;function st(e){ct=!0,e&&e.urlRerouteOnly&&(Oe=e.urlRerouteOnly),Pe&&at()}function lt(){return ct}Pe&&setTimeout((function(){ct||console.warn(G(1,!1))}),5e3),Pe&&window.__SINGLE_SPA_DEVTOOLS__&&(window.__SINGLE_SPA_DEVTOOLS__.exposedMethods={getRawAppData:function(){return[].concat(We)},reroute:at,NOT_LOADED:N,toLoadPromise:_e,toBootstrapPromise:ae,unregisterApplication:Xe});var ft=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e},pt="object"==typeof t&&t&&t.Object===Object&&t,dt="object"==typeof self&&self&&self.Object===Object&&self,ht=pt||dt||Function("return this")(),vt=ht.Symbol,mt=Object.prototype,yt=mt.hasOwnProperty,gt=mt.toString,bt=vt?vt.toStringTag:void 0;var wt=function(e){var t=yt.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var o=gt.call(e);return r&&(t?e[bt]=n:delete e[bt]),o},Et=Object.prototype.toString;var xt=function(e){return Et.call(e)},St=vt?vt.toStringTag:void 0;var _t=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":St&&St in Object(e)?wt(e):xt(e)};var Ot=function(e){return null!=e&&"object"==typeof e};var Pt=function(e){return Ot(e)&&"[object Arguments]"==_t(e)},Tt=Object.prototype,Mt=Tt.hasOwnProperty,jt=Tt.propertyIsEnumerable,At=Pt(function(){return arguments}())?Pt:function(e){return Ot(e)&&Mt.call(e,"callee")&&!jt.call(e,"callee")},Lt=At,Ct=Array.isArray,Rt=vt?vt.isConcatSpreadable:void 0;var Dt=function(e){return Ct(e)||Lt(e)||!!(Rt&&e&&e[Rt])};var kt=function e(t,n,r,o,i){var a=-1,u=t.length;for(r||(r=Dt),i||(i=[]);++a<u;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):ft(i,c):o||(i[i.length]=c)}return i};var Gt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var It=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return ft(Ct(n)?Gt(n):[n],kt(t,1))};var Nt=function(e,t){return e===t||e!=e&&t!=t};var Ht=function(e,t){for(var n=e.length;n--;)if(Nt(e[n][0],t))return n;return-1},Vt=Array.prototype.splice;var Bt=function(e){var t=this.__data__,n=Ht(t,e);return n>=0&&(n==t.length-1?t.pop():Vt.call(t,n,1),--this.size,!0)};var Ft=function(e){var t=this.__data__,n=Ht(t,e);return 0>n?void 0:t[n][1]};var Ut=function(e){return Ht(this.__data__,e)>-1};var Wt=function(e,t){var n=this.__data__,r=Ht(n,e);return 0>r?(++this.size,n.push([e,t])):n[r][1]=t,this};function qt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=function(){this.__data__=[],this.size=0},qt.prototype.delete=Bt,qt.prototype.get=Ft,qt.prototype.has=Ut,qt.prototype.set=Wt;var zt=qt;var Kt=function(){this.__data__=new zt,this.size=0};var Yt=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var $t=function(e){return this.__data__.get(e)};var Qt=function(e){return this.__data__.has(e)};var Xt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Jt,Zt=function(e){if(!Xt(e))return!1;var t=_t(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},en=ht["__core-js_shared__"],tn=(Jt=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||""))?"Symbol(src)_1."+Jt:"";var nn=function(e){return!!tn&&tn in e},rn=Function.prototype.toString;var on=function(e){if(null!=e){try{return rn.call(e)}catch(e){}try{return e+""}catch(e){}}return""},an=/^\[object .+?Constructor\]$/,un=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var cn=function(e){return!(!Xt(e)||nn(e))&&(Zt(e)?un:an).test(on(e))};var sn=function(e,t){return null==e?void 0:e[t]};var ln=function(e,t){var n=sn(e,t);return cn(n)?n:void 0},fn=ln(ht,"Map"),pn=ln(Object,"create");var dn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},hn=Object.prototype.hasOwnProperty;var vn=function(e){var t=this.__data__;if(pn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return hn.call(t,e)?t[e]:void 0},mn=Object.prototype.hasOwnProperty;var yn=function(e){var t=this.__data__;return pn?void 0!==t[e]:mn.call(t,e)};var gn=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=pn&&void 0===t?"__lodash_hash_undefined__":t,this};function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=function(){this.__data__=pn?pn(null):{},this.size=0},bn.prototype.delete=dn,bn.prototype.get=vn,bn.prototype.has=yn,bn.prototype.set=gn;var wn=bn;var En=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xn=function(e,t){var n=e.__data__;return En(t)?n["string"==typeof t?"string":"hash"]:n.map};var Sn=function(e){var t=xn(this,e).delete(e);return this.size-=t?1:0,t};var _n=function(e){return xn(this,e).get(e)};var On=function(e){return xn(this,e).has(e)};var Pn=function(e,t){var n=xn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Tn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tn.prototype.clear=function(){this.size=0,this.__data__={hash:new wn,map:new(fn||zt),string:new wn}},Tn.prototype.delete=Sn,Tn.prototype.get=_n,Tn.prototype.has=On,Tn.prototype.set=Pn;var Mn=Tn;var jn=function(e,t){var n=this.__data__;if(n instanceof zt){var r=n.__data__;if(!fn||199>r.length)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(r)}return n.set(e,t),this.size=n.size,this};function An(e){var t=this.__data__=new zt(e);this.size=t.size}An.prototype.clear=Kt,An.prototype.delete=Yt,An.prototype.get=$t,An.prototype.has=Qt,An.prototype.set=jn;var Ln=An,Cn=function(){try{var e=ln(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Rn=function(e,t,n){"__proto__"==t&&Cn?Cn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Dn=function(e,t,n){(void 0!==n&&!Nt(e[t],n)||void 0===n&&!(t in e))&&Rn(e,t,n)};var kn=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}}(),Gn=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?ht.Buffer:void 0,i=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=i?i(n):new e.constructor(n);return e.copy(r),r}})),In=ht.Uint8Array;var Nn=function(e){var t=new e.constructor(e.byteLength);return new In(t).set(new In(e)),t};var Hn=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Vn=Object.create,Bn=function(){function e(){}return function(t){if(!Xt(t))return{};if(Vn)return Vn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Fn=function(e,t){return function(n){return e(t(n))}},Un=Fn(Object.getPrototypeOf,Object),Wn=Object.prototype;var qn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wn)};var zn=function(e){return"function"!=typeof e.constructor||qn(e)?{}:Bn(Un(e))};var Kn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&9007199254740991>=e};var Yn=function(e){return null!=e&&Kn(e.length)&&!Zt(e)};var $n=function(e){return Ot(e)&&Yn(e)};var Qn=function(){return!1},Xn=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n?ht.Buffer:void 0;e.exports=(o?o.isBuffer:void 0)||Qn})),Jn=Function.prototype.toString,Zn=Object.prototype.hasOwnProperty,er=Jn.call(Object);var tr=function(e){if(!Ot(e)||"[object Object]"!=_t(e))return!1;var t=Un(e);if(null===t)return!0;var n=Zn.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Jn.call(n)==er},nr={};nr["[object Float32Array]"]=nr["[object Float64Array]"]=nr["[object Int8Array]"]=nr["[object Int16Array]"]=nr["[object Int32Array]"]=nr["[object Uint8Array]"]=nr["[object Uint8ClampedArray]"]=nr["[object Uint16Array]"]=nr["[object Uint32Array]"]=!0,nr["[object Arguments]"]=nr["[object Array]"]=nr["[object ArrayBuffer]"]=nr["[object Boolean]"]=nr["[object DataView]"]=nr["[object Date]"]=nr["[object Error]"]=nr["[object Function]"]=nr["[object Map]"]=nr["[object Number]"]=nr["[object Object]"]=nr["[object RegExp]"]=nr["[object Set]"]=nr["[object String]"]=nr["[object WeakMap]"]=!1;var rr=function(e){return Ot(e)&&Kn(e.length)&&!!nr[_t(e)]};var or=function(e){return function(t){return e(t)}},ir=r((function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,o=r&&r.exports===n&&pt.process,i=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i})),ar=ir&&ir.isTypedArray,ur=ar?or(ar):rr;var cr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},sr=Object.prototype.hasOwnProperty;var lr=function(e,t,n){var r=e[t];sr.call(e,t)&&Nt(r,n)&&(void 0!==n||t in e)||Rn(e,t,n)};var fr=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var u=t[i],c=r?r(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),o?Rn(n,u,c):lr(n,u,c)}return n};var pr=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},dr=/^(?:0|[1-9]\d*)$/;var hr=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&dr.test(e))&&e>-1&&e%1==0&&t>e},vr=Object.prototype.hasOwnProperty;var mr=function(e,t){var n=Ct(e),r=!n&&Lt(e),o=!n&&!r&&Xn(e),i=!n&&!r&&!o&&ur(e),a=n||r||o||i,u=a?pr(e.length,String):[],c=u.length;for(var s in e)!t&&!vr.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||hr(s,c))||u.push(s);return u};var yr=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},gr=Object.prototype.hasOwnProperty;var br=function(e){if(!Xt(e))return yr(e);var t=qn(e),n=[];for(var r in e)("constructor"!=r||!t&&gr.call(e,r))&&n.push(r);return n};var wr=function(e){return Yn(e)?mr(e,!0):br(e)};var Er=function(e){return fr(e,wr(e))};var xr=function(e,t,n,r,o,i,a){var u=cr(e,n),c=cr(t,n),s=a.get(c);if(s)Dn(e,n,s);else{var l=i?i(u,c,n+"",e,t,a):void 0,f=void 0===l;if(f){var p=Ct(c),d=!p&&Xn(c),h=!p&&!d&&ur(c);l=c,p||d||h?Ct(u)?l=u:$n(u)?l=Gt(u):d?(f=!1,l=Gn(c,!0)):h?(f=!1,l=Hn(c,!0)):l=[]:tr(c)||Lt(c)?(l=u,Lt(u)?l=Er(u):Xt(u)&&!Zt(u)||(l=zn(c))):f=!1}f&&(a.set(c,l),o(l,c,r,i,a),a.delete(c)),Dn(e,n,l)}};var Sr=function e(t,n,r,o,i){t!==n&&kn(n,(function(a,u){if(i||(i=new Ln),Xt(a))xr(t,n,u,r,e,o,i);else{var c=o?o(cr(t,u),a,u+"",t,n,i):void 0;void 0===c&&(c=a),Dn(t,u,c)}}),wr)};var _r=function(e){return e};var Or=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Pr=Math.max;var Tr=function(e,t,n){return t=Pr(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=Pr(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=r[o];return u[t]=n(a),Or(e,this,u)}};var Mr=function(e){return function(){return e}},jr=Date.now;var Ar=function(e){var t=0,n=0;return function(){var r=jr(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Lr=Ar(Cn?function(e,t){return Cn(e,"toString",{configurable:!0,enumerable:!1,value:Mr(t),writable:!0})}:_r);var Cr=function(e,t){return Lr(Tr(e,t,_r),e+"")};var Rr=function(e,t,n){if(!Xt(n))return!1;var r=typeof t;return!!("number"==r?Yn(n)&&hr(t,n.length):"string"==r&&t in n)&&Nt(n[t],e)};var Dr=function(e){return Cr((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Rr(n[0],n[1],a)&&(i=3>o?void 0:i,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,i)}return t}))}((function(e,t,n,r){Sr(e,t,n,r)}));var kr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Gr=Fn(Object.keys,Object),Ir=Object.prototype.hasOwnProperty;var Nr=function(e){if(!qn(e))return Gr(e);var t=[];for(var n in Object(e))Ir.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Hr=function(e){return Yn(e)?mr(e):Nr(e)};var Vr=function(e,t){return function(n,r){if(null==n)return n;if(!Yn(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(e,t){return e&&kn(e,t,Hr)}));var Br=function(e){return"function"==typeof e?e:_r};var Fr=function(e,t){return(Ct(e)?kr:Vr)(e,Br(t))};function Ur(e){return Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(e)}function Wr(e){var t=function(e,t){if("object"!==Ur(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ur(t)?t:t+""}function qr(e,t,n){return(t=Wr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);t>n;n++)r[n]=e[n];return r}function Kr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(e,t):void 0}}(e,t)||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.")}()}var Yr,$r,Qr,Xr="undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Trident");function Jr(e,t){if(!e.hasOwnProperty(t)||!isNaN(t)&&e.length>t)return!0;if(!Xr)return!1;try{return e[t]&&"undefined"!=typeof window&&e[t].parent===window}catch(e){return!0}}function Zr(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function eo(e){if("object"===Ur(e))return"/";try{var t=new URL(e,location.href),n=t.origin,r=t.pathname.split("/");return r.pop(),"".concat(n).concat(r.join("/"),"/")}catch(e){return console.warn(e),""}}var to=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};var no={};function ro(e){return(new DOMParser).parseFromString('<script src="'.concat(e,'"><\/script>'),"text/html").scripts[0].src}var oo=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,io=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,ao=/.*\ssrc=('|")?([^>'"\s]+)/,uo=/.*\stype=('|")?([^>'"\s]+)/,co=/.*\sentry\s*.*/,so=/.*\sasync\s*.*/,lo=/.*\scrossorigin=('|")?use-credentials\1/,fo=/.*\snomodule\s*.*/,po=/.*\stype=('|")?module('|")?\s*.*/,ho=/<(link)\s+[\s\S]*?>/gi,vo=/\srel=('|")?(preload|prefetch)\1/,mo=/.*\shref=('|")?([^>'"\s]+)/,yo=/.*\sas=('|")?font\1.*/,go=/<style[^>]*>[\s\S]*?<\/style>/gi,bo=/\s+rel=('|")?stylesheet\1.*/,wo=/.*\shref=('|")?([^>'"\s]+)/,Eo=/<!--([\s\S]*?)-->/g,xo=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,So=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,_o=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i;function Oo(e){return e.startsWith("http://")||e.startsWith("https://")}function Po(e,t){return""+new URL(e,t)}var To=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"prefetch/preload":""," link ").concat(e," replaced by import-html-entry --\x3e")},Mo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"\x3c!-- ".concat(arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"cors":""," ").concat(t?"async":""," script ").concat(e," replaced by import-html-entry --\x3e")},jo="\x3c!-- inline scripts replaced by import-html-entry --\x3e",Ao=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by import-html-entry --\x3e")},Lo=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by import-html-entry --\x3e")};function Co(e,t,n){var r=[],o=[],i=null,a="noModule"in document.createElement("script"),u={template:e.replace(Eo,"").replace(ho,(function(e){if(!!e.match(bo)){var n=e.match(wo),r=e.match(xo);if(n){var i=n&&n[2],a=i;return i&&!Oo(i)&&(a=Po(i,t)),r?Ao(a):(a=ro(a),o.push(a),To(a))}}if(e.match(vo)&&e.match(mo)&&!e.match(yo)){var u=Kr(e.match(mo),3);return To(u[2],!0)}return e})).replace(go,(function(e){return So.test(e)?Ao("style file"):e})).replace(oo,(function(e,n){var o,u=n.match(_o),c=a&&!!n.match(fo)||!a&&!!n.match(po),s=n.match(uo);if((o=s&&s[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return e;if(io.test(e)&&n.match(ao)){var l=n.match(co),f=n.match(ao),p=f&&f[2];if(i&&l)throw new SyntaxError("You should not set multiply entry script!");if(p&&(Oo(p)||(p=Po(p,t)),p=ro(p)),i=i||l&&p,u)return Ao(p||"js file");if(c)return Lo(p||"js file",a);if(p){var d=!!n.match(so),h=!!n.match(lo);return r.push(d||h?{async:d,src:p,crossOrigin:h}:p),Mo(p,d,h)}return e}return u?Ao("js file"):c?Lo("js file",a):(Zr(e).split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}))||r.push(e),jo)})),scripts:r=r.filter((function(e){return!!e})),styles:o,entry:i||r[r.length-1]};return"function"==typeof n&&(u=n(u)),u}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Do(e){for(var t=1;arguments.length>t;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){qr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ko={},Go={},Io={};if(!window.fetch)throw Error('[import-html-entry] Here is no "fetch" on the window env, you need to polyfill it');var No=window.fetch.bind(window);function Ho(e){return e}function Vo(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetch,r=e;return Fo(t,void 0===n?No:n).then((function(e){return r=t.reduce((function(t,n,r){return t=t.replace(To(n),Bo(n)?"".concat(n):"<style>/* ".concat(n," */").concat(e[r],"</style>"))}),r),r}))}var Bo=function(e){return e.startsWith("<")};function Fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:No;return Promise.all(e.map((function(e){return Bo(e)?Zr(e):ko[e]||(ko[e]=t(e).then((function(e){return e.text()})))})))}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:No,n=function(e,n){return Go[e]||(Go[e]=t(e,n).then((function(t){if(t.status>=400)throw Error("".concat(e," load failed with status ").concat(t.status));return t.text()})))};return Promise.all(e.map((function(e){if("string"==typeof e)return Bo(e)?Zr(e):n(e);var t=e.src,r=e.crossOrigin?{credentials:"include"}:{};return e.async?{src:t,async:!0,content:new Promise((function(e,o){return to((function(){return n(t,r).then(e,o)}))}))}:n(t,r)})))}function Wo(e,t){setTimeout((function(){throw console.error(t),e}))}function qo(e,t){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=r.strictGlobal,a=void 0!==i&&i,u=r.success,c=r.error,s=void 0===c?function(){}:c,l=r.beforeExec,f=void 0===l?function(){}:l,p=r.afterExec,d=void 0===p?function(){}:p,h=r.scopedGlobalVariables,v=void 0===h?[]:h;return Uo(t,void 0===o?No:o).then((function(r){var o=function(e,t){var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.proxy,o=n.strictGlobal,i=n.scopedGlobalVariables,a=void 0===i?[]:i,u=Bo(e)?"":"//# sourceURL=".concat(e,"\n"),c=a.length?"const {".concat(a.join(","),"}=this;"):"";return(0,eval)("window").proxy=r,o?c?";(function(){with(this){".concat(c).concat(t,"\n").concat(u,"}}).bind(window.proxy)();"):";(function(window, self, globalThis){with(window){;".concat(t,"\n").concat(u,"}}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);"):";(function(window, self, globalThis){;".concat(t,"\n").concat(u,"}).bind(window.proxy)(window.proxy, window.proxy, window.proxy);")}(e,f(t,e)||t,{proxy:n,strictGlobal:a,scopedGlobalVariables:v});!function(e,t){var n=e;no[n]||(no[n]=(0,eval)("(function(){".concat(t,"})"))),no[n].call(window)}(e,r),d(t,e)};function i(t,r,i){if(t===e){!function(e){for(var t in Yr=$r=void 0,e)Jr(e,t)||(Yr?$r||($r=t):Yr=t,Qr=t)}(a?n:window);try{o(t,r);var u=n[function(e){var t,n=0,r=!1;for(var o in e)if(!Jr(e,o)){for(var i=0;i<window.frames.length&&!r;i++)if(window.frames[i]===e[o]){r=!0;break}if(!r&&(0===n&&o!==Yr||1===n&&o!==$r))return o;n++,t=o}if(t!==Qr)return t}(a?n:window)]||{};i(u)}catch(e){throw console.error("[import-html-entry]: error occurs while executing entry script ".concat(t)),e}}else if("string"==typeof r)try{o(null!=t&&t.src?t.src:t,r)}catch(e){Wo(e,"[import-html-entry]: error occurs while executing normal script ".concat(t))}else r.async&&(null==r||r.content.then((function(e){return o(r.src,e)})).catch((function(e){Wo(e,"[import-html-entry]: error occurs while executing async script ".concat(r.src))})))}function c(n,o){t.length>n&&(i(t[n],r[n],o),e||n!==t.length-1?c(n+1,o):o())}return new Promise((function(e){return c(0,u||e)}))})).catch((function(e){throw s(),e}))}function zo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=No,r=!1,o=eo,i=Ho,a=t.postProcessTemplate;return"function"==typeof t?n=t:(t.fetch&&("function"==typeof t.fetch?n=t.fetch:(n=t.fetch.fn||No,r=!!t.fetch.autoDecodeResponse)),o=t.getPublicPath||t.getDomain||eo,i=t.getTemplate||Ho),Io[e]||(Io[e]=n(e).then((function(e){return function(e,t){if(!t)return e.text();if(!e.headers)return e.text();var n=e.headers.get("Content-Type");if(!n)return e.text();var r="utf-8",o=n.split(";");if(2===o.length){var i=Kr(o[1].split("="),2)[1],a=i&&i.trim();a&&(r=a)}return"UTF-8"===r.toUpperCase()?e.text():e.blob().then((function(e){return new Promise((function(t,n){var o=new window.FileReader;o.onload=function(){t(o.result)},o.onerror=n,o.readAsText(e,r)}))}))}(e,r)})).then((function(t){var r=o(e),u=Co(i(t),r,a),c=u.scripts,s=u.entry,l=u.styles;return Vo(u.template,l,{fetch:n}).then((function(e){return{template:e,assetPublicPath:r,getExternalScripts:function(){return Uo(c,n)},getExternalStyleSheets:function(){return Fo(l,n)},execScripts:function(e,t){return c.length?qo(s,c,e,Do({fetch:n,strictGlobal:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):Promise.resolve()}}}))})))}function Ko(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fetch,o=void 0===r?No:r,i=n.getTemplate,a=void 0===i?Ho:i,u=n.postProcessTemplate,c=n.getPublicPath||n.getDomain||eo;if(!e)throw new SyntaxError("entry should not be empty!");if("string"==typeof e)return zo(e,{fetch:o,getPublicPath:c,getTemplate:a,postProcessTemplate:u});if(Array.isArray(e.scripts)||Array.isArray(e.styles)){var s=e.scripts,l=void 0===s?[]:s,f=e.styles,p=void 0===f?[]:f,d=e.html;return Vo(a(function(e){return l.reduce((function(e,t){return"".concat(e).concat(Mo(t))}),e)}((t=void 0===d?"":d,p.reduceRight((function(e,t){return"".concat(To(t)).concat(e)}),t)))),p,{fetch:o}).then((function(t){return{template:t,assetPublicPath:c(e),getExternalScripts:function(){return Uo(l,o)},getExternalStyleSheets:function(){return Fo(p,o)},execScripts:function(e,t){return l.length?qo(l[l.length-1],l,e,Do({fetch:o,strictGlobal:t},arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})):Promise.resolve()}}}))}throw new SyntaxError("entry scripts or styles should be array!")}var Yo=window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;function $o(e,t){return Dr({},function(e){return{beforeLoad:function(){return i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return t.stop()}}),t)})))()},beforeMount:function(){return i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.__POWERED_BY_QIANKUN__=!0;case 1:case"end":return t.stop()}}),t)})))()},beforeUnmount:function(){return i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete e.__POWERED_BY_QIANKUN__;case 1:case"end":return t.stop()}}),t)})))()}}}(e),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=!1;return{beforeLoad:function(){return i(P.mark((function n(){return P.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=t;case 1:case"end":return n.stop()}}),n)})))()},beforeMount:function(){return i(P.mark((function r(){return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n&&(e.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=t);case 1:case"end":return r.stop()}}),r)})))()},beforeUnmount:function(){return i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===Yo?delete e.__INJECTED_PUBLIC_PATH_BY_QIANKUN__:e.__INJECTED_PUBLIC_PATH_BY_QIANKUN__=Yo,n=!0;case 2:case"end":return t.stop()}}),t)})))()}}}(e,t),(function(e,t){return It(null!=e?e:[],null!=t?t:[])}))}var Qo=r((function(e){function t(e,t){for(var n=0;t.length>n;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b(r.key),r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports})),Xo=n(Qo),Jo=n(r((function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}))),Zo=r((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),ei=n(r((function(e){e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zo(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports}))),ti=r((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),ni=r((function(e){e.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(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports})),ri=r((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports})),oi=r((function(e){var t=m.default;e.exports=function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return ri(e)},e.exports.__esModule=!0,e.exports.default=e.exports})),ii=r((function(e){e.exports=function(e){var t=ni();return function(){var n,r=ti(e);if(t){var o=ti(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oi(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports})),ai=n(ii),ui=r((function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports})),ci=r((function(e){function t(n,r,o){return ni()?(e.exports=t=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=t=function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Zo(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),si=r((function(e){function t(n){var r="function"==typeof Map?new Map:void 0;return e.exports=t=function(e){if(null===e||!ui(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return ci(e,arguments,ti(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Zo(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})),li=function(e){ei(n,e);var t=ai(n);function n(e){return Jo(this,n),t.call(this,"[qiankun]: ".concat(e))}return Xo(n)}(n(si)(Error));var fi=function(e,t){return e&&fr(t,Hr(t),e)};var pi=function(e,t){return e&&fr(t,wr(t),e)};var di=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var hi=function(){return[]},vi=Object.prototype.propertyIsEnumerable,mi=Object.getOwnPropertySymbols,yi=mi?function(e){return null==e?[]:di(mi(e=Object(e)),(function(t){return vi.call(e,t)}))}:hi;var gi=function(e,t){return fr(e,yi(e),t)},bi=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ft(t,yi(e)),e=Un(e);return t}:hi;var wi=function(e,t){return fr(e,bi(e),t)};var Ei=function(e,t,n){var r=t(e);return Ct(e)?r:ft(r,n(e))};var xi=function(e){return Ei(e,Hr,yi)};var Si=function(e){return Ei(e,wr,bi)},_i=ln(ht,"DataView"),Oi=ln(ht,"Promise"),Pi=ln(ht,"Set"),Ti=ln(ht,"WeakMap"),Mi="[object Map]",ji="[object Promise]",Ai="[object Set]",Li="[object WeakMap]",Ci="[object DataView]",Ri=on(_i),Di=on(fn),ki=on(Oi),Gi=on(Pi),Ii=on(Ti),Ni=_t;(_i&&Ni(new _i(new ArrayBuffer(1)))!=Ci||fn&&Ni(new fn)!=Mi||Oi&&Ni(Oi.resolve())!=ji||Pi&&Ni(new Pi)!=Ai||Ti&&Ni(new Ti)!=Li)&&(Ni=function(e){var t=_t(e),n="[object Object]"==t?e.constructor:void 0,r=n?on(n):"";if(r)switch(r){case Ri:return Ci;case Di:return Mi;case ki:return ji;case Gi:return Ai;case Ii:return Li}return t});var Hi=Ni,Vi=Object.prototype.hasOwnProperty;var Bi=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Vi.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var Fi=function(e,t){var n=t?Nn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ui=/\w*$/;var Wi=function(e){var t=new e.constructor(e.source,Ui.exec(e));return t.lastIndex=e.lastIndex,t},qi=vt?vt.prototype:void 0,zi=qi?qi.valueOf:void 0;var Ki=function(e){return zi?Object(zi.call(e)):{}};var Yi=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Nn(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Fi(e,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 Hn(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Wi(e);case"[object Symbol]":return Ki(e)}};var $i=function(e){return Ot(e)&&"[object Map]"==Hi(e)},Qi=ir&&ir.isMap,Xi=Qi?or(Qi):$i;var Ji=function(e){return Ot(e)&&"[object Set]"==Hi(e)},Zi=ir&&ir.isSet,ea=Zi?or(Zi):Ji,ta="[object Arguments]",na="[object Function]",ra="[object Object]",oa={};oa[ta]=oa["[object Array]"]=oa["[object ArrayBuffer]"]=oa["[object DataView]"]=oa["[object Boolean]"]=oa["[object Date]"]=oa["[object Float32Array]"]=oa["[object Float64Array]"]=oa["[object Int8Array]"]=oa["[object Int16Array]"]=oa["[object Int32Array]"]=oa["[object Map]"]=oa["[object Number]"]=oa[ra]=oa["[object RegExp]"]=oa["[object Set]"]=oa["[object String]"]=oa["[object Symbol]"]=oa["[object Uint8Array]"]=oa["[object Uint8ClampedArray]"]=oa["[object Uint16Array]"]=oa["[object Uint32Array]"]=!0,oa["[object Error]"]=oa[na]=oa["[object WeakMap]"]=!1;var ia=function e(t,n,r,o,i,a){var u,c=1&n,s=2&n,l=4&n;if(r&&(u=i?r(t,o,i,a):r(t)),void 0!==u)return u;if(!Xt(t))return t;var f=Ct(t);if(f){if(u=Bi(t),!c)return Gt(t,u)}else{var p=Hi(t),d=p==na||"[object GeneratorFunction]"==p;if(Xn(t))return Gn(t,c);if(p==ra||p==ta||d&&!i){if(u=s||d?{}:zn(t),!c)return s?wi(t,pi(u,t)):gi(t,fi(u,t))}else{if(!oa[p])return i?t:{};u=Yi(t,p,c)}}a||(a=new Ln);var h=a.get(t);if(h)return h;a.set(t,u),ea(t)?t.forEach((function(o){u.add(e(o,n,r,o,t,a))})):Xi(t)&&t.forEach((function(o,i){u.set(i,e(o,n,r,i,t,a))}));var v=f?void 0:(l?s?Si:xi:s?wr:Hr)(t);return kr(v||t,(function(o,i){v&&(o=t[i=o]),lr(u,i,e(o,n,r,i,t,a))})),u};var aa,ua=function(e){return ia(e,5)},ca={},sa={};function la(e,t){Object.keys(sa).forEach((function(n){sa[n]instanceof Function&&sa[n](ua(e),ua(t))}))}function fa(e,t){return{onGlobalStateChange:function(t,n){if(t instanceof Function){if(sa[e]&&console.warn("[qiankun] '".concat(e,"' global listener already exists before this, new listener will overwrite it.")),sa[e]=t,n){var r=ua(ca);t(r,r)}}else console.error("[qiankun] callback must be function!")},setGlobalState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e===ca)return console.warn("[qiankun] state has not changed!"),!1;var n=[],r=ua(ca);return ca=ua(Object.keys(e).reduce((function(r,o){return t||r.hasOwnProperty(o)?(n.push(o),Object.assign(r,E({},o,e[o]))):(console.warn("[qiankun] '".concat(o,"' not declared when init state!")),r)}),ca)),0===n.length?(console.warn("[qiankun] state has not changed!"),!1):(la(ca,r),!0)},offGlobalStateChange:function(){return delete sa[e],!0}}}(aa=e.SandBoxType||(e.SandBoxType={})).Proxy="Proxy",aa.Snapshot="Snapshot",aa.LegacyProxy="LegacyProxy";var pa=/\s/;var da=function(e){for(var t=e.length;t--&&pa.test(e.charAt(t)););return t},ha=/^\s+/;var va=function(e){return e?e.slice(0,da(e)+1).replace(ha,""):e};var ma=function(e){return"symbol"==typeof e||Ot(e)&&"[object Symbol]"==_t(e)},ya=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,ba=/^0o[0-7]+$/i,wa=parseInt;var Ea=function(e){if("number"==typeof e)return e;if(ma(e))return NaN;if(Xt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Xt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=va(e);var n=ga.test(e);return n||ba.test(e)?wa(e.slice(2),n?2:8):ya.test(e)?NaN:+e},xa=1/0;var Sa=function(e){return e?(e=Ea(e))===xa||e===-1/0?17976931348623157e292*(0>e?-1:1):e==e?e:0:0===e?e:0};var _a=function(e){var t=Sa(e),n=t%1;return t==t?n?t-n:t:0};var Oa=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=_a(e),function(){return--e>0&&(n=t.apply(this,arguments)),e>1||(t=void 0),n}};var Pa=function(e){return Oa(2,e)};var Ta=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n};var Ma=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"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 ja=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Aa=vt?vt.prototype:void 0,La=Aa?Aa.toString:void 0;var Ca=function e(t){if("string"==typeof t)return t;if(Ct(t))return ja(t,e)+"";if(ma(t))return La?La.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};var Ra=function(e){return null==e?"":Ca(e)},Da=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ka=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var Ga=function(e){return(e=Ra(e))&&e.replace(Da,Ma).replace(ka,"")},Ia=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var Na=function(e){return e.match(Ia)||[]},Ha=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var Va=function(e){return Ha.test(e)},Ba="\\ud800-\\udfff",Fa="\\u2700-\\u27bf",Ua="a-z\\xdf-\\xf6\\xf8-\\xff",Wa="A-Z\\xc0-\\xd6\\xd8-\\xde",qa="\\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",za="["+qa+"]",Ka="\\d+",Ya="["+Fa+"]",$a="["+Ua+"]",Qa="[^"+Ba+qa+Ka+Fa+Ua+Wa+"]",Xa="(?:\\ud83c[\\udde6-\\uddff]){2}",Ja="[\\ud800-\\udbff][\\udc00-\\udfff]",Za="["+Wa+"]",eu="(?:"+$a+"|"+Qa+")",tu="(?:"+Za+"|"+Qa+")",nu="(?:['’](?:d|ll|m|re|s|t|ve))?",ru="(?:['’](?:D|LL|M|RE|S|T|VE))?",ou="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",iu="[\\ufe0e\\ufe0f]?",au=iu+ou+("(?:\\u200d(?:"+["[^"+Ba+"]",Xa,Ja].join("|")+")"+iu+ou+")*"),uu="(?:"+[Ya,Xa,Ja].join("|")+")"+au,cu=RegExp([Za+"?"+$a+"+"+nu+"(?="+[za,Za,"$"].join("|")+")",tu+"+"+ru+"(?="+[za,Za+eu,"$"].join("|")+")",Za+"?"+eu+"+"+nu,Za+"+"+ru,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ka,uu].join("|"),"g");var su=function(e){return e.match(cu)||[]};var lu=function(e,t,n){return e=Ra(e),void 0===(t=n?void 0:t)?Va(e)?su(e):Na(e):e.match(t)||[]},fu=RegExp("['’]","g");var pu=function(e){return function(t){return Ta(lu(Ga(t).replace(fu,"")),e,"")}}((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function du(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(du.Cache||Mn),n}du.Cache=Mn;var hu=du,vu="2.10.16";function mu(e){return Array.isArray(e)?e:[e]}var yu="function"==typeof window.__zone_symbol__setTimeout?window.__zone_symbol__setTimeout:function(e){return Promise.resolve().then(e)},gu=!1;var bu=new WeakMap;var wu=new WeakMap;function Eu(e){if(wu.has(e))return!0;var t="function"==typeof e&&e instanceof Function;return t&&wu.set(e,t),t}var xu=new WeakMap;var Su=new WeakMap;function _u(e){if(Su.has(e))return Su.get(e);var t=0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");return Su.set(e,t),t}var Ou=hu((function(){try{return Function("const { a } = { a: 1 }")(),!0}catch(e){return!1}})),Pu="qiankun-head";function Tu(e,t){return function(n){var r;return r=-1!==n.indexOf("<head>")?n.replace("<head>","<".concat(Pu,">")).replace("</head>","</".concat(Pu,">")):"<".concat(Pu,"></").concat(Pu,">").concat(n),'<div id="'.concat(Mu(e),'" data-name="').concat(e,'" data-version="').concat(vu,'" data-sandbox-cfg=').concat(JSON.stringify(t),">").concat(r,"</div>")}}function Mu(e){return"__qiankun_microapp_wrapper_for_".concat(pu(e),"__")}var ju=Function("return this")(),Au=Function("return document")(),Lu=Pa((function(){return ju.hasOwnProperty("__app_instance_name_map__")||Object.defineProperty(ju,"__app_instance_name_map__",{enumerable:!1,configurable:!0,writable:!0,value:{}}),ju.__app_instance_name_map__})),Cu=function(e){var t=Lu();return e in t?(t[e]++,"".concat(e,"_").concat(t[e])):(ju.__app_instance_name_map__[e]=0,e)};function Ru(e){var t=null!=e?e:{},n=t.mount,r=t.unmount;return Zt(t.bootstrap)&&Zt(n)&&Zt(r)}var Du=Xo((function e(){var t=this;Jo(this,e),this.promise=void 0,this.resolve=void 0,this.reject=void 0,this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}));function ku(e){return"object"===y(e)&&(!e.strictStyleIsolation&&!!e.experimentalStyleIsolation)}function Gu(e){return"string"==typeof e?document.querySelector(e):e}var Iu=null;function Nu(){return Iu}function Hu(e){Iu=e}function Vu(){Iu=null}var Bu=new WeakMap;function Fu(e,t){if(Eu(t)&&!_u(t)&&!function(e){var t=e.prototype&&e.prototype.constructor===e&&Object.getOwnPropertyNames(e.prototype).length>1;if(t)return!0;if(bu.has(e))return bu.get(e);var n=t;if(!n){var r=""+e;n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return bu.set(e,n),n}(t)){var n=Bu.get(t);if(n)return n;var r=Function.prototype.bind.call(t,e);if(Object.getOwnPropertyNames(t).forEach((function(e){r.hasOwnProperty(e)||Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),t.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:t.prototype,enumerable:!1,writable:!0}),"function"==typeof t.toString){var o=t.hasOwnProperty("toString")&&!r.hasOwnProperty("toString");if(o||r.toString===Function.prototype.toString){var i=Object.getOwnPropertyDescriptor(o?t:Function.prototype,"toString");Object.defineProperty(r,"toString",Object.assign({},i,(null==i?void 0:i.get)?null:{value:function(){return""+t}}))}}return Bu.set(t,r),r}return t}var Uu,Wu=function(){function t(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;Jo(this,t),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=e.SandBoxType.LegacyProxy;var i=this.addedPropsMapInSandbox,a=this.modifiedPropsOriginalValueMapInSandbox,u=this.currentUpdatedPropsValueMap,c=o,s=function(e,t,n){var o=3>=arguments.length||void 0===arguments[3]||arguments[3];return!r.sandboxRunning||(c.hasOwnProperty(e)?a.has(e)||a.set(e,n):i.set(e,t),u.set(e,t),o&&(c[e]=t),r.latestSetProp=e,!0)},l=new Proxy(Object.create(null),{set:function(e,t,n){return s(t,n,c[t],!0)},get:function(e,t){return"top"===t||"parent"===t||"window"===t||"self"===t?l:Fu(c,c[t])},has:function(e,t){return t in c},getOwnPropertyDescriptor:function(e,t){var n=Object.getOwnPropertyDescriptor(c,t);return n&&!n.configurable&&(n.configurable=!0),n},defineProperty:function(e,t,n){var r=c[t],o=Reflect.defineProperty(c,t,n);return s(t,c[t],r,!1),o}});this.proxy=l}return Xo(t,[{key:"setWindowProp",value:function(e,t,n){void 0===t&&n?delete this.globalContext[e]:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable}(this.globalContext,e)&&"symbol"!==y(e)&&(Object.defineProperty(this.globalContext,e,{writable:!0,configurable:!0}),this.globalContext[e]=t)}},{key:"active",value:function(){var e=this;this.sandboxRunning||this.currentUpdatedPropsValueMap.forEach((function(t,n){return e.setWindowProp(n,t)})),this.sandboxRunning=!0}},{key:"inactive",value:function(){var e=this;this.modifiedPropsOriginalValueMapInSandbox.forEach((function(t,n){return e.setWindowProp(n,t)})),this.addedPropsMapInSandbox.forEach((function(t,n){return e.setWindowProp(n,void 0,!0)})),this.sandboxRunning=!1}},{key:"patchDocument",value:function(){}}]),t}();!function(e){e[e.STYLE=1]="STYLE",e[e.MEDIA=4]="MEDIA",e[e.SUPPORTS=12]="SUPPORTS",e[e.IMPORT=3]="IMPORT",e[e.FONT_FACE=5]="FONT_FACE",e[e.PAGE=6]="PAGE",e[e.KEYFRAMES=7]="KEYFRAMES",e[e.KEYFRAME=8]="KEYFRAME"}(Uu||(Uu={}));var qu,zu=function(e){return[].slice.call(e,0)},Ku=HTMLBodyElement.prototype.appendChild,Yu=function(){function e(){Jo(this,e),this.sheet=void 0,this.swapNode=void 0;var t=document.createElement("style");Ku.call(document.body,t),this.swapNode=t,this.sheet=t.sheet,this.sheet.disabled=!0}return Xo(e,[{key:"process",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!(e.ModifiedTag in t)){if(""!==t.textContent){var o,i=document.createTextNode(t.textContent||"");this.swapNode.appendChild(i);var a=this.swapNode.sheet,u=zu(null!==(o=null==a?void 0:a.cssRules)&&void 0!==o?o:[]),c=this.rewrite(u,r);return t.textContent=c,this.swapNode.removeChild(i),void(t[e.ModifiedTag]=!0)}var s=new MutationObserver((function(o){for(var i=0;o.length>i;i+=1){if(e.ModifiedTag in t)return;if("childList"===o[i].type){var a,u=t.sheet,c=zu(null!==(a=null==u?void 0:u.cssRules)&&void 0!==a?a:[]),s=n.rewrite(c,r);t.textContent=s,t[e.ModifiedTag]=!0}}}));s.observe(t,{childList:!0})}}},{key:"rewrite",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="";return e.forEach((function(e){switch(e.type){case Uu.STYLE:r+=t.ruleStyle(e,n);break;case Uu.MEDIA:r+=t.ruleMedia(e,n);break;case Uu.SUPPORTS:r+=t.ruleSupport(e,n);break;default:"string"==typeof e.cssText&&(r+="".concat(e.cssText))}})),r}},{key:"ruleStyle",value:function(e,t){var n=/((?:[^\w\-.#]|^)(body|html|:root))/gm,r=/(html[^\w{[]+)/gm,o=e.selectorText.trim(),i="";if("string"==typeof e.cssText&&(i=e.cssText),"html"===o||"body"===o||":root"===o)return i.replace(n,t);if(r.test(e.selectorText)){/(html[^\w{]+)(\+|~)/gm.test(e.selectorText)||(i=i.replace(r,""))}return i=i.replace(/^[\s\S]+{/,(function(e){return e.replace(/(^|,\n?)([^,]+)/g,(function(e,r,o){return n.test(e)?e.replace(n,(function(e){return e&&[",","("].includes(e[0])?"".concat(e[0]).concat(t):t})):"".concat(r).concat(t," ").concat(o.replace(/^ */,""))}))})),i}},{key:"ruleMedia",value:function(e,t){var n=this.rewrite(zu(e.cssRules),t);return"@media ".concat(e.conditionText||e.media.mediaText," {").concat(n,"}")}},{key:"ruleSupport",value:function(e,t){var n=this.rewrite(zu(e.cssRules),t);return"@supports ".concat(e.conditionText||e.cssText.split("{")[0]," {").concat(n,"}")}}]),e}();Yu.ModifiedTag="Symbol(style-modified-qiankun)";var $u="data-qiankun",Qu=function(e,t,n){qu||(qu=new Yu),"LINK"===t.tagName&&console.warn("Feature: sandbox.experimentalStyleIsolation is not support for link element yet.");if(e){var r=(e.tagName||"").toLowerCase();if(r&&"STYLE"===t.tagName){var o="".concat(r,"[").concat($u,'="').concat(n,'"]');qu.process(t,o)}}},Xu=r((function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports})),Ju=r((function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}},e.exports.__esModule=!0,e.exports.default=e.exports})),Zu=r((function(e){e.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.")},e.exports.__esModule=!0,e.exports.default=e.exports})),ec=r((function(e){e.exports=function(e,t){return Xu(e)||Ju(e,t)||d(e,t)||Zu()},e.exports.__esModule=!0,e.exports.default=e.exports})),tc=n(ec);var nc=function(e){return this.__data__.has(e)};function rc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}rc.prototype.add=rc.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},rc.prototype.has=nc;var oc=rc;var ic=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var ac=function(e){return e!=e};var uc=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};var cc=function(e,t,n){return t==t?uc(e,t,n):ic(e,ac,n)};var sc=function(e,t){return!!(null==e?0:e.length)&&cc(e,t,0)>-1};var lc=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1};var fc=function(e,t){return e.has(t)};var pc=function(e,t,n,r){var o=-1,i=sc,a=!0,u=e.length,c=[],s=t.length;if(!u)return c;n&&(t=ja(t,or(n))),r?(i=lc,a=!1):200>t.length||(i=fc,a=!1,t=new oc(t));e:for(;++o<u;){var l=e[o],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f==f){for(var p=s;p--;)if(t[p]===f)continue e;c.push(l)}else i(t,f,r)||c.push(l)}return c},dc=Cr((function(e,t){return $n(e)?pc(e,t):[]})),hc=window.Proxy?["Array","ArrayBuffer","Boolean","constructor","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","Error","escape","eval","EvalError","Float32Array","Float64Array","Function","hasOwnProperty","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","propertyIsEnumerable","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","String","Symbol","SyntaxError","toLocaleString","toString","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","URIError","valueOf","WeakMap","WeakSet"].filter((function(e){return e in window})):[];function vc(e){return e.reduce((function(e,t){return e[t]=!0,e}),Object.create(null))}var mc=vc(["AbortController","AbortSignal","addEventListener","alert","AnalyserNode","Animation","AnimationEffectReadOnly","AnimationEffectTiming","AnimationEffectTimingReadOnly","AnimationEvent","AnimationPlaybackEvent","AnimationTimeline","applicationCache","ApplicationCache","ApplicationCacheErrorEvent","atob","Attr","Audio","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioListener","AudioNode","AudioParam","AudioProcessingEvent","AudioScheduledSourceNode","AudioWorkletGlobalScope","AudioWorkletNode","AudioWorkletProcessor","BarProp","BaseAudioContext","BatteryManager","BeforeUnloadEvent","BiquadFilterNode","Blob","BlobEvent","blur","BroadcastChannel","btoa","BudgetService","ByteLengthQueuingStrategy","Cache","caches","CacheStorage","cancelAnimationFrame","cancelIdleCallback","CanvasCaptureMediaStreamTrack","CanvasGradient","CanvasPattern","CanvasRenderingContext2D","ChannelMergerNode","ChannelSplitterNode","CharacterData","clearInterval","clearTimeout","clientInformation","ClipboardEvent","ClipboardItem","close","closed","CloseEvent","Comment","CompositionEvent","CompressionStream","confirm","console","ConstantSourceNode","ConvolverNode","CountQueuingStrategy","createImageBitmap","Credential","CredentialsContainer","crypto","Crypto","CryptoKey","CSS","CSSConditionRule","CSSFontFaceRule","CSSGroupingRule","CSSImportRule","CSSKeyframeRule","CSSKeyframesRule","CSSMatrixComponent","CSSMediaRule","CSSNamespaceRule","CSSPageRule","CSSPerspective","CSSRotate","CSSRule","CSSRuleList","CSSScale","CSSSkew","CSSSkewX","CSSSkewY","CSSStyleDeclaration","CSSStyleRule","CSSStyleSheet","CSSSupportsRule","CSSTransformValue","CSSTranslate","CustomElementRegistry","customElements","CustomEvent","DataTransfer","DataTransferItem","DataTransferItemList","DecompressionStream","defaultstatus","defaultStatus","DelayNode","DeviceMotionEvent","DeviceOrientationEvent","devicePixelRatio","dispatchEvent","document","Document","DocumentFragment","DocumentType","DOMError","DOMException","DOMImplementation","DOMMatrix","DOMMatrixReadOnly","DOMParser","DOMPoint","DOMPointReadOnly","DOMQuad","DOMRect","DOMRectList","DOMRectReadOnly","DOMStringList","DOMStringMap","DOMTokenList","DragEvent","DynamicsCompressorNode","Element","ErrorEvent","event","Event","EventSource","EventTarget","external","fetch","File","FileList","FileReader","find","focus","FocusEvent","FontFace","FontFaceSetLoadEvent","FormData","FormDataEvent","frameElement","frames","GainNode","Gamepad","GamepadButton","GamepadEvent","getComputedStyle","getSelection","HashChangeEvent","Headers","history","History","HTMLAllCollection","HTMLAnchorElement","HTMLAreaElement","HTMLAudioElement","HTMLBaseElement","HTMLBodyElement","HTMLBRElement","HTMLButtonElement","HTMLCanvasElement","HTMLCollection","HTMLContentElement","HTMLDataElement","HTMLDataListElement","HTMLDetailsElement","HTMLDialogElement","HTMLDirectoryElement","HTMLDivElement","HTMLDListElement","HTMLDocument","HTMLElement","HTMLEmbedElement","HTMLFieldSetElement","HTMLFontElement","HTMLFormControlsCollection","HTMLFormElement","HTMLFrameElement","HTMLFrameSetElement","HTMLHeadElement","HTMLHeadingElement","HTMLHRElement","HTMLHtmlElement","HTMLIFrameElement","HTMLImageElement","HTMLInputElement","HTMLLabelElement","HTMLLegendElement","HTMLLIElement","HTMLLinkElement","HTMLMapElement","HTMLMarqueeElement","HTMLMediaElement","HTMLMenuElement","HTMLMetaElement","HTMLMeterElement","HTMLModElement","HTMLObjectElement","HTMLOListElement","HTMLOptGroupElement","HTMLOptionElement","HTMLOptionsCollection","HTMLOutputElement","HTMLParagraphElement","HTMLParamElement","HTMLPictureElement","HTMLPreElement","HTMLProgressElement","HTMLQuoteElement","HTMLScriptElement","HTMLSelectElement","HTMLShadowElement","HTMLSlotElement","HTMLSourceElement","HTMLSpanElement","HTMLStyleElement","HTMLTableCaptionElement","HTMLTableCellElement","HTMLTableColElement","HTMLTableElement","HTMLTableRowElement","HTMLTableSectionElement","HTMLTemplateElement","HTMLTextAreaElement","HTMLTimeElement","HTMLTitleElement","HTMLTrackElement","HTMLUListElement","HTMLUnknownElement","HTMLVideoElement","IDBCursor","IDBCursorWithValue","IDBDatabase","IDBFactory","IDBIndex","IDBKeyRange","IDBObjectStore","IDBOpenDBRequest","IDBRequest","IDBTransaction","IDBVersionChangeEvent","IdleDeadline","IIRFilterNode","Image","ImageBitmap","ImageBitmapRenderingContext","ImageCapture","ImageData","indexedDB","innerHeight","innerWidth","InputEvent","IntersectionObserver","IntersectionObserverEntry","Intl","isSecureContext","KeyboardEvent","KeyframeEffect","KeyframeEffectReadOnly","length","localStorage","location","Location","locationbar","matchMedia","MediaDeviceInfo","MediaDevices","MediaElementAudioSourceNode","MediaEncryptedEvent","MediaError","MediaKeyMessageEvent","MediaKeySession","MediaKeyStatusMap","MediaKeySystemAccess","MediaList","MediaMetadata","MediaQueryList","MediaQueryListEvent","MediaRecorder","MediaSettingsRange","MediaSource","MediaStream","MediaStreamAudioDestinationNode","MediaStreamAudioSourceNode","MediaStreamConstraints","MediaStreamEvent","MediaStreamTrack","MediaStreamTrackEvent","menubar","MessageChannel","MessageEvent","MessagePort","MIDIAccess","MIDIConnectionEvent","MIDIInput","MIDIInputMap","MIDIMessageEvent","MIDIOutput","MIDIOutputMap","MIDIPort","MimeType","MimeTypeArray","MouseEvent","moveBy","moveTo","MutationEvent","MutationObserver","MutationRecord","name","NamedNodeMap","NavigationPreloadManager","navigator","Navigator","NavigatorUAData","NetworkInformation","Node","NodeFilter","NodeIterator","NodeList","Notification","OfflineAudioCompletionEvent","OfflineAudioContext","offscreenBuffering","OffscreenCanvas","OffscreenCanvasRenderingContext2D","onabort","onafterprint","onanimationend","onanimationiteration","onanimationstart","onappinstalled","onauxclick","onbeforeinstallprompt","onbeforeprint","onbeforeunload","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncuechange","ondblclick","ondevicemotion","ondeviceorientation","ondeviceorientationabsolute","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","ongotpointercapture","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onoffline","ononline","onpagehide","onpageshow","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onpopstate","onprogress","onratechange","onrejectionhandled","onreset","onresize","onscroll","onsearch","onseeked","onseeking","onselect","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","ontransitionend","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel","open","openDatabase","opener","Option","origin","OscillatorNode","outerHeight","outerWidth","OverconstrainedError","PageTransitionEvent","pageXOffset","pageYOffset","PannerNode","parent","Path2D","PaymentAddress","PaymentRequest","PaymentRequestUpdateEvent","PaymentResponse","performance","Performance","PerformanceEntry","PerformanceLongTaskTiming","PerformanceMark","PerformanceMeasure","PerformanceNavigation","PerformanceNavigationTiming","PerformanceObserver","PerformanceObserverEntryList","PerformancePaintTiming","PerformanceResourceTiming","PerformanceTiming","PeriodicWave","Permissions","PermissionStatus","personalbar","PhotoCapabilities","Plugin","PluginArray","PointerEvent","PopStateEvent","postMessage","Presentation","PresentationAvailability","PresentationConnection","PresentationConnectionAvailableEvent","PresentationConnectionCloseEvent","PresentationConnectionList","PresentationReceiver","PresentationRequest","print","ProcessingInstruction","ProgressEvent","PromiseRejectionEvent","prompt","PushManager","PushSubscription","PushSubscriptionOptions","queueMicrotask","RadioNodeList","Range","ReadableByteStreamController","ReadableStream","ReadableStreamBYOBReader","ReadableStreamBYOBRequest","ReadableStreamDefaultController","ReadableStreamDefaultReader","registerProcessor","RemotePlayback","removeEventListener","reportError","Request","requestAnimationFrame","requestIdleCallback","resizeBy","ResizeObserver","ResizeObserverEntry","resizeTo","Response","RTCCertificate","RTCDataChannel","RTCDataChannelEvent","RTCDtlsTransport","RTCIceCandidate","RTCIceGatherer","RTCIceTransport","RTCPeerConnection","RTCPeerConnectionIceEvent","RTCRtpContributingSource","RTCRtpReceiver","RTCRtpSender","RTCSctpTransport","RTCSessionDescription","RTCStatsReport","RTCTrackEvent","screen","Screen","screenLeft","ScreenOrientation","screenTop","screenX","screenY","ScriptProcessorNode","scroll","scrollbars","scrollBy","scrollTo","scrollX","scrollY","SecurityPolicyViolationEvent","Selection","self","ServiceWorker","ServiceWorkerContainer","ServiceWorkerRegistration","sessionStorage","setInterval","setTimeout","ShadowRoot","SharedWorker","SourceBuffer","SourceBufferList","speechSynthesis","SpeechSynthesisEvent","SpeechSynthesisUtterance","StaticRange","status","statusbar","StereoPannerNode","stop","Storage","StorageEvent","StorageManager","structuredClone","styleMedia","StyleSheet","StyleSheetList","SubmitEvent","SubtleCrypto","SVGAElement","SVGAngle","SVGAnimatedAngle","SVGAnimatedBoolean","SVGAnimatedEnumeration","SVGAnimatedInteger","SVGAnimatedLength","SVGAnimatedLengthList","SVGAnimatedNumber","SVGAnimatedNumberList","SVGAnimatedPreserveAspectRatio","SVGAnimatedRect","SVGAnimatedString","SVGAnimatedTransformList","SVGAnimateElement","SVGAnimateMotionElement","SVGAnimateTransformElement","SVGAnimationElement","SVGCircleElement","SVGClipPathElement","SVGComponentTransferFunctionElement","SVGDefsElement","SVGDescElement","SVGDiscardElement","SVGElement","SVGEllipseElement","SVGFEBlendElement","SVGFEColorMatrixElement","SVGFEComponentTransferElement","SVGFECompositeElement","SVGFEConvolveMatrixElement","SVGFEDiffuseLightingElement","SVGFEDisplacementMapElement","SVGFEDistantLightElement","SVGFEDropShadowElement","SVGFEFloodElement","SVGFEFuncAElement","SVGFEFuncBElement","SVGFEFuncGElement","SVGFEFuncRElement","SVGFEGaussianBlurElement","SVGFEImageElement","SVGFEMergeElement","SVGFEMergeNodeElement","SVGFEMorphologyElement","SVGFEOffsetElement","SVGFEPointLightElement","SVGFESpecularLightingElement","SVGFESpotLightElement","SVGFETileElement","SVGFETurbulenceElement","SVGFilterElement","SVGForeignObjectElement","SVGGElement","SVGGeometryElement","SVGGradientElement","SVGGraphicsElement","SVGImageElement","SVGLength","SVGLengthList","SVGLinearGradientElement","SVGLineElement","SVGMarkerElement","SVGMaskElement","SVGMatrix","SVGMetadataElement","SVGMPathElement","SVGNumber","SVGNumberList","SVGPathElement","SVGPatternElement","SVGPoint","SVGPointList","SVGPolygonElement","SVGPolylineElement","SVGPreserveAspectRatio","SVGRadialGradientElement","SVGRect","SVGRectElement","SVGScriptElement","SVGSetElement","SVGStopElement","SVGStringList","SVGStyleElement","SVGSVGElement","SVGSwitchElement","SVGSymbolElement","SVGTextContentElement","SVGTextElement","SVGTextPathElement","SVGTextPositioningElement","SVGTitleElement","SVGTransform","SVGTransformList","SVGTSpanElement","SVGUnitTypes","SVGUseElement","SVGViewElement","TaskAttributionTiming","Text","TextDecoder","TextDecoderStream","TextEncoder","TextEncoderStream","TextEvent","TextMetrics","TextTrack","TextTrackCue","TextTrackCueList","TextTrackList","TimeRanges","ToggleEvent","toolbar","top","Touch","TouchEvent","TouchList","TrackEvent","TransformStream","TransformStreamDefaultController","TransitionEvent","TreeWalker","UIEvent","URL","URLSearchParams","ValidityState","visualViewport","VisualViewport","VTTCue","WaveShaperNode","WebAssembly","WebGL2RenderingContext","WebGLActiveInfo","WebGLBuffer","WebGLContextEvent","WebGLFramebuffer","WebGLProgram","WebGLQuery","WebGLRenderbuffer","WebGLRenderingContext","WebGLSampler","WebGLShader","WebGLShaderPrecisionFormat","WebGLSync","WebGLTexture","WebGLTransformFeedback","WebGLUniformLocation","WebGLVertexArrayObject","WebSocket","WheelEvent","window","Window","Worker","WritableStream","WritableStreamDefaultController","WritableStreamDefaultWriter","XMLDocument","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload","XMLSerializer","XPathEvaluator","XPathExpression","XPathResult","XSLTProcessor"].concat([]));var yc=Object.defineProperty,gc=window.__QIANKUN_DEVELOPMENT__?["__REACT_ERROR_OVERLAY_GLOBAL_HOOK__","event"]:[],bc=["System","__cjsWrapper"].concat(gc),wc=["document","top","parent","eval"],Ec=["window","self","globalThis","hasOwnProperty"].concat([]),xc=Array.from(new Set(dc.apply(void 0,[hc.concat(Ec).concat("requestAnimationFrame")].concat(wc)))),Sc=vc(xc),_c=vc(dc.apply(void 0,[xc].concat(v(wc.concat(Ec))))),Oc=new Map([["fetch",!0],["mockDomAPIInBlackList",!1]]);var Pc=0,Tc=function(){function t(n){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,i=arguments.length>2?arguments[2]:void 0;Jo(this,t),this.updatedValueSet=new Set,this.document=document,this.name=void 0,this.type=void 0,this.proxy=void 0,this.sandboxRunning=!0,this.latestSetProp=null,this.globalWhitelistPrevDescriptor={},this.globalContext=void 0,this.name=n,this.globalContext=o,this.type=e.SandBoxType.Proxy;var a=this.updatedValueSet,u=function(e,t){var n=new Map,r={};return Object.getOwnPropertyNames(e).filter((function(t){var n=Object.getOwnPropertyDescriptor(e,t);return!(null==n?void 0:n.configurable)})).forEach((function(o){var i=Object.getOwnPropertyDescriptor(e,o);if(i){var a=Object.prototype.hasOwnProperty.call(i,"get");("top"===o||"parent"===o||"self"===o||"window"===o||"document"===o&&t)&&(i.configurable=!0,a||(i.writable=!0)),a&&n.set(o,!0),yc(r,o,Object.freeze(i))}})),{fakeWindow:r,propertiesWithGetter:n}}(o,!!(i||{}).speedy),c=u.fakeWindow,s=u.propertiesWithGetter,l=new Map,f=new Proxy(c,{set:function(e,t,i){if(r.sandboxRunning){if(r.registerRunningApp(n,f),"string"==typeof t&&-1!==bc.indexOf(t))r.globalWhitelistPrevDescriptor[t]=Object.getOwnPropertyDescriptor(o,t),o[t]=i;else if(!e.hasOwnProperty(t)&&o.hasOwnProperty(t)){var u=Object.getOwnPropertyDescriptor(o,t),c=u.set;(u.writable||c)&&Object.defineProperty(e,t,{configurable:u.configurable,enumerable:u.enumerable,writable:!0,value:i})}else e[t]=i;return a.add(t),r.latestSetProp=t,!0}return!0},get:function(e,t){if(r.registerRunningApp(n,f),t===Symbol.unscopables)return _c;if("window"===t||"self"===t)return f;if("globalThis"===t)return f;if("top"===t||"parent"===t)return o===o.parent?f:o[t];if("hasOwnProperty"===t)return p;if("document"===t)return r.document;if("eval"===t)return eval;if("string"===t&&-1!==bc.indexOf(t))return o[t];var i=s.has(t)?o:t in e?e:o,a=i[t];return function(e,t){if(!e||!t)return!1;var n=xu.get(e)||{};if(n[t])return n[t];var r=Object.getOwnPropertyDescriptor(e,t),o=!(!r||!1!==r.configurable||!1!==r.writable&&(!r.get||r.set));return n[t]=o,xu.set(e,n),o}(i,t)?a:t in mc||Oc.has(t)?Fu(Oc.get(t)?ju:o,a):a},has:function(e,t){return t in Sc||t in e||t in o},getOwnPropertyDescriptor:function(e,t){if(e.hasOwnProperty(t)){var n=Object.getOwnPropertyDescriptor(e,t);return l.set(t,"target"),n}if(o.hasOwnProperty(t)){var r=Object.getOwnPropertyDescriptor(o,t);return l.set(t,"globalContext"),r&&!r.configurable&&(r.configurable=!0),r}},ownKeys:function(e){return Reflect.ownKeys(o).concat(Reflect.ownKeys(e)).filter((function(e){return!(e in this)&&(this[e]=!0)}),Object.create(null))},defineProperty:function(e,t,n){return"globalContext"===l.get(t)?Reflect.defineProperty(o,t,n):Reflect.defineProperty(e,t,n)},deleteProperty:function(e,t){return r.registerRunningApp(n,f),!e.hasOwnProperty(t)||(delete e[t],a.delete(t),!0)},getPrototypeOf:function(){return Reflect.getPrototypeOf(o)}});function p(e){return this!==f&&null!==this&&"object"===y(this)?Object.prototype.hasOwnProperty.call(this,e):c.hasOwnProperty(e)||o.hasOwnProperty(e)}this.proxy=f,Pc++}return Xo(t,[{key:"active",value:function(){this.sandboxRunning||Pc++,this.sandboxRunning=!0}},{key:"inactive",value:function(){var e=this;0==--Pc&&Object.keys(this.globalWhitelistPrevDescriptor).forEach((function(t){var n=e.globalWhitelistPrevDescriptor[t];n?Object.defineProperty(e.globalContext,t,n):delete e.globalContext[t]})),this.sandboxRunning=!1}},{key:"patchDocument",value:function(e){this.document=e}},{key:"registerRunningApp",value:function(e,t){if(this.sandboxRunning){var n=Nu();n&&n.name===e||Hu({name:e,window:t}),r=Vu,gu||(gu=!0,yu((function(){r(),gu=!1})))}var r}}]),t}(),Mc="SCRIPT",jc="LINK",Ac="STYLE",Lc=Symbol("target"),Cc=Symbol("refNodeNo"),Rc=Symbol("qiankun-overwritten"),Dc=function(e){return e.querySelector(Pu)};function kc(e){return(null==e?void 0:e.toUpperCase())===jc||(null==e?void 0:e.toUpperCase())===Ac||(null==e?void 0:e.toUpperCase())===Mc}function Gc(e){var t,n;return!e.textContent&&((null===(t=e.sheet)||void 0===t?void 0:t.cssRules.length)||(null===(n=Yc(e))||void 0===n?void 0:n.length))}var Ic=new Map;function Nc(e,t,n){var r=Ic.get(e)||{bootstrappingPatchCount:0,mountingPatchCount:0};switch(t){case"increase":r["".concat(n,"PatchCount")]+=1;break;case"decrease":r["".concat(n,"PatchCount")]>0&&(r["".concat(n,"PatchCount")]-=1)}Ic.set(e,r)}function Hc(){return Array.from(Ic.entries()).every((function(e){var t=tc(e,2)[1];return 0===t.bootstrappingPatchCount&&0===t.mountingPatchCount}))}function Vc(e,t){return Object.defineProperties(e,{srcElement:{get:t},target:{get:t}}),e}function Bc(e){var t=Vc(new CustomEvent("load"),(function(){return e}));Zt(e.onload)?e.onload(t):e.dispatchEvent(t)}function Fc(e){var t=Vc(new CustomEvent("error"),(function(){return e}));Zt(e.onerror)?e.onerror(t):e.dispatchEvent(t)}var Uc=function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})},Wc=new WeakMap,qc=new WeakMap,zc=new WeakMap;function Kc(e){e.forEach((function(e){e instanceof HTMLStyleElement&&Gc(e)&&e.sheet&&Wc.set(e,e.sheet.cssRules)}))}function Yc(e){return Wc.get(e)}function $c(e){function t(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t,i=e.rawDOMAppendOrInsertBefore,a=e.isInvokedByMicroApp,u=e.containerConfigGetter,c=e.target,s=void 0===c?"body":c;if(!kc(o.tagName)||!a(o))return i.call(this,o,r);if(o.tagName){var l=u(o),f=l.appName,p=l.appWrapperGetter,d=l.proxy,h=l.strictGlobal,v=l.speedySandbox,m=l.dynamicStyleSheetElements,y=l.scopedCSS,g=l.excludeAssetFilter;switch(o.tagName){case jc:case Ac:var b=t,w=b.href;if(g&&w&&g(w))return i.call(this,o,r);Uc(b,Lc,s);var E,x=p();if(y)if((null===(E=o.tagName)||void 0===E?void 0:E.toUpperCase())===jc&&"stylesheet"===o.rel&&o.href){var S,_="function"==typeof Us.fetch?Us.fetch:null===(S=Us.fetch)||void 0===S?void 0:S.fn;b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fetch,r=document.createElement("style"),o=e.href;return r.dataset.qiankunHref=o,n(o).then((function(e){return e.text()})).then((function(n){r.appendChild(document.createTextNode(n)),t(r),Bc(e)})).catch((function(){return Fc(e)})),r}(o,(function(e){return Qu(x,e,f)}),_),zc.set(o,b)}else Qu(x,b,f);var O,P="head"===s?Dc(x):x,T=P.contains(r)?r:null;T&&(O=Array.from(P.childNodes).indexOf(T));var M=i.call(P,b,T);return"number"==typeof O&&-1!==O&&Uc(b,Cc,O),m.push(b),M;case Mc:var j=o.src,A=o.text;if(g&&j&&g(j)||(n=o).type&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(n.type))return i.call(this,o,r);var L=p(),C="head"===s?Dc(L):L,R=Us.fetch,D=C.contains(r)?r:null,k=v?xc:[];if(j){var G=!1;qo(null,[j],d,{fetch:R,strictGlobal:h,scopedGlobalVariables:k,beforeExec:function(){var e;(!(e=Object.getOwnPropertyDescriptor(document,"currentScript"))||e.configurable)&&(Object.defineProperty(document,"currentScript",{get:function(){return o},configurable:!0}),G=!0)},success:function(){Bc(o),G&&delete document.currentScript,o=null},error:function(){Fc(o),G&&delete document.currentScript,o=null}});var I=document.createComment("dynamic script ".concat(j," replaced by qiankun"));return qc.set(o,I),i.call(C,I,D)}qo(null,["<script>".concat(A,"<\/script>")],d,{strictGlobal:h,scopedGlobalVariables:k});var N=document.createComment("dynamic inline script replaced by qiankun");return qc.set(o,N),i.call(C,N,D)}}return i.call(this,o,r)}return t[Rc]=!0,t}function Qc(e,t,n,r){function o(o){var i=o.tagName;if(!kc(i)||!r(o))return e.call(this,o);try{var a,u=t(o),c=u.appWrapperGetter,s=u.dynamicStyleSheetElements;switch(i){case Ac:case jc:a=zc.get(o)||o;var l=s.indexOf(a);-1!==l&&s.splice(l,1);break;case Mc:a=qc.get(o)||o;break;default:a=o}var f=c();if(("head"===n?Dc(f):f).contains(a))return e.call(a.parentNode,a)}catch(e){console.warn(e)}return e.call(this,o)}return o[Rc]=!0,o}function Xc(e,t){var n=HTMLHeadElement.prototype.appendChild,r=HTMLBodyElement.prototype.appendChild,o=HTMLHeadElement.prototype.insertBefore;!0!==n[Rc]&&!0!==r[Rc]&&!0!==o[Rc]&&(HTMLHeadElement.prototype.appendChild=$c({rawDOMAppendOrInsertBefore:n,containerConfigGetter:t,isInvokedByMicroApp:e,target:"head"}),HTMLBodyElement.prototype.appendChild=$c({rawDOMAppendOrInsertBefore:r,containerConfigGetter:t,isInvokedByMicroApp:e,target:"body"}),HTMLHeadElement.prototype.insertBefore=$c({rawDOMAppendOrInsertBefore:o,containerConfigGetter:t,isInvokedByMicroApp:e,target:"head"}));var i=HTMLHeadElement.prototype.removeChild,a=HTMLBodyElement.prototype.removeChild;return!0!==i[Rc]&&!0!==a[Rc]&&(HTMLHeadElement.prototype.removeChild=Qc(i,t,"head",e),HTMLBodyElement.prototype.removeChild=Qc(a,t,"body",e)),function(){HTMLHeadElement.prototype.appendChild=n,HTMLHeadElement.prototype.removeChild=i,HTMLBodyElement.prototype.appendChild=r,HTMLBodyElement.prototype.removeChild=a,HTMLHeadElement.prototype.insertBefore=o}}function Jc(e,t){e.forEach((function(e){if(t(e)&&e instanceof HTMLStyleElement&&Gc(e)){var n=Yc(e);if(n)for(var r=0;n.length>r;r++){var o=e.sheet;o.insertRule(n[r].cssText,o.cssRules.length)}}}))}function Zc(e,t,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,a=n.proxy,u=[],c=Xc((function(){return Qe(window.location).some((function(t){return t===e}))}),(function(){return{appName:e,appWrapperGetter:t,proxy:a,strictGlobal:!1,speedySandbox:!1,scopedCSS:o,dynamicStyleSheetElements:u,excludeAssetFilter:i}}));return r||Nc(e,"increase","bootstrapping"),r&&Nc(e,"increase","mounting"),function(){return r||Nc(e,"decrease","bootstrapping"),r&&Nc(e,"decrease","mounting"),Hc()&&c(),Kc(u),function(){Jc(u,(function(e){var n=t();return!n.contains(e)&&(document.head.appendChild.call(n,e),!0)})),r&&(u=[])}}}Object.defineProperty(ju,"__proxyAttachContainerConfigMap__",{enumerable:!1,writable:!0}),Object.defineProperty(ju,"__currentLockingSandbox__",{enumerable:!1,writable:!0,configurable:!0});var es=HTMLHeadElement.prototype.appendChild,ts=HTMLHeadElement.prototype.insertBefore;ju.__proxyAttachContainerConfigMap__=ju.__proxyAttachContainerConfigMap__||new WeakMap;var ns=ju.__proxyAttachContainerConfigMap__,rs=new WeakMap,os=new WeakMap,is=new WeakMap;function as(e,t,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,a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],u=n.proxy,c=ns.get(u);c||ns.set(u,c={appName:e,proxy:u,appWrapperGetter:t,dynamicStyleSheetElements:[],strictGlobal:!0,speedySandbox:a,excludeAssetFilter:i,scopedCSS:o});var s=c.dynamicStyleSheetElements,l=Xc((function(e){return rs.has(e)}),(function(e){return rs.get(e)})),f=function(e){var t=e.sandbox,n=function(e,t){var n=ns.get(t);n&&rs.set(e,n)};if(e.speedy){var r={},o=new Proxy(document,{set:function(e,t,n){switch(t){case"createElement":r.createElement=n;break;case"querySelector":r.querySelector=n;break;default:e[t]=n}return!0},get:function(e,o,i){switch(o){case"createElement":var a=r.createElement||e.createElement;return function(){ju.__currentLockingSandbox__||(ju.__currentLockingSandbox__=t.name);for(var r=arguments.length,o=Array(r),i=0;r>i;i++)o[i]=arguments[i];var u=a.call.apply(a,[e].concat(o));return ju.__currentLockingSandbox__===t.name&&(n(u,t.proxy),delete ju.__currentLockingSandbox__),u};case"querySelector":var u=r.querySelector||e.querySelector;return function(){for(var n=arguments.length,r=Array(n),o=0;n>o;o++)r[o]=arguments[o];if("head"===r[0]){var i=ns.get(t.proxy);if(i){var a=Dc(i.appWrapperGetter());return a.appendChild=HTMLHeadElement.prototype.appendChild,a.insertBefore=HTMLHeadElement.prototype.insertBefore,a.removeChild=HTMLHeadElement.prototype.removeChild,a}}return u.call.apply(u,[e].concat(r))}}var c=e[o];return Eu(c)&&!_u(c)?function(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return c.call.apply(c,[e].concat(v(n.map((function(t){return t===i?e:t})))))}:c}});t.patchDocument(o);var i=MutationObserver.prototype.observe;if(!is.has(i)){var a=function(e,t){var n=e instanceof Document?Au:e;return i.call(this,n,t)};MutationObserver.prototype.observe=a,is.set(i,a)}var u=Node.prototype.compareDocumentPosition;is.has(u)||(Node.prototype.compareDocumentPosition=function(e){var t=e instanceof Document?Au:e;return u.call(this,t)},is.set(u,Node.prototype.compareDocumentPosition));var c=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode");if(c&&!is.has(c)){var s=c.get;if(s&&c.configurable){var l=S(S({},c),{},{get:function(){var e=s.call(this);if(e instanceof Document){var t,n=null===(t=Nu())||void 0===t?void 0:t.window;if(n)return n.document}return e}});Object.defineProperty(Node.prototype,"parentNode",l),is.set(c,l)}}return function(){MutationObserver.prototype.observe=i,is.delete(i),Node.prototype.compareDocumentPosition=u,is.delete(u),c&&(Object.defineProperty(Node.prototype,"parentNode",c),is.delete(c))}}var f=os.get(document.createElement);if(!f){var p=document.createElement;Document.prototype.createElement=function(e,t){var r=p.call(this,e,t);if(kc(e)){var o=(Nu()||{}).window;o&&n(r,o)}return r},document.hasOwnProperty("createElement")&&(document.createElement=Document.prototype.createElement),os.set(Document.prototype.createElement,p)}return function(){f&&(Document.prototype.createElement=f,document.createElement=f)}}({sandbox:n,speedy:a});return r||Nc(e,"increase","bootstrapping"),r&&Nc(e,"increase","mounting"),function(){return r||Nc(e,"decrease","bootstrapping"),r&&Nc(e,"decrease","mounting"),Hc()&&(l(),f()),Kc(s),function(){Jc(s,(function(e){var n=t();if(!n.contains(e)){var r="head"===e[Lc]?Dc(n):n,o=e[Cc];return"number"==typeof o&&-1!==o?(ts.call(r,e,r.childNodes[o]||null),!0):(es.call(r,e),!0)}return!1}))}}}var us=window.setInterval,cs=window.clearInterval;var ss=window.addEventListener,ls=window.removeEventListener;function fs(t,n,r,o,i,u){var c,s=[function(){return function(e){var t=[];return e.clearInterval=function(e){return t=t.filter((function(t){return t!==e})),cs.call(window,e)},e.setInterval=function(e,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;r>i;i++)o[i-2]=arguments[i];var a=us.apply(void 0,[e,n].concat(o));return t=[].concat(v(t),[a]),a},function(){return t.forEach((function(t){return e.clearInterval(t)})),e.setInterval=us,e.clearInterval=cs,a}}(r.proxy)},function(){return function(e){var t=new Map;return e.addEventListener=function(e,n,r){var o=t.get(e)||[];return t.set(e,[].concat(v(o),[n])),ss.call(window,e,n,r)},e.removeEventListener=function(e,n,r){var o=t.get(e);return o&&o.length&&-1!==o.indexOf(n)&&o.splice(o.indexOf(n),1),ls.call(window,e,n,r)},function(){return t.forEach((function(t,n){return v(t).forEach((function(t){return e.removeEventListener(n,t)}))})),e.addEventListener=ss,e.removeEventListener=ls,a}}(r.proxy)},function(){return e=function(e){return a},t=[],n=[],window.g_history&&Zt(window.g_history.listen)&&(e=window.g_history.listen.bind(window.g_history),window.g_history.listen=function(r){t.push(r);var o=e(r);return n.push(o),function(){o(),n.splice(n.indexOf(o),1),t.splice(t.indexOf(r),1)}}),function(){var r=a;return t.length&&(r=function(){t.forEach((function(e){return window.g_history.listen(e)}))}),n.forEach((function(e){return e()})),window.g_history&&Zt(window.g_history.listen)&&(window.g_history.listen=e),r};var e,t,n}];return null===(c=E(E(E({},e.SandBoxType.LegacyProxy,[].concat(s,[function(){return Zc(t,n,r,!0,o,i)}])),e.SandBoxType.Proxy,[].concat(s,[function(){return as(t,n,r,!0,o,i,u)}])),e.SandBoxType.Snapshot,[].concat(s,[function(){return Zc(t,n,r,!0,o,i)}]))[r.type])||void 0===c?void 0:c.map((function(e){return e()}))}function ps(e,t){for(var n in e)(e.hasOwnProperty(n)||"clearInterval"===n)&&t(n)}var ds=function(){function t(n){Jo(this,t),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=e.SandBoxType.Snapshot}return Xo(t,[{key:"active",value:function(){var e=this;this.windowSnapshot={},ps(window,(function(t){e.windowSnapshot[t]=window[t]})),Object.keys(this.modifyPropsMap).forEach((function(t){window[t]=e.modifyPropsMap[t]})),this.sandboxRunning=!0}},{key:"inactive",value:function(){var e=this;this.modifyPropsMap={},ps(window,(function(t){window[t]!==e.windowSnapshot[t]&&(e.modifyPropsMap[t]=window[t],window[t]=e.windowSnapshot[t])})),this.sandboxRunning=!1}},{key:"patchDocument",value:function(){}}]),t}();function hs(t,n,r,o,a,u,c){var s;s=window.Proxy?o?new Wu(t,u):new Tc(t,u,{speedy:!!c}):new ds(t);var l=function(t,n,r,o,i,a){var u;return null===(u=E(E(E({},e.SandBoxType.LegacyProxy,[function(){return Zc(t,n,r,!1,o,i)}]),e.SandBoxType.Proxy,[function(){return as(t,n,r,!1,o,i,a)}]),e.SandBoxType.Snapshot,[function(){return Zc(t,n,r,!1,o,i)}])[r.type])||void 0===u?void 0:u.map((function(e){return e()}))}(t,n,s,r,a,c),f=[],p=[];return{instance:s,mount:function(){return i(P.mark((function e(){var o,i;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.active(),o=p.slice(0,l.length),i=p.slice(l.length),o.length&&o.forEach((function(e){return e()})),f=fs(t,n,s,r,a,c),i.length&&i.forEach((function(e){return e()})),p=[];case 7:case"end":return e.stop()}}),e)})))()},unmount:function(){return i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p=[].concat(v(l),v(f)).map((function(e){return e()})),s.inactive();case 2:case"end":return e.stop()}}),e)})))()}}}var vs=["singular","sandbox","excludeAssetFilter","globalContext"];function ms(e,t){if(!e){if(t)throw new li(t);throw new li("element not existed!")}}function ys(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;return e.length?e.reduce((function(e,r){return e.then((function(){return r(t,n)}))}),Promise.resolve()):Promise.resolve()}function gs(e,t){return bs.apply(this,arguments)}function bs(){return(bs=i(P.mark((function e(t,n){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return","function"==typeof t?t(n):!!t);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ws=!!document.head.attachShadow||!!document.head.createShadowRoot;function Es(e,t,n,r){var o=document.createElement("div");o.innerHTML=e;var i=o.firstChild;if(t)if(ws){var a=i.innerHTML;i.innerHTML="",(i.attachShadow?i.attachShadow({mode:"open"}):i.createShadowRoot()).innerHTML=a}else console.warn("[qiankun]: As current browser not support shadow dom, your strictStyleIsolation configuration will be ignored!");if(n){i.getAttribute($u)||i.setAttribute($u,r);var u=i.querySelectorAll("style")||[];Fr(u,(function(e){Qu(i,e,r)}))}return i}function xs(e,t,n,r,o){return function(){if(t){if(n)throw new li("strictStyleIsolation can not be used with legacy render!");if(r)throw new li("experimentalStyleIsolation can not be used with legacy render!");var i=document.getElementById(Mu(e));return ms(i,"Wrapper element for ".concat(e," is not existed!")),i}var a=o();return ms(a,"Wrapper element for ".concat(e," is not existed!")),n&&ws?a.shadowRoot:a}}var Ss,_s,Os=HTMLElement.prototype.appendChild,Ps=HTMLElement.prototype.removeChild;function Ts(e,t,n){return function(r,o){var i=r.element,a=r.container;if(n)return n({loading:r.loading,appContent:i?t:""});var u=Gu(a);"unmounted"!==o&&ms(u,function(){switch(o){case"loading":case"mounting":return"Target container with ".concat(a," not existed while ").concat(e," ").concat(o,"!");case"mounted":return"Target container with ".concat(a," not existed after ").concat(e," ").concat(o,"!");default:return"Target container with ".concat(a," not existed while ").concat(e," rendering!")}}());if(u&&!u.contains(i)){for(;u.firstChild;)Ps.call(u,u.firstChild);i&&Os.call(u,i)}}}function Ms(e,t,n,r){if(Ru(e))return e;if(r){var o=n[r];if(Ru(o))return o}var i=n[t];if(Ru(i))return i;throw new li("You need to export lifecycle functions in ".concat(t," entry"))}function js(e){return As.apply(this,arguments)}function As(){return As=i(P.mark((function e(t){var n,r,o,a,u,c,l,f,p,d,h,v,m,g,b,w,E,x,_,O,T,M,j,A,L,C,R,D,k,G,I,N,H,V,B,F,U,W,q,z,K,Y,$,Q,X,J,Z,ee,te,ne,re,oe,ie,ae,ue,ce,se=arguments;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=se.length>1&&void 0!==se[1]?se[1]:{},a=se.length>2?se[2]:void 0,u=t.entry,l=Cu(c=t.name),p=void 0!==(f=o.singular)&&f,h=void 0===(d=o.sandbox)||d,v=o.excludeAssetFilter,g=void 0===(m=o.globalContext)?window:m,b=s(o,vs),e.next=9,Ko(u,b);case 9:return E=(w=e.sent).template,x=w.execScripts,_=w.assetPublicPath,O=w.getExternalScripts,e.next=16,O();case 16:return e.next=18,gs(p,t);case 18:if(!e.sent){e.next=21;break}return e.next=21,Ss&&Ss.promise;case 21:return T=Tu(l,h)(E),M="object"===y(h)&&!!h.strictStyleIsolation,j=ku(h),A=Es(T,M,j,l),L="container"in t?t.container:void 0,(R=Ts(l,T,C="render"in t?t.render:void 0))({element:A,loading:!0,container:L},"loading"),D=xs(l,!!C,M,j,(function(){return A})),k=g,G=function(){return Promise.resolve()},I=function(){return Promise.resolve()},N="object"===y(h)&&!!h.loose,H="object"!==y(h)||!1!==h.speedy,h&&(V=hs(l,D,j,N,v,k,H),k=V.instance.proxy,G=V.mount,I=V.unmount),B=Dr({},$o(k,_),a,(function(e,t){return It(null!=e?e:[],null!=t?t:[])})),U=void 0===(F=B.beforeUnmount)?[]:F,q=void 0===(W=B.afterUnmount)?[]:W,K=void 0===(z=B.afterMount)?[]:z,$=void 0===(Y=B.beforeMount)?[]:Y,X=void 0===(Q=B.beforeLoad)?[]:Q,e.next=40,ys(mu(X),t,k);case 40:return e.next=42,x(k,h&&!N,{scopedGlobalVariables:H?xc:[]});case 42:return J=Ms(e.sent,c,k,null===(n=V)||void 0===n||null===(r=n.instance)||void 0===r?void 0:r.latestSetProp),Z=J.bootstrap,ee=J.mount,te=J.unmount,ne=J.update,re=fa(l),oe=re.onGlobalStateChange,ie=re.setGlobalState,ae=re.offGlobalStateChange,ue=function(e){return A=e},ce=function(){var e,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,o={name:l,bootstrap:Z,mount:[i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case 1:case"end":return e.stop()}}),e)}))),i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gs(p,t);case 2:if(e.t0=e.sent,!e.t0){e.next=5;break}e.t0=Ss;case 5:if(!e.t0){e.next=7;break}return e.abrupt("return",Ss.promise);case 7:return e.abrupt("return",void 0);case 8:case"end":return e.stop()}}),e)}))),i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=A,n=xs(l,!!C,M,j,(function(){return e}));case 2:case"end":return t.stop()}}),t)}))),i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:!(r!==L)&&e||(e=Es(T,M,j,l),ue(e)),R({element:e,loading:!0,container:r},"mounting");case 3:case"end":return t.stop()}}),t)}))),G,i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ys(mu($),t,k));case 1:case"end":return e.stop()}}),e)}))),function(){var e=i(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ee(S(S({},t),{},{container:n(),setGlobalState:ie,onGlobalStateChange:oe})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",R({element:e,loading:!1,container:r},"mounted"));case 1:case"end":return t.stop()}}),t)}))),i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ys(mu(K),t,k));case 1:case"end":return e.stop()}}),e)}))),i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gs(p,t);case 2:if(!e.sent){e.next=4;break}Ss=new Du;case 4:case"end":return e.stop()}}),e)}))),i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case 1:case"end":return e.stop()}}),e)})))],unmount:[i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ys(mu(U),t,k));case 1:case"end":return e.stop()}}),e)}))),function(){var e=i(P.mark((function e(t){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",te(S(S({},t),{},{container:n()})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I,i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ys(mu(q),t,k));case 1:case"end":return e.stop()}}),e)}))),i(P.mark((function t(){return P.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:R({element:null,loading:!1,container:r},"unmounted"),ae(l),ue(e=null);case 4:case"end":return t.stop()}}),t)}))),i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gs(p,t);case 2:if(e.t0=e.sent,!e.t0){e.next=5;break}e.t0=Ss;case 5:if(!e.t0){e.next=7;break}Ss.resolve();case 7:case"end":return e.stop()}}),e)})))]};return"function"==typeof ne&&(o.update=ne),o},e.abrupt("return",ce);case 48:case"end":return e.stop()}}),e)}))),As.apply(this,arguments)}function Ls(e,t){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}if(void 0!==window.requestIdleCallback)_s=window.requestIdleCallback;else if(void 0!==window.MessageChannel){var Cs=new MessageChannel,Rs=Cs.port2,Ds=[];Cs.port1.onmessage=function(e){var t=e.data,n=Ds.shift();n&&Ls(n,t.start)},_s=function(e){Ds.push(e),Rs.postMessage({start:Date.now()})}}else _s=function(e){return setTimeout(Ls,0,e,Date.now())};var ks=!!navigator.connection&&(navigator.connection.saveData||"wifi"!==navigator.connection.type&&"ethernet"!==navigator.connection.type&&/([23])g/.test(navigator.connection.effectiveType));function Gs(e,t){navigator.onLine&&!ks&&_s(i(P.mark((function n(){var r,o;return P.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ko(e,t);case 2:o=(r=n.sent).getExternalScripts,_s(r.getExternalStyleSheets),_s(o);case 7:case"end":return n.stop()}}),n)}))))}function Is(e,t){window.addEventListener("single-spa:first-mount",(function n(){e.filter((function(e){return Ye(e.name)===N})).forEach((function(e){return Gs(e.entry,t)})),window.removeEventListener("single-spa:first-mount",n)}))}function Ns(e,t){e.forEach((function(e){return Gs(e.entry,t)}))}var Hs=["name","activeRule","loader","props"],Vs=["mount"],Bs=["prefetch","urlRerouteOnly"],Fs=[],Us={},Ws=!1,qs=new Du,zs=function(e){var t=e.sandbox,n=void 0===t||t,r=e.singular;if(n){if(!window.Proxy)return console.warn("[qiankun] Missing window.Proxy, proxySandbox will degenerate into snapshotSandbox"),!1===r&&console.warn("[qiankun] Setting singular as false may cause unexpected behavior while your browser not support window.Proxy"),S(S({},e),{},{sandbox:"object"===y(n)?S(S({},n),{},{loose:!0}):{loose:!0}});if(!Ou()&&(!0===n||"object"===y(n)&&!1!==n.speedy))return console.warn("[qiankun] Speedy mode will turn off as const destruct assignment not supported in current browser!"),S(S({},e),{},{sandbox:"object"===y(n)?S(S({},n),{},{speedy:!1}):{speedy:!1}})}return e};var Ks=new Map,Ys=new Map;function $s(e){window.addEventListener("single-spa:no-app-change",(function t(){ze().length||je(e),window.removeEventListener("single-spa:no-app-change",t)}))}e.__internalGetCurrentRunningApp=Nu,e.addErrorHandler=D,e.addGlobalUncaughtErrorHandler=function(e){window.addEventListener("error",e),window.addEventListener("unhandledrejection",e)},e.initGlobalState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e===ca)console.warn("[qiankun] state has not changed!");else{var t=ua(ca);la(ca=ua(e),t)}return fa("global-".concat(+new Date),!0)},e.loadMicroApp=function(e,t,n){var r,o,a=e.props,u=e.name,c="container"in e?e.container:void 0,s=function(e){if(e){var t=Gu(e);if(t)return function(e,t){if(t.body.contains(e)){for(var n,r,o="",i=e;i!==t.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(t.documentElement.nodeName,"']/").concat(o)).replace(/\/$/,"")}}(t,document)}}(c),l="".concat(u,"-").concat(s),f=function(e){var t=e;if(c&&s){var n=Ys.get(l);if(null==n?void 0:n.length){var o=[i(P.mark((function e(){var t,o;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.slice(0,n.indexOf(r)),o=t.filter((function(e){return"LOAD_ERROR"!==e.getStatus()&&"SKIP_BECAUSE_BROKEN"!==e.getStatus()})),e.next=4,Promise.all(o.map((function(e){return e.unmountPromise})));case 4:case"end":return e.stop()}}),e)})))].concat(v(mu(t.mount)));t=S(S({},e),{},{mount:o})}}return S(S({},t),{},{bootstrap:function(){return Promise.resolve()}})},p=function(){var r=i(P.mark((function r(){var o,i,a,p,d;return P.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=zs(null!=t?t:S(S({},Us),{},{singular:!1})),i=o.$$cacheLifecycleByAppName,!c){r.next=21;break}if(!i){r.next=12;break}if(!(a=Ks.get(u))){r.next=12;break}return r.t0=f,r.next=9,a;case 9:return r.t1=r.sent,r.t2=(0,r.t1)(c),r.abrupt("return",(0,r.t0)(r.t2));case 12:if(!s){r.next=21;break}if(!(p=Ks.get(l))){r.next=21;break}return r.t3=f,r.next=18,p;case 18:return r.t4=r.sent,r.t5=(0,r.t4)(c),r.abrupt("return",(0,r.t3)(r.t5));case 21:return d=js(e,o,n),c&&(i?Ks.set(u,d):s&&Ks.set(l,d)),r.next=25,d;case 25:return r.t6=r.sent,r.abrupt("return",(0,r.t6)(c));case 27:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();if(Ws||!1===(null==t?void 0:t.autoStart)||st({urlRerouteOnly:null===(o=Us.urlRerouteOnly)||void 0===o||o}),r=de(p,S({domElement:document.createElement("div")},a)),c&&s){var d=Ys.get(l)||[];d.push(r),Ys.set(l,d);var h=function(){var e=d.indexOf(r);d.splice(e,1),r=null};r.unmountPromise.then(h).catch(h)}return r},e.prefetchApps=Ns,e.registerMicroApps=function(e,t){var n=e.filter((function(e){return!Fs.some((function(t){return t.name===e.name}))}));Fs=[].concat(v(Fs),v(n)),n.forEach((function(e){var n,r=e.name,o=e.activeRule,u=e.loader,c=void 0===u?a:u,l=e.props,f=s(e,Hs);$e({name:r,app:(n=i(P.mark((function e(){var n,o,a;return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,qs.promise;case 3:return e.next=5,js(S({name:r,props:l},f),Us,t);case 5:return e.t0=e.sent,n=(0,e.t0)(),o=n.mount,a=s(n,Vs),e.abrupt("return",S({mount:[i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(!0));case 1:case"end":return e.stop()}}),e)})))].concat(v(mu(o)),[i(P.mark((function e(){return P.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c(!1));case 1:case"end":return e.stop()}}),e)})))])},a));case 10:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),activeWhen:o,customProps:l})}))},e.removeErrorHandler=k,e.removeGlobalUncaughtErrorHandler=function(e){window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",e)},e.runAfterFirstMounted=function(e){window.addEventListener("single-spa:first-mount",(function t(){e(),window.removeEventListener("single-spa:first-mount",t)}))},e.runDefaultMountEffects=function(e){console.warn("[qiankun] runDefaultMountEffects will be removed in next version, please use setDefaultMountApp instead"),$s(e)},e.setDefaultMountApp=$s,e.start=function(){Us=S({prefetch:!0,singular:!0,sandbox:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});var e=Us.prefetch,t=Us.urlRerouteOnly,n=void 0===t||t,r=s(Us,Bs);e&&function(e,t,n){var r=function(t){return e.filter((function(e){return t.includes(e.name)}))};if(Array.isArray(t))Is(r(t),n);else if(Zt(t))i(P.mark((function o(){var i,a,u,c;return P.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t(e);case 2:c=void 0===(u=(i=o.sent).minorAppsName)?[]:u,Ns(r(void 0===(a=i.criticalAppNames)?[]:a),n),Is(r(c),n);case 9:case"end":return o.stop()}}),o)})))();else switch(t){case!0:Is(e,n);break;case"all":Ns(e,n)}}(Fs,e,r),Us=zs(Us),st({urlRerouteOnly:n}),Ws=!0,qs.resolve()},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
+
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
function isDomainOrIP(str) {
|
|
2
|
+
const ipPattern = /^(\d{1,3}\.){3}\d{1,3}$/
|
|
3
|
+
const domainPattern = /^[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,}$/
|
|
4
|
+
if (ipPattern.test(str)) {
|
|
5
|
+
return true
|
|
6
|
+
}
|
|
7
|
+
if (str.slice(0, 2) === '//') {
|
|
8
|
+
return domainPattern.test(str.slice(2, str.length))
|
|
9
|
+
}
|
|
10
|
+
if (str.slice(0, 7) === 'http://') {
|
|
11
|
+
return domainPattern.test(str.slice(7, str.length))
|
|
12
|
+
}
|
|
13
|
+
if (str.slice(0, 8) === 'https://') {
|
|
14
|
+
return domainPattern.test(str.slice(8, str.length))
|
|
15
|
+
}
|
|
16
|
+
return domainPattern.test(str)
|
|
17
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wujie",[],t):"object"==typeof exports?exports.wujie=t():e.wujie=t()}(self,(function(){return function(){var e={819:function(e,t,n){var r=n(957).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,c=i.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new U(r||[]);return a(i,"_invoke",{value:L(e,n,c)}),i}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",v="suspendedYield",y="executing",w="completed",g={};function b(){}function E(){}function _(){}var O={};d(O,l,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(R([])));j&&j!==i&&c.call(j,l)&&(O=j);var P=_.prototype=b.prototype=Object.create(O);function W(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,u){var l=h(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==r(f)&&c.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,u)}))}u(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function L(e,n,r){var o=m;return function(i,c){if(o===y)throw new Error("Generator is already running");if(o===w){if("throw"===i)throw c;return{value:t,done:!0}}for(r.method=i,r.arg=c;;){var a=r.delegate;if(a){var u=C(a,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=w,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=y;var l=h(e,n,r);if("normal"===l.type){if(o=r.done?w:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=w,r.method="throw",r.arg=l.arg)}}}function C(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=h(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var c=i.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function U(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function R(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(c.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return E.prototype=_,a(P,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:E,configurable:!0}),E.displayName=d(_,f,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},n.awrap=function(e){return{__await:e}},W(S.prototype),d(S.prototype,s,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var c=new S(p(e,t,r,o),i);return n.isGeneratorFunction(t)?c:c.next().then((function(e){return e.done?e.value:c.next()}))},W(P),d(P,f,"Generator"),d(P,l,(function(){return this})),d(P,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=R,U.prototype={constructor:U,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&c.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return a.type="throw",a.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=c.call(i,"catchLoc"),l=c.call(i,"finallyLoc");if(u&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},957:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},891:function(e,t,n){var r=n(819)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,"string");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:String(n)}function o(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(e,t,n,r,o,i,c){try{var a=e[i](c),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var c=e.apply(t,n);function a(e){i(c,r,o,a,u,"next",e)}function u(e){i(c,r,o,a,u,"throw",e)}a(void 0)}))}}n.r(r),n.d(r,{bus:function(){return Bn},destroyApp:function(){return Yn},preloadApp:function(){return $n},setupApp:function(){return Fn},startApp:function(){return qn}});var a=n(891),u=n.n(a);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,c,a=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(l)throw o}}return a}}(e,t)||s(e,t)||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.")}()}var d="data-wujie-id",p="data-wujie-script-id",h="data-wujie-Flag",m="data-container-position-flag",v="data-container-overflow-flag",y="data-loading-flag",w="data-wujie-attach-css-flag",g="_wujie_all_event",b="position: fixed; z-index: 2147483647; visibility: hidden; inset: 0px; backface-visibility: hidden;",E="position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index:1;",_='<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="30px" viewBox="0 0 24 30">\n<rect x="0" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="10" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n<rect x="20" y="13" width="4" height="5" fill="#909090">\n <animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n <animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate>\n</rect>\n</svg>',O="url参数为空",x="子应用调用reload无法生效",j="此报错可以忽略,iframe主动中断主应用代码在子应用运行",P=j+",详见:https://github.com/Tencent/wujie/issues/54",W="事件订阅数量为空",S="脚本请求出现错误",L="样式请求出现错误",C="html请求出现错误",I="无界组件短时间重复渲染了两次,可能存在性能问题请检查代码",T="目标Script尚未准备好或已经被移除";function U(e){return"function"==typeof e}var R=window.Proxy&&window.CustomElementRegistry,M="function"==typeof document.all&&void 0===document.all,D=new WeakMap,A=function(e){if(D.has(e))return!0;var t=M?"function"==typeof e&&void 0!==e:"function"==typeof e;return t&&D.set(e,t),t},N=new WeakMap;function k(e){if(N.has(e))return N.get(e);var t=0===e.name.indexOf("bound ")&&!e.hasOwnProperty("prototype");return N.set(e,t),t}var J=new WeakMap;function H(e){var t=e.prototype&&e.prototype.constructor===e&&Object.getOwnPropertyNames(e.prototype).length>1;if(t)return!0;if(J.has(e))return J.get(e);var n=t;if(!n){var r=e.toString();n=/^function\b\s[A-Z].*/.test(r)||/^class\b/.test(r)}return J.set(e,n),n}var B=new WeakMap;function F(e,t){var n=e[t];if(B.has(n))return B.get(n);if(A(n)&&!k(n)&&!H(n)){var r=Function.prototype.bind.call(n,e);for(var o in B.set(n,r),n)r[o]=n[o];return n.hasOwnProperty("prototype")&&!r.hasOwnProperty("prototype")&&Object.defineProperty(r,"prototype",{value:n.prototype,enumerable:!1,writable:!0}),r}return n}function q(e){return window.document.querySelector("iframe[".concat(d,'="').concat(e,'"]'))}function Q(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function $(e){if(!e)throw ne(O),new Error;var t=Y(e),n=t.protocol+"//"+t.host,r=t.pathname+t.search+t.hash;return r.startsWith("/")||(r="/"+r),{urlElement:t,appHostPath:n,appRoutePath:r}}function Y(e){var t=window.document.createElement("a");return t.href=e,t.href=t.href,t}function X(e){var t=e.search.replace("?","").split("&"),n={};return t.forEach((function(e){var t=f(e.split("="),2),r=t[0],o=t[1];r&&o&&(n[r]=o)})),n}function G(e){var t=X(Y(window.location.href));return Object.keys(t).includes(e)}function V(e,t,n){var r=e.Element.prototype.setAttribute;t.prototype.setAttribute=function(e,t){var o=t;e===n&&(o=K(t,this.baseURI||"",!0)),r.call(this,e,o)};var o=Object.getOwnPropertyDescriptor(t.prototype,n),i=o.enumerable,c=o.configurable,a=o.get,u=o.set;Object.defineProperty(t.prototype,n,{enumerable:i,configurable:c,get:function(){return a.call(this)},set:function(e){u.call(this,K(e,this.baseURI,!0))}})}function z(e){var t=e;return t.protocol+"//"+t.host+t.pathname}function K(e,t,n){try{return e?n&&e.startsWith("#")?e:new URL(e,t).href:e}catch(t){return e}}var Z=window.requestIdleCallback||function(e){return setTimeout(e,1)};function ee(e){return"string"==typeof e?document.querySelector(e):e}function te(e,t){var n;null===(n=console)||void 0===n||n.warn("[wujie warn]: ".concat(e),t)}function ne(e,t){var n;null===(n=console)||void 0===n||n.error("[wujie error]: ".concat(e),t)}function re(e){var t=e.indexOf(">")+1,n=e.lastIndexOf("<");return e.substring(t,n)}function oe(t){if("object"===e(t))return"/";try{var n=new URL(t,location.href),r=n.origin,o=n.pathname.split("/");return o.pop(),"".concat(r).concat(o.join("/"),"/")}catch(e){return console.warn(e),""}}function ie(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.reduce((function(e,t){return U(t)?t.apply(void 0,[e].concat(r)):e}),t||"")}}function ce(e){Promise.resolve().then(e)}function ae(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];try{e&&e.length>0&&e.map((function(e){return e[t]})).filter((function(e){return U(e)})).forEach((function(e){return e.apply(void 0,r)}))}catch(e){ne(e)}}function ue(e){var t;return"SCRIPT"===(null===(t=e.tagName)||void 0===t?void 0:t.toUpperCase())}var le=1;function se(e,t){if(ue(e)){var n=t||String(le++);e.setAttribute(p,n)}}function fe(e){return ue(e)?e.getAttribute(p):null}function de(e,t){return{name:e.name,el:e.el||(null==t?void 0:t.el),url:e.url||(null==t?void 0:t.url),html:e.html||(null==t?void 0:t.html),exec:void 0!==e.exec?e.exec:null==t?void 0:t.exec,replace:e.replace||(null==t?void 0:t.replace),fetch:e.fetch||(null==t?void 0:t.fetch),props:e.props||(null==t?void 0:t.props),sync:void 0!==e.sync?e.sync:null==t?void 0:t.sync,prefix:e.prefix||(null==t?void 0:t.prefix),loading:e.loading||(null==t?void 0:t.loading),attrs:void 0!==e.attrs?e.attrs:(null==t?void 0:t.attrs)||{},degradeAttrs:void 0!==e.degradeAttrs?e.degradeAttrs:(null==t?void 0:t.degradeAttrs)||{},fiber:void 0!==e.fiber?e.fiber:void 0===(null==t?void 0:t.fiber)||(null==t?void 0:t.fiber),alive:void 0!==e.alive?e.alive:null==t?void 0:t.alive,degrade:void 0!==e.degrade?e.degrade:null==t?void 0:t.degrade,plugins:e.plugins||(null==t?void 0:t.plugins),lifecycles:{beforeLoad:e.beforeLoad||(null==t?void 0:t.beforeLoad),beforeMount:e.beforeMount||(null==t?void 0:t.beforeMount),afterMount:e.afterMount||(null==t?void 0:t.afterMount),beforeUnmount:e.beforeUnmount||(null==t?void 0:t.beforeUnmount),afterUnmount:e.afterUnmount||(null==t?void 0:t.afterUnmount),activated:e.activated||(null==t?void 0:t.activated),deactivated:e.deactivated||(null==t?void 0:t.deactivated),loadError:e.loadError||(null==t?void 0:t.loadError)}}}function pe(e,t,n){var r;"function"==typeof window.CustomEvent?r=new CustomEvent(t,{detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!1,n),e.dispatchEvent(r)}function he(){throw te(P),new Error(j)}var me=/(<script[\s\S]*?>)[\s\S]*?<\/script>/gi,ve=/<(script)\s+((?!type=('|")text\/ng\x2Dtemplate\3)[\s\S])*?>[\s\S]*?<\/\1>/i,ye=/.*\ssrc=('|")?([^>'"\s]+)/,we=/.*\stype=('|")?([^>'"\s]+)/,ge=/.*\sentry\s*.*/,be=/.*\sasync\s*.*/,Ee=/.*\sdefer\s*.*/,_e=/.*\snomodule\s*.*/,Oe=/.*\stype=('|")?module('|")?\s*.*/,xe=/<(link)\s+[\s\S]*?>/gi,je=/\srel=('|")?(preload|prefetch|modulepreload)\1/,Pe=/.*\shref=('|")?([^>'"\s]+)/,We=/.*\sas=('|")?font\1.*/,Se=/<style[^>]*>[\s\S]*?<\/style>/gi,Le=/\s+rel=('|")?stylesheet\1.*/,Ce=/.*\shref=('|")?([^>'"\s]+)/,Ie=/<!--([\s\S]*?)-->/g,Te=/<link(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Ue=/<style(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Re=/<script(\s+|\s+[\s\S]+\s+)ignore(\s*|\s+[\s\S]*|=[\s\S]*)>/i,Me=/.*\scrossorigin=?('|")?(use-credentials|anonymous)?('|")?/i;function De(e){return e.startsWith("//")||e.startsWith("http://")||e.startsWith("https://")}function Ae(e,t){return new URL(e,t).toString()}function Ne(e){var t=/<[-\w]+\s+([^>]*)>/i.exec(e);if(!t)return{};for(var n,r=t[1],o=/([^\s=]+)\s*=\s*(['"])(.*?)\2/g,i={};null!==(n=o.exec(r));){var c=n[1],a=n[3];i[c]=a}return i}var ke=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?"prefetch/preload/modulepreload":""," link ").concat(e," replaced by wujie --\x3e")},Je=function(e){return"\x3c!-- inline-style-".concat(e," replaced by wujie --\x3e")},He=function(e){return"\x3c!-- ".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""," script ").concat(e," replaced by wujie --\x3e")},Be="\x3c!-- inline scripts replaced by wujie --\x3e",Fe=function(e){return"\x3c!-- ignore asset ".concat(e||"file"," replaced by wujie --\x3e")},qe=function(e,t){return"\x3c!-- ".concat(t?"nomodule":"module"," script ").concat(e," ignored by wujie --\x3e")};function Qe(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $e(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ie(t.map((function(e){return e.cssLoader})))(n?n(e):e,r,o)}}function Ye(e,t){var n=t.map((function(t){return t[e]})).filter((function(e){return null==e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[]);return"cssBeforeLoaders"===e?n.reverse():n}function Xe(e,t){return t.map((function(t){return t[e]})).filter((function(e){return null==e?void 0:e.length})).reduce((function(e,t){return e.concat(t)}),[])}function Ge(e,t){return t.some((function(t){return"string"==typeof t?e===t:t.test(e)}))}var Ve={cssLoader:function(e,t,n){var r=t?K(t,n):n;return e.replace(/(url\((?!['"]?(?:data):)['"]?)([^'")]*)(['"]?\))/g,(function(e,t,n,o){return t+K(n,r)+o}))},cssBeforeLoaders:[{content:"html {view-transition-name: none;}"}]};function ze(e){return Array.isArray(e)?[Ve].concat(Qe(e)):[Ve]}function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et={},tt={},nt={};if(!window.fetch)throw ne("window上不存在fetch属性,需要自行polyfill"),new Error;var rt=window.fetch.bind(window);function ot(e){return e}function it(e,t,n){return ct.apply(this,arguments)}function ct(){return(ct=c(u().mark((function e(t,n,r){var o,i,c,a;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=z(t.proxyLocation),i=ie(t.plugins.map((function(e){return e.cssLoader}))),c=r().map((function(e){var t=e.src,n=e.ignore,r=e.contentPromise;return{src:t,ignore:n,contentPromise:r.then((function(e){return i(e,t,o)}))}})),e.next=5,at(n,c);case 5:return a=e.sent,e.abrupt("return",t.replace?t.replace(a):a);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function at(e,t){return ut.apply(this,arguments)}function ut(){return(ut=c(u().mark((function e(t,n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t,e.abrupt("return",Promise.all(n.map((function(e,t){return e.contentPromise.then((function(n){e.src?r=r.replace(ke(e.src),e.ignore?'<link href="'.concat(e.src,'" rel="stylesheet" type="text/css">'):"<style>/* ".concat(e.src," */").concat(n,"</style>")):n&&(r=r.replace(Je(t),"<style>/* inline-style-".concat(t," */").concat(n,"</style>")))}))}))).then((function(){return r})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var lt=function(e){return e.startsWith("<")},st=function(e,t,n,r,o){return t[e]||(t[e]=n(e).then((function(n){if(n.status>=400){if(t[e]=null,r)return ne(L,{src:e,response:n}),null==o||o(e,new Error(L)),"";throw ne(S,{src:e,response:n}),null==o||o(e,new Error(S)),new Error(S)}return n.text()})).catch((function(n){return t[e]=null,r?(ne(L,e),null==o||o(e,n),""):(ne(S,e),null==o||o(e,n),"")})))};function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,n=arguments.length>2?arguments[2]:void 0;return e.map((function(e){var r=e.src,o=e.content,i=e.ignore;return o?{src:"",contentPromise:Promise.resolve(o)}:lt(r)?{src:"",contentPromise:Promise.resolve(re(r))}:{src:r,ignore:i,contentPromise:i?Promise.resolve(""):st(r,et,t,!0,n)}}))}function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return e.map((function(e){var o,i=e.src,c=e.async,a=e.defer,u=e.module,l=e.ignore;return o=(c||a)&&i&&!u?new Promise((function(e,o){return r?Z((function(){return st(i,tt,t,!1,n).then(e,o)})):st(i,tt,t,!1,n).then(e,o)})):u&&i||l?Promise.resolve(""):i?st(i,tt,t,!1,n):Promise.resolve(e.content),u&&!c&&(e.defer=!0),Ze(Ze({},e),{},{contentPromise:o})}))}function pt(e){var t,n,r=e.url,o=e.opts,i=e.html,c=null!==(t=o.fetch)&&void 0!==t?t:rt,a=null===(n=o.fiber)||void 0===n||n,u=o.plugins,l=o.loadError,s=u?ie(u.map((function(e){return e.htmlLoader}))):ot,d=Xe("jsExcludes",u),p=Xe("cssExcludes",u),h=Xe("jsIgnores",u),m=Xe("cssIgnores",u),v=oe,y=function(e,t,n){return(t?Promise.resolve(t):c(e).then((function(t){return t.status>=400?(ne(C,{url:e,response:t}),null==l||l(e,new Error(C)),""):t.text()})).catch((function(t){return nt[e]=null,null==l||l(e,t),Promise.reject(t)}))).then((function(t){var r=v(e),o=function(e,t,n){var r=[],o=[],i=null,c="noModule"in window.document.createElement("script"),a={template:e.replace(Ie,"").replace(xe,(function(e){if(e.match(Le)){var n=e.match(Ce),r=e.match(Te);if(n){var i=n&&n[2],c=i;return i&&!De(i)&&(c=Ae(i,t)),r?Fe(c):(o.push({src:c}),ke(c))}}if(e.match(je)&&e.match(Pe)&&!e.match(We)){var a=f(e.match(Pe),3)[2];return ke(a,!0)}return e})).replace(Se,(function(e){if(Ue.test(e))return Fe("style file");var t=re(e);return o.push({src:"",content:t}),Je(o.length-1)})).replace(me,(function(e,n){var o,a=n.match(Re),u=!!n.match(Oe),l=n.match(Me),s=(null==l?void 0:l[2])||"",f=c&&!!n.match(_e)||!c&&u,d=n.match(we);if((o=d&&d[2])&&-1===["text/javascript","module","application/javascript","text/ecmascript","application/ecmascript"].indexOf(o))return e;if(ve.test(e)&&n.match(ye)){var p=n.match(ge),h=n.match(ye),m=h&&h[2];if(i&&p)throw new SyntaxError("You should not set multiply entry script!");if(m&&!De(m)&&(m=Ae(m,t)),i=i||p&&m,a)return Fe(m||"js file");if(f)return qe(m||"js file",c);if(m){var v=!!n.match(be),y=!!n.match(Ee);return r.push(v||y?{async:v,defer:y,src:m,module:u,crossorigin:!!l,crossoriginType:s,attrs:Ne(e)}:{src:m,module:u,crossorigin:!!l,crossoriginType:s,attrs:Ne(e)}),He(m,(v?"async":y&&"defer")||"")}return e}if(a)return Fe("js file");if(f)return qe("js file",c);var w=re(e);return!w.split(/[\r\n]+/).every((function(e){return!e.trim()||e.trim().startsWith("//")}))&&w&&r.push({src:"",content:w,module:u,crossorigin:!!l,crossoriginType:s,attrs:Ne(e)}),Be})),scripts:r,styles:o,entry:i||r[r.length-1]};return"function"==typeof n&&(a=n(a)),a}(n(t),r),i=o.template,u=o.scripts,s=o.styles;return{template:i,assetPublicPath:r,getExternalScripts:function(){return dt(u.filter((function(e){return!e.src||!Ge(e.src,d)})).map((function(e){return Ze(Ze({},e),{},{ignore:e.src&&Ge(e.src,h)})})),c,l,a)},getExternalStyleSheets:function(){return ft(s.filter((function(e){return!e.src||!Ge(e.src,p)})).map((function(e){return Ze(Ze({},e),{},{ignore:e.src&&Ge(e.src,m)})})),c,l)}}}))};return null!=o&&o.plugins.some((function(e){return e.htmlLoader}))?y(r,i,s):nt[r]||(nt[r]=y(r,i,s))}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}function vt(e,t,n){return t&&mt(e.prototype,t),n&&mt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function wt(e){return wt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wt(e)}function gt(e,t,n){return gt=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&yt(o,n.prototype),o},gt.apply(null,arguments)}function bt(e){var t="function"==typeof Map?new Map:void 0;return bt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gt(e,arguments,wt(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)},bt(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ot=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.idToSandboxMap:new Map;function xt(e){var t;return(null===(t=Ot.get(e))||void 0===t?void 0:t.wujie)||null}function jt(e){var t;return(null===(t=Ot.get(e))||void 0===t?void 0:t.options)||null}var Pt={modifyLocalProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName"],modifyProperties:["createElement","createTextNode","documentURI","URL","getElementsByTagName","getElementsByClassName","getElementsByName","getElementById","querySelector","querySelectorAll","documentElement","scrollingElement","forms","images","links"],shadowProperties:["activeElement","childElementCount","children","firstElementChild","firstChild","fullscreenElement","lastElementChild","pictureInPictureElement","pointerLockElement","styleSheets"],shadowMethods:["append","contains","getSelection","elementFromPoint","elementsFromPoint","getAnimations","replaceChildren"],documentProperties:["characterSet","compatMode","contentType","designMode","dir","doctype","embeds","fullscreenEnabled","hidden","implementation","lastModified","pictureInPictureEnabled","plugins","readyState","referrer","visibilityState","fonts"],documentMethods:["execCommand","caretPositionFromPoint","createRange","exitFullscreen","exitPictureInPicture","getElementsByTagNameNS","hasFocus","prepend"],documentEvents:["onpointerlockchange","onpointerlockerror","onbeforecopy","onbeforecut","onbeforepaste","onfreeze","onresume","onsearch","onfullscreenchange","onfullscreenerror","onsecuritypolicyviolation","onvisibilitychange"],ownerProperties:["head","body"]},Wt=["DOMContentLoaded","readystatechange"],St=["onreadystatechange"],Lt=["fullscreenchange","fullscreenerror","selectionchange","visibilitychange","wheel","keydown","keypress","keyup"],Ct=["gotpointercapture","lostpointercapture"],It=["hashchange","popstate","DOMContentLoaded","load","beforeunload","unload","message","error","unhandledrejection"],Tt=["onload","onbeforeunload","onunload"],Ut={IMG:"src",A:"href",SOURCE:"src"},Rt=["getComputedStyle","visualViewport","matchMedia","DOMParser"],Mt=[/animationFrame$/i,/resizeObserver$|mutationObserver$|intersectionObserver$/i,/height$|width$|left$/i,/^screen/i,/X$|Y$/],Dt=HTMLElement.prototype.appendChild,At=HTMLElement.prototype.removeChild,Nt=HTMLElement.prototype.contains,kt=HTMLHeadElement.prototype.insertBefore,Jt=HTMLBodyElement.prototype.insertBefore,Ht=Node.prototype.addEventListener,Bt=Node.prototype.removeEventListener,Ft=window.addEventListener,qt=window.removeEventListener,Qt=Node.prototype.appendChild,$t=window.__POWERED_BY_WUJIE__?window.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__:Document.prototype.querySelector;function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(e,t){var n,r,o=(n=new CustomEvent(t),r=function(){return e},Object.defineProperties(n,{srcElement:{get:r},target:{get:r}}),n);U(e["on".concat(t)])?e["on".concat(t)](o):e.dispatchEvent(o)}function Vt(e,t){e.innerHTML&&!t.degrade&&(e._patcher&&clearTimeout(e._patcher),e._patcher=setTimeout((function(){var n=f(En([e.sheet]),2),r=n[0],o=n[1];r&&t.shadowRoot.head.appendChild(r),o&&t.shadowRoot.host.appendChild(o),e._patcher=void 0}),50))}var zt=Promise.resolve();function Kt(e){return function(t,n){var r,o=this,i=t,c=e.rawDOMAppendOrInsertBefore,a=e.wujieId,u=xt(a),l=u.styleSheetElements,s=u.replace,f=u.fetch,d=u.plugins,p=u.iframe,m=u.lifecycles,v=u.proxyLocation,y=u.fiber;if("LINK"!==(null==(r=i.tagName)?void 0:r.toUpperCase())&&"STYLE"!==(null==r?void 0:r.toUpperCase())&&"SCRIPT"!==(null==r?void 0:r.toUpperCase())&&"IFRAME"!==(null==r?void 0:r.toUpperCase())||!a){var w=c.call(this,i,n);return In(i,p.contentWindow),ae(d,"appendOrInsertElementHook",i,p.contentWindow),w}var g,b=p.contentDocument,E=z(v);if(i.tagName)switch(null===(g=i.tagName)||void 0===g?void 0:g.toUpperCase()){case"LINK":var _=i,O=_.href,x=_.rel,j=_.type;if("stylesheet"!==x&&"text/css"!==j&&!O.endsWith(".css")){var P=c.call(this,i,n);return ae(d,"appendOrInsertElementHook",i,p.contentWindow),P}O&&!Ge(O,Xe("cssExcludes",d))&&ft([{src:O,ignore:Ge(O,Xe("cssIgnores",d))}],f,m.loadError).forEach((function(e){var t=e.src,r=e.ignore;return e.contentPromise.then((function(e){var a=Ne(i.outerHTML);if(r&&t)c.call(o,i,n);else{var f=b.createElement("style"),p=$e({plugins:d,replace:s});f.innerHTML=p(e,t,E),l.push(f),Q(f,a),c.call(o,f,n),Vt(f,u),Gt(i,"load")}i=null}),(function(){Gt(i,"error"),i=null}))}));var W=b.createComment("dynamic link ".concat(O," replaced by wujie"));return c.call(this,W,n);case"STYLE":var S=t;l.push(S);var L=S.innerHTML,C=$e({plugins:d,replace:s});L&&(S.innerHTML=C(L,"",E));var T=c.call(this,i,n);return function(e,t,n,r){var o;if(!e._hasPatchStyle){var i=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML"),c=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText"),a=Object.getOwnPropertyDescriptor(Node.prototype,"textContent"),u=null===(o=e.sheet)||void 0===o?void 0:o.insertRule;l(),i&&Object.defineProperties(e,{innerHTML:{get:function(){return i.get.call(e)},set:function(o){var c=this;i.set.call(e,t(o,"",r)),ce((function(){return Vt(c,n)}))}}}),Object.defineProperties(e,{innerText:{get:function(){return c.get.call(e)},set:function(o){var i=this;c.set.call(e,t(o,"",r)),ce((function(){return Vt(i,n)}))}},textContent:{get:function(){return a.get.call(e)},set:function(o){var i=this;a.set.call(e,t(o,"",r)),ce((function(){return Vt(i,n)}))}},appendChild:{value:function(o){var i=this;if(ce((function(){return Vt(i,n)})),o.nodeType===Node.TEXT_NODE){var c=Qt.call(e,e.ownerDocument.createTextNode(t(o.textContent,"",r)));return l(),c}return Qt(o)}},_hasPatchStyle:{get:function(){return!0}}})}function l(){u&&(e.sheet.insertRule=function(t,n){return i?e.innerHTML+=t:e.innerText+=t,u.call(e.sheet,t,n)})}}(S,C,u,E),Vt(S,u),ae(d,"appendOrInsertElementHook",i,p.contentWindow),T;case"SCRIPT":se(i);var U=i,R=U.src,M=U.text,D=U.type,A=U.crossOrigin;if(R&&!Ge(R,Xe("jsExcludes",d))){var N=function(e){if(null===u.iframe)return te(I);Tn(Xt(Xt({},e),{},{onload:function(){Gt(i,"load"),i=null}}),u.iframe.contentWindow,i)};dt([{src:R,module:"module"===D,crossorigin:null!==A,crossoriginType:A||"",ignore:Ge(R,Xe("jsIgnores",d)),attrs:Ne(i.outerHTML)}],f,m.loadError,y).forEach((function(e){zt=zt.then((function(){return e.contentPromise.then((function(t){var n;if(null===u.execQueue)return te(I);var r=null===(n=u.execQueue)||void 0===n?void 0:n.length;u.execQueue.push((function(){return y?u.requestIdleCallback((function(){N(Xt(Xt({},e),{},{content:t}))})):N(Xt(Xt({},e),{},{content:t}))})),r||u.execQueue.shift()()}),(function(){Gt(i,"error"),i=null}))}))}))}else{var k,J=null===(k=u.execQueue)||void 0===k?void 0:k.length;u.execQueue.push((function(){return y?u.requestIdleCallback((function(){Tn({src:null,content:M,attrs:Ne(i.outerHTML)},u.iframe.contentWindow,i)})):Tn({src:null,content:M,attrs:Ne(i.outerHTML)},u.iframe.contentWindow,i)})),J||u.execQueue.shift()()}var H=b.createComment("dynamic script ".concat(R," replaced by wujie"));return c.call(this,H,n);case"IFRAME":if(""===i.getAttribute(h))return Qt.call($t.call(this.ownerDocument,"html"),i);var B=c.call(this,i,n);return ae(d,"appendOrInsertElementHook",i,p.contentWindow),B}}}function Zt(e,t){var n=fe(e),r=xt(t).iframe,o=r.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.querySelector("script[".concat(p,"='").concat(n,"']"));return null===o&&te(T,"<script ".concat(p,"='").concat(n,"'/>")),{targetScript:o,iframe:r}}function en(e){return function(t){var n=t,r=e.rawElementContains,o=e.wujieId;return n&&ue(n)?null!==Zt(n,o).targetScript:r(n)}}function tn(e){var t=new Map;e._cacheListeners=t,e.addEventListener=function(n,r,o){var i=t.get(n)||[];return t.set(n,[].concat(Qe(i),[r])),Ht.call(e,n,r,o)},e.removeEventListener=function(n,r,o){var i=t.get(n),c=null==i?void 0:i.indexOf(r);return null!=i&&i.length&&-1!==c&&i.splice(c,1),Bt.call(e,n,r,o)}}function nn(e){Qe(e._cacheListeners.entries()).forEach((function(t){var n=f(t,2),r=n[0];n[1].forEach((function(t){return Bt.call(e,r,t)}))}))}function rn(e,t,n){var r;n||(tn(e.head),tn(e.body)),e.head.appendChild=Kt({rawDOMAppendOrInsertBefore:Qt,wujieId:t}),e.head.insertBefore=Kt({rawDOMAppendOrInsertBefore:kt,wujieId:t}),e.head.removeChild=(r={rawElementRemoveChild:At.bind(e.head),wujieId:t},function(e){var t=e,n=r.rawElementRemoveChild,o=r.wujieId;if(t&&ue(t)){var i=Zt(t,o),c=i.targetScript,a=i.iframe;return null!==c?a.contentWindow.__WUJIE_RAW_DOCUMENT_HEAD__.removeChild(c):null}return n(t)}),e.head.contains=en({rawElementContains:Nt.bind(e.head),wujieId:t}),e.contains=en({rawElementContains:Nt.bind(e),wujieId:t}),e.body.appendChild=Kt({rawDOMAppendOrInsertBefore:Qt,wujieId:t}),e.body.insertBefore=Kt({rawDOMAppendOrInsertBefore:Jt,wujieId:t})}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,o=wt(t);if(n){var i=wt(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return 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 function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}(this,r)}}var un={":root":":host"};function ln(e,t){var n=ee(t);return n&&!n.contains(e)&&(n.querySelector("div[".concat(y,"]"))||wn(n),e&&Dt.call(n,e)),n}function sn(e,t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.createElement("iframe");return Q(n,cn(cn({},t),{},o({style:["height:100%;width:100%",t.style].join(";")},d,e))),n}(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=ln(n,t),i=n.contentWindow.document;return i.open(),i.write("<!DOCTYPE html><html><head></head><body></body></html>"),i.close(),{iframe:n,container:r}}function fn(e,t){return dn.apply(this,arguments)}function dn(){return(dn=c(u().mark((function e(t,n){var r,o,i,c,a,l,s,f;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.iframe.contentDocument,o=t.plugins,i=t.replace,c=t.proxyLocation,a=$e({plugins:o,replace:i}),l=Ye("cssBeforeLoaders",o),s=Ye("cssAfterLoaders",o),f=z(c),e.next=8,Promise.all([Promise.all(ft(l,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src;return e.contentPromise.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?a(o,t,f):o));var c=n.querySelector("head"),u=n.querySelector("body");n.insertBefore(i,c||u||n.firstChild)}}))})),Promise.all(ft(s,t.fetch,t.lifecycles.loadError).map((function(e){var t=e.src;return e.contentPromise.then((function(e){return{src:t,content:e}}))}))).then((function(e){e.forEach((function(e){var t=e.src,o=e.content;if(o){var i=r.createElement("style");i.setAttribute("type","text/css"),i.appendChild(r.createTextNode(o?a(o,t,f):o)),n.appendChild(i)}}))}))]).then((function(){return n}),(function(){return n}));case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pn(e,t){var n=e.__WUJIE,r=n.head,o=n.body,i=n.alive,c=n.execFlag,a=e.document,u=a.createElement("html");u.innerHTML=t,!i&&c?u=function(e,t,n){var r=e.querySelector("head"),o=e.querySelector("body");if(r){for(;r.firstChild;)Qt.call(t,r.firstChild.cloneNode(!0)),r.removeChild(r.firstChild);r.parentNode.replaceChild(t,r)}if(o){for(;o.firstChild;)Qt.call(n,o.firstChild.cloneNode(!0)),o.removeChild(o.firstChild);o.parentNode.replaceChild(n,o)}return e}(u,r,o):(n.head=u.querySelector("head"),n.body=u.querySelector("body"));for(var l=a.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,null,!1),s=l.currentNode;s;){In(s,e);var f=Ut[s.tagName],d=s[f];f&&s.setAttribute(f,K(d,s.baseURI||"")),s=l.nextNode()}if(!u.querySelector("head")){var p=a.createElement("head");u.appendChild(p)}if(!u.querySelector("body")){var h=a.createElement("body");u.appendChild(h)}return u}function hn(e,t,n){return mn.apply(this,arguments)}function mn(){return(mn=c(u().mark((function e(t,n,r){var o,i,c;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=pn(n,r),e.next=3,fn(n.__WUJIE,o);case 3:i=e.sent,t.appendChild(i),(c=document.createElement("div")).setAttribute("style",b),i.insertBefore(c,i.firstChild),t.head=t.querySelector("head"),t.body=t.querySelector("body"),Object.defineProperty(t.firstChild,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),rn(t,n.__WUJIE.id,!1);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(e,t,n){return yn.apply(this,arguments)}function yn(){return(yn=c(u().mark((function e(t,n,r){var o,i;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=pn(n,r),e.next=3,fn(n.__WUJIE,o);case 3:i=e.sent,t.replaceChild(i,t.documentElement),Object.defineProperty(t.documentElement,"parentNode",{enumerable:!0,configurable:!0,get:function(){return n.document}}),rn(t,n.__WUJIE.id,!0);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e){for(;null!=e&&e.firstChild;)At.call(e,e.firstChild)}function gn(e,t){var n=ee(e);wn(n);var r=null;try{r=window.getComputedStyle(n)}catch(e){return}"static"===r.position?(n.setAttribute(m,r.position),n.setAttribute(v,"visible"===r.overflow?"":r.overflow),n.style.setProperty("position","relative"),n.style.setProperty("overflow","hidden")):["relative","sticky"].includes(r.position)&&(n.setAttribute(v,"visible"===r.overflow?"":r.overflow),n.style.setProperty("overflow","hidden"));var o=document.createElement("div");o.setAttribute(y,""),o.setAttribute("style",E),t?o.appendChild(t):o.innerHTML=_,n.appendChild(o)}function bn(e){var t=e.getAttribute(m),n=e.getAttribute(v);t&&e.style.removeProperty("position"),null!==n&&(n?e.style.setProperty("overflow",n):e.style.removeProperty("overflow")),e.removeAttribute(m),e.removeAttribute(v);var r=e.querySelector("div[".concat(y,"]"));r&&e.removeChild(r)}function En(e){for(var t=[],n=[],r=/:root/g,o=0;o<e.length;o++)for(var i,c,a=null!==(i=null===(c=e[o])||void 0===c?void 0:c.cssRules)&&void 0!==i?i:[],u=0;u<a.length;u++){var l=a[u].cssText;r.test(l)&&t.push(l.replace(r,(function(e){return un[e]}))),a[u].type===CSSRule.FONT_FACE_RULE&&n.push(l)}var s=null,f=null;return t.length&&((s=window.document.createElement("style")).innerHTML=t.join("")),n.length&&((f=window.document.createElement("style")).innerHTML=n.join("")),[s,f]}function _n(e){var t=e.__WUJIE,n=t.sync,r=t.id,o=t.prefix,i=Y(window.location.href),c=X(i);if(!n&&!c[r])return null;var a=e.location.pathname+e.location.search+e.location.hash,u="";o&&Object.keys(o).forEach((function(e){var t=o[e];a.startsWith(t)&&(!u||t.length>o[u].length)&&(u=e)})),n?c[r]=window.encodeURIComponent(u?a.replace(o[u],"{".concat(u,"}")):a):delete c[r];var l="?"+Object.keys(c).map((function(e){return e+"="+c[e]})).join("&");i.search=l,i.href!==window.location.href&&window.history.replaceState(null,"",i.href),i=null}function On(e){var t=e.location,n=t.pathname,r=t.search,o=t.hash,i=e.__WUJIE,c=i.id,a=i.url,u=i.sync,l=i.execFlag,s=i.prefix,f=i.inject,d=u&&!l?function(e,t){var n,r=Y(window.location.href),o=X(r);r=null;var i=window.decodeURIComponent(o[e]||""),c=null===(n=i.match(/^{([^}]*)}/))||void 0===n?void 0:n[1];return t&&c?i.replace("{".concat(c,"}"),t[c]):i}(c,s):a,p=$((/^http/.test(d)?null:d)||a).appRoutePath;n+r+o!==p&&e.history.replaceState(null,"",f.mainHostPath+p)}function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e,t,n){e.__WUJIE=t,e.__WUJIE_PUBLIC_PATH__=n+"/",e.$wujie=t.provide,e.__WUJIE_RAW_WINDOW__=e}function Wn(e,t,n){var r,o=new URL(null===(r=e.location.href)||void 0===r?void 0:r.replace(n,""),t),i=$t.call(e.document,"base");i&&i.setAttribute("href",t+o.pathname)}function Sn(e,t){for(var n=t.__WUJIE,r=new WeakMap,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null,!1),i=o.currentNode;i;){var c=n.elementEventCacheMap.get(i);null!=c&&c.length&&(r.set(i,c),c.forEach((function(e){i.addEventListener(e.type,e.handler,e.options)}))),i=o.nextNode()}n.elementEventCacheMap=r}function Ln(e,t,n){var r=n.__WUJIE,o=new WeakMap,i=r.elementEventCacheMap.get(e);null!=i&&i.length&&(o.set(t,i),i.forEach((function(e){t.addEventListener(e.type,e.handler,e.options)}))),r.elementEventCacheMap=o}function Cn(e,t){Object.defineProperty(e.Event.prototype,"timeStamp",{get:function(){return t.document.createEvent("Event").timeStamp}})}function In(e,t){var n=t.__WUJIE.proxyLocation;if(!e._hasPatch){try{Object.defineProperties(e,{baseURI:{configurable:!0,get:function(){return n.protocol+"//"+n.host+n.pathname},set:void 0},ownerDocument:{configurable:!0,get:function(){return t.document}},_hasPatch:{get:function(){return!0}}})}catch(e){console.warn(e)}ae(t.__WUJIE.plugins,"patchElementHook",e,t)}}function Tn(e,t,n){var r=e,o=r.src,i=r.module,c=r.content,a=r.crossorigin,u=r.crossoriginType,l=r.async,s=r.attrs,f=r.callback,d=r.onload,p=t.document.createElement("script"),h=t.document.createElement("script"),m=t.__WUJIE,v=m.replace,y=m.plugins,w=m.proxyLocation,g=function(e){var t=e.plugins,n=e.replace;return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;return ie(t.map((function(e){return e.jsLoader})))(n?n(e):e,r,o)}}({plugins:y,replace:v}),b=g(c,o,z(w));if(s&&Object.keys(s).filter((function(t){return!Object.keys(e).includes(t)})).forEach((function(e){return p.setAttribute(e,String(s[e]))})),c){t.__WUJIE.degrade||i||(b="(function(window, self, global, location) {\n ".concat(b,"\n}).bind(window.__WUJIE.proxy)(\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxy,\n window.__WUJIE.proxyLocation,\n);"));var E=Object.getOwnPropertyDescriptor(p,"src");if(null!=E&&E.configurable||!E)try{Object.defineProperty(p,"src",{get:function(){return o||""}})}catch(e){console.warn(e)}}else o&&p.setAttribute("src",o),a&&p.setAttribute("crossorigin",u);i&&p.setAttribute("type","module"),p.textContent=b||"",h.textContent="if(window.__WUJIE.execQueue && window.__WUJIE.execQueue.length){ window.__WUJIE.execQueue.shift()()}";var _=$t.call(t.document,"head"),O=function(){return!l&&_.appendChild(h)},x=function(){null==d||d(),O()};if(/^<!DOCTYPE html/i.test(b))return ne(S,e),O();n&&se(p,fe(n));var j=!c&&o;j&&(p.onload=x,p.onerror=x),_.appendChild(p),null==f||f(t),ae(y,"appendOrInsertElementHook",p,t,n),!j&&x()}function Un(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.document.createElement("iframe");Q(r,jn(jn({},n),{},{src:e,style:["height:100%;width:100%",n.style].join(";")})),ln(r,t)}function Rn(t,n,r,i,c){var a=window.document.createElement("iframe");Q(a,jn(jn({src:r,style:"display: none"},n),{},o({name:t.id},h,""))),window.document.body.appendChild(a);var u=a.contentWindow;return Pn(u,t,i),t.iframeReady=function(e){var t=e.document;return new Promise((function(n){!function r(){setTimeout((function(){var o;try{o=e.document}catch(e){o=null}o&&o!=t?(e.stop?e.stop():e.document.execCommand("Stop"),n()):r()}),1)}()}))}(u).then((function(){u.__WUJIE||Pn(u,t,i),function(t,n,r,o){var i=t.document,c=window.document.implementation.createHTMLDocument(""),a=i.importNode(c.documentElement,!0);i.documentElement?i.replaceChild(a,i.documentElement):i.appendChild(a),t.__WUJIE_RAW_DOCUMENT_HEAD__=i.head,t.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__=t.Document.prototype.querySelector,t.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__=t.Document.prototype.querySelectorAll,t.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__=t.Document.prototype.createElement,t.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__=t.Document.prototype.createTextNode,function(e,t){var n=e.document,r=n.createElement("base"),o=Y(e.location.href),i=Y(t);r.setAttribute("href",i.protocol+"//"+i.host+o.pathname),n.head.appendChild(r)}(t,n.url),function(e,t,n){var r=e.history,o=r.pushState,i=r.replaceState;r.pushState=function(i,c,a){var u=n+e.location.pathname+e.location.search+e.location.hash,l=K(null==a?void 0:a.replace(t,""),u),s=void 0===a;o.call(r,i,c,s?void 0:l),s||(Wn(e,t,n),_n(e))},r.replaceState=function(o,c,a){var u=n+e.location.pathname+e.location.search+e.location.hash,l=K(null==a?void 0:a.replace(t,""),u),s=void 0===a;i.call(r,o,c,s?void 0:l),s||(Wn(e,t,n),_n(e))}}(t,o,r),function(t){t.__WUJIE_EVENTLISTENER__=t.__WUJIE_EVENTLISTENER__||new Set,t.addEventListener=function(n,r,o){if(ae(t.__WUJIE.plugins,"windowAddEventListenerHook",t,n,r,o),t.__WUJIE_EVENTLISTENER__.add({type:n,listener:r,options:o}),It.includes(n)||"object"===e(o)&&o.targetWindow){var i="object"===e(o)&&o.targetWindow?null==o?void 0:o.targetWindow:t;return Ft.call(i,n,r,o)}Ft.call(window.__WUJIE_RAW_WINDOW__||window,n,r,o)},t.removeEventListener=function(n,r,o){if(ae(t.__WUJIE.plugins,"windowRemoveEventListenerHook",t,n,r,o),t.__WUJIE_EVENTLISTENER__.forEach((function(e){e.listener===r&&e.type===n&&o==e.options&&t.__WUJIE_EVENTLISTENER__.delete(e)})),It.includes(n)||"object"===e(o)&&o.targetWindow){var i="object"===e(o)&&o.targetWindow?null==o?void 0:o.targetWindow:t;return qt.call(i,n,r,o)}qt.call(window.__WUJIE_RAW_WINDOW__||window,n,r,o)}}(t),n.degrade&&function(e){var t=e.__WUJIE;e.Node.prototype.addEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);return o?o.find((function(t){return t.type===e&&t.handler===n}))||o.push({type:e,handler:n,options:r}):t.elementEventCacheMap.set(this,[{type:e,handler:n,options:r}]),Ht.call(this,e,n,r)},e.Node.prototype.removeEventListener=function(e,n,r){var o=t.elementEventCacheMap.get(this);if(o){var i=null==o?void 0:o.findIndex((function(t){return t.type===e&&t.handler===n}));o.splice(i,1)}return null!=o&&o.length||t.elementEventCacheMap.delete(this),Bt.call(this,e,n,r)}}(t),function(e){e.addEventListener("hashchange",(function(){return _n(e)})),e.addEventListener("popstate",(function(){_n(e)}))}(t),function(e){function t(t){var n=e[t];try{return"function"!=typeof n||H(n)?e[t]=window[t]:e[t]=window[t].bind(window),!0}catch(e){return te(e.message),!1}}Object.getOwnPropertyNames(e).forEach((function(n){"getSelection"!==n?Rt.includes(n)?t(n):Mt.some((function(r){return!(!r.test(n)||!(n in e.parent))&&t(n)})):Object.defineProperty(e,n,{get:function(){return e.document[n]}})})),Object.getOwnPropertyNames(window).filter((function(e){return/^on/.test(e)})).filter((function(e){return!Tt.includes(e)})).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,writable:!0};try{Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:!0,get:function(){return window[t]},set:n.writable||n.set?function(n){window[t]="function"==typeof n?n.bind(e):n}:void 0})}catch(t){te(t.message)}})),ae(e.__WUJIE.plugins,"windowPropertyOverride",e)}(t),function(e){var t=e.__WUJIE,n=new WeakMap,r=new WeakMap;e.Document.prototype.addEventListener=function(o,i,c){if(i){var a=n.get(i),u=r.get(i);return a||(a="function"==typeof i?i.bind(this):i,n.set(i,a)),u?u.includes(o)||u.push(o):r.set(i,[o]),ae(e.__WUJIE.plugins,"documentAddEventListenerHook",e,o,a,c),Wt.includes(o)?Ht.call(this,o,a,c):t.degrade?t.document.addEventListener(o,a,c):Lt.includes(o)?window.document.addEventListener(o,a,c):Ct.includes(o)?(window.document.addEventListener(o,a,c),void t.shadowRoot.addEventListener(o,a,c)):void t.shadowRoot.addEventListener(o,a,c)}},e.Document.prototype.removeEventListener=function(o,i,c){var a=n.get(i),u=r.get(i);if(a){if(null!=u&&u.includes(o)&&(u.splice(u.indexOf(o),1),u.length||(n.delete(i),r.delete(i))),ae(e.__WUJIE.plugins,"documentRemoveEventListenerHook",e,o,a,c),Wt.includes(o))return Bt.call(this,o,a,c);if(t.degrade)return t.document.removeEventListener(o,a,c);if(Lt.includes(o))return window.document.removeEventListener(o,a,c);if(Ct.includes(o))return window.document.removeEventListener(o,a,c),void t.shadowRoot.removeEventListener(o,a,c);t.shadowRoot.removeEventListener(o,a,c)}};var o=Object.keys(e.HTMLElement.prototype).filter((function(e){return/^on/.test(e)})),i=Object.keys(e.Document.prototype).filter((function(e){return/^on/.test(e)})).filter((function(e){return!St.includes(e)}));o.filter((function(e){return i.includes(e)})).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.degrade?t.document[n]:t.shadowRoot.firstElementChild[n]},set:r.writable||r.set?function(r){var o="function"==typeof r?r.bind(e.document):r;t.degrade?t.document[n]=o:t.shadowRoot.firstElementChild[n]=o}:void 0})}catch(n){te(n.message)}}));var c=Pt.ownerProperties,a=Pt.modifyProperties,u=Pt.shadowProperties,l=Pt.shadowMethods,s=Pt.documentProperties,f=Pt.documentMethods,d=Pt.documentEvents;a.concat(u,l,s,f).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})}catch(e){te(e.message)}})),d.forEach((function(n){var r=Object.getOwnPropertyDescriptor(e.Document.prototype,n)||{enumerable:!0,writable:!0};try{Object.defineProperty(e.Document.prototype,n,{enumerable:r.enumerable,configurable:!0,get:function(){return(t.degrade?t:window).document[n]},set:r.writable||r.set?function(r){(t.degrade?t:window).document[n]="function"==typeof r?r.bind(e.document):r}:void 0})}catch(e){te(e.message)}})),c.forEach((function(n){Object.defineProperty(e.document,n,{enumerable:!0,configurable:!0,get:function(){return t.proxyDocument[n]},set:void 0})})),ae(e.__WUJIE.plugins,"documentPropertyOverride",e)}(t),function(e){var t=e.Node.prototype.getRootNode,n=e.Node.prototype.appendChild,r=e.Node.prototype.insertBefore;e.Node.prototype.getRootNode=function(n){var r=t.call(this,n);return r===e.__WUJIE.shadowRoot?e.document:r},e.Node.prototype.appendChild=function(t){var r=n.call(this,t);return In(t,e),r},e.Node.prototype.insertBefore=function(t,n){var o=r.call(this,t,n);return In(t,e),o}}(t),function(e){V(e,e.HTMLImageElement,"src"),V(e,e.HTMLAnchorElement,"href"),V(e,e.HTMLSourceElement,"src"),V(e,e.HTMLLinkElement,"href"),V(e,e.HTMLScriptElement,"src"),V(e,e.HTMLMediaElement,"src")}(t)}(u,t,r,i),G(u.__WUJIE.id)||u.history.replaceState(null,"",r+c)})),a}function Mn(e,t,n){var r=e.contentWindow.__WUJIE,o=r.shadowRoot,i=r.id,c=r.degrade,a=r.document,u=r.degradeAttrs,l=t;if(!/^http/.test(l)){var s=Y(l);l=n+s.pathname+s.search+s.hash,s=null}if(e.contentWindow.__WUJIE.hrefFlag=!0,c){var f=$t.call(e.contentDocument,"body");ln(a.documentElement,f),Un(window.decodeURIComponent(l),q(i).parentElement,u)}else Un(l,o.host.parentElement,u);return function(e,t){var n=Y(window.location.href),r=X(n);r[e]=window.encodeURIComponent(t);var o="?"+Object.keys(r).map((function(e){return e+"="+r[e]})).join("&");n.search=o,window.history.pushState(null,"",n.href),n=null}(i,l),!0}var Dn=window.__POWERED_BY_WUJIE__?window.__WUJIE.inject.appEventObjMap:new Map,An=function(){function e(t){ht(this,e),this.id=t,this.$clear(),Dn.get(this.id)||Dn.set(this.id,{}),this.eventObj=Dn.get(this.id)}return vt(e,[{key:"$on",value:function(e,t){var n=this.eventObj[e];return n?(n.includes(t)||n.push(t),this):(this.eventObj[e]=[t],this)}},{key:"$onAll",value:function(e){return this.$on(g,e)}},{key:"$once",value:function(e,t){var n=function(){this.$off(e,n),t.apply(void 0,arguments)}.bind(this);this.$on(e,n)}},{key:"$off",value:function(e,t){var n=this.eventObj[e];if(!e||!n||!n.length)return te("".concat(e," ").concat(W)),this;for(var r=n.length;r--;)if(n[r]===t){n.splice(r,1);break}return this}},{key:"$offAll",value:function(e){return this.$off(g,e)}},{key:"$emit",value:function(e){var t=[],n=[];if(Dn.forEach((function(r){r[e]&&(t=t.concat(r[e])),r[g]&&(n=n.concat(r[g]))})),!e||0===t.length&&0===n.length)te("".concat(e," ").concat(W));else try{for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];for(var c=0,a=t.length;c<a;c++){var u;(u=t)[c].apply(u,o)}for(var l=0,s=n.length;l<s;l++){var f;(f=n)[l].apply(f,[e].concat(o))}}catch(e){ne(e)}return this}},{key:"$clear",value:function(){var e,t=null!==(e=Dn.get(this.id))&&void 0!==e?e:{};return Object.keys(t).forEach((function(e){return delete t[e]})),this}}]),e}();function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jn=function(){function e(t){ht(this,e),o(this,"elementEventCacheMap",new WeakMap),window.__POWERED_BY_WUJIE__?this.inject=window.__WUJIE.inject:this.inject={idToSandboxMap:Ot,appEventObjMap:Dn,mainHostPath:window.location.protocol+"//"+window.location.host};var n=t.name,r=t.url,i=t.attrs,c=t.fiber,a=t.degradeAttrs,u=t.degrade,l=t.lifecycles,s=t.plugins;this.id=n,this.fiber=c,this.degrade=u||!R,this.bus=new An(this.id),this.url=r,this.degradeAttrs=a,this.provide={bus:this.bus},this.styleSheetElements=[],this.execQueue=[],this.lifecycles=l,this.plugins=ze(s);var f,d,p=$(r),h=p.urlElement,m=p.appHostPath,v=p.appRoutePath,y=this.inject.mainHostPath;if(this.iframe=Rn(this,i,y,m,v),this.degrade){var w=function(e,t,n,r){var o={},i=e.contentWindow.__WUJIE;Object.defineProperties(o,{createElement:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__.apply(e.contentDocument,n);return In(o,e.contentWindow),o}}},createTextNode:{get:function(){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__.apply(e.contentDocument,n);return In(o,e.contentWindow),o}}},documentURI:{get:function(){return i.proxyLocation.href}},URL:{get:function(){return i.proxyLocation.href}},getElementsByTagName:{get:function(){return function(){var t=arguments.length<=0?void 0:arguments[0];return"script"===t?e.contentDocument.scripts:i.document.getElementsByTagName(t)}}}});var c=Pt.modifyLocalProperties,a=Pt.modifyProperties,u=Pt.ownerProperties,l=Pt.shadowProperties,s=Pt.shadowMethods,f=Pt.documentProperties,d=Pt.documentMethods;a.filter((function(e){return!c.includes(e)})).concat(u,l,s,f,d).forEach((function(e){Object.defineProperty(o,e,{get:function(){var t,n=null===(t=i.document)||void 0===t?void 0:t[e];return A(n)?n.bind(i.document):n}})}));var p={},h=e.contentWindow.location,m=Object.keys(h),v=["host","hostname","port","protocol","port"];return v.forEach((function(e){p[e]=t[e]})),Object.defineProperties(p,{href:{get:function(){return h.href.replace(n,r)},set:function(t){Mn(e,t,r)}},reload:{get:function(){return te(x),function(){return null}}}}),m.filter((function(e){return!v.concat(["href","reload"]).includes(e)})).forEach((function(e){Object.defineProperty(p,e,{get:function(){return A(h[e])?h[e].bind(h):h[e]}})})),{proxyDocument:o,proxyLocation:p}}(this.iframe,h,y,m),g=w.proxyDocument,b=w.proxyLocation;this.proxyDocument=g,this.proxyLocation=b}else{var E=function(e,t,n,r){return{proxyWindow:new Proxy(e.contentWindow,{get:function(e,t){if("location"===t)return e.__WUJIE.proxyLocation;if("self"===t||"window"===t&&Object.getOwnPropertyDescriptor(window,"window").get)return e.__WUJIE.proxy;if("__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__"===t||"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"===t)return e[t];var n=Object.getOwnPropertyDescriptor(e,t);return!1===(null==n?void 0:n.configurable)&&!1===(null==n?void 0:n.writable)?e[t]:F(e,t)},set:function(e,t,n){return function(e){!A(e)||k(e)||H(e)||B.has(e)||B.set(e,e)}(n),e[t]=n,!0},has:function(e,t){return t in e}}),proxyDocument:new Proxy({},{get:function(t,n){var r=window.document,o=e.contentWindow.__WUJIE,i=o.shadowRoot,c=o.proxyLocation;i||he();var a=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_ELEMENT__,u=e.contentWindow.__WUJIE_RAW_DOCUMENT_CREATE_TEXT_NODE__;if("createElement"===n||"createTextNode"===n)return new Proxy(r[n],{apply:function(t,r,o){var i=("createElement"===n?a:u).apply(e.contentDocument,o);return In(i,e.contentWindow),i}});if("documentURI"===n||"URL"===n)return c.href;if("getElementsByTagName"===n||"getElementsByClassName"===n||"getElementsByName"===n)return new Proxy(i.querySelectorAll,{apply:function(t,r,o){var c,a=o[0];if(r!==e.contentDocument)return r[n].apply(r,o);if("getElementsByTagName"===n&&"script"===a)return e.contentDocument.scripts;"getElementsByClassName"===n&&(a="."+a),"getElementsByName"===n&&(a='[name="'.concat(a,'"]'));try{c=t.call(i,a)}catch(e){c=[]}return c}});if("getElementById"===n)return new Proxy(i.querySelector,{apply:function(t,r,o){var c;if(r!==e.contentDocument)return null===(c=r[n])||void 0===c?void 0:c.apply(r,o);try{return t.call(i,'[id="'.concat(o[0],'"]'))||e.contentWindow.__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__.call(e.contentWindow.document,"#".concat(o[0]))}catch(e){return te("不支持document.getElementById()传入特殊字符,请参考document.querySelector文档"),null}}});if("querySelector"===n||"querySelectorAll"===n){var l={querySelector:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR__",querySelectorAll:"__WUJIE_RAW_DOCUMENT_QUERY_SELECTOR_ALL__"};return new Proxy(i[n],{apply:function(t,r,o){var c;return r!==e.contentDocument?null===(c=r[n])||void 0===c?void 0:c.apply(r,o):t.apply(i,o)||("base"===o[0]?null:e.contentWindow[l[n]].call(e.contentWindow.document,o[0]))}})}if("documentElement"===n||"scrollingElement"===n)return i.firstElementChild;if("forms"===n)return i.querySelectorAll("form");if("images"===n)return i.querySelectorAll("img");if("links"===n)return i.querySelectorAll("a");var s,f=Pt.ownerProperties,d=Pt.shadowProperties,p=Pt.shadowMethods,h=Pt.documentProperties,m=Pt.documentMethods;return f.concat(d).includes(n.toString())?"activeElement"===n&&null===i.activeElement?i.body:i[n]:p.includes(n.toString())?null!==(s=F(i,n))&&void 0!==s?s:F(r,n):h.includes(n.toString())?r[n]:m.includes(n.toString())?F(r,n):void 0}}),proxyLocation:new Proxy({},{get:function(o,i){var c=e.contentWindow.location;return"host"===i||"hostname"===i||"protocol"===i||"port"===i||"origin"===i?t[i]:"href"===i?c[i].replace(n,r):"reload"===i?(te(x),function(){return null}):"replace"===i?new Proxy(c[i],{apply:function(e,t,o){var i;return e.call(c,null===(i=o[0])||void 0===i?void 0:i.replace(r,n))}}):F(c,i)},set:function(t,n,o){return"href"===n?Mn(e,o,r):(e.contentWindow.location[n]=o,!0)},ownKeys:function(){return Object.keys(e.contentWindow.location).filter((function(e){return"reload"!==e}))},getOwnPropertyDescriptor:function(e,t){return{enumerable:!0,configurable:!0,value:this[t]}}})}}(this.iframe,h,y,m),_=E.proxyWindow,O=E.proxyDocument,j=E.proxyLocation;this.proxy=_,this.proxyDocument=O,this.proxyLocation=j}this.provide.location=this.proxyLocation,f=this.id,(d=Ot.get(f))?Ot.set(f,_t(_t({},d),{},{wujie:this})):Ot.set(f,{wujie:this})}var t,n;return vt(e,[{key:"active",value:(n=c(u().mark((function e(t){var n,r,o,i,c,a,l,s,f,p,h,m,v,y,w,g,b=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.sync,r=t.url,o=t.el,i=t.template,c=t.props,a=t.alive,l=t.prefix,s=t.fetch,f=t.replace,this.url=r,this.sync=n,this.alive=a,this.hrefFlag=!1,this.prefix=null!=l?l:this.prefix,this.replace=null!=f?f:this.replace,this.provide.props=null!=c?c:this.provide.props,this.activeFlag=!0,e.next=11,this.iframeReady;case 11:if(p=this.iframe.contentWindow,(h=s?function(e,t){return s("string"==typeof e?K(e,b.proxyLocation.href):e,t)}:this.fetch)&&(p.fetch=h,this.fetch=h),this.execFlag&&this.alive||On(p),_n(p),this.template=null!=i?i:this.template,!this.degrade){e.next=38;break}if(m=$t.call(p.document,"body"),v=sn(this.id,null!=o?o:m,this.degradeAttrs),y=v.iframe,w=v.container,this.el=w,o&&wn(m),Cn(y.contentWindow,p),y.contentWindow.onunload=function(){b.unmount()},!this.document){e.next=34;break}if(!this.alive){e.next=29;break}y.contentDocument.replaceChild(this.document.documentElement,y.contentDocument.documentElement),Sn(y.contentDocument.documentElement,p),e.next=32;break;case 29:return e.next=31,vn(y.contentDocument,this.iframe.contentWindow,this.template);case 31:Ln(this.document.documentElement,y.contentDocument.documentElement,p);case 32:e.next=36;break;case 34:return e.next=36,vn(y.contentDocument,this.iframe.contentWindow,this.template);case 36:return this.document=y.contentDocument,e.abrupt("return");case 38:if(!this.shadowRoot){e.next=44;break}if(this.el=ln(this.shadowRoot.host,o),!this.alive){e.next=42;break}return e.abrupt("return");case 42:e.next=46;break;case 44:g=$t.call(p.document,"body"),this.el=ln((u=this.id,E=void 0,(E=window.document.createElement("wujie-app")).setAttribute(d,u),E.classList.add("wujie_iframe"),E),null!=o?o:g);case 46:return e.next=48,hn(this.shadowRoot,p,this.template);case 48:this.patchCssRules(),this.provide.shadowRoot=this.shadowRoot;case 50:case"end":return e.stop()}var u,E}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"requestIdleCallback",value:function(e){var t=this;return Z((function(){t.iframe&&e.apply(t)}))}},{key:"start",value:(t=c(u().mark((function e(t){var n,r,o,i,c,a,l,s,f,d=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.execFlag=!0,e.next=3,t();case 3:if(n=e.sent,this.iframe){e.next=6;break}return e.abrupt("return");case 6:return(r=this.iframe.contentWindow).__POWERED_BY_WUJIE__=!0,o=Ye("jsBeforeLoaders",this.plugins),i=Ye("jsAfterLoaders",this.plugins),c=[],a=[],l=[],n.forEach((function(e){e.defer?l.push(e):e.async?a.push(e):c.push(e)})),o.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Tn(e,r)})):Tn(e,r)}))})),c.concat(l).forEach((function(e){d.execQueue.push((function(){return e.contentPromise.then((function(t){return d.fiber?d.requestIdleCallback((function(){return Tn(kn(kn({},e),{},{content:t}),r)})):Tn(kn(kn({},e),{},{content:t}),r)}))}))})),a.forEach((function(e){e.contentPromise.then((function(t){d.fiber?d.requestIdleCallback((function(){return Tn(kn(kn({},e),{},{content:t}),r)})):Tn(kn(kn({},e),{},{content:t}),r)}))})),this.execQueue.push(this.fiber?function(){return d.requestIdleCallback((function(){return d.mount()}))}:function(){return d.mount()}),s=function(){var e;pe(r.document,"DOMContentLoaded"),pe(r,"DOMContentLoaded"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(s)}:s),i.forEach((function(e){d.execQueue.push((function(){return d.fiber?d.requestIdleCallback((function(){return Tn(e,r)})):Tn(e,r)}))})),f=function(){var e;pe(r.document,"readystatechange"),pe(r,"load"),null===(e=d.execQueue.shift())||void 0===e||e()},this.execQueue.push(this.fiber?function(){return d.requestIdleCallback(f)}:f),!this.alive&&U(this.iframe.contentWindow.__WUJIE_UNMOUNT)||bn(this.el),this.execQueue.shift()(),e.abrupt("return",new Promise((function(e){d.execQueue.push((function(){var t;e(),null===(t=d.execQueue.shift())||void 0===t||t()}))})));case 26:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"mount",value:function(){var e,t,n,r,o,i,c;this.mountFlag||(U(this.iframe.contentWindow.__WUJIE_MOUNT)&&(bn(this.el),null===(t=this.lifecycles)||void 0===t||null===(n=t.beforeMount)||void 0===n||n.call(t,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_MOUNT(),null===(r=this.lifecycles)||void 0===r||null===(o=r.afterMount)||void 0===o||o.call(r,this.iframe.contentWindow),this.mountFlag=!0),this.alive&&(null===(i=this.lifecycles)||void 0===i||null===(c=i.activated)||void 0===c||c.call(i,this.iframe.contentWindow)),null===(e=this.execQueue.shift())||void 0===e||e())}},{key:"unmount",value:function(){var e,t,n,r,o,i;this.activeFlag=!1,function(){var e=Y(window.location.href),t=X(e);Object.keys(t).forEach((function(e){var n=xt(e);n&&n.execFlag&&n.sync&&!n.hrefFlag&&!n.activeFlag&&delete t[e]}));var n="?"+Object.keys(t).map((function(e){return e+"="+t[e]})).join("&");e.search=n,e.href!==window.location.href&&window.history.replaceState(null,"",e.href),e=null}(),this.alive&&(null===(e=this.lifecycles)||void 0===e||null===(t=e.deactivated)||void 0===t||t.call(e,this.iframe.contentWindow)),this.mountFlag&&(!U(this.iframe.contentWindow.__WUJIE_UNMOUNT)||this.alive||this.hrefFlag||(null===(n=this.lifecycles)||void 0===n||null===(r=n.beforeUnmount)||void 0===r||r.call(n,this.iframe.contentWindow),this.iframe.contentWindow.__WUJIE_UNMOUNT(),null===(o=this.lifecycles)||void 0===o||null===(i=o.afterUnmount)||void 0===i||i.call(o,this.iframe.contentWindow),this.mountFlag=!1,this.bus.$clear(),this.degrade||(wn(this.shadowRoot),nn(this.head),nn(this.body)),wn(this.head),wn(this.body)))}},{key:"destroy",value:function(){if(this.unmount(),this.bus.$clear(),this.shadowRoot=null,this.proxy=null,this.proxyDocument=null,this.proxyLocation=null,this.execQueue=null,this.provide=null,this.degradeAttrs=null,this.styleSheetElements=null,this.bus=null,this.replace=null,this.fetch=null,this.execFlag=null,this.mountFlag=null,this.hrefFlag=null,this.document=null,this.head=null,this.body=null,this.elementEventCacheMap=null,this.lifecycles=null,this.plugins=null,this.provide=null,this.inject=null,this.execQueue=null,this.prefix=null,this.el&&(wn(this.el),this.el=null),this.iframe){var e,t=this.iframe.contentWindow;null!=t&&t.__WUJIE_EVENTLISTENER__&&t.__WUJIE_EVENTLISTENER__.forEach((function(e){t.removeEventListener(e.type,e.listener,e.options)})),null===(e=this.iframe.parentNode)||void 0===e||e.removeChild(this.iframe),this.iframe=null}var n,r;n=this.id,null!=(r=Ot.get(n))&&r.options&&Ot.set(n,{options:r.options}),Ot.delete(n)}},{key:"rebuildStyleSheets",value:function(){var e=this;this.styleSheetElements&&this.styleSheetElements.length&&this.styleSheetElements.forEach((function(t){Dt.call(e.degrade?e.document.head:e.shadowRoot.head,t)})),this.patchCssRules()}},{key:"patchCssRules",value:function(){if(!this.degrade&&!this.shadowRoot.host.hasAttribute(w)){var e=f(En(Array.from(this.iframe.contentDocument.querySelectorAll("style")).map((function(e){return e.sheet}))),2),t=e[0],n=e[1];t&&(this.shadowRoot.head.appendChild(t),this.styleSheetElements.push(t)),n&&this.shadowRoot.host.appendChild(n),(t||n)&&this.shadowRoot.host.setAttribute(w,"")}}}]),e}();function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Bn=new An(Date.now().toString());function Fn(e){e.name&&function(e,t){var n=Ot.get(e);n?Ot.set(e,_t(_t({},n),{},{options:t})):Ot.set(e,{options:t})}(e.name,e)}function qn(e){return Qn.apply(this,arguments)}function Qn(){return Qn=c(u().mark((function e(t){var n,r,o,i,c,a,l,s,f,d,p,h,m,v,y,w,g,b,E,_,O,x,j,P,W,S,L,C,I,T,R,M,D,A,N,k,J,H,B;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=xt(t.name),i=jt(t.name),c=de(t,i),a=c.name,l=c.url,s=c.html,f=c.replace,d=c.fetch,p=c.props,h=c.attrs,m=c.degradeAttrs,v=c.fiber,y=c.alive,w=c.degrade,g=c.sync,b=c.prefix,E=c.el,_=c.loading,O=c.plugins,x=c.lifecycles,!o){e.next=39;break}if(o.plugins=ze(O),o.lifecycles=x,j=o.iframe.contentWindow,!o.preload){e.next=11;break}return e.next=11,o.preload;case 11:if(!y){e.next=26;break}return e.next=14,o.active({url:l,sync:g,prefix:b,el:E,props:p,alive:y,fetch:d,replace:f});case 14:if(o.execFlag){e.next=22;break}return null===(S=o.lifecycles)||void 0===S||null===(L=S.beforeLoad)||void 0===L||L.call(S,o.iframe.contentWindow),e.next=18,pt({url:l,html:s,opts:{fetch:d||window.fetch,plugins:o.plugins,loadError:o.lifecycles.loadError,fiber:v}});case 18:return C=e.sent,I=C.getExternalScripts,e.next=22,o.start(I);case 22:return null===(P=o.lifecycles)||void 0===P||null===(W=P.activated)||void 0===W||W.call(P,o.iframe.contentWindow),e.abrupt("return",o.destroy);case 26:if(!U(j.__WUJIE_MOUNT)){e.next=38;break}return o.unmount(),e.next=30,o.active({url:l,sync:g,prefix:b,el:E,props:p,alive:y,fetch:d,replace:f});case 30:return o.rebuildStyleSheets(),null===(T=o.lifecycles)||void 0===T||null===(R=T.beforeMount)||void 0===R||R.call(T,o.iframe.contentWindow),j.__WUJIE_MOUNT(),null===(M=o.lifecycles)||void 0===M||null===(D=M.afterMount)||void 0===D||D.call(M,o.iframe.contentWindow),o.mountFlag=!0,e.abrupt("return",o.destroy);case 38:o.destroy();case 39:return gn(E,_),A=new Jn({name:a,url:l,attrs:h,degradeAttrs:m,fiber:v,degrade:w,plugins:O,lifecycles:x}),null===(n=A.lifecycles)||void 0===n||null===(r=n.beforeLoad)||void 0===r||r.call(n,A.iframe.contentWindow),e.next=44,pt({url:l,html:s,opts:{fetch:d||window.fetch,plugins:A.plugins,loadError:A.lifecycles.loadError,fiber:v}});case 44:return N=e.sent,k=N.template,J=N.getExternalScripts,H=N.getExternalStyleSheets,e.next=50,it(A,k,H);case 50:return B=e.sent,e.next=53,A.active({url:l,sync:g,prefix:b,template:B,el:E,props:p,alive:y,fetch:d,replace:f});case 53:return e.next=55,A.start(J);case 55:return e.abrupt("return",A.destroy);case 56:case"end":return e.stop()}}),e)}))),Qn.apply(this,arguments)}function $n(e){Z((function(){if(!xt(e.name)&&!G(e.name)){var t=jt(e.name),n=de(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e),t),r=n.name,i=n.url,a=n.html,l=n.props,s=n.alive,f=n.replace,d=n.fetch,p=n.exec,h=n.attrs,m=n.degradeAttrs,v=n.fiber,y=n.degrade,w=n.prefix,g=n.plugins,b=n.lifecycles,E=new Jn({name:r,url:i,attrs:h,degradeAttrs:m,fiber:v,degrade:y,plugins:g,lifecycles:b});if(E.preload)return E.preload;var _=function(){var e=c(u().mark((function e(){var t,n,r,o,c,h,m;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null===(t=E.lifecycles)||void 0===t||null===(n=t.beforeLoad)||void 0===n||n.call(t,E.iframe.contentWindow),e.next=3,pt({url:i,html:a,opts:{fetch:d||window.fetch,plugins:E.plugins,loadError:E.lifecycles.loadError,fiber:v}});case 3:return r=e.sent,o=r.template,c=r.getExternalScripts,h=r.getExternalStyleSheets,e.next=9,it(E,o,h);case 9:return m=e.sent,e.next=12,E.active({url:i,props:l,prefix:w,alive:s,template:m,fetch:d,replace:f});case 12:if(!p){e.next=17;break}return e.next=15,E.start(c);case 15:e.next=19;break;case 17:return e.next=19,c();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();E.preload=_()}}))}function Yn(e){var t=xt(e);t&&t.destroy()}window.__WUJIE&&!window.__POWERED_BY_WUJIE__&&he(),window.addEventListener("popstate",(function(){var e=Y(window.location.href),t=X(e);e=null,Object.keys(t).map((function(e){return xt(e)})).filter((function(e){return e})).forEach((function(e){var n=t[e.id],r=$t.call(e.iframe.contentDocument,"body");if(/http/.test(n))e.degrade?(ln(e.document.documentElement,r),Un(window.decodeURIComponent(n),q(e.id).parentElement,e.degradeAttrs)):Un(window.decodeURIComponent(n),e.shadowRoot.host.parentElement,e.degradeAttrs),e.hrefFlag=!0;else if(e.hrefFlag){if(e.degrade){var o=sn(e.id,e.el,e.degradeAttrs).iframe;Cn(o.contentWindow,e.iframe.contentWindow),o.contentWindow.onunload=function(){e.unmount()},o.contentDocument.appendChild(r.firstElementChild),e.document=o.contentDocument}else ln(e.shadowRoot.host,e.el);e.hrefFlag=!1}}))})),function(){var e=window.customElements;if(e&&(null==e||!e.get("wujie-app"))){var t=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(n,e);var t=an(n);function n(){return ht(this,n),t.apply(this,arguments)}return vt(n,[{key:"connectedCallback",value:function(){if(!this.shadowRoot){var e=this.attachShadow({mode:"open"}),t=xt(this.getAttribute(d));In(e,t.iframe.contentWindow),t.shadowRoot=e}}},{key:"disconnectedCallback",value:function(){var e=xt(this.getAttribute(d));null==e||e.unmount()}}]),n}(bt(HTMLElement));null==e||e.define("wujie-app",t)}}(),R||te("当前浏览器不支持无界,子应用将采用iframe方式渲染")}(),r}()}));
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
Binary file
|